google-api-client 0.28.7 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.kokoro/build.bat +9 -6
- data/.kokoro/build.sh +2 -32
- data/.kokoro/continuous/common.cfg +6 -1
- data/.kokoro/continuous/windows.cfg +17 -1
- data/.kokoro/osx.sh +2 -33
- data/.kokoro/presubmit/common.cfg +6 -1
- data/.kokoro/presubmit/windows.cfg +17 -1
- data/.kokoro/trampoline.bat +10 -0
- data/.kokoro/trampoline.sh +3 -23
- data/CHANGELOG.md +138 -0
- data/Rakefile +31 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
- data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +7 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
- data/generated/google/apis/appengine_v1beta/service.rb +7 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +4 -3
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +28 -4
- data/generated/google/apis/bigquery_v2/representations.rb +13 -0
- data/generated/google/apis/bigtableadmin_v1.rb +2 -2
- data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +2 -2
- data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
- data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +16 -16
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +77 -0
- data/generated/google/apis/classroom_v1/representations.rb +32 -0
- data/generated/google/apis/classroom_v1/service.rb +224 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
- data/generated/google/apis/cloudasset_v1/service.rb +3 -2
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +34 -0
- data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
- data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
- data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
- data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +328 -25
- data/generated/google/apis/compute_alpha/representations.rb +134 -0
- data/generated/google/apis/compute_alpha/service.rb +465 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +86 -20
- data/generated/google/apis/compute_beta/representations.rb +7 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +994 -103
- data/generated/google/apis/compute_v1/representations.rb +346 -0
- data/generated/google/apis/compute_v1/service.rb +533 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +167 -21
- data/generated/google/apis/container_v1/representations.rb +66 -0
- data/generated/google/apis/container_v1/service.rb +85 -36
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +86 -21
- data/generated/google/apis/container_v1beta1/representations.rb +32 -0
- data/generated/google/apis/container_v1beta1/service.rb +38 -38
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +5 -5
- data/generated/google/apis/content_v2/service.rb +6 -6
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +18 -4
- data/generated/google/apis/content_v2_1/representations.rb +2 -0
- data/generated/google/apis/content_v2_1/service.rb +6 -6
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
- data/generated/google/apis/datafusion_v1beta1.rb +43 -0
- data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
- data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +5 -5
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +20 -16
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +19 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +202 -93
- data/generated/google/apis/dns_v1/service.rb +110 -15
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
- data/generated/google/apis/dns_v1beta2/service.rb +141 -21
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
- data/generated/google/apis/dns_v2beta1/service.rb +110 -15
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +10 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +601 -69
- data/generated/google/apis/drive_v2/representations.rb +152 -0
- data/generated/google/apis/drive_v2/service.rb +452 -96
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +591 -64
- data/generated/google/apis/drive_v3/representations.rb +151 -0
- data/generated/google/apis/drive_v3/service.rb +407 -77
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
- data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +399 -8
- data/generated/google/apis/file_v1/representations.rb +121 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +399 -8
- data/generated/google/apis/file_v1beta1/representations.rb +121 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_v1.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +29 -0
- data/generated/google/apis/gmail_v1/representations.rb +13 -0
- data/generated/google/apis/gmail_v1/service.rb +76 -0
- data/generated/google/apis/healthcare_v1beta1.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +9 -8
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +13 -7
- data/generated/google/apis/jobs_v3/service.rb +1 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
- data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +3 -2
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +64 -16
- data/generated/google/apis/ml_v1/representations.rb +2 -0
- data/generated/google/apis/ml_v1/service.rb +5 -5
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +0 -10
- data/generated/google/apis/monitoring_v3/representations.rb +0 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1.rb +3 -2
- data/generated/google/apis/oslogin_v1/service.rb +2 -1
- data/generated/google/apis/oslogin_v1alpha.rb +3 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
- data/generated/google/apis/oslogin_v1beta.rb +3 -2
- data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
- data/generated/google/apis/people_v1.rb +1 -4
- data/generated/google/apis/people_v1/classes.rb +19 -11
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +1 -0
- data/generated/google/apis/plus_domains_v1.rb +2 -5
- data/generated/google/apis/plus_domains_v1/service.rb +8 -90
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/service.rb +7 -7
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +3 -2
- data/generated/google/apis/poly_v1/service.rb +11 -8
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +2 -1
- data/generated/google/apis/pubsub_v1/service.rb +8 -8
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +35 -0
- data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
- data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
- data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
- data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +20 -19
- data/generated/google/apis/spanner_v1/service.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
- 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 +144 -0
- data/generated/google/apis/storage_v1/representations.rb +56 -0
- data/generated/google/apis/storage_v1/service.rb +441 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +6 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +37 -18
- data/generated/google/apis/vault_v1/representations.rb +3 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +84 -47
- data/generated/google/apis/vision_v1/service.rb +68 -4
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +0 -166
- data/generated/google/apis/webmasters_v3/representations.rb +0 -93
- data/generated/google/apis/webmasters_v3/service.rb +0 -171
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
- data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +31 -9
- data/.kokoro/common.cfg +0 -22
- data/.kokoro/windows.sh +0 -32
- data/generated/google/apis/logging_v2beta1.rb +0 -46
- data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
- data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
- data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190403'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV2beta1
|
28
28
|
VERSION = 'V2beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190403'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -0,0 +1,34 @@
|
|
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/cloudscheduler_v1/service.rb'
|
16
|
+
require 'google/apis/cloudscheduler_v1/classes.rb'
|
17
|
+
require 'google/apis/cloudscheduler_v1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Cloud Scheduler API
|
22
|
+
#
|
23
|
+
# Creates and manages jobs run on a regular recurring schedule.
|
24
|
+
#
|
25
|
+
# @see https://cloud.google.com/scheduler/
|
26
|
+
module CloudschedulerV1
|
27
|
+
VERSION = 'V1'
|
28
|
+
REVISION = '20190429'
|
29
|
+
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,994 @@
|
|
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 CloudschedulerV1
|
24
|
+
|
25
|
+
# App Engine target. The job will be pushed to a job handler by means
|
26
|
+
# of an HTTP request via an http_method such
|
27
|
+
# as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
|
28
|
+
# HTTP response code in the range [200 - 299]. Error 503 is
|
29
|
+
# considered an App Engine system error instead of an application
|
30
|
+
# error. Requests returning error 503 will be retried regardless of
|
31
|
+
# retry configuration and not counted against retry counts. Any other
|
32
|
+
# response code, or a failure to receive a response before the
|
33
|
+
# deadline, constitutes a failed attempt.
|
34
|
+
class AppEngineHttpTarget
|
35
|
+
include Google::Apis::Core::Hashable
|
36
|
+
|
37
|
+
# App Engine Routing.
|
38
|
+
# For more information about services, versions, and instances see
|
39
|
+
# [An Overview of App
|
40
|
+
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
41
|
+
# engine),
|
42
|
+
# [Microservices Architecture on Google App
|
43
|
+
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
44
|
+
# engine),
|
45
|
+
# [App Engine Standard request
|
46
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
47
|
+
# are-routed),
|
48
|
+
# and [App Engine Flex request
|
49
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
50
|
+
# are-routed).
|
51
|
+
# Corresponds to the JSON property `appEngineRouting`
|
52
|
+
# @return [Google::Apis::CloudschedulerV1::AppEngineRouting]
|
53
|
+
attr_accessor :app_engine_routing
|
54
|
+
|
55
|
+
# Body.
|
56
|
+
# HTTP request body. A request body is allowed only if the HTTP method is
|
57
|
+
# POST or PUT. It will result in invalid argument error to set a body on a
|
58
|
+
# job with an incompatible HttpMethod.
|
59
|
+
# Corresponds to the JSON property `body`
|
60
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :body
|
63
|
+
|
64
|
+
# HTTP request headers.
|
65
|
+
# This map contains the header field names and values. Headers can be set
|
66
|
+
# when the job is created.
|
67
|
+
# Cloud Scheduler sets some headers to default values:
|
68
|
+
# * `User-Agent`: By default, this header is
|
69
|
+
# `"AppEngine-Google; (+http://code.google.com/appengine)"`.
|
70
|
+
# This header can be modified, but Cloud Scheduler will append
|
71
|
+
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
|
72
|
+
# modified `User-Agent`.
|
73
|
+
# * `X-CloudScheduler`: This header will be set to true.
|
74
|
+
# If the job has an body, Cloud Scheduler sets
|
75
|
+
# the following headers:
|
76
|
+
# * `Content-Type`: By default, the `Content-Type` header is set to
|
77
|
+
# `"application/octet-stream"`. The default can be overridden by explictly
|
78
|
+
# setting `Content-Type` to a particular media type when the job is
|
79
|
+
# created.
|
80
|
+
# For example, `Content-Type` can be set to `"application/json"`.
|
81
|
+
# * `Content-Length`: This is computed by Cloud Scheduler. This value is
|
82
|
+
# output only. It cannot be changed.
|
83
|
+
# The headers below are output only. They cannot be set or overridden:
|
84
|
+
# * `X-Google-*`: For Google internal use only.
|
85
|
+
# * `X-AppEngine-*`: For Google internal use only.
|
86
|
+
# In addition, some App Engine headers, which contain
|
87
|
+
# job-specific information, are also be sent to the job handler.
|
88
|
+
# Corresponds to the JSON property `headers`
|
89
|
+
# @return [Hash<String,String>]
|
90
|
+
attr_accessor :headers
|
91
|
+
|
92
|
+
# The HTTP method to use for the request. PATCH and OPTIONS are not
|
93
|
+
# permitted.
|
94
|
+
# Corresponds to the JSON property `httpMethod`
|
95
|
+
# @return [String]
|
96
|
+
attr_accessor :http_method
|
97
|
+
|
98
|
+
# The relative URI.
|
99
|
+
# The relative URL must begin with "/" and must be a valid HTTP relative URL.
|
100
|
+
# It can contain a path, query string arguments, and `#` fragments.
|
101
|
+
# If the relative URL is empty, then the root path "/" will be used.
|
102
|
+
# No spaces are allowed, and the maximum length allowed is 2083 characters.
|
103
|
+
# Corresponds to the JSON property `relativeUri`
|
104
|
+
# @return [String]
|
105
|
+
attr_accessor :relative_uri
|
106
|
+
|
107
|
+
def initialize(**args)
|
108
|
+
update!(**args)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Update properties of this object
|
112
|
+
def update!(**args)
|
113
|
+
@app_engine_routing = args[:app_engine_routing] if args.key?(:app_engine_routing)
|
114
|
+
@body = args[:body] if args.key?(:body)
|
115
|
+
@headers = args[:headers] if args.key?(:headers)
|
116
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
117
|
+
@relative_uri = args[:relative_uri] if args.key?(:relative_uri)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# App Engine Routing.
|
122
|
+
# For more information about services, versions, and instances see
|
123
|
+
# [An Overview of App
|
124
|
+
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
125
|
+
# engine),
|
126
|
+
# [Microservices Architecture on Google App
|
127
|
+
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
128
|
+
# engine),
|
129
|
+
# [App Engine Standard request
|
130
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
131
|
+
# are-routed),
|
132
|
+
# and [App Engine Flex request
|
133
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
134
|
+
# are-routed).
|
135
|
+
class AppEngineRouting
|
136
|
+
include Google::Apis::Core::Hashable
|
137
|
+
|
138
|
+
# Output only. The host that the job is sent to.
|
139
|
+
# For more information about how App Engine requests are routed, see
|
140
|
+
# [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
141
|
+
# are-routed).
|
142
|
+
# The host is constructed as:
|
143
|
+
# * `host = [application_domain_name]`</br>
|
144
|
+
# `| [service] + '.' + [application_domain_name]`</br>
|
145
|
+
# `| [version] + '.' + [application_domain_name]`</br>
|
146
|
+
# `| [version_dot_service]+ '.' + [application_domain_name]`</br>
|
147
|
+
# `| [instance] + '.' + [application_domain_name]`</br>
|
148
|
+
# `| [instance_dot_service] + '.' + [application_domain_name]`</br>
|
149
|
+
# `| [instance_dot_version] + '.' + [application_domain_name]`</br>
|
150
|
+
# `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
|
151
|
+
# * `application_domain_name` = The domain name of the app, for
|
152
|
+
# example <app-id>.appspot.com, which is associated with the
|
153
|
+
# job's project ID.
|
154
|
+
# * `service =` service
|
155
|
+
# * `version =` version
|
156
|
+
# * `version_dot_service =`
|
157
|
+
# version `+ '.' +`
|
158
|
+
# service
|
159
|
+
# * `instance =` instance
|
160
|
+
# * `instance_dot_service =`
|
161
|
+
# instance `+ '.' +`
|
162
|
+
# service
|
163
|
+
# * `instance_dot_version =`
|
164
|
+
# instance `+ '.' +`
|
165
|
+
# version
|
166
|
+
# * `instance_dot_version_dot_service =`
|
167
|
+
# instance `+ '.' +`
|
168
|
+
# version `+ '.' +`
|
169
|
+
# service
|
170
|
+
# If service is empty, then the job will be sent
|
171
|
+
# to the service which is the default service when the job is attempted.
|
172
|
+
# If version is empty, then the job will be sent
|
173
|
+
# to the version which is the default version when the job is attempted.
|
174
|
+
# If instance is empty, then the job will be
|
175
|
+
# sent to an instance which is available when the job is attempted.
|
176
|
+
# If service,
|
177
|
+
# version, or
|
178
|
+
# instance is invalid, then the job will be sent
|
179
|
+
# to the default version of the default service when the job is attempted.
|
180
|
+
# Corresponds to the JSON property `host`
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :host
|
183
|
+
|
184
|
+
# App instance.
|
185
|
+
# By default, the job is sent to an instance which is available when
|
186
|
+
# the job is attempted.
|
187
|
+
# Requests can only be sent to a specific instance if
|
188
|
+
# [manual scaling is used in App Engine
|
189
|
+
# Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
190
|
+
# engine?hl=en_US#scaling_types_and_instance_classes).
|
191
|
+
# App Engine Flex does not support instances. For more information, see
|
192
|
+
# [App Engine Standard request
|
193
|
+
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
194
|
+
# are-routed)
|
195
|
+
# and [App Engine Flex request
|
196
|
+
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
197
|
+
# are-routed).
|
198
|
+
# Corresponds to the JSON property `instance`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :instance
|
201
|
+
|
202
|
+
# App service.
|
203
|
+
# By default, the job is sent to the service which is the default
|
204
|
+
# service when the job is attempted.
|
205
|
+
# Corresponds to the JSON property `service`
|
206
|
+
# @return [String]
|
207
|
+
attr_accessor :service
|
208
|
+
|
209
|
+
# App version.
|
210
|
+
# By default, the job is sent to the version which is the default
|
211
|
+
# version when the job is attempted.
|
212
|
+
# Corresponds to the JSON property `version`
|
213
|
+
# @return [String]
|
214
|
+
attr_accessor :version
|
215
|
+
|
216
|
+
def initialize(**args)
|
217
|
+
update!(**args)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Update properties of this object
|
221
|
+
def update!(**args)
|
222
|
+
@host = args[:host] if args.key?(:host)
|
223
|
+
@instance = args[:instance] if args.key?(:instance)
|
224
|
+
@service = args[:service] if args.key?(:service)
|
225
|
+
@version = args[:version] if args.key?(:version)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
230
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
231
|
+
# or the response type of an API method. For instance:
|
232
|
+
# service Foo `
|
233
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
234
|
+
# `
|
235
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
236
|
+
class Empty
|
237
|
+
include Google::Apis::Core::Hashable
|
238
|
+
|
239
|
+
def initialize(**args)
|
240
|
+
update!(**args)
|
241
|
+
end
|
242
|
+
|
243
|
+
# Update properties of this object
|
244
|
+
def update!(**args)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
# Http target. The job will be pushed to the job handler by means of
|
249
|
+
# an HTTP request via an http_method such as HTTP
|
250
|
+
# POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
|
251
|
+
# response code in the range [200 - 299]. A failure to receive a response
|
252
|
+
# constitutes a failed execution. For a redirected request, the response
|
253
|
+
# returned by the redirected request is considered.
|
254
|
+
class HttpTarget
|
255
|
+
include Google::Apis::Core::Hashable
|
256
|
+
|
257
|
+
# HTTP request body. A request body is allowed only if the HTTP
|
258
|
+
# method is POST, PUT, or PATCH. It is an error to set body on a job with an
|
259
|
+
# incompatible HttpMethod.
|
260
|
+
# Corresponds to the JSON property `body`
|
261
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
262
|
+
# @return [String]
|
263
|
+
attr_accessor :body
|
264
|
+
|
265
|
+
# The user can specify HTTP request headers to send with the job's
|
266
|
+
# HTTP request. This map contains the header field names and
|
267
|
+
# values. Repeated headers are not supported, but a header value can
|
268
|
+
# contain commas. These headers represent a subset of the headers
|
269
|
+
# that will accompany the job's HTTP request. Some HTTP request
|
270
|
+
# headers will be ignored or replaced. A partial list of headers that
|
271
|
+
# will be ignored or replaced is below:
|
272
|
+
# - Host: This will be computed by Cloud Scheduler and derived from
|
273
|
+
# uri.
|
274
|
+
# * `Content-Length`: This will be computed by Cloud Scheduler.
|
275
|
+
# * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
|
276
|
+
# * `X-Google-*`: Google internal use only.
|
277
|
+
# * `X-AppEngine-*`: Google internal use only.
|
278
|
+
# The total size of headers must be less than 80KB.
|
279
|
+
# Corresponds to the JSON property `headers`
|
280
|
+
# @return [Hash<String,String>]
|
281
|
+
attr_accessor :headers
|
282
|
+
|
283
|
+
# Which HTTP method to use for the request.
|
284
|
+
# Corresponds to the JSON property `httpMethod`
|
285
|
+
# @return [String]
|
286
|
+
attr_accessor :http_method
|
287
|
+
|
288
|
+
# Contains information needed for generating an
|
289
|
+
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
290
|
+
# This type of authorization should be used when sending requests to a GCP
|
291
|
+
# endpoint.
|
292
|
+
# Corresponds to the JSON property `oauthToken`
|
293
|
+
# @return [Google::Apis::CloudschedulerV1::OAuthToken]
|
294
|
+
attr_accessor :oauth_token
|
295
|
+
|
296
|
+
# Contains information needed for generating an
|
297
|
+
# [OpenID Connect
|
298
|
+
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
299
|
+
# type of authorization should be used when sending requests to third party
|
300
|
+
# endpoints or Cloud Run.
|
301
|
+
# Corresponds to the JSON property `oidcToken`
|
302
|
+
# @return [Google::Apis::CloudschedulerV1::OidcToken]
|
303
|
+
attr_accessor :oidc_token
|
304
|
+
|
305
|
+
# Required.
|
306
|
+
# The full URI path that the request will be sent to. This string
|
307
|
+
# must begin with either "http://" or "https://". Some examples of
|
308
|
+
# valid values for uri are:
|
309
|
+
# `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
|
310
|
+
# encode some characters for safety and compatibility. The maximum allowed
|
311
|
+
# URL length is 2083 characters after encoding.
|
312
|
+
# Corresponds to the JSON property `uri`
|
313
|
+
# @return [String]
|
314
|
+
attr_accessor :uri
|
315
|
+
|
316
|
+
def initialize(**args)
|
317
|
+
update!(**args)
|
318
|
+
end
|
319
|
+
|
320
|
+
# Update properties of this object
|
321
|
+
def update!(**args)
|
322
|
+
@body = args[:body] if args.key?(:body)
|
323
|
+
@headers = args[:headers] if args.key?(:headers)
|
324
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
325
|
+
@oauth_token = args[:oauth_token] if args.key?(:oauth_token)
|
326
|
+
@oidc_token = args[:oidc_token] if args.key?(:oidc_token)
|
327
|
+
@uri = args[:uri] if args.key?(:uri)
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# Configuration for a job.
|
332
|
+
# The maximum allowed size for a job is 100KB.
|
333
|
+
class Job
|
334
|
+
include Google::Apis::Core::Hashable
|
335
|
+
|
336
|
+
# App Engine target. The job will be pushed to a job handler by means
|
337
|
+
# of an HTTP request via an http_method such
|
338
|
+
# as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
|
339
|
+
# HTTP response code in the range [200 - 299]. Error 503 is
|
340
|
+
# considered an App Engine system error instead of an application
|
341
|
+
# error. Requests returning error 503 will be retried regardless of
|
342
|
+
# retry configuration and not counted against retry counts. Any other
|
343
|
+
# response code, or a failure to receive a response before the
|
344
|
+
# deadline, constitutes a failed attempt.
|
345
|
+
# Corresponds to the JSON property `appEngineHttpTarget`
|
346
|
+
# @return [Google::Apis::CloudschedulerV1::AppEngineHttpTarget]
|
347
|
+
attr_accessor :app_engine_http_target
|
348
|
+
|
349
|
+
# The deadline for job attempts. If the request handler does not respond by
|
350
|
+
# this deadline then the request is cancelled and the attempt is marked as a
|
351
|
+
# `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
|
352
|
+
# execution logs. Cloud Scheduler will retry the job according
|
353
|
+
# to the RetryConfig.
|
354
|
+
# The allowed duration for this deadline is:
|
355
|
+
# * For HTTP targets, between 15 seconds and 30 minutes.
|
356
|
+
# * For App Engine HTTP targets, between 15
|
357
|
+
# seconds and 24 hours.
|
358
|
+
# Corresponds to the JSON property `attemptDeadline`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :attempt_deadline
|
361
|
+
|
362
|
+
# Optionally caller-specified in CreateJob or
|
363
|
+
# UpdateJob.
|
364
|
+
# A human-readable description for the job. This string must not contain
|
365
|
+
# more than 500 characters.
|
366
|
+
# Corresponds to the JSON property `description`
|
367
|
+
# @return [String]
|
368
|
+
attr_accessor :description
|
369
|
+
|
370
|
+
# Http target. The job will be pushed to the job handler by means of
|
371
|
+
# an HTTP request via an http_method such as HTTP
|
372
|
+
# POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
|
373
|
+
# response code in the range [200 - 299]. A failure to receive a response
|
374
|
+
# constitutes a failed execution. For a redirected request, the response
|
375
|
+
# returned by the redirected request is considered.
|
376
|
+
# Corresponds to the JSON property `httpTarget`
|
377
|
+
# @return [Google::Apis::CloudschedulerV1::HttpTarget]
|
378
|
+
attr_accessor :http_target
|
379
|
+
|
380
|
+
# Output only. The time the last job attempt started.
|
381
|
+
# Corresponds to the JSON property `lastAttemptTime`
|
382
|
+
# @return [String]
|
383
|
+
attr_accessor :last_attempt_time
|
384
|
+
|
385
|
+
# Optionally caller-specified in CreateJob, after
|
386
|
+
# which it becomes output only.
|
387
|
+
# The job name. For example:
|
388
|
+
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
389
|
+
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
390
|
+
# hyphens (-), colons (:), or periods (.).
|
391
|
+
# For more information, see
|
392
|
+
# [Identifying
|
393
|
+
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
394
|
+
# projects#identifying_projects)
|
395
|
+
# * `LOCATION_ID` is the canonical ID for the job's location.
|
396
|
+
# The list of available locations can be obtained by calling
|
397
|
+
# ListLocations.
|
398
|
+
# For more information, see https://cloud.google.com/about/locations/.
|
399
|
+
# * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
|
400
|
+
# hyphens (-), or underscores (_). The maximum length is 500 characters.
|
401
|
+
# Corresponds to the JSON property `name`
|
402
|
+
# @return [String]
|
403
|
+
attr_accessor :name
|
404
|
+
|
405
|
+
# Pub/Sub target. The job will be delivered by publishing a message to
|
406
|
+
# the given Pub/Sub topic.
|
407
|
+
# Corresponds to the JSON property `pubsubTarget`
|
408
|
+
# @return [Google::Apis::CloudschedulerV1::PubsubTarget]
|
409
|
+
attr_accessor :pubsub_target
|
410
|
+
|
411
|
+
# Settings that determine the retry behavior.
|
412
|
+
# By default, if a job does not complete successfully (meaning that
|
413
|
+
# an acknowledgement is not received from the handler, then it will be retried
|
414
|
+
# with exponential backoff according to the settings in RetryConfig.
|
415
|
+
# Corresponds to the JSON property `retryConfig`
|
416
|
+
# @return [Google::Apis::CloudschedulerV1::RetryConfig]
|
417
|
+
attr_accessor :retry_config
|
418
|
+
|
419
|
+
# Required, except when used with UpdateJob.
|
420
|
+
# Describes the schedule on which the job will be executed.
|
421
|
+
# The schedule can be either of the following types:
|
422
|
+
# * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
|
423
|
+
# * English-like
|
424
|
+
# [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-
|
425
|
+
# schedules)
|
426
|
+
# As a general rule, execution `n + 1` of a job will not begin
|
427
|
+
# until execution `n` has finished. Cloud Scheduler will never
|
428
|
+
# allow two simultaneously outstanding executions. For example,
|
429
|
+
# this implies that if the `n+1`th execution is scheduled to run at
|
430
|
+
# 16:00 but the `n`th execution takes until 16:15, the `n+1`th
|
431
|
+
# execution will not start until `16:15`.
|
432
|
+
# A scheduled start time will be delayed if the previous
|
433
|
+
# execution has not ended when its scheduled time occurs.
|
434
|
+
# If retry_count > 0 and a job attempt fails,
|
435
|
+
# the job will be tried a total of retry_count
|
436
|
+
# times, with exponential backoff, until the next scheduled start
|
437
|
+
# time.
|
438
|
+
# Corresponds to the JSON property `schedule`
|
439
|
+
# @return [String]
|
440
|
+
attr_accessor :schedule
|
441
|
+
|
442
|
+
# Output only. The next time the job is scheduled. Note that this may be a
|
443
|
+
# retry of a previously failed attempt or the next execution time
|
444
|
+
# according to the schedule.
|
445
|
+
# Corresponds to the JSON property `scheduleTime`
|
446
|
+
# @return [String]
|
447
|
+
attr_accessor :schedule_time
|
448
|
+
|
449
|
+
# Output only. State of the job.
|
450
|
+
# Corresponds to the JSON property `state`
|
451
|
+
# @return [String]
|
452
|
+
attr_accessor :state
|
453
|
+
|
454
|
+
# The `Status` type defines a logical error model that is suitable for
|
455
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
456
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
457
|
+
# - Simple to use and understand for most users
|
458
|
+
# - Flexible enough to meet unexpected needs
|
459
|
+
# # Overview
|
460
|
+
# The `Status` message contains three pieces of data: error code, error
|
461
|
+
# message, and error details. The error code should be an enum value of
|
462
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
463
|
+
# error message should be a developer-facing English message that helps
|
464
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
465
|
+
# error message is needed, put the localized message in the error details or
|
466
|
+
# localize it in the client. The optional error details may contain arbitrary
|
467
|
+
# information about the error. There is a predefined set of error detail types
|
468
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
469
|
+
# # Language mapping
|
470
|
+
# The `Status` message is the logical representation of the error model, but it
|
471
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
472
|
+
# exposed in different client libraries and different wire protocols, it can be
|
473
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
474
|
+
# in Java, but more likely mapped to some error codes in C.
|
475
|
+
# # Other uses
|
476
|
+
# The error model and the `Status` message can be used in a variety of
|
477
|
+
# environments, either with or without APIs, to provide a
|
478
|
+
# consistent developer experience across different environments.
|
479
|
+
# Example uses of this error model include:
|
480
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
481
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
482
|
+
# errors.
|
483
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
484
|
+
# have a `Status` message for error reporting.
|
485
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
486
|
+
# `Status` message should be used directly inside batch response, one for
|
487
|
+
# each error sub-response.
|
488
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
489
|
+
# results in its response, the status of those operations should be
|
490
|
+
# represented directly using the `Status` message.
|
491
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
492
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
493
|
+
# Corresponds to the JSON property `status`
|
494
|
+
# @return [Google::Apis::CloudschedulerV1::Status]
|
495
|
+
attr_accessor :status
|
496
|
+
|
497
|
+
# Specifies the time zone to be used in interpreting
|
498
|
+
# schedule. The value of this field must be a time
|
499
|
+
# zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
|
500
|
+
# Note that some time zones include a provision for
|
501
|
+
# daylight savings time. The rules for daylight saving time are
|
502
|
+
# determined by the chosen tz. For UTC use the string "utc". If a
|
503
|
+
# time zone is not specified, the default will be in UTC (also known
|
504
|
+
# as GMT).
|
505
|
+
# Corresponds to the JSON property `timeZone`
|
506
|
+
# @return [String]
|
507
|
+
attr_accessor :time_zone
|
508
|
+
|
509
|
+
# Output only. The creation time of the job.
|
510
|
+
# Corresponds to the JSON property `userUpdateTime`
|
511
|
+
# @return [String]
|
512
|
+
attr_accessor :user_update_time
|
513
|
+
|
514
|
+
def initialize(**args)
|
515
|
+
update!(**args)
|
516
|
+
end
|
517
|
+
|
518
|
+
# Update properties of this object
|
519
|
+
def update!(**args)
|
520
|
+
@app_engine_http_target = args[:app_engine_http_target] if args.key?(:app_engine_http_target)
|
521
|
+
@attempt_deadline = args[:attempt_deadline] if args.key?(:attempt_deadline)
|
522
|
+
@description = args[:description] if args.key?(:description)
|
523
|
+
@http_target = args[:http_target] if args.key?(:http_target)
|
524
|
+
@last_attempt_time = args[:last_attempt_time] if args.key?(:last_attempt_time)
|
525
|
+
@name = args[:name] if args.key?(:name)
|
526
|
+
@pubsub_target = args[:pubsub_target] if args.key?(:pubsub_target)
|
527
|
+
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
528
|
+
@schedule = args[:schedule] if args.key?(:schedule)
|
529
|
+
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
530
|
+
@state = args[:state] if args.key?(:state)
|
531
|
+
@status = args[:status] if args.key?(:status)
|
532
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
533
|
+
@user_update_time = args[:user_update_time] if args.key?(:user_update_time)
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
537
|
+
# Response message for listing jobs using ListJobs.
|
538
|
+
class ListJobsResponse
|
539
|
+
include Google::Apis::Core::Hashable
|
540
|
+
|
541
|
+
# The list of jobs.
|
542
|
+
# Corresponds to the JSON property `jobs`
|
543
|
+
# @return [Array<Google::Apis::CloudschedulerV1::Job>]
|
544
|
+
attr_accessor :jobs
|
545
|
+
|
546
|
+
# A token to retrieve next page of results. Pass this value in the
|
547
|
+
# page_token field in the subsequent call to
|
548
|
+
# ListJobs to retrieve the next page of results.
|
549
|
+
# If this is empty it indicates that there are no more results
|
550
|
+
# through which to paginate.
|
551
|
+
# The page token is valid for only 2 hours.
|
552
|
+
# Corresponds to the JSON property `nextPageToken`
|
553
|
+
# @return [String]
|
554
|
+
attr_accessor :next_page_token
|
555
|
+
|
556
|
+
def initialize(**args)
|
557
|
+
update!(**args)
|
558
|
+
end
|
559
|
+
|
560
|
+
# Update properties of this object
|
561
|
+
def update!(**args)
|
562
|
+
@jobs = args[:jobs] if args.key?(:jobs)
|
563
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
# The response message for Locations.ListLocations.
|
568
|
+
class ListLocationsResponse
|
569
|
+
include Google::Apis::Core::Hashable
|
570
|
+
|
571
|
+
# A list of locations that matches the specified filter in the request.
|
572
|
+
# Corresponds to the JSON property `locations`
|
573
|
+
# @return [Array<Google::Apis::CloudschedulerV1::Location>]
|
574
|
+
attr_accessor :locations
|
575
|
+
|
576
|
+
# The standard List next-page token.
|
577
|
+
# Corresponds to the JSON property `nextPageToken`
|
578
|
+
# @return [String]
|
579
|
+
attr_accessor :next_page_token
|
580
|
+
|
581
|
+
def initialize(**args)
|
582
|
+
update!(**args)
|
583
|
+
end
|
584
|
+
|
585
|
+
# Update properties of this object
|
586
|
+
def update!(**args)
|
587
|
+
@locations = args[:locations] if args.key?(:locations)
|
588
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
# A resource that represents Google Cloud Platform location.
|
593
|
+
class Location
|
594
|
+
include Google::Apis::Core::Hashable
|
595
|
+
|
596
|
+
# The friendly name for this location, typically a nearby city name.
|
597
|
+
# For example, "Tokyo".
|
598
|
+
# Corresponds to the JSON property `displayName`
|
599
|
+
# @return [String]
|
600
|
+
attr_accessor :display_name
|
601
|
+
|
602
|
+
# Cross-service attributes for the location. For example
|
603
|
+
# `"cloud.googleapis.com/region": "us-east1"`
|
604
|
+
# Corresponds to the JSON property `labels`
|
605
|
+
# @return [Hash<String,String>]
|
606
|
+
attr_accessor :labels
|
607
|
+
|
608
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
609
|
+
# Corresponds to the JSON property `locationId`
|
610
|
+
# @return [String]
|
611
|
+
attr_accessor :location_id
|
612
|
+
|
613
|
+
# Service-specific metadata. For example the available capacity at the given
|
614
|
+
# location.
|
615
|
+
# Corresponds to the JSON property `metadata`
|
616
|
+
# @return [Hash<String,Object>]
|
617
|
+
attr_accessor :metadata
|
618
|
+
|
619
|
+
# Resource name for the location, which may vary between implementations.
|
620
|
+
# For example: `"projects/example-project/locations/us-east1"`
|
621
|
+
# Corresponds to the JSON property `name`
|
622
|
+
# @return [String]
|
623
|
+
attr_accessor :name
|
624
|
+
|
625
|
+
def initialize(**args)
|
626
|
+
update!(**args)
|
627
|
+
end
|
628
|
+
|
629
|
+
# Update properties of this object
|
630
|
+
def update!(**args)
|
631
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
632
|
+
@labels = args[:labels] if args.key?(:labels)
|
633
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
634
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
635
|
+
@name = args[:name] if args.key?(:name)
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
# Contains information needed for generating an
|
640
|
+
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
641
|
+
# This type of authorization should be used when sending requests to a GCP
|
642
|
+
# endpoint.
|
643
|
+
class OAuthToken
|
644
|
+
include Google::Apis::Core::Hashable
|
645
|
+
|
646
|
+
# OAuth scope to be used for generating OAuth access token.
|
647
|
+
# If not specified, "https://www.googleapis.com/auth/cloud-platform"
|
648
|
+
# will be used.
|
649
|
+
# Corresponds to the JSON property `scope`
|
650
|
+
# @return [String]
|
651
|
+
attr_accessor :scope
|
652
|
+
|
653
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
654
|
+
# to be used for generating OAuth token.
|
655
|
+
# The service account must be within the same project as the job. The caller
|
656
|
+
# must have iam.serviceAccounts.actAs permission for the service account.
|
657
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
658
|
+
# @return [String]
|
659
|
+
attr_accessor :service_account_email
|
660
|
+
|
661
|
+
def initialize(**args)
|
662
|
+
update!(**args)
|
663
|
+
end
|
664
|
+
|
665
|
+
# Update properties of this object
|
666
|
+
def update!(**args)
|
667
|
+
@scope = args[:scope] if args.key?(:scope)
|
668
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
# Contains information needed for generating an
|
673
|
+
# [OpenID Connect
|
674
|
+
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
675
|
+
# type of authorization should be used when sending requests to third party
|
676
|
+
# endpoints or Cloud Run.
|
677
|
+
class OidcToken
|
678
|
+
include Google::Apis::Core::Hashable
|
679
|
+
|
680
|
+
# Audience to be used when generating OIDC token. If not specified, the URI
|
681
|
+
# specified in target will be used.
|
682
|
+
# Corresponds to the JSON property `audience`
|
683
|
+
# @return [String]
|
684
|
+
attr_accessor :audience
|
685
|
+
|
686
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
687
|
+
# to be used for generating OIDC token.
|
688
|
+
# The service account must be within the same project as the job. The caller
|
689
|
+
# must have iam.serviceAccounts.actAs permission for the service account.
|
690
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
691
|
+
# @return [String]
|
692
|
+
attr_accessor :service_account_email
|
693
|
+
|
694
|
+
def initialize(**args)
|
695
|
+
update!(**args)
|
696
|
+
end
|
697
|
+
|
698
|
+
# Update properties of this object
|
699
|
+
def update!(**args)
|
700
|
+
@audience = args[:audience] if args.key?(:audience)
|
701
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
702
|
+
end
|
703
|
+
end
|
704
|
+
|
705
|
+
# Request message for PauseJob.
|
706
|
+
class PauseJobRequest
|
707
|
+
include Google::Apis::Core::Hashable
|
708
|
+
|
709
|
+
def initialize(**args)
|
710
|
+
update!(**args)
|
711
|
+
end
|
712
|
+
|
713
|
+
# Update properties of this object
|
714
|
+
def update!(**args)
|
715
|
+
end
|
716
|
+
end
|
717
|
+
|
718
|
+
# A message that is published by publishers and consumed by subscribers. The
|
719
|
+
# message must contain either a non-empty data field or at least one attribute.
|
720
|
+
# Note that client libraries represent this object differently
|
721
|
+
# depending on the language. See the corresponding
|
722
|
+
# <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client
|
723
|
+
# library documentation</a> for more information. See
|
724
|
+
# <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
|
725
|
+
# for more information about message limits.
|
726
|
+
class PubsubMessage
|
727
|
+
include Google::Apis::Core::Hashable
|
728
|
+
|
729
|
+
# Optional attributes for this message.
|
730
|
+
# Corresponds to the JSON property `attributes`
|
731
|
+
# @return [Hash<String,String>]
|
732
|
+
attr_accessor :attributes
|
733
|
+
|
734
|
+
# The message data field. If this field is empty, the message must contain
|
735
|
+
# at least one attribute.
|
736
|
+
# Corresponds to the JSON property `data`
|
737
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
738
|
+
# @return [String]
|
739
|
+
attr_accessor :data
|
740
|
+
|
741
|
+
# ID of this message, assigned by the server when the message is published.
|
742
|
+
# Guaranteed to be unique within the topic. This value may be read by a
|
743
|
+
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
744
|
+
# delivery. It must not be populated by the publisher in a `Publish` call.
|
745
|
+
# Corresponds to the JSON property `messageId`
|
746
|
+
# @return [String]
|
747
|
+
attr_accessor :message_id
|
748
|
+
|
749
|
+
# The time at which the message was published, populated by the server when
|
750
|
+
# it receives the `Publish` call. It must not be populated by the
|
751
|
+
# publisher in a `Publish` call.
|
752
|
+
# Corresponds to the JSON property `publishTime`
|
753
|
+
# @return [String]
|
754
|
+
attr_accessor :publish_time
|
755
|
+
|
756
|
+
def initialize(**args)
|
757
|
+
update!(**args)
|
758
|
+
end
|
759
|
+
|
760
|
+
# Update properties of this object
|
761
|
+
def update!(**args)
|
762
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
763
|
+
@data = args[:data] if args.key?(:data)
|
764
|
+
@message_id = args[:message_id] if args.key?(:message_id)
|
765
|
+
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
766
|
+
end
|
767
|
+
end
|
768
|
+
|
769
|
+
# Pub/Sub target. The job will be delivered by publishing a message to
|
770
|
+
# the given Pub/Sub topic.
|
771
|
+
class PubsubTarget
|
772
|
+
include Google::Apis::Core::Hashable
|
773
|
+
|
774
|
+
# Attributes for PubsubMessage.
|
775
|
+
# Pubsub message must contain either non-empty data, or at least one
|
776
|
+
# attribute.
|
777
|
+
# Corresponds to the JSON property `attributes`
|
778
|
+
# @return [Hash<String,String>]
|
779
|
+
attr_accessor :attributes
|
780
|
+
|
781
|
+
# The message payload for PubsubMessage.
|
782
|
+
# Pubsub message must contain either non-empty data, or at least one
|
783
|
+
# attribute.
|
784
|
+
# Corresponds to the JSON property `data`
|
785
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
786
|
+
# @return [String]
|
787
|
+
attr_accessor :data
|
788
|
+
|
789
|
+
# Required.
|
790
|
+
# The name of the Cloud Pub/Sub topic to which messages will
|
791
|
+
# be published when a job is delivered. The topic name must be in the
|
792
|
+
# same format as required by PubSub's
|
793
|
+
# [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/
|
794
|
+
# google.pubsub.v1#publishrequest),
|
795
|
+
# for example `projects/PROJECT_ID/topics/TOPIC_ID`.
|
796
|
+
# The topic must be in the same project as the Cloud Scheduler job.
|
797
|
+
# Corresponds to the JSON property `topicName`
|
798
|
+
# @return [String]
|
799
|
+
attr_accessor :topic_name
|
800
|
+
|
801
|
+
def initialize(**args)
|
802
|
+
update!(**args)
|
803
|
+
end
|
804
|
+
|
805
|
+
# Update properties of this object
|
806
|
+
def update!(**args)
|
807
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
808
|
+
@data = args[:data] if args.key?(:data)
|
809
|
+
@topic_name = args[:topic_name] if args.key?(:topic_name)
|
810
|
+
end
|
811
|
+
end
|
812
|
+
|
813
|
+
# Request message for ResumeJob.
|
814
|
+
class ResumeJobRequest
|
815
|
+
include Google::Apis::Core::Hashable
|
816
|
+
|
817
|
+
def initialize(**args)
|
818
|
+
update!(**args)
|
819
|
+
end
|
820
|
+
|
821
|
+
# Update properties of this object
|
822
|
+
def update!(**args)
|
823
|
+
end
|
824
|
+
end
|
825
|
+
|
826
|
+
# Settings that determine the retry behavior.
|
827
|
+
# By default, if a job does not complete successfully (meaning that
|
828
|
+
# an acknowledgement is not received from the handler, then it will be retried
|
829
|
+
# with exponential backoff according to the settings in RetryConfig.
|
830
|
+
class RetryConfig
|
831
|
+
include Google::Apis::Core::Hashable
|
832
|
+
|
833
|
+
# The maximum amount of time to wait before retrying a job after
|
834
|
+
# it fails.
|
835
|
+
# The default value of this field is 1 hour.
|
836
|
+
# Corresponds to the JSON property `maxBackoffDuration`
|
837
|
+
# @return [String]
|
838
|
+
attr_accessor :max_backoff_duration
|
839
|
+
|
840
|
+
# The time between retries will double `max_doublings` times.
|
841
|
+
# A job's retry interval starts at
|
842
|
+
# min_backoff_duration, then doubles
|
843
|
+
# `max_doublings` times, then increases linearly, and finally
|
844
|
+
# retries retries at intervals of
|
845
|
+
# max_backoff_duration up to
|
846
|
+
# retry_count times.
|
847
|
+
# For example, if min_backoff_duration is
|
848
|
+
# 10s, max_backoff_duration is 300s, and
|
849
|
+
# `max_doublings` is 3, then the a job will first be retried in 10s. The
|
850
|
+
# retry interval will double three times, and then increase linearly by
|
851
|
+
# 2^3 * 10s. Finally, the job will retry at intervals of
|
852
|
+
# max_backoff_duration until the job has
|
853
|
+
# been attempted retry_count times. Thus, the
|
854
|
+
# requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
|
855
|
+
# The default value of this field is 5.
|
856
|
+
# Corresponds to the JSON property `maxDoublings`
|
857
|
+
# @return [Fixnum]
|
858
|
+
attr_accessor :max_doublings
|
859
|
+
|
860
|
+
# The time limit for retrying a failed job, measured from time when an
|
861
|
+
# execution was first attempted. If specified with
|
862
|
+
# retry_count, the job will be retried until both
|
863
|
+
# limits are reached.
|
864
|
+
# The default value for max_retry_duration is zero, which means retry
|
865
|
+
# duration is unlimited.
|
866
|
+
# Corresponds to the JSON property `maxRetryDuration`
|
867
|
+
# @return [String]
|
868
|
+
attr_accessor :max_retry_duration
|
869
|
+
|
870
|
+
# The minimum amount of time to wait before retrying a job after
|
871
|
+
# it fails.
|
872
|
+
# The default value of this field is 5 seconds.
|
873
|
+
# Corresponds to the JSON property `minBackoffDuration`
|
874
|
+
# @return [String]
|
875
|
+
attr_accessor :min_backoff_duration
|
876
|
+
|
877
|
+
# The number of attempts that the system will make to run a job using the
|
878
|
+
# exponential backoff procedure described by
|
879
|
+
# max_doublings.
|
880
|
+
# The default value of retry_count is zero.
|
881
|
+
# If retry_count is zero, a job attempt will *not* be retried if
|
882
|
+
# it fails. Instead the Cloud Scheduler system will wait for the
|
883
|
+
# next scheduled execution time.
|
884
|
+
# If retry_count is set to a non-zero number then Cloud Scheduler
|
885
|
+
# will retry failed attempts, using exponential backoff,
|
886
|
+
# retry_count times, or until the next scheduled execution time,
|
887
|
+
# whichever comes first.
|
888
|
+
# Values greater than 5 and negative values are not allowed.
|
889
|
+
# Corresponds to the JSON property `retryCount`
|
890
|
+
# @return [Fixnum]
|
891
|
+
attr_accessor :retry_count
|
892
|
+
|
893
|
+
def initialize(**args)
|
894
|
+
update!(**args)
|
895
|
+
end
|
896
|
+
|
897
|
+
# Update properties of this object
|
898
|
+
def update!(**args)
|
899
|
+
@max_backoff_duration = args[:max_backoff_duration] if args.key?(:max_backoff_duration)
|
900
|
+
@max_doublings = args[:max_doublings] if args.key?(:max_doublings)
|
901
|
+
@max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration)
|
902
|
+
@min_backoff_duration = args[:min_backoff_duration] if args.key?(:min_backoff_duration)
|
903
|
+
@retry_count = args[:retry_count] if args.key?(:retry_count)
|
904
|
+
end
|
905
|
+
end
|
906
|
+
|
907
|
+
# Request message for forcing a job to run now using
|
908
|
+
# RunJob.
|
909
|
+
class RunJobRequest
|
910
|
+
include Google::Apis::Core::Hashable
|
911
|
+
|
912
|
+
def initialize(**args)
|
913
|
+
update!(**args)
|
914
|
+
end
|
915
|
+
|
916
|
+
# Update properties of this object
|
917
|
+
def update!(**args)
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
# The `Status` type defines a logical error model that is suitable for
|
922
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
923
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
924
|
+
# - Simple to use and understand for most users
|
925
|
+
# - Flexible enough to meet unexpected needs
|
926
|
+
# # Overview
|
927
|
+
# The `Status` message contains three pieces of data: error code, error
|
928
|
+
# message, and error details. The error code should be an enum value of
|
929
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
930
|
+
# error message should be a developer-facing English message that helps
|
931
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
932
|
+
# error message is needed, put the localized message in the error details or
|
933
|
+
# localize it in the client. The optional error details may contain arbitrary
|
934
|
+
# information about the error. There is a predefined set of error detail types
|
935
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
936
|
+
# # Language mapping
|
937
|
+
# The `Status` message is the logical representation of the error model, but it
|
938
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
939
|
+
# exposed in different client libraries and different wire protocols, it can be
|
940
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
941
|
+
# in Java, but more likely mapped to some error codes in C.
|
942
|
+
# # Other uses
|
943
|
+
# The error model and the `Status` message can be used in a variety of
|
944
|
+
# environments, either with or without APIs, to provide a
|
945
|
+
# consistent developer experience across different environments.
|
946
|
+
# Example uses of this error model include:
|
947
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
948
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
949
|
+
# errors.
|
950
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
951
|
+
# have a `Status` message for error reporting.
|
952
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
953
|
+
# `Status` message should be used directly inside batch response, one for
|
954
|
+
# each error sub-response.
|
955
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
956
|
+
# results in its response, the status of those operations should be
|
957
|
+
# represented directly using the `Status` message.
|
958
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
959
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
960
|
+
class Status
|
961
|
+
include Google::Apis::Core::Hashable
|
962
|
+
|
963
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
964
|
+
# Corresponds to the JSON property `code`
|
965
|
+
# @return [Fixnum]
|
966
|
+
attr_accessor :code
|
967
|
+
|
968
|
+
# A list of messages that carry the error details. There is a common set of
|
969
|
+
# message types for APIs to use.
|
970
|
+
# Corresponds to the JSON property `details`
|
971
|
+
# @return [Array<Hash<String,Object>>]
|
972
|
+
attr_accessor :details
|
973
|
+
|
974
|
+
# A developer-facing error message, which should be in English. Any
|
975
|
+
# user-facing error message should be localized and sent in the
|
976
|
+
# google.rpc.Status.details field, or localized by the client.
|
977
|
+
# Corresponds to the JSON property `message`
|
978
|
+
# @return [String]
|
979
|
+
attr_accessor :message
|
980
|
+
|
981
|
+
def initialize(**args)
|
982
|
+
update!(**args)
|
983
|
+
end
|
984
|
+
|
985
|
+
# Update properties of this object
|
986
|
+
def update!(**args)
|
987
|
+
@code = args[:code] if args.key?(:code)
|
988
|
+
@details = args[:details] if args.key?(:details)
|
989
|
+
@message = args[:message] if args.key?(:message)
|
990
|
+
end
|
991
|
+
end
|
992
|
+
end
|
993
|
+
end
|
994
|
+
end
|