@@ -4322,6 +4322,217 @@ public DomainMappings domainMappings() {
4322
4322
*/
4323
4323
public class DomainMappings {
4324
4324
4325
+ /**
4326
+ * Maps a domain to an application. A user must be authorized to administer a domain in order to map
4327
+ * it to an application. For a list of available authorized domains, see
4328
+ * AuthorizedDomains.ListAuthorizedDomains.
4329
+ *
4330
+ * Create a request for the method "domainMappings.create".
4331
+ *
4332
+ * This request holds the parameters needed by the appengine server. After setting any optional
4333
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
4334
+ *
4335
+ * @param projectsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
4336
+ * @param locationsId Part of `parent`. See documentation of `projectsId`.
4337
+ * @param applicationsId Part of `parent`. See documentation of `projectsId`.
4338
+ * @param content the {@link com.google.api.services.appengine.model.DomainMapping}
4339
+ * @return the request
4340
+ */
4341
+ public Create create (java .lang .String projectsId , java .lang .String locationsId , java .lang .String applicationsId , com .google .api .services .appengine .model .DomainMapping content ) throws java .io .IOException {
4342
+ Create result = new Create (projectsId , locationsId , applicationsId , content );
4343
+ initialize (result );
4344
+ return result ;
4345
+ }
4346
+
4347
+ public class Create extends AppengineRequest <com .google .api .services .appengine .model .Operation > {
4348
+
4349
+ private static final String REST_PATH = "v1alpha/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings" ;
4350
+
4351
+ /**
4352
+ * Maps a domain to an application. A user must be authorized to administer a domain in order to
4353
+ * map it to an application. For a list of available authorized domains, see
4354
+ * AuthorizedDomains.ListAuthorizedDomains.
4355
+ *
4356
+ * Create a request for the method "domainMappings.create".
4357
+ *
4358
+ * This request holds the parameters needed by the the appengine server. After setting any
4359
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
4360
+ * <p> {@link
4361
+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
4362
+ * be called to initialize this instance immediately after invoking the constructor. </p>
4363
+ *
4364
+ * @param projectsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
4365
+ * @param locationsId Part of `parent`. See documentation of `projectsId`.
4366
+ * @param applicationsId Part of `parent`. See documentation of `projectsId`.
4367
+ * @param content the {@link com.google.api.services.appengine.model.DomainMapping}
4368
+ * @since 1.13
4369
+ */
4370
+ protected Create (java .lang .String projectsId , java .lang .String locationsId , java .lang .String applicationsId , com .google .api .services .appengine .model .DomainMapping content ) {
4371
+ super (Appengine .this , "POST" , REST_PATH , content , com .google .api .services .appengine .model .Operation .class );
4372
+ this .projectsId = com .google .api .client .util .Preconditions .checkNotNull (projectsId , "Required parameter projectsId must be specified." );
4373
+ this .locationsId = com .google .api .client .util .Preconditions .checkNotNull (locationsId , "Required parameter locationsId must be specified." );
4374
+ this .applicationsId = com .google .api .client .util .Preconditions .checkNotNull (applicationsId , "Required parameter applicationsId must be specified." );
4375
+ }
4376
+
4377
+ @ Override
4378
+ public Create set$Xgafv (java .lang .String $Xgafv ) {
4379
+ return (Create ) super .set$Xgafv ($Xgafv );
4380
+ }
4381
+
4382
+ @ Override
4383
+ public Create setAccessToken (java .lang .String accessToken ) {
4384
+ return (Create ) super .setAccessToken (accessToken );
4385
+ }
4386
+
4387
+ @ Override
4388
+ public Create setAlt (java .lang .String alt ) {
4389
+ return (Create ) super .setAlt (alt );
4390
+ }
4391
+
4392
+ @ Override
4393
+ public Create setCallback (java .lang .String callback ) {
4394
+ return (Create ) super .setCallback (callback );
4395
+ }
4396
+
4397
+ @ Override
4398
+ public Create setFields (java .lang .String fields ) {
4399
+ return (Create ) super .setFields (fields );
4400
+ }
4401
+
4402
+ @ Override
4403
+ public Create setKey (java .lang .String key ) {
4404
+ return (Create ) super .setKey (key );
4405
+ }
4406
+
4407
+ @ Override
4408
+ public Create setOauthToken (java .lang .String oauthToken ) {
4409
+ return (Create ) super .setOauthToken (oauthToken );
4410
+ }
4411
+
4412
+ @ Override
4413
+ public Create setPrettyPrint (java .lang .Boolean prettyPrint ) {
4414
+ return (Create ) super .setPrettyPrint (prettyPrint );
4415
+ }
4416
+
4417
+ @ Override
4418
+ public Create setQuotaUser (java .lang .String quotaUser ) {
4419
+ return (Create ) super .setQuotaUser (quotaUser );
4420
+ }
4421
+
4422
+ @ Override
4423
+ public Create setUploadType (java .lang .String uploadType ) {
4424
+ return (Create ) super .setUploadType (uploadType );
4425
+ }
4426
+
4427
+ @ Override
4428
+ public Create setUploadProtocol (java .lang .String uploadProtocol ) {
4429
+ return (Create ) super .setUploadProtocol (uploadProtocol );
4430
+ }
4431
+
4432
+ /** Part of `parent`. Name of the parent Application resource. Example: apps/myapp. */
4433
+ @ com .google .api .client .util .Key
4434
+ private java .lang .String projectsId ;
4435
+
4436
+ /** Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
4437
+ */
4438
+ public java .lang .String getProjectsId () {
4439
+ return projectsId ;
4440
+ }
4441
+
4442
+ /** Part of `parent`. Name of the parent Application resource. Example: apps/myapp. */
4443
+ public Create setProjectsId (java .lang .String projectsId ) {
4444
+ this .projectsId = projectsId ;
4445
+ return this ;
4446
+ }
4447
+
4448
+ /** Part of `parent`. See documentation of `projectsId`. */
4449
+ @ com .google .api .client .util .Key
4450
+ private java .lang .String locationsId ;
4451
+
4452
+ /** Part of `parent`. See documentation of `projectsId`.
4453
+ */
4454
+ public java .lang .String getLocationsId () {
4455
+ return locationsId ;
4456
+ }
4457
+
4458
+ /** Part of `parent`. See documentation of `projectsId`. */
4459
+ public Create setLocationsId (java .lang .String locationsId ) {
4460
+ this .locationsId = locationsId ;
4461
+ return this ;
4462
+ }
4463
+
4464
+ /** Part of `parent`. See documentation of `projectsId`. */
4465
+ @ com .google .api .client .util .Key
4466
+ private java .lang .String applicationsId ;
4467
+
4468
+ /** Part of `parent`. See documentation of `projectsId`.
4469
+ */
4470
+ public java .lang .String getApplicationsId () {
4471
+ return applicationsId ;
4472
+ }
4473
+
4474
+ /** Part of `parent`. See documentation of `projectsId`. */
4475
+ public Create setApplicationsId (java .lang .String applicationsId ) {
4476
+ this .applicationsId = applicationsId ;
4477
+ return this ;
4478
+ }
4479
+
4480
+ /**
4481
+ * Whether a managed certificate should be provided by App Engine. If true, a
4482
+ * certificate ID must be manaually set in the DomainMapping resource to configure SSL
4483
+ * for this domain. If false, a managed certificate will be provisioned and a
4484
+ * certificate ID will be automatically populated.
4485
+ */
4486
+ @ com .google .api .client .util .Key
4487
+ private java .lang .Boolean noManagedCertificate ;
4488
+
4489
+ /** Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be
4490
+ manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed
4491
+ certificate will be provisioned and a certificate ID will be automatically populated.
4492
+ */
4493
+ public java .lang .Boolean getNoManagedCertificate () {
4494
+ return noManagedCertificate ;
4495
+ }
4496
+
4497
+ /**
4498
+ * Whether a managed certificate should be provided by App Engine. If true, a
4499
+ * certificate ID must be manaually set in the DomainMapping resource to configure SSL
4500
+ * for this domain. If false, a managed certificate will be provisioned and a
4501
+ * certificate ID will be automatically populated.
4502
+ */
4503
+ public Create setNoManagedCertificate (java .lang .Boolean noManagedCertificate ) {
4504
+ this .noManagedCertificate = noManagedCertificate ;
4505
+ return this ;
4506
+ }
4507
+
4508
+ /**
4509
+ * Whether the domain creation should override any existing mappings for this domain. By
4510
+ * default, overrides are rejected.
4511
+ */
4512
+ @ com .google .api .client .util .Key
4513
+ private java .lang .String overrideStrategy ;
4514
+
4515
+ /** Whether the domain creation should override any existing mappings for this domain. By default,
4516
+ overrides are rejected.
4517
+ */
4518
+ public java .lang .String getOverrideStrategy () {
4519
+ return overrideStrategy ;
4520
+ }
4521
+
4522
+ /**
4523
+ * Whether the domain creation should override any existing mappings for this domain. By
4524
+ * default, overrides are rejected.
4525
+ */
4526
+ public Create setOverrideStrategy (java .lang .String overrideStrategy ) {
4527
+ this .overrideStrategy = overrideStrategy ;
4528
+ return this ;
4529
+ }
4530
+
4531
+ @ Override
4532
+ public Create set (String parameterName , Object value ) {
4533
+ return (Create ) super .set (parameterName , value );
4534
+ }
4535
+ }
4325
4536
/**
4326
4537
* Gets the specified domain mapping.
4327
4538
*
0 commit comments