google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -76,8 +76,7 @@ module Google
|
|
76
76
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
77
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
78
|
def search_trips(search_trips_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
79
|
-
|
80
|
-
command = make_simple_command(:post, path, options)
|
79
|
+
command = make_simple_command(:post, 'search', options)
|
81
80
|
command.request_representation = Google::Apis::QpxExpressV1::SearchTripsRequest::Representation
|
82
81
|
command.request_object = search_trips_request_object
|
83
82
|
command.response_representation = Google::Apis::QpxExpressV1::SearchTripsResponse::Representation
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
33
33
|
|
34
|
+
# View your data across Google Cloud Platform services
|
35
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
36
|
+
|
34
37
|
# View and manage your Google Compute Engine resources
|
35
38
|
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
36
39
|
|
@@ -84,8 +84,7 @@ module Google
|
|
84
84
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
85
85
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
86
86
|
def abandon_instances(project, zone, instance_group_manager, abandon_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
87
|
-
|
88
|
-
command = make_simple_command(:post, path, options)
|
87
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
|
89
88
|
command.request_representation = Google::Apis::ReplicapoolV1beta2::AbandonInstancesRequest::Representation
|
90
89
|
command.request_object = abandon_instances_request_object
|
91
90
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
@@ -130,8 +129,7 @@ module Google
|
|
130
129
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
131
130
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
132
131
|
def delete_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
133
|
-
|
134
|
-
command = make_simple_command(:delete, path, options)
|
132
|
+
command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
|
135
133
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
136
134
|
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
137
135
|
command.params['project'] = project unless project.nil?
|
@@ -176,8 +174,7 @@ module Google
|
|
176
174
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
177
175
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
178
176
|
def delete_instances(project, zone, instance_group_manager, delete_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
179
|
-
|
180
|
-
command = make_simple_command(:post, path, options)
|
177
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options)
|
181
178
|
command.request_representation = Google::Apis::ReplicapoolV1beta2::DeleteInstancesRequest::Representation
|
182
179
|
command.request_object = delete_instances_request_object
|
183
180
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
@@ -220,8 +217,7 @@ module Google
|
|
220
217
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
218
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
219
|
def get_instance_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
223
|
-
|
224
|
-
command = make_simple_command(:get, path, options)
|
220
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
|
225
221
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation
|
226
222
|
command.response_class = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager
|
227
223
|
command.params['project'] = project unless project.nil?
|
@@ -264,8 +260,7 @@ module Google
|
|
264
260
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
265
261
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
266
262
|
def insert_instance_group_manager(project, zone, size, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
267
|
-
|
268
|
-
command = make_simple_command(:post, path, options)
|
263
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers', options)
|
269
264
|
command.request_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManager::Representation
|
270
265
|
command.request_object = instance_group_manager_object
|
271
266
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
@@ -315,8 +310,7 @@ module Google
|
|
315
310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
316
311
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
317
312
|
def list_instance_group_managers(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
318
|
-
|
319
|
-
command = make_simple_command(:get, path, options)
|
313
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers', options)
|
320
314
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList::Representation
|
321
315
|
command.response_class = Google::Apis::ReplicapoolV1beta2::InstanceGroupManagerList
|
322
316
|
command.params['project'] = project unless project.nil?
|
@@ -361,8 +355,7 @@ module Google
|
|
361
355
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
362
356
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
363
357
|
def recreate_instances(project, zone, instance_group_manager, recreate_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
364
|
-
|
365
|
-
command = make_simple_command(:post, path, options)
|
358
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options)
|
366
359
|
command.request_representation = Google::Apis::ReplicapoolV1beta2::RecreateInstancesRequest::Representation
|
367
360
|
command.request_object = recreate_instances_request_object
|
368
361
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
@@ -409,8 +402,7 @@ module Google
|
|
409
402
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
410
403
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
411
404
|
def resize_instance(project, zone, instance_group_manager, size, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
412
|
-
|
413
|
-
command = make_simple_command(:post, path, options)
|
405
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options)
|
414
406
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
415
407
|
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
416
408
|
command.params['project'] = project unless project.nil?
|
@@ -454,8 +446,7 @@ module Google
|
|
454
446
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
455
447
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
456
448
|
def set_instance_template(project, zone, instance_group_manager, set_instance_template_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
457
|
-
|
458
|
-
command = make_simple_command(:post, path, options)
|
449
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options)
|
459
450
|
command.request_representation = Google::Apis::ReplicapoolV1beta2::SetInstanceTemplateRequest::Representation
|
460
451
|
command.request_object = set_instance_template_request_object
|
461
452
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
@@ -500,8 +491,7 @@ module Google
|
|
500
491
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
501
492
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
502
493
|
def set_target_pools(project, zone, instance_group_manager, set_target_pools_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
503
|
-
|
504
|
-
command = make_simple_command(:post, path, options)
|
494
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options)
|
505
495
|
command.request_representation = Google::Apis::ReplicapoolV1beta2::SetTargetPoolsRequest::Representation
|
506
496
|
command.request_object = set_target_pools_request_object
|
507
497
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
@@ -544,8 +534,7 @@ module Google
|
|
544
534
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
545
535
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
546
536
|
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
547
|
-
|
548
|
-
command = make_simple_command(:get, path, options)
|
537
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
|
549
538
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::Operation::Representation
|
550
539
|
command.response_class = Google::Apis::ReplicapoolV1beta2::Operation
|
551
540
|
command.params['project'] = project unless project.nil?
|
@@ -592,8 +581,7 @@ module Google
|
|
592
581
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
593
582
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
594
583
|
def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
595
|
-
|
596
|
-
command = make_simple_command(:get, path, options)
|
584
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
|
597
585
|
command.response_representation = Google::Apis::ReplicapoolV1beta2::OperationList::Representation
|
598
586
|
command.response_class = Google::Apis::ReplicapoolV1beta2::OperationList
|
599
587
|
command.params['project'] = project unless project.nil?
|
@@ -26,11 +26,14 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
|
27
27
|
module ReplicapoolupdaterV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20150904'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
33
33
|
|
34
|
+
# View your data across Google Cloud Platform services
|
35
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
36
|
+
|
34
37
|
# View and manage replica pools
|
35
38
|
AUTH_REPLICAPOOL = 'https://www.googleapis.com/auth/replicapool'
|
36
39
|
|
@@ -197,8 +197,8 @@ module Google
|
|
197
197
|
# @return [String]
|
198
198
|
attr_accessor :insert_time
|
199
199
|
|
200
|
-
# [Output Only] Type of the resource. Always
|
201
|
-
# resources.
|
200
|
+
# [Output Only] Type of the resource. Always replicapoolupdater#operation for
|
201
|
+
# Operation resources.
|
202
202
|
# Corresponds to the JSON property `kind`
|
203
203
|
# @return [String]
|
204
204
|
attr_accessor :kind
|
@@ -411,6 +411,50 @@ module Google
|
|
411
411
|
end
|
412
412
|
end
|
413
413
|
|
414
|
+
# Contains a list of Operation resources.
|
415
|
+
class OperationList
|
416
|
+
include Google::Apis::Core::Hashable
|
417
|
+
|
418
|
+
# [Output Only] Unique identifier for the resource; defined by the server.
|
419
|
+
# Corresponds to the JSON property `id`
|
420
|
+
# @return [String]
|
421
|
+
attr_accessor :id
|
422
|
+
|
423
|
+
# [Output Only] The Operation resources.
|
424
|
+
# Corresponds to the JSON property `items`
|
425
|
+
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation>]
|
426
|
+
attr_accessor :items
|
427
|
+
|
428
|
+
# [Output Only] Type of resource. Always replicapoolupdater#operations for
|
429
|
+
# Operations resource.
|
430
|
+
# Corresponds to the JSON property `kind`
|
431
|
+
# @return [String]
|
432
|
+
attr_accessor :kind
|
433
|
+
|
434
|
+
# [Output Only] A token used to continue a truncate.
|
435
|
+
# Corresponds to the JSON property `nextPageToken`
|
436
|
+
# @return [String]
|
437
|
+
attr_accessor :next_page_token
|
438
|
+
|
439
|
+
# [Output Only] Server-defined URL for this resource.
|
440
|
+
# Corresponds to the JSON property `selfLink`
|
441
|
+
# @return [String]
|
442
|
+
attr_accessor :self_link
|
443
|
+
|
444
|
+
def initialize(**args)
|
445
|
+
update!(**args)
|
446
|
+
end
|
447
|
+
|
448
|
+
# Update properties of this object
|
449
|
+
def update!(**args)
|
450
|
+
@id = args[:id] unless args[:id].nil?
|
451
|
+
@items = args[:items] unless args[:items].nil?
|
452
|
+
@kind = args[:kind] unless args[:kind].nil?
|
453
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
454
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
414
458
|
# The following represents a resource describing a single update (rollout) of a
|
415
459
|
# group of instances to the given template.
|
416
460
|
class RollingUpdate
|
@@ -58,6 +58,10 @@ module Google
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
+
class OperationList
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
end
|
64
|
+
|
61
65
|
class RollingUpdate
|
62
66
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
67
|
|
@@ -181,6 +185,18 @@ module Google
|
|
181
185
|
end
|
182
186
|
end
|
183
187
|
|
188
|
+
class OperationList
|
189
|
+
# @private
|
190
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
191
|
+
property :id, as: 'id'
|
192
|
+
collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
|
193
|
+
|
194
|
+
property :kind, as: 'kind'
|
195
|
+
property :next_page_token, as: 'nextPageToken'
|
196
|
+
property :self_link, as: 'selfLink'
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
184
200
|
class RollingUpdate
|
185
201
|
# @private
|
186
202
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -83,8 +83,7 @@ module Google
|
|
83
83
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
84
84
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
85
85
|
def cancel_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
86
|
-
|
87
|
-
command = make_simple_command(:post, path, options)
|
86
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel', options)
|
88
87
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
|
89
88
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
|
90
89
|
command.params['project'] = project unless project.nil?
|
@@ -125,8 +124,7 @@ module Google
|
|
125
124
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
126
125
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
127
126
|
def get_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
128
|
-
|
129
|
-
command = make_simple_command(:get, path, options)
|
127
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}', options)
|
130
128
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
|
131
129
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate
|
132
130
|
command.params['project'] = project unless project.nil?
|
@@ -166,8 +164,7 @@ module Google
|
|
166
164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
167
165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
168
166
|
def insert_rolling_update(project, zone, rolling_update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
169
|
-
|
170
|
-
command = make_simple_command(:post, path, options)
|
167
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates', options)
|
171
168
|
command.request_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
|
172
169
|
command.request_object = rolling_update_object
|
173
170
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
|
@@ -216,8 +213,7 @@ module Google
|
|
216
213
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
217
214
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
218
215
|
def list_rolling_updates(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
219
|
-
|
220
|
-
command = make_simple_command(:get, path, options)
|
216
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates', options)
|
221
217
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList::Representation
|
222
218
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList
|
223
219
|
command.params['project'] = project unless project.nil?
|
@@ -268,8 +264,7 @@ module Google
|
|
268
264
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
269
265
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
270
266
|
def list_instance_updates(project, zone, rolling_update, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
271
|
-
|
272
|
-
command = make_simple_command(:get, path, options)
|
267
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', options)
|
273
268
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList::Representation
|
274
269
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList
|
275
270
|
command.params['project'] = project unless project.nil?
|
@@ -314,8 +309,7 @@ module Google
|
|
314
309
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
310
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
311
|
def pause_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
317
|
-
|
318
|
-
command = make_simple_command(:post, path, options)
|
312
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause', options)
|
319
313
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
|
320
314
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
|
321
315
|
command.params['project'] = project unless project.nil?
|
@@ -357,8 +351,7 @@ module Google
|
|
357
351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
358
352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
359
353
|
def resume_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
360
|
-
|
361
|
-
command = make_simple_command(:post, path, options)
|
354
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume', options)
|
362
355
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
|
363
356
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
|
364
357
|
command.params['project'] = project unless project.nil?
|
@@ -400,8 +393,7 @@ module Google
|
|
400
393
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
401
394
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
402
395
|
def rollback_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
403
|
-
|
404
|
-
command = make_simple_command(:post, path, options)
|
396
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback', options)
|
405
397
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
|
406
398
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
|
407
399
|
command.params['project'] = project unless project.nil?
|
@@ -442,8 +434,7 @@ module Google
|
|
442
434
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
443
435
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
444
436
|
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
445
|
-
|
446
|
-
command = make_simple_command(:get, path, options)
|
437
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
|
447
438
|
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
|
448
439
|
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
|
449
440
|
command.params['project'] = project unless project.nil?
|
@@ -454,6 +445,55 @@ module Google
|
|
454
445
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
455
446
|
execute_or_queue_command(command, &block)
|
456
447
|
end
|
448
|
+
|
449
|
+
# Retrieves the list of Operation resources contained within the specified zone.
|
450
|
+
# @param [String] project
|
451
|
+
# Name of the project scoping this request.
|
452
|
+
# @param [String] zone
|
453
|
+
# Name of the zone scoping this request.
|
454
|
+
# @param [String] filter
|
455
|
+
# Optional. Filter expression for filtering listed resources.
|
456
|
+
# @param [Fixnum] max_results
|
457
|
+
# Optional. Maximum count of results to be returned. Maximum value is 500 and
|
458
|
+
# default value is 500.
|
459
|
+
# @param [String] page_token
|
460
|
+
# Optional. Tag returned by a previous list request truncated by maxResults.
|
461
|
+
# Used to continue a previous list request.
|
462
|
+
# @param [String] fields
|
463
|
+
# Selector specifying which fields to include in a partial response.
|
464
|
+
# @param [String] quota_user
|
465
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
466
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
467
|
+
# Overrides userIp if both are provided.
|
468
|
+
# @param [String] user_ip
|
469
|
+
# IP address of the site where the request originates. Use this if you want to
|
470
|
+
# enforce per-user limits.
|
471
|
+
# @param [Google::Apis::RequestOptions] options
|
472
|
+
# Request-specific options
|
473
|
+
#
|
474
|
+
# @yield [result, err] Result & error if block supplied
|
475
|
+
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::OperationList] parsed result object
|
476
|
+
# @yieldparam err [StandardError] error object if request failed
|
477
|
+
#
|
478
|
+
# @return [Google::Apis::ReplicapoolupdaterV1beta1::OperationList]
|
479
|
+
#
|
480
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
481
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
482
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
483
|
+
def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
484
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
|
485
|
+
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::OperationList::Representation
|
486
|
+
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::OperationList
|
487
|
+
command.params['project'] = project unless project.nil?
|
488
|
+
command.params['zone'] = zone unless zone.nil?
|
489
|
+
command.query['filter'] = filter unless filter.nil?
|
490
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
491
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
492
|
+
command.query['fields'] = fields unless fields.nil?
|
493
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
494
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
495
|
+
execute_or_queue_command(command, &block)
|
496
|
+
end
|
457
497
|
|
458
498
|
protected
|
459
499
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/google-apps/reseller/
|
26
26
|
module ResellerV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20151110'
|
29
29
|
|
30
30
|
# Manage users on your domain
|
31
31
|
AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order'
|
@@ -149,6 +149,12 @@ module Google
|
|
149
149
|
# @return [String]
|
150
150
|
attr_accessor :customer_domain
|
151
151
|
|
152
|
+
# Whether the customer's primary domain has been verified.
|
153
|
+
# Corresponds to the JSON property `customerDomainVerified`
|
154
|
+
# @return [Boolean]
|
155
|
+
attr_accessor :customer_domain_verified
|
156
|
+
alias_method :customer_domain_verified?, :customer_domain_verified
|
157
|
+
|
152
158
|
# The id of the customer.
|
153
159
|
# Corresponds to the JSON property `customerId`
|
154
160
|
# @return [String]
|
@@ -182,6 +188,7 @@ module Google
|
|
182
188
|
def update!(**args)
|
183
189
|
@alternate_email = args[:alternate_email] unless args[:alternate_email].nil?
|
184
190
|
@customer_domain = args[:customer_domain] unless args[:customer_domain].nil?
|
191
|
+
@customer_domain_verified = args[:customer_domain_verified] unless args[:customer_domain_verified].nil?
|
185
192
|
@customer_id = args[:customer_id] unless args[:customer_id].nil?
|
186
193
|
@kind = args[:kind] unless args[:kind].nil?
|
187
194
|
@phone_number = args[:phone_number] unless args[:phone_number].nil?
|
@@ -319,7 +326,18 @@ module Google
|
|
319
326
|
# @return [String]
|
320
327
|
attr_accessor :subscription_id
|
321
328
|
|
322
|
-
#
|
329
|
+
# field listing all current reasons the subscription is suspended. It is
|
330
|
+
# possible for a subscription to have multiple suspension reasons. A
|
331
|
+
# subscription's status is SUSPENDED until all pending suspensions are removed.
|
332
|
+
# Possible options include:
|
333
|
+
# - PENDING_TOS_ACCEPTANCE — The customer has not logged in and accepted the
|
334
|
+
# Google Apps Resold Terms of Services.
|
335
|
+
# - RENEWAL_WITH_TYPE_CANCEL — The customer's commitment ended and their service
|
336
|
+
# was cancelled at the end of their term.
|
337
|
+
# - RESELLER_INITIATED — A manual suspension invoked by a Reseller.
|
338
|
+
# - TRIAL_ENDED — The customer's trial expired without a plan selected.
|
339
|
+
# - OTHER — The customer is suspended for an internal Google reason (e.g. abuse
|
340
|
+
# or otherwise).
|
323
341
|
# Corresponds to the JSON property `suspensionReasons`
|
324
342
|
# @return [Array<String>]
|
325
343
|
attr_accessor :suspension_reasons
|
@@ -98,6 +98,7 @@ module Google
|
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation
|
99
99
|
property :alternate_email, as: 'alternateEmail'
|
100
100
|
property :customer_domain, as: 'customerDomain'
|
101
|
+
property :customer_domain_verified, as: 'customerDomainVerified'
|
101
102
|
property :customer_id, as: 'customerId'
|
102
103
|
property :kind, as: 'kind'
|
103
104
|
property :phone_number, as: 'phoneNumber'
|