Skip to content

Commit 74b9bdb

Browse files
1 parent fb5c15e commit 74b9bdb

15 files changed

+83
-86
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-rev20241129-2.0.0</version>
25+
<version>v2-rev20250117-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-rev20241129-2.0.0'
38+
implementation 'com.google.apis:google-api-services-orgpolicy:v2-rev20250117-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,16 +1923,16 @@ public Delete set(String parameterName, Object value) {
19231923
}
19241924
}
19251925
/**
1926-
* Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the
1927-
* custom constraint does not exist.
1926+
* Gets a custom or managed constraint. Returns a `google.rpc.Status` with
1927+
* `google.rpc.Code.NOT_FOUND` if the custom or managed constraint does not exist.
19281928
*
19291929
* Create a request for the method "customConstraints.get".
19301930
*
19311931
* This request holds the parameters needed by the orgpolicy server. After setting any optional
19321932
* parameters, call the {@link Get#execute()} method to invoke the remote operation.
19331933
*
1934-
* @param name Required. Resource name of the custom constraint. See the custom constraint entry for naming
1935-
* requirements.
1934+
* @param name Required. Resource name of the custom or managed constraint. See the custom constraint entry for
1935+
* naming requirements.
19361936
* @return the request
19371937
*/
19381938
public Get get(java.lang.String name) throws java.io.IOException {
@@ -1949,8 +1949,8 @@ public class Get extends OrgPolicyAPIRequest<com.google.api.services.orgpolicy.v
19491949
java.util.regex.Pattern.compile("^organizations/[^/]+/customConstraints/[^/]+$");
19501950

19511951
/**
1952-
* Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the
1953-
* custom constraint does not exist.
1952+
* Gets a custom or managed constraint. Returns a `google.rpc.Status` with
1953+
* `google.rpc.Code.NOT_FOUND` if the custom or managed constraint does not exist.
19541954
*
19551955
* Create a request for the method "customConstraints.get".
19561956
*
@@ -1959,8 +1959,8 @@ public class Get extends OrgPolicyAPIRequest<com.google.api.services.orgpolicy.v
19591959
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
19601960
* must be called to initialize this instance immediately after invoking the constructor. </p>
19611961
*
1962-
* @param name Required. Resource name of the custom constraint. See the custom constraint entry for naming
1963-
* requirements.
1962+
* @param name Required. Resource name of the custom or managed constraint. See the custom constraint entry for
1963+
* naming requirements.
19641964
* @since 1.13
19651965
*/
19661966
protected Get(java.lang.String name) {
@@ -2039,22 +2039,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) {
20392039
}
20402040

20412041
/**
2042-
* Required. Resource name of the custom constraint. See the custom constraint entry for
2043-
* naming requirements.
2042+
* Required. Resource name of the custom or managed constraint. See the custom constraint
2043+
* entry for naming requirements.
20442044
*/
20452045
@com.google.api.client.util.Key
20462046
private java.lang.String name;
20472047

2048-
/** Required. Resource name of the custom constraint. See the custom constraint entry for naming
2049-
requirements.
2048+
/** Required. Resource name of the custom or managed constraint. See the custom constraint entry for
2049+
naming requirements.
20502050
*/
20512051
public java.lang.String getName() {
20522052
return name;
20532053
}
20542054

20552055
/**
2056-
* Required. Resource name of the custom constraint. See the custom constraint entry for
2057-
* naming requirements.
2056+
* Required. Resource name of the custom or managed constraint. See the custom constraint
2057+
* entry for naming requirements.
20582058
*/
20592059
public Get setName(java.lang.String name) {
20602060
if (!getSuppressPatternChecks()) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here
21-
* is specific for dry-run/darklaunch.
21+
* is specific for dry-run.
2222
*
2323
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2424
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
* can be configured by the organization policy administrator to fit the needs of the organization
2424
* by setting a policy that includes constraints at different locations in the organization's
2525
* resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but
26-
* can also be overridden. For details about the inheritance rules please read about `policies`.
27-
* Constraints have a default behavior determined by the `constraint_default` field, which is the
28-
* enforcement behavior that is used in the absence of a policy being defined or inherited for the
29-
* resource in question.
26+
* can also be overridden. For details about the inheritance rules, see `Policy`. Constraints have a
27+
* default behavior determined by the `constraint_default` field, which is the enforcement behavior
28+
* that is used in the absence of a policy being defined or inherited for the resource in question.
3029
*
3130
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
3231
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation
@@ -40,7 +39,7 @@
4039
public final class GoogleCloudOrgpolicyV2Constraint extends com.google.api.client.json.GenericJson {
4140

4241
/**
43-
* Defines this constraint as being a BooleanConstraint.
42+
* Defines this constraint as being a boolean constraint.
4443
* The value may be {@code null}.
4544
*/
4645
@com.google.api.client.util.Key
@@ -69,7 +68,7 @@ public final class GoogleCloudOrgpolicyV2Constraint extends com.google.api.clien
6968
private java.lang.String displayName;
7069

7170
/**
72-
* Defines this constraint as being a ListConstraint.
71+
* Defines this constraint as being a list constraint.
7372
* The value may be {@code null}.
7473
*/
7574
@com.google.api.client.util.Key
@@ -101,15 +100,15 @@ public final class GoogleCloudOrgpolicyV2Constraint extends com.google.api.clien
101100
private java.lang.Boolean supportsSimulation;
102101

103102
/**
104-
* Defines this constraint as being a BooleanConstraint.
103+
* Defines this constraint as being a boolean constraint.
105104
* @return value or {@code null} for none
106105
*/
107106
public GoogleCloudOrgpolicyV2ConstraintBooleanConstraint getBooleanConstraint() {
108107
return booleanConstraint;
109108
}
110109

111110
/**
112-
* Defines this constraint as being a BooleanConstraint.
111+
* Defines this constraint as being a boolean constraint.
113112
* @param booleanConstraint booleanConstraint or {@code null} for none
114113
*/
115114
public GoogleCloudOrgpolicyV2Constraint setBooleanConstraint(GoogleCloudOrgpolicyV2ConstraintBooleanConstraint booleanConstraint) {
@@ -171,15 +170,15 @@ public GoogleCloudOrgpolicyV2Constraint setDisplayName(java.lang.String displayN
171170
}
172171

173172
/**
174-
* Defines this constraint as being a ListConstraint.
173+
* Defines this constraint as being a list constraint.
175174
* @return value or {@code null} for none
176175
*/
177176
public GoogleCloudOrgpolicyV2ConstraintListConstraint getListConstraint() {
178177
return listConstraint;
179178
}
180179

181180
/**
182-
* Defines this constraint as being a ListConstraint.
181+
* Defines this constraint as being a list constraint.
183182
* @param listConstraint listConstraint or {@code null} for none
184183
*/
185184
public GoogleCloudOrgpolicyV2Constraint setListConstraint(GoogleCloudOrgpolicyV2ConstraintListConstraint listConstraint) {

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
package com.google.api.services.orgpolicy.v2.model;
1818

1919
/**
20-
* A constraint that is either enforced or not. For example, a constraint
21-
* `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port
22-
* connections will not be opened to that instance.
20+
* A constraint type is enforced or not enforced, which is configured in the `PolicyRule`. If
21+
* `customConstraintDefinition` is defined, this constraint is a managed constraint.
2322
*
2423
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2524
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation
@@ -33,22 +32,22 @@
3332
public final class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint extends com.google.api.client.json.GenericJson {
3433

3534
/**
36-
* Custom constraint definition. This is set only for Managed Constraints
35+
* Custom constraint definition. Defines this as a managed constraint.
3736
* The value may be {@code null}.
3837
*/
3938
@com.google.api.client.util.Key
4039
private GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition customConstraintDefinition;
4140

4241
/**
43-
* Custom constraint definition. This is set only for Managed Constraints
42+
* Custom constraint definition. Defines this as a managed constraint.
4443
* @return value or {@code null} for none
4544
*/
4645
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition getCustomConstraintDefinition() {
4746
return customConstraintDefinition;
4847
}
4948

5049
/**
51-
* Custom constraint definition. This is set only for Managed Constraints
50+
* Custom constraint definition. Defines this as a managed constraint.
5251
* @param customConstraintDefinition customConstraintDefinition or {@code null} for none
5352
*/
5453
public GoogleCloudOrgpolicyV2ConstraintBooleanConstraint setCustomConstraintDefinition(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition customConstraintDefinition) {

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
package com.google.api.services.orgpolicy.v2.model;
1818

1919
/**
20-
* Currently used for Managed Constraints. This represents a subset of fields missing from
21-
* Constraint proto that are required to describe CustomConstraint
20+
* Custom constraint definition. Defines this as a managed constraint.
2221
*
2322
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2423
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation
@@ -55,8 +54,8 @@ public final class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition ex
5554
private java.util.List<java.lang.String> methodTypes;
5655

5756
/**
58-
* Stores Structure of parameters used by Constraint condition. Key of map represents name of the
59-
* parameter.
57+
* Stores the structure of `Parameters` used by the constraint condition. The key of `map`
58+
* represents the name of the parameter.
6059
* The value may be {@code null}.
6160
*/
6261
@com.google.api.client.util.Key
@@ -126,17 +125,17 @@ public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setMethodTypes
126125
}
127126

128127
/**
129-
* Stores Structure of parameters used by Constraint condition. Key of map represents name of the
130-
* parameter.
128+
* Stores the structure of `Parameters` used by the constraint condition. The key of `map`
129+
* represents the name of the parameter.
131130
* @return value or {@code null} for none
132131
*/
133132
public java.util.Map<String, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter> getParameters() {
134133
return parameters;
135134
}
136135

137136
/**
138-
* Stores Structure of parameters used by Constraint condition. Key of map represents name of the
139-
* parameter.
137+
* Stores the structure of `Parameters` used by the constraint condition. The key of `map`
138+
* represents the name of the parameter.
140139
* @param parameters parameters or {@code null} for none
141140
*/
142141
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setParameters(java.util.Map<String, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter> parameters) {

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public final class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionPar
3838
private java.lang.Object defaultValue;
3939

4040
/**
41-
* Determines the parameters value structure. For example, LIST can be specified by defining type
42-
* : LIST, and item type as : STRING.
41+
* Determines the parameter's value structure. For example, `LIST` can be specified by defining
42+
* `type: LIST`, and `item: STRING`.
4343
* The value may be {@code null}.
4444
*/
4545
@com.google.api.client.util.Key
@@ -85,17 +85,17 @@ public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter setDe
8585
}
8686

8787
/**
88-
* Determines the parameters value structure. For example, LIST can be specified by defining type
89-
* : LIST, and item type as : STRING.
88+
* Determines the parameter's value structure. For example, `LIST` can be specified by defining
89+
* `type: LIST`, and `item: STRING`.
9090
* @return value or {@code null} for none
9191
*/
9292
public java.lang.String getItem() {
9393
return item;
9494
}
9595

9696
/**
97-
* Determines the parameters value structure. For example, LIST can be specified by defining type
98-
* : LIST, and item type as : STRING.
97+
* Determines the parameter's value structure. For example, `LIST` can be specified by defining
98+
* `type: LIST`, and `item: STRING`.
9999
* @param item item or {@code null} for none
100100
*/
101101
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter setItem(java.lang.String item) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.orgpolicy.v2.model;
1818

1919
/**
20-
* Defines Medata structure.
20+
* Defines Metadata structure.
2121
*
2222
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2323
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package com.google.api.services.orgpolicy.v2.model;
1818

1919
/**
20-
* A constraint that allows or disallows a list of string values, which are configured by an
21-
* Organization Policy administrator with a policy.
20+
* A constraint type that allows or disallows a list of string values, which are configured in the
21+
* `PolicyRule`.
2222
*
2323
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2424
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public final class GoogleCloudOrgpolicyV2CustomConstraint extends com.google.api
4040
private java.lang.String actionType;
4141

4242
/**
43-
* Org policy condition/expression. For example:
44-
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
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,
4545
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
4646
* The value may be {@code null}.
4747
*/
@@ -91,7 +91,7 @@ public final class GoogleCloudOrgpolicyV2CustomConstraint extends com.google.api
9191

9292
/**
9393
* Output only. The last time this custom constraint was updated. This represents the last time
94-
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called
94+
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called.
9595
* The value may be {@code null}.
9696
*/
9797
@com.google.api.client.util.Key
@@ -115,8 +115,8 @@ public GoogleCloudOrgpolicyV2CustomConstraint setActionType(java.lang.String act
115115
}
116116

117117
/**
118-
* Org policy condition/expression. For example:
119-
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
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,
120120
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
121121
* @return value or {@code null} for none
122122
*/
@@ -125,8 +125,8 @@ public java.lang.String getCondition() {
125125
}
126126

127127
/**
128-
* Org policy condition/expression. For example:
129-
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
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,
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
*/
@@ -234,7 +234,7 @@ public GoogleCloudOrgpolicyV2CustomConstraint setResourceTypes(java.util.List<ja
234234

235235
/**
236236
* Output only. The last time this custom constraint was updated. This represents the last time
237-
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called
237+
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called.
238238
* @return value or {@code null} for none
239239
*/
240240
public String getUpdateTime() {
@@ -243,7 +243,7 @@ public String getUpdateTime() {
243243

244244
/**
245245
* Output only. The last time this custom constraint was updated. This represents the last time
246-
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called
246+
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called.
247247
* @param updateTime updateTime or {@code null} for none
248248
*/
249249
public GoogleCloudOrgpolicyV2CustomConstraint setUpdateTime(String updateTime) {

0 commit comments

Comments
 (0)