@@ -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
0 commit comments