google-api-client 0.41.2 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  5. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  6. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  7. data/generated/google/apis/admob_v1.rb +1 -1
  8. data/generated/google/apis/admob_v1/service.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  10. data/generated/google/apis/apigee_v1.rb +1 -1
  11. data/generated/google/apis/apigee_v1/classes.rb +1389 -105
  12. data/generated/google/apis/apigee_v1/representations.rb +543 -0
  13. data/generated/google/apis/apigee_v1/service.rb +1139 -93
  14. data/generated/google/apis/appsmarket_v2.rb +1 -1
  15. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  16. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  17. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  18. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  19. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  20. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  21. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  22. data/generated/google/apis/civicinfo_v2.rb +1 -1
  23. data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
  24. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  25. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  26. data/generated/google/apis/classroom_v1.rb +1 -1
  27. data/generated/google/apis/classroom_v1/service.rb +4 -3
  28. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  29. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  30. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  31. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  32. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  33. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  34. data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
  35. data/generated/google/apis/customsearch_v1/classes.rb +1606 -0
  36. data/generated/google/apis/customsearch_v1/representations.rb +372 -0
  37. data/generated/google/apis/customsearch_v1/service.rb +608 -0
  38. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  39. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
  40. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -2
  41. data/generated/google/apis/displayvideo_v1.rb +1 -1
  42. data/generated/google/apis/displayvideo_v1/classes.rb +12 -5
  43. data/generated/google/apis/dns_v1.rb +4 -4
  44. data/generated/google/apis/dns_v1/classes.rb +313 -162
  45. data/generated/google/apis/dns_v1/service.rb +247 -180
  46. data/generated/google/apis/file_v1.rb +1 -1
  47. data/generated/google/apis/file_v1beta1.rb +1 -1
  48. data/generated/google/apis/{groupsmigration_v1.rb → firebasehosting_v1.rb} +10 -12
  49. data/generated/google/apis/firebasehosting_v1/classes.rb +186 -0
  50. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  51. data/generated/google/apis/firebasehosting_v1/service.rb +183 -0
  52. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  53. data/generated/google/apis/firebasehosting_v1beta1/service.rb +2 -0
  54. data/generated/google/apis/games_v1.rb +5 -3
  55. data/generated/google/apis/games_v1/classes.rb +354 -2112
  56. data/generated/google/apis/games_v1/representations.rb +12 -647
  57. data/generated/google/apis/games_v1/service.rb +212 -1154
  58. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  59. data/generated/google/apis/gameservices_v1beta/classes.rb +6 -6
  60. data/generated/google/apis/groupssettings_v1.rb +1 -1
  61. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  62. data/generated/google/apis/ml_v1.rb +1 -1
  63. data/generated/google/apis/ml_v1/classes.rb +6 -6
  64. data/generated/google/apis/monitoring_v3.rb +1 -1
  65. data/generated/google/apis/monitoring_v3/classes.rb +10 -2
  66. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  67. data/generated/google/apis/monitoring_v3/service.rb +8 -5
  68. data/generated/google/apis/pubsub_v1.rb +1 -1
  69. data/generated/google/apis/pubsub_v1/classes.rb +24 -28
  70. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  71. data/generated/google/apis/recommender_v1.rb +1 -1
  72. data/generated/google/apis/recommender_v1/classes.rb +211 -0
  73. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  74. data/generated/google/apis/recommender_v1/service.rb +123 -0
  75. data/generated/google/apis/redis_v1.rb +1 -1
  76. data/generated/google/apis/redis_v1beta1.rb +1 -1
  77. data/generated/google/apis/testing_v1.rb +1 -1
  78. data/generated/google/apis/testing_v1/classes.rb +17 -6
  79. data/generated/google/apis/testing_v1/representations.rb +1 -0
  80. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  81. data/generated/google/apis/youtube_partner_v1/classes.rb +1616 -1076
  82. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  83. data/generated/google/apis/youtube_partner_v1/service.rb +942 -1362
  84. data/generated/google/apis/youtube_v3.rb +1 -1
  85. data/generated/google/apis/youtube_v3/classes.rb +554 -0
  86. data/generated/google/apis/youtube_v3/representations.rb +281 -0
  87. data/generated/google/apis/youtube_v3/service.rb +259 -0
  88. data/lib/google/apis/version.rb +1 -1
  89. metadata +11 -19
  90. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
  91. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  92. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  93. data/generated/google/apis/androidpublisher_v1_1.rb +0 -34
  94. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  95. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  96. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  97. data/generated/google/apis/androidpublisher_v2.rb +0 -34
  98. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  99. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  100. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  101. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  102. data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -159,6 +159,37 @@ module Google
159
159
  execute_or_queue_command(command, &block)
160
160
  end
161
161
 
162
+ # Gets the deployed ingress configuration for an organization.
163
+ # @param [String] name
164
+ # Name of the deployed configuration for the organization in the following
165
+ # format: 'organizations/`org`/deployedIngressConfig'.
166
+ # @param [String] fields
167
+ # Selector specifying which fields to include in a partial response.
168
+ # @param [String] quota_user
169
+ # Available to use for quota purposes for server-side applications. Can be any
170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
171
+ # @param [Google::Apis::RequestOptions] options
172
+ # Request-specific options
173
+ #
174
+ # @yield [result, err] Result & error if block supplied
175
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig] parsed result object
176
+ # @yieldparam err [StandardError] error object if request failed
177
+ #
178
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig]
179
+ #
180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
183
+ def get_organization_deployed_ingress_config(name, fields: nil, quota_user: nil, options: nil, &block)
184
+ command = make_simple_command(:get, 'v1/{+name}', options)
185
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig::Representation
186
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig
187
+ command.params['name'] = name unless name.nil?
188
+ command.query['fields'] = fields unless fields.nil?
189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
190
+ execute_or_queue_command(command, &block)
191
+ end
192
+
162
193
  # Lists the service accounts with the permissions required to allow
163
194
  # the Synchronizer to download environment data from the control plane.
164
195
  # An ETag is returned in the response to `getSyncAuthorization`.
@@ -321,6 +352,206 @@ module Google
321
352
  execute_or_queue_command(command, &block)
322
353
  end
323
354
 
