google-api-client 0.28.4 → 0.28.5
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,408 @@
|
|
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
|
+
class AppEngineHttpRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AppEngineRouting
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Attempt
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Binding
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class CreateTaskRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class Empty
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Expr
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GetIamPolicyRequest
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListLocationsResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListQueuesResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListTasksResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class Location
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class PauseQueueRequest
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class Policy
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class PurgeQueueRequest
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Queue
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class RateLimits
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class ResumeQueueRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class RetryConfig
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class RunTaskRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class SetIamPolicyRequest
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class Status
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class Task
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class TestIamPermissionsRequest
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class TestIamPermissionsResponse
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class AppEngineHttpRequest
|
176
|
+
# @private
|
177
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
+
property :app_engine_routing, as: 'appEngineRouting', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation
|
179
|
+
|
180
|
+
property :body, :base64 => true, as: 'body'
|
181
|
+
hash :headers, as: 'headers'
|
182
|
+
property :http_method, as: 'httpMethod'
|
183
|
+
property :relative_uri, as: 'relativeUri'
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
class AppEngineRouting
|
188
|
+
# @private
|
189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
190
|
+
property :host, as: 'host'
|
191
|
+
property :instance, as: 'instance'
|
192
|
+
property :service, as: 'service'
|
193
|
+
property :version, as: 'version'
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class Attempt
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
property :dispatch_time, as: 'dispatchTime'
|
201
|
+
property :response_status, as: 'responseStatus', class: Google::Apis::CloudtasksV2::Status, decorator: Google::Apis::CloudtasksV2::Status::Representation
|
202
|
+
|
203
|
+
property :response_time, as: 'responseTime'
|
204
|
+
property :schedule_time, as: 'scheduleTime'
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
class Binding
|
209
|
+
# @private
|
210
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
211
|
+
property :condition, as: 'condition', class: Google::Apis::CloudtasksV2::Expr, decorator: Google::Apis::CloudtasksV2::Expr::Representation
|
212
|
+
|
213
|
+
collection :members, as: 'members'
|
214
|
+
property :role, as: 'role'
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
class CreateTaskRequest
|
219
|
+
# @private
|
220
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
221
|
+
property :response_view, as: 'responseView'
|
222
|
+
property :task, as: 'task', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
|
223
|
+
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
class Empty
|
228
|
+
# @private
|
229
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class Expr
|
234
|
+
# @private
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
property :description, as: 'description'
|
237
|
+
property :expression, as: 'expression'
|
238
|
+
property :location, as: 'location'
|
239
|
+
property :title, as: 'title'
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
class GetIamPolicyRequest
|
244
|
+
# @private
|
245
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class ListLocationsResponse
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
collection :locations, as: 'locations', class: Google::Apis::CloudtasksV2::Location, decorator: Google::Apis::CloudtasksV2::Location::Representation
|
253
|
+
|
254
|
+
property :next_page_token, as: 'nextPageToken'
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
class ListQueuesResponse
|
259
|
+
# @private
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
+
property :next_page_token, as: 'nextPageToken'
|
262
|
+
collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2::Queue, decorator: Google::Apis::CloudtasksV2::Queue::Representation
|
263
|
+
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
class ListTasksResponse
|
268
|
+
# @private
|
269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
270
|
+
property :next_page_token, as: 'nextPageToken'
|
271
|
+
collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
|
272
|
+
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
class Location
|
277
|
+
# @private
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
279
|
+
property :display_name, as: 'displayName'
|
280
|
+
hash :labels, as: 'labels'
|
281
|
+
property :location_id, as: 'locationId'
|
282
|
+
hash :metadata, as: 'metadata'
|
283
|
+
property :name, as: 'name'
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
class PauseQueueRequest
|
288
|
+
# @private
|
289
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
class Policy
|
294
|
+
# @private
|
295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
296
|
+
collection :bindings, as: 'bindings', class: Google::Apis::CloudtasksV2::Binding, decorator: Google::Apis::CloudtasksV2::Binding::Representation
|
297
|
+
|
298
|
+
property :etag, :base64 => true, as: 'etag'
|
299
|
+
property :version, as: 'version'
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
class PurgeQueueRequest
|
304
|
+
# @private
|
305
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
class Queue
|
310
|
+
# @private
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
312
|
+
property :app_engine_routing_override, as: 'appEngineRoutingOverride', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation
|
313
|
+
|
314
|
+
property :name, as: 'name'
|
315
|
+
property :purge_time, as: 'purgeTime'
|
316
|
+
property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2::RateLimits, decorator: Google::Apis::CloudtasksV2::RateLimits::Representation
|
317
|
+
|
318
|
+
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2::RetryConfig, decorator: Google::Apis::CloudtasksV2::RetryConfig::Representation
|
319
|
+
|
320
|
+
property :state, as: 'state'
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
class RateLimits
|
325
|
+
# @private
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
327
|
+
property :max_burst_size, as: 'maxBurstSize'
|
328
|
+
property :max_concurrent_dispatches, as: 'maxConcurrentDispatches'
|
329
|
+
property :max_dispatches_per_second, as: 'maxDispatchesPerSecond'
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
class ResumeQueueRequest
|
334
|
+
# @private
|
335
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
class RetryConfig
|
340
|
+
# @private
|
341
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
342
|
+
property :max_attempts, as: 'maxAttempts'
|
343
|
+
property :max_backoff, as: 'maxBackoff'
|
344
|
+
property :max_doublings, as: 'maxDoublings'
|
345
|
+
property :max_retry_duration, as: 'maxRetryDuration'
|
346
|
+
property :min_backoff, as: 'minBackoff'
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
class RunTaskRequest
|
351
|
+
# @private
|
352
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
353
|
+
property :response_view, as: 'responseView'
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
357
|
+
class SetIamPolicyRequest
|
358
|
+
# @private
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
360
|
+
property :policy, as: 'policy', class: Google::Apis::CloudtasksV2::Policy, decorator: Google::Apis::CloudtasksV2::Policy::Representation
|
361
|
+
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
class Status
|
366
|
+
# @private
|
367
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
368
|
+
property :code, as: 'code'
|
369
|
+
collection :details, as: 'details'
|
370
|
+
property :message, as: 'message'
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
class Task
|
375
|
+
# @private
|
376
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
377
|
+
property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2::AppEngineHttpRequest::Representation
|
378
|
+
|
379
|
+
property :create_time, as: 'createTime'
|
380
|
+
property :dispatch_count, as: 'dispatchCount'
|
381
|
+
property :dispatch_deadline, as: 'dispatchDeadline'
|
382
|
+
property :first_attempt, as: 'firstAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation
|
383
|
+
|
384
|
+
property :last_attempt, as: 'lastAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation
|
385
|
+
|
386
|
+
property :name, as: 'name'
|
387
|
+
property :response_count, as: 'responseCount'
|
388
|
+
property :schedule_time, as: 'scheduleTime'
|
389
|
+
property :view, as: 'view'
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
class TestIamPermissionsRequest
|
394
|
+
# @private
|
395
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
396
|
+
collection :permissions, as: 'permissions'
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
class TestIamPermissionsResponse
|
401
|
+
# @private
|
402
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
403
|
+
collection :permissions, as: 'permissions'
|
404
|
+
end
|
405
|
+
end
|
406
|
+
end
|
407
|
+
end
|
408
|
+
end
|
@@ -0,0 +1,856 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module CloudtasksV2
|
23
|
+
# Cloud Tasks API
|
24
|
+
#
|
25
|
+
# Manages the execution of large numbers of distributed requests.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/cloudtasks_v2'
|
29
|
+
#
|
30
|
+
# Cloudtasks = Google::Apis::CloudtasksV2 # Alias the module
|
31
|
+
# service = Cloudtasks::CloudTasksService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/tasks/
|
34
|
+
class CloudTasksService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://cloudtasks.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Gets information about a location.
|
51
|
+
# @param [String] name
|
52
|
+
# Resource name for the location.
|
53
|
+
# @param [String] fields
|
54
|
+
# Selector specifying which fields to include in a partial response.
|
55
|
+
# @param [String] quota_user
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
+
# @param [Google::Apis::RequestOptions] options
|
59
|
+
# Request-specific options
|
60
|
+
#
|
61
|
+
# @yield [result, err] Result & error if block supplied
|
62
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Location] parsed result object
|
63
|
+
# @yieldparam err [StandardError] error object if request failed
|
64
|
+
#
|
65
|
+
# @return [Google::Apis::CloudtasksV2::Location]
|
66
|
+
#
|
67
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
68
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
71
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
72
|
+
command.response_representation = Google::Apis::CloudtasksV2::Location::Representation
|
73
|
+
command.response_class = Google::Apis::CloudtasksV2::Location
|
74
|
+
command.params['name'] = name unless name.nil?
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
76
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
77
|
+
execute_or_queue_command(command, &block)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Lists information about the supported locations for this service.
|
81
|
+
# @param [String] name
|
82
|
+
# The resource that owns the locations collection, if applicable.
|
83
|
+
# @param [String] filter
|
84
|
+
# The standard list filter.
|
85
|
+
# @param [Fixnum] page_size
|
86
|
+
# The standard list page size.
|
87
|
+
# @param [String] page_token
|
88
|
+
# The standard list page token.
|
89
|
+
# @param [String] fields
|
90
|
+
# Selector specifying which fields to include in a partial response.
|
91
|
+
# @param [String] quota_user
|
92
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
93
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
94
|
+
# @param [Google::Apis::RequestOptions] options
|
95
|
+
# Request-specific options
|
96
|
+
#
|
97
|
+
# @yield [result, err] Result & error if block supplied
|
98
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::ListLocationsResponse] parsed result object
|
99
|
+
# @yieldparam err [StandardError] error object if request failed
|
100
|
+
#
|
101
|
+
# @return [Google::Apis::CloudtasksV2::ListLocationsResponse]
|
102
|
+
#
|
103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
107
|
+
command = make_simple_command(:get, 'v2/{+name}/locations', options)
|
108
|
+
command.response_representation = Google::Apis::CloudtasksV2::ListLocationsResponse::Representation
|
109
|
+
command.response_class = Google::Apis::CloudtasksV2::ListLocationsResponse
|
110
|
+
command.params['name'] = name unless name.nil?
|
111
|
+
command.query['filter'] = filter unless filter.nil?
|
112
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
113
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Creates a queue.
|
120
|
+
# Queues created with this method allow tasks to live for a maximum of 31
|
121
|
+
# days. After a task is 31 days old, the task will be deleted regardless of
|
122
|
+
# whether
|
123
|
+
# it was dispatched or not.
|
124
|
+
# WARNING: Using this method may have unintended side effects if you are
|
125
|
+
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
126
|
+
# Read
|
127
|
+
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
128
|
+
# docs/queue-yaml)
|
129
|
+
# before using this method.
|
130
|
+
# @param [String] parent
|
131
|
+
# Required.
|
132
|
+
# The location name in which the queue will be created.
|
133
|
+
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
|
134
|
+
# The list of allowed locations can be obtained by calling Cloud
|
135
|
+
# Tasks' implementation of
|
136
|
+
# ListLocations.
|
137
|
+
# @param [Google::Apis::CloudtasksV2::Queue] queue_object
|
138
|
+
# @param [String] fields
|
139
|
+
# Selector specifying which fields to include in a partial response.
|
140
|
+
# @param [String] quota_user
|
141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
143
|
+
# @param [Google::Apis::RequestOptions] options
|
144
|
+
# Request-specific options
|
145
|
+
#
|
146
|
+
# @yield [result, err] Result & error if block supplied
|
147
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object
|
148
|
+
# @yieldparam err [StandardError] error object if request failed
|
149
|
+
#
|
150
|
+
# @return [Google::Apis::CloudtasksV2::Queue]
|
151
|
+
#
|
152
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
153
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
154
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
155
|
+
def create_project_location_queue(parent, queue_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
156
|
+
command = make_simple_command(:post, 'v2/{+parent}/queues', options)
|
157
|
+
command.request_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
158
|
+
command.request_object = queue_object
|
159
|
+
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
160
|
+
command.response_class = Google::Apis::CloudtasksV2::Queue
|
161
|
+
command.params['parent'] = parent unless parent.nil?
|
162
|
+
command.query['fields'] = fields unless fields.nil?
|
163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
164
|
+
execute_or_queue_command(command, &block)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deletes a queue.
|
168
|
+
# This command will delete the queue even if it has tasks in it.
|
169
|
+
# Note: If you delete a queue, a queue with the same name can't be created
|
170
|
+
# for 7 days.
|
171
|
+
# WARNING: Using this method may have unintended side effects if you are
|
172
|
+
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
173
|
+
# Read
|
174
|
+
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
175
|
+
# docs/queue-yaml)
|
176
|
+
# before using this method.
|
177
|
+
# @param [String] name
|
178
|
+
# Required.
|
179
|
+
# The queue name. For example:
|
180
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
181
|
+
# @param [String] fields
|
182
|
+
# Selector specifying which fields to include in a partial response.
|
183
|
+
# @param [String] quota_user
|
184
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
185
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
186
|
+
# @param [Google::Apis::RequestOptions] options
|
187
|
+
# Request-specific options
|
188
|
+
#
|
189
|
+
# @yield [result, err] Result & error if block supplied
|
190
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Empty] parsed result object
|
191
|
+
# @yieldparam err [StandardError] error object if request failed
|
192
|
+
#
|
193
|
+
# @return [Google::Apis::CloudtasksV2::Empty]
|
194
|
+
#
|
195
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
196
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
197
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
198
|
+
def delete_project_location_queue(name, fields: nil, quota_user: nil, options: nil, &block)
|
199
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
200
|
+
command.response_representation = Google::Apis::CloudtasksV2::Empty::Representation
|
201
|
+
command.response_class = Google::Apis::CloudtasksV2::Empty
|
202
|
+
command.params['name'] = name unless name.nil?
|
203
|
+
command.query['fields'] = fields unless fields.nil?
|
204
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
205
|
+
execute_or_queue_command(command, &block)
|
206
|
+
end
|
207
|
+
|
208
|
+
# Gets a queue.
|
209
|
+
# @param [String] name
|
210
|
+
# Required.
|
211
|
+
# The resource name of the queue. For example:
|
212
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
213
|
+
# @param [String] fields
|
214
|
+
# Selector specifying which fields to include in a partial response.
|
215
|
+
# @param [String] quota_user
|
216
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
217
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
218
|
+
# @param [Google::Apis::RequestOptions] options
|
219
|
+
# Request-specific options
|
220
|
+
#
|
221
|
+
# @yield [result, err] Result & error if block supplied
|
222
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object
|
223
|
+
# @yieldparam err [StandardError] error object if request failed
|
224
|
+
#
|
225
|
+
# @return [Google::Apis::CloudtasksV2::Queue]
|
226
|
+
#
|
227
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
228
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
229
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
230
|
+
def get_project_location_queue(name, fields: nil, quota_user: nil, options: nil, &block)
|
231
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
232
|
+
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
233
|
+
command.response_class = Google::Apis::CloudtasksV2::Queue
|
234
|
+
command.params['name'] = name unless name.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Gets the access control policy for a Queue.
|
241
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
242
|
+
# set.
|
243
|
+
# Authorization requires the following
|
244
|
+
# [Google IAM](https://cloud.google.com/iam) permission on the specified
|
245
|
+
# resource parent:
|
246
|
+
# * `cloudtasks.queues.getIamPolicy`
|
247
|
+
# @param [String] resource
|
248
|
+
# REQUIRED: The resource for which the policy is being requested.
|
249
|
+
# See the operation documentation for the appropriate value for this field.
|
250
|
+
# @param [Google::Apis::CloudtasksV2::GetIamPolicyRequest] get_iam_policy_request_object
|
251
|
+
# @param [String] fields
|
252
|
+
# Selector specifying which fields to include in a partial response.
|
253
|
+
# @param [String] quota_user
|
254
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
255
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
256
|
+
# @param [Google::Apis::RequestOptions] options
|
257
|
+
# Request-specific options
|
258
|
+
#
|
259
|
+
# @yield [result, err] Result & error if block supplied
|
260
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Policy] parsed result object
|
261
|
+
# @yieldparam err [StandardError] error object if request failed
|
262
|
+
#
|
263
|
+
# @return [Google::Apis::CloudtasksV2::Policy]
|
264
|
+
#
|
265
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
266
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
267
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
268
|
+
def get_queue_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
269
|
+
command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
|
270
|
+
command.request_representation = Google::Apis::CloudtasksV2::GetIamPolicyRequest::Representation
|
271
|
+
command.request_object = get_iam_policy_request_object
|
272
|
+
command.response_representation = Google::Apis::CloudtasksV2::Policy::Representation
|
273
|
+
command.response_class = Google::Apis::CloudtasksV2::Policy
|
274
|
+
command.params['resource'] = resource unless resource.nil?
|
275
|
+
command.query['fields'] = fields unless fields.nil?
|
276
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
277
|
+
execute_or_queue_command(command, &block)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Lists queues.
|
281
|
+
# Queues are returned in lexicographical order.
|
282
|
+
# @param [String] parent
|
283
|
+
# Required.
|
284
|
+
# The location name.
|
285
|
+
# For example: `projects/PROJECT_ID/locations/LOCATION_ID`
|
286
|
+
# @param [String] filter
|
287
|
+
# `filter` can be used to specify a subset of queues. Any Queue
|
288
|
+
# field can be used as a filter and several operators as supported.
|
289
|
+
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
290
|
+
# described in
|
291
|
+
# [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/
|
292
|
+
# view/advanced_filters).
|
293
|
+
# Sample filter "state: PAUSED".
|
294
|
+
# Note that using filters might cause fewer queues than the
|
295
|
+
# requested page_size to be returned.
|
296
|
+
# @param [Fixnum] page_size
|
297
|
+
# Requested page size.
|
298
|
+
# The maximum page size is 9800. If unspecified, the page size will
|
299
|
+
# be the maximum. Fewer queues than requested might be returned,
|
300
|
+
# even if more queues exist; use the
|
301
|
+
# next_page_token in the
|
302
|
+
# response to determine if more queues exist.
|
303
|
+
# @param [String] page_token
|
304
|
+
# A token identifying the page of results to return.
|
305
|
+
# To request the first page results, page_token must be empty. To
|
306
|
+
# request the next page of results, page_token must be the value of
|
307
|
+
# next_page_token returned
|
308
|
+
# from the previous call to ListQueues
|
309
|
+
# method. It is an error to switch the value of the
|
310
|
+
# filter while iterating through pages.
|
311
|
+
# @param [String] fields
|
312
|
+
# Selector specifying which fields to include in a partial response.
|
313
|
+
# @param [String] quota_user
|
314
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
315
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
316
|
+
# @param [Google::Apis::RequestOptions] options
|
317
|
+
# Request-specific options
|
318
|
+
#
|
319
|
+
# @yield [result, err] Result & error if block supplied
|
320
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::ListQueuesResponse] parsed result object
|
321
|
+
# @yieldparam err [StandardError] error object if request failed
|
322
|
+
#
|
323
|
+
# @return [Google::Apis::CloudtasksV2::ListQueuesResponse]
|
324
|
+
#
|
325
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
326
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
327
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
328
|
+
def list_project_location_queues(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
329
|
+
command = make_simple_command(:get, 'v2/{+parent}/queues', options)
|
330
|
+
command.response_representation = Google::Apis::CloudtasksV2::ListQueuesResponse::Representation
|
331
|
+
command.response_class = Google::Apis::CloudtasksV2::ListQueuesResponse
|
332
|
+
command.params['parent'] = parent unless parent.nil?
|
333
|
+
command.query['filter'] = filter unless filter.nil?
|
334
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
335
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
336
|
+
command.query['fields'] = fields unless fields.nil?
|
337
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
338
|
+
execute_or_queue_command(command, &block)
|
339
|
+
end
|
340
|
+
|
341
|
+
# Updates a queue.
|
342
|
+
# This method creates the queue if it does not exist and updates
|
343
|
+
# the queue if it does exist.
|
344
|
+
# Queues created with this method allow tasks to live for a maximum of 31
|
345
|
+
# days. After a task is 31 days old, the task will be deleted regardless of
|
346
|
+
# whether
|
347
|
+
# it was dispatched or not.
|
348
|
+
# WARNING: Using this method may have unintended side effects if you are
|
349
|
+
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
350
|
+
# Read
|
351
|
+
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
352
|
+
# docs/queue-yaml)
|
353
|
+
# before using this method.
|
354
|
+
# @param [String] name
|
355
|
+
# Caller-specified and required in CreateQueue,
|
356
|
+
# after which it becomes output only.
|
357
|
+
# The queue name.
|
358
|
+
# The queue name must have the following format:
|
359
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
360
|
+
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
361
|
+
# hyphens (-), colons (:), or periods (.).
|
362
|
+
# For more information, see
|
363
|
+
# [Identifying
|
364
|
+
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
365
|
+
# projects#identifying_projects)
|
366
|
+
# * `LOCATION_ID` is the canonical ID for the queue's location.
|
367
|
+
# The list of available locations can be obtained by calling
|
368
|
+
# ListLocations.
|
369
|
+
# For more information, see https://cloud.google.com/about/locations/.
|
370
|
+
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
|
371
|
+
# hyphens (-). The maximum length is 100 characters.
|
372
|
+
# @param [Google::Apis::CloudtasksV2::Queue] queue_object
|
373
|
+
# @param [String] update_mask
|
374
|
+
# A mask used to specify which fields of the queue are being updated.
|
375
|
+
# If empty, then all fields will be updated.
|
376
|
+
# @param [String] fields
|
377
|
+
# Selector specifying which fields to include in a partial response.
|
378
|
+
# @param [String] quota_user
|
379
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
380
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
381
|
+
# @param [Google::Apis::RequestOptions] options
|
382
|
+
# Request-specific options
|
383
|
+
#
|
384
|
+
# @yield [result, err] Result & error if block supplied
|
385
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object
|
386
|
+
# @yieldparam err [StandardError] error object if request failed
|
387
|
+
#
|
388
|
+
# @return [Google::Apis::CloudtasksV2::Queue]
|
389
|
+
#
|
390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
393
|
+
def patch_project_location_queue(name, queue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
394
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
395
|
+
command.request_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
396
|
+
command.request_object = queue_object
|
397
|
+
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
398
|
+
command.response_class = Google::Apis::CloudtasksV2::Queue
|
399
|
+
command.params['name'] = name unless name.nil?
|
400
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
401
|
+
command.query['fields'] = fields unless fields.nil?
|
402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
403
|
+
execute_or_queue_command(command, &block)
|
404
|
+
end
|
405
|
+
|
406
|
+
# Pauses the queue.
|
407
|
+
# If a queue is paused then the system will stop dispatching tasks
|
408
|
+
# until the queue is resumed via
|
409
|
+
# ResumeQueue. Tasks can still be added
|
410
|
+
# when the queue is paused. A queue is paused if its
|
411
|
+
# state is PAUSED.
|
412
|
+
# @param [String] name
|
413
|
+
# Required.
|
414
|
+
# The queue name. For example:
|
415
|
+
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
416
|
+
# @param [Google::Apis::CloudtasksV2::PauseQueueRequest] pause_queue_request_object
|
417
|
+
# @param [String] fields
|
418
|
+
# Selector specifying which fields to include in a partial response.
|
419
|
+
# @param [String] quota_user
|
420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
422
|
+
# @param [Google::Apis::RequestOptions] options
|
423
|
+
# Request-specific options
|
424
|
+
#
|
425
|
+
# @yield [result, err] Result & error if block supplied
|
426
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object
|
427
|
+
# @yieldparam err [StandardError] error object if request failed
|
428
|
+
#
|
429
|
+
# @return [Google::Apis::CloudtasksV2::Queue]
|
430
|
+
#
|
431
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
432
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
433
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
434
|
+
def pause_queue(name, pause_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
435
|
+
command = make_simple_command(:post, 'v2/{+name}:pause', options)
|
436
|
+
command.request_representation = Google::Apis::CloudtasksV2::PauseQueueRequest::Representation
|
437
|
+
command.request_object = pause_queue_request_object
|
438
|
+
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
439
|
+
command.response_class = Google::Apis::CloudtasksV2::Queue
|
440
|
+
command.params['name'] = name unless name.nil?
|
441
|
+
command.query['fields'] = fields unless fields.nil?
|
442
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
443
|
+
execute_or_queue_command(command, &block)
|
444
|
+
end
|
445
|
+
|
446
|
+
# Purges a queue by deleting all of its tasks.
|
447
|
+
# All tasks created before this method is called are permanently deleted.
|
448
|
+
# Purge operations can take up to one minute to take effect. Tasks
|
449
|
+
# might be dispatched before the purge takes effect. A purge is irreversible.
|
450
|
+
# @param [String] name
|
451
|
+
# Required.
|
452
|
+
# The queue name. For example:
|
453
|
+
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
454
|
+
# @param [Google::Apis::CloudtasksV2::PurgeQueueRequest] purge_queue_request_object
|
455
|
+
# @param [String] fields
|
456
|
+
# Selector specifying which fields to include in a partial response.
|
457
|
+
# @param [String] quota_user
|
458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
460
|
+
# @param [Google::Apis::RequestOptions] options
|
461
|
+
# Request-specific options
|
462
|
+
#
|
463
|
+
# @yield [result, err] Result & error if block supplied
|
464
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object
|
465
|
+
# @yieldparam err [StandardError] error object if request failed
|
466
|
+
#
|
467
|
+
# @return [Google::Apis::CloudtasksV2::Queue]
|
468
|
+
#
|
469
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
470
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
471
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
472
|
+
def purge_queue(name, purge_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
473
|
+
command = make_simple_command(:post, 'v2/{+name}:purge', options)
|
474
|
+
command.request_representation = Google::Apis::CloudtasksV2::PurgeQueueRequest::Representation
|
475
|
+
command.request_object = purge_queue_request_object
|
476
|
+
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
477
|
+
command.response_class = Google::Apis::CloudtasksV2::Queue
|
478
|
+
command.params['name'] = name unless name.nil?
|
479
|
+
command.query['fields'] = fields unless fields.nil?
|
480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
481
|
+
execute_or_queue_command(command, &block)
|
482
|
+
end
|
483
|
+
|
484
|
+
# Resume a queue.
|
485
|
+
# This method resumes a queue after it has been
|
486
|
+
# PAUSED or
|
487
|
+
# DISABLED. The state of a queue is stored
|
488
|
+
# in the queue's state; after calling this method it
|
489
|
+
# will be set to RUNNING.
|
490
|
+
# WARNING: Resuming many high-QPS queues at the same time can
|
491
|
+
# lead to target overloading. If you are resuming high-QPS
|
492
|
+
# queues, follow the 500/50/5 pattern described in
|
493
|
+
# [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/
|
494
|
+
# manage-cloud-task-scaling).
|
495
|
+
# @param [String] name
|
496
|
+
# Required.
|
497
|
+
# The queue name. For example:
|
498
|
+
# `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
|
499
|
+
# @param [Google::Apis::CloudtasksV2::ResumeQueueRequest] resume_queue_request_object
|
500
|
+
# @param [String] fields
|
501
|
+
# Selector specifying which fields to include in a partial response.
|
502
|
+
# @param [String] quota_user
|
503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
505
|
+
# @param [Google::Apis::RequestOptions] options
|
506
|
+
# Request-specific options
|
507
|
+
#
|
508
|
+
# @yield [result, err] Result & error if block supplied
|
509
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object
|
510
|
+
# @yieldparam err [StandardError] error object if request failed
|
511
|
+
#
|
512
|
+
# @return [Google::Apis::CloudtasksV2::Queue]
|
513
|
+
#
|
514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
517
|
+
def resume_queue(name, resume_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
518
|
+
command = make_simple_command(:post, 'v2/{+name}:resume', options)
|
519
|
+
command.request_representation = Google::Apis::CloudtasksV2::ResumeQueueRequest::Representation
|
520
|
+
command.request_object = resume_queue_request_object
|
521
|
+
command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation
|
522
|
+
command.response_class = Google::Apis::CloudtasksV2::Queue
|
523
|
+
command.params['name'] = name unless name.nil?
|
524
|
+
command.query['fields'] = fields unless fields.nil?
|
525
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
526
|
+
execute_or_queue_command(command, &block)
|
527
|
+
end
|
528
|
+
|
529
|
+
# Sets the access control policy for a Queue. Replaces any existing
|
530
|
+
# policy.
|
531
|
+
# Note: The Cloud Console does not check queue-level IAM permissions yet.
|
532
|
+
# Project-level permissions are required to use the Cloud Console.
|
533
|
+
# Authorization requires the following
|
534
|
+
# [Google IAM](https://cloud.google.com/iam) permission on the specified
|
535
|
+
# resource parent:
|
536
|
+
# * `cloudtasks.queues.setIamPolicy`
|
537
|
+
# @param [String] resource
|
538
|
+
# REQUIRED: The resource for which the policy is being specified.
|
539
|
+
# See the operation documentation for the appropriate value for this field.
|
540
|
+
# @param [Google::Apis::CloudtasksV2::SetIamPolicyRequest] set_iam_policy_request_object
|
541
|
+
# @param [String] fields
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
543
|
+
# @param [String] quota_user
|
544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
546
|
+
# @param [Google::Apis::RequestOptions] options
|
547
|
+
# Request-specific options
|
548
|
+
#
|
549
|
+
# @yield [result, err] Result & error if block supplied
|
550
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Policy] parsed result object
|
551
|
+
# @yieldparam err [StandardError] error object if request failed
|
552
|
+
#
|
553
|
+
# @return [Google::Apis::CloudtasksV2::Policy]
|
554
|
+
#
|
555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
+
def set_queue_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
559
|
+
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
|
560
|
+
command.request_representation = Google::Apis::CloudtasksV2::SetIamPolicyRequest::Representation
|
561
|
+
command.request_object = set_iam_policy_request_object
|
562
|
+
command.response_representation = Google::Apis::CloudtasksV2::Policy::Representation
|
563
|
+
command.response_class = Google::Apis::CloudtasksV2::Policy
|
564
|
+
command.params['resource'] = resource unless resource.nil?
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
567
|
+
execute_or_queue_command(command, &block)
|
568
|
+
end
|
569
|
+
|
570
|
+
# Returns permissions that a caller has on a Queue.
|
571
|
+
# If the resource does not exist, this will return an empty set of
|
572
|
+
# permissions, not a NOT_FOUND error.
|
573
|
+
# Note: This operation is designed to be used for building permission-aware
|
574
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
575
|
+
# may "fail open" without warning.
|
576
|
+
# @param [String] resource
|
577
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
578
|
+
# See the operation documentation for the appropriate value for this field.
|
579
|
+
# @param [Google::Apis::CloudtasksV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
580
|
+
# @param [String] fields
|
581
|
+
# Selector specifying which fields to include in a partial response.
|
582
|
+
# @param [String] quota_user
|
583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
585
|
+
# @param [Google::Apis::RequestOptions] options
|
586
|
+
# Request-specific options
|
587
|
+
#
|
588
|
+
# @yield [result, err] Result & error if block supplied
|
589
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::TestIamPermissionsResponse] parsed result object
|
590
|
+
# @yieldparam err [StandardError] error object if request failed
|
591
|
+
#
|
592
|
+
# @return [Google::Apis::CloudtasksV2::TestIamPermissionsResponse]
|
593
|
+
#
|
594
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
595
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
596
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
597
|
+
def test_queue_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
598
|
+
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
|
599
|
+
command.request_representation = Google::Apis::CloudtasksV2::TestIamPermissionsRequest::Representation
|
600
|
+
command.request_object = test_iam_permissions_request_object
|
601
|
+
command.response_representation = Google::Apis::CloudtasksV2::TestIamPermissionsResponse::Representation
|
602
|
+
command.response_class = Google::Apis::CloudtasksV2::TestIamPermissionsResponse
|
603
|
+
command.params['resource'] = resource unless resource.nil?
|
604
|
+
command.query['fields'] = fields unless fields.nil?
|
605
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
606
|
+
execute_or_queue_command(command, &block)
|
607
|
+
end
|
608
|
+
|
609
|
+
# Creates a task and adds it to a queue.
|
610
|
+
# Tasks cannot be updated after creation; there is no UpdateTask command.
|
611
|
+
# * For App Engine queues, the maximum task size is
|
612
|
+
# 100KB.
|
613
|
+
# @param [String] parent
|
614
|
+
# Required.
|
615
|
+
# The queue name. For example:
|
616
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
617
|
+
# The queue must already exist.
|
618
|
+
# @param [Google::Apis::CloudtasksV2::CreateTaskRequest] create_task_request_object
|
619
|
+
# @param [String] fields
|
620
|
+
# Selector specifying which fields to include in a partial response.
|
621
|
+
# @param [String] quota_user
|
622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
624
|
+
# @param [Google::Apis::RequestOptions] options
|
625
|
+
# Request-specific options
|
626
|
+
#
|
627
|
+
# @yield [result, err] Result & error if block supplied
|
628
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Task] parsed result object
|
629
|
+
# @yieldparam err [StandardError] error object if request failed
|
630
|
+
#
|
631
|
+
# @return [Google::Apis::CloudtasksV2::Task]
|
632
|
+
#
|
633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
636
|
+
def create_task(parent, create_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
637
|
+
command = make_simple_command(:post, 'v2/{+parent}/tasks', options)
|
638
|
+
command.request_representation = Google::Apis::CloudtasksV2::CreateTaskRequest::Representation
|
639
|
+
command.request_object = create_task_request_object
|
640
|
+
command.response_representation = Google::Apis::CloudtasksV2::Task::Representation
|
641
|
+
command.response_class = Google::Apis::CloudtasksV2::Task
|
642
|
+
command.params['parent'] = parent unless parent.nil?
|
643
|
+
command.query['fields'] = fields unless fields.nil?
|
644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
645
|
+
execute_or_queue_command(command, &block)
|
646
|
+
end
|
647
|
+
|
648
|
+
# Deletes a task.
|
649
|
+
# A task can be deleted if it is scheduled or dispatched. A task
|
650
|
+
# cannot be deleted if it has executed successfully or permanently
|
651
|
+
# failed.
|
652
|
+
# @param [String] name
|
653
|
+
# Required.
|
654
|
+
# The task name. For example:
|
655
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
656
|
+
# @param [String] fields
|
657
|
+
# Selector specifying which fields to include in a partial response.
|
658
|
+
# @param [String] quota_user
|
659
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
660
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
661
|
+
# @param [Google::Apis::RequestOptions] options
|
662
|
+
# Request-specific options
|
663
|
+
#
|
664
|
+
# @yield [result, err] Result & error if block supplied
|
665
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Empty] parsed result object
|
666
|
+
# @yieldparam err [StandardError] error object if request failed
|
667
|
+
#
|
668
|
+
# @return [Google::Apis::CloudtasksV2::Empty]
|
669
|
+
#
|
670
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
671
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
672
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
673
|
+
def delete_project_location_queue_task(name, fields: nil, quota_user: nil, options: nil, &block)
|
674
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
675
|
+
command.response_representation = Google::Apis::CloudtasksV2::Empty::Representation
|
676
|
+
command.response_class = Google::Apis::CloudtasksV2::Empty
|
677
|
+
command.params['name'] = name unless name.nil?
|
678
|
+
command.query['fields'] = fields unless fields.nil?
|
679
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
680
|
+
execute_or_queue_command(command, &block)
|
681
|
+
end
|
682
|
+
|
683
|
+
# Gets a task.
|
684
|
+
# @param [String] name
|
685
|
+
# Required.
|
686
|
+
# The task name. For example:
|
687
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
688
|
+
# @param [String] response_view
|
689
|
+
# The response_view specifies which subset of the Task will be
|
690
|
+
# returned.
|
691
|
+
# By default response_view is BASIC; not all
|
692
|
+
# information is retrieved by default because some data, such as
|
693
|
+
# payloads, might be desirable to return only when needed because
|
694
|
+
# of its large size or because of the sensitivity of data that it
|
695
|
+
# contains.
|
696
|
+
# Authorization for FULL requires
|
697
|
+
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
|
698
|
+
# permission on the Task resource.
|
699
|
+
# @param [String] fields
|
700
|
+
# Selector specifying which fields to include in a partial response.
|
701
|
+
# @param [String] quota_user
|
702
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
703
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
704
|
+
# @param [Google::Apis::RequestOptions] options
|
705
|
+
# Request-specific options
|
706
|
+
#
|
707
|
+
# @yield [result, err] Result & error if block supplied
|
708
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Task] parsed result object
|
709
|
+
# @yieldparam err [StandardError] error object if request failed
|
710
|
+
#
|
711
|
+
# @return [Google::Apis::CloudtasksV2::Task]
|
712
|
+
#
|
713
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
714
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
715
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
716
|
+
def get_project_location_queue_task(name, response_view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
717
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
718
|
+
command.response_representation = Google::Apis::CloudtasksV2::Task::Representation
|
719
|
+
command.response_class = Google::Apis::CloudtasksV2::Task
|
720
|
+
command.params['name'] = name unless name.nil?
|
721
|
+
command.query['responseView'] = response_view unless response_view.nil?
|
722
|
+
command.query['fields'] = fields unless fields.nil?
|
723
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
724
|
+
execute_or_queue_command(command, &block)
|
725
|
+
end
|
726
|
+
|
727
|
+
# Lists the tasks in a queue.
|
728
|
+
# By default, only the BASIC view is retrieved
|
729
|
+
# due to performance considerations;
|
730
|
+
# response_view controls the
|
731
|
+
# subset of information which is returned.
|
732
|
+
# The tasks may be returned in any order. The ordering may change at any
|
733
|
+
# time.
|
734
|
+
# @param [String] parent
|
735
|
+
# Required.
|
736
|
+
# The queue name. For example:
|
737
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
738
|
+
# @param [Fixnum] page_size
|
739
|
+
# Requested page size. Fewer tasks than requested might be returned.
|
740
|
+
# The maximum page size is 1000. If unspecified, the page size will
|
741
|
+
# be the maximum. Fewer tasks than requested might be returned,
|
742
|
+
# even if more tasks exist; use
|
743
|
+
# next_page_token in the
|
744
|
+
# response to determine if more tasks exist.
|
745
|
+
# @param [String] page_token
|
746
|
+
# A token identifying the page of results to return.
|
747
|
+
# To request the first page results, page_token must be empty. To
|
748
|
+
# request the next page of results, page_token must be the value of
|
749
|
+
# next_page_token returned
|
750
|
+
# from the previous call to ListTasks
|
751
|
+
# method.
|
752
|
+
# The page token is valid for only 2 hours.
|
753
|
+
# @param [String] response_view
|
754
|
+
# The response_view specifies which subset of the Task will be
|
755
|
+
# returned.
|
756
|
+
# By default response_view is BASIC; not all
|
757
|
+
# information is retrieved by default because some data, such as
|
758
|
+
# payloads, might be desirable to return only when needed because
|
759
|
+
# of its large size or because of the sensitivity of data that it
|
760
|
+
# contains.
|
761
|
+
# Authorization for FULL requires
|
762
|
+
# `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
|
763
|
+
# permission on the Task resource.
|
764
|
+
# @param [String] fields
|
765
|
+
# Selector specifying which fields to include in a partial response.
|
766
|
+
# @param [String] quota_user
|
767
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
768
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
769
|
+
# @param [Google::Apis::RequestOptions] options
|
770
|
+
# Request-specific options
|
771
|
+
#
|
772
|
+
# @yield [result, err] Result & error if block supplied
|
773
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::ListTasksResponse] parsed result object
|
774
|
+
# @yieldparam err [StandardError] error object if request failed
|
775
|
+
#
|
776
|
+
# @return [Google::Apis::CloudtasksV2::ListTasksResponse]
|
777
|
+
#
|
778
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
779
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
780
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
781
|
+
def list_project_location_queue_tasks(parent, page_size: nil, page_token: nil, response_view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
782
|
+
command = make_simple_command(:get, 'v2/{+parent}/tasks', options)
|
783
|
+
command.response_representation = Google::Apis::CloudtasksV2::ListTasksResponse::Representation
|
784
|
+
command.response_class = Google::Apis::CloudtasksV2::ListTasksResponse
|
785
|
+
command.params['parent'] = parent unless parent.nil?
|
786
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
787
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
788
|
+
command.query['responseView'] = response_view unless response_view.nil?
|
789
|
+
command.query['fields'] = fields unless fields.nil?
|
790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
791
|
+
execute_or_queue_command(command, &block)
|
792
|
+
end
|
793
|
+
|
794
|
+
# Forces a task to run now.
|
795
|
+
# When this method is called, Cloud Tasks will dispatch the task, even if
|
796
|
+
# the task is already running, the queue has reached its RateLimits or
|
797
|
+
# is PAUSED.
|
798
|
+
# This command is meant to be used for manual debugging. For
|
799
|
+
# example, RunTask can be used to retry a failed
|
800
|
+
# task after a fix has been made or to manually force a task to be
|
801
|
+
# dispatched now.
|
802
|
+
# The dispatched task is returned. That is, the task that is returned
|
803
|
+
# contains the status after the task is dispatched but
|
804
|
+
# before the task is received by its target.
|
805
|
+
# If Cloud Tasks receives a successful response from the task's
|
806
|
+
# target, then the task will be deleted; otherwise the task's
|
807
|
+
# schedule_time will be reset to the time that
|
808
|
+
# RunTask was called plus the retry delay specified
|
809
|
+
# in the queue's RetryConfig.
|
810
|
+
# RunTask returns
|
811
|
+
# NOT_FOUND when it is called on a
|
812
|
+
# task that has already succeeded or permanently failed.
|
813
|
+
# @param [String] name
|
814
|
+
# Required.
|
815
|
+
# The task name. For example:
|
816
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
|
817
|
+
# @param [Google::Apis::CloudtasksV2::RunTaskRequest] run_task_request_object
|
818
|
+
# @param [String] fields
|
819
|
+
# Selector specifying which fields to include in a partial response.
|
820
|
+
# @param [String] quota_user
|
821
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
822
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
823
|
+
# @param [Google::Apis::RequestOptions] options
|
824
|
+
# Request-specific options
|
825
|
+
#
|
826
|
+
# @yield [result, err] Result & error if block supplied
|
827
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::Task] parsed result object
|
828
|
+
# @yieldparam err [StandardError] error object if request failed
|
829
|
+
#
|
830
|
+
# @return [Google::Apis::CloudtasksV2::Task]
|
831
|
+
#
|
832
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
833
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
834
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
835
|
+
def run_task(name, run_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
836
|
+
command = make_simple_command(:post, 'v2/{+name}:run', options)
|
837
|
+
command.request_representation = Google::Apis::CloudtasksV2::RunTaskRequest::Representation
|
838
|
+
command.request_object = run_task_request_object
|
839
|
+
command.response_representation = Google::Apis::CloudtasksV2::Task::Representation
|
840
|
+
command.response_class = Google::Apis::CloudtasksV2::Task
|
841
|
+
command.params['name'] = name unless name.nil?
|
842
|
+
command.query['fields'] = fields unless fields.nil?
|
843
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
844
|
+
execute_or_queue_command(command, &block)
|
845
|
+
end
|
846
|
+
|
847
|
+
protected
|
848
|
+
|
849
|
+
def apply_command_defaults(command)
|
850
|
+
command.query['key'] = key unless key.nil?
|
851
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
852
|
+
end
|
853
|
+
end
|
854
|
+
end
|
855
|
+
end
|
856
|
+
end
|