Skip to content

Commit a15e86e

Browse files
1 parent 2c06702 commit a15e86e

9 files changed

+79
-68
lines changed

src/OrgPolicyAPI/GoogleCloudOrgpolicyV2Constraint.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ class GoogleCloudOrgpolicyV2Constraint extends \Google\Model
5656
*/
5757
public $displayName;
5858
/**
59-
* Managed constraint and canned constraint sometimes can have equivalents.
60-
* This field is used to store the equivalent constraint name.
59+
* Defines the equivalent constraint name, if it exists. Managed constraints
60+
* can have an equivalent legacy managed constraint, and legacy managed
61+
* constraints can have an equivalent managed constraint. For example,
62+
* "constraints/iam.disableServiceAccountKeyUpload" is equivalent to
63+
* "constraints/iam.managed.disableServiceAccountKeyUpload".
6164
*
6265
* @var string
6366
*/
@@ -156,8 +159,11 @@ public function getDisplayName()
156159
return $this->displayName;
157160
}
158161
/**
159-
* Managed constraint and canned constraint sometimes can have equivalents.
160-
* This field is used to store the equivalent constraint name.
162+
* Defines the equivalent constraint name, if it exists. Managed constraints
163+
* can have an equivalent legacy managed constraint, and legacy managed
164+
* constraints can have an equivalent managed constraint. For example,
165+
* "constraints/iam.disableServiceAccountKeyUpload" is equivalent to
166+
* "constraints/iam.managed.disableServiceAccountKeyUpload".
161167
*
162168
* @param string $equivalentConstraint
163169
*/

src/OrgPolicyAPI/GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition extends \Google
5757
protected $parametersType = GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter::class;
5858
protected $parametersDataType = 'map';
5959
/**
60-
* The resource instance type on which this policy applies. Format will be of
61-
* the form : `/` Example: * `compute.googleapis.com/Instance`.
60+
* The resource instance type that this policy applies to, in the format `/`.
61+
* Example: * `compute.googleapis.com/Instance`.
6262
*
6363
* @var string[]
6464
*/
@@ -135,8 +135,8 @@ public function getParameters()
135135
return $this->parameters;
136136
}
137137
/**
138-
* The resource instance type on which this policy applies. Format will be of
139-
* the form : `/` Example: * `compute.googleapis.com/Instance`.
138+
* The resource instance type that this policy applies to, in the format `/`.
139+
* Example: * `compute.googleapis.com/Instance`.
140140
*
141141
* @param string[] $resourceTypes
142142
*/

src/OrgPolicyAPI/GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter extend
7777
/**
7878
* Provides a CEL expression to specify the acceptable parameter values during
7979
* assignment. For example, parameterName in ("parameterValue1",
80-
* "parameterValue2")
80+
* "parameterValue2").
8181
*
8282
* @var string
8383
*/
@@ -156,7 +156,7 @@ public function getType()
156156
/**
157157
* Provides a CEL expression to specify the acceptable parameter values during
158158
* assignment. For example, parameterName in ("parameterValue1",
159-
* "parameterValue2")
159+
* "parameterValue2").
160160
*
161161
* @param string $validValuesExpr
162162
*/