355
+ # Create a Datastore for an org
356
+ # @param [String] parent
357
+ # Required. The parent organization name.
358
+ # Must be of the form `organizations/`org``.
359
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore] google_cloud_apigee_v1_datastore_object
360
+ # @param [String] fields
361
+ # Selector specifying which fields to include in a partial response.
362
+ # @param [String] quota_user
363
+ # Available to use for quota purposes for server-side applications. Can be any
364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
365
+ # @param [Google::Apis::RequestOptions] options
366
+ # Request-specific options
367
+ #
368
+ # @yield [result, err] Result & error if block supplied
369
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore] parsed result object
370
+ # @yieldparam err [StandardError] error object if request failed
371
+ #
372
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore]
373
+ #
374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
377
+ def create_organization_analytic_datastore(parent, google_cloud_apigee_v1_datastore_object = nil, fields: nil, quota_user: nil, options: nil, &block)
378
+ command = make_simple_command(:post, 'v1/{+parent}/analytics/datastores', options)
379
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore::Representation
380
+ command.request_object = google_cloud_apigee_v1_datastore_object
381
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore::Representation
382
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore
383
+ command.params['parent'] = parent unless parent.nil?
384
+ command.query['fields'] = fields unless fields.nil?
385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
386
+ execute_or_queue_command(command, &block)
387
+ end
388
+
389
+ # Delete a Datastore from an org.
390
+ # @param [String] name
391
+ # Required. Resource name of the Datastore to be deleted. Must be of the
392
+ # form `organizations/`org`/analytics/datastores/`datastoreId``
393
+ # @param [String] fields
394
+ # Selector specifying which fields to include in a partial response.
395
+ # @param [String] quota_user
396
+ # Available to use for quota purposes for server-side applications. Can be any
397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
398
+ # @param [Google::Apis::RequestOptions] options
399
+ # Request-specific options
400
+ #
401
+ # @yield [result, err] Result & error if block supplied
402
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleProtobufEmpty] parsed result object
403
+ # @yieldparam err [StandardError] error object if request failed
404
+ #
405
+ # @return [Google::Apis::ApigeeV1::GoogleProtobufEmpty]
406
+ #
407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
410
+ def delete_organization_analytic_datastore(name, fields: nil, quota_user: nil, options: nil, &block)
411
+ command = make_simple_command(:delete, 'v1/{+name}', options)
412
+ command.response_representation = Google::Apis::ApigeeV1::GoogleProtobufEmpty::Representation
413
+ command.response_class = Google::Apis::ApigeeV1::GoogleProtobufEmpty
414
+ command.params['name'] = name unless name.nil?
415
+ command.query['fields'] = fields unless fields.nil?
416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
417
+ execute_or_queue_command(command, &block)
418
+ end
419
+
420
+ # Get a Datastore
421
+ # @param [String] name
422
+ # Required. Resource name of the Datastore to be get. Must be of the
423
+ # form `organizations/`org`/analytics/datastores/`datastoreId``
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
+ # @param [String] quota_user
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [Google::Apis::RequestOptions] options
430
+ # Request-specific options
431
+ #
432
+ # @yield [result, err] Result & error if block supplied
433
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore] parsed result object
434
+ # @yieldparam err [StandardError] error object if request failed
435
+ #
436
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore]
437
+ #
438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
441
+ def get_organization_analytic_datastore(name, fields: nil, quota_user: nil, options: nil, &block)
442
+ command = make_simple_command(:get, 'v1/{+name}', options)
443
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore::Representation
444
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore
445
+ command.params['name'] = name unless name.nil?
446
+ command.query['fields'] = fields unless fields.nil?
447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
448
+ execute_or_queue_command(command, &block)
449
+ end
450
+
451
+ # List Datastores
452
+ # @param [String] parent
453
+ # Required. The parent organization name.
454
+ # Must be of the form `organizations/`org``.
455
+ # @param [String] target_type
456
+ # Optional. TargetType is used to fetch all Datastores that match the type
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDatastoresResponse] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDatastoresResponse]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def list_organization_analytic_datastores(parent, target_type: nil, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:get, 'v1/{+parent}/analytics/datastores', options)
476
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDatastoresResponse::Representation
477
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDatastoresResponse
478
+ command.params['parent'] = parent unless parent.nil?
479
+ command.query['targetType'] = target_type unless target_type.nil?
480
+ command.query['fields'] = fields unless fields.nil?
481
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
482
+ execute_or_queue_command(command, &block)
483
+ end
484
+
485
+ # Test if Datastore configuration is correct. This includes checking
486
+ # if credentials provided by customer have required permissions in target
487
+ # destination storage
488
+ # @param [String] parent
489
+ # Required. The parent organization name
490
+ # Must be of the form `organizations/`org``
491
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore] google_cloud_apigee_v1_datastore_object
492
+ # @param [String] fields
493
+ # Selector specifying which fields to include in a partial response.
494
+ # @param [String] quota_user
495
+ # Available to use for quota purposes for server-side applications. Can be any
496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
497
+ # @param [Google::Apis::RequestOptions] options
498
+ # Request-specific options
499
+ #
500
+ # @yield [result, err] Result & error if block supplied
501
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TestDatastoreResponse] parsed result object
502
+ # @yieldparam err [StandardError] error object if request failed
503
+ #
504
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TestDatastoreResponse]
505
+ #
506
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
507
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
508
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
509
+ def test_organization_analytic_datastore(parent, google_cloud_apigee_v1_datastore_object = nil, fields: nil, quota_user: nil, options: nil, &block)
510
+ command = make_simple_command(:post, 'v1/{+parent}/analytics/datastores:test', options)
511
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore::Representation
512
+ command.request_object = google_cloud_apigee_v1_datastore_object
513
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TestDatastoreResponse::Representation
514
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TestDatastoreResponse
515
+ command.params['parent'] = parent unless parent.nil?
516
+ command.query['fields'] = fields unless fields.nil?
517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ execute_or_queue_command(command, &block)
519
+ end
520
+
521
+ # Update a Datastore
522
+ # @param [String] name
523
+ # Required. The resource name of datastore to be updated. Must be of the
524
+ # form `organizations/`org`/analytics/datastores/`datastoreId``
525
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore] google_cloud_apigee_v1_datastore_object
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # @param [Google::Apis::RequestOptions] options
532
+ # Request-specific options
533
+ #
534
+ # @yield [result, err] Result & error if block supplied
535
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore] parsed result object
536
+ # @yieldparam err [StandardError] error object if request failed
537
+ #
538
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore]
539
+ #
540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
543
+ def update_organization_analytic_datastore(name, google_cloud_apigee_v1_datastore_object = nil, fields: nil, quota_user: nil, options: nil, &block)
544
+ command = make_simple_command(:put, 'v1/{+name}', options)
545
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore::Representation
546
+ command.request_object = google_cloud_apigee_v1_datastore_object
547
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore::Representation
548
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Datastore
549
+ command.params['name'] = name unless name.nil?
550
+ command.query['fields'] = fields unless fields.nil?
551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
552
+ execute_or_queue_command(command, &block)
553
+ end
554
+
324
555
  # Updates or creates API product attributes. This API **replaces** the
325
556
  # current list of attributes with the attributes specified in the request
326
557
  # body. In this way, you can update existing attributes, add new attributes,
@@ -2568,16 +2799,15 @@ module Google
2568
2799
  execute_or_queue_command(command, &block)
2569
2800
  end
2570
2801
 
2571
- # Creates an environment in an organization.
2802
+ # Creates a new environment group.
2572
2803
  # @param [String] parent
2573
- # Required. Name of the organization in which the environment will
2574
- # be created. Use the following structure in your request:
2575
- # `organizations/`org``
2576
- # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment] google_cloud_apigee_v1_environment_object
2804
+ # Required. Name of the organization in which to create the environment group in
2805
+ # the
2806
+ # following format: `organizations/`org``.
2807
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup] google_cloud_apigee_v1_environment_group_object
2577
2808
  # @param [String] name
2578
- # Optional. Name of the environment. Alternatively, the name may
2579
- # be specified in the request body in the
2580
- # name field.
2809
+ # ID of the environment group. Overrides any ID in the environment_group
2810
+ # resource.
2581
2811
  # @param [String] fields
2582
2812
  # Selector specifying which fields to include in a partial response.
2583
2813
  # @param [String] quota_user
