Skip to content

Commit 16c0636

Browse files
1 parent 1303a3c commit 16c0636

19 files changed

+3012
-6
lines changed

clients/google-api-services-policysimulator/v1/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-policysimulator</artifactId>
25-
<version>v1-rev20250323-2.0.0</version>
25+
<version>v1-rev20250601-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-policysimulator:v1-rev20250323-2.0.0'
38+
implementation 'com.google.apis:google-api-services-policysimulator:v1-rev20250601-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-policysimulator/v1/2.0.0/com/google/api/services/policysimulator/v1/PolicySimulator.java

Lines changed: 739 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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.policysimulator.v1.model;
18+
19+
/**
20+
* Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here
21+
* is specific for dry-run.
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 Policy Simulator API. For a detailed explanation 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 GoogleCloudOrgpolicyV2AlternatePolicySpec extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Reference to the launch that will be used while audit logging and to control the launch. Should
35+
* be set only in the alternate policy.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String launch;
40+
41+
/**
42+
* Specify constraint for configurations of Google Cloud resources.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private GoogleCloudOrgpolicyV2PolicySpec spec;
47+
48+
/**
49+
* Reference to the launch that will be used while audit logging and to control the launch. Should
50+
* be set only in the alternate policy.
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.String getLaunch() {
54+
return launch;
55+
}
56+
57+
/**
58+
* Reference to the launch that will be used while audit logging and to control the launch. Should
59+
* be set only in the alternate policy.
60+
* @param launch launch or {@code null} for none
61+
*/
62+
public GoogleCloudOrgpolicyV2AlternatePolicySpec setLaunch(java.lang.String launch) {
63+
this.launch = launch;
64+
return this;
65+
}
66+
67+
/**
68+
* Specify constraint for configurations of Google Cloud resources.
69+
* @return value or {@code null} for none
70+
*/
71+
public GoogleCloudOrgpolicyV2PolicySpec getSpec() {
72+
return spec;
73+
}
74+
75+
/**
76+
* Specify constraint for configurations of Google Cloud resources.
77+
* @param spec spec or {@code null} for none
78+
*/
79+
public GoogleCloudOrgpolicyV2AlternatePolicySpec setSpec(GoogleCloudOrgpolicyV2PolicySpec spec) {
80+
this.spec = spec;
81+
return this;
82+
}
83+
84+
@Override
85+
public GoogleCloudOrgpolicyV2AlternatePolicySpec set(String fieldName, Object value) {
86+
return (GoogleCloudOrgpolicyV2AlternatePolicySpec) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public GoogleCloudOrgpolicyV2AlternatePolicySpec clone() {
91+
return (GoogleCloudOrgpolicyV2AlternatePolicySpec) super.clone();
92+
}
93+
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
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.policysimulator.v1.model;
18+
19+
/**
20+
* A custom constraint defined by customers which can *only* be applied to the given resource types
21+
* and organization. By creating a custom constraint, customers can apply policies of this custom
22+
* constraint. *Creating a custom constraint itself does NOT apply any policy enforcement*.
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Policy Simulator API. For a detailed explanation 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 GoogleCloudOrgpolicyV2CustomConstraint 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+
* A Common Expression Language (CEL) condition which is used in the evaluation of the constraint.
43+
* For example: `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+
* Detailed information about this custom policy constraint. The max length of the description is
52+
* 2000 characters.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.String description;
57+
58+
/**
59+
* One line display name for the UI. The max length of the display_name is 200 characters.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private java.lang.String displayName;
64+
65+
/**
66+
* All the operations being applied for this constraint.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private java.util.List<java.lang.String> methodTypes;
71+
72+
/**
73+
* Immutable. Name of the constraint. This is unique within the organization. Format of the name
74+
* should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example:
75+
* `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70
76+
* characters and the minimum length is 1. Note that the prefix
77+
* `organizations/{organization_id}/customConstraints/` is not counted.
78+
* The value may be {@code null}.
79+
*/
80+
@com.google.api.client.util.Key
81+
private java.lang.String name;
82+
83+
/**
84+
* Immutable. The resource instance type on which this policy applies. Format will be of the form
85+
* : `/` Example: * `compute.googleapis.com/Instance`.
86+
* The value may be {@code null}.
87+
*/
88+
@com.google.api.client.util.Key
89+
private java.util.List<java.lang.String> resourceTypes;
90+
91+
/**
92+
* Output only. The last time this custom constraint was updated. This represents the last time
93+
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called.
94+
* The value may be {@code null}.
95+
*/
96+
@com.google.api.client.util.Key
97+
private String updateTime;
98+
99+
/**
100+
* Allow or deny type.
101+
* @return value or {@code null} for none
102+
*/
103+
public java.lang.String getActionType() {
104+
return actionType;
105+
}
106+
107+
/**
108+
* Allow or deny type.
109+
* @param actionType actionType or {@code null} for none
110+
*/
111+
public GoogleCloudOrgpolicyV2CustomConstraint setActionType(java.lang.String actionType) {
112+
this.actionType = actionType;
113+
return this;
114+
}
115+
116+
/**
117+
* A Common Expression Language (CEL) condition which is used in the evaluation of the constraint.
118+
* For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
119+
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
120+
* @return value or {@code null} for none
121+
*/
122+
public java.lang.String getCondition() {
123+
return condition;
124+
}
125+
126+
/**
127+
* A Common Expression Language (CEL) condition which is used in the evaluation of the constraint.
128+
* For example: `resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
129+
* `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
130+
* @param condition condition or {@code null} for none
131+
*/
132+
public GoogleCloudOrgpolicyV2CustomConstraint setCondition(java.lang.String condition) {
133+
this.condition = condition;
134+
return this;
135+
}
136+
137+
/**
138+
* Detailed information about this custom policy constraint. The max length of the description is
139+
* 2000 characters.
140+
* @return value or {@code null} for none
141+
*/
142+
public java.lang.String getDescription() {
143+
return description;
144+
}
145+
146+
/**
147+
* Detailed information about this custom policy constraint. The max length of the description is
148+
* 2000 characters.
149+
* @param description description or {@code null} for none
150+
*/
151+
public GoogleCloudOrgpolicyV2CustomConstraint setDescription(java.lang.String description) {
152+
this.description = description;
153+
return this;
154+
}
155+
156+
/**
157+
* One line display name for the UI. The max length of the display_name is 200 characters.
158+
* @return value or {@code null} for none
159+
*/
160+
public java.lang.String getDisplayName() {
161+
return displayName;
162+
}
163+
164+
/**
165+
* One line display name for the UI. The max length of the display_name is 200 characters.
166+
* @param displayName displayName or {@code null} for none
167+
*/
168+
public GoogleCloudOrgpolicyV2CustomConstraint setDisplayName(java.lang.String displayName) {
169+
this.displayName = displayName;
170+
return this;
171+
}
172+
173+
/**
174+
* All the operations being applied for this constraint.
175+
* @return value or {@code null} for none
176+
*/
177+
public java.util.List<java.lang.String> getMethodTypes() {
178+
return methodTypes;
179+
}
180+
181+
/**
182+
* All the operations being applied for this constraint.
183+
* @param methodTypes methodTypes or {@code null} for none
184+
*/
185+
public GoogleCloudOrgpolicyV2CustomConstraint setMethodTypes(java.util.List<java.lang.String> methodTypes) {
186+
this.methodTypes = methodTypes;
187+
return this;
188+
}
189+
190+
/**
191+
* Immutable. Name of the constraint. This is unique within the organization. Format of the name
192+
* should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example:
193+
* `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70
194+
* characters and the minimum length is 1. Note that the prefix
195+
* `organizations/{organization_id}/customConstraints/` is not counted.
196+
* @return value or {@code null} for none
197+
*/
198+
public java.lang.String getName() {
199+
return name;
200+
}
201+
202+
/**
203+
* Immutable. Name of the constraint. This is unique within the organization. Format of the name
204+
* should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example:
205+
* `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70
206+
* characters and the minimum length is 1. Note that the prefix
207+
* `organizations/{organization_id}/customConstraints/` is not counted.
208+
* @param name name or {@code null} for none
209+
*/
210+
public GoogleCloudOrgpolicyV2CustomConstraint setName(java.lang.String name) {
211+
this.name = name;
212+
return this;
213+
}
214+
215+
/**
216+
* Immutable. The resource instance type on which this policy applies. Format will be of the form
217+
* : `/` Example: * `compute.googleapis.com/Instance`.
218+
* @return value or {@code null} for none
219+
*/
220+
public java.util.List<java.lang.String> getResourceTypes() {
221+
return resourceTypes;
222+
}
223+
224+
/**
225+
* Immutable. The resource instance type on which this policy applies. Format will be of the form
226+
* : `/` Example: * `compute.googleapis.com/Instance`.
227+
* @param resourceTypes resourceTypes or {@code null} for none
228+
*/
229+
public GoogleCloudOrgpolicyV2CustomConstraint setResourceTypes(java.util.List<java.lang.String> resourceTypes) {
230+
this.resourceTypes = resourceTypes;
231+
return this;
232+
}
233+
234+
/**
235+
* Output only. The last time this custom constraint was updated. This represents the last time
236+
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called.
237+
* @return value or {@code null} for none
238+
*/
239+
public String getUpdateTime() {
240+
return updateTime;
241+
}
242+
243+
/**
244+
* Output only. The last time this custom constraint was updated. This represents the last time
245+
* that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called.
246+
* @param updateTime updateTime or {@code null} for none
247+
*/
248+
public GoogleCloudOrgpolicyV2CustomConstraint setUpdateTime(String updateTime) {
249+
this.updateTime = updateTime;
250+
return this;
251+
}
252+
253+
@Override
254+
public GoogleCloudOrgpolicyV2CustomConstraint set(String fieldName, Object value) {
255+
return (GoogleCloudOrgpolicyV2CustomConstraint) super.set(fieldName, value);
256+
}
257+
258+
@Override
259+
public GoogleCloudOrgpolicyV2CustomConstraint clone() {
260+
return (GoogleCloudOrgpolicyV2CustomConstraint) super.clone();
261+
}
262+
263+
}

0 commit comments

Comments
 (0)