google-api-client 0.20.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +140 -0
- data/README.md +3 -12
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
- data/generated/google/apis/admin_directory_v1.rb +3 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
- data/generated/google/apis/admin_directory_v1/service.rb +363 -577
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +21 -35
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +117 -195
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v2_4/service.rb +21 -35
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +32 -60
- data/generated/google/apis/analytics_v3/representations.rb +8 -12
- data/generated/google/apis/analytics_v3/service.rb +261 -435
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
- data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
- data/generated/google/apis/androidpublisher_v3.rb +34 -0
- data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +6 -10
- data/generated/google/apis/appsmarket_v2/service.rb +12 -20
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +18 -30
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +67 -9
- data/generated/google/apis/bigquery_v2/representations.rb +22 -0
- data/generated/google/apis/bigquery_v2/service.rb +69 -115
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
- data/generated/google/apis/blogger_v2/service.rb +30 -50
- data/generated/google/apis/blogger_v3/service.rb +102 -170
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +156 -260
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +114 -190
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +6 -0
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +18 -30
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +0 -69
- data/generated/google/apis/classroom_v1/representations.rb +0 -31
- data/generated/google/apis/classroom_v1/service.rb +0 -88
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
- data/generated/google/apis/cloudiot_v1/service.rb +398 -1
- data/generated/google/apis/cloudkms_v1.rb +2 -2
- data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
- data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
- data/generated/google/apis/composer_v1beta1/service.rb +462 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
- data/generated/google/apis/compute_alpha/representations.rb +1063 -335
- data/generated/google/apis/compute_alpha/service.rb +3532 -3368
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +150 -53
- data/generated/google/apis/compute_beta/representations.rb +23 -0
- data/generated/google/apis/compute_beta/service.rb +1269 -2077
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +46 -43
- data/generated/google/apis/compute_v1/service.rb +1022 -1666
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +20 -15
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +33 -31
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +186 -14
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/container_v1beta1/service.rb +111 -31
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +173 -8
- data/generated/google/apis/content_v2/representations.rb +71 -0
- data/generated/google/apis/content_v2/service.rb +246 -410
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
- data/generated/google/apis/content_v2sandbox/service.rb +63 -105
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +9 -15
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +6 -6
- data/generated/google/apis/dataproc_v1/service.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
- data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
- data/generated/google/apis/datastore_v1.rb +2 -2
- data/generated/google/apis/datastore_v1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +2 -2
- data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
- data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
- data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
- data/generated/google/apis/discovery_v1/service.rb +9 -15
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +116 -1572
- data/generated/google/apis/dlp_v2/representations.rb +673 -1405
- data/generated/google/apis/dlp_v2/service.rb +24 -24
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +7 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +49 -81
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dns_v1beta2/service.rb +49 -81
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dns_v2beta1/service.rb +49 -81
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +205 -341
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +120 -200
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +2 -2
- data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +45 -75
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1/service.rb +99 -165
- data/generated/google/apis/fusiontables_v2/service.rb +105 -175
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +84 -140
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +162 -270
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +41 -7
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
- data/generated/google/apis/gmail_v1/service.rb +189 -315
- data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
- data/generated/google/apis/groupssettings_v1/service.rb +12 -20
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +29 -7
- data/generated/google/apis/iam_v1/service.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
- data/generated/google/apis/jobs_v2.rb +38 -0
- data/generated/google/apis/jobs_v2/classes.rb +3378 -0
- data/generated/google/apis/jobs_v2/representations.rb +1067 -0
- data/generated/google/apis/jobs_v2/service.rb +754 -0
- data/generated/google/apis/licensing_v1/service.rb +24 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +55 -5
- data/generated/google/apis/logging_v2/representations.rb +16 -0
- data/generated/google/apis/logging_v2/service.rb +6 -4
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
- data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
- data/generated/google/apis/logging_v2beta1/service.rb +6 -4
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +75 -125
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +65 -28
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +27 -45
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +15 -25
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
- data/generated/google/apis/photoslibrary_v1.rb +49 -0
- data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
- data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
- data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +63 -105
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +30 -50
- data/generated/google/apis/pubsub_v1.rb +2 -2
- data/generated/google/apis/pubsub_v1/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
- data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
- data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
- data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
- data/generated/google/apis/redis_v1beta1/service.rb +426 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
- data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
- data/generated/google/apis/reseller_v1/service.rb +54 -90
- data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
- data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
- data/generated/google/apis/runtimeconfig_v1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/script_v1.rb +8 -2
- data/generated/google/apis/script_v1/classes.rb +3 -3
- data/generated/google/apis/script_v1/service.rb +8 -2
- data/generated/google/apis/servicebroker_v1.rb +36 -0
- data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
- data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
- data/generated/google/apis/servicebroker_v1/service.rb +168 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
- data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
- data/generated/google/apis/servicecontrol_v1.rb +2 -2
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +2 -2
- data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +421 -0
- data/generated/google/apis/sheets_v4/representations.rb +120 -0
- data/generated/google/apis/site_verification_v1/service.rb +24 -40
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +6 -2
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +39 -12
- data/generated/google/apis/spanner_v1/service.rb +2 -2
- data/generated/google/apis/spectrum_v1explorer.rb +1 -1
- data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +12 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
- data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -6
- data/generated/google/apis/storage_v1/service.rb +144 -240
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +75 -125
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +105 -175
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +19 -122
- data/generated/google/apis/surveys_v2/representations.rb +0 -38
- data/generated/google/apis/surveys_v2/service.rb +27 -157
- data/generated/google/apis/tagmanager_v1/service.rb +153 -255
- data/generated/google/apis/tagmanager_v2/service.rb +222 -370
- data/generated/google/apis/tasks_v1/service.rb +45 -75
- data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/urlshortener_v1/service.rb +12 -20
- data/generated/google/apis/vault_v1.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +34 -0
- data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
- data/generated/google/apis/videointelligence_v1/service.rb +246 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
- data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
- data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/webfonts_v1/service.rb +6 -10
- data/generated/google/apis/webmasters_v3/service.rb +42 -70
- data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v2.rb +46 -0
- data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
- data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
- data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -168
- data/generated/google/apis/youtube_v3/representations.rb +0 -62
- data/generated/google/apis/youtube_v3/service.rb +216 -415
- data/lib/google/apis/generator/helpers.rb +3 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +50 -38
- data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
- data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
- data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
- data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
- data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
- data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
- data/generated/google/apis/prediction_v1_2.rb +0 -44
- data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
- data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
- data/generated/google/apis/prediction_v1_2/service.rb +0 -287
- data/generated/google/apis/prediction_v1_3.rb +0 -44
- data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
- data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
- data/generated/google/apis/prediction_v1_3/service.rb +0 -284
- data/generated/google/apis/prediction_v1_4.rb +0 -44
- data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
- data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
- data/generated/google/apis/prediction_v1_4/service.rb +0 -284
- data/generated/google/apis/prediction_v1_5.rb +0 -44
- data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
- data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
- data/generated/google/apis/prediction_v1_5/service.rb +0 -357
- data/generated/google/apis/prediction_v1_6.rb +0 -47
- data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
- data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
- data/generated/google/apis/prediction_v1_6/service.rb +0 -381
- data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
- data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
- data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -1,254 +0,0 @@
|
|
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 TaskqueueV1beta2
|
24
|
-
|
25
|
-
#
|
26
|
-
class Task
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Time (in seconds since the epoch) at which the task was enqueued.
|
30
|
-
# Corresponds to the JSON property `enqueueTimestamp`
|
31
|
-
# @return [Fixnum]
|
32
|
-
attr_accessor :enqueue_timestamp
|
33
|
-
|
34
|
-
# Name of the task.
|
35
|
-
# Corresponds to the JSON property `id`
|
36
|
-
# @return [String]
|
37
|
-
attr_accessor :id
|
38
|
-
|
39
|
-
# The kind of object returned, in this case set to task.
|
40
|
-
# Corresponds to the JSON property `kind`
|
41
|
-
# @return [String]
|
42
|
-
attr_accessor :kind
|
43
|
-
|
44
|
-
# Time (in seconds since the epoch) at which the task lease will expire. This
|
45
|
-
# value is 0 if the task isnt currently leased out to a worker.
|
46
|
-
# Corresponds to the JSON property `leaseTimestamp`
|
47
|
-
# @return [Fixnum]
|
48
|
-
attr_accessor :lease_timestamp
|
49
|
-
|
50
|
-
# A bag of bytes which is the task payload. The payload on the JSON side is
|
51
|
-
# always Base64 encoded.
|
52
|
-
# Corresponds to the JSON property `payloadBase64`
|
53
|
-
# @return [String]
|
54
|
-
attr_accessor :payload_base64
|
55
|
-
|
56
|
-
# Name of the queue that the task is in.
|
57
|
-
# Corresponds to the JSON property `queueName`
|
58
|
-
# @return [String]
|
59
|
-
attr_accessor :queue_name
|
60
|
-
|
61
|
-
# The number of leases applied to this task.
|
62
|
-
# Corresponds to the JSON property `retry_count`
|
63
|
-
# @return [Fixnum]
|
64
|
-
attr_accessor :retry_count
|
65
|
-
|
66
|
-
# Tag for the task, could be used later to lease tasks grouped by a specific tag.
|
67
|
-
# Corresponds to the JSON property `tag`
|
68
|
-
# @return [String]
|
69
|
-
attr_accessor :tag
|
70
|
-
|
71
|
-
def initialize(**args)
|
72
|
-
update!(**args)
|
73
|
-
end
|
74
|
-
|
75
|
-
# Update properties of this object
|
76
|
-
def update!(**args)
|
77
|
-
@enqueue_timestamp = args[:enqueue_timestamp] if args.key?(:enqueue_timestamp)
|
78
|
-
@id = args[:id] if args.key?(:id)
|
79
|
-
@kind = args[:kind] if args.key?(:kind)
|
80
|
-
@lease_timestamp = args[:lease_timestamp] if args.key?(:lease_timestamp)
|
81
|
-
@payload_base64 = args[:payload_base64] if args.key?(:payload_base64)
|
82
|
-
@queue_name = args[:queue_name] if args.key?(:queue_name)
|
83
|
-
@retry_count = args[:retry_count] if args.key?(:retry_count)
|
84
|
-
@tag = args[:tag] if args.key?(:tag)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
#
|
89
|
-
class TaskQueue
|
90
|
-
include Google::Apis::Core::Hashable
|
91
|
-
|
92
|
-
# ACLs that are applicable to this TaskQueue object.
|
93
|
-
# Corresponds to the JSON property `acl`
|
94
|
-
# @return [Google::Apis::TaskqueueV1beta2::TaskQueue::Acl]
|
95
|
-
attr_accessor :acl
|
96
|
-
|
97
|
-
# Name of the taskqueue.
|
98
|
-
# Corresponds to the JSON property `id`
|
99
|
-
# @return [String]
|
100
|
-
attr_accessor :id
|
101
|
-
|
102
|
-
# The kind of REST object returned, in this case taskqueue.
|
103
|
-
# Corresponds to the JSON property `kind`
|
104
|
-
# @return [String]
|
105
|
-
attr_accessor :kind
|
106
|
-
|
107
|
-
# The number of times we should lease out tasks before giving up on them. If
|
108
|
-
# unset we lease them out forever until a worker deletes the task.
|
109
|
-
# Corresponds to the JSON property `maxLeases`
|
110
|
-
# @return [Fixnum]
|
111
|
-
attr_accessor :max_leases
|
112
|
-
|
113
|
-
# Statistics for the TaskQueue object in question.
|
114
|
-
# Corresponds to the JSON property `stats`
|
115
|
-
# @return [Google::Apis::TaskqueueV1beta2::TaskQueue::Stats]
|
116
|
-
attr_accessor :stats
|
117
|
-
|
118
|
-
def initialize(**args)
|
119
|
-
update!(**args)
|
120
|
-
end
|
121
|
-
|
122
|
-
# Update properties of this object
|
123
|
-
def update!(**args)
|
124
|
-
@acl = args[:acl] if args.key?(:acl)
|
125
|
-
@id = args[:id] if args.key?(:id)
|
126
|
-
@kind = args[:kind] if args.key?(:kind)
|
127
|
-
@max_leases = args[:max_leases] if args.key?(:max_leases)
|
128
|
-
@stats = args[:stats] if args.key?(:stats)
|
129
|
-
end
|
130
|
-
|
131
|
-
# ACLs that are applicable to this TaskQueue object.
|
132
|
-
class Acl
|
133
|
-
include Google::Apis::Core::Hashable
|
134
|
-
|
135
|
-
# Email addresses of users who are "admins" of the TaskQueue. This means they
|
136
|
-
# can control the queue, eg set ACLs for the queue.
|
137
|
-
# Corresponds to the JSON property `adminEmails`
|
138
|
-
# @return [Array<String>]
|
139
|
-
attr_accessor :admin_emails
|
140
|
-
|
141
|
-
# Email addresses of users who can "consume" tasks from the TaskQueue. This
|
142
|
-
# means they can Dequeue and Delete tasks from the queue.
|
143
|
-
# Corresponds to the JSON property `consumerEmails`
|
144
|
-
# @return [Array<String>]
|
145
|
-
attr_accessor :consumer_emails
|
146
|
-
|
147
|
-
# Email addresses of users who can "produce" tasks into the TaskQueue. This
|
148
|
-
# means they can Insert tasks into the queue.
|
149
|
-
# Corresponds to the JSON property `producerEmails`
|
150
|
-
# @return [Array<String>]
|
151
|
-
attr_accessor :producer_emails
|
152
|
-
|
153
|
-
def initialize(**args)
|
154
|
-
update!(**args)
|
155
|
-
end
|
156
|
-
|
157
|
-
# Update properties of this object
|
158
|
-
def update!(**args)
|
159
|
-
@admin_emails = args[:admin_emails] if args.key?(:admin_emails)
|
160
|
-
@consumer_emails = args[:consumer_emails] if args.key?(:consumer_emails)
|
161
|
-
@producer_emails = args[:producer_emails] if args.key?(:producer_emails)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
# Statistics for the TaskQueue object in question.
|
166
|
-
class Stats
|
167
|
-
include Google::Apis::Core::Hashable
|
168
|
-
|
169
|
-
# Number of tasks leased in the last hour.
|
170
|
-
# Corresponds to the JSON property `leasedLastHour`
|
171
|
-
# @return [Fixnum]
|
172
|
-
attr_accessor :leased_last_hour
|
173
|
-
|
174
|
-
# Number of tasks leased in the last minute.
|
175
|
-
# Corresponds to the JSON property `leasedLastMinute`
|
176
|
-
# @return [Fixnum]
|
177
|
-
attr_accessor :leased_last_minute
|
178
|
-
|
179
|
-
# The timestamp (in seconds since the epoch) of the oldest unfinished task.
|
180
|
-
# Corresponds to the JSON property `oldestTask`
|
181
|
-
# @return [Fixnum]
|
182
|
-
attr_accessor :oldest_task
|
183
|
-
|
184
|
-
# Number of tasks in the queue.
|
185
|
-
# Corresponds to the JSON property `totalTasks`
|
186
|
-
# @return [Fixnum]
|
187
|
-
attr_accessor :total_tasks
|
188
|
-
|
189
|
-
def initialize(**args)
|
190
|
-
update!(**args)
|
191
|
-
end
|
192
|
-
|
193
|
-
# Update properties of this object
|
194
|
-
def update!(**args)
|
195
|
-
@leased_last_hour = args[:leased_last_hour] if args.key?(:leased_last_hour)
|
196
|
-
@leased_last_minute = args[:leased_last_minute] if args.key?(:leased_last_minute)
|
197
|
-
@oldest_task = args[:oldest_task] if args.key?(:oldest_task)
|
198
|
-
@total_tasks = args[:total_tasks] if args.key?(:total_tasks)
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
#
|
204
|
-
class Tasks
|
205
|
-
include Google::Apis::Core::Hashable
|
206
|
-
|
207
|
-
# The actual list of tasks returned as a result of the lease operation.
|
208
|
-
# Corresponds to the JSON property `items`
|
209
|
-
# @return [Array<Google::Apis::TaskqueueV1beta2::Task>]
|
210
|
-
attr_accessor :items
|
211
|
-
|
212
|
-
# The kind of object returned, a list of tasks.
|
213
|
-
# Corresponds to the JSON property `kind`
|
214
|
-
# @return [String]
|
215
|
-
attr_accessor :kind
|
216
|
-
|
217
|
-
def initialize(**args)
|
218
|
-
update!(**args)
|
219
|
-
end
|
220
|
-
|
221
|
-
# Update properties of this object
|
222
|
-
def update!(**args)
|
223
|
-
@items = args[:items] if args.key?(:items)
|
224
|
-
@kind = args[:kind] if args.key?(:kind)
|
225
|
-
end
|
226
|
-
end
|
227
|
-
|
228
|
-
#
|
229
|
-
class Tasks2
|
230
|
-
include Google::Apis::Core::Hashable
|
231
|
-
|
232
|
-
# The actual list of tasks currently active in the TaskQueue.
|
233
|
-
# Corresponds to the JSON property `items`
|
234
|
-
# @return [Array<Google::Apis::TaskqueueV1beta2::Task>]
|
235
|
-
attr_accessor :items
|
236
|
-
|
237
|
-
# The kind of object returned, a list of tasks.
|
238
|
-
# Corresponds to the JSON property `kind`
|
239
|
-
# @return [String]
|
240
|
-
attr_accessor :kind
|
241
|
-
|
242
|
-
def initialize(**args)
|
243
|
-
update!(**args)
|
244
|
-
end
|
245
|
-
|
246
|
-
# Update properties of this object
|
247
|
-
def update!(**args)
|
248
|
-
@items = args[:items] if args.key?(:items)
|
249
|
-
@kind = args[:kind] if args.key?(:kind)
|
250
|
-
end
|
251
|
-
end
|
252
|
-
end
|
253
|
-
end
|
254
|
-
end
|
@@ -1,126 +0,0 @@
|
|
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 TaskqueueV1beta2
|
24
|
-
|
25
|
-
class Task
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class TaskQueue
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
class Acl
|
35
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
36
|
-
|
37
|
-
include Google::Apis::Core::JsonObjectSupport
|
38
|
-
end
|
39
|
-
|
40
|
-
class Stats
|
41
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
42
|
-
|
43
|
-
include Google::Apis::Core::JsonObjectSupport
|
44
|
-
end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class Tasks
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class Tasks2
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class Task
|
62
|
-
# @private
|
63
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
64
|
-
property :enqueue_timestamp, :numeric_string => true, as: 'enqueueTimestamp'
|
65
|
-
property :id, as: 'id'
|
66
|
-
property :kind, as: 'kind'
|
67
|
-
property :lease_timestamp, :numeric_string => true, as: 'leaseTimestamp'
|
68
|
-
property :payload_base64, as: 'payloadBase64'
|
69
|
-
property :queue_name, as: 'queueName'
|
70
|
-
property :retry_count, as: 'retry_count'
|
71
|
-
property :tag, as: 'tag'
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
class TaskQueue
|
76
|
-
# @private
|
77
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
78
|
-
property :acl, as: 'acl', class: Google::Apis::TaskqueueV1beta2::TaskQueue::Acl, decorator: Google::Apis::TaskqueueV1beta2::TaskQueue::Acl::Representation
|
79
|
-
|
80
|
-
property :id, as: 'id'
|
81
|
-
property :kind, as: 'kind'
|
82
|
-
property :max_leases, as: 'maxLeases'
|
83
|
-
property :stats, as: 'stats', class: Google::Apis::TaskqueueV1beta2::TaskQueue::Stats, decorator: Google::Apis::TaskqueueV1beta2::TaskQueue::Stats::Representation
|
84
|
-
|
85
|
-
end
|
86
|
-
|
87
|
-
class Acl
|
88
|
-
# @private
|
89
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
90
|
-
collection :admin_emails, as: 'adminEmails'
|
91
|
-
collection :consumer_emails, as: 'consumerEmails'
|
92
|
-
collection :producer_emails, as: 'producerEmails'
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
class Stats
|
97
|
-
# @private
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
99
|
-
property :leased_last_hour, :numeric_string => true, as: 'leasedLastHour'
|
100
|
-
property :leased_last_minute, :numeric_string => true, as: 'leasedLastMinute'
|
101
|
-
property :oldest_task, :numeric_string => true, as: 'oldestTask'
|
102
|
-
property :total_tasks, as: 'totalTasks'
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
class Tasks
|
108
|
-
# @private
|
109
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
110
|
-
collection :items, as: 'items', class: Google::Apis::TaskqueueV1beta2::Task, decorator: Google::Apis::TaskqueueV1beta2::Task::Representation
|
111
|
-
|
112
|
-
property :kind, as: 'kind'
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
class Tasks2
|
117
|
-
# @private
|
118
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
119
|
-
collection :items, as: 'items', class: Google::Apis::TaskqueueV1beta2::Task, decorator: Google::Apis::TaskqueueV1beta2::Task::Representation
|
120
|
-
|
121
|
-
property :kind, as: 'kind'
|
122
|
-
end
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
@@ -1,409 +0,0 @@
|
|
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 TaskqueueV1beta2
|
23
|
-
# TaskQueue API
|
24
|
-
#
|
25
|
-
# Accesses a Google App Engine Pull Task Queue over REST.
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/taskqueue_v1beta2'
|
29
|
-
#
|
30
|
-
# Taskqueue = Google::Apis::TaskqueueV1beta2 # Alias the module
|
31
|
-
# service = Taskqueue::TaskqueueService.new
|
32
|
-
#
|
33
|
-
# @see https://developers.google.com/appengine/docs/python/taskqueue/rest
|
34
|
-
class TaskqueueService < 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
|
-
# Overrides userIp if both are provided.
|
44
|
-
attr_accessor :quota_user
|
45
|
-
|
46
|
-
# @return [String]
|
47
|
-
# IP address of the site where the request originates. Use this if you want to
|
48
|
-
# enforce per-user limits.
|
49
|
-
attr_accessor :user_ip
|
50
|
-
|
51
|
-
def initialize
|
52
|
-
super('https://www.googleapis.com/', 'taskqueue/v1beta2/projects/')
|
53
|
-
@batch_path = 'batch/taskqueue/v1beta2'
|
54
|
-
end
|
55
|
-
|
56
|
-
# Get detailed information about a TaskQueue.
|
57
|
-
# @param [String] project
|
58
|
-
# The project under which the queue lies.
|
59
|
-
# @param [String] taskqueue
|
60
|
-
# The id of the taskqueue to get the properties of.
|
61
|
-
# @param [Boolean] get_stats
|
62
|
-
# Whether to get stats. Optional.
|
63
|
-
# @param [String] fields
|
64
|
-
# Selector specifying which fields to include in a partial response.
|
65
|
-
# @param [String] quota_user
|
66
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
-
# Overrides userIp if both are provided.
|
69
|
-
# @param [String] user_ip
|
70
|
-
# IP address of the site where the request originates. Use this if you want to
|
71
|
-
# enforce per-user limits.
|
72
|
-
# @param [Google::Apis::RequestOptions] options
|
73
|
-
# Request-specific options
|
74
|
-
#
|
75
|
-
# @yield [result, err] Result & error if block supplied
|
76
|
-
# @yieldparam result [Google::Apis::TaskqueueV1beta2::TaskQueue] parsed result object
|
77
|
-
# @yieldparam err [StandardError] error object if request failed
|
78
|
-
#
|
79
|
-
# @return [Google::Apis::TaskqueueV1beta2::TaskQueue]
|
80
|
-
#
|
81
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
82
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
83
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
84
|
-
def get_taskqueue(project, taskqueue, get_stats: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
85
|
-
command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}', options)
|
86
|
-
command.response_representation = Google::Apis::TaskqueueV1beta2::TaskQueue::Representation
|
87
|
-
command.response_class = Google::Apis::TaskqueueV1beta2::TaskQueue
|
88
|
-
command.params['project'] = project unless project.nil?
|
89
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
90
|
-
command.query['getStats'] = get_stats unless get_stats.nil?
|
91
|
-
command.query['fields'] = fields unless fields.nil?
|
92
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
93
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
94
|
-
execute_or_queue_command(command, &block)
|
95
|
-
end
|
96
|
-
|
97
|
-
# Delete a task from a TaskQueue.
|
98
|
-
# @param [String] project
|
99
|
-
# The project under which the queue lies.
|
100
|
-
# @param [String] taskqueue
|
101
|
-
# The taskqueue to delete a task from.
|
102
|
-
# @param [String] task
|
103
|
-
# The id of the task to delete.
|
104
|
-
# @param [String] fields
|
105
|
-
# Selector specifying which fields to include in a partial response.
|
106
|
-
# @param [String] quota_user
|
107
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
108
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
109
|
-
# Overrides userIp if both are provided.
|
110
|
-
# @param [String] user_ip
|
111
|
-
# IP address of the site where the request originates. Use this if you want to
|
112
|
-
# enforce per-user limits.
|
113
|
-
# @param [Google::Apis::RequestOptions] options
|
114
|
-
# Request-specific options
|
115
|
-
#
|
116
|
-
# @yield [result, err] Result & error if block supplied
|
117
|
-
# @yieldparam result [NilClass] No result returned for this method
|
118
|
-
# @yieldparam err [StandardError] error object if request failed
|
119
|
-
#
|
120
|
-
# @return [void]
|
121
|
-
#
|
122
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
123
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
124
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
125
|
-
def delete_task(project, taskqueue, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
126
|
-
command = make_simple_command(:delete, '{project}/taskqueues/{taskqueue}/tasks/{task}', options)
|
127
|
-
command.params['project'] = project unless project.nil?
|
128
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
129
|
-
command.params['task'] = task unless task.nil?
|
130
|
-
command.query['fields'] = fields unless fields.nil?
|
131
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
132
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
133
|
-
execute_or_queue_command(command, &block)
|
134
|
-
end
|
135
|
-
|
136
|
-
# Get a particular task from a TaskQueue.
|
137
|
-
# @param [String] project
|
138
|
-
# The project under which the queue lies.
|
139
|
-
# @param [String] taskqueue
|
140
|
-
# The taskqueue in which the task belongs.
|
141
|
-
# @param [String] task
|
142
|
-
# The task to get properties of.
|
143
|
-
# @param [String] fields
|
144
|
-
# Selector specifying which fields to include in a partial response.
|
145
|
-
# @param [String] quota_user
|
146
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
147
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
148
|
-
# Overrides userIp if both are provided.
|
149
|
-
# @param [String] user_ip
|
150
|
-
# IP address of the site where the request originates. Use this if you want to
|
151
|
-
# enforce per-user limits.
|
152
|
-
# @param [Google::Apis::RequestOptions] options
|
153
|
-
# Request-specific options
|
154
|
-
#
|
155
|
-
# @yield [result, err] Result & error if block supplied
|
156
|
-
# @yieldparam result [Google::Apis::TaskqueueV1beta2::Task] parsed result object
|
157
|
-
# @yieldparam err [StandardError] error object if request failed
|
158
|
-
#
|
159
|
-
# @return [Google::Apis::TaskqueueV1beta2::Task]
|
160
|
-
#
|
161
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
162
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
163
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
164
|
-
def get_task(project, taskqueue, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
165
|
-
command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}/tasks/{task}', options)
|
166
|
-
command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation
|
167
|
-
command.response_class = Google::Apis::TaskqueueV1beta2::Task
|
168
|
-
command.params['project'] = project unless project.nil?
|
169
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
170
|
-
command.params['task'] = task unless task.nil?
|
171
|
-
command.query['fields'] = fields unless fields.nil?
|
172
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
173
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
174
|
-
execute_or_queue_command(command, &block)
|
175
|
-
end
|
176
|
-
|
177
|
-
# Insert a new task in a TaskQueue
|
178
|
-
# @param [String] project
|
179
|
-
# The project under which the queue lies
|
180
|
-
# @param [String] taskqueue
|
181
|
-
# The taskqueue to insert the task into
|
182
|
-
# @param [Google::Apis::TaskqueueV1beta2::Task] task_object
|
183
|
-
# @param [String] fields
|
184
|
-
# Selector specifying which fields to include in a partial response.
|
185
|
-
# @param [String] quota_user
|
186
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
187
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
188
|
-
# Overrides userIp if both are provided.
|
189
|
-
# @param [String] user_ip
|
190
|
-
# IP address of the site where the request originates. Use this if you want to
|
191
|
-
# enforce per-user limits.
|
192
|
-
# @param [Google::Apis::RequestOptions] options
|
193
|
-
# Request-specific options
|
194
|
-
#
|
195
|
-
# @yield [result, err] Result & error if block supplied
|
196
|
-
# @yieldparam result [Google::Apis::TaskqueueV1beta2::Task] parsed result object
|
197
|
-
# @yieldparam err [StandardError] error object if request failed
|
198
|
-
#
|
199
|
-
# @return [Google::Apis::TaskqueueV1beta2::Task]
|
200
|
-
#
|
201
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
202
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
203
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
204
|
-
def insert_task(project, taskqueue, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
205
|
-
command = make_simple_command(:post, '{project}/taskqueues/{taskqueue}/tasks', options)
|
206
|
-
command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation
|
207
|
-
command.request_object = task_object
|
208
|
-
command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation
|
209
|
-
command.response_class = Google::Apis::TaskqueueV1beta2::Task
|
210
|
-
command.params['project'] = project unless project.nil?
|
211
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
212
|
-
command.query['fields'] = fields unless fields.nil?
|
213
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
214
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
215
|
-
execute_or_queue_command(command, &block)
|
216
|
-
end
|
217
|
-
|
218
|
-
# Lease 1 or more tasks from a TaskQueue.
|
219
|
-
# @param [String] project
|
220
|
-
# The project under which the queue lies.
|
221
|
-
# @param [String] taskqueue
|
222
|
-
# The taskqueue to lease a task from.
|
223
|
-
# @param [Fixnum] num_tasks
|
224
|
-
# The number of tasks to lease.
|
225
|
-
# @param [Fixnum] lease_secs
|
226
|
-
# The lease in seconds.
|
227
|
-
# @param [Boolean] group_by_tag
|
228
|
-
# When true, all returned tasks will have the same tag
|
229
|
-
# @param [String] tag
|
230
|
-
# The tag allowed for tasks in the response. Must only be specified if
|
231
|
-
# group_by_tag is true. If group_by_tag is true and tag is not specified the tag
|
232
|
-
# will be that of the oldest task by eta, i.e. the first available tag
|
233
|
-
# @param [String] fields
|
234
|
-
# Selector specifying which fields to include in a partial response.
|
235
|
-
# @param [String] quota_user
|
236
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
237
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
238
|
-
# Overrides userIp if both are provided.
|
239
|
-
# @param [String] user_ip
|
240
|
-
# IP address of the site where the request originates. Use this if you want to
|
241
|
-
# enforce per-user limits.
|
242
|
-
# @param [Google::Apis::RequestOptions] options
|
243
|
-
# Request-specific options
|
244
|
-
#
|
245
|
-
# @yield [result, err] Result & error if block supplied
|
246
|
-
# @yieldparam result [Google::Apis::TaskqueueV1beta2::Tasks] parsed result object
|
247
|
-
# @yieldparam err [StandardError] error object if request failed
|
248
|
-
#
|
249
|
-
# @return [Google::Apis::TaskqueueV1beta2::Tasks]
|
250
|
-
#
|
251
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
-
def lease_task(project, taskqueue, num_tasks, lease_secs, group_by_tag: nil, tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
255
|
-
command = make_simple_command(:post, '{project}/taskqueues/{taskqueue}/tasks/lease', options)
|
256
|
-
command.response_representation = Google::Apis::TaskqueueV1beta2::Tasks::Representation
|
257
|
-
command.response_class = Google::Apis::TaskqueueV1beta2::Tasks
|
258
|
-
command.params['project'] = project unless project.nil?
|
259
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
260
|
-
command.query['groupByTag'] = group_by_tag unless group_by_tag.nil?
|
261
|
-
command.query['leaseSecs'] = lease_secs unless lease_secs.nil?
|
262
|
-
command.query['numTasks'] = num_tasks unless num_tasks.nil?
|
263
|
-
command.query['tag'] = tag unless tag.nil?
|
264
|
-
command.query['fields'] = fields unless fields.nil?
|
265
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
266
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
267
|
-
execute_or_queue_command(command, &block)
|
268
|
-
end
|
269
|
-
|
270
|
-
# List Tasks in a TaskQueue
|
271
|
-
# @param [String] project
|
272
|
-
# The project under which the queue lies.
|
273
|
-
# @param [String] taskqueue
|
274
|
-
# The id of the taskqueue to list tasks from.
|
275
|
-
# @param [String] fields
|
276
|
-
# Selector specifying which fields to include in a partial response.
|
277
|
-
# @param [String] quota_user
|
278
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
279
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
280
|
-
# Overrides userIp if both are provided.
|
281
|
-
# @param [String] user_ip
|
282
|
-
# IP address of the site where the request originates. Use this if you want to
|
283
|
-
# enforce per-user limits.
|
284
|
-
# @param [Google::Apis::RequestOptions] options
|
285
|
-
# Request-specific options
|
286
|
-
#
|
287
|
-
# @yield [result, err] Result & error if block supplied
|
288
|
-
# @yieldparam result [Google::Apis::TaskqueueV1beta2::Tasks2] parsed result object
|
289
|
-
# @yieldparam err [StandardError] error object if request failed
|
290
|
-
#
|
291
|
-
# @return [Google::Apis::TaskqueueV1beta2::Tasks2]
|
292
|
-
#
|
293
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
294
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
295
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
296
|
-
def list_tasks(project, taskqueue, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
297
|
-
command = make_simple_command(:get, '{project}/taskqueues/{taskqueue}/tasks', options)
|
298
|
-
command.response_representation = Google::Apis::TaskqueueV1beta2::Tasks2::Representation
|
299
|
-
command.response_class = Google::Apis::TaskqueueV1beta2::Tasks2
|
300
|
-
command.params['project'] = project unless project.nil?
|
301
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
302
|
-
command.query['fields'] = fields unless fields.nil?
|
303
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
304
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
305
|
-
execute_or_queue_command(command, &block)
|
306
|
-
end
|
307
|
-
|
308
|
-
# Update tasks that are leased out of a TaskQueue. This method supports patch
|
309
|
-
# semantics.
|
310
|
-
# @param [String] project
|
311
|
-
# The project under which the queue lies.
|
312
|
-
# @param [String] taskqueue
|
313
|
-
# @param [String] task
|
314
|
-
# @param [Fixnum] new_lease_seconds
|
315
|
-
# The new lease in seconds.
|
316
|
-
# @param [Google::Apis::TaskqueueV1beta2::Task] task_object
|
317
|
-
# @param [String] fields
|
318
|
-
# Selector specifying which fields to include in a partial response.
|
319
|
-
# @param [String] quota_user
|
320
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
321
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
322
|
-
# Overrides userIp if both are provided.
|
323
|
-
# @param [String] user_ip
|
324
|
-
# IP address of the site where the request originates. Use this if you want to
|
325
|
-
# enforce per-user limits.
|
326
|
-
# @param [Google::Apis::RequestOptions] options
|
327
|
-
# Request-specific options
|
328
|
-
#
|
329
|
-
# @yield [result, err] Result & error if block supplied
|
330
|
-
# @yieldparam result [Google::Apis::TaskqueueV1beta2::Task] parsed result object
|
331
|
-
# @yieldparam err [StandardError] error object if request failed
|
332
|
-
#
|
333
|
-
# @return [Google::Apis::TaskqueueV1beta2::Task]
|
334
|
-
#
|
335
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
336
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
337
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
338
|
-
def patch_task(project, taskqueue, task, new_lease_seconds, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
339
|
-
command = make_simple_command(:patch, '{project}/taskqueues/{taskqueue}/tasks/{task}', options)
|
340
|
-
command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation
|
341
|
-
command.request_object = task_object
|
342
|
-
command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation
|
343
|
-
command.response_class = Google::Apis::TaskqueueV1beta2::Task
|
344
|
-
command.params['project'] = project unless project.nil?
|
345
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
346
|
-
command.params['task'] = task unless task.nil?
|
347
|
-
command.query['newLeaseSeconds'] = new_lease_seconds unless new_lease_seconds.nil?
|
348
|
-
command.query['fields'] = fields unless fields.nil?
|
349
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
350
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
351
|
-
execute_or_queue_command(command, &block)
|
352
|
-
end
|
353
|
-
|
354
|
-
# Update tasks that are leased out of a TaskQueue.
|
355
|
-
# @param [String] project
|
356
|
-
# The project under which the queue lies.
|
357
|
-
# @param [String] taskqueue
|
358
|
-
# @param [String] task
|
359
|
-
# @param [Fixnum] new_lease_seconds
|
360
|
-
# The new lease in seconds.
|
361
|
-
# @param [Google::Apis::TaskqueueV1beta2::Task] task_object
|
362
|
-
# @param [String] fields
|
363
|
-
# Selector specifying which fields to include in a partial response.
|
364
|
-
# @param [String] quota_user
|
365
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
366
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
367
|
-
# Overrides userIp if both are provided.
|
368
|
-
# @param [String] user_ip
|
369
|
-
# IP address of the site where the request originates. Use this if you want to
|
370
|
-
# enforce per-user limits.
|
371
|
-
# @param [Google::Apis::RequestOptions] options
|
372
|
-
# Request-specific options
|
373
|
-
#
|
374
|
-
# @yield [result, err] Result & error if block supplied
|
375
|
-
# @yieldparam result [Google::Apis::TaskqueueV1beta2::Task] parsed result object
|
376
|
-
# @yieldparam err [StandardError] error object if request failed
|
377
|
-
#
|
378
|
-
# @return [Google::Apis::TaskqueueV1beta2::Task]
|
379
|
-
#
|
380
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
381
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
382
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
383
|
-
def update_task(project, taskqueue, task, new_lease_seconds, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
384
|
-
command = make_simple_command(:post, '{project}/taskqueues/{taskqueue}/tasks/{task}', options)
|
385
|
-
command.request_representation = Google::Apis::TaskqueueV1beta2::Task::Representation
|
386
|
-
command.request_object = task_object
|
387
|
-
command.response_representation = Google::Apis::TaskqueueV1beta2::Task::Representation
|
388
|
-
command.response_class = Google::Apis::TaskqueueV1beta2::Task
|
389
|
-
command.params['project'] = project unless project.nil?
|
390
|
-
command.params['taskqueue'] = taskqueue unless taskqueue.nil?
|
391
|
-
command.params['task'] = task unless task.nil?
|
392
|
-
command.query['newLeaseSeconds'] = new_lease_seconds unless new_lease_seconds.nil?
|
393
|
-
command.query['fields'] = fields unless fields.nil?
|
394
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
395
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
396
|
-
execute_or_queue_command(command, &block)
|
397
|
-
end
|
398
|
-
|
399
|
-
protected
|
400
|
-
|
401
|
-
def apply_command_defaults(command)
|
402
|
-
command.query['key'] = key unless key.nil?
|
403
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
404
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
405
|
-
end
|
406
|
-
end
|
407
|
-
end
|
408
|
-
end
|
409
|
-
end
|