@@ -2595,10 +2825,10 @@ module Google
2595
2825
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2596
2826
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2597
2827
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2598
- def create_organization_environment(parent, google_cloud_apigee_v1_environment_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
2599
- command = make_simple_command(:post, 'v1/{+parent}/environments', options)
2600
- command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment::Representation
2601
- command.request_object = google_cloud_apigee_v1_environment_object
2828
+ def create_organization_envgroup(parent, google_cloud_apigee_v1_environment_group_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
2829
+ command = make_simple_command(:post, 'v1/{+parent}/envgroups', options)
2830
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup::Representation
2831
+ command.request_object = google_cloud_apigee_v1_environment_group_object
2602
2832
  command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
2603
2833
  command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
2604
2834
  command.params['parent'] = parent unless parent.nil?
@@ -2608,11 +2838,10 @@ module Google
2608
2838
  execute_or_queue_command(command, &block)
2609
2839
  end
2610
2840
 
2611
- # Deletes an environment from an organization.
2841
+ # Deletes an environment group.
2612
2842
  # @param [String] name
2613
- # Required. Name of the environment. Use the following structure in your
2614
- # request:
2615
- # `organizations/`org`/environments/`env``
2843
+ # Required. Name of the environment group in the following format:
2844
+ # `organizations/`org`/envgroups/`envgroup``.
2616
2845
  # @param [String] fields
2617
2846
  # Selector specifying which fields to include in a partial response.
2618
2847
  # @param [String] quota_user
@@ -2630,7 +2859,7 @@ module Google
2630
2859
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2631
2860
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2632
2861
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2633
- def delete_organization_environment(name, fields: nil, quota_user: nil, options: nil, &block)
2862
+ def delete_organization_envgroup(name, fields: nil, quota_user: nil, options: nil, &block)
2634
2863
  command = make_simple_command(:delete, 'v1/{+name}', options)
2635
2864
  command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
2636
2865
  command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
@@ -2640,10 +2869,10 @@ module Google
2640
2869
  execute_or_queue_command(command, &block)
2641
2870
  end
2642
2871
 
2643
- # Gets environment details.
2872
+ # Gets an environment group.
2644
2873
  # @param [String] name
2645
- # Required. Name of the environment. Use the following structure in your request:
2646
- # `organizations/`org`/environments/`env``
2874
+ # Required. Name of the environment group in the following format:
2875
+ # `organizations/`org`/envgroups/`envgroup``.
2647
2876
  # @param [String] fields
2648
2877
  # Selector specifying which fields to include in a partial response.
2649
2878
  # @param [String] quota_user
@@ -2653,28 +2882,34 @@ module Google
2653
2882
  # Request-specific options
2654
2883
  #
2655
2884
  # @yield [result, err] Result & error if block supplied
2656
- # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment] parsed result object
2885
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup] parsed result object
2657
2886
  # @yieldparam err [StandardError] error object if request failed
2658
2887
  #
2659
- # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment]
2888
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup]
2660
2889
  #
2661
2890
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2662
2891
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2663
2892
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2664
- def get_organization_environment(name, fields: nil, quota_user: nil, options: nil, &block)
2893
+ def get_organization_envgroup(name, fields: nil, quota_user: nil, options: nil, &block)
2665
2894
  command = make_simple_command(:get, 'v1/{+name}', options)
2666
- command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment::Representation
2667
- command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment
2895
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup::Representation
2896
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup
2668
2897
  command.params['name'] = name unless name.nil?
2669
2898
  command.query['fields'] = fields unless fields.nil?
2670
2899
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2671
2900
  execute_or_queue_command(command, &block)
2672
2901
  end
2673
2902
 
2674
- # Gets the debug mask singleton resource for an environment.
2675
- # @param [String] name
2676
- # Required. Name of the debug mask. Use the following structure in your request:
2677
- # `organizations/`org`/environments/`env`/debugmask`.
2903
+ # Lists all environment groups.
2904
+ # @param [String] parent
2905
+ # Required. Name of the organization for which to list environment groups in the
2906
+ # following format: `organizations/`org``.
2907
+ # @param [Fixnum] page_size
2908
+ # Maximum number of environment groups to return. The page size defaults
2909
+ # to 25.
2910
+ # @param [String] page_token
2911
+ # Page token, returned from a previous ListEnvironmentGroups call, that you
2912
+ # can use to retrieve the next page.
2678
2913
  # @param [String] fields
2679
2914
  # Selector specifying which fields to include in a partial response.
2680
2915
  # @param [String] quota_user
@@ -2684,30 +2919,33 @@ module Google
2684
2919
  # Request-specific options
2685
2920
  #
2686
2921
  # @yield [result, err] Result & error if block supplied
2687
- # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask] parsed result object
2922
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupsResponse] parsed result object
2688
2923
  # @yieldparam err [StandardError] error object if request failed
2689
2924
  #
2690
- # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask]
2925
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupsResponse]
2691
2926
  #
2692
2927
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2693
2928
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2694
2929
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2695
- def get_organization_environment_debugmask(name, fields: nil, quota_user: nil, options: nil, &block)
2696
- command = make_simple_command(:get, 'v1/{+name}', options)
2697
- command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask::Representation
2698
- command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask
2699
- command.params['name'] = name unless name.nil?
2930
+ def list_organization_envgroups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2931
+ command = make_simple_command(:get, 'v1/{+parent}/envgroups', options)
2932
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupsResponse::Representation
2933
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupsResponse
2934
+ command.params['parent'] = parent unless parent.nil?
2935
+ command.query['pageSize'] = page_size unless page_size.nil?
2936
+ command.query['pageToken'] = page_token unless page_token.nil?
2700
2937
  command.query['fields'] = fields unless fields.nil?
2701
2938
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2702
2939
  execute_or_queue_command(command, &block)
2703
2940
  end
2704
2941
 
2705
- # Gets the deployed configuration for an environment.
2942
+ # Updates an environment group.
2706
2943
  # @param [String] name
2707
- # Required. Name of the environment deployed configuration resource. Use the
2708
- # following
2709
- # structure in your request:
2710
- # `organizations/`org`/environments/`env`/deployedConfig`
2944
+ # Required. Name of the environment group to update in the format:
2945
+ # `organizations/`org`/envgroups/`envgroup`.
2946
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup] google_cloud_apigee_v1_environment_group_object
2947
+ # @param [String] update_mask
2948
+ # List of fields to be updated.
2711
2949
  # @param [String] fields
2712
2950
  # Selector specifying which fields to include in a partial response.
2713
2951
  # @param [String] quota_user
@@ -2717,42 +2955,33 @@ module Google
2717
2955
  # Request-specific options
2718
2956
  #
2719
2957
  # @yield [result, err] Result & error if block supplied
2720
- # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig] parsed result object
2958
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
2721
2959
  # @yieldparam err [StandardError] error object if request failed
2722
2960
  #
2723
- # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig]
2961
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
2724
2962
  #
2725
2963
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2726
2964
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2727
2965
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2728
- def get_organization_environment_deployed_config(name, fields: nil, quota_user: nil, options: nil, &block)
2729
- command = make_simple_command(:get, 'v1/{+name}', options)
2730
- command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig::Representation
2731
- command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig
2966
+ def patch_organization_envgroup(name, google_cloud_apigee_v1_environment_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2967
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2968
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroup::Representation
2969
+ command.request_object = google_cloud_apigee_v1_environment_group_object
2970
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
2971
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
2732
2972
  command.params['name'] = name unless name.nil?
2973
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2733
2974
  command.query['fields'] = fields unless fields.nil?
2734
2975
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2735
2976
  execute_or_queue_command(command, &block)
2736
2977
  end
2737
2978
 
2738
- # Gets the IAM policy on an environment. For more information, see
2739
- # [Manage users, roles, and permissions
2740
- # using the API](https://docs.apigee.com/hybrid/latest/manage-users-roles).
2741
- # You must have the `apigee.environments.getIamPolicy` permission to call
2742
- # this API.
2743
- # @param [String] resource
2744
- # REQUIRED: The resource for which the policy is being requested.
2745
- # See the operation documentation for the appropriate value for this field.
2746
- # @param [Fixnum] options_requested_policy_version
2747
- # Optional. The policy format version to be returned.
2748
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2749
- # rejected.
2750
- # Requests for policies with any conditional bindings must specify version 3.
2751
- # Policies without any conditional bindings may specify any valid value or
2752
- # leave the field unset.
2753
- # To learn which resources support conditions in their IAM policies, see the
2754
- # [IAM
2755
- # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2979
+ # Creates a new attachment of an environment to an environment group.
2980
+ # @param [String] parent
2981
+ # Required. EnvironmentGroup under which to create the attachment in the
2982
+ # following
2983
+ # format: `organizations/`org`/envgroups/`envgroup``.
2984
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupAttachment] google_cloud_apigee_v1_environment_group_attachment_object
2756
2985
  # @param [String] fields
