Skip to content

Commit 0f64338

Browse files
1 parent ca1ee50 commit 0f64338

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

src/SecurityPosture/GoogleCloudSecuritypostureV1PolicyRule.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,26 @@ public function getAllowAll()
7777
* A condition that determines whether this rule is used to evaluate the
7878
* policy. When set, the google.type.Expr.expression field must contain 1 to
7979
* 10 subexpressions, joined by the `||` or `&&` operators. Each subexpression
80-
* must use the `resource.matchTag()` or `resource.matchTagId()` Common
81-
* Expression Language (CEL) function. The `resource.matchTag()` function
82-
* takes the following arguments: * `key_name`: the namespaced name of the tag
83-
* key, with the organization ID and a slash (`/`) as a prefix; for example,
80+
* must use the `resource.matchTag()`, `resource.matchTagId()`,
81+
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression
82+
* Language (CEL) function. The `resource.matchTag()` function takes the
83+
* following arguments: * `key_name`: the namespaced name of the tag key, with
84+
* the organization ID and a slash (`/`) as a prefix; for example,
8485
* `123456789012/environment` * `value_name`: the short name of the tag value
8586
* For example: `resource.matchTag('123456789012/environment, 'prod')` The
8687
* `resource.matchTagId()` function takes the following arguments: * `key_id`:
8788
* the permanent ID of the tag key; for example, `tagKeys/123456789012` *
8889
* `value_id`: the permanent ID of the tag value; for example,
8990
* `tagValues/567890123456` For example:
90-
* `resource.matchTagId('tagKeys/123456789012', 'tagValues/567890123456')`
91+
* `resource.matchTagId('tagKeys/123456789012', 'tagValues/567890123456')` The
92+
* `resource.hasTagKey()` function takes the following argument: * `key_name`:
93+
* the namespaced name of the tag key, with the organization ID and a slash
94+
* (`/`) as a prefix; for example, `123456789012/environment` For example:
95+
* `resource.hasTagKey('123456789012/environment')` The
96+
* `resource.hasTagKeyId()` function takes the following arguments: *
97+
* `key_id`: the permanent ID of the tag key; for example,
98+
* `tagKeys/123456789012` For example:
99+
* `resource.hasTagKeyId('tagKeys/123456789012')`
91100
*
92101
* @param Expr $condition
93102
*/

src/SecurityPosture/ListOperationsResponse.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ class ListOperationsResponse extends \Google\Collection
3030
protected $operationsDataType = 'array';
3131
/**
3232
* Unordered list. Unreachable resources. Populated when the request sets
33-
* `ListOperationsRequest.return_partial_success` and reads across collections
34-
* e.g. when attempting to list all resources across all supported locations.
33+
* `ListOperationsRequest.return_partial_success` and reads across
34+
* collections. For example, when attempting to list all resources across all
35+
* supported locations.
3536
*
3637
* @var string[]
3738
*/
@@ -71,8 +72,9 @@ public function getOperations()
7172
}
7273
/**
7374
* Unordered list. Unreachable resources. Populated when the request sets
74-
* `ListOperationsRequest.return_partial_success` and reads across collections
75-
* e.g. when attempting to list all resources across all supported locations.
75+
* `ListOperationsRequest.return_partial_success` and reads across
76+
* collections. For example, when attempting to list all resources across all
77+
* supported locations.
7678
*
7779
* @param string[] $unreachable
7880
*/

src/SecurityPosture/Resource/OrganizationsLocationsOperations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public function get($name, $optParams = [])
101101
* @opt_param string pageToken The standard list page token.
102102
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
103103
* reachable are returned as normal, and those that are unreachable are returned
104-
* in the [ListOperationsResponse.unreachable] field. This can only be `true`
105-
* when reading across collections e.g. when `parent` is set to
106-
* `"projects/example/locations/-"`. This field is not by default supported and
104+
* in the ListOperationsResponse.unreachable field. This can only be `true` when
105+
* reading across collections. For example, when `parent` is set to
106+
* `"projects/example/locations/-"`. This field is not supported by default and
107107
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
108108
* otherwise in service or product specific documentation.
109109
* @return ListOperationsResponse

0 commit comments

Comments
 (0)