src/OrgPolicyAPI/GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata extends \Google\Model
2121
{
2222
/**
23-
* Detailed description of what this `parameter` is and use of it. Mutable.
23+
* Detailed description of what this `parameter` is and its use. Mutable.
2424
*
2525
* @var string
2626
*/
2727
public $description;
2828

2929
/**
30-
* Detailed description of what this `parameter` is and use of it. Mutable.
30+
* Detailed description of what this `parameter` is and its use. Mutable.
3131
*
3232
* @param string $description
3333
*/

src/OrgPolicyAPI/GoogleCloudOrgpolicyV2Policy.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ class GoogleCloudOrgpolicyV2Policy extends \Google\Model
2525
protected $dryRunSpecDataType = '';
2626
/**
2727
* Optional. An opaque tag indicating the current state of the policy, used
28-
* for concurrency control. This 'etag' is computed by the server based on the
29-
* value of other fields, and may be sent on update and delete requests to
30-
* ensure the client has an up-to-date value before proceeding.
28+
* for concurrency control. This entity tag (ETag) is computed by the server
29+
* based on the value of other fields, and may be sent on update and delete
30+
* requests to ensure the client has an up-to-date value before proceeding.
3131
*
3232
* @var string
3333
*/
3434
public $etag;
3535
/**
3636
* Immutable. The resource name of the policy. Must be one of the following
37-
* forms, where `constraint_name` is the name of the constraint which this
37+
* forms, where `constraint_name` is the name of the constraint that this
3838
* policy configures: * `projects/{project_number}/policies/{constraint_name}`
3939
* * `folders/{folder_id}/policies/{constraint_name}` *
4040
* `organizations/{organization_id}/policies/{constraint_name}` For example,
@@ -86,9 +86,9 @@ public function getDryRunSpec()
8686
}
8787
/**
8888
* Optional. An opaque tag indicating the current state of the policy, used
89-
* for concurrency control. This 'etag' is computed by the server based on the
90-
* value of other fields, and may be sent on update and delete requests to
91-
* ensure the client has an up-to-date value before proceeding.
89+
* for concurrency control. This entity tag (ETag) is computed by the server
90+
* based on the value of other fields, and may be sent on update and delete
91+
* requests to ensure the client has an up-to-date value before proceeding.
9292
*
9393
* @param string $etag
9494
*/
@@ -105,7 +105,7 @@ public function getEtag()
105105
}
106106
/**
107107
* Immutable. The resource name of the policy. Must be one of the following
108-
* forms, where `constraint_name` is the name of the constraint which this
108+
* forms, where `constraint_name` is the name of the constraint that this
109109
* policy configures: * `projects/{project_number}/policies/{constraint_name}`
110110
* * `folders/{folder_id}/policies/{constraint_name}` *
111111
* `organizations/{organization_id}/policies/{constraint_name}` For example,

src/OrgPolicyAPI/GoogleCloudOrgpolicyV2PolicySpec.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ class GoogleCloudOrgpolicyV2PolicySpec extends \Google\Collection
2424
* An opaque tag indicating the current version of the policySpec, used for
2525
* concurrency control. This field is ignored if used in a `CreatePolicy`
2626
* request. When the policy is returned from either a `GetPolicy` or a
27-
* `ListPolicies` request, this `etag` indicates the version of the current
28-
* policySpec to use when executing a read-modify-write loop. When the policy
29-
* is returned from a `GetEffectivePolicy` request, the `etag` will be unset.
27+
* `ListPolicies` request, this entity tag (ETag) indicates the version of the
28+
* current policySpec to use when executing a read-modify-write loop. When the
29+
* policy is returned from a `GetEffectivePolicy` request, the ETag will be
30+
* unset.
3031
*
3132
* @var string
3233
*/
@@ -36,7 +37,7 @@ class GoogleCloudOrgpolicyV2PolicySpec extends \Google\Collection
3637
* `inherit_from_parent` is true, policy rules set higher up in the hierarchy
3738
* (up to the closest root) are inherited and present in the effective policy.
3839
* If it is false, then no rules are inherited, and this policy becomes the
39-
* new root for evaluation. This field can be set only for policies which
40+
* new root for evaluation. This field can be set only for policies that
4041
* configure list constraints.
4142
*
4243
* @var bool
@@ -67,9 +68,10 @@ class GoogleCloudOrgpolicyV2PolicySpec extends \Google\Collection
6768
* An opaque tag indicating the current version of the policySpec, used for
6869
* concurrency control. This field is ignored if used in a `CreatePolicy`
6970
* request. When the policy is returned from either a `GetPolicy` or a
70-
* `ListPolicies` request, this `etag` indicates the version of the current
71-
* policySpec to use when executing a read-modify-write loop. When the policy
72-
* is returned from a `GetEffectivePolicy` request, the `etag` will be unset.
71+
* `ListPolicies` request, this entity tag (ETag) indicates the version of the
72+
* current policySpec to use when executing a read-modify-write loop. When the
73+
* policy is returned from a `GetEffectivePolicy` request, the ETag will be
74+
* unset.
7375
*
7476
* @param string $etag
7577
*/
@@ -89,7 +91,7 @@ public function getEtag()
8991
* `inherit_from_parent` is true, policy rules set higher up in the hierarchy
9092
* (up to the closest root) are inherited and present in the effective policy.
9193
* If it is false, then no rules are inherited, and this policy becomes the
92-
* new root for evaluation. This field can be set only for policies which
94+
* new root for evaluation. This field can be set only for policies that
9395
* configure list constraints.
9496
*
9597
* @param bool $inheritFromParent
@@ -127,10 +129,10 @@ public function getReset()
127129
}
128130
/**
129131
* In policies for boolean constraints, the following requirements apply: -
130-
* There must be one and only one policy rule where condition is unset. -
131-
* Boolean policy rules with conditions must set `enforced` to the opposite of
132-
* the policy rule without a condition. - During policy evaluation, policy
133-
* rules with conditions that are true for a target resource take precedence.
132+
* There must be exactly one policy rule where a condition is unset. - Boolean
133+
* policy rules with conditions must set `enforced` to the opposite of the
134+
* policy rule without a condition. - During policy evaluation, policy rules
135+
* with conditions that are true for a target resource take precedence.
134136
*
135137
* @param GoogleCloudOrgpolicyV2PolicySpecPolicyRule[] $rules
136138
*/

