google-api-client 0.23.4 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +171 -0
- data/Gemfile +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +7 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +13 -1
- data/generated/google/apis/adsense_v1_4/representations.rb +2 -0
- data/generated/google/apis/adsense_v1_4/service.rb +36 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +68 -0
- data/generated/google/apis/analytics_v3/representations.rb +31 -0
- data/generated/google/apis/analytics_v3/service.rb +33 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +108 -28
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +73 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -70
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +2 -5
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +3 -4
- data/generated/google/apis/appsactivity_v1.rb +2 -2
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +103 -61
- data/generated/google/apis/bigquery_v2/representations.rb +17 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +597 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +238 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +523 -0
- data/generated/google/apis/blogger_v2.rb +1 -1
- data/generated/google/apis/blogger_v3.rb +1 -1
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +7 -0
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +44 -12
- data/generated/google/apis/calendar_v3/service.rb +7 -7
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +641 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +215 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +25 -0
- data/generated/google/apis/classroom_v1/representations.rb +15 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +85 -10
- data/generated/google/apis/cloudbilling_v1/representations.rb +18 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +3 -13
- data/generated/google/apis/cloudbuild_v1.rb +4 -4
- data/generated/google/apis/cloudbuild_v1/classes.rb +37 -3
- data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +3 -3
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +4 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +56 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +18 -0
- data/generated/google/apis/cloudiot_v1/service.rb +355 -0
- data/generated/google/apis/cloudkms_v1.rb +6 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +340 -14
- data/generated/google/apis/cloudkms_v1/representations.rb +147 -0
- data/generated/google/apis/cloudkms_v1/service.rb +126 -6
- data/generated/google/apis/cloudprofiler_v2.rb +3 -3
- data/generated/google/apis/cloudprofiler_v2/classes.rb +0 -6
- data/generated/google/apis/cloudprofiler_v2/representations.rb +0 -2
- data/generated/google/apis/cloudprofiler_v2/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +56 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +28 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +37 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +167 -103
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +18 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -21
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/{spectrum_v1explorer.rb → composer_v1.rb} +12 -9
- data/generated/google/apis/composer_v1/classes.rb +640 -0
- data/generated/google/apis/composer_v1/representations.rb +195 -0
- data/generated/google/apis/composer_v1/service.rb +462 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +13 -10
- data/generated/google/apis/composer_v1beta1/service.rb +6 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +5135 -4250
- data/generated/google/apis/compute_alpha/representations.rb +644 -216
- data/generated/google/apis/compute_alpha/service.rb +2308 -1655
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1070 -62
- data/generated/google/apis/compute_beta/representations.rb +435 -0
- data/generated/google/apis/compute_beta/service.rb +1758 -321
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1984 -210
- data/generated/google/apis/compute_v1/representations.rb +754 -9
- data/generated/google/apis/compute_v1/service.rb +1299 -12
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +43 -0
- data/generated/google/apis/container_v1/representations.rb +17 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +193 -231
- data/generated/google/apis/container_v1beta1/representations.rb +72 -82
- data/generated/google/apis/container_v1beta1/service.rb +0 -112
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +199 -29
- data/generated/google/apis/content_v2/representations.rb +59 -0
- data/generated/google/apis/content_v2/service.rb +8 -3
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +32 -19
- data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
- data/generated/google/apis/content_v2sandbox/service.rb +8 -3
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +7 -7
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +112 -43
- data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +140 -0
- data/generated/google/apis/datastore_v1/representations.rb +65 -0
- data/generated/google/apis/datastore_v1/service.rb +74 -0
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +31 -0
- data/generated/google/apis/datastore_v1beta1/representations.rb +17 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +31 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v3_0.rb +1 -1
- data/generated/google/apis/dfareporting_v3_1.rb +1 -1
- data/generated/google/apis/dfareporting_v3_2.rb +40 -0
- data/generated/google/apis/dfareporting_v3_2/classes.rb +12297 -0
- data/generated/google/apis/dfareporting_v3_2/representations.rb +4397 -0
- data/generated/google/apis/dfareporting_v3_2/service.rb +8790 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +304 -12
- data/generated/google/apis/dialogflow_v2/representations.rb +113 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +656 -26
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +248 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -0
- data/generated/google/apis/discovery_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +357 -6
- data/generated/google/apis/dlp_v2/representations.rb +161 -0
- data/generated/google/apis/dlp_v2/service.rb +366 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +0 -7
- data/generated/google/apis/dns_v1/representations.rb +0 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +0 -7
- data/generated/google/apis/dns_v1beta2/representations.rb +0 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +0 -7
- data/generated/google/apis/dns_v2beta1/representations.rb +0 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +3 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +37 -0
- data/generated/google/apis/firestore_v1/classes.rb +324 -0
- data/generated/google/apis/firestore_v1/representations.rb +130 -0
- data/generated/google/apis/firestore_v1/service.rb +282 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +290 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +128 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +79 -0
- data/generated/google/apis/firestore_v1beta2.rb +37 -0
- data/generated/google/apis/firestore_v1beta2/classes.rb +531 -0
- data/generated/google/apis/firestore_v1beta2/representations.rb +189 -0
- data/generated/google/apis/firestore_v1beta2/service.rb +213 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +113 -36
- data/generated/google/apis/genomics_v1/representations.rb +31 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +57 -36
- data/generated/google/apis/genomics_v1alpha2/representations.rb +13 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +2 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -137
- data/generated/google/apis/genomics_v2alpha1/representations.rb +50 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +7 -5
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +258 -3
- data/generated/google/apis/iam_v1/representations.rb +73 -0
- data/generated/google/apis/iam_v1/service.rb +50 -2
- data/generated/google/apis/iamcredentials_v1.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/classes.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +34 -0
- data/generated/google/apis/iap_v1beta1/classes.rb +440 -0
- data/generated/google/apis/iap_v1beta1/representations.rb +158 -0
- data/generated/google/apis/iap_v1beta1/service.rb +398 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +3 -3
- data/generated/google/apis/jobs_v2/classes.rb +61 -5
- data/generated/google/apis/jobs_v2/representations.rb +18 -0
- data/generated/google/apis/jobs_v2/service.rb +3 -3
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +64 -58
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +39 -40
- data/generated/google/apis/logging_v2beta1.rb +2 -2
- data/generated/google/apis/logging_v2beta1/classes.rb +59 -53
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1/service.rb +15 -16
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +87 -0
- data/generated/google/apis/ml_v1/representations.rb +34 -0
- data/generated/google/apis/ml_v1/service.rb +53 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +68 -15
- data/generated/google/apis/monitoring_v3/representations.rb +26 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/poly_v1.rb +4 -3
- data/generated/google/apis/poly_v1/classes.rb +28 -0
- data/generated/google/apis/poly_v1/representations.rb +15 -0
- data/generated/google/apis/poly_v1/service.rb +3 -2
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -8
- data/generated/google/apis/pubsub_v1/representations.rb +18 -0
- data/generated/google/apis/pubsub_v1/service.rb +7 -8
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +56 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +18 -0
- data/generated/google/apis/redis_v1beta1.rb +2 -2
- data/generated/google/apis/redis_v1beta1/classes.rb +38 -119
- data/generated/google/apis/redis_v1beta1/representations.rb +10 -43
- data/generated/google/apis/redis_v1beta1/service.rb +73 -1
- data/generated/google/apis/replicapool_v1beta1.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +57 -1
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +18 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +1 -57
- data/generated/google/apis/script_v1/representations.rb +0 -32
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1/representations.rb +18 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +18 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +18 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +13 -4
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +259 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +68 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +68 -4
- data/generated/google/apis/servicemanagement_v1/representations.rb +19 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +13 -4
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +13 -4
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +12 -3
- data/generated/google/apis/serviceuser_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +22 -22
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +56 -1
- data/generated/google/apis/sourcerepo_v1/representations.rb +18 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1632 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +733 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +995 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +4 -4
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +30 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +7 -7
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/texttospeech_v1.rb +34 -0
- data/generated/google/apis/texttospeech_v1/classes.rb +278 -0
- data/generated/google/apis/texttospeech_v1/representations.rb +133 -0
- data/generated/google/apis/texttospeech_v1/service.rb +127 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +0 -12
- data/generated/google/apis/toolresults_v1beta3/representations.rb +0 -2
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +0 -13
- data/generated/google/apis/tpu_v1/representations.rb +0 -12
- data/generated/google/apis/tpu_v1/service.rb +0 -33
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +0 -13
- data/generated/google/apis/tpu_v1alpha1/representations.rb +0 -12
- data/generated/google/apis/tpu_v1alpha1/service.rb +0 -33
- data/generated/google/apis/urlshortener_v1.rb +1 -1
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +803 -0
- data/generated/google/apis/vault_v1/representations.rb +384 -0
- data/generated/google/apis/vault_v1/service.rb +211 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +3342 -227
- data/generated/google/apis/vision_v1/representations.rb +1696 -365
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1826 -94
- data/generated/google/apis/vision_v1p1beta1/representations.rb +754 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +3712 -597
- data/generated/google/apis/vision_v1p2beta1/representations.rb +1606 -275
- data/generated/google/apis/webfonts_v1.rb +1 -1
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +58 -2
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +32 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/core/http_command.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -6
- data/generated/google/apis/spectrum_v1explorer/classes.rb +0 -1612
- data/generated/google/apis/spectrum_v1explorer/representations.rb +0 -611
- data/generated/google/apis/spectrum_v1explorer/service.rb +0 -271
|
@@ -160,6 +160,36 @@ module Google
|
|
|
160
160
|
include Google::Apis::Core::JsonObjectSupport
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
+
class GoogleFirestoreAdminV1beta1ExportDocumentsMetadata
|
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
|
+
|
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
class GoogleFirestoreAdminV1beta1ExportDocumentsRequest
|
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
|
+
|
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
class GoogleFirestoreAdminV1beta1ExportDocumentsResponse
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
class GoogleFirestoreAdminV1beta1ImportDocumentsMetadata
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class GoogleFirestoreAdminV1beta1ImportDocumentsRequest
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
163
193
|
class GoogleFirestoreAdminV1beta1Index
|
|
164
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
195
|
|
|
@@ -172,12 +202,30 @@ module Google
|
|
|
172
202
|
include Google::Apis::Core::JsonObjectSupport
|
|
173
203
|
end
|
|
174
204
|
|
|
205
|
+
class GoogleFirestoreAdminV1beta1IndexOperationMetadata
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
175
211
|
class GoogleFirestoreAdminV1beta1ListIndexesResponse
|
|
176
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
213
|
|
|
178
214
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
215
|
end
|
|
180
216
|
|
|
217
|
+
class GoogleFirestoreAdminV1beta1LocationMetadata
|
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
219
|
+
|
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
class GoogleFirestoreAdminV1beta1Progress
|
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
|
+
|
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
227
|
+
end
|
|
228
|
+
|
|
181
229
|
class GoogleLongrunningOperation
|
|
182
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
231
|
|
|
@@ -555,6 +603,59 @@ module Google
|
|
|
555
603
|
end
|
|
556
604
|
end
|
|
557
605
|
|
|
606
|
+
class GoogleFirestoreAdminV1beta1ExportDocumentsMetadata
|
|
607
|
+
# @private
|
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
609
|
+
collection :collection_ids, as: 'collectionIds'
|
|
610
|
+
property :end_time, as: 'endTime'
|
|
611
|
+
property :operation_state, as: 'operationState'
|
|
612
|
+
property :output_uri_prefix, as: 'outputUriPrefix'
|
|
613
|
+
property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation
|
|
614
|
+
|
|
615
|
+
property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation
|
|
616
|
+
|
|
617
|
+
property :start_time, as: 'startTime'
|
|
618
|
+
end
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
class GoogleFirestoreAdminV1beta1ExportDocumentsRequest
|
|
622
|
+
# @private
|
|
623
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
624
|
+
collection :collection_ids, as: 'collectionIds'
|
|
625
|
+
property :output_uri_prefix, as: 'outputUriPrefix'
|
|
626
|
+
end
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
class GoogleFirestoreAdminV1beta1ExportDocumentsResponse
|
|
630
|
+
# @private
|
|
631
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
632
|
+
property :output_uri_prefix, as: 'outputUriPrefix'
|
|
633
|
+
end
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
class GoogleFirestoreAdminV1beta1ImportDocumentsMetadata
|
|
637
|
+
# @private
|
|
638
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
639
|
+
collection :collection_ids, as: 'collectionIds'
|
|
640
|
+
property :end_time, as: 'endTime'
|
|
641
|
+
property :input_uri_prefix, as: 'inputUriPrefix'
|
|
642
|
+
property :operation_state, as: 'operationState'
|
|
643
|
+
property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation
|
|
644
|
+
|
|
645
|
+
property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation
|
|
646
|
+
|
|
647
|
+
property :start_time, as: 'startTime'
|
|
648
|
+
end
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
class GoogleFirestoreAdminV1beta1ImportDocumentsRequest
|
|
652
|
+
# @private
|
|
653
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
654
|
+
collection :collection_ids, as: 'collectionIds'
|
|
655
|
+
property :input_uri_prefix, as: 'inputUriPrefix'
|
|
656
|
+
end
|
|
657
|
+
end
|
|
658
|
+
|
|
558
659
|
class GoogleFirestoreAdminV1beta1Index
|
|
559
660
|
# @private
|
|
560
661
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -574,6 +675,19 @@ module Google
|
|
|
574
675
|
end
|
|
575
676
|
end
|
|
576
677
|
|
|
678
|
+
class GoogleFirestoreAdminV1beta1IndexOperationMetadata
|
|
679
|
+
# @private
|
|
680
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
681
|
+
property :cancelled, as: 'cancelled'
|
|
682
|
+
property :document_progress, as: 'documentProgress', class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress, decorator: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress::Representation
|
|
683
|
+
|
|
684
|
+
property :end_time, as: 'endTime'
|
|
685
|
+
property :index, as: 'index'
|
|
686
|
+
property :operation_type, as: 'operationType'
|
|
687
|
+
property :start_time, as: 'startTime'
|
|
688
|
+
end
|
|
689
|
+
end
|
|
690
|
+
|
|
577
691
|
class GoogleFirestoreAdminV1beta1ListIndexesResponse
|
|
578
692
|
# @private
|
|
579
693
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -583,6 +697,20 @@ module Google
|
|
|
583
697
|
end
|
|
584
698
|
end
|
|
585
699
|
|
|
700
|
+
class GoogleFirestoreAdminV1beta1LocationMetadata
|
|
701
|
+
# @private
|
|
702
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
703
|
+
end
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
class GoogleFirestoreAdminV1beta1Progress
|
|
707
|
+
# @private
|
|
708
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
709
|
+
property :work_completed, :numeric_string => true, as: 'workCompleted'
|
|
710
|
+
property :work_estimated, :numeric_string => true, as: 'workEstimated'
|
|
711
|
+
end
|
|
712
|
+
end
|
|
713
|
+
|
|
586
714
|
class GoogleLongrunningOperation
|
|
587
715
|
# @private
|
|
588
716
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -47,6 +47,85 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Exports a copy of all or a subset of documents from Google Cloud Firestore
|
|
51
|
+
# to another storage system, such as Google Cloud Storage. Recent updates to
|
|
52
|
+
# documents may not be reflected in the export. The export occurs in the
|
|
53
|
+
# background and its progress can be monitored and managed via the
|
|
54
|
+
# Operation resource that is created. The output of an export may only be
|
|
55
|
+
# used once the associated operation is done. If an export operation is
|
|
56
|
+
# cancelled before completion it may leave partial data behind in Google
|
|
57
|
+
# Cloud Storage.
|
|
58
|
+
# @param [String] name
|
|
59
|
+
# Database to export. Should be of the form:
|
|
60
|
+
# `projects/`project_id`/databases/`database_id``.
|
|
61
|
+
# @param [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ExportDocumentsRequest] google_firestore_admin_v1beta1_export_documents_request_object
|
|
62
|
+
# @param [String] fields
|
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
|
64
|
+
# @param [String] quota_user
|
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
|
68
|
+
# Request-specific options
|
|
69
|
+
#
|
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
|
71
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation] parsed result object
|
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
+
#
|
|
74
|
+
# @return [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation]
|
|
75
|
+
#
|
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
+
def export_project_database_documents(name, google_firestore_admin_v1beta1_export_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:exportDocuments', options)
|
|
81
|
+
command.request_representation = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ExportDocumentsRequest::Representation
|
|
82
|
+
command.request_object = google_firestore_admin_v1beta1_export_documents_request_object
|
|
83
|
+
command.response_representation = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation::Representation
|
|
84
|
+
command.response_class = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation
|
|
85
|
+
command.params['name'] = name unless name.nil?
|
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
88
|
+
execute_or_queue_command(command, &block)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Imports documents into Google Cloud Firestore. Existing documents with the
|
|
92
|
+
# same name are overwritten. The import occurs in the background and its
|
|
93
|
+
# progress can be monitored and managed via the Operation resource that is
|
|
94
|
+
# created. If an ImportDocuments operation is cancelled, it is possible
|
|
95
|
+
# that a subset of the data has already been imported to Cloud Firestore.
|
|
96
|
+
# @param [String] name
|
|
97
|
+
# Database to import into. Should be of the form:
|
|
98
|
+
# `projects/`project_id`/databases/`database_id``.
|
|
99
|
+
# @param [Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ImportDocumentsRequest] google_firestore_admin_v1beta1_import_documents_request_object
|
|
100
|
+
# @param [String] fields
|
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
|
102
|
+
# @param [String] quota_user
|
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
105
|
+
# @param [Google::Apis::RequestOptions] options
|
|
106
|
+
# Request-specific options
|
|
107
|
+
#
|
|
108
|
+
# @yield [result, err] Result & error if block supplied
|
|
109
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation] parsed result object
|
|
110
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
111
|
+
#
|
|
112
|
+
# @return [Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation]
|
|
113
|
+
#
|
|
114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
117
|
+
def import_project_database_documents(name, google_firestore_admin_v1beta1_import_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
118
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:importDocuments', options)
|
|
119
|
+
command.request_representation = Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1ImportDocumentsRequest::Representation
|
|
120
|
+
command.request_object = google_firestore_admin_v1beta1_import_documents_request_object
|
|
121
|
+
command.response_representation = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation::Representation
|
|
122
|
+
command.response_class = Google::Apis::FirestoreV1beta1::GoogleLongrunningOperation
|
|
123
|
+
command.params['name'] = name unless name.nil?
|
|
124
|
+
command.query['fields'] = fields unless fields.nil?
|
|
125
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
126
|
+
execute_or_queue_command(command, &block)
|
|
127
|
+
end
|
|
128
|
+
|
|
50
129
|
# Gets multiple documents.
|
|
51
130
|
# Documents returned by this method are not guaranteed to be returned in the
|
|
52
131
|
# same order that they were requested.
|
|
@@ -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/firestore_v1beta2/service.rb'
|
|
16
|
+
require 'google/apis/firestore_v1beta2/classes.rb'
|
|
17
|
+
require 'google/apis/firestore_v1beta2/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Cloud Firestore API
|
|
22
|
+
#
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
# @see https://cloud.google.com/firestore
|
|
26
|
+
module FirestoreV1beta2
|
|
27
|
+
VERSION = 'V1beta2'
|
|
28
|
+
REVISION = '20180806'
|
|
29
|
+
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
32
|
+
|
|
33
|
+
# View and manage your Google Cloud Datastore data
|
|
34
|
+
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,531 @@
|
|
|
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 FirestoreV1beta2
|
|
24
|
+
|
|
25
|
+
# Represents a single field in the database.
|
|
26
|
+
# Fields are grouped by their "Collection Group", which represent all
|
|
27
|
+
# collections in the database with the same id.
|
|
28
|
+
class GoogleFirestoreAdminV1beta2Field
|
|
29
|
+
include Google::Apis::Core::Hashable
|
|
30
|
+
|
|
31
|
+
# The index configuration for this field.
|
|
32
|
+
# Corresponds to the JSON property `indexConfig`
|
|
33
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfig]
|
|
34
|
+
attr_accessor :index_config
|
|
35
|
+
|
|
36
|
+
# A field name of the form
|
|
37
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
|
38
|
+
# /fields/`field_path``
|
|
39
|
+
# A field path may be a simple field name, e.g. `address` or a path to fields
|
|
40
|
+
# within map_value , e.g. `address.city`,
|
|
41
|
+
# or a special field path. The only valid special field is `*`, which
|
|
42
|
+
# represents any field.
|
|
43
|
+
# Field paths may be quoted using ` (backtick). The only character that needs
|
|
44
|
+
# to be escaped within a quoted field path is the backtick character itself,
|
|
45
|
+
# escaped using a backslash. Special characters in field paths that
|
|
46
|
+
# must be quoted include: `*`, `.`,
|
|
47
|
+
# ``` (backtick), `[`, `]`, as well as any ascii symbolic characters.
|
|
48
|
+
# Examples:
|
|
49
|
+
# (Note: Comments here are written in markdown syntax, so there is an
|
|
50
|
+
# additional layer of backticks to represent a code block)
|
|
51
|
+
# `\`address.city\`` represents a field named `address.city`, not the map key
|
|
52
|
+
# `city` in the field `address`.
|
|
53
|
+
# `\`*\`` represents a field named `*`, not any field.
|
|
54
|
+
# A special `Field` contains the default indexing settings for all fields.
|
|
55
|
+
# This field's resource name is:
|
|
56
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/__default__/
|
|
57
|
+
# fields/*`
|
|
58
|
+
# Indexes defined on this `Field` will be applied to all fields which do not
|
|
59
|
+
# have their own `Field` index configuration.
|
|
60
|
+
# Corresponds to the JSON property `name`
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :name
|
|
63
|
+
|
|
64
|
+
def initialize(**args)
|
|
65
|
+
update!(**args)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Update properties of this object
|
|
69
|
+
def update!(**args)
|
|
70
|
+
@index_config = args[:index_config] if args.key?(:index_config)
|
|
71
|
+
@name = args[:name] if args.key?(:name)
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Metadata for google.longrunning.Operation results from
|
|
76
|
+
# FirestoreAdmin.UpdateField.
|
|
77
|
+
class GoogleFirestoreAdminV1beta2FieldOperationMetadata
|
|
78
|
+
include Google::Apis::Core::Hashable
|
|
79
|
+
|
|
80
|
+
# Describes the progress of the operation.
|
|
81
|
+
# Unit of work is generic and must be interpreted based on where Progress
|
|
82
|
+
# is used.
|
|
83
|
+
# Corresponds to the JSON property `bytesProgress`
|
|
84
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress]
|
|
85
|
+
attr_accessor :bytes_progress
|
|
86
|
+
|
|
87
|
+
# Describes the progress of the operation.
|
|
88
|
+
# Unit of work is generic and must be interpreted based on where Progress
|
|
89
|
+
# is used.
|
|
90
|
+
# Corresponds to the JSON property `documentProgress`
|
|
91
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress]
|
|
92
|
+
attr_accessor :document_progress
|
|
93
|
+
|
|
94
|
+
# The time this operation completed. Will be unset if operation still in
|
|
95
|
+
# progress.
|
|
96
|
+
# Corresponds to the JSON property `endTime`
|
|
97
|
+
# @return [String]
|
|
98
|
+
attr_accessor :end_time
|
|
99
|
+
|
|
100
|
+
# The field resource that this operation is acting on. For example:
|
|
101
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
|
102
|
+
# /fields/`field_path``
|
|
103
|
+
# Corresponds to the JSON property `field`
|
|
104
|
+
# @return [String]
|
|
105
|
+
attr_accessor :field
|
|
106
|
+
|
|
107
|
+
# A list of IndexConfigDelta, which describe the intent of this
|
|
108
|
+
# operation.
|
|
109
|
+
# Corresponds to the JSON property `indexConfigDeltas`
|
|
110
|
+
# @return [Array<Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfigDelta>]
|
|
111
|
+
attr_accessor :index_config_deltas
|
|
112
|
+
|
|
113
|
+
# The time this operation started.
|
|
114
|
+
# Corresponds to the JSON property `startTime`
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :start_time
|
|
117
|
+
|
|
118
|
+
# The state of the operation.
|
|
119
|
+
# Corresponds to the JSON property `state`
|
|
120
|
+
# @return [String]
|
|
121
|
+
attr_accessor :state
|
|
122
|
+
|
|
123
|
+
def initialize(**args)
|
|
124
|
+
update!(**args)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Update properties of this object
|
|
128
|
+
def update!(**args)
|
|
129
|
+
@bytes_progress = args[:bytes_progress] if args.key?(:bytes_progress)
|
|
130
|
+
@document_progress = args[:document_progress] if args.key?(:document_progress)
|
|
131
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
132
|
+
@field = args[:field] if args.key?(:field)
|
|
133
|
+
@index_config_deltas = args[:index_config_deltas] if args.key?(:index_config_deltas)
|
|
134
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
135
|
+
@state = args[:state] if args.key?(:state)
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Cloud Firestore indexes enable simple and complex queries against
|
|
140
|
+
# documents in a database.
|
|
141
|
+
class GoogleFirestoreAdminV1beta2Index
|
|
142
|
+
include Google::Apis::Core::Hashable
|
|
143
|
+
|
|
144
|
+
# The fields supported by this index.
|
|
145
|
+
# For composite indexes, this is always 2 or more fields.
|
|
146
|
+
# The last field entry is always for the field path `__name__`. If, on
|
|
147
|
+
# creation, `__name__` was not specified as the last field, it will be added
|
|
148
|
+
# automatically with the same direction as that of the last field defined. If
|
|
149
|
+
# the final field in a composite index is not directional, the `__name__`
|
|
150
|
+
# will be ordered ASCENDING (unless explicitly specified).
|
|
151
|
+
# For single field indexes, this will always be exactly one entry with a
|
|
152
|
+
# field path equal to the field path of the associated field.
|
|
153
|
+
# Corresponds to the JSON property `fields`
|
|
154
|
+
# @return [Array<Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexField>]
|
|
155
|
+
attr_accessor :fields
|
|
156
|
+
|
|
157
|
+
# Output only.
|
|
158
|
+
# A server defined name for this index.
|
|
159
|
+
# The form of this name for composite indexes will be:
|
|
160
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
|
161
|
+
# /indexes/`composite_index_id``
|
|
162
|
+
# For single field indexes, this field will be empty.
|
|
163
|
+
# Corresponds to the JSON property `name`
|
|
164
|
+
# @return [String]
|
|
165
|
+
attr_accessor :name
|
|
166
|
+
|
|
167
|
+
# Indexes with a collection query scope specified allow queries
|
|
168
|
+
# against a collection that is the child of a specific document, specified at
|
|
169
|
+
# query time, and that has the same collection id.
|
|
170
|
+
# Indexes with a collection group query scope specified allow queries against
|
|
171
|
+
# all collections descended from a specific document, specified at query
|
|
172
|
+
# time, and that have the same collection id as this index.
|
|
173
|
+
# Corresponds to the JSON property `queryScope`
|
|
174
|
+
# @return [String]
|
|
175
|
+
attr_accessor :query_scope
|
|
176
|
+
|
|
177
|
+
# Output only.
|
|
178
|
+
# The serving state of the index.
|
|
179
|
+
# Corresponds to the JSON property `state`
|
|
180
|
+
# @return [String]
|
|
181
|
+
attr_accessor :state
|
|
182
|
+
|
|
183
|
+
def initialize(**args)
|
|
184
|
+
update!(**args)
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Update properties of this object
|
|
188
|
+
def update!(**args)
|
|
189
|
+
@fields = args[:fields] if args.key?(:fields)
|
|
190
|
+
@name = args[:name] if args.key?(:name)
|
|
191
|
+
@query_scope = args[:query_scope] if args.key?(:query_scope)
|
|
192
|
+
@state = args[:state] if args.key?(:state)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# The index configuration for this field.
|
|
197
|
+
class GoogleFirestoreAdminV1beta2IndexConfig
|
|
198
|
+
include Google::Apis::Core::Hashable
|
|
199
|
+
|
|
200
|
+
# Output only.
|
|
201
|
+
# Specifies the resource name of the `Field` from which this field's
|
|
202
|
+
# index configuration is set (when `uses_ancestor_config` is true),
|
|
203
|
+
# or from which it *would* be set if this field had no index configuration
|
|
204
|
+
# (when `uses_ancestor_config` is false).
|
|
205
|
+
# Corresponds to the JSON property `ancestorField`
|
|
206
|
+
# @return [String]
|
|
207
|
+
attr_accessor :ancestor_field
|
|
208
|
+
|
|
209
|
+
# The indexes supported for this field.
|
|
210
|
+
# Corresponds to the JSON property `indexes`
|
|
211
|
+
# @return [Array<Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index>]
|
|
212
|
+
attr_accessor :indexes
|
|
213
|
+
|
|
214
|
+
# Output only
|
|
215
|
+
# When true, the `Field`'s index configuration is in the process of being
|
|
216
|
+
# reverted. Once complete, the index config will transition to the same
|
|
217
|
+
# state as the field specified by `ancestor_field`, at which point
|
|
218
|
+
# `uses_ancestor_config` will be `true` and `reverting` will be `false`.
|
|
219
|
+
# Corresponds to the JSON property `reverting`
|
|
220
|
+
# @return [Boolean]
|
|
221
|
+
attr_accessor :reverting
|
|
222
|
+
alias_method :reverting?, :reverting
|
|
223
|
+
|
|
224
|
+
# Output only.
|
|
225
|
+
# When true, the `Field`'s index configuration is set from the
|
|
226
|
+
# configuration specified by the `ancestor_field`.
|
|
227
|
+
# When false, the `Field`'s index configuration is defined explicitly.
|
|
228
|
+
# Corresponds to the JSON property `usesAncestorConfig`
|
|
229
|
+
# @return [Boolean]
|
|
230
|
+
attr_accessor :uses_ancestor_config
|
|
231
|
+
alias_method :uses_ancestor_config?, :uses_ancestor_config
|
|
232
|
+
|
|
233
|
+
def initialize(**args)
|
|
234
|
+
update!(**args)
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Update properties of this object
|
|
238
|
+
def update!(**args)
|
|
239
|
+
@ancestor_field = args[:ancestor_field] if args.key?(:ancestor_field)
|
|
240
|
+
@indexes = args[:indexes] if args.key?(:indexes)
|
|
241
|
+
@reverting = args[:reverting] if args.key?(:reverting)
|
|
242
|
+
@uses_ancestor_config = args[:uses_ancestor_config] if args.key?(:uses_ancestor_config)
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Information about an index configuration change.
|
|
247
|
+
class GoogleFirestoreAdminV1beta2IndexConfigDelta
|
|
248
|
+
include Google::Apis::Core::Hashable
|
|
249
|
+
|
|
250
|
+
# Specifies how the index is changing.
|
|
251
|
+
# Corresponds to the JSON property `changeType`
|
|
252
|
+
# @return [String]
|
|
253
|
+
attr_accessor :change_type
|
|
254
|
+
|
|
255
|
+
# Cloud Firestore indexes enable simple and complex queries against
|
|
256
|
+
# documents in a database.
|
|
257
|
+
# Corresponds to the JSON property `index`
|
|
258
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index]
|
|
259
|
+
attr_accessor :index
|
|
260
|
+
|
|
261
|
+
def initialize(**args)
|
|
262
|
+
update!(**args)
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Update properties of this object
|
|
266
|
+
def update!(**args)
|
|
267
|
+
@change_type = args[:change_type] if args.key?(:change_type)
|
|
268
|
+
@index = args[:index] if args.key?(:index)
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# A field in an index.
|
|
273
|
+
# The field_path describes which field is indexed, the value_mode describes
|
|
274
|
+
# how the field value is indexed.
|
|
275
|
+
class GoogleFirestoreAdminV1beta2IndexField
|
|
276
|
+
include Google::Apis::Core::Hashable
|
|
277
|
+
|
|
278
|
+
# Indicates that this field supports operations on `array_value`s.
|
|
279
|
+
# Corresponds to the JSON property `arrayConfig`
|
|
280
|
+
# @return [String]
|
|
281
|
+
attr_accessor :array_config
|
|
282
|
+
|
|
283
|
+
# Can be __name__.
|
|
284
|
+
# For single field indexes, this must match the name of the field or may
|
|
285
|
+
# be omitted.
|
|
286
|
+
# Corresponds to the JSON property `fieldPath`
|
|
287
|
+
# @return [String]
|
|
288
|
+
attr_accessor :field_path
|
|
289
|
+
|
|
290
|
+
# Indicates that this field supports ordering by the specified order or
|
|
291
|
+
# comparing using =, <, <=, >, >=.
|
|
292
|
+
# Corresponds to the JSON property `order`
|
|
293
|
+
# @return [String]
|
|
294
|
+
attr_accessor :order
|
|
295
|
+
|
|
296
|
+
def initialize(**args)
|
|
297
|
+
update!(**args)
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Update properties of this object
|
|
301
|
+
def update!(**args)
|
|
302
|
+
@array_config = args[:array_config] if args.key?(:array_config)
|
|
303
|
+
@field_path = args[:field_path] if args.key?(:field_path)
|
|
304
|
+
@order = args[:order] if args.key?(:order)
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# The response for FirestoreAdmin.ListFields.
|
|
309
|
+
class GoogleFirestoreAdminV1beta2ListFieldsResponse
|
|
310
|
+
include Google::Apis::Core::Hashable
|
|
311
|
+
|
|
312
|
+
# The requested fields.
|
|
313
|
+
# Corresponds to the JSON property `fields`
|
|
314
|
+
# @return [Array<Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Field>]
|
|
315
|
+
attr_accessor :fields
|
|
316
|
+
|
|
317
|
+
# A page token that may be used to request another page of results. If blank,
|
|
318
|
+
# this is the last page.
|
|
319
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
320
|
+
# @return [String]
|
|
321
|
+
attr_accessor :next_page_token
|
|
322
|
+
|
|
323
|
+
def initialize(**args)
|
|
324
|
+
update!(**args)
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Update properties of this object
|
|
328
|
+
def update!(**args)
|
|
329
|
+
@fields = args[:fields] if args.key?(:fields)
|
|
330
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Describes the progress of the operation.
|
|
335
|
+
# Unit of work is generic and must be interpreted based on where Progress
|
|
336
|
+
# is used.
|
|
337
|
+
class GoogleFirestoreAdminV1beta2Progress
|
|
338
|
+
include Google::Apis::Core::Hashable
|
|
339
|
+
|
|
340
|
+
# The amount of work completed.
|
|
341
|
+
# Corresponds to the JSON property `completedWork`
|
|
342
|
+
# @return [Fixnum]
|
|
343
|
+
attr_accessor :completed_work
|
|
344
|
+
|
|
345
|
+
# The amount of work estimated.
|
|
346
|
+
# Corresponds to the JSON property `estimatedWork`
|
|
347
|
+
# @return [Fixnum]
|
|
348
|
+
attr_accessor :estimated_work
|
|
349
|
+
|
|
350
|
+
def initialize(**args)
|
|
351
|
+
update!(**args)
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Update properties of this object
|
|
355
|
+
def update!(**args)
|
|
356
|
+
@completed_work = args[:completed_work] if args.key?(:completed_work)
|
|
357
|
+
@estimated_work = args[:estimated_work] if args.key?(:estimated_work)
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# This resource represents a long-running operation that is the result of a
|
|
362
|
+
# network API call.
|
|
363
|
+
class GoogleLongrunningOperation
|
|
364
|
+
include Google::Apis::Core::Hashable
|
|
365
|
+
|
|
366
|
+
# If the value is `false`, it means the operation is still in progress.
|
|
367
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
|
368
|
+
# available.
|
|
369
|
+
# Corresponds to the JSON property `done`
|
|
370
|
+
# @return [Boolean]
|
|
371
|
+
attr_accessor :done
|
|
372
|
+
alias_method :done?, :done
|
|
373
|
+
|
|
374
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
375
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
376
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
377
|
+
# - Simple to use and understand for most users
|
|
378
|
+
# - Flexible enough to meet unexpected needs
|
|
379
|
+
# # Overview
|
|
380
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
381
|
+
# and error details. The error code should be an enum value of
|
|
382
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
383
|
+
# error message should be a developer-facing English message that helps
|
|
384
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
385
|
+
# error message is needed, put the localized message in the error details or
|
|
386
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
387
|
+
# information about the error. There is a predefined set of error detail types
|
|
388
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
389
|
+
# # Language mapping
|
|
390
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
391
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
392
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
393
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
394
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
395
|
+
# # Other uses
|
|
396
|
+
# The error model and the `Status` message can be used in a variety of
|
|
397
|
+
# environments, either with or without APIs, to provide a
|
|
398
|
+
# consistent developer experience across different environments.
|
|
399
|
+
# Example uses of this error model include:
|
|
400
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
401
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
402
|
+
# errors.
|
|
403
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
404
|
+
# have a `Status` message for error reporting.
|
|
405
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
406
|
+
# `Status` message should be used directly inside batch response, one for
|
|
407
|
+
# each error sub-response.
|
|
408
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
409
|
+
# results in its response, the status of those operations should be
|
|
410
|
+
# represented directly using the `Status` message.
|
|
411
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
412
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
413
|
+
# Corresponds to the JSON property `error`
|
|
414
|
+
# @return [Google::Apis::FirestoreV1beta2::Status]
|
|
415
|
+
attr_accessor :error
|
|
416
|
+
|
|
417
|
+
# Service-specific metadata associated with the operation. It typically
|
|
418
|
+
# contains progress information and common metadata such as create time.
|
|
419
|
+
# Some services might not provide such metadata. Any method that returns a
|
|
420
|
+
# long-running operation should document the metadata type, if any.
|
|
421
|
+
# Corresponds to the JSON property `metadata`
|
|
422
|
+
# @return [Hash<String,Object>]
|
|
423
|
+
attr_accessor :metadata
|
|
424
|
+
|
|
425
|
+
# The server-assigned name, which is only unique within the same service that
|
|
426
|
+
# originally returns it. If you use the default HTTP mapping, the
|
|
427
|
+
# `name` should have the format of `operations/some/unique/name`.
|
|
428
|
+
# Corresponds to the JSON property `name`
|
|
429
|
+
# @return [String]
|
|
430
|
+
attr_accessor :name
|
|
431
|
+
|
|
432
|
+
# The normal response of the operation in case of success. If the original
|
|
433
|
+
# method returns no data on success, such as `Delete`, the response is
|
|
434
|
+
# `google.protobuf.Empty`. If the original method is standard
|
|
435
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
436
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
437
|
+
# is the original method name. For example, if the original method name
|
|
438
|
+
# is `TakeSnapshot()`, the inferred response type is
|
|
439
|
+
# `TakeSnapshotResponse`.
|
|
440
|
+
# Corresponds to the JSON property `response`
|
|
441
|
+
# @return [Hash<String,Object>]
|
|
442
|
+
attr_accessor :response
|
|
443
|
+
|
|
444
|
+
def initialize(**args)
|
|
445
|
+
update!(**args)
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# Update properties of this object
|
|
449
|
+
def update!(**args)
|
|
450
|
+
@done = args[:done] if args.key?(:done)
|
|
451
|
+
@error = args[:error] if args.key?(:error)
|
|
452
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
453
|
+
@name = args[:name] if args.key?(:name)
|
|
454
|
+
@response = args[:response] if args.key?(:response)
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
459
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
460
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
461
|
+
# - Simple to use and understand for most users
|
|
462
|
+
# - Flexible enough to meet unexpected needs
|
|
463
|
+
# # Overview
|
|
464
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
465
|
+
# and error details. The error code should be an enum value of
|
|
466
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
467
|
+
# error message should be a developer-facing English message that helps
|
|
468
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
469
|
+
# error message is needed, put the localized message in the error details or
|
|
470
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
471
|
+
# information about the error. There is a predefined set of error detail types
|
|
472
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
473
|
+
# # Language mapping
|
|
474
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
475
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
476
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
477
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
478
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
479
|
+
# # Other uses
|
|
480
|
+
# The error model and the `Status` message can be used in a variety of
|
|
481
|
+
# environments, either with or without APIs, to provide a
|
|
482
|
+
# consistent developer experience across different environments.
|
|
483
|
+
# Example uses of this error model include:
|
|
484
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
485
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
486
|
+
# errors.
|
|
487
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
488
|
+
# have a `Status` message for error reporting.
|
|
489
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
490
|
+
# `Status` message should be used directly inside batch response, one for
|
|
491
|
+
# each error sub-response.
|
|
492
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
493
|
+
# results in its response, the status of those operations should be
|
|
494
|
+
# represented directly using the `Status` message.
|
|
495
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
496
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
497
|
+
class Status
|
|
498
|
+
include Google::Apis::Core::Hashable
|
|
499
|
+
|
|
500
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
501
|
+
# Corresponds to the JSON property `code`
|
|
502
|
+
# @return [Fixnum]
|
|
503
|
+
attr_accessor :code
|
|
504
|
+
|
|
505
|
+
# A list of messages that carry the error details. There is a common set of
|
|
506
|
+
# message types for APIs to use.
|
|
507
|
+
# Corresponds to the JSON property `details`
|
|
508
|
+
# @return [Array<Hash<String,Object>>]
|
|
509
|
+
attr_accessor :details
|
|
510
|
+
|
|
511
|
+
# A developer-facing error message, which should be in English. Any
|
|
512
|
+
# user-facing error message should be localized and sent in the
|
|
513
|
+
# google.rpc.Status.details field, or localized by the client.
|
|
514
|
+
# Corresponds to the JSON property `message`
|
|
515
|
+
# @return [String]
|
|
516
|
+
attr_accessor :message
|
|
517
|
+
|
|
518
|
+
def initialize(**args)
|
|
519
|
+
update!(**args)
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
# Update properties of this object
|
|
523
|
+
def update!(**args)
|
|
524
|
+
@code = args[:code] if args.key?(:code)
|
|
525
|
+
@details = args[:details] if args.key?(:details)
|
|
526
|
+
@message = args[:message] if args.key?(:message)
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
end
|
|
530
|
+
end
|
|
531
|
+
end
|