google-api-client 0.34.1 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +16 -3
- data/CHANGELOG.md +114 -0
- data/OVERVIEW.md +36 -0
- data/README.md +49 -1
- data/Rakefile +1 -1
- data/docs/api-keys.md +20 -0
- data/docs/auth.md +53 -0
- data/docs/client-secrets.md +69 -0
- data/docs/getting-started.md +340 -0
- data/docs/installation.md +0 -0
- data/docs/logging.md +34 -0
- data/docs/media-upload.md +25 -0
- data/docs/oauth-installed.md +191 -0
- data/docs/oauth-server.md +135 -0
- data/docs/oauth-web.md +280 -0
- data/docs/oauth.md +268 -0
- data/docs/pagination.md +29 -0
- data/docs/performance.md +25 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +93 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +49 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +46 -4
- data/generated/google/apis/bigquery_v2/representations.rb +17 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -5
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +0 -21
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +0 -13
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +116 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +35 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +61 -77
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +16 -17
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +112 -78
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/{sqladmin_v1beta4.rb → billingbudgets_v1beta1.rb} +10 -13
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +392 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +191 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +233 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +20 -0
- data/generated/google/apis/books_v1/representations.rb +3 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +18 -30
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
- data/generated/google/apis/civicinfo_v2/representations.rb +0 -58
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +6 -5
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +17 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +8 -2
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +18 -18
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -2
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +13 -5
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +3 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -5
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudsearch_v1.rb +8 -8
- data/generated/google/apis/cloudsearch_v1/classes.rb +5 -130
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +42 -7
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +212 -5
- data/generated/google/apis/cloudtasks_v2/representations.rb +50 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +75 -12
- data/generated/google/apis/compute_alpha/representations.rb +2 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +54 -10
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +54 -10
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +13 -4
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +13 -4
- data/generated/google/apis/datacatalog_v1beta1.rb +35 -0
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1646 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +700 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +1982 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +75 -4
- data/generated/google/apis/dataproc_v1/representations.rb +22 -0
- data/generated/google/apis/dataproc_v1/service.rb +14 -7
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -4
- data/generated/google/apis/dataproc_v1beta2/service.rb +14 -7
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +21 -1
- data/generated/google/apis/dfareporting_v3_3/service.rb +6 -6
- data/generated/google/apis/dfareporting_v3_4.rb +40 -0
- data/generated/google/apis/dfareporting_v3_4/classes.rb +12717 -0
- data/generated/google/apis/dfareporting_v3_4/representations.rb +4595 -0
- data/generated/google/apis/dfareporting_v3_4/service.rb +8685 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +484 -1
- data/generated/google/apis/dialogflow_v2/representations.rb +220 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +497 -1
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +221 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +68 -25
- data/generated/google/apis/dlp_v2/representations.rb +9 -4
- data/generated/google/apis/dlp_v2/service.rb +1925 -193
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +47 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +17 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +4 -8
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +34 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +826 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +372 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +371 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -3
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +15 -0
- data/generated/google/apis/fcm_v1/representations.rb +2 -0
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +3 -4
- data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +25 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +8 -7
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +15 -1
- data/generated/google/apis/homegraph_v1/representations.rb +2 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +6 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +18 -2
- data/generated/google/apis/logging_v2/representations.rb +2 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +173 -97
- data/generated/google/apis/ml_v1/representations.rb +58 -0
- data/generated/google/apis/ml_v1/service.rb +37 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +780 -6
- data/generated/google/apis/monitoring_v3/representations.rb +347 -0
- data/generated/google/apis/monitoring_v3/service.rb +382 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +8 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -5
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1/service.rb +6 -7
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +10 -8
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +15 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +15 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +15 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +8 -169
- data/generated/google/apis/run_v1/representations.rb +0 -71
- data/generated/google/apis/run_v1/service.rb +229 -1207
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +9 -9
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -5
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +66 -11
- data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +16 -13
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +6 -5
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -5
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +3 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -1
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +12 -9
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -9
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +130 -13
- data/generated/google/apis/servicenetworking_v1/representations.rb +58 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +42 -3
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +3 -2
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +3 -2
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +3 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +70 -30
- data/generated/google/apis/spanner_v1/service.rb +270 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +6 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +6 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/service.rb +59 -10
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +3 -0
- data/lib/google/apis/core/http_command.rb +10 -8
- data/lib/google/apis/version.rb +1 -1
- data/rakelib/devsite/devsite_builder.rb +1 -1
- metadata +33 -11
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +0 -2633
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +0 -1110
- data/generated/google/apis/sqladmin_v1beta4/service.rb +0 -1793
- data/generated/google/apis/storage_v1beta1.rb +0 -40
- data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
- data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
- data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
@@ -259,9 +259,9 @@ module Google
|
|
259
259
|
# notation).
|
260
260
|
# Operation<response: Range>
|
261
261
|
# @param [String] parent
|
262
|
-
# Required. This is in a form services/`service`.
|
263
|
-
#
|
264
|
-
# 'service-peering.example.com'.
|
262
|
+
# Required. This is in a form services/`service`. `service` the name of the
|
263
|
+
# private
|
264
|
+
# access management service, for example 'service-peering.example.com'.
|
265
265
|
# @param [Google::Apis::ServicenetworkingV1::SearchRangeRequest] search_range_request_object
|
266
266
|
# @param [String] fields
|
267
267
|
# Selector specifying which fields to include in a partial response.
|
@@ -292,6 +292,45 @@ module Google
|
|
292
292
|
execute_or_queue_command(command, &block)
|
293
293
|
end
|
294
294
|
|
295
|
+
# Service producers use this method to validate if the consumer provided
|
296
|
+
# network, project and the requested range is valid. This allows them to use
|
297
|
+
# a fail-fast mechanism for consumer requests, and not have to wait for
|
298
|
+
# AddSubnetwork operation completion to determine if user request is invalid.
|
299
|
+
# @param [String] parent
|
300
|
+
# Required. This is in a form services/`service` where `service` is the name of
|
301
|
+
# the
|
302
|
+
# private access management service. For example
|
303
|
+
# 'service-peering.example.com'.
|
304
|
+
# @param [Google::Apis::ServicenetworkingV1::ValidateConsumerConfigRequest] validate_consumer_config_request_object
|
305
|
+
# @param [String] fields
|
306
|
+
# Selector specifying which fields to include in a partial response.
|
307
|
+
# @param [String] quota_user
|
308
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
309
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
310
|
+
# @param [Google::Apis::RequestOptions] options
|
311
|
+
# Request-specific options
|
312
|
+
#
|
313
|
+
# @yield [result, err] Result & error if block supplied
|
314
|
+
# @yieldparam result [Google::Apis::ServicenetworkingV1::ValidateConsumerConfigResponse] parsed result object
|
315
|
+
# @yieldparam err [StandardError] error object if request failed
|
316
|
+
#
|
317
|
+
# @return [Google::Apis::ServicenetworkingV1::ValidateConsumerConfigResponse]
|
318
|
+
#
|
319
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
320
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
321
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
322
|
+
def validate_service_consumer_config(parent, validate_consumer_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
323
|
+
command = make_simple_command(:post, 'v1/{+parent}:validate', options)
|
324
|
+
command.request_representation = Google::Apis::ServicenetworkingV1::ValidateConsumerConfigRequest::Representation
|
325
|
+
command.request_object = validate_consumer_config_request_object
|
326
|
+
command.response_representation = Google::Apis::ServicenetworkingV1::ValidateConsumerConfigResponse::Representation
|
327
|
+
command.response_class = Google::Apis::ServicenetworkingV1::ValidateConsumerConfigResponse
|
328
|
+
command.params['parent'] = parent unless parent.nil?
|
329
|
+
command.query['fields'] = fields unless fields.nil?
|
330
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
331
|
+
execute_or_queue_command(command, &block)
|
332
|
+
end
|
333
|
+
|
295
334
|
# Creates a private connection that establishes a VPC Network Peering
|
296
335
|
# connection to a VPC network in the service producer's organization.
|
297
336
|
# The administrator of the service consumer's VPC network invokes this
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
27
27
|
module ServicenetworkingV1beta
|
28
28
|
VERSION = 'V1beta'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20191113'
|
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'
|
@@ -2903,8 +2903,9 @@ module Google
|
|
2903
2903
|
attr_accessor :http
|
2904
2904
|
|
2905
2905
|
# A unique ID for a specific instance of this message, typically assigned
|
2906
|
-
# by the client for tracking purpose.
|
2907
|
-
#
|
2906
|
+
# by the client for tracking purpose. Must be no longer than 63 characters
|
2907
|
+
# and only lower case letters, digits, '.', '_' and '-' are allowed. If
|
2908
|
+
# empty, the server may choose to generate one instead.
|
2908
2909
|
# Corresponds to the JSON property `id`
|
2909
2910
|
# @return [String]
|
2910
2911
|
attr_accessor :id
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/service-usage/
|
28
28
|
module ServiceusageV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20191113'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1505,8 +1505,9 @@ module Google
|
|
1505
1505
|
attr_accessor :http
|
1506
1506
|
|
1507
1507
|
# A unique ID for a specific instance of this message, typically assigned
|
1508
|
-
# by the client for tracking purpose.
|
1509
|
-
#
|
1508
|
+
# by the client for tracking purpose. Must be no longer than 63 characters
|
1509
|
+
# and only lower case letters, digits, '.', '_' and '-' are allowed. If
|
1510
|
+
# empty, the server may choose to generate one instead.
|
1510
1511
|
# Corresponds to the JSON property `id`
|
1511
1512
|
# @return [String]
|
1512
1513
|
attr_accessor :id
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/service-usage/
|
28
28
|
module ServiceusageV1beta1
|
29
29
|
VERSION = 'V1beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20191113'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1483,8 +1483,9 @@ module Google
|
|
1483
1483
|
attr_accessor :http
|
1484
1484
|
|
1485
1485
|
# A unique ID for a specific instance of this message, typically assigned
|
1486
|
-
# by the client for tracking purpose.
|
1487
|
-
#
|
1486
|
+
# by the client for tracking purpose. Must be no longer than 63 characters
|
1487
|
+
# and only lower case letters, digits, '.', '_' and '-' are allowed. If
|
1488
|
+
# empty, the server may choose to generate one instead.
|
1488
1489
|
# Corresponds to the JSON property `id`
|
1489
1490
|
# @return [String]
|
1490
1491
|
attr_accessor :id
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/sheets/
|
26
26
|
module SheetsV4
|
27
27
|
VERSION = 'V4'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20191115'
|
29
29
|
|
30
30
|
# See, edit, create, and delete all of your Google Drive files
|
31
31
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/spanner/
|
27
27
|
module SpannerV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20191119'
|
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'
|
@@ -1194,9 +1194,11 @@ module Google
|
|
1194
1194
|
include Google::Apis::Core::Hashable
|
1195
1195
|
|
1196
1196
|
# Optional. The policy format version to be returned.
|
1197
|
-
#
|
1198
|
-
#
|
1199
|
-
#
|
1197
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1198
|
+
# rejected.
|
1199
|
+
# Requests for policies with any conditional bindings must specify version 3.
|
1200
|
+
# Policies without any conditional bindings may specify any valid value or
|
1201
|
+
# leave the field unset.
|
1200
1202
|
# Corresponds to the JSON property `requestedPolicyVersion`
|
1201
1203
|
# @return [Fixnum]
|
1202
1204
|
attr_accessor :requested_policy_version
|
@@ -2125,25 +2127,34 @@ module Google
|
|
2125
2127
|
|
2126
2128
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
2127
2129
|
# specify access control policies for Cloud Platform resources.
|
2128
|
-
# A `Policy`
|
2129
|
-
# `members` to a `role
|
2130
|
-
# Google
|
2131
|
-
# defined by IAM.
|
2130
|
+
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
2131
|
+
# `members` to a single `role`. Members can be user accounts, service accounts,
|
2132
|
+
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
2133
|
+
# permissions (defined by IAM or configured by users). A `binding` can
|
2134
|
+
# optionally specify a `condition`, which is a logic expression that further
|
2135
|
+
# constrains the role binding based on attributes about the request and/or
|
2136
|
+
# target resource.
|
2132
2137
|
# **JSON Example**
|
2133
2138
|
# `
|
2134
2139
|
# "bindings": [
|
2135
2140
|
# `
|
2136
|
-
# "role": "roles/
|
2141
|
+
# "role": "roles/resourcemanager.organizationAdmin",
|
2137
2142
|
# "members": [
|
2138
2143
|
# "user:mike@example.com",
|
2139
2144
|
# "group:admins@example.com",
|
2140
2145
|
# "domain:google.com",
|
2141
|
-
# "serviceAccount:my-
|
2146
|
+
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
2142
2147
|
# ]
|
2143
2148
|
# `,
|
2144
2149
|
# `
|
2145
|
-
# "role": "roles/
|
2146
|
-
# "members": ["user:
|
2150
|
+
# "role": "roles/resourcemanager.organizationViewer",
|
2151
|
+
# "members": ["user:eve@example.com"],
|
2152
|
+
# "condition": `
|
2153
|
+
# "title": "expirable access",
|
2154
|
+
# "description": "Does not grant access after Sep 2020",
|
2155
|
+
# "expression": "request.time <
|
2156
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
2157
|
+
# `
|
2147
2158
|
# `
|
2148
2159
|
# ]
|
2149
2160
|
# `
|
@@ -2153,17 +2164,22 @@ module Google
|
|
2153
2164
|
# - user:mike@example.com
|
2154
2165
|
# - group:admins@example.com
|
2155
2166
|
# - domain:google.com
|
2156
|
-
# - serviceAccount:my-
|
2157
|
-
# role: roles/
|
2167
|
+
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2168
|
+
# role: roles/resourcemanager.organizationAdmin
|
2158
2169
|
# - members:
|
2159
|
-
# - user:
|
2160
|
-
# role: roles/
|
2170
|
+
# - user:eve@example.com
|
2171
|
+
# role: roles/resourcemanager.organizationViewer
|
2172
|
+
# condition:
|
2173
|
+
# title: expirable access
|
2174
|
+
# description: Does not grant access after Sep 2020
|
2175
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
2161
2176
|
# For a description of IAM and its features, see the
|
2162
2177
|
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
2163
2178
|
class Policy
|
2164
2179
|
include Google::Apis::Core::Hashable
|
2165
2180
|
|
2166
|
-
# Associates a list of `members` to a `role`.
|
2181
|
+
# Associates a list of `members` to a `role`. Optionally may specify a
|
2182
|
+
# `condition` that determines when binding is in effect.
|
2167
2183
|
# `bindings` with no members will result in an error.
|
2168
2184
|
# Corresponds to the JSON property `bindings`
|
2169
2185
|
# @return [Array<Google::Apis::SpannerV1::Binding>]
|
@@ -2177,13 +2193,24 @@ module Google
|
|
2177
2193
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
2178
2194
|
# ensure that their change will be applied to the same version of the policy.
|
2179
2195
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
2180
|
-
# policy is overwritten.
|
2196
|
+
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
2197
|
+
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
2198
|
+
# does not meet the version requirements.
|
2181
2199
|
# Corresponds to the JSON property `etag`
|
2182
2200
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2183
2201
|
# @return [String]
|
2184
2202
|
attr_accessor :etag
|
2185
2203
|
|
2186
|
-
#
|
2204
|
+
# Specifies the format of the policy.
|
2205
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2206
|
+
# rejected.
|
2207
|
+
# Operations affecting conditional bindings must specify version 3. This can
|
2208
|
+
# be either setting a conditional policy, modifying a conditional binding,
|
2209
|
+
# or removing a conditional binding from the stored conditional policy.
|
2210
|
+
# Operations on non-conditional policies may specify any valid value or
|
2211
|
+
# leave the field unset.
|
2212
|
+
# If no etag is provided in the call to `setIamPolicy`, any version
|
2213
|
+
# compliance checks on the incoming and/or stored policy is skipped.
|
2187
2214
|
# Corresponds to the JSON property `version`
|
2188
2215
|
# @return [Fixnum]
|
2189
2216
|
attr_accessor :version
|
@@ -2619,25 +2646,34 @@ module Google
|
|
2619
2646
|
|
2620
2647
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
2621
2648
|
# specify access control policies for Cloud Platform resources.
|
2622
|
-
# A `Policy`
|
2623
|
-
# `members` to a `role
|
2624
|
-
# Google
|
2625
|
-
# defined by IAM.
|
2649
|
+
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
2650
|
+
# `members` to a single `role`. Members can be user accounts, service accounts,
|
2651
|
+
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
2652
|
+
# permissions (defined by IAM or configured by users). A `binding` can
|
2653
|
+
# optionally specify a `condition`, which is a logic expression that further
|
2654
|
+
# constrains the role binding based on attributes about the request and/or
|
2655
|
+
# target resource.
|
2626
2656
|
# **JSON Example**
|
2627
2657
|
# `
|
2628
2658
|
# "bindings": [
|
2629
2659
|
# `
|
2630
|
-
# "role": "roles/
|
2660
|
+
# "role": "roles/resourcemanager.organizationAdmin",
|
2631
2661
|
# "members": [
|
2632
2662
|
# "user:mike@example.com",
|
2633
2663
|
# "group:admins@example.com",
|
2634
2664
|
# "domain:google.com",
|
2635
|
-
# "serviceAccount:my-
|
2665
|
+
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
2636
2666
|
# ]
|
2637
2667
|
# `,
|
2638
2668
|
# `
|
2639
|
-
# "role": "roles/
|
2640
|
-
# "members": ["user:
|
2669
|
+
# "role": "roles/resourcemanager.organizationViewer",
|
2670
|
+
# "members": ["user:eve@example.com"],
|
2671
|
+
# "condition": `
|
2672
|
+
# "title": "expirable access",
|
2673
|
+
# "description": "Does not grant access after Sep 2020",
|
2674
|
+
# "expression": "request.time <
|
2675
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
2676
|
+
# `
|
2641
2677
|
# `
|
2642
2678
|
# ]
|
2643
2679
|
# `
|
@@ -2647,11 +2683,15 @@ module Google
|
|
2647
2683
|
# - user:mike@example.com
|
2648
2684
|
# - group:admins@example.com
|
2649
2685
|
# - domain:google.com
|
2650
|
-
# - serviceAccount:my-
|
2651
|
-
# role: roles/
|
2686
|
+
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2687
|
+
# role: roles/resourcemanager.organizationAdmin
|
2652
2688
|
# - members:
|
2653
|
-
# - user:
|
2654
|
-
# role: roles/
|
2689
|
+
# - user:eve@example.com
|
2690
|
+
# role: roles/resourcemanager.organizationViewer
|
2691
|
+
# condition:
|
2692
|
+
# title: expirable access
|
2693
|
+
# description: Does not grant access after Sep 2020
|
2694
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
2655
2695
|
# For a description of IAM and its features, see the
|
2656
2696
|
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
2657
2697
|
# Corresponds to the JSON property `policy`
|
@@ -491,6 +491,276 @@ module Google
|
|
491
491
|
execute_or_queue_command(command, &block)
|
492
492
|
end
|
493
493
|
|
494
|
+
# Gets the access control policy for a database resource.
|
495
|
+
# Returns an empty policy if a database exists but does
|
496
|
+
# not have a policy set.
|
497
|
+
# Authorization requires `spanner.databases.getIamPolicy` permission on
|
498
|
+
# resource.
|
499
|
+
# @param [String] resource
|
500
|
+
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
501
|
+
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
502
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
503
|
+
# database ID>` for database resources.
|
504
|
+
# @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
505
|
+
# @param [String] fields
|
506
|
+
# Selector specifying which fields to include in a partial response.
|
507
|
+
# @param [String] quota_user
|
508
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
509
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
510
|
+
# @param [Google::Apis::RequestOptions] options
|
511
|
+
# Request-specific options
|
512
|
+
#
|
513
|
+
# @yield [result, err] Result & error if block supplied
|
514
|
+
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
515
|
+
# @yieldparam err [StandardError] error object if request failed
|
516
|
+
#
|
517
|
+
# @return [Google::Apis::SpannerV1::Policy]
|
518
|
+
#
|
519
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
520
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
521
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
522
|
+
def get_backup_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
523
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
524
|
+
command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
|
525
|
+
command.request_object = get_iam_policy_request_object
|
526
|
+
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
527
|
+
command.response_class = Google::Apis::SpannerV1::Policy
|
528
|
+
command.params['resource'] = resource unless resource.nil?
|
529
|
+
command.query['fields'] = fields unless fields.nil?
|
530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
531
|
+
execute_or_queue_command(command, &block)
|
532
|
+
end
|
533
|
+
|
534
|
+
# Sets the access control policy on a database resource.
|
535
|
+
# Replaces any existing policy.
|
536
|
+
# Authorization requires `spanner.databases.setIamPolicy`
|
537
|
+
# permission on resource.
|
538
|
+
# @param [String] resource
|
539
|
+
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
540
|
+
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
541
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
542
|
+
# database ID>` for databases resources.
|
543
|
+
# @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
544
|
+
# @param [String] fields
|
545
|
+
# Selector specifying which fields to include in a partial response.
|
546
|
+
# @param [String] quota_user
|
547
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
548
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
549
|
+
# @param [Google::Apis::RequestOptions] options
|
550
|
+
# Request-specific options
|
551
|
+
#
|
552
|
+
# @yield [result, err] Result & error if block supplied
|
553
|
+
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
554
|
+
# @yieldparam err [StandardError] error object if request failed
|
555
|
+
#
|
556
|
+
# @return [Google::Apis::SpannerV1::Policy]
|
557
|
+
#
|
558
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
559
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
560
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
561
|
+
def set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
562
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
563
|
+
command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
|
564
|
+
command.request_object = set_iam_policy_request_object
|
565
|
+
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
566
|
+
command.response_class = Google::Apis::SpannerV1::Policy
|
567
|
+
command.params['resource'] = resource unless resource.nil?
|
568
|
+
command.query['fields'] = fields unless fields.nil?
|
569
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
570
|
+
execute_or_queue_command(command, &block)
|
571
|
+
end
|
572
|
+
|
573
|
+
# Returns permissions that the caller has on the specified database resource.
|
574
|
+
# Attempting this RPC on a non-existent Cloud Spanner database will
|
575
|
+
# result in a NOT_FOUND error if the user has
|
576
|
+
# `spanner.databases.list` permission on the containing Cloud
|
577
|
+
# Spanner instance. Otherwise returns an empty set of permissions.
|
578
|
+
# @param [String] resource
|
579
|
+
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
580
|
+
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
581
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
582
|
+
# database ID>` for database resources.
|
583
|
+
# @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
584
|
+
# @param [String] fields
|
585
|
+
# Selector specifying which fields to include in a partial response.
|
586
|
+
# @param [String] quota_user
|
587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
589
|
+
# @param [Google::Apis::RequestOptions] options
|
590
|
+
# Request-specific options
|
591
|
+
#
|
592
|
+
# @yield [result, err] Result & error if block supplied
|
593
|
+
# @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
|
594
|
+
# @yieldparam err [StandardError] error object if request failed
|
595
|
+
#
|
596
|
+
# @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
|
597
|
+
#
|
598
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
599
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
600
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
601
|
+
def test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
602
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
603
|
+
command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
|
604
|
+
command.request_object = test_iam_permissions_request_object
|
605
|
+
command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
|
606
|
+
command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
|
607
|
+
command.params['resource'] = resource unless resource.nil?
|
608
|
+
command.query['fields'] = fields unless fields.nil?
|
609
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
610
|
+
execute_or_queue_command(command, &block)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
614
|
+
# makes a best effort to cancel the operation, but success is not
|
615
|
+
# guaranteed. If the server doesn't support this method, it returns
|
616
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
617
|
+
# Operations.GetOperation or
|
618
|
+
# other methods to check whether the cancellation succeeded or whether the
|
619
|
+
# operation completed despite cancellation. On successful cancellation,
|
620
|
+
# the operation is not deleted; instead, it becomes an operation with
|
621
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
622
|
+
# corresponding to `Code.CANCELLED`.
|
623
|
+
# @param [String] name
|
624
|
+
# The name of the operation resource to be cancelled.
|
625
|
+
# @param [String] fields
|
626
|
+
# Selector specifying which fields to include in a partial response.
|
627
|
+
# @param [String] quota_user
|
628
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
629
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
630
|
+
# @param [Google::Apis::RequestOptions] options
|
631
|
+
# Request-specific options
|
632
|
+
#
|
633
|
+
# @yield [result, err] Result & error if block supplied
|
634
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
635
|
+
# @yieldparam err [StandardError] error object if request failed
|
636
|
+
#
|
637
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
638
|
+
#
|
639
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
640
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
641
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
642
|
+
def cancel_project_instance_backup_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
643
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
644
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
645
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
646
|
+
command.params['name'] = name unless name.nil?
|
647
|
+
command.query['fields'] = fields unless fields.nil?
|
648
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
649
|
+
execute_or_queue_command(command, &block)
|
650
|
+
end
|
651
|
+
|
652
|
+
# Deletes a long-running operation. This method indicates that the client is
|
653
|
+
# no longer interested in the operation result. It does not cancel the
|
654
|
+
# operation. If the server doesn't support this method, it returns
|
655
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
656
|
+
# @param [String] name
|
657
|
+
# The name of the operation resource to be deleted.
|
658
|
+
# @param [String] fields
|
659
|
+
# Selector specifying which fields to include in a partial response.
|
660
|
+
# @param [String] quota_user
|
661
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
662
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
663
|
+
# @param [Google::Apis::RequestOptions] options
|
664
|
+
# Request-specific options
|
665
|
+
#
|
666
|
+
# @yield [result, err] Result & error if block supplied
|
667
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
668
|
+
# @yieldparam err [StandardError] error object if request failed
|
669
|
+
#
|
670
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
671
|
+
#
|
672
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
673
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
674
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
675
|
+
def delete_project_instance_backup_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
676
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
677
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
678
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
679
|
+
command.params['name'] = name unless name.nil?
|
680
|
+
command.query['fields'] = fields unless fields.nil?
|
681
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
682
|
+
execute_or_queue_command(command, &block)
|
683
|
+
end
|
684
|
+
|
685
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
686
|
+
# method to poll the operation result at intervals as recommended by the API
|
687
|
+
# service.
|
688
|
+
# @param [String] name
|
689
|
+
# The name of the operation resource.
|
690
|
+
# @param [String] fields
|
691
|
+
# Selector specifying which fields to include in a partial response.
|
692
|
+
# @param [String] quota_user
|
693
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
694
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
695
|
+
# @param [Google::Apis::RequestOptions] options
|
696
|
+
# Request-specific options
|
697
|
+
#
|
698
|
+
# @yield [result, err] Result & error if block supplied
|
699
|
+
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
700
|
+
# @yieldparam err [StandardError] error object if request failed
|
701
|
+
#
|
702
|
+
# @return [Google::Apis::SpannerV1::Operation]
|
703
|
+
#
|
704
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
705
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
706
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
707
|
+
def get_project_instance_backup_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
708
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
709
|
+
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
710
|
+
command.response_class = Google::Apis::SpannerV1::Operation
|
711
|
+
command.params['name'] = name unless name.nil?
|
712
|
+
command.query['fields'] = fields unless fields.nil?
|
713
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
714
|
+
execute_or_queue_command(command, &block)
|
715
|
+
end
|
716
|
+
|
717
|
+
# Lists operations that match the specified filter in the request. If the
|
718
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
719
|
+
# NOTE: the `name` binding allows API services to override the binding
|
720
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
721
|
+
# override the binding, API services can add a binding such as
|
722
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
723
|
+
# For backwards compatibility, the default name includes the operations
|
724
|
+
# collection id, however overriding users must ensure the name binding
|
725
|
+
# is the parent resource, without the operations collection id.
|
726
|
+
# @param [String] name
|
727
|
+
# The name of the operation's parent resource.
|
728
|
+
# @param [String] filter
|
729
|
+
# The standard list filter.
|
730
|
+
# @param [Fixnum] page_size
|
731
|
+
# The standard list page size.
|
732
|
+
# @param [String] page_token
|
733
|
+
# The standard list page token.
|
734
|
+
# @param [String] fields
|
735
|
+
# Selector specifying which fields to include in a partial response.
|
736
|
+
# @param [String] quota_user
|
737
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
738
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
739
|
+
# @param [Google::Apis::RequestOptions] options
|
740
|
+
# Request-specific options
|
741
|
+
#
|
742
|
+
# @yield [result, err] Result & error if block supplied
|
743
|
+
# @yieldparam result [Google::Apis::SpannerV1::ListOperationsResponse] parsed result object
|
744
|
+
# @yieldparam err [StandardError] error object if request failed
|
745
|
+
#
|
746
|
+
# @return [Google::Apis::SpannerV1::ListOperationsResponse]
|
747
|
+
#
|
748
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
749
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
750
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
751
|
+
def list_project_instance_backup_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
752
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
753
|
+
command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
|
754
|
+
command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
|
755
|
+
command.params['name'] = name unless name.nil?
|
756
|
+
command.query['filter'] = filter unless filter.nil?
|
757
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
758
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
759
|
+
command.query['fields'] = fields unless fields.nil?
|
760
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
761
|
+
execute_or_queue_command(command, &block)
|
762
|
+
end
|
763
|
+
|
494
764
|
# Creates a new Cloud Spanner database and starts to prepare it for serving.
|
495
765
|
# The returned long-running operation will
|
496
766
|
# have a name of the format `<database_name>/operations/<operation_id>` and
|