2757
2986
  # Selector specifying which fields to include in a partial response.
2758
2987
  # @param [String] quota_user
@@ -2762,21 +2991,337 @@ module Google
2762
2991
  # Request-specific options
2763
2992
  #
2764
2993
  # @yield [result, err] Result & error if block supplied
2765
- # @yieldparam result [Google::Apis::ApigeeV1::GoogleIamV1Policy] parsed result object
2994
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
2766
2995
  # @yieldparam err [StandardError] error object if request failed
2767
2996
  #
2768
- # @return [Google::Apis::ApigeeV1::GoogleIamV1Policy]
2997
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
2769
2998
  #
2770
2999
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2771
3000
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2772
3001
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2773
- def get_organization_environment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2774
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2775
- command.response_representation = Google::Apis::ApigeeV1::GoogleIamV1Policy::Representation
2776
- command.response_class = Google::Apis::ApigeeV1::GoogleIamV1Policy
2777
- command.params['resource'] = resource unless resource.nil?
2778
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2779
- command.query['fields'] = fields unless fields.nil?
3002
+ def create_organization_envgroup_attachment(parent, google_cloud_apigee_v1_environment_group_attachment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3003
+ command = make_simple_command(:post, 'v1/{+parent}/attachments', options)
3004
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupAttachment::Representation
3005
+ command.request_object = google_cloud_apigee_v1_environment_group_attachment_object
3006
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
3007
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
3008
+ command.params['parent'] = parent unless parent.nil?
3009
+ command.query['fields'] = fields unless fields.nil?
3010
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3011
+ execute_or_queue_command(command, &block)
3012
+ end
3013
+
3014
+ # Deletes an environment group attachment.
3015
+ # @param [String] name
3016
+ # Required. Name of the environment group attachment to delete in the following
3017
+ # format:
3018
+ # `organizations/`org`/envgroups/`envgroup`/attachments/`attachment``.
3019
+ # @param [String] fields
3020
+ # Selector specifying which fields to include in a partial response.
3021
+ # @param [String] quota_user
3022
+ # Available to use for quota purposes for server-side applications. Can be any
3023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3024
+ # @param [Google::Apis::RequestOptions] options
3025
+ # Request-specific options
3026
+ #
3027
+ # @yield [result, err] Result & error if block supplied
3028
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
3029
+ # @yieldparam err [StandardError] error object if request failed
3030
+ #
3031
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
3032
+ #
3033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3036
+ def delete_organization_envgroup_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
3037
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3038
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
3039
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
3040
+ command.params['name'] = name unless name.nil?
3041
+ command.query['fields'] = fields unless fields.nil?
3042
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3043
+ execute_or_queue_command(command, &block)
3044
+ end
3045
+
3046
+ # Gets an environment group attachment.
3047
+ # @param [String] name
3048
+ # Required. Name of the environment group attachment in the following format:
3049
+ # `organizations/`org`/envgroups/`envgroup`/attachments/`attachment``
3050
+ # @param [String] fields
3051
+ # Selector specifying which fields to include in a partial response.
3052
+ # @param [String] quota_user
3053
+ # Available to use for quota purposes for server-side applications. Can be any
3054
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3055
+ # @param [Google::Apis::RequestOptions] options
3056
+ # Request-specific options
3057
+ #
3058
+ # @yield [result, err] Result & error if block supplied
3059
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupAttachment] parsed result object
3060
+ # @yieldparam err [StandardError] error object if request failed
3061
+ #
3062
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupAttachment]
3063
+ #
3064
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3065
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3066
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3067
+ def get_organization_envgroup_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
3068
+ command = make_simple_command(:get, 'v1/{+name}', options)
3069
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupAttachment::Representation
3070
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupAttachment
3071
+ command.params['name'] = name unless name.nil?
3072
+ command.query['fields'] = fields unless fields.nil?
3073
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3074
+ execute_or_queue_command(command, &block)
3075
+ end
3076
+
3077
+ # Lists all attachments of an environment group.
3078
+ # @param [String] parent
3079
+ # Required. Name of the organization in the following format: `organizations/`
3080
+ # org``.
3081
+ # @param [Fixnum] page_size
3082
+ # Maximum number of environment group attachments to return. The page size
3083
+ # defaults to 25.
3084
+ # @param [String] page_token
3085
+ # Page token, returned by a previous ListEnvironmentGroupAttachments call,
3086
+ # that you can use to retrieve the next page.
3087
+ # @param [String] fields
3088
+ # Selector specifying which fields to include in a partial response.
3089
+ # @param [String] quota_user
3090
+ # Available to use for quota purposes for server-side applications. Can be any
3091
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3092
+ # @param [Google::Apis::RequestOptions] options
3093
+ # Request-specific options
3094
+ #
3095
+ # @yield [result, err] Result & error if block supplied
3096
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse] parsed result object
3097
+ # @yieldparam err [StandardError] error object if request failed
3098
+ #
3099
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse]
3100
+ #
3101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3104
+ def list_organization_envgroup_attachments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3105
+ command = make_simple_command(:get, 'v1/{+parent}/attachments', options)
3106
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse::Representation
3107
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
3108
+ command.params['parent'] = parent unless parent.nil?
3109
+ command.query['pageSize'] = page_size unless page_size.nil?
3110
+ command.query['pageToken'] = page_token unless page_token.nil?
3111
+ command.query['fields'] = fields unless fields.nil?
3112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3113
+ execute_or_queue_command(command, &block)
3114
+ end
3115
+
3116
+ # Creates an environment in an organization.
3117
+ # @param [String] parent
3118
+ # Required. Name of the organization in which the environment will
3119
+ # be created. Use the following structure in your request:
3120
+ # `organizations/`org``
3121
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment] google_cloud_apigee_v1_environment_object
3122
+ # @param [String] name
3123
+ # Optional. Name of the environment. Alternatively, the name may
3124
+ # be specified in the request body in the
3125
+ # name field.
3126
+ # @param [String] fields
3127
+ # Selector specifying which fields to include in a partial response.
3128
+ # @param [String] quota_user
3129
+ # Available to use for quota purposes for server-side applications. Can be any
3130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3131
+ # @param [Google::Apis::RequestOptions] options
3132
+ # Request-specific options
3133
+ #
3134
+ # @yield [result, err] Result & error if block supplied
3135
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
3136
+ # @yieldparam err [StandardError] error object if request failed
3137
+ #
3138
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
3139
+ #
3140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3143
+ def create_organization_environment(parent, google_cloud_apigee_v1_environment_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
3144
+ command = make_simple_command(:post, 'v1/{+parent}/environments', options)
3145
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment::Representation
3146
+ command.request_object = google_cloud_apigee_v1_environment_object
3147
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
3148
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
3149
+ command.params['parent'] = parent unless parent.nil?
3150
+ command.query['name'] = name unless name.nil?
3151
+ command.query['fields'] = fields unless fields.nil?
3152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3153
+ execute_or_queue_command(command, &block)
3154
+ end
3155
+
3156
+ # Deletes an environment from an organization.
3157
+ # @param [String] name
3158
+ # Required. Name of the environment. Use the following structure in your
3159
+ # request:
3160
+ # `organizations/`org`/environments/`env``
3161
+ # @param [String] fields
3162
+ # Selector specifying which fields to include in a partial response.
3163
+ # @param [String] quota_user
3164
+ # Available to use for quota purposes for server-side applications. Can be any
3165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3166
+ # @param [Google::Apis::RequestOptions] options
3167
+ # Request-specific options
3168
+ #
3169
+ # @yield [result, err] Result & error if block supplied
3170
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
3171
+ # @yieldparam err [StandardError] error object if request failed
3172
+ #
3173
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
3174
+ #
3175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3178
+ def delete_organization_environment(name, fields: nil, quota_user: nil, options: nil, &block)
3179
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3180
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
3181
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
3182
+ command.params['name'] = name unless name.nil?
3183
+ command.query['fields'] = fields unless fields.nil?
3184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3185
+ execute_or_queue_command(command, &block)
3186
+ end
3187
+
3188
+ # Gets environment details.
3189
+ # @param [String] name
3190
+ # Required. Name of the environment. Use the following structure in your request:
3191
+ # `organizations/`org`/environments/`env``
3192
+ # @param [String] fields
3193
+ # Selector specifying which fields to include in a partial response.
3194
+ # @param [String] quota_user
3195
+ # Available to use for quota purposes for server-side applications. Can be any
3196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3197
+ # @param [Google::Apis::RequestOptions] options
3198
+ # Request-specific options
3199
+ #
3200
+ # @yield [result, err] Result & error if block supplied
3201
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment] parsed result object
3202
+ # @yieldparam err [StandardError] error object if request failed
3203
+ #
3204
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment]
3205
+ #
3206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3209
+ def get_organization_environment(name, fields: nil, quota_user: nil, options: nil, &block)
3210
+ command = make_simple_command(:get, 'v1/{+name}', options)
3211
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment::Representation
3212
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Environment
3213
+ command.params['name'] = name unless name.nil?
3214
+ command.query['fields'] = fields unless fields.nil?
3215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3216
+ execute_or_queue_command(command, &block)
3217
+ end
3218
+
3219
+ # Gets the debug mask singleton resource for an environment.
3220
+ # @param [String] name
3221
+ # Required. Name of the debug mask. Use the following structure in your request:
3222
+ # `organizations/`org`/environments/`env`/debugmask`.
3223
+ # @param [String] fields
3224
+ # Selector specifying which fields to include in a partial response.
3225
+ # @param [String] quota_user
3226
+ # Available to use for quota purposes for server-side applications. Can be any
3227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3228
+ # @param [Google::Apis::RequestOptions] options
3229
+ # Request-specific options
3230
+ #
3231
+ # @yield [result, err] Result & error if block supplied
3232
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask] parsed result object
3233
+ # @yieldparam err [StandardError] error object if request failed
3234
+ #
3235
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask]
3236
+ #
3237
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3238
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3239
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3240
+ def get_organization_environment_debugmask(name, fields: nil, quota_user: nil, options: nil, &block)
3241
+ command = make_simple_command(:get, 'v1/{+name}', options)
3242
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask::Representation
3243
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugMask
3244
+ command.params['name'] = name unless name.nil?
3245
+ command.query['fields'] = fields unless fields.nil?
3246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3247
+ execute_or_queue_command(command, &block)
3248
+ end
3249
+
3250
+ # Gets the deployed configuration for an environment.
3251
+ # @param [String] name
3252
+ # Required. Name of the environment deployed configuration resource. Use the
3253
+ # following
3254
+ # structure in your request:
3255
+ # `organizations/`org`/environments/`env`/deployedConfig`
3256
+ # @param [String] fields
3257
+ # Selector specifying which fields to include in a partial response.
3258
+ # @param [String] quota_user
3259
+ # Available to use for quota purposes for server-side applications. Can be any
3260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3261
+ # @param [Google::Apis::RequestOptions] options
3262
+ # Request-specific options
3263
+ #
3264
+ # @yield [result, err] Result & error if block supplied
3265
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig] parsed result object
3266
+ # @yieldparam err [StandardError] error object if request failed
3267
+ #
3268
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig]
3269
+ #
3270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3273
+ def get_organization_environment_deployed_config(name, fields: nil, quota_user: nil, options: nil, &block)
3274
+ command = make_simple_command(:get, 'v1/{+name}', options)
3275
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig::Representation
3276
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfig
3277
+ command.params['name'] = name unless name.nil?
3278
+ command.query['fields'] = fields unless fields.nil?
3279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3280
+ execute_or_queue_command(command, &block)
3281
+ end
3282
+
3283
+ # Gets the IAM policy on an environment. For more information, see
3284
+ # [Manage users, roles, and permissions
3285
+ # using the API](https://docs.apigee.com/hybrid/latest/manage-users-roles).
3286
+ # You must have the `apigee.environments.getIamPolicy` permission to call
3287
+ # this API.
3288
+ # @param [String] resource
3289
+ # REQUIRED: The resource for which the policy is being requested.
3290
+ # See the operation documentation for the appropriate value for this field.
3291
+ # @param [Fixnum] options_requested_policy_version
3292
+ # Optional. The policy format version to be returned.
3293
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
3294
+ # rejected.
3295
+ # Requests for policies with any conditional bindings must specify version 3.
3296
+ # Policies without any conditional bindings may specify any valid value or
3297
+ # leave the field unset.
3298
+ # To learn which resources support conditions in their IAM policies, see the
3299
+ # [IAM
3300
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3301
+ # @param [String] fields
3302
+ # Selector specifying which fields to include in a partial response.
3303
+ # @param [String] quota_user
3304
+ # Available to use for quota purposes for server-side applications. Can be any
3305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3306
+ # @param [Google::Apis::RequestOptions] options
3307
+ # Request-specific options
3308
+ #
3309
+ # @yield [result, err] Result & error if block supplied
3310
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleIamV1Policy] parsed result object
3311
+ # @yieldparam err [StandardError] error object if request failed
3312
+ #
3313
+ # @return [Google::Apis::ApigeeV1::GoogleIamV1Policy]
3314
+ #
3315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3318
+ def get_organization_environment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
3319
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
3320
+ command.response_representation = Google::Apis::ApigeeV1::GoogleIamV1Policy::Representation
3321
+ command.response_class = Google::Apis::ApigeeV1::GoogleIamV1Policy
3322
+ command.params['resource'] = resource unless resource.nil?
3323
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
3324
+ command.query['fields'] = fields unless fields.nil?
2780
3325
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2781
3326
  execute_or_queue_command(command, &block)
