@@ -7565,7 +7565,7 @@ public class Operations {
7565
7565
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
7566
7566
* methods to check whether the cancellation succeeded or whether the operation completed despite
7567
7567
* 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
7569
7569
* `Code.CANCELLED`.
7570
7570
*
7571
7571
* Create a request for the method "operations.cancel".
@@ -7596,7 +7596,7 @@ public class Cancel extends BackupdrRequest<com.google.api.services.backupdr.v1.
7596
7596
* it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
7597
7597
* methods to check whether the cancellation succeeded or whether the operation completed despite
7598
7598
* 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
7600
7600
* `Code.CANCELLED`.
7601
7601
*
7602
7602
* Create a request for the method "operations.cancel".
@@ -8165,6 +8165,168 @@ public List set(String parameterName, Object value) {
8165
8165
}
8166
8166
8167
8167
}
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
+ }
8168
8330
}
8169
8331
}
8170
8332
0 commit comments