src/OrgPolicyAPI/Resource/FoldersPolicies.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ public function create($parent, GoogleCloudOrgpolicyV2Policy $postBody, $optPara
6161
* entry for naming rules.
6262
* @param array $optParams Optional parameters.
6363
*
64-
* @opt_param string etag Optional. The current etag of policy. If an etag is
65-
* provided and does not match the current etag of the policy, deletion will be
66-
* blocked and an ABORTED error will be returned.
64+
* @opt_param string etag Optional. The current entity tag (ETag) of the
65+
* organization policy. If an ETag is provided and doesn't match the current
66+
* ETag of the policy, deletion of the policy will be blocked and an `ABORTED`
67+
* error will be returned.
6768
* @return GoogleProtobufEmpty
6869
* @throws \Google\Service\Exception
6970
*/
@@ -75,8 +76,8 @@ public function delete($name, $optParams = [])
7576
}
7677
/**
7778
* Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
78-
* is returned. The `etag` value can be used with `UpdatePolicy()` to update a
79-
* policy during read-modify-write. (policies.get)
79+
* is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to
80+
* update a policy during read-modify-write. (policies.get)
8081
*
8182
* @param string $name Required. Resource name of the policy. See Policy for
8283
* naming requirements.
@@ -93,7 +94,7 @@ public function get($name, $optParams = [])
9394
/**
9495
* Gets the effective policy on a resource. This is the result of merging
9596
* policies in the resource hierarchy and evaluating conditions. The returned
96-
* policy will not have an `etag` or `condition` set because it is an evaluated
97+
* policy will not have an ETag or `condition` set because it is an evaluated
9798
* policy across multiple resources. Subtrees of Resource Manager resource
9899
* hierarchy with 'under:' prefix will not be expanded.
99100
* (policies.getEffectivePolicy)
@@ -138,15 +139,15 @@ public function listFoldersPolicies($parent, $optParams = [])
138139
}
139140
/**
140141
* Updates a policy. Returns a `google.rpc.Status` with
141-
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist.
142-
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag
143-
* supplied in the request does not match the persisted etag of the policy Note:
142+
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist.
143+
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag
144+
* supplied in the request doesn't match the persisted ETag of the policy. Note:
144145
* the supplied policy will perform a full overwrite of all fields.
145146
* (policies.patch)
146147
*
147148
* @param string $name Immutable. The resource name of the policy. Must be one
148149
* of the following forms, where `constraint_name` is the name of the constraint
149-
* which this policy configures: *
150+
* that this policy configures: *
150151
* `projects/{project_number}/policies/{constraint_name}` *
151152
* `folders/{folder_id}/policies/{constraint_name}` *
152153
* `organizations/{organization_id}/policies/{constraint_name}` For example,
@@ -158,8 +159,8 @@ public function listFoldersPolicies($parent, $optParams = [])
158159
* @param array $optParams Optional parameters.
159160
*
160161
* @opt_param string updateMask Field mask used to specify the fields to be
161-
* overwritten in the policy by the set. The fields specified in the update_mask
162-
* are relative to the policy, not the full request.
162+
* overwritten in the policy. The fields specified in the update_mask are
163+
* relative to the policy, not the full request.
163164
* @return GoogleCloudOrgpolicyV2Policy
164165
* @throws \Google\Service\Exception
165166
*/

