Skip to content

Commit 2ebc057

Browse files
1 parent bbf9c59 commit 2ebc057

File tree

17 files changed

+725
-68
lines changed

17 files changed

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

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

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3806,6 +3806,145 @@ public AcquireSsrsLease set(String parameterName, Object value) {
38063806
return (AcquireSsrsLease) super.set(parameterName, value);
38073807
}
38083808
}
3809+
/**
3810+
* Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was
3811+
* previously added but never used in a certificate rotation, this operation replaces that version.
3812+
*
3813+
* Create a request for the method "instances.addEntraIdCertificate".
3814+
*
3815+
* This request holds the parameters needed by the sqladmin server. After setting any optional
3816+
* parameters, call the {@link AddEntraIdCertificate#execute()} method to invoke the remote
3817+
* operation.
3818+
*
3819+
* @param project Required. Project ID of the project that contains the instance.
3820+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
3821+
* @return the request
3822+
*/
3823+
public AddEntraIdCertificate addEntraIdCertificate(java.lang.String project, java.lang.String instance) throws java.io.IOException {
3824+
AddEntraIdCertificate result = new AddEntraIdCertificate(project, instance);
3825+
initialize(result);
3826+
return result;
3827+
}
3828+
3829+
public class AddEntraIdCertificate extends SQLAdminRequest<com.google.api.services.sqladmin.model.Operation> {
3830+
3831+
private static final String REST_PATH = "v1/projects/{project}/instances/{instance}/addEntraIdCertificate";
3832+
3833+
/**
3834+
* Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was
3835+
* previously added but never used in a certificate rotation, this operation replaces that
3836+
* version.
3837+
*
3838+
* Create a request for the method "instances.addEntraIdCertificate".
3839+
*
3840+
* This request holds the parameters needed by the the sqladmin server. After setting any
3841+
* optional parameters, call the {@link AddEntraIdCertificate#execute()} method to invoke the
3842+
* remote operation. <p> {@link AddEntraIdCertificate#initialize(com.google.api.client.googleapis.
3843+
* services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
3844+
* after invoking the constructor. </p>
3845+
*
3846+
* @param project Required. Project ID of the project that contains the instance.
3847+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
3848+
* @since 1.13
3849+
*/
3850+
protected AddEntraIdCertificate(java.lang.String project, java.lang.String instance) {
3851+
super(SQLAdmin.this, "POST", REST_PATH, null, com.google.api.services.sqladmin.model.Operation.class);
3852+
this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
3853+
this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified.");
3854+
}
3855+
3856+
@Override
3857+
public AddEntraIdCertificate set$Xgafv(java.lang.String $Xgafv) {
3858+
return (AddEntraIdCertificate) super.set$Xgafv($Xgafv);
3859+
}
3860+
3861+
@Override
3862+
public AddEntraIdCertificate setAccessToken(java.lang.String accessToken) {
3863+
return (AddEntraIdCertificate) super.setAccessToken(accessToken);
3864+
}
3865+
3866+
@Override
3867+
public AddEntraIdCertificate setAlt(java.lang.String alt) {
3868+
return (AddEntraIdCertificate) super.setAlt(alt);
3869+
}
3870+
3871+
@Override
3872+
public AddEntraIdCertificate setCallback(java.lang.String callback) {
3873+
return (AddEntraIdCertificate) super.setCallback(callback);
3874+
}
3875+
3876+
@Override
3877+
public AddEntraIdCertificate setFields(java.lang.String fields) {
3878+
return (AddEntraIdCertificate) super.setFields(fields);
3879+
}
3880+
3881+
@Override
3882+
public AddEntraIdCertificate setKey(java.lang.String key) {
3883+
return (AddEntraIdCertificate) super.setKey(key);
3884+
}
3885+
3886+
@Override
3887+
public AddEntraIdCertificate setOauthToken(java.lang.String oauthToken) {
3888+
return (AddEntraIdCertificate) super.setOauthToken(oauthToken);
3889+
}
3890+
3891+
@Override
3892+
public AddEntraIdCertificate setPrettyPrint(java.lang.Boolean prettyPrint) {
3893+
return (AddEntraIdCertificate) super.setPrettyPrint(prettyPrint);
3894+
}
3895+
3896+
@Override
3897+
public AddEntraIdCertificate setQuotaUser(java.lang.String quotaUser) {
3898+
return (AddEntraIdCertificate) super.setQuotaUser(quotaUser);
3899+
}
3900+
3901+
@Override
3902+
public AddEntraIdCertificate setUploadType(java.lang.String uploadType) {
3903+
return (AddEntraIdCertificate) super.setUploadType(uploadType);
3904+
}
3905+
3906+
@Override
3907+
public AddEntraIdCertificate setUploadProtocol(java.lang.String uploadProtocol) {
3908+
return (AddEntraIdCertificate) super.setUploadProtocol(uploadProtocol);
3909+
}
3910+
3911+
/** Required. Project ID of the project that contains the instance. */
3912+
@com.google.api.client.util.Key
3913+
private java.lang.String project;
3914+
3915+
/** Required. Project ID of the project that contains the instance.
3916+
*/
3917+
public java.lang.String getProject() {
3918+
return project;
3919+
}
3920+
3921+
/** Required. Project ID of the project that contains the instance. */
3922+
public AddEntraIdCertificate setProject(java.lang.String project) {
3923+
this.project = project;
3924+
return this;
3925+
}
3926+
3927+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
3928+
@com.google.api.client.util.Key
3929+
private java.lang.String instance;
3930+
3931+
/** Required. Cloud SQL instance ID. This does not include the project ID.
3932+
*/
3933+
public java.lang.String getInstance() {
3934+
return instance;
3935+
}
3936+
3937+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
3938+
public AddEntraIdCertificate setInstance(java.lang.String instance) {
3939+
this.instance = instance;
3940+
return this;
3941+
}
3942+
3943+
@Override
3944+
public AddEntraIdCertificate set(String parameterName, Object value) {
3945+
return (AddEntraIdCertificate) super.set(parameterName, value);
3946+
}
3947+
}
38093948
/**
38103949
* Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to
38113950
* prepare for a certificate rotation. If a CA version was previously added but never used in a

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
package com.google.api.services.sqladmin.model;
1818

1919
/**
20-
* Database instance local user password validation policy
20+
* Database instance local user password validation policy. This message defines the password policy
21+
* for local database users. When enabled, it enforces constraints on password complexity, length,
22+
* and reuse. Keep this policy enabled to help prevent unauthorized access.
2123
*
2224
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2325
* transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:
@@ -51,7 +53,9 @@ public final class PasswordValidationPolicy extends com.google.api.client.json.G
5153
private java.lang.Boolean disallowUsernameSubstring;
5254

5355
/**
54-
* Whether the password policy is enabled or not.
56+
* Whether to enable the password policy or not. When enabled, passwords must meet complexity
57+
* requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this
58+
* policy allows weak passwords.
5559
* The value may be {@code null}.
5660
*/
5761
@com.google.api.client.util.Key
@@ -131,15 +135,19 @@ public PasswordValidationPolicy setDisallowUsernameSubstring(java.lang.Boolean d
131135
}
132136

133137
/**
134-
* Whether the password policy is enabled or not.
138+
* Whether to enable the password policy or not. When enabled, passwords must meet complexity
139+
* requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this
140+
* policy allows weak passwords.
135141
* @return value or {@code null} for none
136142
*/
137143
public java.lang.Boolean getEnablePasswordPolicy() {
138144
return enablePasswordPolicy;
139145
}
140146

141147
/**
142-
* Whether the password policy is enabled or not.
148+
* Whether to enable the password policy or not. When enabled, passwords must meet complexity
149+
* requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this
150+
* policy allows weak passwords.
143151
* @param enablePasswordPolicy enablePasswordPolicy or {@code null} for none
144152
*/
145153
public PasswordValidationPolicy setEnablePasswordPolicy(java.lang.Boolean enablePasswordPolicy) {

0 commit comments

Comments
 (0)