Skip to content

Commit 4ec94e5

Browse files
yoshi-automationchingor13
authored andcommitted
Regenerate iam client (googleapis#720)
1 parent 511894d commit 4ec94e5

File tree

9 files changed

+3861
-2913
lines changed

9 files changed

+3861
-2913
lines changed

clients/1.26.0/google-api-services-iam/v1/com/google/api/services/iam/v1/Iam.java

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3373,6 +3373,195 @@ public List set(String parameterName, Object value) {
33733373
return (List) super.set(parameterName, value);
33743374
}
33753375
}
3376+
/**
3377+
* Patches a ServiceAccount.
3378+
*
3379+
* Currently, only the following fields are updatable: `display_name` and `description`.
3380+
*
3381+
* Only fields specified in the request are garaunteed to be returned in the response. Other fields
3382+
* in the response may be empty.
3383+
*
3384+
* Note: The field mask is required.
3385+
*
3386+
* Create a request for the method "serviceAccounts.patch".
3387+
*
3388+
* This request holds the parameters needed by the iam server. After setting any optional
3389+
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
3390+
*
3391+
* @param name The resource name of the service account in the following format:
3392+
* `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3393+
Requests using `-` as a wildcard for
3394+
* the `PROJECT_ID` will infer the
3395+
project from the `account` and the `ACCOUNT` value can be
3396+
* the `email`
3397+
address or the `unique_id` of the service account.
3398+
In responses the resource
3399+
* name will always be in the format
3400+
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3401+
* @param content the {@link com.google.api.services.iam.v1.model.PatchServiceAccountRequest}
3402+
* @return the request
3403+
*/
3404+
public Patch patch(java.lang.String name, com.google.api.services.iam.v1.model.PatchServiceAccountRequest content) throws java.io.IOException {
3405+
Patch result = new Patch(name, content);
3406+
initialize(result);
3407+
return result;
3408+
}
3409+
3410+
public class Patch extends IamRequest<com.google.api.services.iam.v1.model.ServiceAccount> {
3411+
3412+
private static final String REST_PATH = "v1/{+name}";
3413+
3414+
private final java.util.regex.Pattern NAME_PATTERN =
3415+
java.util.regex.Pattern.compile("^projects/[^/]+/serviceAccounts/[^/]+$");
3416+
3417+
/**
3418+
* Patches a ServiceAccount.
3419+
*
3420+
* Currently, only the following fields are updatable: `display_name` and `description`.
3421+
*
3422+
* Only fields specified in the request are garaunteed to be returned in the response. Other
3423+
* fields in the response may be empty.
3424+
*
3425+
* Note: The field mask is required.
3426+
*
3427+
* Create a request for the method "serviceAccounts.patch".
3428+
*
3429+
* This request holds the parameters needed by the the iam server. After setting any optional
3430+
* parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
3431+
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
3432+
* be called to initialize this instance immediately after invoking the constructor. </p>
3433+
*
3434+
* @param name The resource name of the service account in the following format:
3435+
* `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3436+
Requests using `-` as a wildcard for
3437+
* the `PROJECT_ID` will infer the
3438+
project from the `account` and the `ACCOUNT` value can be
3439+
* the `email`
3440+
address or the `unique_id` of the service account.
3441+
In responses the resource
3442+
* name will always be in the format
3443+
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3444+
* @param content the {@link com.google.api.services.iam.v1.model.PatchServiceAccountRequest}
3445+
* @since 1.13
3446+
*/
3447+
protected Patch(java.lang.String name, com.google.api.services.iam.v1.model.PatchServiceAccountRequest content) {
3448+
super(Iam.this, "PATCH", REST_PATH, content, com.google.api.services.iam.v1.model.ServiceAccount.class);
3449+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
3450+
if (!getSuppressPatternChecks()) {
3451+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3452+
"Parameter name must conform to the pattern " +
3453+
"^projects/[^/]+/serviceAccounts/[^/]+$");
3454+
}
3455+
}
3456+
3457+
@Override
3458+
public Patch set$Xgafv(java.lang.String $Xgafv) {
3459+
return (Patch) super.set$Xgafv($Xgafv);
3460+
}
3461+
3462+
@Override
3463+
public Patch setAccessToken(java.lang.String accessToken) {
3464+
return (Patch) super.setAccessToken(accessToken);
3465+
}
3466+
3467+
@Override
3468+
public Patch setAlt(java.lang.String alt) {
3469+
return (Patch) super.setAlt(alt);
3470+
}
3471+
3472+
@Override
3473+
public Patch setCallback(java.lang.String callback) {
3474+
return (Patch) super.setCallback(callback);
3475+
}
3476+
3477+
@Override
3478+
public Patch setFields(java.lang.String fields) {
3479+
return (Patch) super.setFields(fields);
3480+
}
3481+
3482+
@Override
3483+
public Patch setKey(java.lang.String key) {
3484+
return (Patch) super.setKey(key);
3485+
}
3486+
3487+
@Override
3488+
public Patch setOauthToken(java.lang.String oauthToken) {
3489+
return (Patch) super.setOauthToken(oauthToken);
3490+
}
3491+
3492+
@Override
3493+
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
3494+
return (Patch) super.setPrettyPrint(prettyPrint);
3495+
}
3496+
3497+
@Override
3498+
public Patch setQuotaUser(java.lang.String quotaUser) {
3499+
return (Patch) super.setQuotaUser(quotaUser);
3500+
}
3501+
3502+
@Override
3503+
public Patch setUploadType(java.lang.String uploadType) {
3504+
return (Patch) super.setUploadType(uploadType);
3505+
}
3506+
3507+
@Override
3508+
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
3509+
return (Patch) super.setUploadProtocol(uploadProtocol);
3510+
}
3511+
3512+
/**
3513+
* The resource name of the service account in the following format:
3514+
* `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3515+
*
3516+
* Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the
3517+
* `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the
3518+
* service account.
3519+
*
3520+
* In responses the resource name will always be in the format
3521+
* `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3522+
*/
3523+
@com.google.api.client.util.Key
3524+
private java.lang.String name;
3525+
3526+
/** The resource name of the service account in the following format:
3527+
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3528+
3529+
Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the `account` and
3530+
the `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.
3531+
3532+
In responses the resource name will always be in the format
3533+
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3534+
*/
3535+
public java.lang.String getName() {
3536+
return name;
3537+
}
3538+
3539+
/**
3540+
* The resource name of the service account in the following format:
3541+
* `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3542+
*
3543+
* Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the
3544+
* `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the
3545+
* service account.
3546+
*
3547+
* In responses the resource name will always be in the format
3548+
* `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3549+
*/
3550+
public Patch setName(java.lang.String name) {
3551+
if (!getSuppressPatternChecks()) {
3552+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3553+
"Parameter name must conform to the pattern " +
3554+
"^projects/[^/]+/serviceAccounts/[^/]+$");
3555+
}
3556+
this.name = name;
3557+
return this;
3558+
}
3559+
3560+
@Override
3561+
public Patch set(String parameterName, Object value) {
3562+
return (Patch) super.set(parameterName, value);
3563+
}
3564+
}
33763565
/**
33773566
* Sets the IAM access control policy for a ServiceAccount.
33783567
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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.iam.v1.model;
18+
19+
/**
20+
* The patch service account request.
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 Identity and Access Management (IAM) API. For a
24+
* 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 PatchServiceAccountRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private ServiceAccount serviceAccount;
38+
39+
/**
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private String updateMask;
44+
45+
/**
46+
* @return value or {@code null} for none
47+
*/
48+
public ServiceAccount getServiceAccount() {
49+
return serviceAccount;
50+
}
51+
52+
/**
53+
* @param serviceAccount serviceAccount or {@code null} for none
54+
*/
55+
public PatchServiceAccountRequest setServiceAccount(ServiceAccount serviceAccount) {
56+
this.serviceAccount = serviceAccount;
57+
return this;
58+
}
59+
60+
/**
61+
* @return value or {@code null} for none
62+
*/
63+
public String getUpdateMask() {
64+
return updateMask;
65+
}
66+
67+
/**
68+
* @param updateMask updateMask or {@code null} for none
69+
*/
70+
public PatchServiceAccountRequest setUpdateMask(String updateMask) {
71+
this.updateMask = updateMask;
72+
return this;
73+
}
74+
75+
@Override
76+
public PatchServiceAccountRequest set(String fieldName, Object value) {
77+
return (PatchServiceAccountRequest) super.set(fieldName, value);
78+
}
79+
80+
@Override
81+
public PatchServiceAccountRequest clone() {
82+
return (PatchServiceAccountRequest) super.clone();
83+
}
84+
85+
}

0 commit comments

Comments
 (0)