src/OrgPolicyAPI/Resource/OrganizationsPolicies.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ public function create($parent, GoogleCloudOrgpolicyV2Policy $postBody, $optPara
6161
* entry for naming rules.
6262
* @param array $optParams Optional parameters.
6363
*
64-
* @opt_param string etag Optional. The current etag of policy. If an etag is
65-
* provided and does not match the current etag of the policy, deletion will be
66-
* blocked and an ABORTED error will be returned.
64+
* @opt_param string etag Optional. The current entity tag (ETag) of the
65+
* organization policy. If an ETag is provided and doesn't match the current
66+
* ETag of the policy, deletion of the policy will be blocked and an `ABORTED`
67+
* error will be returned.
6768
* @return GoogleProtobufEmpty
6869
* @throws \Google\Service\Exception
6970
*/
@@ -75,8 +76,8 @@ public function delete($name, $optParams = [])
7576
}
7677
/**
7778
* Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
78-
* is returned. The `etag` value can be used with `UpdatePolicy()` to update a
79-
* policy during read-modify-write. (policies.get)
79+
* is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to
80+
* update a policy during read-modify-write. (policies.get)
8081
*
8182
* @param string $name Required. Resource name of the policy. See Policy for
8283
* naming requirements.
@@ -93,7 +94,7 @@ public function get($name, $optParams = [])
9394
/**
9495
* Gets the effective policy on a resource. This is the result of merging
9596
* policies in the resource hierarchy and evaluating conditions. The returned
96-
* policy will not have an `etag` or `condition` set because it is an evaluated
97+
* policy will not have an ETag or `condition` set because it is an evaluated
9798
* policy across multiple resources. Subtrees of Resource Manager resource
9899
* hierarchy with 'under:' prefix will not be expanded.
99100
* (policies.getEffectivePolicy)
@@ -138,15 +139,15 @@ public function listOrganizationsPolicies($parent, $optParams = [])
138139
}
139140
/**
140141
* Updates a policy. Returns a `google.rpc.Status` with
141-
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist.
142-
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag
143-
* supplied in the request does not match the persisted etag of the policy Note:
142+
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist.
143+
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag
144+
* supplied in the request doesn't match the persisted ETag of the policy. Note:
144145
* the supplied policy will perform a full overwrite of all fields.
145146
* (policies.patch)
146147
*
147148
* @param string $name Immutable. The resource name of the policy. Must be one
148149
* of the following forms, where `constraint_name` is the name of the constraint
149-
* which this policy configures: *
150+
* that this policy configures: *
150151
* `projects/{project_number}/policies/{constraint_name}` *
151152
* `folders/{folder_id}/policies/{constraint_name}` *
152153
* `organizations/{organization_id}/policies/{constraint_name}` For example,
@@ -158,8 +159,8 @@ public function listOrganizationsPolicies($parent, $optParams = [])
158159
* @param array $optParams Optional parameters.
159160
*
160161
* @opt_param string updateMask Field mask used to specify the fields to be
161-
* overwritten in the policy by the set. The fields specified in the update_mask
162-
* are relative to the policy, not the full request.
162+
* overwritten in the policy. The fields specified in the update_mask are
163+
* relative to the policy, not the full request.
163164
* @return GoogleCloudOrgpolicyV2Policy
164165
* @throws \Google\Service\Exception
165166
*/

