Skip to content

Commit ab0c12f

Browse files
1 parent 9b25e06 commit ab0c12f

7 files changed

+442
-6
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-rev20240513-2.0.0</version>
25+
<version>v2-rev20241021-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-rev20240513-2.0.0'
38+
implementation 'com.google.apis:google-api-services-orgpolicy:v2-rev20241021-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@
3232
@SuppressWarnings("javadoc")
3333
public final class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint extends com.google.api.client.json.GenericJson {
3434

35+
/**
36+
* Custom constraint definition. This is set only for Managed Constraints
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition customConstraintDefinition;
41+
42+
/**
43+
* Custom constraint definition. This is set only for Managed Constraints
44+
* @return value or {@code null} for none
45+
*/
46+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition getCustomConstraintDefinition() {
47+
return customConstraintDefinition;
48+
}
49+
50+
/**
51+
* Custom constraint definition. This is set only for Managed Constraints
52+
* @param customConstraintDefinition customConstraintDefinition or {@code null} for none
53+
*/
54+
public GoogleCloudOrgpolicyV2ConstraintBooleanConstraint setCustomConstraintDefinition(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition customConstraintDefinition) {
55+
this.customConstraintDefinition = customConstraintDefinition;
56+
return this;
57+
}
58+
3559
@Override
3660
public GoogleCloudOrgpolicyV2ConstraintBooleanConstraint set(String fieldName, Object value) {
3761
return (GoogleCloudOrgpolicyV2ConstraintBooleanConstraint) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.orgpolicy.v2.model;
18+
19+
/**
20+
* Currently used for Managed Constraints. This represents a subset of fields missing from
21+
* Constraint proto that are required to describe CustomConstraint
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation
25+
* see:
26+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Allow or deny type.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String actionType;
40+
41+
/**
42+
* Org policy condition/expression. For example:
43+
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
44+
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String condition;
49+
50+
/**
51+
* All the operations being applied for this constraint.
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private java.util.List<java.lang.String> methodTypes;
56+
57+
/**
58+
* Stores Structure of parameters used by Constraint condition. Key of map represents name of the
59+
* parameter.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private java.util.Map<String, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter> parameters;
64+
65+
/**
66+
* The resource instance type on which this policy applies. Format will be of the form : `/`
67+
* Example: * `compute.googleapis.com/Instance`.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private java.util.List<java.lang.String> resourceTypes;
72+
73+
/**
74+
* Allow or deny type.
75+
* @return value or {@code null} for none
76+
*/
77+
public java.lang.String getActionType() {
78+
return actionType;
79+
}
80+
81+
/**
82+
* Allow or deny type.
83+
* @param actionType actionType or {@code null} for none
84+
*/
85+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setActionType(java.lang.String actionType) {
86+
this.actionType = actionType;
87+
return this;
88+
}
89+
90+
/**
91+
* Org policy condition/expression. For example:
92+
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
93+
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
94+
* @return value or {@code null} for none
95+
*/
96+
public java.lang.String getCondition() {
97+
return condition;
98+
}
99+
100+
/**
101+
* Org policy condition/expression. For example:
102+
* `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
103+
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
104+
* @param condition condition or {@code null} for none
105+
*/
106+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setCondition(java.lang.String condition) {
107+
this.condition = condition;
108+
return this;
109+
}
110+
111+
/**
112+
* All the operations being applied for this constraint.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.util.List<java.lang.String> getMethodTypes() {
116+
return methodTypes;
117+
}
118+
119+
/**
120+
* All the operations being applied for this constraint.
121+
* @param methodTypes methodTypes or {@code null} for none
122+
*/
123+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setMethodTypes(java.util.List<java.lang.String> methodTypes) {
124+
this.methodTypes = methodTypes;
125+
return this;
126+
}
127+
128+
/**
129+
* Stores Structure of parameters used by Constraint condition. Key of map represents name of the
130+
* parameter.
131+
* @return value or {@code null} for none
132+
*/
133+
public java.util.Map<String, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter> getParameters() {
134+
return parameters;
135+
}
136+
137+
/**
138+
* Stores Structure of parameters used by Constraint condition. Key of map represents name of the
139+
* parameter.
140+
* @param parameters parameters or {@code null} for none
141+
*/
142+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setParameters(java.util.Map<String, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter> parameters) {
143+
this.parameters = parameters;
144+
return this;
145+
}
146+
147+
/**
148+
* The resource instance type on which this policy applies. Format will be of the form : `/`
149+
* Example: * `compute.googleapis.com/Instance`.
150+
* @return value or {@code null} for none
151+
*/
152+
public java.util.List<java.lang.String> getResourceTypes() {
153+
return resourceTypes;
154+
}
155+
156+
/**
157+
* The resource instance type on which this policy applies. Format will be of the form : `/`
158+
* Example: * `compute.googleapis.com/Instance`.
159+
* @param resourceTypes resourceTypes or {@code null} for none
160+
*/
161+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition setResourceTypes(java.util.List<java.lang.String> resourceTypes) {
162+
this.resourceTypes = resourceTypes;
163+
return this;
164+
}
165+
166+
@Override
167+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition set(String fieldName, Object value) {
168+
return (GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition) super.set(fieldName, value);
169+
}
170+
171+
@Override
172+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition clone() {
173+
return (GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition) super.clone();
174+
}
175+
176+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.orgpolicy.v2.model;
18+
19+
/**
20+
* Defines a parameter structure.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Organization Policy API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Sets the value of the parameter in an assignment if no value is given.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Object defaultValue;
39+
40+
/**
41+
* Determines the parameter’s value structure. For example, LIST can be specified by defining type
42+
* : LIST, and item type as : STRING.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String item;
47+
48+
/**
49+
* Defines subproperties primarily used by the UI to display user-friendly information.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata metadata;
54+
55+
/**
56+
* Type of the parameter.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String type;
61+
62+
/**
63+
* Provides a CEL expression to specify the acceptable parameter values during assignment. For
64+
* example, parameterName in ("parameterValue1", "parameterValue2")
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private java.lang.String validValuesExpr;
69+
70+
/**
71+
* Sets the value of the parameter in an assignment if no value is given.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.Object getDefaultValue() {
75+
return defaultValue;
76+
}
77+
78+
/**
79+
* Sets the value of the parameter in an assignment if no value is given.
80+
* @param defaultValue defaultValue or {@code null} for none
81+
*/
82+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter setDefaultValue(java.lang.Object defaultValue) {
83+
this.defaultValue = defaultValue;
84+
return this;
85+
}
86+
87+
/**
88+
* Determines the parameter’s value structure. For example, LIST can be specified by defining type
89+
* : LIST, and item type as : STRING.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.String getItem() {
93+
return item;
94+
}
95+
96+
/**
97+
* Determines the parameter’s value structure. For example, LIST can be specified by defining type
98+
* : LIST, and item type as : STRING.
99+
* @param item item or {@code null} for none
100+
*/
101+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter setItem(java.lang.String item) {
102+
this.item = item;
103+
return this;
104+
}
105+
106+
/**
107+
* Defines subproperties primarily used by the UI to display user-friendly information.
108+
* @return value or {@code null} for none
109+
*/
110+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata getMetadata() {
111+
return metadata;
112+
}
113+
114+
/**
115+
* Defines subproperties primarily used by the UI to display user-friendly information.
116+
* @param metadata metadata or {@code null} for none
117+
*/
118+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter setMetadata(GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata metadata) {
119+
this.metadata = metadata;
120+
return this;
121+
}
122+
123+
/**
124+
* Type of the parameter.
125+
* @return value or {@code null} for none
126+
*/
127+
public java.lang.String getType() {
128+
return type;
129+
}
130+
131+
/**
132+
* Type of the parameter.
133+
* @param type type or {@code null} for none
134+
*/
135+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter setType(java.lang.String type) {
136+
this.type = type;
137+
return this;
138+
}
139+
140+
/**
141+
* Provides a CEL expression to specify the acceptable parameter values during assignment. For
142+
* example, parameterName in ("parameterValue1", "parameterValue2")
143+
* @return value or {@code null} for none
144+
*/
145+
public java.lang.String getValidValuesExpr() {
146+
return validValuesExpr;
147+
}
148+
149+
/**
150+
* Provides a CEL expression to specify the acceptable parameter values during assignment. For
151+
* example, parameterName in ("parameterValue1", "parameterValue2")
152+
* @param validValuesExpr validValuesExpr or {@code null} for none
153+
*/
154+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter setValidValuesExpr(java.lang.String validValuesExpr) {
155+
this.validValuesExpr = validValuesExpr;
156+
return this;
157+
}
158+
159+
@Override
160+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter set(String fieldName, Object value) {
161+
return (GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter) super.set(fieldName, value);
162+
}
163+
164+
@Override
165+
public GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter clone() {
166+
return (GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter) super.clone();
167+
}
168+
169+
}

0 commit comments

Comments
 (0)