Skip to content

Commit af5e7be

Browse files
1 parent 87cb64b commit af5e7be

File tree

4 files changed

+352
-7
lines changed

4 files changed

+352
-7
lines changed

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

clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/CloudDeploy.java

Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,204 @@ public Get set(String parameterName, Object value) {
12871287
return (Get) super.set(parameterName, value);
12881288
}
12891289
}
1290+
/**
1291+
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and
1292+
* does not have a policy set.
1293+
*
1294+
* Create a request for the method "customTargetTypes.getIamPolicy".
1295+
*
1296+
* This request holds the parameters needed by the clouddeploy server. After setting any optional
1297+
* parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.
1298+
*
1299+
* @param resource REQUIRED: The resource for which the policy is being requested. See [Resource
1300+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1301+
* this field.
1302+
* @return the request
1303+
*/
1304+
public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException {
1305+
GetIamPolicy result = new GetIamPolicy(resource);
1306+
initialize(result);
1307+
return result;
1308+
}
1309+
1310+
public class GetIamPolicy extends CloudDeployRequest<com.google.api.services.clouddeploy.v1.model.Policy> {
1311+
1312+
private static final String REST_PATH = "v1/{+resource}:getIamPolicy";
1313+
1314+
private final java.util.regex.Pattern RESOURCE_PATTERN =
1315+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customTargetTypes/[^/]+$");
1316+
1317+
/**
1318+
* Gets the access control policy for a resource. Returns an empty policy if the resource exists
1319+
* and does not have a policy set.
1320+
*
1321+
* Create a request for the method "customTargetTypes.getIamPolicy".
1322+
*
1323+
* This request holds the parameters needed by the the clouddeploy server. After setting any
1324+
* optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote
1325+
* operation. <p> {@link
1326+
* GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1327+
* must be called to initialize this instance immediately after invoking the constructor. </p>
1328+
*
1329+
* @param resource REQUIRED: The resource for which the policy is being requested. See [Resource
1330+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1331+
* this field.
1332+
* @since 1.13
1333+
*/
1334+
protected GetIamPolicy(java.lang.String resource) {
1335+
super(CloudDeploy.this, "GET", REST_PATH, null, com.google.api.services.clouddeploy.v1.model.Policy.class);
1336+
this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified.");
1337+
if (!getSuppressPatternChecks()) {
1338+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
1339+
"Parameter resource must conform to the pattern " +
1340+
"^projects/[^/]+/locations/[^/]+/customTargetTypes/[^/]+$");
1341+
}
1342+
}
1343+
1344+
@Override
1345+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1346+
return super.executeUsingHead();
1347+
}
1348+
1349+
@Override
1350+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1351+
return super.buildHttpRequestUsingHead();
1352+
}
1353+
1354+
@Override
1355+
public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) {
1356+
return (GetIamPolicy) super.set$Xgafv($Xgafv);
1357+
}
1358+
1359+
@Override
1360+
public GetIamPolicy setAccessToken(java.lang.String accessToken) {
1361+
return (GetIamPolicy) super.setAccessToken(accessToken);
1362+
}
1363+
1364+
@Override
1365+
public GetIamPolicy setAlt(java.lang.String alt) {
1366+
return (GetIamPolicy) super.setAlt(alt);
1367+
}
1368+
1369+
@Override
1370+
public GetIamPolicy setCallback(java.lang.String callback) {
1371+
return (GetIamPolicy) super.setCallback(callback);
1372+
}
1373+
1374+
@Override
1375+
public GetIamPolicy setFields(java.lang.String fields) {
1376+
return (GetIamPolicy) super.setFields(fields);
1377+
}
1378+
1379+
@Override
1380+
public GetIamPolicy setKey(java.lang.String key) {
1381+
return (GetIamPolicy) super.setKey(key);
1382+
}
1383+
1384+
@Override
1385+
public GetIamPolicy setOauthToken(java.lang.String oauthToken) {
1386+
return (GetIamPolicy) super.setOauthToken(oauthToken);
1387+
}
1388+
1389+
@Override
1390+
public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
1391+
return (GetIamPolicy) super.setPrettyPrint(prettyPrint);
1392+
}
1393+
1394+
@Override
1395+
public GetIamPolicy setQuotaUser(java.lang.String quotaUser) {
1396+
return (GetIamPolicy) super.setQuotaUser(quotaUser);
1397+
}
1398+
1399+
@Override
1400+
public GetIamPolicy setUploadType(java.lang.String uploadType) {
1401+
return (GetIamPolicy) super.setUploadType(uploadType);
1402+
}
1403+
1404+
@Override
1405+
public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) {
1406+
return (GetIamPolicy) super.setUploadProtocol(uploadProtocol);
1407+
}
1408+
1409+
/**
1410+
* REQUIRED: The resource for which the policy is being requested. See [Resource
1411+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
1412+
* for this field.
1413+
*/
1414+
@com.google.api.client.util.Key
1415+
private java.lang.String resource;
1416+
1417+
/** REQUIRED: The resource for which the policy is being requested. See [Resource
1418+
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1419+
field.
1420+
*/
1421+
public java.lang.String getResource() {
1422+
return resource;
1423+
}
1424+
1425+
/**
1426+
* REQUIRED: The resource for which the policy is being requested. See [Resource
1427+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
1428+
* for this field.
1429+
*/
1430+
public GetIamPolicy setResource(java.lang.String resource) {
1431+
if (!getSuppressPatternChecks()) {
1432+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
1433+
"Parameter resource must conform to the pattern " +
1434+
"^projects/[^/]+/locations/[^/]+/customTargetTypes/[^/]+$");
1435+
}
1436+
this.resource = resource;
1437+
return this;
1438+
}
1439+
1440+
/**
1441+
* Optional. The maximum policy version that will be used to format the policy. Valid
1442+
* values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests
1443+
* for policies with any conditional role bindings must specify version 3. Policies with
1444+
* no conditional role bindings may specify any valid value or leave the field unset. The
1445+
* policy in the response might use the policy version that you specified, or it might use
1446+
* a lower policy version. For example, if you specify version 3, but the policy has no
1447+
* conditional role bindings, the response uses version 1. To learn which resources
1448+
* support conditions in their IAM policies, see the [IAM
1449+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1450+
*/
1451+
@com.google.api.client.util.Key("options.requestedPolicyVersion")
1452+
private java.lang.Integer optionsRequestedPolicyVersion;
1453+
1454+
/** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1,
1455+
and 3. Requests specifying an invalid value will be rejected. Requests for policies with any
1456+
conditional role bindings must specify version 3. Policies with no conditional role bindings may
1457+
specify any valid value or leave the field unset. The policy in the response might use the policy
1458+
version that you specified, or it might use a lower policy version. For example, if you specify
1459+
version 3, but the policy has no conditional role bindings, the response uses version 1. To learn
1460+
which resources support conditions in their IAM policies, see the [IAM
1461+
documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1462+
*/
1463+
public java.lang.Integer getOptionsRequestedPolicyVersion() {
1464+
return optionsRequestedPolicyVersion;
1465+
}
1466+
1467+
/**
1468+
* Optional. The maximum policy version that will be used to format the policy. Valid
1469+
* values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests
1470+
* for policies with any conditional role bindings must specify version 3. Policies with
1471+
* no conditional role bindings may specify any valid value or leave the field unset. The
1472+
* policy in the response might use the policy version that you specified, or it might use
1473+
* a lower policy version. For example, if you specify version 3, but the policy has no
1474+
* conditional role bindings, the response uses version 1. To learn which resources
1475+
* support conditions in their IAM policies, see the [IAM
1476+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1477+
*/
1478+
public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) {
1479+
this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion;
1480+
return this;
1481+
}
1482+
1483+
@Override
1484+
public GetIamPolicy set(String parameterName, Object value) {
1485+
return (GetIamPolicy) super.set(parameterName, value);
1486+
}
1487+
}
12901488
/**
12911489
* Lists CustomTargetTypes in a given project and location.
12921490
*
@@ -1787,6 +1985,153 @@ public Patch set(String parameterName, Object value) {
17871985
return (Patch) super.set(parameterName, value);
17881986
}
17891987
}
1988+
/**
1989+
* Sets the access control policy on the specified resource. Replaces any existing policy. Can
1990+
* return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1991+
*
1992+
* Create a request for the method "customTargetTypes.setIamPolicy".
1993+
*
1994+
* This request holds the parameters needed by the clouddeploy server. After setting any optional
1995+
* parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.
1996+
*
1997+
* @param resource REQUIRED: The resource for which the policy is being specified. See [Resource
1998+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1999+
* this field.
2000+
* @param content the {@link com.google.api.services.clouddeploy.v1.model.SetIamPolicyRequest}
2001+
* @return the request
2002+
*/
2003+
public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.clouddeploy.v1.model.SetIamPolicyRequest content) throws java.io.IOException {
2004+
SetIamPolicy result = new SetIamPolicy(resource, content);
2005+
initialize(result);
2006+
return result;
2007+
}
2008+
2009+
public class SetIamPolicy extends CloudDeployRequest<com.google.api.services.clouddeploy.v1.model.Policy> {
2010+
2011+
private static final String REST_PATH = "v1/{+resource}:setIamPolicy";
2012+
2013+
private final java.util.regex.Pattern RESOURCE_PATTERN =
2014+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customTargetTypes/[^/]+$");
2015+
2016+
/**
2017+
* Sets the access control policy on the specified resource. Replaces any existing policy. Can
2018+
* return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
2019+
*
2020+
* Create a request for the method "customTargetTypes.setIamPolicy".
2021+
*
2022+
* This request holds the parameters needed by the the clouddeploy server. After setting any
2023+
* optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote
2024+
* operation. <p> {@link
2025+
* SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
2026+
* must be called to initialize this instance immediately after invoking the constructor. </p>
2027+
*
2028+
* @param resource REQUIRED: The resource for which the policy is being specified. See [Resource
2029+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
2030+
* this field.
2031+
* @param content the {@link com.google.api.services.clouddeploy.v1.model.SetIamPolicyRequest}
2032+
* @since 1.13
2033+
*/
2034+
protected SetIamPolicy(java.lang.String resource, com.google.api.services.clouddeploy.v1.model.SetIamPolicyRequest content) {
2035+
super(CloudDeploy.this, "POST", REST_PATH, content, com.google.api.services.clouddeploy.v1.model.Policy.class);
2036+
this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified.");
2037+
if (!getSuppressPatternChecks()) {
2038+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
2039+
"Parameter resource must conform to the pattern " +
2040+
"^projects/[^/]+/locations/[^/]+/customTargetTypes/[^/]+$");
2041+
}
2042+
}
2043+
2044+
@Override
2045+
public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) {
2046+
return (SetIamPolicy) super.set$Xgafv($Xgafv);
2047+
}
2048+
2049+
@Override
2050+
public SetIamPolicy setAccessToken(java.lang.String accessToken) {
2051+
return (SetIamPolicy) super.setAccessToken(accessToken);
2052+
}
2053+
2054+
@Override
2055+
public SetIamPolicy setAlt(java.lang.String alt) {
2056+
return (SetIamPolicy) super.setAlt(alt);
2057+
}
2058+
2059+
@Override
2060+
public SetIamPolicy setCallback(java.lang.String callback) {
2061+
return (SetIamPolicy) super.setCallback(callback);
2062+
}
2063+
2064+
@Override
2065+
public SetIamPolicy setFields(java.lang.String fields) {
2066+
return (SetIamPolicy) super.setFields(fields);
2067+
}
2068+
2069+
@Override
2070+
public SetIamPolicy setKey(java.lang.String key) {
2071+
return (SetIamPolicy) super.setKey(key);
2072+
}
2073+
2074+
@Override
2075+
public SetIamPolicy setOauthToken(java.lang.String oauthToken) {
2076+
return (SetIamPolicy) super.setOauthToken(oauthToken);
2077+
}
2078+
2079+
@Override
2080+
public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
2081+
return (SetIamPolicy) super.setPrettyPrint(prettyPrint);
2082+
}
2083+
2084+
@Override
2085+
public SetIamPolicy setQuotaUser(java.lang.String quotaUser) {
2086+
return (SetIamPolicy) super.setQuotaUser(quotaUser);
2087+
}
2088+
2089+
@Override
2090+
public SetIamPolicy setUploadType(java.lang.String uploadType) {
2091+
return (SetIamPolicy) super.setUploadType(uploadType);
2092+
}
2093+
2094+
@Override
2095+
public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) {
2096+
return (SetIamPolicy) super.setUploadProtocol(uploadProtocol);
2097+
}
2098+
2099+
/**
2100+
* REQUIRED: The resource for which the policy is being specified. See [Resource
2101+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
2102+
* for this field.
2103+
*/
2104+
@com.google.api.client.util.Key
2105+
private java.lang.String resource;
2106+
2107+
/** REQUIRED: The resource for which the policy is being specified. See [Resource
2108+
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
2109+
field.
2110+
*/
2111+
public java.lang.String getResource() {
2112+
return resource;
2113+
}
2114+
2115+
/**
2116+
* REQUIRED: The resource for which the policy is being specified. See [Resource
2117+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
2118+
* for this field.
2119+
*/
2120+
public SetIamPolicy setResource(java.lang.String resource) {
2121+
if (!getSuppressPatternChecks()) {
2122+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
2123+
"Parameter resource must conform to the pattern " +
2124+
"^projects/[^/]+/locations/[^/]+/customTargetTypes/[^/]+$");
2125+
}
2126+
this.resource = resource;
2127+
return this;
2128+
}
2129+
2130+
@Override
2131+
public SetIamPolicy set(String parameterName, Object value) {
2132+
return (SetIamPolicy) super.set(parameterName, value);
2133+
}
2134+
}
17902135

17912136
}
17922137
/**

clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml

Lines changed: 3 additions & 3 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-clouddeploy</artifactId>
11-
<version>v1-rev20240107-2.0.0</version>
12-
<name>Cloud Deploy API v1-rev20240107-2.0.0</name>
11+
<version>v1-rev20240117-2.0.0</version>
12+
<name>Cloud Deploy API v1-rev20240117-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>
@@ -91,7 +91,7 @@
9191
<links>
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
9393
<link>https://googleapis.dev/java/google-http-client/1.43.3/</link>
94-
<link>https://googleapis.dev/java/google-oauth-client/1.34.1/</link>
94+
<link>https://googleapis.dev/java/google-oauth-client/1.35.0/</link>
9595
<link>https://googleapis.dev/java/google-api-client/2.2.0/</link>
9696
</links>
9797
</configuration>

0 commit comments

Comments
 (0)