src/OrgPolicyAPI/Resource/ProjectsPolicies.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ public function create($parent, GoogleCloudOrgpolicyV2Policy $postBody, $optPara
6161
* entry for naming rules.
6262
* @param array $optParams Optional parameters.
6363
*
64-
* @opt_param string etag Optional. The current etag of policy. If an etag is
65-
* provided and does not match the current etag of the policy, deletion will be
66-
* blocked and an ABORTED error will be returned.
64+
* @opt_param string etag Optional. The current entity tag (ETag) of the
65+
* organization policy. If an ETag is provided and doesn't match the current
66+
* ETag of the policy, deletion of the policy will be blocked and an `ABORTED`
67+
* error will be returned.
6768
* @return GoogleProtobufEmpty
6869
* @throws \Google\Service\Exception
6970
*/
@@ -75,8 +76,8 @@ public function delete($name, $optParams = [])
7576
}
7677
/**
7778
* Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
78-
* is returned. The `etag` value can be used with `UpdatePolicy()` to update a
79-
* policy during read-modify-write. (policies.get)
79+
* is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to
80+
* update a policy during read-modify-write. (policies.get)
8081
*
8182
* @param string $name Required. Resource name of the policy. See Policy for
8283
* naming requirements.
@@ -93,7 +94,7 @@ public function get($name, $optParams = [])
9394
/**
9495
* Gets the effective policy on a resource. This is the result of merging
9596
* policies in the resource hierarchy and evaluating conditions. The returned
96-
* policy will not have an `etag` or `condition` set because it is an evaluated
97+
* policy will not have an ETag or `condition` set because it is an evaluated
9798
* policy across multiple resources. Subtrees of Resource Manager resource
9899
* hierarchy with 'under:' prefix will not be expanded.
99100
* (policies.getEffectivePolicy)
@@ -138,15 +139,15 @@ public function listProjectsPolicies($parent, $optParams = [])
138139
}
139140
/**
140141
* Updates a policy. Returns a `google.rpc.Status` with
141-
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist.
142-
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag
143-
* supplied in the request does not match the persisted etag of the policy Note:
142+
* `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist.
143+
* Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag
144+
* supplied in the request doesn't match the persisted ETag of the policy. Note:
144145
* the supplied policy will perform a full overwrite of all fields.
145146
* (policies.patch)
146147
*
147148
* @param string $name Immutable. The resource name of the policy. Must be one
148149
* of the following forms, where `constraint_name` is the name of the constraint
149-
* which this policy configures: *
150+
* that this policy configures: *
150151
* `projects/{project_number}/policies/{constraint_name}` *
151152
* `folders/{folder_id}/policies/{constraint_name}` *
152153
* `organizations/{organization_id}/policies/{constraint_name}` For example,
@@ -158,8 +159,8 @@ public function listProjectsPolicies($parent, $optParams = [])
158159
* @param array $optParams Optional parameters.
159160
*
160161
* @opt_param string updateMask Field mask used to specify the fields to be
161-
* overwritten in the policy by the set. The fields specified in the update_mask
162-
* are relative to the policy, not the full request.
162+
* overwritten in the policy. The fields specified in the update_mask are
163+
* relative to the policy, not the full request.
163164
* @return GoogleCloudOrgpolicyV2Policy
164165
* @throws \Google\Service\Exception
165166
*/

0 commit comments

Comments
 (0)