@@ -7565,7 +7565,7 @@ public class Operations {
75657565 * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
75667566 * methods to check whether the cancellation succeeded or whether the operation completed despite
75677567 * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
7568- * operation with an Operation.error value with a google.rpc.Status.code of 1 , corresponding to
7568+ * operation with an Operation.error value with a google.rpc.Status.code of `1` , corresponding to
75697569 * `Code.CANCELLED`.
75707570 *
75717571 * Create a request for the method "operations.cancel".
@@ -7596,7 +7596,7 @@ public class Cancel extends BackupdrRequest<com.google.api.services.backupdr.v1.
75967596 * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
75977597 * methods to check whether the cancellation succeeded or whether the operation completed despite
75987598 * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
7599- * operation with an Operation.error value with a google.rpc.Status.code of 1 , corresponding to
7599+ * operation with an Operation.error value with a google.rpc.Status.code of `1` , corresponding to
76007600 * `Code.CANCELLED`.
76017601 *
76027602 * Create a request for the method "operations.cancel".
@@ -8165,6 +8165,168 @@ public List set(String parameterName, Object value) {
81658165 }
81668166
81678167 }
8168+ /**
8169+ * An accessor for creating requests from the ServiceConfig collection.
8170+ *
8171+ * <p>The typical use is:</p>
8172+ * <pre>
8173+ * {@code Backupdr backupdr = new Backupdr(...);}
8174+ * {@code Backupdr.ServiceConfig.List request = backupdr.serviceConfig().list(parameters ...)}
8175+ * </pre>
8176+ *
8177+ * @return the resource collection
8178+ */
8179+ public ServiceConfig serviceConfig () {
8180+ return new ServiceConfig ();
8181+ }
8182+
8183+ /**
8184+ * The "serviceConfig" collection of methods.
8185+ */
8186+ public class ServiceConfig {
8187+
8188+ /**
8189+ * Initializes the service related config for a project.
8190+ *
8191+ * Create a request for the method "serviceConfig.initialize".
8192+ *
8193+ * This request holds the parameters needed by the backupdr server. After setting any optional
8194+ * parameters, call the {@link Initialize#execute()} method to invoke the remote operation.
8195+ *
8196+ * @param name Required. The resource name of the serviceConfig used to initialize the service. Format:
8197+ * `projects/{project_id}/locations/{location}/serviceConfig`.
8198+ * @param content the {@link com.google.api.services.backupdr.v1.model.InitializeServiceRequest}
8199+ * @return the request
8200+ */
8201+ public Initialize initialize (java .lang .String name , com .google .api .services .backupdr .v1 .model .InitializeServiceRequest content ) throws java .io .IOException {
8202+ Initialize result = new Initialize (name , content );
8203+ initialize (result );
8204+ return result ;
8205+ }
8206+
8207+ public class Initialize extends BackupdrRequest <com .google .api .services .backupdr .v1 .model .Operation > {
8208+
8209+ private static final String REST_PATH = "v1/{+name}:initialize" ;
8210+
8211+ private final java .util .regex .Pattern NAME_PATTERN =
8212+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/serviceConfig$" );
8213+
8214+ /**
8215+ * Initializes the service related config for a project.
8216+ *
8217+ * Create a request for the method "serviceConfig.initialize".
8218+ *
8219+ * This request holds the parameters needed by the the backupdr server. After setting any
8220+ * optional parameters, call the {@link Initialize#execute()} method to invoke the remote
8221+ * operation. <p> {@link
8222+ * Initialize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
8223+ * must be called to initialize this instance immediately after invoking the constructor. </p>
8224+ *
8225+ * @param name Required. The resource name of the serviceConfig used to initialize the service. Format:
8226+ * `projects/{project_id}/locations/{location}/serviceConfig`.
8227+ * @param content the {@link com.google.api.services.backupdr.v1.model.InitializeServiceRequest}
8228+ * @since 1.13
8229+ */
8230+ protected Initialize (java .lang .String name , com .google .api .services .backupdr .v1 .model .InitializeServiceRequest content ) {
8231+ super (Backupdr .this , "POST" , REST_PATH , content , com .google .api .services .backupdr .v1 .model .Operation .class );
8232+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
8233+ if (!getSuppressPatternChecks ()) {
8234+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
8235+ "Parameter name must conform to the pattern " +
8236+ "^projects/[^/]+/locations/[^/]+/serviceConfig$" );
8237+ }
8238+ }
8239+
8240+ @ Override
8241+ public Initialize set$Xgafv (java .lang .String $Xgafv ) {
8242+ return (Initialize ) super .set$Xgafv ($Xgafv );
8243+ }
8244+
8245+ @ Override
8246+ public Initialize setAccessToken (java .lang .String accessToken ) {
8247+ return (Initialize ) super .setAccessToken (accessToken );
8248+ }
8249+
8250+ @ Override
8251+ public Initialize setAlt (java .lang .String alt ) {
8252+ return (Initialize ) super .setAlt (alt );
8253+ }
8254+
8255+ @ Override
8256+ public Initialize setCallback (java .lang .String callback ) {
8257+ return (Initialize ) super .setCallback (callback );
8258+ }
8259+
8260+ @ Override
8261+ public Initialize setFields (java .lang .String fields ) {
8262+ return (Initialize ) super .setFields (fields );
8263+ }
8264+
8265+ @ Override
8266+ public Initialize setKey (java .lang .String key ) {
8267+ return (Initialize ) super .setKey (key );
8268+ }
8269+
8270+ @ Override
8271+ public Initialize setOauthToken (java .lang .String oauthToken ) {
8272+ return (Initialize ) super .setOauthToken (oauthToken );
8273+ }
8274+
8275+ @ Override
8276+ public Initialize setPrettyPrint (java .lang .Boolean prettyPrint ) {
8277+ return (Initialize ) super .setPrettyPrint (prettyPrint );
8278+ }
8279+
8280+ @ Override
8281+ public Initialize setQuotaUser (java .lang .String quotaUser ) {
8282+ return (Initialize ) super .setQuotaUser (quotaUser );
8283+ }
8284+
8285+ @ Override
8286+ public Initialize setUploadType (java .lang .String uploadType ) {
8287+ return (Initialize ) super .setUploadType (uploadType );
8288+ }
8289+
8290+ @ Override
8291+ public Initialize setUploadProtocol (java .lang .String uploadProtocol ) {
8292+ return (Initialize ) super .setUploadProtocol (uploadProtocol );
8293+ }
8294+
8295+ /**
8296+ * Required. The resource name of the serviceConfig used to initialize the service.
8297+ * Format: `projects/{project_id}/locations/{location}/serviceConfig`.
8298+ */
8299+ @ com .google .api .client .util .Key
8300+ private java .lang .String name ;
8301+
8302+ /** Required. The resource name of the serviceConfig used to initialize the service. Format:
8303+ `projects/{project_id}/locations/{location}/serviceConfig`.
8304+ */
8305+ public java .lang .String getName () {
8306+ return name ;
8307+ }
8308+
8309+ /**
8310+ * Required. The resource name of the serviceConfig used to initialize the service.
8311+ * Format: `projects/{project_id}/locations/{location}/serviceConfig`.
8312+ */
8313+ public Initialize setName (java .lang .String name ) {
8314+ if (!getSuppressPatternChecks ()) {
8315+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
8316+ "Parameter name must conform to the pattern " +
8317+ "^projects/[^/]+/locations/[^/]+/serviceConfig$" );
8318+ }
8319+ this .name = name ;
8320+ return this ;
8321+ }
8322+
8323+ @ Override
8324+ public Initialize set (String parameterName , Object value ) {
8325+ return (Initialize ) super .set (parameterName , value );
8326+ }
8327+ }
8328+
8329+ }
81688330 }
81698331 }
81708332
0 commit comments