Skip to content

Commit fd5162a

Browse files
1 parent f095453 commit fd5162a

File tree

6 files changed

+63
-36
lines changed

6 files changed

+63
-36
lines changed

clients/google-api-services-orgpolicy/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-orgpolicy</artifactId>
25-
<version>v2-rev20250815-2.0.0</version>
25+
<version>v2-rev20251204-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-orgpolicy:v2-rev20250815-2.0.0'
38+
implementation 'com.google.apis:google-api-services-orgpolicy:v2-rev20251204-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-orgpolicy/v2/2.0.0/com/google/api/services/orgpolicy/v2/model/GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public final class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition ex
3939

4040
/**
4141
* Org policy condition/expression. For example:
42-
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
42+
* `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
4343
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
4444
* The value may be {@code null}.
4545
*/
@@ -88,7 +88,7 @@ public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setActionType(
8888

8989
/**
9090
* Org policy condition/expression. For example:
91-
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
91+
* `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
9292
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
9393
* @return value or {@code null} for none
9494
*/
@@ -98,7 +98,7 @@ public java.lang.String getCondition() {
9898

9999
/**
100100
* Org policy condition/expression. For example:
101-
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
101+
* `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or,
102102
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
103103
* @param condition condition or {@code null} for none
104104
*/

clients/google-api-services-orgpolicy/v2/2.0.0/com/google/api/services/orgpolicy/v2/model/GoogleCloudOrgpolicyV2CustomConstraint.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public final class GoogleCloudOrgpolicyV2CustomConstraint extends com.google.api
4141

4242
/**
4343
* 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,
4545
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
4646
* The value may be {@code null}.
4747
*/
@@ -116,7 +116,7 @@ public GoogleCloudOrgpolicyV2CustomConstraint setActionType(java.lang.String act
116116

117117
/**
118118
* 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,
120120
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
121121
* @return value or {@code null} for none
122122
*/
@@ -126,7 +126,7 @@ public java.lang.String getCondition() {
126126

127127
/**
128128
* 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,
130130
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
131131
* @param condition condition or {@code null} for none
132132
*/

clients/google-api-services-orgpolicy/v2/2.0.0/com/google/api/services/orgpolicy/v2/model/GoogleCloudOrgpolicyV2PolicySpecPolicyRule.java

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,23 @@ public final class GoogleCloudOrgpolicyV2PolicySpecPolicyRule extends com.google
3939
private java.lang.Boolean allowAll;
4040

4141
/**
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')`
5059
* The value may be {@code null}.
5160
*/
5261
@com.google.api.client.util.Key
@@ -107,29 +116,47 @@ public GoogleCloudOrgpolicyV2PolicySpecPolicyRule setAllowAll(java.lang.Boolean
107116
}
108117

109118
/**
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')`
118136
* @return value or {@code null} for none
119137
*/
120138
public GoogleTypeExpr getCondition() {
121139
return condition;
122140
}
123141

124142
/**
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')`
133160
* @param condition condition or {@code null} for none
134161
*/
135162
public GoogleCloudOrgpolicyV2PolicySpecPolicyRule setCondition(GoogleTypeExpr condition) {

clients/google-api-services-orgpolicy/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-orgpolicy</artifactId>
11-
<version>v2-rev20250815-2.0.0</version>
12-
<name>Organization Policy API v2-rev20250815-2.0.0</name>
11+
<version>v2-rev20251204-2.0.0</version>
12+
<name>Organization Policy API v2-rev20251204-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-orgpolicy/v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-orgpolicy</artifactId>
25-
<version>v2-rev20250815-2.0.0</version>
25+
<version>v2-rev20251204-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-orgpolicy:v2-rev20250815-2.0.0'
38+
implementation 'com.google.apis:google-api-services-orgpolicy:v2-rev20251204-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)