2782
3327
  end
@@ -3079,6 +3624,109 @@ module Google
3079
3624
  execute_or_queue_command(command, &block)
3080
3625
  end
3081
3626
 
3627
+ # Submit a data export job to be processed in the background.
3628
+ # If the request is successful, the API returns a 201 status, a URI that can
3629
+ # be used to retrieve the status of the export job, and the `state` value of
3630
+ # "enqueued".
3631
+ # @param [String] parent
3632
+ # Required. Names of the parent organization and environment.
3633
+ # Must be of the form `organizations/`org`/environments/`env``.
3634
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ExportRequest] google_cloud_apigee_v1_export_request_object
3635
+ # @param [String] fields
3636
+ # Selector specifying which fields to include in a partial response.
3637
+ # @param [String] quota_user
3638
+ # Available to use for quota purposes for server-side applications. Can be any
3639
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3640
+ # @param [Google::Apis::RequestOptions] options
3641
+ # Request-specific options
3642
+ #
3643
+ # @yield [result, err] Result & error if block supplied
3644
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export] parsed result object
3645
+ # @yieldparam err [StandardError] error object if request failed
3646
+ #
3647
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export]
3648
+ #
3649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3652
+ def create_organization_environment_analytic_export(parent, google_cloud_apigee_v1_export_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3653
+ command = make_simple_command(:post, 'v1/{+parent}/analytics/exports', options)
3654
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ExportRequest::Representation
3655
+ command.request_object = google_cloud_apigee_v1_export_request_object
3656
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export::Representation
3657
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export
3658
+ command.params['parent'] = parent unless parent.nil?
3659
+ command.query['fields'] = fields unless fields.nil?
3660
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3661
+ execute_or_queue_command(command, &block)
3662
+ end
3663
+
3664
+ # Gets the details and status of an analytics export job.
3665
+ # If the export job is still in progress, its `state` is set to "running".
3666
+ # After the export job has completed successfully, its `state` is set to
3667
+ # "completed".
3668
+ # If the export job fails, its `state` is set to `failed`.
3669
+ # @param [String] name
3670
+ # Required. Resource name of the export to get.
3671
+ # @param [String] fields
3672
+ # Selector specifying which fields to include in a partial response.
3673
+ # @param [String] quota_user
3674
+ # Available to use for quota purposes for server-side applications. Can be any
3675
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3676
+ # @param [Google::Apis::RequestOptions] options
3677
+ # Request-specific options
3678
+ #
3679
+ # @yield [result, err] Result & error if block supplied
3680
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export] parsed result object
3681
+ # @yieldparam err [StandardError] error object if request failed
3682
+ #
3683
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export]
3684
+ #
3685
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3686
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3687
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3688
+ def get_organization_environment_analytic_export(name, fields: nil, quota_user: nil, options: nil, &block)
3689
+ command = make_simple_command(:get, 'v1/{+name}', options)
3690
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export::Representation
3691
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Export
3692
+ command.params['name'] = name unless name.nil?
3693
+ command.query['fields'] = fields unless fields.nil?
3694
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3695
+ execute_or_queue_command(command, &block)
3696
+ end
3697
+
3698
+ # Lists the details and status of all analytics export jobs belonging to the
3699
+ # parent organization and environment.
3700
+ # @param [String] parent
3701
+ # Required. Names of the parent organization and environment.
3702
+ # Must be of the form `organizations/`org`/environments/`env``.
3703
+ # @param [String] fields
3704
+ # Selector specifying which fields to include in a partial response.
3705
+ # @param [String] quota_user
3706
+ # Available to use for quota purposes for server-side applications. Can be any
3707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3708
+ # @param [Google::Apis::RequestOptions] options
3709
+ # Request-specific options
3710
+ #
3711
+ # @yield [result, err] Result & error if block supplied
3712
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListExportsResponse] parsed result object
3713
+ # @yieldparam err [StandardError] error object if request failed
3714
+ #
3715
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListExportsResponse]
3716
+ #
3717
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3718
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3719
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3720
+ def list_organization_environment_analytic_exports(parent, fields: nil, quota_user: nil, options: nil, &block)
3721
+ command = make_simple_command(:get, 'v1/{+parent}/analytics/exports', options)
3722
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListExportsResponse::Representation
3723
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListExportsResponse
3724
+ command.params['parent'] = parent unless parent.nil?
3725
+ command.query['fields'] = fields unless fields.nil?
3726
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3727
+ execute_or_queue_command(command, &block)
3728
+ end
3729
+
3082
3730
  # Lists all deployments of an API proxy in an environment.
