google-api-client 0.30.8 → 0.30.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +108 -0
- data/README.md +1 -1
- data/api_names.yaml +16 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +51 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +16 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +30 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +2 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +55 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +6 -0
- data/generated/google/apis/admin_directory_v1/service.rb +11 -10
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +235 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +95 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +99 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +6 -0
- data/generated/google/apis/analytics_v3/representations.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +65 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -2
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +12 -12
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +39 -2
- data/generated/google/apis/androidpublisher_v3/representations.rb +4 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +25 -13
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +137 -5
- data/generated/google/apis/bigquery_v2/representations.rb +64 -0
- data/generated/google/apis/bigquery_v2/service.rb +5 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +4 -1
- data/generated/google/apis/bigqueryreservation_v1.rb +37 -0
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +216 -0
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +112 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +139 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +37 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +514 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +237 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +714 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +0 -9
- data/generated/google/apis/cloudasset_v1/representations.rb +0 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +0 -9
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +14 -4
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +18 -22
- data/generated/google/apis/cloudfunctions_v1/service.rb +7 -1
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -11
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +26 -11
- data/generated/google/apis/cloudkms_v1/representations.rb +2 -0
- data/generated/google/apis/cloudkms_v1/service.rb +28 -16
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +0 -9
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -4
- data/generated/google/apis/cloudscheduler_v1/service.rb +7 -14
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -4
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +7 -14
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +0 -18
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +17 -9
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +59 -17
- data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2/service.rb +12 -24
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +35 -12
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +16 -32
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +30 -2
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +12 -24
- data/generated/google/apis/compute_v1/service.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +138 -138
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +54 -32
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +19 -135
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +2 -32
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +10 -5
- data/generated/google/apis/content_v2/service.rb +3 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +618 -6
- data/generated/google/apis/content_v2_1/representations.rb +271 -0
- data/generated/google/apis/content_v2_1/service.rb +357 -2
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +69 -8
- data/generated/google/apis/dataproc_v1/representations.rb +18 -0
- data/generated/google/apis/dataproc_v1/service.rb +121 -57
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -11
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +203 -97
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/service.rb +94 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +16 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +1989 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +1 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +6 -6
- data/generated/google/apis/drive_v3/service.rb +6 -6
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/factchecktools_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +419 -0
- data/generated/google/apis/fcm_v1/representations.rb +45 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +12 -1
- data/generated/google/apis/file_v1/representations.rb +1 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +12 -1
- data/generated/google/apis/file_v1beta1/representations.rb +1 -0
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +164 -4
- data/generated/google/apis/firebase_v1beta1/representations.rb +71 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +165 -2
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +27 -6
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +3 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +6 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +1 -2
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +1 -2
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +18 -7
- data/generated/google/apis/genomics_v2alpha1/service.rb +5 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +367 -99
- data/generated/google/apis/groupssettings_v1/service.rb +3 -3
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +4 -21
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +0 -2
- data/generated/google/apis/healthcare_v1alpha2/service.rb +101 -117
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +18 -13
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +90 -22
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +31 -1
- data/generated/google/apis/iam_v1/representations.rb +14 -0
- data/generated/google/apis/iam_v1/service.rb +45 -4
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +2 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -1
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/libraryagent_v1/service.rb +5 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +63 -9
- data/generated/google/apis/ml_v1/representations.rb +16 -1
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +29 -2
- data/generated/google/apis/monitoring_v3/representations.rb +4 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +7 -0
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +5 -4
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +12 -11
- data/generated/google/apis/pubsub_v1/service.rb +3 -3
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -2
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +16 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +16 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +16 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +25 -0
- data/generated/google/apis/run_v1/representations.rb +15 -0
- data/generated/google/apis/run_v1/service.rb +39 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +338 -22
- data/generated/google/apis/run_v1alpha1/representations.rb +141 -1
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +16 -13
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -1
- data/generated/google/apis/securitycenter_v1/service.rb +19 -6
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -10
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -1
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/service.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/service.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +4 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +54 -19
- data/generated/google/apis/servicecontrol_v1/representations.rb +17 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +11 -20
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +0 -2
- data/generated/google/apis/serviceusage_v1/service.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +53 -10
- data/generated/google/apis/sheets_v4/representations.rb +17 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +50 -54
- data/generated/google/apis/spanner_v1/service.rb +8 -15
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +2 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +9 -16
- data/generated/google/apis/{run_v1beta1.rb → speech_v2beta.rb} +9 -10
- data/generated/google/apis/speech_v2beta/classes.rb +355 -0
- data/generated/google/apis/speech_v2beta/representations.rb +152 -0
- data/generated/google/apis/speech_v2beta/service.rb +138 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +14 -12
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +44 -9
- data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +3 -6
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +12 -0
- data/generated/google/apis/tpu_v1/representations.rb +2 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +12 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +72 -0
- data/generated/google/apis/translate_v3beta1/representations.rb +32 -0
- data/generated/google/apis/translate_v3beta1/service.rb +82 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +579 -0
- data/generated/google/apis/vision_v1/representations.rb +172 -0
- data/generated/google/apis/vision_v1/service.rb +404 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +523 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +143 -0
- data/generated/google/apis/vision_v1p1beta1/service.rb +352 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +187 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +23 -0
- data/generated/google/apis/vision_v1p2beta1/service.rb +352 -0
- data/generated/google/apis/websecurityscanner_v1.rb +4 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +924 -0
- data/generated/google/apis/websecurityscanner_v1/representations.rb +426 -0
- data/generated/google/apis/websecurityscanner_v1/service.rb +487 -0
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +322 -0
- data/generated/google/apis/youtube_v3/representations.rb +139 -0
- data/generated/google/apis/youtube_v3/service.rb +85 -0
- data/lib/google/api_client/client_secrets.rb +1 -2
- data/lib/google/apis/core/api_command.rb +12 -0
- data/lib/google/apis/core/batch.rb +2 -0
- data/lib/google/apis/core/http_command.rb +8 -1
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/generator/annotator.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -6
- data/generated/google/apis/run_v1beta1/classes.rb +0 -98
- data/generated/google/apis/run_v1beta1/representations.rb +0 -58
- data/generated/google/apis/run_v1beta1/service.rb +0 -99
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/bigqueryreservation_v1alpha2/service.rb'
|
16
|
+
require 'google/apis/bigqueryreservation_v1alpha2/classes.rb'
|
17
|
+
require 'google/apis/bigqueryreservation_v1alpha2/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# BigQuery Reservation API
|
22
|
+
#
|
23
|
+
# A service to modify your BigQuery flat-rate reservations.
|
24
|
+
#
|
25
|
+
# @see https://cloud.google.com/bigquery/
|
26
|
+
module BigqueryreservationV1alpha2
|
27
|
+
VERSION = 'V1alpha2'
|
28
|
+
REVISION = '20190816'
|
29
|
+
|
30
|
+
# View and manage your data in Google BigQuery
|
31
|
+
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
32
|
+
|
33
|
+
# View and manage your data across Google Cloud Platform services
|
34
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,514 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module BigqueryreservationV1alpha2
|
24
|
+
|
25
|
+
# The metadata for operation returned from
|
26
|
+
# ReservationService.CreateSlotPool.
|
27
|
+
class CreateSlotPoolMetadata
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# Resource name of the slot pool that is being created. E.g.,
|
31
|
+
# projects/myproject/locations/us-central1/reservations/foo/slotPools/123
|
32
|
+
# Corresponds to the JSON property `slotPool`
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :slot_pool
|
35
|
+
|
36
|
+
def initialize(**args)
|
37
|
+
update!(**args)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Update properties of this object
|
41
|
+
def update!(**args)
|
42
|
+
@slot_pool = args[:slot_pool] if args.key?(:slot_pool)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
47
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
48
|
+
# or the response type of an API method. For instance:
|
49
|
+
# service Foo `
|
50
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
51
|
+
# `
|
52
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
53
|
+
class Empty
|
54
|
+
include Google::Apis::Core::Hashable
|
55
|
+
|
56
|
+
def initialize(**args)
|
57
|
+
update!(**args)
|
58
|
+
end
|
59
|
+
|
60
|
+
# Update properties of this object
|
61
|
+
def update!(**args)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# The response message for Locations.ListLocations.
|
66
|
+
class ListLocationsResponse
|
67
|
+
include Google::Apis::Core::Hashable
|
68
|
+
|
69
|
+
# A list of locations that matches the specified filter in the request.
|
70
|
+
# Corresponds to the JSON property `locations`
|
71
|
+
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::Location>]
|
72
|
+
attr_accessor :locations
|
73
|
+
|
74
|
+
# The standard List next-page token.
|
75
|
+
# Corresponds to the JSON property `nextPageToken`
|
76
|
+
# @return [String]
|
77
|
+
attr_accessor :next_page_token
|
78
|
+
|
79
|
+
def initialize(**args)
|
80
|
+
update!(**args)
|
81
|
+
end
|
82
|
+
|
83
|
+
# Update properties of this object
|
84
|
+
def update!(**args)
|
85
|
+
@locations = args[:locations] if args.key?(:locations)
|
86
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# The response for ReservationService.ListReservationGrants.
|
91
|
+
class ListReservationGrantsResponse
|
92
|
+
include Google::Apis::Core::Hashable
|
93
|
+
|
94
|
+
# Token to retrieve the next page of results, or empty if there are no
|
95
|
+
# more results in the list.
|
96
|
+
# Corresponds to the JSON property `nextPageToken`
|
97
|
+
# @return [String]
|
98
|
+
attr_accessor :next_page_token
|
99
|
+
|
100
|
+
# List of reservation grants visible to the user.
|
101
|
+
# Corresponds to the JSON property `reservationGrants`
|
102
|
+
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::ReservationGrant>]
|
103
|
+
attr_accessor :reservation_grants
|
104
|
+
|
105
|
+
def initialize(**args)
|
106
|
+
update!(**args)
|
107
|
+
end
|
108
|
+
|
109
|
+
# Update properties of this object
|
110
|
+
def update!(**args)
|
111
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
112
|
+
@reservation_grants = args[:reservation_grants] if args.key?(:reservation_grants)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# The response for ReservationService.ListReservations.
|
117
|
+
class ListReservationsResponse
|
118
|
+
include Google::Apis::Core::Hashable
|
119
|
+
|
120
|
+
# Token to retrieve the next page of results, or empty if there are no
|
121
|
+
# more results in the list.
|
122
|
+
# Corresponds to the JSON property `nextPageToken`
|
123
|
+
# @return [String]
|
124
|
+
attr_accessor :next_page_token
|
125
|
+
|
126
|
+
# List of reservations visible to the user.
|
127
|
+
# Corresponds to the JSON property `reservations`
|
128
|
+
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::Reservation>]
|
129
|
+
attr_accessor :reservations
|
130
|
+
|
131
|
+
def initialize(**args)
|
132
|
+
update!(**args)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Update properties of this object
|
136
|
+
def update!(**args)
|
137
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
138
|
+
@reservations = args[:reservations] if args.key?(:reservations)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# The response for ReservationService.ListSlotPools.
|
143
|
+
class ListSlotPoolsResponse
|
144
|
+
include Google::Apis::Core::Hashable
|
145
|
+
|
146
|
+
# Token to retrieve the next page of results, or empty if there are no
|
147
|
+
# more results in the list.
|
148
|
+
# Corresponds to the JSON property `nextPageToken`
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :next_page_token
|
151
|
+
|
152
|
+
# List of slot pools visible to the user.
|
153
|
+
# Corresponds to the JSON property `slotPools`
|
154
|
+
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::SlotPool>]
|
155
|
+
attr_accessor :slot_pools
|
156
|
+
|
157
|
+
def initialize(**args)
|
158
|
+
update!(**args)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Update properties of this object
|
162
|
+
def update!(**args)
|
163
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
164
|
+
@slot_pools = args[:slot_pools] if args.key?(:slot_pools)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# A resource that represents Google Cloud Platform location.
|
169
|
+
class Location
|
170
|
+
include Google::Apis::Core::Hashable
|
171
|
+
|
172
|
+
# The friendly name for this location, typically a nearby city name.
|
173
|
+
# For example, "Tokyo".
|
174
|
+
# Corresponds to the JSON property `displayName`
|
175
|
+
# @return [String]
|
176
|
+
attr_accessor :display_name
|
177
|
+
|
178
|
+
# Cross-service attributes for the location. For example
|
179
|
+
# `"cloud.googleapis.com/region": "us-east1"`
|
180
|
+
# Corresponds to the JSON property `labels`
|
181
|
+
# @return [Hash<String,String>]
|
182
|
+
attr_accessor :labels
|
183
|
+
|
184
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
185
|
+
# Corresponds to the JSON property `locationId`
|
186
|
+
# @return [String]
|
187
|
+
attr_accessor :location_id
|
188
|
+
|
189
|
+
# Service-specific metadata. For example the available capacity at the given
|
190
|
+
# location.
|
191
|
+
# Corresponds to the JSON property `metadata`
|
192
|
+
# @return [Hash<String,Object>]
|
193
|
+
attr_accessor :metadata
|
194
|
+
|
195
|
+
# Resource name for the location, which may vary between implementations.
|
196
|
+
# For example: `"projects/example-project/locations/us-east1"`
|
197
|
+
# Corresponds to the JSON property `name`
|
198
|
+
# @return [String]
|
199
|
+
attr_accessor :name
|
200
|
+
|
201
|
+
def initialize(**args)
|
202
|
+
update!(**args)
|
203
|
+
end
|
204
|
+
|
205
|
+
# Update properties of this object
|
206
|
+
def update!(**args)
|
207
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
208
|
+
@labels = args[:labels] if args.key?(:labels)
|
209
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
210
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
211
|
+
@name = args[:name] if args.key?(:name)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# BigQuery-specific metadata about a location. This will be set on
|
216
|
+
# google.cloud.location.Location.metadata in Cloud Location API
|
217
|
+
# responses.
|
218
|
+
class LocationMetadata
|
219
|
+
include Google::Apis::Core::Hashable
|
220
|
+
|
221
|
+
# The legacy BigQuery location ID, e.g. “EU” for the “europe” location.
|
222
|
+
# This is for any API consumers that need the legacy “US” and “EU” locations.
|
223
|
+
# Corresponds to the JSON property `legacyLocationId`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :legacy_location_id
|
226
|
+
|
227
|
+
def initialize(**args)
|
228
|
+
update!(**args)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Update properties of this object
|
232
|
+
def update!(**args)
|
233
|
+
@legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id)
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# This resource represents a long-running operation that is the result of a
|
238
|
+
# network API call.
|
239
|
+
class Operation
|
240
|
+
include Google::Apis::Core::Hashable
|
241
|
+
|
242
|
+
# If the value is `false`, it means the operation is still in progress.
|
243
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
244
|
+
# available.
|
245
|
+
# Corresponds to the JSON property `done`
|
246
|
+
# @return [Boolean]
|
247
|
+
attr_accessor :done
|
248
|
+
alias_method :done?, :done
|
249
|
+
|
250
|
+
# The `Status` type defines a logical error model that is suitable for
|
251
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
252
|
+
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
253
|
+
# three pieces of data: error code, error message, and error details.
|
254
|
+
# You can find out more about this error model and how to work with it in the
|
255
|
+
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
256
|
+
# Corresponds to the JSON property `error`
|
257
|
+
# @return [Google::Apis::BigqueryreservationV1alpha2::Status]
|
258
|
+
attr_accessor :error
|
259
|
+
|
260
|
+
# Service-specific metadata associated with the operation. It typically
|
261
|
+
# contains progress information and common metadata such as create time.
|
262
|
+
# Some services might not provide such metadata. Any method that returns a
|
263
|
+
# long-running operation should document the metadata type, if any.
|
264
|
+
# Corresponds to the JSON property `metadata`
|
265
|
+
# @return [Hash<String,Object>]
|
266
|
+
attr_accessor :metadata
|
267
|
+
|
268
|
+
# The server-assigned name, which is only unique within the same service that
|
269
|
+
# originally returns it. If you use the default HTTP mapping, the
|
270
|
+
# `name` should be a resource name ending with `operations/`unique_id``.
|
271
|
+
# Corresponds to the JSON property `name`
|
272
|
+
# @return [String]
|
273
|
+
attr_accessor :name
|
274
|
+
|
275
|
+
# The normal response of the operation in case of success. If the original
|
276
|
+
# method returns no data on success, such as `Delete`, the response is
|
277
|
+
# `google.protobuf.Empty`. If the original method is standard
|
278
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
279
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
280
|
+
# is the original method name. For example, if the original method name
|
281
|
+
# is `TakeSnapshot()`, the inferred response type is
|
282
|
+
# `TakeSnapshotResponse`.
|
283
|
+
# Corresponds to the JSON property `response`
|
284
|
+
# @return [Hash<String,Object>]
|
285
|
+
attr_accessor :response
|
286
|
+
|
287
|
+
def initialize(**args)
|
288
|
+
update!(**args)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Update properties of this object
|
292
|
+
def update!(**args)
|
293
|
+
@done = args[:done] if args.key?(:done)
|
294
|
+
@error = args[:error] if args.key?(:error)
|
295
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
296
|
+
@name = args[:name] if args.key?(:name)
|
297
|
+
@response = args[:response] if args.key?(:response)
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
# A reservation is a mechanism used to guarantee slots to users.
|
302
|
+
class Reservation
|
303
|
+
include Google::Apis::Core::Hashable
|
304
|
+
|
305
|
+
# The resource name of the reservation, e.g.,
|
306
|
+
# "projects/*/locations/*/reservations/dev/team/product". Reservation names
|
307
|
+
# (e.g., "dev/team/product") exceeding a depth of six will fail with
|
308
|
+
# `google.rpc.Code.INVALID_ARGUMENT`.
|
309
|
+
# Corresponds to the JSON property `name`
|
310
|
+
# @return [String]
|
311
|
+
attr_accessor :name
|
312
|
+
|
313
|
+
# Maximum slots available to this reservation and its children. A slot is a
|
314
|
+
# unit of computational power in BigQuery, and serves as the unit of
|
315
|
+
# parallelism. In a scan of a multi-partitioned table, a single slot operates
|
316
|
+
# on a single partition of the table.
|
317
|
+
# If the new reservation's slot capacity exceed the parent's slot capacity or
|
318
|
+
# if total slot capacity of the new reservation and its siblings exceeds the
|
319
|
+
# parent's slot capacity, the request will fail with
|
320
|
+
# `google.rpc.Code.RESOURCE_EXHAUSTED`.
|
321
|
+
# Corresponds to the JSON property `slotCapacity`
|
322
|
+
# @return [Fixnum]
|
323
|
+
attr_accessor :slot_capacity
|
324
|
+
|
325
|
+
# If true, any query using this reservation will also be submitted to the
|
326
|
+
# parent reservation. This allows the query to share the additional slot
|
327
|
+
# capacity of the parent with other queries in the parent reservation. If the
|
328
|
+
# parent also has this field set to true, then this process will continue
|
329
|
+
# until it encounters a reservation for which this is false.
|
330
|
+
# If false, a query using this reservation will
|
331
|
+
# execute with the maximum slot capacity as specified above.
|
332
|
+
# If not specified, default value is true.
|
333
|
+
# Ignored for top-level reservation.
|
334
|
+
# Corresponds to the JSON property `useParentReservation`
|
335
|
+
# @return [Boolean]
|
336
|
+
attr_accessor :use_parent_reservation
|
337
|
+
alias_method :use_parent_reservation?, :use_parent_reservation
|
338
|
+
|
339
|
+
def initialize(**args)
|
340
|
+
update!(**args)
|
341
|
+
end
|
342
|
+
|
343
|
+
# Update properties of this object
|
344
|
+
def update!(**args)
|
345
|
+
@name = args[:name] if args.key?(:name)
|
346
|
+
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
|
347
|
+
@use_parent_reservation = args[:use_parent_reservation] if args.key?(:use_parent_reservation)
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
# A ReservationGrant allows a project to submit jobs
|
352
|
+
# of a certain type using slots from the specified reservation.
|
353
|
+
class ReservationGrant
|
354
|
+
include Google::Apis::Core::Hashable
|
355
|
+
|
356
|
+
# The resource which will use the reservation. E.g.
|
357
|
+
# projects/myproject, folders/123, organizations/456.
|
358
|
+
# Corresponds to the JSON property `grantee`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :grantee
|
361
|
+
|
362
|
+
# Which type of jobs will use the reservation.
|
363
|
+
# Corresponds to the JSON property `jobType`
|
364
|
+
# @return [String]
|
365
|
+
attr_accessor :job_type
|
366
|
+
|
367
|
+
# Output only. Name of the resource. E.g.:
|
368
|
+
# projects/myproject/locations/eu/reservationGrants/123.
|
369
|
+
# Corresponds to the JSON property `name`
|
370
|
+
# @return [String]
|
371
|
+
attr_accessor :name
|
372
|
+
|
373
|
+
# Resource name of the reservation.
|
374
|
+
# E.g., projects/myproject/locations/eu/reservations/my_reservation.
|
375
|
+
# This reservation must be in the same location as the grant.
|
376
|
+
# This reservation should belong to the same parent project.
|
377
|
+
# Corresponds to the JSON property `reservation`
|
378
|
+
# @return [String]
|
379
|
+
attr_accessor :reservation
|
380
|
+
|
381
|
+
def initialize(**args)
|
382
|
+
update!(**args)
|
383
|
+
end
|
384
|
+
|
385
|
+
# Update properties of this object
|
386
|
+
def update!(**args)
|
387
|
+
@grantee = args[:grantee] if args.key?(:grantee)
|
388
|
+
@job_type = args[:job_type] if args.key?(:job_type)
|
389
|
+
@name = args[:name] if args.key?(:name)
|
390
|
+
@reservation = args[:reservation] if args.key?(:reservation)
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
394
|
+
# The response for ReservationService.SearchReservationGrants.
|
395
|
+
class SearchReservationGrantsResponse
|
396
|
+
include Google::Apis::Core::Hashable
|
397
|
+
|
398
|
+
# Token to retrieve the next page of results, or empty if there are no
|
399
|
+
# more results in the list.
|
400
|
+
# Corresponds to the JSON property `nextPageToken`
|
401
|
+
# @return [String]
|
402
|
+
attr_accessor :next_page_token
|
403
|
+
|
404
|
+
# List of reservation grants visible to the user.
|
405
|
+
# Corresponds to the JSON property `reservationGrants`
|
406
|
+
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::ReservationGrant>]
|
407
|
+
attr_accessor :reservation_grants
|
408
|
+
|
409
|
+
def initialize(**args)
|
410
|
+
update!(**args)
|
411
|
+
end
|
412
|
+
|
413
|
+
# Update properties of this object
|
414
|
+
def update!(**args)
|
415
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
416
|
+
@reservation_grants = args[:reservation_grants] if args.key?(:reservation_grants)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
# Slot pool is a way to purchase slots with some minimum committed period of
|
421
|
+
# usage. Slot pool is immutable and cannot be deleted until the end of the
|
422
|
+
# commitment period. After the end of the commitment period, slots are still
|
423
|
+
# available but can be freely removed any time.
|
424
|
+
# A slot pool resource exists as a child resource of a top-level reservation.
|
425
|
+
# Sum of all the ACTIVE pools slot_count is always equal to the reservation
|
426
|
+
# slot_capacity.
|
427
|
+
class SlotPool
|
428
|
+
include Google::Apis::Core::Hashable
|
429
|
+
|
430
|
+
# Output only. The end of the commitment period. Slot pool cannot be
|
431
|
+
# removed before commitment_end_time. It is applicable only for ACTIVE slot
|
432
|
+
# pools and is computed as a combination of the plan and the time when the
|
433
|
+
# slot pool became ACTIVE.
|
434
|
+
# Corresponds to the JSON property `commitmentEndTime`
|
435
|
+
# @return [String]
|
436
|
+
attr_accessor :commitment_end_time
|
437
|
+
|
438
|
+
# Output only. The resource name of the slot pool, e.g.,
|
439
|
+
# projects/myproject/locations/us-central1/reservations/myreservation/
|
440
|
+
# slotPools/123
|
441
|
+
# Corresponds to the JSON property `name`
|
442
|
+
# @return [String]
|
443
|
+
attr_accessor :name
|
444
|
+
|
445
|
+
# Slot pool commitment plan.
|
446
|
+
# Corresponds to the JSON property `plan`
|
447
|
+
# @return [String]
|
448
|
+
attr_accessor :plan
|
449
|
+
|
450
|
+
# Number of slots in this pool.
|
451
|
+
# Corresponds to the JSON property `slotCount`
|
452
|
+
# @return [Fixnum]
|
453
|
+
attr_accessor :slot_count
|
454
|
+
|
455
|
+
# Output only.
|
456
|
+
# Corresponds to the JSON property `state`
|
457
|
+
# @return [String]
|
458
|
+
attr_accessor :state
|
459
|
+
|
460
|
+
def initialize(**args)
|
461
|
+
update!(**args)
|
462
|
+
end
|
463
|
+
|
464
|
+
# Update properties of this object
|
465
|
+
def update!(**args)
|
466
|
+
@commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
|
467
|
+
@name = args[:name] if args.key?(:name)
|
468
|
+
@plan = args[:plan] if args.key?(:plan)
|
469
|
+
@slot_count = args[:slot_count] if args.key?(:slot_count)
|
470
|
+
@state = args[:state] if args.key?(:state)
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
# The `Status` type defines a logical error model that is suitable for
|
475
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
476
|
+
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
477
|
+
# three pieces of data: error code, error message, and error details.
|
478
|
+
# You can find out more about this error model and how to work with it in the
|
479
|
+
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
480
|
+
class Status
|
481
|
+
include Google::Apis::Core::Hashable
|
482
|
+
|
483
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
484
|
+
# Corresponds to the JSON property `code`
|
485
|
+
# @return [Fixnum]
|
486
|
+
attr_accessor :code
|
487
|
+
|
488
|
+
# A list of messages that carry the error details. There is a common set of
|
489
|
+
# message types for APIs to use.
|
490
|
+
# Corresponds to the JSON property `details`
|
491
|
+
# @return [Array<Hash<String,Object>>]
|
492
|
+
attr_accessor :details
|
493
|
+
|
494
|
+
# A developer-facing error message, which should be in English. Any
|
495
|
+
# user-facing error message should be localized and sent in the
|
496
|
+
# google.rpc.Status.details field, or localized by the client.
|
497
|
+
# Corresponds to the JSON property `message`
|
498
|
+
# @return [String]
|
499
|
+
attr_accessor :message
|
500
|
+
|
501
|
+
def initialize(**args)
|
502
|
+
update!(**args)
|
503
|
+
end
|
504
|
+
|
505
|
+
# Update properties of this object
|
506
|
+
def update!(**args)
|
507
|
+
@code = args[:code] if args.key?(:code)
|
508
|
+
@details = args[:details] if args.key?(:details)
|
509
|
+
@message = args[:message] if args.key?(:message)
|
510
|
+
end
|
511
|
+
end
|
512
|
+
end
|
513
|
+
end
|
514
|
+
end
|