You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/google-api-services-orgpolicy/v2/2.0.0/com/google/api/services/orgpolicy/v2/model/GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public final class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition ex
Copy file name to clipboardExpand all lines: clients/google-api-services-orgpolicy/v2/2.0.0/com/google/api/services/orgpolicy/v2/model/GoogleCloudOrgpolicyV2CustomConstraint.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ public final class GoogleCloudOrgpolicyV2CustomConstraint extends com.google.api
41
41
42
42
/**
43
43
* A Common Expression Language (CEL) condition which is used in the evaluation of the constraint.
44
-
* For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
44
+
* For example: `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
45
45
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
46
46
* The value may be {@code null}.
47
47
*/
@@ -116,7 +116,7 @@ public GoogleCloudOrgpolicyV2CustomConstraint setActionType(java.lang.String act
116
116
117
117
/**
118
118
* A Common Expression Language (CEL) condition which is used in the evaluation of the constraint.
119
-
* For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
119
+
* For example: `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
120
120
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
121
121
* @return value or {@code null} for none
122
122
*/
@@ -126,7 +126,7 @@ public java.lang.String getCondition() {
126
126
127
127
/**
128
128
* A Common Expression Language (CEL) condition which is used in the evaluation of the constraint.
129
-
* For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
129
+
* For example: `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
130
130
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
131
131
* @param condition condition or {@code null} for none
Copy file name to clipboardExpand all lines: clients/google-api-services-orgpolicy/v2/2.0.0/com/google/api/services/orgpolicy/v2/model/GoogleCloudOrgpolicyV2PolicySpecPolicyRule.java
+51-24Lines changed: 51 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,23 @@ public final class GoogleCloudOrgpolicyV2PolicySpecPolicyRule extends com.google
39
39
privatejava.lang.BooleanallowAll;
40
40
41
41
/**
42
-
* A condition which determines whether this rule is used in the evaluation of the policy. When
43
-
* set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by
44
-
* the "||" or "&&" operators. Each subexpression must be of the form
45
-
* "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or
46
-
* "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name
47
-
* are the resource names for Label Keys and Values. These names are available from the Tag
48
-
* Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')".
49
-
* or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
42
+
* A condition that determines whether this rule is used to evaluate the policy. When set, the
43
+
* google.type.Expr.expression field must contain 1 to 10 subexpressions, joined by the `||` or
44
+
* `&&` operators. Each subexpression must use the `resource.matchTag()`, `resource.matchTagId()`,
45
+
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression Language (CEL) function.
46
+
* The `resource.matchTag()` function takes the following arguments: * `key_name`: the namespaced
47
+
* name of the tag key, with the organization ID and a slash (`/`) as a prefix; for example,
48
+
* `123456789012/environment` * `value_name`: the short name of the tag value For example:
49
+
* `resource.matchTag('123456789012/environment, 'prod')` The `resource.matchTagId()` function
50
+
* takes the following arguments: * `key_id`: the permanent ID of the tag key; for example,
51
+
* `tagKeys/123456789012` * `value_id`: the permanent ID of the tag value; for example,
52
+
* `tagValues/567890123456` For example: `resource.matchTagId('tagKeys/123456789012',
53
+
* 'tagValues/567890123456')` The `resource.hasTagKey()` function takes the following argument: *
54
+
* `key_name`: the namespaced name of the tag key, with the organization ID and a slash (`/`) as a
55
+
* prefix; for example, `123456789012/environment` For example:
56
+
* `resource.hasTagKey('123456789012/environment')` The `resource.hasTagKeyId()` function takes
57
+
* the following arguments: * `key_id`: the permanent ID of the tag key; for example,
58
+
* `tagKeys/123456789012` For example: `resource.hasTagKeyId('tagKeys/123456789012')`
50
59
* The value may be {@code null}.
51
60
*/
52
61
@com.google.api.client.util.Key
@@ -107,29 +116,47 @@ public GoogleCloudOrgpolicyV2PolicySpecPolicyRule setAllowAll(java.lang.Boolean
107
116
}
108
117
109
118
/**
110
-
* A condition which determines whether this rule is used in the evaluation of the policy. When
111
-
* set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by
112
-
* the "||" or "&&" operators. Each subexpression must be of the form
113
-
* "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or
114
-
* "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name
115
-
* are the resource names for Label Keys and Values. These names are available from the Tag
116
-
* Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')".
117
-
* or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
119
+
* A condition that determines whether this rule is used to evaluate the policy. When set, the
120
+
* google.type.Expr.expression field must contain 1 to 10 subexpressions, joined by the `||` or
121
+
* `&&` operators. Each subexpression must use the `resource.matchTag()`, `resource.matchTagId()`,
122
+
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression Language (CEL) function.
123
+
* The `resource.matchTag()` function takes the following arguments: * `key_name`: the namespaced
124
+
* name of the tag key, with the organization ID and a slash (`/`) as a prefix; for example,
125
+
* `123456789012/environment` * `value_name`: the short name of the tag value For example:
126
+
* `resource.matchTag('123456789012/environment, 'prod')` The `resource.matchTagId()` function
127
+
* takes the following arguments: * `key_id`: the permanent ID of the tag key; for example,
128
+
* `tagKeys/123456789012` * `value_id`: the permanent ID of the tag value; for example,
129
+
* `tagValues/567890123456` For example: `resource.matchTagId('tagKeys/123456789012',
130
+
* 'tagValues/567890123456')` The `resource.hasTagKey()` function takes the following argument: *
131
+
* `key_name`: the namespaced name of the tag key, with the organization ID and a slash (`/`) as a
132
+
* prefix; for example, `123456789012/environment` For example:
133
+
* `resource.hasTagKey('123456789012/environment')` The `resource.hasTagKeyId()` function takes
134
+
* the following arguments: * `key_id`: the permanent ID of the tag key; for example,
135
+
* `tagKeys/123456789012` For example: `resource.hasTagKeyId('tagKeys/123456789012')`
118
136
* @return value or {@code null} for none
119
137
*/
120
138
publicGoogleTypeExprgetCondition() {
121
139
returncondition;
122
140
}
123
141
124
142
/**
125
-
* A condition which determines whether this rule is used in the evaluation of the policy. When
126
-
* set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by
127
-
* the "||" or "&&" operators. Each subexpression must be of the form
128
-
* "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or
129
-
* "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name
130
-
* are the resource names for Label Keys and Values. These names are available from the Tag
131
-
* Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')".
132
-
* or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
143
+
* A condition that determines whether this rule is used to evaluate the policy. When set, the
144
+
* google.type.Expr.expression field must contain 1 to 10 subexpressions, joined by the `||` or
145
+
* `&&` operators. Each subexpression must use the `resource.matchTag()`, `resource.matchTagId()`,
146
+
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression Language (CEL) function.
147
+
* The `resource.matchTag()` function takes the following arguments: * `key_name`: the namespaced
148
+
* name of the tag key, with the organization ID and a slash (`/`) as a prefix; for example,
149
+
* `123456789012/environment` * `value_name`: the short name of the tag value For example:
150
+
* `resource.matchTag('123456789012/environment, 'prod')` The `resource.matchTagId()` function
151
+
* takes the following arguments: * `key_id`: the permanent ID of the tag key; for example,
152
+
* `tagKeys/123456789012` * `value_id`: the permanent ID of the tag value; for example,
153
+
* `tagValues/567890123456` For example: `resource.matchTagId('tagKeys/123456789012',
154
+
* 'tagValues/567890123456')` The `resource.hasTagKey()` function takes the following argument: *
155
+
* `key_name`: the namespaced name of the tag key, with the organization ID and a slash (`/`) as a
156
+
* prefix; for example, `123456789012/environment` For example:
157
+
* `resource.hasTagKey('123456789012/environment')` The `resource.hasTagKeyId()` function takes
158
+
* the following arguments: * `key_id`: the permanent ID of the tag key; for example,
159
+
* `tagKeys/123456789012` For example: `resource.hasTagKeyId('tagKeys/123456789012')`
133
160
* @param condition condition or {@code null} for none
0 commit comments