3083
3731
  # @param [String] parent
3084
3732
  # Required. Name representing an API proxy in an environment in the following
@@ -3308,31 +3956,114 @@ module Google
3308
3956
  # Request-specific options
3309
3957
  #
3310
3958
  # @yield [result, err] Result & error if block supplied
3311
- # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse] parsed result object
3959
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse] parsed result object
3960
+ # @yieldparam err [StandardError] error object if request failed
3961
+ #
3962
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse]
3963
+ #
3964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3967
+ def list_organization_environment_api_revision_debugsessions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3968
+ command = make_simple_command(:get, 'v1/{+parent}/debugsessions', options)
3969
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse::Representation
3970
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse
3971
+ command.params['parent'] = parent unless parent.nil?
3972
+ command.query['pageSize'] = page_size unless page_size.nil?
3973
+ command.query['pageToken'] = page_token unless page_token.nil?
3974
+ command.query['fields'] = fields unless fields.nil?
3975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3976
+ execute_or_queue_command(command, &block)
3977
+ end
3978
+
3979
+ # Gets the debug data from a transaction.
3980
+ # @param [String] name
3981
+ # Required. The name of the debug session transaction. Must be of the form:
3982
+ # `organizations/`organization`/environments/`environment`/apis/`api`/revisions/
3983
+ # `revision`/debugsessions/`session`/data/`transaction``.
3984
+ # @param [String] fields
3985
+ # Selector specifying which fields to include in a partial response.
3986
+ # @param [String] quota_user
3987
+ # Available to use for quota purposes for server-side applications. Can be any
3988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3989
+ # @param [Google::Apis::RequestOptions] options
3990
+ # Request-specific options
3991
+ #
3992
+ # @yield [result, err] Result & error if block supplied
3993
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction] parsed result object
3994
+ # @yieldparam err [StandardError] error object if request failed
3995
+ #
3996
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction]
3997
+ #
3998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4001
+ def get_organization_environment_api_revision_debugsession_datum(name, fields: nil, quota_user: nil, options: nil, &block)
4002
+ command = make_simple_command(:get, 'v1/{+name}', options)
4003
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction::Representation
4004
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction
4005
+ command.params['name'] = name unless name.nil?
4006
+ command.query['fields'] = fields unless fields.nil?
4007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4008
+ execute_or_queue_command(command, &block)
4009
+ end
4010
+
4011
+ # Generates a report for a dry run analysis of a DeployApiProxy request
4012
+ # without committing the deployment.
4013
+ # In addition to the standard validations performed when adding deployments,
4014
+ # additional analysis will be done to detect possible traffic routing changes
4015
+ # that would result from this deployment being created. Any potential routing
4016
+ # conflicts or unsafe changes will be reported in the response. This routing
4017
+ # analysis is not performed for a non-dry-run DeployApiProxy request.
4018
+ # @param [String] name
4019
+ # Name of the API proxy revision deployment in the following format:
4020
+ # `organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
4021
+ # @param [String] basepath
4022
+ # Base path where the API proxy revision should be deployed. Defaults to '/'
4023
+ # if not provided.
4024
+ # @param [Boolean] override
4025
+ # Flag that specifies whether to force the deployment of the new revision
4026
+ # over the currently deployed revision by overriding conflict checks.
4027
+ # @param [String] fields
4028
+ # Selector specifying which fields to include in a partial response.
4029
+ # @param [String] quota_user
4030
+ # Available to use for quota purposes for server-side applications. Can be any
4031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4032
+ # @param [Google::Apis::RequestOptions] options
4033
+ # Request-specific options
4034
+ #
4035
+ # @yield [result, err] Result & error if block supplied
4036
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport] parsed result object
3312
4037
  # @yieldparam err [StandardError] error object if request failed
3313
4038
  #
3314
- # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse]
4039
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport]
3315
4040
  #
3316
4041
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3317
4042
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3318
4043
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3319
- def list_organization_environment_api_revision_debugsessions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3320
- command = make_simple_command(:get, 'v1/{+parent}/debugsessions', options)
3321
- command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse::Representation
3322
- command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDebugSessionsResponse
3323
- command.params['parent'] = parent unless parent.nil?
3324
- command.query['pageSize'] = page_size unless page_size.nil?
3325
- command.query['pageToken'] = page_token unless page_token.nil?
4044
+ def generate_organization_environment_api_revision_deployment_deploy_change_report(name, basepath: nil, override: nil, fields: nil, quota_user: nil, options: nil, &block)
4045
+ command = make_simple_command(:post, 'v1/{+name}/deployments:generateDeployChangeReport', options)
4046
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport::Representation
4047
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport
4048
+ command.params['name'] = name unless name.nil?
4049
+ command.query['basepath'] = basepath unless basepath.nil?
4050
+ command.query['override'] = override unless override.nil?
3326
4051
  command.query['fields'] = fields unless fields.nil?
