Skip to content

Commit 4255056

Browse files
1 parent 81ac0d9 commit 4255056

27 files changed

+1807
-40
lines changed

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

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/SQLAdmin.java

Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3069,6 +3069,156 @@ public Instances instances() {
30693069
*/
30703070
public class Instances {
30713071

3072+
/**
3073+
* Lists all versions of EntraID certificates for the specified instance. There can be up to three
3074+
* sets of certificates listed: the certificate that is currently in use, a future that has been
3075+
* added but not yet used to sign a certificate, and a certificate that has been rotated out.
3076+
*
3077+
* Create a request for the method "instances.ListEntraIdCertificates".
3078+
*
3079+
* This request holds the parameters needed by the sqladmin server. After setting any optional
3080+
* parameters, call the {@link ListEntraIdCertificates#execute()} method to invoke the remote
3081+
* operation.
3082+
*
3083+
* @param project Required. Project ID of the project that contains the instance.
3084+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
3085+
* @return the request
3086+
*/
3087+
public ListEntraIdCertificates listEntraIdCertificates(java.lang.String project, java.lang.String instance) throws java.io.IOException {
3088+
ListEntraIdCertificates result = new ListEntraIdCertificates(project, instance);
3089+
initialize(result);
3090+
return result;
3091+
}
3092+
3093+
public class ListEntraIdCertificates extends SQLAdminRequest<com.google.api.services.sqladmin.model.InstancesListEntraIdCertificatesResponse> {
3094+
3095+
private static final String REST_PATH = "v1/projects/{project}/instances/{instance}/listEntraIdCertificates";
3096+
3097+
/**
3098+
* Lists all versions of EntraID certificates for the specified instance. There can be up to three
3099+
* sets of certificates listed: the certificate that is currently in use, a future that has been
3100+
* added but not yet used to sign a certificate, and a certificate that has been rotated out.
3101+
*
3102+
* Create a request for the method "instances.ListEntraIdCertificates".
3103+
*
3104+
* This request holds the parameters needed by the the sqladmin server. After setting any
3105+
* optional parameters, call the {@link ListEntraIdCertificates#execute()} method to invoke the
3106+
* remote operation. <p> {@link ListEntraIdCertificates#initialize(com.google.api.client.googleapi
3107+
* s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
3108+
* after invoking the constructor. </p>
3109+
*
3110+
* @param project Required. Project ID of the project that contains the instance.
3111+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
3112+
* @since 1.13
3113+
*/
3114+
protected ListEntraIdCertificates(java.lang.String project, java.lang.String instance) {
3115+
super(SQLAdmin.this, "GET", REST_PATH, null, com.google.api.services.sqladmin.model.InstancesListEntraIdCertificatesResponse.class);
3116+
this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
3117+
this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified.");
3118+
}
3119+
3120+
@Override
3121+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
3122+
return super.executeUsingHead();
3123+
}
3124+
3125+
@Override
3126+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
3127+
return super.buildHttpRequestUsingHead();
3128+
}
3129+
3130+
@Override
3131+
public ListEntraIdCertificates set$Xgafv(java.lang.String $Xgafv) {
3132+
return (ListEntraIdCertificates) super.set$Xgafv($Xgafv);
3133+
}
3134+
3135+
@Override
3136+
public ListEntraIdCertificates setAccessToken(java.lang.String accessToken) {
3137+
return (ListEntraIdCertificates) super.setAccessToken(accessToken);
3138+
}
3139+
3140+
@Override
3141+
public ListEntraIdCertificates setAlt(java.lang.String alt) {
3142+
return (ListEntraIdCertificates) super.setAlt(alt);
3143+
}
3144+
3145+
@Override
3146+
public ListEntraIdCertificates setCallback(java.lang.String callback) {
3147+
return (ListEntraIdCertificates) super.setCallback(callback);
3148+
}
3149+
3150+
@Override
3151+
public ListEntraIdCertificates setFields(java.lang.String fields) {
3152+
return (ListEntraIdCertificates) super.setFields(fields);
3153+
}
3154+
3155+
@Override
3156+
public ListEntraIdCertificates setKey(java.lang.String key) {
3157+
return (ListEntraIdCertificates) super.setKey(key);
3158+
}
3159+
3160+
@Override
3161+
public ListEntraIdCertificates setOauthToken(java.lang.String oauthToken) {
3162+
return (ListEntraIdCertificates) super.setOauthToken(oauthToken);
3163+
}
3164+
3165+
@Override
3166+
public ListEntraIdCertificates setPrettyPrint(java.lang.Boolean prettyPrint) {
3167+
return (ListEntraIdCertificates) super.setPrettyPrint(prettyPrint);
3168+
}
3169+
3170+
@Override
3171+
public ListEntraIdCertificates setQuotaUser(java.lang.String quotaUser) {
3172+
return (ListEntraIdCertificates) super.setQuotaUser(quotaUser);
3173+
}
3174+
3175+
@Override
3176+
public ListEntraIdCertificates setUploadType(java.lang.String uploadType) {
3177+
return (ListEntraIdCertificates) super.setUploadType(uploadType);
3178+
}
3179+
3180+
@Override
3181+
public ListEntraIdCertificates setUploadProtocol(java.lang.String uploadProtocol) {
3182+
return (ListEntraIdCertificates) super.setUploadProtocol(uploadProtocol);
3183+
}
3184+
3185+
/** Required. Project ID of the project that contains the instance. */
3186+
@com.google.api.client.util.Key
3187+
private java.lang.String project;
3188+
3189+
/** Required. Project ID of the project that contains the instance.
3190+
*/
3191+
public java.lang.String getProject() {
3192+
return project;
3193+
}
3194+
3195+
/** Required. Project ID of the project that contains the instance. */
3196+
public ListEntraIdCertificates setProject(java.lang.String project) {
3197+
this.project = project;
3198+
return this;
3199+
}
3200+
3201+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
3202+
@com.google.api.client.util.Key
3203+
private java.lang.String instance;
3204+
3205+
/** Required. Cloud SQL instance ID. This does not include the project ID.
3206+
*/
3207+
public java.lang.String getInstance() {
3208+
return instance;
3209+
}
3210+
3211+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
3212+
public ListEntraIdCertificates setInstance(java.lang.String instance) {
3213+
this.instance = instance;
3214+
return this;
3215+
}
3216+
3217+
@Override
3218+
public ListEntraIdCertificates set(String parameterName, Object value) {
3219+
return (ListEntraIdCertificates) super.set(parameterName, value);
3220+
}
3221+
}
30723222
/**
30733223
* Lists all versions of server certificates and certificate authorities (CAs) for the specified
30743224
* instance. There can be up to three sets of certs listed: the certificate that is currently in
@@ -3223,6 +3373,146 @@ public ListServerCertificates set(String parameterName, Object value) {
32233373
return (ListServerCertificates) super.set(parameterName, value);
32243374
}
32253375
}
3376+
/**
3377+
* Rotates the server certificate version to one previously added with the addEntraIdCertificate
3378+
* method.
3379+
*
3380+
* Create a request for the method "instances.RotateEntraIdCertificate".
3381+
*
3382+
* This request holds the parameters needed by the sqladmin server. After setting any optional
3383+
* parameters, call the {@link RotateEntraIdCertificate#execute()} method to invoke the remote
3384+
* operation.
3385+
*
3386+
* @param project Required. Project ID of the project that contains the instance.
3387+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
3388+
* @param content the {@link com.google.api.services.sqladmin.model.InstancesRotateEntraIdCertificateRequest}
3389+
* @return the request
3390+
*/
3391+
public RotateEntraIdCertificate rotateEntraIdCertificate(java.lang.String project, java.lang.String instance, com.google.api.services.sqladmin.model.InstancesRotateEntraIdCertificateRequest content) throws java.io.IOException {
3392+
RotateEntraIdCertificate result = new RotateEntraIdCertificate(project, instance, content);
3393+
initialize(result);
3394+
return result;
3395+
}
3396+
3397+
public class RotateEntraIdCertificate extends SQLAdminRequest<com.google.api.services.sqladmin.model.Operation> {
3398+
3399+
private static final String REST_PATH = "v1/projects/{project}/instances/{instance}/rotateEntraIdCertificate";
3400+
3401+
/**
3402+
* Rotates the server certificate version to one previously added with the addEntraIdCertificate
3403+
* method.
3404+
*
3405+
* Create a request for the method "instances.RotateEntraIdCertificate".
3406+
*
3407+
* This request holds the parameters needed by the the sqladmin server. After setting any
3408+
* optional parameters, call the {@link RotateEntraIdCertificate#execute()} method to invoke the
3409+
* remote operation. <p> {@link RotateEntraIdCertificate#initialize(com.google.api.client.googleap
3410+
* is.services.AbstractGoogleClientRequest)} must be called to initialize this instance
3411+
* immediately after invoking the constructor. </p>
3412+
*
3413+
* @param project Required. Project ID of the project that contains the instance.
3414+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
3415+
* @param content the {@link com.google.api.services.sqladmin.model.InstancesRotateEntraIdCertificateRequest}
3416+
* @since 1.13
3417+
*/
3418+
protected RotateEntraIdCertificate(java.lang.String project, java.lang.String instance, com.google.api.services.sqladmin.model.InstancesRotateEntraIdCertificateRequest content) {
3419+
super(SQLAdmin.this, "POST", REST_PATH, content, com.google.api.services.sqladmin.model.Operation.class);
3420+
this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
3421+
this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified.");
3422+
}
3423+
3424+
@Override
3425+
public RotateEntraIdCertificate set$Xgafv(java.lang.String $Xgafv) {
3426+
return (RotateEntraIdCertificate) super.set$Xgafv($Xgafv);
3427+
}
3428+
3429+
@Override
3430+
public RotateEntraIdCertificate setAccessToken(java.lang.String accessToken) {
3431+
return (RotateEntraIdCertificate) super.setAccessToken(accessToken);
3432+
}
3433+
3434+
@Override
3435+
public RotateEntraIdCertificate setAlt(java.lang.String alt) {
3436+
return (RotateEntraIdCertificate) super.setAlt(alt);
3437+
}
3438+
3439+
@Override
3440+
public RotateEntraIdCertificate setCallback(java.lang.String callback) {
3441+
return (RotateEntraIdCertificate) super.setCallback(callback);
3442+
}
3443+
3444+
@Override
3445+
public RotateEntraIdCertificate setFields(java.lang.String fields) {
3446+
return (RotateEntraIdCertificate) super.setFields(fields);
3447+
}
3448+
3449+
@Override
3450+
public RotateEntraIdCertificate setKey(java.lang.String key) {
3451+
return (RotateEntraIdCertificate) super.setKey(key);
3452+
}
3453+
3454+
@Override
3455+
public RotateEntraIdCertificate setOauthToken(java.lang.String oauthToken) {
3456+
return (RotateEntraIdCertificate) super.setOauthToken(oauthToken);
3457+
}
3458+
3459+
@Override
3460+
public RotateEntraIdCertificate setPrettyPrint(java.lang.Boolean prettyPrint) {
3461+
return (RotateEntraIdCertificate) super.setPrettyPrint(prettyPrint);
3462+
}
3463+
3464+
@Override
3465+
public RotateEntraIdCertificate setQuotaUser(java.lang.String quotaUser) {
3466+
return (RotateEntraIdCertificate) super.setQuotaUser(quotaUser);
3467+
}
3468+
3469+
@Override
3470+
public RotateEntraIdCertificate setUploadType(java.lang.String uploadType) {
3471+
return (RotateEntraIdCertificate) super.setUploadType(uploadType);
3472+
}
3473+
3474+
@Override
3475+
public RotateEntraIdCertificate setUploadProtocol(java.lang.String uploadProtocol) {
3476+
return (RotateEntraIdCertificate) super.setUploadProtocol(uploadProtocol);
3477+
}
3478+
3479+
/** Required. Project ID of the project that contains the instance. */
3480+
@com.google.api.client.util.Key
3481+
private java.lang.String project;
3482+
3483+
/** Required. Project ID of the project that contains the instance.
3484+
*/
3485+
public java.lang.String getProject() {
3486+
return project;
3487+
}
3488+
3489+
/** Required. Project ID of the project that contains the instance. */
3490+
public RotateEntraIdCertificate setProject(java.lang.String project) {
3491+
this.project = project;
3492+
return this;
3493+
}
3494+
3495+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
3496+
@com.google.api.client.util.Key
3497+
private java.lang.String instance;
3498+
3499+
/** Required. Cloud SQL instance ID. This does not include the project ID.
3500+
*/
3501+
public java.lang.String getInstance() {
3502+
return instance;
3503+
}
3504+
3505+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
3506+
public RotateEntraIdCertificate setInstance(java.lang.String instance) {
3507+
this.instance = instance;
3508+
return this;
3509+
}
3510+
3511+
@Override
3512+
public RotateEntraIdCertificate set(String parameterName, Object value) {
3513+
return (RotateEntraIdCertificate) super.set(parameterName, value);
3514+
}
3515+
}
32263516
/**
32273517
* Rotates the server certificate version to one previously added with the addServerCertificate
32283518
* method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa
@@ -10980,6 +11270,29 @@ public Update setInstance(java.lang.String instance) {
1098011270
return this;
1098111271
}
1098211272

11273+
/**
11274+
* Optional. List of database roles to grant to the user. body.database_roles will be ignored
11275+
* for update request.
11276+
*/
11277+
@com.google.api.client.util.Key
11278+
private java.util.List<java.lang.String> databaseRoles;
11279+
11280+
/** Optional. List of database roles to grant to the user. body.database_roles will be ignored for
11281+
update request.
11282+
*/
11283+
public java.util.List<java.lang.String> getDatabaseRoles() {
11284+
return databaseRoles;
11285+
}
11286+
11287+
/**
11288+
* Optional. List of database roles to grant to the user. body.database_roles will be ignored
11289+
* for update request.
11290+
*/
11291+
public Update setDatabaseRoles(java.util.List<java.lang.String> databaseRoles) {
11292+
this.databaseRoles = databaseRoles;
11293+
return this;
11294+
}
11295+
1098311296
/** Optional. Host of the user in the instance. */
1098411297
@com.google.api.client.util.Key
1098511298
private java.lang.String host;

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/ImportContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static final class BakImportOptions extends com.google.api.client.json.Ge
295295
private EncryptionOptions encryptionOptions;
296296

297297
/**
298-
* Whether or not the backup importing will restore database with NORECOVERY option Applies only
298+
* Whether or not the backup importing will restore database with NORECOVERY option. Applies only
299299
* to Cloud SQL for SQL Server.
300300
* The value may be {@code null}.
301301
*/
@@ -369,7 +369,7 @@ public BakImportOptions setEncryptionOptions(EncryptionOptions encryptionOptions
369369
}
370370

371371
/**
372-
* Whether or not the backup importing will restore database with NORECOVERY option Applies only
372+
* Whether or not the backup importing will restore database with NORECOVERY option. Applies only
373373
* to Cloud SQL for SQL Server.
374374
* @return value or {@code null} for none
375375
*/
@@ -378,7 +378,7 @@ public java.lang.Boolean getNoRecovery() {
378378
}
379379

380380
/**
381-
* Whether or not the backup importing will restore database with NORECOVERY option Applies only
381+
* Whether or not the backup importing will restore database with NORECOVERY option. Applies only
382382
* to Cloud SQL for SQL Server.
383383
* @param noRecovery noRecovery or {@code null} for none
384384
*/

0 commit comments

Comments
 (0)