google-api-client 0.28.4 → 0.28.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 +5 -5
- data/.kokoro/build.sh +3 -5
- data/.kokoro/continuous/linux.cfg +1 -1
- data/.kokoro/presubmit/linux.cfg +1 -1
- data/CHANGELOG.md +147 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +34 -0
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +755 -0
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +282 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +788 -0
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +46 -30
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +4 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +5 -50
- data/generated/google/apis/admin_directory_v1/representations.rb +0 -2
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +3 -2
- data/generated/google/apis/alertcenter_v1beta1/service.rb +7 -7
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +638 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +248 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +30 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +59 -2
- data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +43 -98
- data/generated/google/apis/appengine_v1/representations.rb +17 -35
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +0 -97
- data/generated/google/apis/appengine_v1alpha/representations.rb +0 -35
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +3 -99
- data/generated/google/apis/appengine_v1beta/representations.rb +0 -35
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +244 -173
- data/generated/google/apis/bigquery_v2/representations.rb +79 -58
- data/generated/google/apis/bigquerydatatransfer_v1.rb +3 -3
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +10 -10
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +38 -6
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +4 -4
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +66 -6
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +17 -0
- data/generated/google/apis/cloudasset_v1.rb +34 -0
- data/generated/google/apis/cloudasset_v1/classes.rb +805 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +263 -0
- data/generated/google/apis/cloudasset_v1/service.rb +190 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +20 -18
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +149 -10
- data/generated/google/apis/cloudbuild_v1/representations.rb +65 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +11 -4
- data/generated/google/apis/cloudfunctions_v1/service.rb +8 -2
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +6 -0
- data/generated/google/apis/cloudidentity_v1.rb +7 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +13 -13
- data/generated/google/apis/cloudidentity_v1/service.rb +6 -15
- data/generated/google/apis/cloudidentity_v1beta1.rb +7 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +10 -10
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +4 -10
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +11 -11
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -3
- data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +35 -0
- data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +358 -0
- data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +123 -0
- data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +486 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +35 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1212 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +399 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1073 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +17 -16
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +14 -15
- 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 +14 -15
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +60 -44
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +5 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +220 -48
- data/generated/google/apis/cloudsearch_v1/representations.rb +91 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +15 -13
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +10 -10
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +17 -10
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/{partners_v2.rb → cloudtasks_v2.rb} +11 -9
- data/generated/google/apis/cloudtasks_v2/classes.rb +1432 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +408 -0
- data/generated/google/apis/cloudtasks_v2/service.rb +856 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +119 -88
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +3 -2
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +122 -90
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +3 -2
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +10 -10
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +21 -15
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +165 -29
- data/generated/google/apis/composer_v1beta1/representations.rb +50 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +7147 -4656
- data/generated/google/apis/compute_alpha/representations.rb +1205 -236
- data/generated/google/apis/compute_alpha/service.rb +4338 -3274
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +5974 -4567
- data/generated/google/apis/compute_beta/representations.rb +846 -283
- data/generated/google/apis/compute_beta/service.rb +4274 -3153
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +325 -50
- data/generated/google/apis/compute_v1/representations.rb +104 -1
- data/generated/google/apis/compute_v1/service.rb +153 -2
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +4 -4
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +7 -0
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/container_v1beta1/service.rb +4 -4
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +25 -17
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +137 -12
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +33 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +204 -93
- data/generated/google/apis/content_v2/representations.rb +49 -0
- data/generated/google/apis/content_v2/service.rb +82 -41
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +360 -209
- data/generated/google/apis/content_v2_1/representations.rb +129 -56
- data/generated/google/apis/content_v2_1/service.rb +97 -10
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +51 -19
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +133 -25
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +20 -15
- data/generated/google/apis/dataproc_v1/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +516 -45
- data/generated/google/apis/dataproc_v1beta2/representations.rb +185 -7
- data/generated/google/apis/dataproc_v1beta2/service.rb +575 -6
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +3 -3
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +126 -77
- data/generated/google/apis/dialogflow_v2/service.rb +40 -24
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +126 -77
- data/generated/google/apis/dialogflow_v2beta1/service.rb +40 -24
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +44 -41
- data/generated/google/apis/dlp_v2/representations.rb +12 -0
- data/generated/google/apis/dlp_v2/service.rb +35 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +163 -190
- data/generated/google/apis/dns_v1/representations.rb +34 -0
- data/generated/google/apis/dns_v1/service.rb +15 -110
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +117 -248
- data/generated/google/apis/dns_v1beta2/service.rb +21 -141
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +163 -190
- data/generated/google/apis/dns_v2beta1/representations.rb +34 -0
- data/generated/google/apis/dns_v2beta1/service.rb +15 -110
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +118 -47
- data/generated/google/apis/docs_v1/representations.rb +39 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +3 -2
- data/generated/google/apis/factchecktools_v1alpha1.rb +34 -0
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +459 -0
- data/generated/google/apis/factchecktools_v1alpha1/representations.rb +207 -0
- data/generated/google/apis/factchecktools_v1alpha1/service.rb +300 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +203 -10
- data/generated/google/apis/file_v1/representations.rb +70 -0
- data/generated/google/apis/file_v1/service.rb +190 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +10 -10
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +13 -10
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/service.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +3 -0
- data/generated/google/apis/fitness_v1/service.rb +1 -45
- data/generated/google/apis/games_management_v1management.rb +2 -2
- data/generated/google/apis/games_v1.rb +2 -2
- data/generated/google/apis/genomics_v1.rb +1 -10
- data/generated/google/apis/genomics_v1/classes.rb +190 -3321
- data/generated/google/apis/genomics_v1/representations.rb +128 -1265
- data/generated/google/apis/genomics_v1/service.rb +75 -1982
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +11 -51
- data/generated/google/apis/genomics_v1alpha2/representations.rb +0 -26
- data/generated/google/apis/genomics_v1alpha2/service.rb +1 -2
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +19 -58
- data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -26
- data/generated/google/apis/genomics_v2alpha1/service.rb +1 -2
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +126 -1
- data/generated/google/apis/groupssettings_v1/representations.rb +18 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -1
- data/generated/google/apis/iam_v1/representations.rb +67 -0
- data/generated/google/apis/iam_v1/service.rb +198 -5
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +8 -4
- data/generated/google/apis/iamcredentials_v1/service.rb +10 -5
- 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_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +7 -9
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +11 -11
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +5 -5
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +5 -5
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +5 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -3
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +2 -3
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +158 -36
- data/generated/google/apis/ml_v1/representations.rb +23 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +8 -7
- data/generated/google/apis/monitoring_v3/service.rb +6 -1
- data/generated/google/apis/oauth2_v1.rb +2 -5
- data/generated/google/apis/oauth2_v1/classes.rb +0 -124
- data/generated/google/apis/oauth2_v1/representations.rb +0 -62
- data/generated/google/apis/oauth2_v1/service.rb +0 -159
- data/generated/google/apis/oauth2_v2.rb +2 -5
- data/generated/google/apis/people_v1.rb +3 -3
- data/generated/google/apis/people_v1/classes.rb +19 -18
- data/generated/google/apis/people_v1/service.rb +4 -0
- data/generated/google/apis/plus_domains_v1.rb +3 -3
- data/generated/google/apis/plus_v1.rb +3 -3
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +5 -4
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +53 -38
- data/generated/google/apis/pubsub_v1/representations.rb +16 -0
- data/generated/google/apis/pubsub_v1/service.rb +6 -29
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +45 -1
- data/generated/google/apis/pubsub_v1beta2/representations.rb +16 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +0 -10
- data/generated/google/apis/redis_v1beta1/representations.rb +0 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +42 -28
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +2 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +42 -28
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +2 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +52 -38
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +2 -0
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +32 -39
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +10 -10
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +25 -24
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +0 -6
- data/generated/google/apis/script_v1/representations.rb +0 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +73 -151
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +48 -50
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +108 -24
- data/generated/google/apis/servicecontrol_v1/representations.rb +45 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +35 -113
- data/generated/google/apis/servicemanagement_v1/service.rb +6 -3
- data/generated/google/apis/servicenetworking_v1.rb +38 -0
- data/generated/google/apis/servicenetworking_v1/classes.rb +3591 -0
- data/generated/google/apis/servicenetworking_v1/representations.rb +1082 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +440 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -110
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +33 -150
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +34 -190
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +115 -26
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2 -2
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +171 -0
- data/generated/google/apis/spanner_v1/representations.rb +49 -0
- data/generated/google/apis/spanner_v1/service.rb +51 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +107 -10
- data/generated/google/apis/speech_v1/representations.rb +24 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +16 -10
- data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +11 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +57 -4
- data/generated/google/apis/storage_v1/representations.rb +19 -1
- data/generated/google/apis/storagetransfer_v1.rb +2 -2
- data/generated/google/apis/storagetransfer_v1/classes.rb +28 -21
- data/generated/google/apis/storagetransfer_v1/service.rb +4 -4
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -26
- data/generated/google/apis/streetviewpublish_v1/service.rb +27 -31
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/service.rb +0 -46
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v2/classes.rb +197 -292
- data/generated/google/apis/tagmanager_v2/representations.rb +62 -103
- data/generated/google/apis/tagmanager_v2/service.rb +219 -181
- data/generated/google/apis/tasks_v1.rb +2 -2
- data/generated/google/apis/tasks_v1/service.rb +5 -5
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +13 -13
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +92 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +47 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +10 -10
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -10
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +7 -0
- data/generated/google/apis/vault_v1/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1.rb +3 -2
- data/generated/google/apis/videointelligence_v1/classes.rb +2193 -350
- data/generated/google/apis/videointelligence_v1/representations.rb +805 -6
- data/generated/google/apis/videointelligence_v1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2448 -605
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +806 -7
- data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +2422 -579
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +806 -7
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p2beta1.rb +3 -2
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2645 -830
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +796 -12
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p3beta1.rb +36 -0
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +4687 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +2005 -0
- data/generated/google/apis/videointelligence_v1p3beta1/service.rb +94 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1977 -40
- data/generated/google/apis/vision_v1/representations.rb +833 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1972 -35
- data/generated/google/apis/vision_v1p1beta1/representations.rb +833 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1972 -35
- data/generated/google/apis/vision_v1p2beta1/representations.rb +833 -0
- data/generated/google/apis/websecurityscanner_v1beta.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +973 -0
- data/generated/google/apis/websecurityscanner_v1beta/representations.rb +452 -0
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +548 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/core/http_command.rb +1 -0
- data/lib/google/apis/generator/model.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +39 -8
- data/generated/google/apis/partners_v2/classes.rb +0 -2260
- data/generated/google/apis/partners_v2/representations.rb +0 -905
- data/generated/google/apis/partners_v2/service.rb +0 -1077
|
@@ -256,6 +256,36 @@ module Google
|
|
|
256
256
|
include Google::Apis::Core::JsonObjectSupport
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
+
class GmailActionRestrict
|
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
261
|
+
|
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
class GmailAttachmentRestrict
|
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
267
|
+
|
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
class GmailFolderRestrict
|
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
273
|
+
|
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
class GmailIntelligentRestrict
|
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
279
|
+
|
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
class GmailTimeRestrict
|
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
285
|
+
|
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
287
|
+
end
|
|
288
|
+
|
|
259
289
|
class HtmlOperatorOptions
|
|
260
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
261
291
|
|
|
@@ -274,6 +304,12 @@ module Google
|
|
|
274
304
|
include Google::Apis::Core::JsonObjectSupport
|
|
275
305
|
end
|
|
276
306
|
|
|
307
|
+
class IndexItemOptions
|
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
309
|
+
|
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
311
|
+
end
|
|
312
|
+
|
|
277
313
|
class IndexItemRequest
|
|
278
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
279
315
|
|
|
@@ -1098,6 +1134,7 @@ module Google
|
|
|
1098
1134
|
class FacetOptions
|
|
1099
1135
|
# @private
|
|
1100
1136
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1137
|
+
property :num_facet_buckets, as: 'numFacetBuckets'
|
|
1101
1138
|
property :object_type, as: 'objectType'
|
|
1102
1139
|
property :operator_name, as: 'operatorName'
|
|
1103
1140
|
property :source_name, as: 'sourceName'
|
|
@@ -1175,6 +1212,41 @@ module Google
|
|
|
1175
1212
|
end
|
|
1176
1213
|
end
|
|
1177
1214
|
|
|
1215
|
+
class GmailActionRestrict
|
|
1216
|
+
# @private
|
|
1217
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1218
|
+
property :type, as: 'type'
|
|
1219
|
+
end
|
|
1220
|
+
end
|
|
1221
|
+
|
|
1222
|
+
class GmailAttachmentRestrict
|
|
1223
|
+
# @private
|
|
1224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1225
|
+
property :type, as: 'type'
|
|
1226
|
+
end
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
class GmailFolderRestrict
|
|
1230
|
+
# @private
|
|
1231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1232
|
+
property :type, as: 'type'
|
|
1233
|
+
end
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
class GmailIntelligentRestrict
|
|
1237
|
+
# @private
|
|
1238
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1239
|
+
property :type, as: 'type'
|
|
1240
|
+
end
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
class GmailTimeRestrict
|
|
1244
|
+
# @private
|
|
1245
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1246
|
+
property :type, as: 'type'
|
|
1247
|
+
end
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1178
1250
|
class HtmlOperatorOptions
|
|
1179
1251
|
# @private
|
|
1180
1252
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1199,12 +1271,21 @@ module Google
|
|
|
1199
1271
|
end
|
|
1200
1272
|
end
|
|
1201
1273
|
|
|
1274
|
+
class IndexItemOptions
|
|
1275
|
+
# @private
|
|
1276
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1277
|
+
property :allow_unknown_gsuite_principals, as: 'allowUnknownGsuitePrincipals'
|
|
1278
|
+
end
|
|
1279
|
+
end
|
|
1280
|
+
|
|
1202
1281
|
class IndexItemRequest
|
|
1203
1282
|
# @private
|
|
1204
1283
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1205
1284
|
property :connector_name, as: 'connectorName'
|
|
1206
1285
|
property :debug_options, as: 'debugOptions', class: Google::Apis::CloudsearchV1::DebugOptions, decorator: Google::Apis::CloudsearchV1::DebugOptions::Representation
|
|
1207
1286
|
|
|
1287
|
+
property :index_item_options, as: 'indexItemOptions', class: Google::Apis::CloudsearchV1::IndexItemOptions, decorator: Google::Apis::CloudsearchV1::IndexItemOptions::Representation
|
|
1288
|
+
|
|
1208
1289
|
property :item, as: 'item', class: Google::Apis::CloudsearchV1::Item, decorator: Google::Apis::CloudsearchV1::Item::Representation
|
|
1209
1290
|
|
|
1210
1291
|
property :mode, as: 'mode'
|
|
@@ -1760,6 +1841,16 @@ module Google
|
|
|
1760
1841
|
|
|
1761
1842
|
property :drive_time_span_restrict, as: 'driveTimeSpanRestrict', class: Google::Apis::CloudsearchV1::DriveTimeSpanRestrict, decorator: Google::Apis::CloudsearchV1::DriveTimeSpanRestrict::Representation
|
|
1762
1843
|
|
|
1844
|
+
property :gmail_action_restrict, as: 'gmailActionRestrict', class: Google::Apis::CloudsearchV1::GmailActionRestrict, decorator: Google::Apis::CloudsearchV1::GmailActionRestrict::Representation
|
|
1845
|
+
|
|
1846
|
+
property :gmail_attachment_restrict, as: 'gmailAttachmentRestrict', class: Google::Apis::CloudsearchV1::GmailAttachmentRestrict, decorator: Google::Apis::CloudsearchV1::GmailAttachmentRestrict::Representation
|
|
1847
|
+
|
|
1848
|
+
property :gmail_folder_restrict, as: 'gmailFolderRestrict', class: Google::Apis::CloudsearchV1::GmailFolderRestrict, decorator: Google::Apis::CloudsearchV1::GmailFolderRestrict::Representation
|
|
1849
|
+
|
|
1850
|
+
property :gmail_intelligent_restrict, as: 'gmailIntelligentRestrict', class: Google::Apis::CloudsearchV1::GmailIntelligentRestrict, decorator: Google::Apis::CloudsearchV1::GmailIntelligentRestrict::Representation
|
|
1851
|
+
|
|
1852
|
+
property :gmail_time_restrict, as: 'gmailTimeRestrict', class: Google::Apis::CloudsearchV1::GmailTimeRestrict, decorator: Google::Apis::CloudsearchV1::GmailTimeRestrict::Representation
|
|
1853
|
+
|
|
1763
1854
|
property :search_operator, as: 'searchOperator'
|
|
1764
1855
|
end
|
|
1765
1856
|
end
|
|
@@ -717,8 +717,8 @@ module Google
|
|
|
717
717
|
# inline within
|
|
718
718
|
# update.
|
|
719
719
|
# @param [String] name
|
|
720
|
-
# Name of the
|
|
721
|
-
# Format: datasources/`source_id
|
|
720
|
+
# Name of the Item to start a resumable upload.
|
|
721
|
+
# Format: datasources/`source_id`/items/`item_id`.
|
|
722
722
|
# @param [Google::Apis::CloudsearchV1::StartUploadItemRequest] start_upload_item_request_object
|
|
723
723
|
# @param [String] fields
|
|
724
724
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -949,7 +949,7 @@ module Google
|
|
|
949
949
|
execute_or_queue_command(command, &block)
|
|
950
950
|
end
|
|
951
951
|
|
|
952
|
-
# Creates
|
|
952
|
+
# Creates a datasource.
|
|
953
953
|
# @param [Google::Apis::CloudsearchV1::DataSource] data_source_object
|
|
954
954
|
# @param [String] fields
|
|
955
955
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -979,9 +979,9 @@ module Google
|
|
|
979
979
|
execute_or_queue_command(command, &block)
|
|
980
980
|
end
|
|
981
981
|
|
|
982
|
-
# Deletes a
|
|
982
|
+
# Deletes a datasource.
|
|
983
983
|
# @param [String] name
|
|
984
|
-
# Name of the
|
|
984
|
+
# Name of the datasource.
|
|
985
985
|
# Format: datasources/`source_id`.
|
|
986
986
|
# @param [Boolean] debug_options_enable_debugging
|
|
987
987
|
# If set, the request will enable debugging features of Cloud Search.
|
|
@@ -1014,9 +1014,9 @@ module Google
|
|
|
1014
1014
|
execute_or_queue_command(command, &block)
|
|
1015
1015
|
end
|
|
1016
1016
|
|
|
1017
|
-
# Gets a
|
|
1017
|
+
# Gets a datasource.
|
|
1018
1018
|
# @param [String] name
|
|
1019
|
-
# Name of the
|
|
1019
|
+
# Name of the datasource resource.
|
|
1020
1020
|
# Format: datasources/`source_id`.
|
|
1021
1021
|
# @param [Boolean] debug_options_enable_debugging
|
|
1022
1022
|
# If set, the request will enable debugging features of Cloud Search.
|
|
@@ -1049,12 +1049,12 @@ module Google
|
|
|
1049
1049
|
execute_or_queue_command(command, &block)
|
|
1050
1050
|
end
|
|
1051
1051
|
|
|
1052
|
-
# Lists
|
|
1052
|
+
# Lists datasources.
|
|
1053
1053
|
# @param [Boolean] debug_options_enable_debugging
|
|
1054
1054
|
# If set, the request will enable debugging features of Cloud Search.
|
|
1055
1055
|
# Only turn on this field, if asked by Google to help with debugging.
|
|
1056
1056
|
# @param [Fixnum] page_size
|
|
1057
|
-
# Maximum number of
|
|
1057
|
+
# Maximum number of datasources to fetch in a request.
|
|
1058
1058
|
# The max value is 100.
|
|
1059
1059
|
# <br />The default value is 10
|
|
1060
1060
|
# @param [String] page_token
|
|
@@ -1088,11 +1088,11 @@ module Google
|
|
|
1088
1088
|
execute_or_queue_command(command, &block)
|
|
1089
1089
|
end
|
|
1090
1090
|
|
|
1091
|
-
# Updates a
|
|
1091
|
+
# Updates a datasource.
|
|
1092
1092
|
# @param [String] name
|
|
1093
|
-
# Name of the
|
|
1093
|
+
# Name of the datasource resource.
|
|
1094
1094
|
# Format: datasources/`source_id`.
|
|
1095
|
-
# <br />The name is ignored when creating a
|
|
1095
|
+
# <br />The name is ignored when creating a datasource.
|
|
1096
1096
|
# @param [Google::Apis::CloudsearchV1::UpdateDataSourceRequest] update_data_source_request_object
|
|
1097
1097
|
# @param [String] fields
|
|
1098
1098
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1330,7 +1330,9 @@ module Google
|
|
|
1330
1330
|
execute_or_queue_command(command, &block)
|
|
1331
1331
|
end
|
|
1332
1332
|
|
|
1333
|
-
# Gets indexed item statistics aggreggated across all data sources.
|
|
1333
|
+
# Gets indexed item statistics aggreggated across all data sources. This
|
|
1334
|
+
# API only returns statistics for previous dates; it doesn't return
|
|
1335
|
+
# statistics for the current day.
|
|
1334
1336
|
# @param [Fixnum] from_date_day
|
|
1335
1337
|
# Day of month. Must be from 1 to 31 and valid for the year and month.
|
|
1336
1338
|
# @param [Fixnum] from_date_month
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/shell/docs/
|
|
27
27
|
module CloudshellV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20190318'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -168,14 +168,14 @@ module Google
|
|
|
168
168
|
attr_accessor :done
|
|
169
169
|
alias_method :done?, :done
|
|
170
170
|
|
|
171
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
172
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
173
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
171
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
172
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
173
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
174
174
|
# - Simple to use and understand for most users
|
|
175
175
|
# - Flexible enough to meet unexpected needs
|
|
176
176
|
# # Overview
|
|
177
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
178
|
-
# and error details. The error code should be an enum value of
|
|
177
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
178
|
+
# message, and error details. The error code should be an enum value of
|
|
179
179
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
180
180
|
# error message should be a developer-facing English message that helps
|
|
181
181
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -333,14 +333,14 @@ module Google
|
|
|
333
333
|
end
|
|
334
334
|
end
|
|
335
335
|
|
|
336
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
337
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
338
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
336
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
337
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
338
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
339
339
|
# - Simple to use and understand for most users
|
|
340
340
|
# - Flexible enough to meet unexpected needs
|
|
341
341
|
# # Overview
|
|
342
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
343
|
-
# and error details. The error code should be an enum value of
|
|
342
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
343
|
+
# message, and error details. The error code should be an enum value of
|
|
344
344
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
345
345
|
# error message should be a developer-facing English message that helps
|
|
346
346
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/shell/docs/
|
|
27
27
|
module CloudshellV1alpha1
|
|
28
28
|
VERSION = 'V1alpha1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20190318'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -31,6 +31,12 @@ module Google
|
|
|
31
31
|
# @return [String]
|
|
32
32
|
attr_accessor :access_token
|
|
33
33
|
|
|
34
|
+
# The time when the token expires. If not set, defaults to one hour from when
|
|
35
|
+
# the server received the request.
|
|
36
|
+
# Corresponds to the JSON property `expireTime`
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :expire_time
|
|
39
|
+
|
|
34
40
|
def initialize(**args)
|
|
35
41
|
update!(**args)
|
|
36
42
|
end
|
|
@@ -38,6 +44,7 @@ module Google
|
|
|
38
44
|
# Update properties of this object
|
|
39
45
|
def update!(**args)
|
|
40
46
|
@access_token = args[:access_token] if args.key?(:access_token)
|
|
47
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
41
48
|
end
|
|
42
49
|
end
|
|
43
50
|
|
|
@@ -168,14 +175,14 @@ module Google
|
|
|
168
175
|
attr_accessor :done
|
|
169
176
|
alias_method :done?, :done
|
|
170
177
|
|
|
171
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
172
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
173
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
178
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
179
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
180
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
174
181
|
# - Simple to use and understand for most users
|
|
175
182
|
# - Flexible enough to meet unexpected needs
|
|
176
183
|
# # Overview
|
|
177
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
178
|
-
# and error details. The error code should be an enum value of
|
|
184
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
185
|
+
# message, and error details. The error code should be an enum value of
|
|
179
186
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
180
187
|
# error message should be a developer-facing English message that helps
|
|
181
188
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -355,14 +362,14 @@ module Google
|
|
|
355
362
|
end
|
|
356
363
|
end
|
|
357
364
|
|
|
358
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
359
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
360
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
365
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
366
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
367
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
361
368
|
# - Simple to use and understand for most users
|
|
362
369
|
# - Flexible enough to meet unexpected needs
|
|
363
370
|
# # Overview
|
|
364
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
365
|
-
# and error details. The error code should be an enum value of
|
|
371
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
372
|
+
# message, and error details. The error code should be an enum value of
|
|
366
373
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
367
374
|
# error message should be a developer-facing English message that helps
|
|
368
375
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -12,21 +12,23 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
require 'google/apis/
|
|
16
|
-
require 'google/apis/
|
|
17
|
-
require 'google/apis/
|
|
15
|
+
require 'google/apis/cloudtasks_v2/service.rb'
|
|
16
|
+
require 'google/apis/cloudtasks_v2/classes.rb'
|
|
17
|
+
require 'google/apis/cloudtasks_v2/representations.rb'
|
|
18
18
|
|
|
19
19
|
module Google
|
|
20
20
|
module Apis
|
|
21
|
-
#
|
|
21
|
+
# Cloud Tasks API
|
|
22
22
|
#
|
|
23
|
-
#
|
|
24
|
-
# audits the usage of clients.
|
|
23
|
+
# Manages the execution of large numbers of distributed requests.
|
|
25
24
|
#
|
|
26
|
-
# @see https://
|
|
27
|
-
module
|
|
25
|
+
# @see https://cloud.google.com/tasks/
|
|
26
|
+
module CloudtasksV2
|
|
28
27
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190314'
|
|
29
|
+
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
30
32
|
end
|
|
31
33
|
end
|
|
32
34
|
end
|
|
@@ -0,0 +1,1432 @@
|
|
|
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 CloudtasksV2
|
|
24
|
+
|
|
25
|
+
# App Engine HTTP request.
|
|
26
|
+
# The message defines the HTTP request that is sent to an App Engine app when
|
|
27
|
+
# the task is dispatched.
|
|
28
|
+
# This proto can only be used for tasks in a queue which has
|
|
29
|
+
# app_engine_http_queue set.
|
|
30
|
+
# Using AppEngineHttpRequest requires
|
|
31
|
+
# [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-
|
|
32
|
+
# api/access-control)
|
|
33
|
+
# Google IAM permission for the project
|
|
34
|
+
# and the following scope:
|
|
35
|
+
# `https://www.googleapis.com/auth/cloud-platform`
|
|
36
|
+
# The task will be delivered to the App Engine app which belongs to the same
|
|
37
|
+
# project as the queue. For more information, see
|
|
38
|
+
# [How Requests are
|
|
39
|
+
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
|
40
|
+
# are-routed)
|
|
41
|
+
# and how routing is affected by
|
|
42
|
+
# [dispatch
|
|
43
|
+
# files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
|
|
44
|
+
# Traffic is encrypted during transport and never leaves Google datacenters.
|
|
45
|
+
# Because this traffic is carried over a communication mechanism internal to
|
|
46
|
+
# Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
|
|
47
|
+
# The request to the handler, however, will appear to have used the HTTP
|
|
48
|
+
# protocol.
|
|
49
|
+
# The AppEngineRouting used to construct the URL that the task is
|
|
50
|
+
# delivered to can be set at the queue-level or task-level:
|
|
51
|
+
# * If set,
|
|
52
|
+
# app_engine_routing_override
|
|
53
|
+
# is used for all tasks in the queue, no matter what the setting
|
|
54
|
+
# is for the
|
|
55
|
+
# task-level app_engine_routing.
|
|
56
|
+
# The `url` that the task will be sent to is:
|
|
57
|
+
# * `url =` host `+`
|
|
58
|
+
# relative_uri
|
|
59
|
+
# Tasks can be dispatched to secure app handlers, unsecure app handlers, and
|
|
60
|
+
# URIs restricted with
|
|
61
|
+
# [`login:
|
|
62
|
+
# admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
|
|
63
|
+
# Because tasks are not run as any user, they cannot be dispatched to URIs
|
|
64
|
+
# restricted with
|
|
65
|
+
# [`login:
|
|
66
|
+
# required`](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
67
|
+
# appref)
|
|
68
|
+
# Task dispatches also do not follow redirects.
|
|
69
|
+
# The task attempt has succeeded if the app's request handler returns
|
|
70
|
+
# an HTTP response code in the range [`200` - `299`]. `503` is
|
|
71
|
+
# considered an App Engine system error instead of an application
|
|
72
|
+
# error. Requests returning error `503` will be retried regardless of
|
|
73
|
+
# retry configuration and not counted against retry counts.
|
|
74
|
+
# Any other response code or a failure to receive a response before the
|
|
75
|
+
# deadline is a failed attempt.
|
|
76
|
+
class AppEngineHttpRequest
|
|
77
|
+
include Google::Apis::Core::Hashable
|
|
78
|
+
|
|
79
|
+
# App Engine Routing.
|
|
80
|
+
# Defines routing characteristics specific to App Engine - service, version,
|
|
81
|
+
# and instance.
|
|
82
|
+
# For more information about services, versions, and instances see
|
|
83
|
+
# [An Overview of App
|
|
84
|
+
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
|
85
|
+
# engine),
|
|
86
|
+
# [Microservices Architecture on Google App
|
|
87
|
+
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
|
88
|
+
# engine),
|
|
89
|
+
# [App Engine Standard request
|
|
90
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
|
91
|
+
# are-routed),
|
|
92
|
+
# and [App Engine Flex request
|
|
93
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
|
94
|
+
# are-routed).
|
|
95
|
+
# Corresponds to the JSON property `appEngineRouting`
|
|
96
|
+
# @return [Google::Apis::CloudtasksV2::AppEngineRouting]
|
|
97
|
+
attr_accessor :app_engine_routing
|
|
98
|
+
|
|
99
|
+
# HTTP request body.
|
|
100
|
+
# A request body is allowed only if the HTTP method is POST or PUT. It is
|
|
101
|
+
# an error to set a body on a task with an incompatible HttpMethod.
|
|
102
|
+
# Corresponds to the JSON property `body`
|
|
103
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
104
|
+
# @return [String]
|
|
105
|
+
attr_accessor :body
|
|
106
|
+
|
|
107
|
+
# HTTP request headers.
|
|
108
|
+
# This map contains the header field names and values.
|
|
109
|
+
# Headers can be set when the
|
|
110
|
+
# task is created.
|
|
111
|
+
# Repeated headers are not supported but a header value can contain commas.
|
|
112
|
+
# Cloud Tasks sets some headers to default values:
|
|
113
|
+
# * `User-Agent`: By default, this header is
|
|
114
|
+
# `"AppEngine-Google; (+http://code.google.com/appengine)"`.
|
|
115
|
+
# This header can be modified, but Cloud Tasks will append
|
|
116
|
+
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
|
|
117
|
+
# modified `User-Agent`.
|
|
118
|
+
# If the task has a body, Cloud
|
|
119
|
+
# Tasks sets the following headers:
|
|
120
|
+
# * `Content-Type`: By default, the `Content-Type` header is set to
|
|
121
|
+
# `"application/octet-stream"`. The default can be overridden by explicitly
|
|
122
|
+
# setting `Content-Type` to a particular media type when the
|
|
123
|
+
# task is created.
|
|
124
|
+
# For example, `Content-Type` can be set to `"application/json"`.
|
|
125
|
+
# * `Content-Length`: This is computed by Cloud Tasks. This value is
|
|
126
|
+
# output only. It cannot be changed.
|
|
127
|
+
# The headers below cannot be set or overridden:
|
|
128
|
+
# * `Host`
|
|
129
|
+
# * `X-Google-*`
|
|
130
|
+
# * `X-AppEngine-*`
|
|
131
|
+
# In addition, Cloud Tasks sets some headers when the task is dispatched,
|
|
132
|
+
# such as headers containing information about the task; see
|
|
133
|
+
# [request
|
|
134
|
+
# headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/
|
|
135
|
+
# creating-handlers#reading_request_headers).
|
|
136
|
+
# These headers are set only when the task is dispatched, so they are not
|
|
137
|
+
# visible when the task is returned in a Cloud Tasks response.
|
|
138
|
+
# Although there is no specific limit for the maximum number of headers or
|
|
139
|
+
# the size, there is a limit on the maximum size of the Task. For more
|
|
140
|
+
# information, see the CreateTask documentation.
|
|
141
|
+
# Corresponds to the JSON property `headers`
|
|
142
|
+
# @return [Hash<String,String>]
|
|
143
|
+
attr_accessor :headers
|
|
144
|
+
|
|
145
|
+
# The HTTP method to use for the request. The default is POST.
|
|
146
|
+
# The app's request handler for the task's target URL must be able to handle
|
|
147
|
+
# HTTP requests with this http_method, otherwise the task attempt will fail
|
|
148
|
+
# with error code 405 (Method Not Allowed). See
|
|
149
|
+
# [Writing a push task request
|
|
150
|
+
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-
|
|
151
|
+
# handlers#writing_a_push_task_request_handler)
|
|
152
|
+
# and the documentation for the request handlers in the language your app is
|
|
153
|
+
# written in e.g.
|
|
154
|
+
# [Python Request
|
|
155
|
+
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/
|
|
156
|
+
# requesthandlerclass).
|
|
157
|
+
# Corresponds to the JSON property `httpMethod`
|
|
158
|
+
# @return [String]
|
|
159
|
+
attr_accessor :http_method
|
|
160
|
+
|
|
161
|
+
# The relative URI.
|
|
162
|
+
# The relative URI must begin with "/" and must be a valid HTTP relative URI.
|
|
163
|
+
# It can contain a path and query string arguments.
|
|
164
|
+
# If the relative URI is empty, then the root path "/" will be used.
|
|
165
|
+
# No spaces are allowed, and the maximum length allowed is 2083 characters.
|
|
166
|
+
# Corresponds to the JSON property `relativeUri`
|
|
167
|
+
# @return [String]
|
|
168
|
+
attr_accessor :relative_uri
|
|
169
|
+
|
|
170
|
+
def initialize(**args)
|
|
171
|
+
update!(**args)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Update properties of this object
|
|
175
|
+
def update!(**args)
|
|
176
|
+
@app_engine_routing = args[:app_engine_routing] if args.key?(:app_engine_routing)
|
|
177
|
+
@body = args[:body] if args.key?(:body)
|
|
178
|
+
@headers = args[:headers] if args.key?(:headers)
|
|
179
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
|
180
|
+
@relative_uri = args[:relative_uri] if args.key?(:relative_uri)
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# App Engine Routing.
|
|
185
|
+
# Defines routing characteristics specific to App Engine - service, version,
|
|
186
|
+
# and instance.
|
|
187
|
+
# For more information about services, versions, and instances see
|
|
188
|
+
# [An Overview of App
|
|
189
|
+
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
|
190
|
+
# engine),
|
|
191
|
+
# [Microservices Architecture on Google App
|
|
192
|
+
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
|
193
|
+
# engine),
|
|
194
|
+
# [App Engine Standard request
|
|
195
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
|
196
|
+
# are-routed),
|
|
197
|
+
# and [App Engine Flex request
|
|
198
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
|
199
|
+
# are-routed).
|
|
200
|
+
class AppEngineRouting
|
|
201
|
+
include Google::Apis::Core::Hashable
|
|
202
|
+
|
|
203
|
+
# Output only. The host that the task is sent to.
|
|
204
|
+
# The host is constructed from the domain name of the app associated with
|
|
205
|
+
# the queue's project ID (for example <app-id>.appspot.com), and the
|
|
206
|
+
# service, version,
|
|
207
|
+
# and instance. Tasks which were created using
|
|
208
|
+
# the App Engine SDK might have a custom domain name.
|
|
209
|
+
# For more information, see
|
|
210
|
+
# [How Requests are
|
|
211
|
+
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
|
212
|
+
# are-routed).
|
|
213
|
+
# Corresponds to the JSON property `host`
|
|
214
|
+
# @return [String]
|
|
215
|
+
attr_accessor :host
|
|
216
|
+
|
|
217
|
+
# App instance.
|
|
218
|
+
# By default, the task is sent to an instance which is available when
|
|
219
|
+
# the task is attempted.
|
|
220
|
+
# Requests can only be sent to a specific instance if
|
|
221
|
+
# [manual scaling is used in App Engine
|
|
222
|
+
# Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
|
223
|
+
# engine?hl=en_US#scaling_types_and_instance_classes).
|
|
224
|
+
# App Engine Flex does not support instances. For more information, see
|
|
225
|
+
# [App Engine Standard request
|
|
226
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
|
227
|
+
# are-routed)
|
|
228
|
+
# and [App Engine Flex request
|
|
229
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
|
230
|
+
# are-routed).
|
|
231
|
+
# Corresponds to the JSON property `instance`
|
|
232
|
+
# @return [String]
|
|
233
|
+
attr_accessor :instance
|
|
234
|
+
|
|
235
|
+
# App service.
|
|
236
|
+
# By default, the task is sent to the service which is the default
|
|
237
|
+
# service when the task is attempted.
|
|
238
|
+
# For some queues or tasks which were created using the App Engine
|
|
239
|
+
# Task Queue API, host is not parsable
|
|
240
|
+
# into service,
|
|
241
|
+
# version, and
|
|
242
|
+
# instance. For example, some tasks
|
|
243
|
+
# which were created using the App Engine SDK use a custom domain
|
|
244
|
+
# name; custom domains are not parsed by Cloud Tasks. If
|
|
245
|
+
# host is not parsable, then
|
|
246
|
+
# service,
|
|
247
|
+
# version, and
|
|
248
|
+
# instance are the empty string.
|
|
249
|
+
# Corresponds to the JSON property `service`
|
|
250
|
+
# @return [String]
|
|
251
|
+
attr_accessor :service
|
|
252
|
+
|
|
253
|
+
# App version.
|
|
254
|
+
# By default, the task is sent to the version which is the default
|
|
255
|
+
# version when the task is attempted.
|
|
256
|
+
# For some queues or tasks which were created using the App Engine
|
|
257
|
+
# Task Queue API, host is not parsable
|
|
258
|
+
# into service,
|
|
259
|
+
# version, and
|
|
260
|
+
# instance. For example, some tasks
|
|
261
|
+
# which were created using the App Engine SDK use a custom domain
|
|
262
|
+
# name; custom domains are not parsed by Cloud Tasks. If
|
|
263
|
+
# host is not parsable, then
|
|
264
|
+
# service,
|
|
265
|
+
# version, and
|
|
266
|
+
# instance are the empty string.
|
|
267
|
+
# Corresponds to the JSON property `version`
|
|
268
|
+
# @return [String]
|
|
269
|
+
attr_accessor :version
|
|
270
|
+
|
|
271
|
+
def initialize(**args)
|
|
272
|
+
update!(**args)
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Update properties of this object
|
|
276
|
+
def update!(**args)
|
|
277
|
+
@host = args[:host] if args.key?(:host)
|
|
278
|
+
@instance = args[:instance] if args.key?(:instance)
|
|
279
|
+
@service = args[:service] if args.key?(:service)
|
|
280
|
+
@version = args[:version] if args.key?(:version)
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# The status of a task attempt.
|
|
285
|
+
class Attempt
|
|
286
|
+
include Google::Apis::Core::Hashable
|
|
287
|
+
|
|
288
|
+
# Output only. The time that this attempt was dispatched.
|
|
289
|
+
# `dispatch_time` will be truncated to the nearest microsecond.
|
|
290
|
+
# Corresponds to the JSON property `dispatchTime`
|
|
291
|
+
# @return [String]
|
|
292
|
+
attr_accessor :dispatch_time
|
|
293
|
+
|
|
294
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
295
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
296
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
297
|
+
# - Simple to use and understand for most users
|
|
298
|
+
# - Flexible enough to meet unexpected needs
|
|
299
|
+
# # Overview
|
|
300
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
301
|
+
# message, and error details. The error code should be an enum value of
|
|
302
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
303
|
+
# error message should be a developer-facing English message that helps
|
|
304
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
305
|
+
# error message is needed, put the localized message in the error details or
|
|
306
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
307
|
+
# information about the error. There is a predefined set of error detail types
|
|
308
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
309
|
+
# # Language mapping
|
|
310
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
311
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
312
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
313
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
314
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
315
|
+
# # Other uses
|
|
316
|
+
# The error model and the `Status` message can be used in a variety of
|
|
317
|
+
# environments, either with or without APIs, to provide a
|
|
318
|
+
# consistent developer experience across different environments.
|
|
319
|
+
# Example uses of this error model include:
|
|
320
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
321
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
322
|
+
# errors.
|
|
323
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
324
|
+
# have a `Status` message for error reporting.
|
|
325
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
326
|
+
# `Status` message should be used directly inside batch response, one for
|
|
327
|
+
# each error sub-response.
|
|
328
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
329
|
+
# results in its response, the status of those operations should be
|
|
330
|
+
# represented directly using the `Status` message.
|
|
331
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
332
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
333
|
+
# Corresponds to the JSON property `responseStatus`
|
|
334
|
+
# @return [Google::Apis::CloudtasksV2::Status]
|
|
335
|
+
attr_accessor :response_status
|
|
336
|
+
|
|
337
|
+
# Output only. The time that this attempt response was received.
|
|
338
|
+
# `response_time` will be truncated to the nearest microsecond.
|
|
339
|
+
# Corresponds to the JSON property `responseTime`
|
|
340
|
+
# @return [String]
|
|
341
|
+
attr_accessor :response_time
|
|
342
|
+
|
|
343
|
+
# Output only. The time that this attempt was scheduled.
|
|
344
|
+
# `schedule_time` will be truncated to the nearest microsecond.
|
|
345
|
+
# Corresponds to the JSON property `scheduleTime`
|
|
346
|
+
# @return [String]
|
|
347
|
+
attr_accessor :schedule_time
|
|
348
|
+
|
|
349
|
+
def initialize(**args)
|
|
350
|
+
update!(**args)
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Update properties of this object
|
|
354
|
+
def update!(**args)
|
|
355
|
+
@dispatch_time = args[:dispatch_time] if args.key?(:dispatch_time)
|
|
356
|
+
@response_status = args[:response_status] if args.key?(:response_status)
|
|
357
|
+
@response_time = args[:response_time] if args.key?(:response_time)
|
|
358
|
+
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Associates `members` with a `role`.
|
|
363
|
+
class Binding
|
|
364
|
+
include Google::Apis::Core::Hashable
|
|
365
|
+
|
|
366
|
+
# Represents an expression text. Example:
|
|
367
|
+
# title: "User account presence"
|
|
368
|
+
# description: "Determines whether the request has a user account"
|
|
369
|
+
# expression: "size(request.user) > 0"
|
|
370
|
+
# Corresponds to the JSON property `condition`
|
|
371
|
+
# @return [Google::Apis::CloudtasksV2::Expr]
|
|
372
|
+
attr_accessor :condition
|
|
373
|
+
|
|
374
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
|
375
|
+
# `members` can have the following values:
|
|
376
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
|
377
|
+
# on the internet; with or without a Google account.
|
|
378
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
379
|
+
# who is authenticated with a Google account or a service account.
|
|
380
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
|
381
|
+
# account. For example, `alice@gmail.com` .
|
|
382
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
383
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
384
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
|
385
|
+
# For example, `admins@example.com`.
|
|
386
|
+
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
387
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
|
388
|
+
# Corresponds to the JSON property `members`
|
|
389
|
+
# @return [Array<String>]
|
|
390
|
+
attr_accessor :members
|
|
391
|
+
|
|
392
|
+
# Role that is assigned to `members`.
|
|
393
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
|
394
|
+
# Corresponds to the JSON property `role`
|
|
395
|
+
# @return [String]
|
|
396
|
+
attr_accessor :role
|
|
397
|
+
|
|
398
|
+
def initialize(**args)
|
|
399
|
+
update!(**args)
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
# Update properties of this object
|
|
403
|
+
def update!(**args)
|
|
404
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
405
|
+
@members = args[:members] if args.key?(:members)
|
|
406
|
+
@role = args[:role] if args.key?(:role)
|
|
407
|
+
end
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Request message for CreateTask.
|
|
411
|
+
class CreateTaskRequest
|
|
412
|
+
include Google::Apis::Core::Hashable
|
|
413
|
+
|
|
414
|
+
# The response_view specifies which subset of the Task will be
|
|
415
|
+
# returned.
|
|
416
|
+
# By default response_view is BASIC; not all
|
|
417
|
+
# information is retrieved by default because some data, such as
|
|
418
|
+
# payloads, might be desirable to return only when needed because
|
|
419
|
+
# of its large size or because of the sensitivity of data that it
|
|
420
|
+
# contains.
|
|
421
|
+
# Authorization for FULL requires
|
|
422
|
+
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
|
|
423
|
+
# permission on the Task resource.
|
|
424
|
+
# Corresponds to the JSON property `responseView`
|
|
425
|
+
# @return [String]
|
|
426
|
+
attr_accessor :response_view
|
|
427
|
+
|
|
428
|
+
# A unit of scheduled work.
|
|
429
|
+
# Corresponds to the JSON property `task`
|
|
430
|
+
# @return [Google::Apis::CloudtasksV2::Task]
|
|
431
|
+
attr_accessor :task
|
|
432
|
+
|
|
433
|
+
def initialize(**args)
|
|
434
|
+
update!(**args)
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# Update properties of this object
|
|
438
|
+
def update!(**args)
|
|
439
|
+
@response_view = args[:response_view] if args.key?(:response_view)
|
|
440
|
+
@task = args[:task] if args.key?(:task)
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
445
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
446
|
+
# or the response type of an API method. For instance:
|
|
447
|
+
# service Foo `
|
|
448
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
449
|
+
# `
|
|
450
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
451
|
+
class Empty
|
|
452
|
+
include Google::Apis::Core::Hashable
|
|
453
|
+
|
|
454
|
+
def initialize(**args)
|
|
455
|
+
update!(**args)
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
# Update properties of this object
|
|
459
|
+
def update!(**args)
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Represents an expression text. Example:
|
|
464
|
+
# title: "User account presence"
|
|
465
|
+
# description: "Determines whether the request has a user account"
|
|
466
|
+
# expression: "size(request.user) > 0"
|
|
467
|
+
class Expr
|
|
468
|
+
include Google::Apis::Core::Hashable
|
|
469
|
+
|
|
470
|
+
# An optional description of the expression. This is a longer text which
|
|
471
|
+
# describes the expression, e.g. when hovered over it in a UI.
|
|
472
|
+
# Corresponds to the JSON property `description`
|
|
473
|
+
# @return [String]
|
|
474
|
+
attr_accessor :description
|
|
475
|
+
|
|
476
|
+
# Textual representation of an expression in
|
|
477
|
+
# Common Expression Language syntax.
|
|
478
|
+
# The application context of the containing message determines which
|
|
479
|
+
# well-known feature set of CEL is supported.
|
|
480
|
+
# Corresponds to the JSON property `expression`
|
|
481
|
+
# @return [String]
|
|
482
|
+
attr_accessor :expression
|
|
483
|
+
|
|
484
|
+
# An optional string indicating the location of the expression for error
|
|
485
|
+
# reporting, e.g. a file name and a position in the file.
|
|
486
|
+
# Corresponds to the JSON property `location`
|
|
487
|
+
# @return [String]
|
|
488
|
+
attr_accessor :location
|
|
489
|
+
|
|
490
|
+
# An optional title for the expression, i.e. a short string describing
|
|
491
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
|
492
|
+
# expression.
|
|
493
|
+
# Corresponds to the JSON property `title`
|
|
494
|
+
# @return [String]
|
|
495
|
+
attr_accessor :title
|
|
496
|
+
|
|
497
|
+
def initialize(**args)
|
|
498
|
+
update!(**args)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Update properties of this object
|
|
502
|
+
def update!(**args)
|
|
503
|
+
@description = args[:description] if args.key?(:description)
|
|
504
|
+
@expression = args[:expression] if args.key?(:expression)
|
|
505
|
+
@location = args[:location] if args.key?(:location)
|
|
506
|
+
@title = args[:title] if args.key?(:title)
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# Request message for `GetIamPolicy` method.
|
|
511
|
+
class GetIamPolicyRequest
|
|
512
|
+
include Google::Apis::Core::Hashable
|
|
513
|
+
|
|
514
|
+
def initialize(**args)
|
|
515
|
+
update!(**args)
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# Update properties of this object
|
|
519
|
+
def update!(**args)
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# The response message for Locations.ListLocations.
|
|
524
|
+
class ListLocationsResponse
|
|
525
|
+
include Google::Apis::Core::Hashable
|
|
526
|
+
|
|
527
|
+
# A list of locations that matches the specified filter in the request.
|
|
528
|
+
# Corresponds to the JSON property `locations`
|
|
529
|
+
# @return [Array<Google::Apis::CloudtasksV2::Location>]
|
|
530
|
+
attr_accessor :locations
|
|
531
|
+
|
|
532
|
+
# The standard List next-page token.
|
|
533
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
534
|
+
# @return [String]
|
|
535
|
+
attr_accessor :next_page_token
|
|
536
|
+
|
|
537
|
+
def initialize(**args)
|
|
538
|
+
update!(**args)
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# Update properties of this object
|
|
542
|
+
def update!(**args)
|
|
543
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
544
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
# Response message for ListQueues.
|
|
549
|
+
class ListQueuesResponse
|
|
550
|
+
include Google::Apis::Core::Hashable
|
|
551
|
+
|
|
552
|
+
# A token to retrieve next page of results.
|
|
553
|
+
# To return the next page of results, call
|
|
554
|
+
# ListQueues with this value as the
|
|
555
|
+
# page_token.
|
|
556
|
+
# If the next_page_token is empty, there are no more results.
|
|
557
|
+
# The page token is valid for only 2 hours.
|
|
558
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
559
|
+
# @return [String]
|
|
560
|
+
attr_accessor :next_page_token
|
|
561
|
+
|
|
562
|
+
# The list of queues.
|
|
563
|
+
# Corresponds to the JSON property `queues`
|
|
564
|
+
# @return [Array<Google::Apis::CloudtasksV2::Queue>]
|
|
565
|
+
attr_accessor :queues
|
|
566
|
+
|
|
567
|
+
def initialize(**args)
|
|
568
|
+
update!(**args)
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
# Update properties of this object
|
|
572
|
+
def update!(**args)
|
|
573
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
574
|
+
@queues = args[:queues] if args.key?(:queues)
|
|
575
|
+
end
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Response message for listing tasks using ListTasks.
|
|
579
|
+
class ListTasksResponse
|
|
580
|
+
include Google::Apis::Core::Hashable
|
|
581
|
+
|
|
582
|
+
# A token to retrieve next page of results.
|
|
583
|
+
# To return the next page of results, call
|
|
584
|
+
# ListTasks with this value as the
|
|
585
|
+
# page_token.
|
|
586
|
+
# If the next_page_token is empty, there are no more results.
|
|
587
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
588
|
+
# @return [String]
|
|
589
|
+
attr_accessor :next_page_token
|
|
590
|
+
|
|
591
|
+
# The list of tasks.
|
|
592
|
+
# Corresponds to the JSON property `tasks`
|
|
593
|
+
# @return [Array<Google::Apis::CloudtasksV2::Task>]
|
|
594
|
+
attr_accessor :tasks
|
|
595
|
+
|
|
596
|
+
def initialize(**args)
|
|
597
|
+
update!(**args)
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
# Update properties of this object
|
|
601
|
+
def update!(**args)
|
|
602
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
603
|
+
@tasks = args[:tasks] if args.key?(:tasks)
|
|
604
|
+
end
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
# A resource that represents Google Cloud Platform location.
|
|
608
|
+
class Location
|
|
609
|
+
include Google::Apis::Core::Hashable
|
|
610
|
+
|
|
611
|
+
# The friendly name for this location, typically a nearby city name.
|
|
612
|
+
# For example, "Tokyo".
|
|
613
|
+
# Corresponds to the JSON property `displayName`
|
|
614
|
+
# @return [String]
|
|
615
|
+
attr_accessor :display_name
|
|
616
|
+
|
|
617
|
+
# Cross-service attributes for the location. For example
|
|
618
|
+
# `"cloud.googleapis.com/region": "us-east1"`
|
|
619
|
+
# Corresponds to the JSON property `labels`
|
|
620
|
+
# @return [Hash<String,String>]
|
|
621
|
+
attr_accessor :labels
|
|
622
|
+
|
|
623
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
|
624
|
+
# Corresponds to the JSON property `locationId`
|
|
625
|
+
# @return [String]
|
|
626
|
+
attr_accessor :location_id
|
|
627
|
+
|
|
628
|
+
# Service-specific metadata. For example the available capacity at the given
|
|
629
|
+
# location.
|
|
630
|
+
# Corresponds to the JSON property `metadata`
|
|
631
|
+
# @return [Hash<String,Object>]
|
|
632
|
+
attr_accessor :metadata
|
|
633
|
+
|
|
634
|
+
# Resource name for the location, which may vary between implementations.
|
|
635
|
+
# For example: `"projects/example-project/locations/us-east1"`
|
|
636
|
+
# Corresponds to the JSON property `name`
|
|
637
|
+
# @return [String]
|
|
638
|
+
attr_accessor :name
|
|
639
|
+
|
|
640
|
+
def initialize(**args)
|
|
641
|
+
update!(**args)
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
# Update properties of this object
|
|
645
|
+
def update!(**args)
|
|
646
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
647
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
648
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
|
649
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
650
|
+
@name = args[:name] if args.key?(:name)
|
|
651
|
+
end
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Request message for PauseQueue.
|
|
655
|
+
class PauseQueueRequest
|
|
656
|
+
include Google::Apis::Core::Hashable
|
|
657
|
+
|
|
658
|
+
def initialize(**args)
|
|
659
|
+
update!(**args)
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
# Update properties of this object
|
|
663
|
+
def update!(**args)
|
|
664
|
+
end
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
|
668
|
+
# specify access control policies for Cloud Platform resources.
|
|
669
|
+
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
|
670
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
|
671
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
|
672
|
+
# defined by IAM.
|
|
673
|
+
# **JSON Example**
|
|
674
|
+
# `
|
|
675
|
+
# "bindings": [
|
|
676
|
+
# `
|
|
677
|
+
# "role": "roles/owner",
|
|
678
|
+
# "members": [
|
|
679
|
+
# "user:mike@example.com",
|
|
680
|
+
# "group:admins@example.com",
|
|
681
|
+
# "domain:google.com",
|
|
682
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
|
683
|
+
# ]
|
|
684
|
+
# `,
|
|
685
|
+
# `
|
|
686
|
+
# "role": "roles/viewer",
|
|
687
|
+
# "members": ["user:sean@example.com"]
|
|
688
|
+
# `
|
|
689
|
+
# ]
|
|
690
|
+
# `
|
|
691
|
+
# **YAML Example**
|
|
692
|
+
# bindings:
|
|
693
|
+
# - members:
|
|
694
|
+
# - user:mike@example.com
|
|
695
|
+
# - group:admins@example.com
|
|
696
|
+
# - domain:google.com
|
|
697
|
+
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
|
698
|
+
# role: roles/owner
|
|
699
|
+
# - members:
|
|
700
|
+
# - user:sean@example.com
|
|
701
|
+
# role: roles/viewer
|
|
702
|
+
# For a description of IAM and its features, see the
|
|
703
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
704
|
+
class Policy
|
|
705
|
+
include Google::Apis::Core::Hashable
|
|
706
|
+
|
|
707
|
+
# Associates a list of `members` to a `role`.
|
|
708
|
+
# `bindings` with no members will result in an error.
|
|
709
|
+
# Corresponds to the JSON property `bindings`
|
|
710
|
+
# @return [Array<Google::Apis::CloudtasksV2::Binding>]
|
|
711
|
+
attr_accessor :bindings
|
|
712
|
+
|
|
713
|
+
# `etag` is used for optimistic concurrency control as a way to help
|
|
714
|
+
# prevent simultaneous updates of a policy from overwriting each other.
|
|
715
|
+
# It is strongly suggested that systems make use of the `etag` in the
|
|
716
|
+
# read-modify-write cycle to perform policy updates in order to avoid race
|
|
717
|
+
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
718
|
+
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
719
|
+
# ensure that their change will be applied to the same version of the policy.
|
|
720
|
+
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
721
|
+
# policy is overwritten blindly.
|
|
722
|
+
# Corresponds to the JSON property `etag`
|
|
723
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
724
|
+
# @return [String]
|
|
725
|
+
attr_accessor :etag
|
|
726
|
+
|
|
727
|
+
# Deprecated.
|
|
728
|
+
# Corresponds to the JSON property `version`
|
|
729
|
+
# @return [Fixnum]
|
|
730
|
+
attr_accessor :version
|
|
731
|
+
|
|
732
|
+
def initialize(**args)
|
|
733
|
+
update!(**args)
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
# Update properties of this object
|
|
737
|
+
def update!(**args)
|
|
738
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
|
739
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
740
|
+
@version = args[:version] if args.key?(:version)
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
# Request message for PurgeQueue.
|
|
745
|
+
class PurgeQueueRequest
|
|
746
|
+
include Google::Apis::Core::Hashable
|
|
747
|
+
|
|
748
|
+
def initialize(**args)
|
|
749
|
+
update!(**args)
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# Update properties of this object
|
|
753
|
+
def update!(**args)
|
|
754
|
+
end
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
# A queue is a container of related tasks. Queues are configured to manage
|
|
758
|
+
# how those tasks are dispatched. Configurable properties include rate limits,
|
|
759
|
+
# retry options, queue types, and others.
|
|
760
|
+
class Queue
|
|
761
|
+
include Google::Apis::Core::Hashable
|
|
762
|
+
|
|
763
|
+
# App Engine Routing.
|
|
764
|
+
# Defines routing characteristics specific to App Engine - service, version,
|
|
765
|
+
# and instance.
|
|
766
|
+
# For more information about services, versions, and instances see
|
|
767
|
+
# [An Overview of App
|
|
768
|
+
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
|
769
|
+
# engine),
|
|
770
|
+
# [Microservices Architecture on Google App
|
|
771
|
+
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
|
772
|
+
# engine),
|
|
773
|
+
# [App Engine Standard request
|
|
774
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
|
775
|
+
# are-routed),
|
|
776
|
+
# and [App Engine Flex request
|
|
777
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
|
778
|
+
# are-routed).
|
|
779
|
+
# Corresponds to the JSON property `appEngineRoutingOverride`
|
|
780
|
+
# @return [Google::Apis::CloudtasksV2::AppEngineRouting]
|
|
781
|
+
attr_accessor :app_engine_routing_override
|
|
782
|
+
|
|
783
|
+
# Caller-specified and required in CreateQueue,
|
|
784
|
+
# after which it becomes output only.
|
|
785
|
+
# The queue name.
|
|
786
|
+
# The queue name must have the following format:
|
|
787
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
|
788
|
+
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
|
789
|
+
# hyphens (-), colons (:), or periods (.).
|
|
790
|
+
# For more information, see
|
|
791
|
+
# [Identifying
|
|
792
|
+
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
|
793
|
+
# projects#identifying_projects)
|
|
794
|
+
# * `LOCATION_ID` is the canonical ID for the queue's location.
|
|
795
|
+
# The list of available locations can be obtained by calling
|
|
796
|
+
# ListLocations.
|
|
797
|
+
# For more information, see https://cloud.google.com/about/locations/.
|
|
798
|
+
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
|
|
799
|
+
# hyphens (-). The maximum length is 100 characters.
|
|
800
|
+
# Corresponds to the JSON property `name`
|
|
801
|
+
# @return [String]
|
|
802
|
+
attr_accessor :name
|
|
803
|
+
|
|
804
|
+
# Output only. The last time this queue was purged.
|
|
805
|
+
# All tasks that were created before this time
|
|
806
|
+
# were purged.
|
|
807
|
+
# A queue can be purged using PurgeQueue, the
|
|
808
|
+
# [App Engine Task Queue SDK, or the Cloud
|
|
809
|
+
# Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/
|
|
810
|
+
# push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
|
|
811
|
+
# Purge time will be truncated to the nearest microsecond. Purge
|
|
812
|
+
# time will be unset if the queue has never been purged.
|
|
813
|
+
# Corresponds to the JSON property `purgeTime`
|
|
814
|
+
# @return [String]
|
|
815
|
+
attr_accessor :purge_time
|
|
816
|
+
|
|
817
|
+
# Rate limits.
|
|
818
|
+
# This message determines the maximum rate that tasks can be dispatched by a
|
|
819
|
+
# queue, regardless of whether the dispatch is a first task attempt or a retry.
|
|
820
|
+
# Note: The debugging command, RunTask, will run a task
|
|
821
|
+
# even if the queue has reached its RateLimits.
|
|
822
|
+
# Corresponds to the JSON property `rateLimits`
|
|
823
|
+
# @return [Google::Apis::CloudtasksV2::RateLimits]
|
|
824
|
+
attr_accessor :rate_limits
|
|
825
|
+
|
|
826
|
+
# Retry config.
|
|
827
|
+
# These settings determine when a failed task attempt is retried.
|
|
828
|
+
# Corresponds to the JSON property `retryConfig`
|
|
829
|
+
# @return [Google::Apis::CloudtasksV2::RetryConfig]
|
|
830
|
+
attr_accessor :retry_config
|
|
831
|
+
|
|
832
|
+
# Output only. The state of the queue.
|
|
833
|
+
# `state` can only be changed by called
|
|
834
|
+
# PauseQueue,
|
|
835
|
+
# ResumeQueue, or uploading
|
|
836
|
+
# [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/
|
|
837
|
+
# queueref).
|
|
838
|
+
# UpdateQueue cannot be used to change `state`.
|
|
839
|
+
# Corresponds to the JSON property `state`
|
|
840
|
+
# @return [String]
|
|
841
|
+
attr_accessor :state
|
|
842
|
+
|
|
843
|
+
def initialize(**args)
|
|
844
|
+
update!(**args)
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
# Update properties of this object
|
|
848
|
+
def update!(**args)
|
|
849
|
+
@app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override)
|
|
850
|
+
@name = args[:name] if args.key?(:name)
|
|
851
|
+
@purge_time = args[:purge_time] if args.key?(:purge_time)
|
|
852
|
+
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
|
|
853
|
+
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
|
854
|
+
@state = args[:state] if args.key?(:state)
|
|
855
|
+
end
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
# Rate limits.
|
|
859
|
+
# This message determines the maximum rate that tasks can be dispatched by a
|
|
860
|
+
# queue, regardless of whether the dispatch is a first task attempt or a retry.
|
|
861
|
+
# Note: The debugging command, RunTask, will run a task
|
|
862
|
+
# even if the queue has reached its RateLimits.
|
|
863
|
+
class RateLimits
|
|
864
|
+
include Google::Apis::Core::Hashable
|
|
865
|
+
|
|
866
|
+
# Output only. The max burst size.
|
|
867
|
+
# Max burst size limits how fast tasks in queue are processed when
|
|
868
|
+
# many tasks are in the queue and the rate is high. This field
|
|
869
|
+
# allows the queue to have a high rate so processing starts shortly
|
|
870
|
+
# after a task is enqueued, but still limits resource usage when
|
|
871
|
+
# many tasks are enqueued in a short period of time.
|
|
872
|
+
# The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
|
|
873
|
+
# algorithm is used to control the rate of task dispatches. Each
|
|
874
|
+
# queue has a token bucket that holds tokens, up to the maximum
|
|
875
|
+
# specified by `max_burst_size`. Each time a task is dispatched, a
|
|
876
|
+
# token is removed from the bucket. Tasks will be dispatched until
|
|
877
|
+
# the queue's bucket runs out of tokens. The bucket will be
|
|
878
|
+
# continuously refilled with new tokens based on
|
|
879
|
+
# max_dispatches_per_second.
|
|
880
|
+
# Cloud Tasks will pick the value of `max_burst_size` based on the
|
|
881
|
+
# value of
|
|
882
|
+
# max_dispatches_per_second.
|
|
883
|
+
# For App Engine queues that were created or updated using
|
|
884
|
+
# `queue.yaml/xml`, `max_burst_size` is equal to
|
|
885
|
+
# [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
886
|
+
# queueref#bucket_size).
|
|
887
|
+
# Since `max_burst_size` is output only, if
|
|
888
|
+
# UpdateQueue is called on a queue
|
|
889
|
+
# created by `queue.yaml/xml`, `max_burst_size` will be reset based
|
|
890
|
+
# on the value of
|
|
891
|
+
# max_dispatches_per_second,
|
|
892
|
+
# regardless of whether
|
|
893
|
+
# max_dispatches_per_second
|
|
894
|
+
# is updated.
|
|
895
|
+
# Corresponds to the JSON property `maxBurstSize`
|
|
896
|
+
# @return [Fixnum]
|
|
897
|
+
attr_accessor :max_burst_size
|
|
898
|
+
|
|
899
|
+
# The maximum number of concurrent tasks that Cloud Tasks allows
|
|
900
|
+
# to be dispatched for this queue. After this threshold has been
|
|
901
|
+
# reached, Cloud Tasks stops dispatching tasks until the number of
|
|
902
|
+
# concurrent requests decreases.
|
|
903
|
+
# If unspecified when the queue is created, Cloud Tasks will pick the
|
|
904
|
+
# default.
|
|
905
|
+
# The maximum allowed value is 5,000.
|
|
906
|
+
# This field has the same meaning as
|
|
907
|
+
# [max_concurrent_requests in
|
|
908
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
909
|
+
# queueref#max_concurrent_requests).
|
|
910
|
+
# Corresponds to the JSON property `maxConcurrentDispatches`
|
|
911
|
+
# @return [Fixnum]
|
|
912
|
+
attr_accessor :max_concurrent_dispatches
|
|
913
|
+
|
|
914
|
+
# The maximum rate at which tasks are dispatched from this queue.
|
|
915
|
+
# If unspecified when the queue is created, Cloud Tasks will pick the
|
|
916
|
+
# default.
|
|
917
|
+
# * For App Engine queues, the maximum allowed value
|
|
918
|
+
# is 500.
|
|
919
|
+
# This field has the same meaning as
|
|
920
|
+
# [rate in
|
|
921
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
922
|
+
# queueref#rate).
|
|
923
|
+
# Corresponds to the JSON property `maxDispatchesPerSecond`
|
|
924
|
+
# @return [Float]
|
|
925
|
+
attr_accessor :max_dispatches_per_second
|
|
926
|
+
|
|
927
|
+
def initialize(**args)
|
|
928
|
+
update!(**args)
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Update properties of this object
|
|
932
|
+
def update!(**args)
|
|
933
|
+
@max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size)
|
|
934
|
+
@max_concurrent_dispatches = args[:max_concurrent_dispatches] if args.key?(:max_concurrent_dispatches)
|
|
935
|
+
@max_dispatches_per_second = args[:max_dispatches_per_second] if args.key?(:max_dispatches_per_second)
|
|
936
|
+
end
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
# Request message for ResumeQueue.
|
|
940
|
+
class ResumeQueueRequest
|
|
941
|
+
include Google::Apis::Core::Hashable
|
|
942
|
+
|
|
943
|
+
def initialize(**args)
|
|
944
|
+
update!(**args)
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
# Update properties of this object
|
|
948
|
+
def update!(**args)
|
|
949
|
+
end
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
# Retry config.
|
|
953
|
+
# These settings determine when a failed task attempt is retried.
|
|
954
|
+
class RetryConfig
|
|
955
|
+
include Google::Apis::Core::Hashable
|
|
956
|
+
|
|
957
|
+
# Number of attempts per task.
|
|
958
|
+
# Cloud Tasks will attempt the task `max_attempts` times (that is, if the
|
|
959
|
+
# first attempt fails, then there will be `max_attempts - 1` retries). Must
|
|
960
|
+
# be >= -1.
|
|
961
|
+
# If unspecified when the queue is created, Cloud Tasks will pick the
|
|
962
|
+
# default.
|
|
963
|
+
# -1 indicates unlimited attempts.
|
|
964
|
+
# This field has the same meaning as
|
|
965
|
+
# [task_retry_limit in
|
|
966
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
967
|
+
# queueref#retry_parameters).
|
|
968
|
+
# Corresponds to the JSON property `maxAttempts`
|
|
969
|
+
# @return [Fixnum]
|
|
970
|
+
attr_accessor :max_attempts
|
|
971
|
+
|
|
972
|
+
# A task will be scheduled for retry between
|
|
973
|
+
# min_backoff and
|
|
974
|
+
# max_backoff duration after it fails,
|
|
975
|
+
# if the queue's RetryConfig specifies that the task should be
|
|
976
|
+
# retried.
|
|
977
|
+
# If unspecified when the queue is created, Cloud Tasks will pick the
|
|
978
|
+
# default.
|
|
979
|
+
# `max_backoff` will be truncated to the nearest second.
|
|
980
|
+
# This field has the same meaning as
|
|
981
|
+
# [max_backoff_seconds in
|
|
982
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
983
|
+
# queueref#retry_parameters).
|
|
984
|
+
# Corresponds to the JSON property `maxBackoff`
|
|
985
|
+
# @return [String]
|
|
986
|
+
attr_accessor :max_backoff
|
|
987
|
+
|
|
988
|
+
# The time between retries will double `max_doublings` times.
|
|
989
|
+
# A task's retry interval starts at
|
|
990
|
+
# min_backoff, then doubles
|
|
991
|
+
# `max_doublings` times, then increases linearly, and finally
|
|
992
|
+
# retries retries at intervals of
|
|
993
|
+
# max_backoff up to
|
|
994
|
+
# max_attempts times.
|
|
995
|
+
# For example, if min_backoff is 10s,
|
|
996
|
+
# max_backoff is 300s, and
|
|
997
|
+
# `max_doublings` is 3, then the a task will first be retried in
|
|
998
|
+
# 10s. The retry interval will double three times, and then
|
|
999
|
+
# increase linearly by 2^3 * 10s. Finally, the task will retry at
|
|
1000
|
+
# intervals of max_backoff until the
|
|
1001
|
+
# task has been attempted max_attempts
|
|
1002
|
+
# times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
|
|
1003
|
+
# 240s, 300s, 300s, ....
|
|
1004
|
+
# If unspecified when the queue is created, Cloud Tasks will pick the
|
|
1005
|
+
# default.
|
|
1006
|
+
# This field has the same meaning as
|
|
1007
|
+
# [max_doublings in
|
|
1008
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
1009
|
+
# queueref#retry_parameters).
|
|
1010
|
+
# Corresponds to the JSON property `maxDoublings`
|
|
1011
|
+
# @return [Fixnum]
|
|
1012
|
+
attr_accessor :max_doublings
|
|
1013
|
+
|
|
1014
|
+
# If positive, `max_retry_duration` specifies the time limit for
|
|
1015
|
+
# retrying a failed task, measured from when the task was first
|
|
1016
|
+
# attempted. Once `max_retry_duration` time has passed *and* the
|
|
1017
|
+
# task has been attempted max_attempts
|
|
1018
|
+
# times, no further attempts will be made and the task will be
|
|
1019
|
+
# deleted.
|
|
1020
|
+
# If zero, then the task age is unlimited.
|
|
1021
|
+
# If unspecified when the queue is created, Cloud Tasks will pick the
|
|
1022
|
+
# default.
|
|
1023
|
+
# `max_retry_duration` will be truncated to the nearest second.
|
|
1024
|
+
# This field has the same meaning as
|
|
1025
|
+
# [task_age_limit in
|
|
1026
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
1027
|
+
# queueref#retry_parameters).
|
|
1028
|
+
# Corresponds to the JSON property `maxRetryDuration`
|
|
1029
|
+
# @return [String]
|
|
1030
|
+
attr_accessor :max_retry_duration
|
|
1031
|
+
|
|
1032
|
+
# A task will be scheduled for retry between
|
|
1033
|
+
# min_backoff and
|
|
1034
|
+
# max_backoff duration after it fails,
|
|
1035
|
+
# if the queue's RetryConfig specifies that the task should be
|
|
1036
|
+
# retried.
|
|
1037
|
+
# If unspecified when the queue is created, Cloud Tasks will pick the
|
|
1038
|
+
# default.
|
|
1039
|
+
# `min_backoff` will be truncated to the nearest second.
|
|
1040
|
+
# This field has the same meaning as
|
|
1041
|
+
# [min_backoff_seconds in
|
|
1042
|
+
# queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
1043
|
+
# queueref#retry_parameters).
|
|
1044
|
+
# Corresponds to the JSON property `minBackoff`
|
|
1045
|
+
# @return [String]
|
|
1046
|
+
attr_accessor :min_backoff
|
|
1047
|
+
|
|
1048
|
+
def initialize(**args)
|
|
1049
|
+
update!(**args)
|
|
1050
|
+
end
|
|
1051
|
+
|
|
1052
|
+
# Update properties of this object
|
|
1053
|
+
def update!(**args)
|
|
1054
|
+
@max_attempts = args[:max_attempts] if args.key?(:max_attempts)
|
|
1055
|
+
@max_backoff = args[:max_backoff] if args.key?(:max_backoff)
|
|
1056
|
+
@max_doublings = args[:max_doublings] if args.key?(:max_doublings)
|
|
1057
|
+
@max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration)
|
|
1058
|
+
@min_backoff = args[:min_backoff] if args.key?(:min_backoff)
|
|
1059
|
+
end
|
|
1060
|
+
end
|
|
1061
|
+
|
|
1062
|
+
# Request message for forcing a task to run now using
|
|
1063
|
+
# RunTask.
|
|
1064
|
+
class RunTaskRequest
|
|
1065
|
+
include Google::Apis::Core::Hashable
|
|
1066
|
+
|
|
1067
|
+
# The response_view specifies which subset of the Task will be
|
|
1068
|
+
# returned.
|
|
1069
|
+
# By default response_view is BASIC; not all
|
|
1070
|
+
# information is retrieved by default because some data, such as
|
|
1071
|
+
# payloads, might be desirable to return only when needed because
|
|
1072
|
+
# of its large size or because of the sensitivity of data that it
|
|
1073
|
+
# contains.
|
|
1074
|
+
# Authorization for FULL requires
|
|
1075
|
+
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
|
|
1076
|
+
# permission on the Task resource.
|
|
1077
|
+
# Corresponds to the JSON property `responseView`
|
|
1078
|
+
# @return [String]
|
|
1079
|
+
attr_accessor :response_view
|
|
1080
|
+
|
|
1081
|
+
def initialize(**args)
|
|
1082
|
+
update!(**args)
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
# Update properties of this object
|
|
1086
|
+
def update!(**args)
|
|
1087
|
+
@response_view = args[:response_view] if args.key?(:response_view)
|
|
1088
|
+
end
|
|
1089
|
+
end
|
|
1090
|
+
|
|
1091
|
+
# Request message for `SetIamPolicy` method.
|
|
1092
|
+
class SetIamPolicyRequest
|
|
1093
|
+
include Google::Apis::Core::Hashable
|
|
1094
|
+
|
|
1095
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
|
1096
|
+
# specify access control policies for Cloud Platform resources.
|
|
1097
|
+
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
|
1098
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
|
1099
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
|
1100
|
+
# defined by IAM.
|
|
1101
|
+
# **JSON Example**
|
|
1102
|
+
# `
|
|
1103
|
+
# "bindings": [
|
|
1104
|
+
# `
|
|
1105
|
+
# "role": "roles/owner",
|
|
1106
|
+
# "members": [
|
|
1107
|
+
# "user:mike@example.com",
|
|
1108
|
+
# "group:admins@example.com",
|
|
1109
|
+
# "domain:google.com",
|
|
1110
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
|
1111
|
+
# ]
|
|
1112
|
+
# `,
|
|
1113
|
+
# `
|
|
1114
|
+
# "role": "roles/viewer",
|
|
1115
|
+
# "members": ["user:sean@example.com"]
|
|
1116
|
+
# `
|
|
1117
|
+
# ]
|
|
1118
|
+
# `
|
|
1119
|
+
# **YAML Example**
|
|
1120
|
+
# bindings:
|
|
1121
|
+
# - members:
|
|
1122
|
+
# - user:mike@example.com
|
|
1123
|
+
# - group:admins@example.com
|
|
1124
|
+
# - domain:google.com
|
|
1125
|
+
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
|
1126
|
+
# role: roles/owner
|
|
1127
|
+
# - members:
|
|
1128
|
+
# - user:sean@example.com
|
|
1129
|
+
# role: roles/viewer
|
|
1130
|
+
# For a description of IAM and its features, see the
|
|
1131
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
1132
|
+
# Corresponds to the JSON property `policy`
|
|
1133
|
+
# @return [Google::Apis::CloudtasksV2::Policy]
|
|
1134
|
+
attr_accessor :policy
|
|
1135
|
+
|
|
1136
|
+
def initialize(**args)
|
|
1137
|
+
update!(**args)
|
|
1138
|
+
end
|
|
1139
|
+
|
|
1140
|
+
# Update properties of this object
|
|
1141
|
+
def update!(**args)
|
|
1142
|
+
@policy = args[:policy] if args.key?(:policy)
|
|
1143
|
+
end
|
|
1144
|
+
end
|
|
1145
|
+
|
|
1146
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
1147
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
1148
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
1149
|
+
# - Simple to use and understand for most users
|
|
1150
|
+
# - Flexible enough to meet unexpected needs
|
|
1151
|
+
# # Overview
|
|
1152
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
1153
|
+
# message, and error details. The error code should be an enum value of
|
|
1154
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
1155
|
+
# error message should be a developer-facing English message that helps
|
|
1156
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
1157
|
+
# error message is needed, put the localized message in the error details or
|
|
1158
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
1159
|
+
# information about the error. There is a predefined set of error detail types
|
|
1160
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
1161
|
+
# # Language mapping
|
|
1162
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
1163
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
1164
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
1165
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
1166
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
1167
|
+
# # Other uses
|
|
1168
|
+
# The error model and the `Status` message can be used in a variety of
|
|
1169
|
+
# environments, either with or without APIs, to provide a
|
|
1170
|
+
# consistent developer experience across different environments.
|
|
1171
|
+
# Example uses of this error model include:
|
|
1172
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
1173
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
1174
|
+
# errors.
|
|
1175
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
1176
|
+
# have a `Status` message for error reporting.
|
|
1177
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
1178
|
+
# `Status` message should be used directly inside batch response, one for
|
|
1179
|
+
# each error sub-response.
|
|
1180
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
1181
|
+
# results in its response, the status of those operations should be
|
|
1182
|
+
# represented directly using the `Status` message.
|
|
1183
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
1184
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
1185
|
+
class Status
|
|
1186
|
+
include Google::Apis::Core::Hashable
|
|
1187
|
+
|
|
1188
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
1189
|
+
# Corresponds to the JSON property `code`
|
|
1190
|
+
# @return [Fixnum]
|
|
1191
|
+
attr_accessor :code
|
|
1192
|
+
|
|
1193
|
+
# A list of messages that carry the error details. There is a common set of
|
|
1194
|
+
# message types for APIs to use.
|
|
1195
|
+
# Corresponds to the JSON property `details`
|
|
1196
|
+
# @return [Array<Hash<String,Object>>]
|
|
1197
|
+
attr_accessor :details
|
|
1198
|
+
|
|
1199
|
+
# A developer-facing error message, which should be in English. Any
|
|
1200
|
+
# user-facing error message should be localized and sent in the
|
|
1201
|
+
# google.rpc.Status.details field, or localized by the client.
|
|
1202
|
+
# Corresponds to the JSON property `message`
|
|
1203
|
+
# @return [String]
|
|
1204
|
+
attr_accessor :message
|
|
1205
|
+
|
|
1206
|
+
def initialize(**args)
|
|
1207
|
+
update!(**args)
|
|
1208
|
+
end
|
|
1209
|
+
|
|
1210
|
+
# Update properties of this object
|
|
1211
|
+
def update!(**args)
|
|
1212
|
+
@code = args[:code] if args.key?(:code)
|
|
1213
|
+
@details = args[:details] if args.key?(:details)
|
|
1214
|
+
@message = args[:message] if args.key?(:message)
|
|
1215
|
+
end
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1218
|
+
# A unit of scheduled work.
|
|
1219
|
+
class Task
|
|
1220
|
+
include Google::Apis::Core::Hashable
|
|
1221
|
+
|
|
1222
|
+
# App Engine HTTP request.
|
|
1223
|
+
# The message defines the HTTP request that is sent to an App Engine app when
|
|
1224
|
+
# the task is dispatched.
|
|
1225
|
+
# This proto can only be used for tasks in a queue which has
|
|
1226
|
+
# app_engine_http_queue set.
|
|
1227
|
+
# Using AppEngineHttpRequest requires
|
|
1228
|
+
# [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-
|
|
1229
|
+
# api/access-control)
|
|
1230
|
+
# Google IAM permission for the project
|
|
1231
|
+
# and the following scope:
|
|
1232
|
+
# `https://www.googleapis.com/auth/cloud-platform`
|
|
1233
|
+
# The task will be delivered to the App Engine app which belongs to the same
|
|
1234
|
+
# project as the queue. For more information, see
|
|
1235
|
+
# [How Requests are
|
|
1236
|
+
# Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
|
1237
|
+
# are-routed)
|
|
1238
|
+
# and how routing is affected by
|
|
1239
|
+
# [dispatch
|
|
1240
|
+
# files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
|
|
1241
|
+
# Traffic is encrypted during transport and never leaves Google datacenters.
|
|
1242
|
+
# Because this traffic is carried over a communication mechanism internal to
|
|
1243
|
+
# Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
|
|
1244
|
+
# The request to the handler, however, will appear to have used the HTTP
|
|
1245
|
+
# protocol.
|
|
1246
|
+
# The AppEngineRouting used to construct the URL that the task is
|
|
1247
|
+
# delivered to can be set at the queue-level or task-level:
|
|
1248
|
+
# * If set,
|
|
1249
|
+
# app_engine_routing_override
|
|
1250
|
+
# is used for all tasks in the queue, no matter what the setting
|
|
1251
|
+
# is for the
|
|
1252
|
+
# task-level app_engine_routing.
|
|
1253
|
+
# The `url` that the task will be sent to is:
|
|
1254
|
+
# * `url =` host `+`
|
|
1255
|
+
# relative_uri
|
|
1256
|
+
# Tasks can be dispatched to secure app handlers, unsecure app handlers, and
|
|
1257
|
+
# URIs restricted with
|
|
1258
|
+
# [`login:
|
|
1259
|
+
# admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
|
|
1260
|
+
# Because tasks are not run as any user, they cannot be dispatched to URIs
|
|
1261
|
+
# restricted with
|
|
1262
|
+
# [`login:
|
|
1263
|
+
# required`](https://cloud.google.com/appengine/docs/standard/python/config/
|
|
1264
|
+
# appref)
|
|
1265
|
+
# Task dispatches also do not follow redirects.
|
|
1266
|
+
# The task attempt has succeeded if the app's request handler returns
|
|
1267
|
+
# an HTTP response code in the range [`200` - `299`]. `503` is
|
|
1268
|
+
# considered an App Engine system error instead of an application
|
|
1269
|
+
# error. Requests returning error `503` will be retried regardless of
|
|
1270
|
+
# retry configuration and not counted against retry counts.
|
|
1271
|
+
# Any other response code or a failure to receive a response before the
|
|
1272
|
+
# deadline is a failed attempt.
|
|
1273
|
+
# Corresponds to the JSON property `appEngineHttpRequest`
|
|
1274
|
+
# @return [Google::Apis::CloudtasksV2::AppEngineHttpRequest]
|
|
1275
|
+
attr_accessor :app_engine_http_request
|
|
1276
|
+
|
|
1277
|
+
# Output only. The time that the task was created.
|
|
1278
|
+
# `create_time` will be truncated to the nearest second.
|
|
1279
|
+
# Corresponds to the JSON property `createTime`
|
|
1280
|
+
# @return [String]
|
|
1281
|
+
attr_accessor :create_time
|
|
1282
|
+
|
|
1283
|
+
# Output only. The number of attempts dispatched.
|
|
1284
|
+
# This count includes attempts which have been dispatched but haven't
|
|
1285
|
+
# received a response.
|
|
1286
|
+
# Corresponds to the JSON property `dispatchCount`
|
|
1287
|
+
# @return [Fixnum]
|
|
1288
|
+
attr_accessor :dispatch_count
|
|
1289
|
+
|
|
1290
|
+
# The deadline for requests sent to the worker. If the worker does not
|
|
1291
|
+
# respond by this deadline then the request is cancelled and the attempt
|
|
1292
|
+
# is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
|
|
1293
|
+
# task according to the RetryConfig.
|
|
1294
|
+
# Note that when the request is cancelled, Cloud Tasks will stop listing for
|
|
1295
|
+
# the response, but whether the worker stops processing depends on the
|
|
1296
|
+
# worker. For example, if the worker is stuck, it may not react to cancelled
|
|
1297
|
+
# requests.
|
|
1298
|
+
# The default and maximum values depend on the type of request:
|
|
1299
|
+
# * For App Engine tasks, 0 indicates that the
|
|
1300
|
+
# request has the default deadline. The default deadline depends on the
|
|
1301
|
+
# [scaling
|
|
1302
|
+
# type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-
|
|
1303
|
+
# managed#instance_scaling)
|
|
1304
|
+
# of the service: 10 minutes for standard apps with automatic scaling, 24
|
|
1305
|
+
# hours for standard apps with manual and basic scaling, and 60 minutes for
|
|
1306
|
+
# flex apps. If the request deadline is set, it must be in the interval [15
|
|
1307
|
+
# seconds, 24 hours 15 seconds]. Regardless of the task's
|
|
1308
|
+
# `dispatch_deadline`, the app handler will not run for longer than than
|
|
1309
|
+
# the service's timeout. We recommend setting the `dispatch_deadline` to
|
|
1310
|
+
# at most a few seconds more than the app handler's timeout. For more
|
|
1311
|
+
# information see
|
|
1312
|
+
# [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#
|
|
1313
|
+
# timeouts).
|
|
1314
|
+
# `dispatch_deadline` will be truncated to the nearest millisecond. The
|
|
1315
|
+
# deadline is an approximate deadline.
|
|
1316
|
+
# Corresponds to the JSON property `dispatchDeadline`
|
|
1317
|
+
# @return [String]
|
|
1318
|
+
attr_accessor :dispatch_deadline
|
|
1319
|
+
|
|
1320
|
+
# The status of a task attempt.
|
|
1321
|
+
# Corresponds to the JSON property `firstAttempt`
|
|
1322
|
+
# @return [Google::Apis::CloudtasksV2::Attempt]
|
|
1323
|
+
attr_accessor :first_attempt
|
|
1324
|
+
|
|
1325
|
+
# The status of a task attempt.
|
|
1326
|
+
# Corresponds to the JSON property `lastAttempt`
|
|
1327
|
+
# @return [Google::Apis::CloudtasksV2::Attempt]
|
|
1328
|
+
attr_accessor :last_attempt
|
|
1329
|
+
|
|
1330
|
+
# Optionally caller-specified in CreateTask.
|
|
1331
|
+
# The task name.
|
|
1332
|
+
# The task name must have the following format:
|
|
1333
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
|
1334
|
+
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
|
1335
|
+
# hyphens (-), colons (:), or periods (.).
|
|
1336
|
+
# For more information, see
|
|
1337
|
+
# [Identifying
|
|
1338
|
+
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
|
1339
|
+
# projects#identifying_projects)
|
|
1340
|
+
# * `LOCATION_ID` is the canonical ID for the task's location.
|
|
1341
|
+
# The list of available locations can be obtained by calling
|
|
1342
|
+
# ListLocations.
|
|
1343
|
+
# For more information, see https://cloud.google.com/about/locations/.
|
|
1344
|
+
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
|
|
1345
|
+
# hyphens (-). The maximum length is 100 characters.
|
|
1346
|
+
# * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
|
|
1347
|
+
# hyphens (-), or underscores (_). The maximum length is 500 characters.
|
|
1348
|
+
# Corresponds to the JSON property `name`
|
|
1349
|
+
# @return [String]
|
|
1350
|
+
attr_accessor :name
|
|
1351
|
+
|
|
1352
|
+
# Output only. The number of attempts which have received a response.
|
|
1353
|
+
# Corresponds to the JSON property `responseCount`
|
|
1354
|
+
# @return [Fixnum]
|
|
1355
|
+
attr_accessor :response_count
|
|
1356
|
+
|
|
1357
|
+
# The time when the task is scheduled to be attempted.
|
|
1358
|
+
# For App Engine queues, this is when the task will be attempted or retried.
|
|
1359
|
+
# `schedule_time` will be truncated to the nearest microsecond.
|
|
1360
|
+
# Corresponds to the JSON property `scheduleTime`
|
|
1361
|
+
# @return [String]
|
|
1362
|
+
attr_accessor :schedule_time
|
|
1363
|
+
|
|
1364
|
+
# Output only. The view specifies which subset of the Task has
|
|
1365
|
+
# been returned.
|
|
1366
|
+
# Corresponds to the JSON property `view`
|
|
1367
|
+
# @return [String]
|
|
1368
|
+
attr_accessor :view
|
|
1369
|
+
|
|
1370
|
+
def initialize(**args)
|
|
1371
|
+
update!(**args)
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
# Update properties of this object
|
|
1375
|
+
def update!(**args)
|
|
1376
|
+
@app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request)
|
|
1377
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1378
|
+
@dispatch_count = args[:dispatch_count] if args.key?(:dispatch_count)
|
|
1379
|
+
@dispatch_deadline = args[:dispatch_deadline] if args.key?(:dispatch_deadline)
|
|
1380
|
+
@first_attempt = args[:first_attempt] if args.key?(:first_attempt)
|
|
1381
|
+
@last_attempt = args[:last_attempt] if args.key?(:last_attempt)
|
|
1382
|
+
@name = args[:name] if args.key?(:name)
|
|
1383
|
+
@response_count = args[:response_count] if args.key?(:response_count)
|
|
1384
|
+
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
|
1385
|
+
@view = args[:view] if args.key?(:view)
|
|
1386
|
+
end
|
|
1387
|
+
end
|
|
1388
|
+
|
|
1389
|
+
# Request message for `TestIamPermissions` method.
|
|
1390
|
+
class TestIamPermissionsRequest
|
|
1391
|
+
include Google::Apis::Core::Hashable
|
|
1392
|
+
|
|
1393
|
+
# The set of permissions to check for the `resource`. Permissions with
|
|
1394
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
1395
|
+
# information see
|
|
1396
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
1397
|
+
# Corresponds to the JSON property `permissions`
|
|
1398
|
+
# @return [Array<String>]
|
|
1399
|
+
attr_accessor :permissions
|
|
1400
|
+
|
|
1401
|
+
def initialize(**args)
|
|
1402
|
+
update!(**args)
|
|
1403
|
+
end
|
|
1404
|
+
|
|
1405
|
+
# Update properties of this object
|
|
1406
|
+
def update!(**args)
|
|
1407
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
|
1408
|
+
end
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
# Response message for `TestIamPermissions` method.
|
|
1412
|
+
class TestIamPermissionsResponse
|
|
1413
|
+
include Google::Apis::Core::Hashable
|
|
1414
|
+
|
|
1415
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
|
1416
|
+
# allowed.
|
|
1417
|
+
# Corresponds to the JSON property `permissions`
|
|
1418
|
+
# @return [Array<String>]
|
|
1419
|
+
attr_accessor :permissions
|
|
1420
|
+
|
|
1421
|
+
def initialize(**args)
|
|
1422
|
+
update!(**args)
|
|
1423
|
+
end
|
|
1424
|
+
|
|
1425
|
+
# Update properties of this object
|
|
1426
|
+
def update!(**args)
|
|
1427
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
|
1428
|
+
end
|
|
1429
|
+
end
|
|
1430
|
+
end
|
|
1431
|
+
end
|
|
1432
|
+
end
|