3327
4052
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3328
4053
  execute_or_queue_command(command, &block)
3329
4054
  end
3330
4055
 
3331
- # Gets the debug data from a transaction.
4056
+ # Generates a report for a dry run analysis of an UndeployApiProxy request
4057
+ # without committing the undeploy.
4058
+ # In addition to the standard validations performed when removing
4059
+ # deployments, additional analysis will be done to detect possible traffic
4060
+ # routing changes that would result from this deployment being removed. Any
4061
+ # potential routing conflicts or unsafe changes will be reported in the
4062
+ # response. This routing analysis is not performed for a non-dry-run
4063
+ # UndeployApiProxy request.
3332
4064
  # @param [String] name
3333
- # Required. The name of the debug session transaction. Must be of the form:
3334
- # `organizations/`organization`/environments/`environment`/apis/`api`/revisions/
3335
- # `revision`/debugsessions/`session`/data/`transaction``.
4065
+ # Name of the API proxy revision deployment in the following format:
4066
+ # `organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
3336
4067
  # @param [String] fields
3337
4068
  # Selector specifying which fields to include in a partial response.
3338
4069
  # @param [String] quota_user
@@ -3342,18 +4073,18 @@ module Google
3342
4073
  # Request-specific options
3343
4074
  #
3344
4075
  # @yield [result, err] Result & error if block supplied
3345
- # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction] parsed result object
4076
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport] parsed result object
3346
4077
  # @yieldparam err [StandardError] error object if request failed
3347
4078
  #
3348
- # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction]
4079
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport]
3349
4080
  #
3350
4081
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3351
4082
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3352
4083
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3353
- def get_organization_environment_api_revision_debugsession_datum(name, fields: nil, quota_user: nil, options: nil, &block)
3354
- command = make_simple_command(:get, 'v1/{+name}', options)
3355
- command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction::Representation
3356
- command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DebugSessionTransaction
4084
+ def generate_organization_environment_api_revision_deployment_undeploy_change_report(name, fields: nil, quota_user: nil, options: nil, &block)
4085
+ command = make_simple_command(:post, 'v1/{+name}/deployments:generateUndeployChangeReport', options)
4086
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport::Representation
4087
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReport
3357
4088
  command.params['name'] = name unless name.nil?
3358
4089
  command.query['fields'] = fields unless fields.nil?
3359
4090
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -4916,6 +5647,321 @@ module Google
4916
5647
  execute_or_queue_command(command, &block)
4917
5648
  end
4918
5649
 
5650
+ # Creates an Apigee runtime instance. The instance is accessible from the
5651
+ # authorized network configured on the organization.
5652
+ # **Note:** Not supported for Apigee hybrid.
5653
+ # @param [String] parent
5654
+ # Required. Name of the organization. Use the following structure in your
5655
+ # request:
5656
+ # `organizations/`org``.
5657
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Instance] google_cloud_apigee_v1_instance_object
5658
+ # @param [String] fields
5659
+ # Selector specifying which fields to include in a partial response.
5660
+ # @param [String] quota_user
5661
+ # Available to use for quota purposes for server-side applications. Can be any
5662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5663
+ # @param [Google::Apis::RequestOptions] options
5664
+ # Request-specific options
5665
+ #
5666
+ # @yield [result, err] Result & error if block supplied
5667
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
5668
+ # @yieldparam err [StandardError] error object if request failed
5669
+ #
5670
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
5671
+ #
5672
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5673
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5674
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5675
+ def create_organization_instance(parent, google_cloud_apigee_v1_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5676
+ command = make_simple_command(:post, 'v1/{+parent}/instances', options)
5677
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Instance::Representation
5678
+ command.request_object = google_cloud_apigee_v1_instance_object
5679
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
5680
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
5681
+ command.params['parent'] = parent unless parent.nil?
5682
+ command.query['fields'] = fields unless fields.nil?
5683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5684
+ execute_or_queue_command(command, &block)
5685
+ end
5686
+
5687
+ # Deletes an Apigee runtime instance. The instance stops serving
5688
+ # requests and the runtime data is deleted.
5689
+ # **Note:** Not supported for Apigee hybrid.
5690
+ # @param [String] name
5691
+ # Name of the instance. Use the following structure in your request:
5692
+ # `organizations/`org`/instance/`instance``.
5693
+ # @param [String] fields
5694
+ # Selector specifying which fields to include in a partial response.
5695
+ # @param [String] quota_user
5696
+ # Available to use for quota purposes for server-side applications. Can be any
5697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5698
+ # @param [Google::Apis::RequestOptions] options
5699
+ # Request-specific options
5700
+ #
5701
+ # @yield [result, err] Result & error if block supplied
5702
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
5703
+ # @yieldparam err [StandardError] error object if request failed
5704
+ #
5705
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
5706
+ #
5707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5710
+ def delete_organization_instance(name, fields: nil, quota_user: nil, options: nil, &block)
5711
+ command = make_simple_command(:delete, 'v1/{+name}', options)
5712
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
5713
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
5714
+ command.params['name'] = name unless name.nil?
5715
+ command.query['fields'] = fields unless fields.nil?
5716
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5717
+ execute_or_queue_command(command, &block)
5718
+ end
5719
+
5720
+ # Gets the details for an Apigee runtime instance.
5721
+ # **Note:** Not supported for Apigee hybrid.
5722
+ # @param [String] name
5723
+ # Name of the instance. Use the following structure in your request:
5724
+ # `organizations/`org`/instances/`instance``.
5725
+ # @param [String] fields
5726
+ # Selector specifying which fields to include in a partial response.
5727
+ # @param [String] quota_user
5728
+ # Available to use for quota purposes for server-side applications. Can be any
5729
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5730
+ # @param [Google::Apis::RequestOptions] options
5731
+ # Request-specific options
5732
+ #
5733
+ # @yield [result, err] Result & error if block supplied
5734
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Instance] parsed result object
5735
+ # @yieldparam err [StandardError] error object if request failed
5736
+ #
5737
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Instance]
5738
+ #
5739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5742
+ def get_organization_instance(name, fields: nil, quota_user: nil, options: nil, &block)
5743
+ command = make_simple_command(:get, 'v1/{+name}', options)
5744
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Instance::Representation
5745
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Instance
5746
+ command.params['name'] = name unless name.nil?
5747
+ command.query['fields'] = fields unless fields.nil?
5748
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5749
+ execute_or_queue_command(command, &block)
5750
+ end
5751
+
5752
+ # Lists all Apigee runtime instances for the organization.
5753
+ # **Note:** Not supported for Apigee hybrid.
5754
+ # @param [String] parent
5755
+ # Name of the organization. Use the following structure in your request:
5756
+ # `organizations/`org``.
5757
+ # @param [Fixnum] page_size
5758
+ # Maximum number of instances to return. Defaults to 25.
5759
+ # @param [String] page_token
5760
+ # Page token, returned from a previous ListInstances call, that you can
5761
+ # use to retrieve the next page of content.
5762
+ # @param [String] fields
5763
+ # Selector specifying which fields to include in a partial response.
5764
+ # @param [String] quota_user
5765
+ # Available to use for quota purposes for server-side applications. Can be any
5766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5767
+ # @param [Google::Apis::RequestOptions] options
5768
+ # Request-specific options
5769
+ #
5770
+ # @yield [result, err] Result & error if block supplied
5771
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstancesResponse] parsed result object
5772
+ # @yieldparam err [StandardError] error object if request failed
5773
+ #
5774
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstancesResponse]
5775
+ #
5776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5779
+ def list_organization_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5780
+ command = make_simple_command(:get, 'v1/{+parent}/instances', options)
5781
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstancesResponse::Representation
5782
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstancesResponse
5783
+ command.params['parent'] = parent unless parent.nil?
5784
+ command.query['pageSize'] = page_size unless page_size.nil?
5785
+ command.query['pageToken'] = page_token unless page_token.nil?
5786
+ command.query['fields'] = fields unless fields.nil?
5787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5788
+ execute_or_queue_command(command, &block)
5789
+ end
5790
+
5791
+ # Reports the latest status for a runtime instance.
5792
+ # @param [String] instance
5793
+ # The name of the instance reporting this status. For SaaS the request
5794
+ # will be rejected if no instance exists under this name.
5795
+ # Format is organizations/`org`/instances/`instance`
5796
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ReportInstanceStatusRequest] google_cloud_apigee_v1_report_instance_status_request_object
5797
+ # @param [String] fields
5798
+ # Selector specifying which fields to include in a partial response.
5799
+ # @param [String] quota_user
5800
+ # Available to use for quota purposes for server-side applications. Can be any
5801
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5802
+ # @param [Google::Apis::RequestOptions] options
5803
+ # Request-specific options
5804
+ #
5805
+ # @yield [result, err] Result & error if block supplied
5806
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ReportInstanceStatusResponse] parsed result object
5807
+ # @yieldparam err [StandardError] error object if request failed
5808
+ #
5809
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ReportInstanceStatusResponse]
5810
+ #
5811
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5812
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5813
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5814
+ def report_organization_instance_status(instance, google_cloud_apigee_v1_report_instance_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5815
+ command = make_simple_command(:post, 'v1/{+instance}:reportStatus', options)
5816
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ReportInstanceStatusRequest::Representation
5817
+ command.request_object = google_cloud_apigee_v1_report_instance_status_request_object
5818
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ReportInstanceStatusResponse::Representation
5819
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ReportInstanceStatusResponse
5820
+ command.params['instance'] = instance unless instance.nil?
5821
+ command.query['fields'] = fields unless fields.nil?
5822
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5823
+ execute_or_queue_command(command, &block)
5824
+ end
5825
+
5826
+ # Creates a new attachment of an environment to an instance.
5827
+ # **Note:** Not supported for Apigee hybrid.
5828
+ # @param [String] parent
5829
+ # Required. Name of the instance. Use the following structure in your request:
5830
+ # `organizations/`org`/instances/`instance``.
5831
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1InstanceAttachment] google_cloud_apigee_v1_instance_attachment_object
5832
+ # @param [String] fields
5833
+ # Selector specifying which fields to include in a partial response.
5834
+ # @param [String] quota_user
5835
+ # Available to use for quota purposes for server-side applications. Can be any
5836
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5837
+ # @param [Google::Apis::RequestOptions] options
5838
+ # Request-specific options
5839
+ #
5840
+ # @yield [result, err] Result & error if block supplied
5841
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
5842
+ # @yieldparam err [StandardError] error object if request failed
5843
+ #
5844
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
5845
+ #
5846
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5847
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5848
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5849
+ def create_organization_instance_attachment(parent, google_cloud_apigee_v1_instance_attachment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5850
+ command = make_simple_command(:post, 'v1/{+parent}/attachments', options)
5851
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1InstanceAttachment::Representation
5852
+ command.request_object = google_cloud_apigee_v1_instance_attachment_object
5853
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
5854
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
5855
+ command.params['parent'] = parent unless parent.nil?
5856
+ command.query['fields'] = fields unless fields.nil?
5857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5858
+ execute_or_queue_command(command, &block)
5859
+ end
5860
+
5861
+ # Deletes an attachment.
5862
+ # **Note:** Not supported for Apigee hybrid.
5863
+ # @param [String] name
5864
+ # Required. Name of the attachment. Use the following structure in your request:
5865
+ # `organizations/`org`/instances/`instance`/attachments/`attachment``.
5866
+ # @param [String] fields
5867
+ # Selector specifying which fields to include in a partial response.
5868
+ # @param [String] quota_user
5869
+ # Available to use for quota purposes for server-side applications. Can be any
5870
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5871
+ # @param [Google::Apis::RequestOptions] options
5872
+ # Request-specific options
5873
+ #
5874
+ # @yield [result, err] Result & error if block supplied
5875
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
5876
+ # @yieldparam err [StandardError] error object if request failed
5877
+ #
5878
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
5879
+ #
5880
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5881
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5882
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5883
+ def delete_organization_instance_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
5884
+ command = make_simple_command(:delete, 'v1/{+name}', options)
5885
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
5886
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
5887
+ command.params['name'] = name unless name.nil?
5888
+ command.query['fields'] = fields unless fields.nil?
5889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5890
+ execute_or_queue_command(command, &block)
5891
+ end
5892
+
5893
+ # Gets an attachment.
5894
+ # **Note:** Not supported for Apigee hybrid.
5895
+ # @param [String] name
5896
+ # Required. Name of the attachment. Use the following structure in your request:
5897
+ # `organizations/`org`/instances/`instance`/attachments/`attachment``
5898
+ # @param [String] fields
5899
+ # Selector specifying which fields to include in a partial response.
5900
+ # @param [String] quota_user
5901
+ # Available to use for quota purposes for server-side applications. Can be any
5902
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5903
+ # @param [Google::Apis::RequestOptions] options
5904
+ # Request-specific options
5905
+ #
5906
+ # @yield [result, err] Result & error if block supplied
5907
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1InstanceAttachment] parsed result object
5908
+ # @yieldparam err [StandardError] error object if request failed
5909
+ #
5910
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1InstanceAttachment]
5911
+ #
5912
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5913
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5914
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5915
+ def get_organization_instance_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
5916
+ command = make_simple_command(:get, 'v1/{+name}', options)
5917
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1InstanceAttachment::Representation
5918
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1InstanceAttachment
5919
+ command.params['name'] = name unless name.nil?
5920
+ command.query['fields'] = fields unless fields.nil?
5921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5922
+ execute_or_queue_command(command, &block)
5923
+ end
5924
+
5925
+ # Lists all attachments to an instance.
5926
+ # **Note:** Not supported for Apigee hybrid.
5927
+ # @param [String] parent
5928
+ # Required. Name of the organization. Use the following structure in your
5929
+ # request:
5930
+ # `organizations/`org`/instances/`instance``
5931
+ # @param [Fixnum] page_size
5932
+ # Maximum number of instance attachments to return. Defaults to 25.
5933
+ # @param [String] page_token
5934
+ # Page token, returned by a previous ListInstanceAttachments call, that you
5935
+ # can use to retrieve the next page of content.
5936
+ # @param [String] fields
5937
+ # Selector specifying which fields to include in a partial response.
5938
+ # @param [String] quota_user
5939
+ # Available to use for quota purposes for server-side applications. Can be any
5940
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5941
+ # @param [Google::Apis::RequestOptions] options
5942
+ # Request-specific options
5943
+ #
5944
+ # @yield [result, err] Result & error if block supplied
5945
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstanceAttachmentsResponse] parsed result object
5946
+ # @yieldparam err [StandardError] error object if request failed
5947
+ #
5948
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstanceAttachmentsResponse]
5949
+ #
5950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5953
+ def list_organization_instance_attachments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5954
+ command = make_simple_command(:get, 'v1/{+parent}/attachments', options)
5955
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstanceAttachmentsResponse::Representation
5956
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListInstanceAttachmentsResponse
5957
+ command.params['parent'] = parent unless parent.nil?
5958
+ command.query['pageSize'] = page_size unless page_size.nil?
5959
+ command.query['pageToken'] = page_token unless page_token.nil?
5960
+ command.query['fields'] = fields unless fields.nil?
5961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5962
+ execute_or_queue_command(command, &block)
5963
+ end
5964
+
4919
5965
  # Creates a key value map in an organization.
4920
5966
  # @param [String] parent
4921
5967
  # Required. The name of the organization in which to create the key value map