google-api-client 0.51.0 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release-please.yml +23 -45
- data/CHANGELOG.md +100 -0
- data/README.md +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
- data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
- data/generated/google/apis/admin_directory_v1.rb +2 -2
- data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
- data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
- data/generated/google/apis/admin_directory_v1/service.rb +323 -183
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
- data/generated/google/apis/admin_reports_v1/service.rb +198 -179
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +5 -12
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +11 -11
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/apigateway_v1beta.rb +1 -1
- data/generated/google/apis/apigateway_v1beta/classes.rb +3 -9
- data/generated/google/apis/apigateway_v1beta/representations.rb +0 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +71 -0
- data/generated/google/apis/apigee_v1/representations.rb +42 -0
- data/generated/google/apis/apigee_v1/service.rb +206 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +7 -0
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +2 -2
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
- data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta2/classes.rb +2 -2
- data/generated/google/apis/artifactregistry_v1beta2/service.rb +4 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
- data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +202 -2
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -6
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -0
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +64 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +18 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1071 -341
- data/generated/google/apis/compute_alpha/representations.rb +248 -19
- data/generated/google/apis/compute_alpha/service.rb +291 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +926 -283
- data/generated/google/apis/compute_beta/representations.rb +221 -18
- data/generated/google/apis/compute_beta/service.rb +24 -15
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +419 -158
- data/generated/google/apis/compute_v1/representations.rb +55 -0
- data/generated/google/apis/compute_v1/service.rb +9 -7
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +48 -9
- data/generated/google/apis/container_v1/representations.rb +17 -0
- data/generated/google/apis/container_v1/service.rb +4 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +24 -13
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/container_v1beta1/service.rb +6 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +16 -7
- data/generated/google/apis/content_v2_1/representations.rb +1 -0
- data/generated/google/apis/datamigration_v1beta1.rb +1 -1
- data/generated/google/apis/datamigration_v1beta1/classes.rb +0 -6
- data/generated/google/apis/datamigration_v1beta1/representations.rb +0 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
- data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/service.rb +5 -25
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +8 -40
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +692 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +326 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +692 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +326 -0
- data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
- data/generated/google/apis/dialogflow_v3/classes.rb +8943 -0
- data/generated/google/apis/dialogflow_v3/representations.rb +3773 -0
- data/generated/google/apis/dialogflow_v3/service.rb +3006 -0
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +784 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +360 -0
- data/generated/google/apis/dialogflow_v3beta1/service.rb +173 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/service.rb +294 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +65 -0
- data/generated/google/apis/dns_v1/representations.rb +32 -0
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2/classes.rb +220 -102
- data/generated/google/apis/documentai_v1beta2/representations.rb +105 -9
- data/generated/google/apis/documentai_v1beta3.rb +1 -1
- data/generated/google/apis/documentai_v1beta3/classes.rb +241 -117
- data/generated/google/apis/documentai_v1beta3/representations.rb +105 -9
- data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
- data/generated/google/apis/eventarc_v1beta1.rb +1 -1
- data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
- data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +61 -0
- data/generated/google/apis/file_v1/representations.rb +19 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +11 -7
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +0 -6
- data/generated/google/apis/healthcare_v1/representations.rb +0 -1
- data/generated/google/apis/healthcare_v1/service.rb +13 -12
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +45 -19
- data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +37 -37
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +0 -6
- data/generated/google/apis/iap_v1/representations.rb +0 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -6
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
- data/generated/google/apis/metastore_v1beta.rb +35 -0
- data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
- data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
- data/generated/google/apis/metastore_v1beta/service.rb +800 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +51 -18
- data/generated/google/apis/ml_v1/representations.rb +16 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +8 -4
- data/generated/google/apis/privateca_v1beta1.rb +1 -1
- data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +37 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +18 -0
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +2 -2
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +2 -2
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
- data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
- data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +11 -10
- data/generated/google/apis/servicecontrol_v1.rb +3 -3
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v2.rb +3 -3
- data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
- data/generated/google/apis/servicedirectory_v1.rb +35 -0
- data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
- data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
- data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +11 -10
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -10
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +9 -3
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +0 -22
- data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/trafficdirector_v2.rb +2 -2
- data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
- data/generated/google/apis/transcoder_v1beta1.rb +1 -1
- data/generated/google/apis/transcoder_v1beta1/classes.rb +12 -2
- data/generated/google/apis/transcoder_v1beta1/representations.rb +1 -0
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +1 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
- data/generated/google/apis/workflows_v1beta.rb +1 -1
- data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -7
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
@@ -84,7 +84,10 @@ module Google
|
|
84
84
|
execute_or_queue_command(command, &block)
|
85
85
|
end
|
86
86
|
|
87
|
-
# Creates a device. Only company-owned device may be created.
|
87
|
+
# Creates a device. Only company-owned device may be created. **Note**: This
|
88
|
+
# method is available only to customers who have one of the following SKUs:
|
89
|
+
# Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud
|
90
|
+
# Identity Premium
|
88
91
|
# @param [Google::Apis::CloudidentityV1beta1::CreateDeviceRequest] create_device_request_object
|
89
92
|
# @param [String] fields
|
90
93
|
# Selector specifying which fields to include in a partial response.
|
@@ -683,7 +686,10 @@ module Google
|
|
683
686
|
execute_or_queue_command(command, &block)
|
684
687
|
end
|
685
688
|
|
686
|
-
# Updates the client state for the device user
|
689
|
+
# Updates the client state for the device user **Note**: This method is
|
690
|
+
# available only to customers who have one of the following SKUs: Enterprise
|
691
|
+
# Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity
|
692
|
+
# Premium
|
687
693
|
# @param [String] name
|
688
694
|
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
689
695
|
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/kms/
|
27
27
|
module CloudkmsV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20201201'
|
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'
|
@@ -278,11 +278,6 @@ module Google
|
|
278
278
|
class Binding
|
279
279
|
include Google::Apis::Core::Hashable
|
280
280
|
|
281
|
-
#
|
282
|
-
# Corresponds to the JSON property `bindingId`
|
283
|
-
# @return [String]
|
284
|
-
attr_accessor :binding_id
|
285
|
-
|
286
281
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
287
282
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
288
283
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -344,7 +339,6 @@ module Google
|
|
344
339
|
|
345
340
|
# Update properties of this object
|
346
341
|
def update!(**args)
|
347
|
-
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
348
342
|
@condition = args[:condition] if args.key?(:condition)
|
349
343
|
@members = args[:members] if args.key?(:members)
|
350
344
|
@role = args[:role] if args.key?(:role)
|
@@ -306,7 +306,6 @@ module Google
|
|
306
306
|
class Binding
|
307
307
|
# @private
|
308
308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
-
property :binding_id, as: 'bindingId'
|
310
309
|
property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation
|
311
310
|
|
312
311
|
collection :members, as: 'members'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/scheduler/
|
26
26
|
module CloudschedulerV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20201202'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -312,6 +312,15 @@ module Google
|
|
312
312
|
# @return [String]
|
313
313
|
attr_accessor :last_attempt_time
|
314
314
|
|
315
|
+
# Immutable. This field is used to manage the legacy App Engine Cron jobs using
|
316
|
+
# the Cloud Scheduler API. If the field is set to true, the job will be
|
317
|
+
# considered a legacy job. Note that App Engine Cron jobs have fewer features
|
318
|
+
# than Cloud Scheduler jobs, e.g., are only limited to App Engine targets.
|
319
|
+
# Corresponds to the JSON property `legacyAppEngineCron`
|
320
|
+
# @return [Boolean]
|
321
|
+
attr_accessor :legacy_app_engine_cron
|
322
|
+
alias_method :legacy_app_engine_cron?, :legacy_app_engine_cron
|
323
|
+
|
315
324
|
# Optionally caller-specified in CreateJob, after which it becomes output only.
|
316
325
|
# The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/
|
317
326
|
# JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
@@ -405,6 +414,7 @@ module Google
|
|
405
414
|
@description = args[:description] if args.key?(:description)
|
406
415
|
@http_target = args[:http_target] if args.key?(:http_target)
|
407
416
|
@last_attempt_time = args[:last_attempt_time] if args.key?(:last_attempt_time)
|
417
|
+
@legacy_app_engine_cron = args[:legacy_app_engine_cron] if args.key?(:legacy_app_engine_cron)
|
408
418
|
@name = args[:name] if args.key?(:name)
|
409
419
|
@pubsub_target = args[:pubsub_target] if args.key?(:pubsub_target)
|
410
420
|
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
@@ -779,12 +789,21 @@ module Google
|
|
779
789
|
class RunJobRequest
|
780
790
|
include Google::Apis::Core::Hashable
|
781
791
|
|
792
|
+
# This field is used to manage the legacy App Engine Cron jobs using the Cloud
|
793
|
+
# Scheduler API. If the field is set to true, the job in the __cron queue with
|
794
|
+
# the corresponding name will be forced to run instead.
|
795
|
+
# Corresponds to the JSON property `legacyAppEngineCron`
|
796
|
+
# @return [Boolean]
|
797
|
+
attr_accessor :legacy_app_engine_cron
|
798
|
+
alias_method :legacy_app_engine_cron?, :legacy_app_engine_cron
|
799
|
+
|
782
800
|
def initialize(**args)
|
783
801
|
update!(**args)
|
784
802
|
end
|
785
803
|
|
786
804
|
# Update properties of this object
|
787
805
|
def update!(**args)
|
806
|
+
@legacy_app_engine_cron = args[:legacy_app_engine_cron] if args.key?(:legacy_app_engine_cron)
|
788
807
|
end
|
789
808
|
end
|
790
809
|
|
@@ -176,6 +176,7 @@ module Google
|
|
176
176
|
property :http_target, as: 'httpTarget', class: Google::Apis::CloudschedulerV1beta1::HttpTarget, decorator: Google::Apis::CloudschedulerV1beta1::HttpTarget::Representation
|
177
177
|
|
178
178
|
property :last_attempt_time, as: 'lastAttemptTime'
|
179
|
+
property :legacy_app_engine_cron, as: 'legacyAppEngineCron'
|
179
180
|
property :name, as: 'name'
|
180
181
|
property :pubsub_target, as: 'pubsubTarget', class: Google::Apis::CloudschedulerV1beta1::PubsubTarget, decorator: Google::Apis::CloudschedulerV1beta1::PubsubTarget::Representation
|
181
182
|
|
@@ -282,6 +283,7 @@ module Google
|
|
282
283
|
class RunJobRequest
|
283
284
|
# @private
|
284
285
|
class Representation < Google::Apis::Core::JsonRepresentation
|
286
|
+
property :legacy_app_engine_cron, as: 'legacyAppEngineCron'
|
285
287
|
end
|
286
288
|
end
|
287
289
|
|
@@ -154,6 +154,10 @@ module Google
|
|
154
154
|
# @param [String] name
|
155
155
|
# Required. The job name. For example: `projects/PROJECT_ID/locations/
|
156
156
|
# LOCATION_ID/jobs/JOB_ID`.
|
157
|
+
# @param [Boolean] legacy_app_engine_cron
|
158
|
+
# This field is used to manage the legacy App Engine Cron jobs using the Cloud
|
159
|
+
# Scheduler API. If the field is set to true, the job in the __cron queue with
|
160
|
+
# the corresponding name will be deleted instead.
|
157
161
|
# @param [String] fields
|
158
162
|
# Selector specifying which fields to include in a partial response.
|
159
163
|
# @param [String] quota_user
|
@@ -171,11 +175,12 @@ module Google
|
|
171
175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
172
176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
173
177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
174
|
-
def delete_project_location_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
178
|
+
def delete_project_location_job(name, legacy_app_engine_cron: nil, fields: nil, quota_user: nil, options: nil, &block)
|
175
179
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
176
180
|
command.response_representation = Google::Apis::CloudschedulerV1beta1::Empty::Representation
|
177
181
|
command.response_class = Google::Apis::CloudschedulerV1beta1::Empty
|
178
182
|
command.params['name'] = name unless name.nil?
|
183
|
+
command.query['legacyAppEngineCron'] = legacy_app_engine_cron unless legacy_app_engine_cron.nil?
|
179
184
|
command.query['fields'] = fields unless fields.nil?
|
180
185
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
181
186
|
execute_or_queue_command(command, &block)
|
@@ -216,6 +221,10 @@ module Google
|
|
216
221
|
# @param [String] parent
|
217
222
|
# Required. The location name. For example: `projects/PROJECT_ID/locations/
|
218
223
|
# LOCATION_ID`.
|
224
|
+
# @param [Boolean] legacy_app_engine_cron
|
225
|
+
# This field is used to manage the legacy App Engine Cron jobs using the Cloud
|
226
|
+
# Scheduler API. If the field is set to true, the jobs in the __cron queue will
|
227
|
+
# be listed instead.
|
219
228
|
# @param [Fixnum] page_size
|
220
229
|
# Requested page size. The maximum page size is 500. If unspecified, the page
|
221
230
|
# size will be the maximum. Fewer jobs than requested might be returned, even if
|
@@ -243,11 +252,12 @@ module Google
|
|
243
252
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
244
253
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
245
254
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
246
|
-
def list_project_location_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
255
|
+
def list_project_location_jobs(parent, legacy_app_engine_cron: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
247
256
|
command = make_simple_command(:get, 'v1beta1/{+parent}/jobs', options)
|
248
257
|
command.response_representation = Google::Apis::CloudschedulerV1beta1::ListJobsResponse::Representation
|
249
258
|
command.response_class = Google::Apis::CloudschedulerV1beta1::ListJobsResponse
|
250
259
|
command.params['parent'] = parent unless parent.nil?
|
260
|
+
command.query['legacyAppEngineCron'] = legacy_app_engine_cron unless legacy_app_engine_cron.nil?
|
251
261
|
command.query['pageSize'] = page_size unless page_size.nil?
|
252
262
|
command.query['pageToken'] = page_token unless page_token.nil?
|
253
263
|
command.query['fields'] = fields unless fields.nil?
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/tasks/
|
26
26
|
module CloudtasksV2beta2
|
27
27
|
VERSION = 'V2beta2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20201202'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1013,6 +1013,11 @@ module Google
|
|
1013
1013
|
# @return [String]
|
1014
1014
|
attr_accessor :state
|
1015
1015
|
|
1016
|
+
# Statistics for a queue.
|
1017
|
+
# Corresponds to the JSON property `stats`
|
1018
|
+
# @return [Google::Apis::CloudtasksV2beta2::QueueStats]
|
1019
|
+
attr_accessor :stats
|
1020
|
+
|
1016
1021
|
def initialize(**args)
|
1017
1022
|
update!(**args)
|
1018
1023
|
end
|
@@ -1026,6 +1031,60 @@ module Google
|
|
1026
1031
|
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
|
1027
1032
|
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
1028
1033
|
@state = args[:state] if args.key?(:state)
|
1034
|
+
@stats = args[:stats] if args.key?(:stats)
|
1035
|
+
end
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Statistics for a queue.
|
1039
|
+
class QueueStats
|
1040
|
+
include Google::Apis::Core::Hashable
|
1041
|
+
|
1042
|
+
# Output only. The number of requests that the queue has dispatched but has not
|
1043
|
+
# received a reply for yet.
|
1044
|
+
# Corresponds to the JSON property `concurrentDispatchesCount`
|
1045
|
+
# @return [Fixnum]
|
1046
|
+
attr_accessor :concurrent_dispatches_count
|
1047
|
+
|
1048
|
+
# Output only. The current maximum number of tasks per second executed by the
|
1049
|
+
# queue. The maximum value of this variable is controlled by the RateLimits of
|
1050
|
+
# the Queue. However, this value could be less to avoid overloading the
|
1051
|
+
# endpoints tasks in the queue are targeting.
|
1052
|
+
# Corresponds to the JSON property `effectiveExecutionRate`
|
1053
|
+
# @return [Float]
|
1054
|
+
attr_accessor :effective_execution_rate
|
1055
|
+
|
1056
|
+
# Output only. The number of tasks that the queue has dispatched and received a
|
1057
|
+
# reply for during the last minute. This variable counts both successful and non-
|
1058
|
+
# successful executions.
|
1059
|
+
# Corresponds to the JSON property `executedLastMinuteCount`
|
1060
|
+
# @return [Fixnum]
|
1061
|
+
attr_accessor :executed_last_minute_count
|
1062
|
+
|
1063
|
+
# Output only. An estimation of the nearest time in the future where a task in
|
1064
|
+
# the queue is scheduled to be executed.
|
1065
|
+
# Corresponds to the JSON property `oldestEstimatedArrivalTime`
|
1066
|
+
# @return [String]
|
1067
|
+
attr_accessor :oldest_estimated_arrival_time
|
1068
|
+
|
1069
|
+
# Output only. An estimation of the number of tasks in the queue, that is, the
|
1070
|
+
# tasks in the queue that haven't been executed, the tasks in the queue which
|
1071
|
+
# the queue has dispatched but has not yet received a reply for, and the failed
|
1072
|
+
# tasks that the queue is retrying.
|
1073
|
+
# Corresponds to the JSON property `tasksCount`
|
1074
|
+
# @return [Fixnum]
|
1075
|
+
attr_accessor :tasks_count
|
1076
|
+
|
1077
|
+
def initialize(**args)
|
1078
|
+
update!(**args)
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
# Update properties of this object
|
1082
|
+
def update!(**args)
|
1083
|
+
@concurrent_dispatches_count = args[:concurrent_dispatches_count] if args.key?(:concurrent_dispatches_count)
|
1084
|
+
@effective_execution_rate = args[:effective_execution_rate] if args.key?(:effective_execution_rate)
|
1085
|
+
@executed_last_minute_count = args[:executed_last_minute_count] if args.key?(:executed_last_minute_count)
|
1086
|
+
@oldest_estimated_arrival_time = args[:oldest_estimated_arrival_time] if args.key?(:oldest_estimated_arrival_time)
|
1087
|
+
@tasks_count = args[:tasks_count] if args.key?(:tasks_count)
|
1029
1088
|
end
|
1030
1089
|
end
|
1031
1090
|
|
@@ -166,6 +166,12 @@ module Google
|
|
166
166
|
include Google::Apis::Core::JsonObjectSupport
|
167
167
|
end
|
168
168
|
|
169
|
+
class QueueStats
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
169
175
|
class RateLimits
|
170
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
177
|
|
@@ -444,6 +450,19 @@ module Google
|
|
444
450
|
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation
|
445
451
|
|
446
452
|
property :state, as: 'state'
|
453
|
+
property :stats, as: 'stats', class: Google::Apis::CloudtasksV2beta2::QueueStats, decorator: Google::Apis::CloudtasksV2beta2::QueueStats::Representation
|
454
|
+
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
class QueueStats
|
459
|
+
# @private
|
460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
461
|
+
property :concurrent_dispatches_count, :numeric_string => true, as: 'concurrentDispatchesCount'
|
462
|
+
property :effective_execution_rate, as: 'effectiveExecutionRate'
|
463
|
+
property :executed_last_minute_count, :numeric_string => true, as: 'executedLastMinuteCount'
|
464
|
+
property :oldest_estimated_arrival_time, as: 'oldestEstimatedArrivalTime'
|
465
|
+
property :tasks_count, :numeric_string => true, as: 'tasksCount'
|
447
466
|
end
|
448
467
|
end
|
449
468
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/tasks/
|
26
26
|
module CloudtasksV2beta3
|
27
27
|
VERSION = 'V2beta3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20201202'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -879,6 +879,40 @@ module Google
|
|
879
879
|
end
|
880
880
|
end
|
881
881
|
|
882
|
+
# Pull Message. This proto can only be used for tasks in a queue which has PULL
|
883
|
+
# type. It currently exists for backwards compatibility with the App Engine Task
|
884
|
+
# Queue SDK. This message type maybe returned with methods list and get, when
|
885
|
+
# the response view is FULL.
|
886
|
+
class PullMessage
|
887
|
+
include Google::Apis::Core::Hashable
|
888
|
+
|
889
|
+
# A data payload consumed by the worker to execute the task.
|
890
|
+
# Corresponds to the JSON property `payload`
|
891
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
892
|
+
# @return [String]
|
893
|
+
attr_accessor :payload
|
894
|
+
|
895
|
+
# The tasks's tag. The tag is less than 500 characters. SDK compatibility:
|
896
|
+
# Although the SDK allows tags to be either string or [bytes](https://cloud.
|
897
|
+
# google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/
|
898
|
+
# taskqueue/TaskOptions.html#tag-byte:A-), only UTF-8 encoded tags can be used
|
899
|
+
# in Cloud Tasks. If a tag isn't UTF-8 encoded, the tag will be empty when the
|
900
|
+
# task is returned by Cloud Tasks.
|
901
|
+
# Corresponds to the JSON property `tag`
|
902
|
+
# @return [String]
|
903
|
+
attr_accessor :tag
|
904
|
+
|
905
|
+
def initialize(**args)
|
906
|
+
update!(**args)
|
907
|
+
end
|
908
|
+
|
909
|
+
# Update properties of this object
|
910
|
+
def update!(**args)
|
911
|
+
@payload = args[:payload] if args.key?(:payload)
|
912
|
+
@tag = args[:tag] if args.key?(:tag)
|
913
|
+
end
|
914
|
+
end
|
915
|
+
|
882
916
|
# Request message for PurgeQueue.
|
883
917
|
class PurgeQueueRequest
|
884
918
|
include Google::Apis::Core::Hashable
|
@@ -961,6 +995,11 @@ module Google
|
|
961
995
|
# @return [String]
|
962
996
|
attr_accessor :state
|
963
997
|
|
998
|
+
# Statistics for a queue.
|
999
|
+
# Corresponds to the JSON property `stats`
|
1000
|
+
# @return [Google::Apis::CloudtasksV2beta3::QueueStats]
|
1001
|
+
attr_accessor :stats
|
1002
|
+
|
964
1003
|
# Immutable. The type of a queue (push or pull). `Queue.type` is an immutable
|
965
1004
|
# property of the queue that is set at the queue creation time. When left
|
966
1005
|
# unspecified, the default value of `PUSH` is selected.
|
@@ -981,10 +1020,64 @@ module Google
|
|
981
1020
|
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
982
1021
|
@stackdriver_logging_config = args[:stackdriver_logging_config] if args.key?(:stackdriver_logging_config)
|
983
1022
|
@state = args[:state] if args.key?(:state)
|
1023
|
+
@stats = args[:stats] if args.key?(:stats)
|
984
1024
|
@type = args[:type] if args.key?(:type)
|
985
1025
|
end
|
986
1026
|
end
|
987
1027
|
|
1028
|
+
# Statistics for a queue.
|
1029
|
+
class QueueStats
|
1030
|
+
include Google::Apis::Core::Hashable
|
1031
|
+
|
1032
|
+
# Output only. The number of requests that the queue has dispatched but has not
|
1033
|
+
# received a reply for yet.
|
1034
|
+
# Corresponds to the JSON property `concurrentDispatchesCount`
|
1035
|
+
# @return [Fixnum]
|
1036
|
+
attr_accessor :concurrent_dispatches_count
|
1037
|
+
|
1038
|
+
# Output only. The current maximum number of tasks per second executed by the
|
1039
|
+
# queue. The maximum value of this variable is controlled by the RateLimits of
|
1040
|
+
# the Queue. However, this value could be less to avoid overloading the
|
1041
|
+
# endpoints tasks in the queue are targeting.
|
1042
|
+
# Corresponds to the JSON property `effectiveExecutionRate`
|
1043
|
+
# @return [Float]
|
1044
|
+
attr_accessor :effective_execution_rate
|
1045
|
+
|
1046
|
+
# Output only. The number of tasks that the queue has dispatched and received a
|
1047
|
+
# reply for during the last minute. This variable counts both successful and non-
|
1048
|
+
# successful executions.
|
1049
|
+
# Corresponds to the JSON property `executedLastMinuteCount`
|
1050
|
+
# @return [Fixnum]
|
1051
|
+
attr_accessor :executed_last_minute_count
|
1052
|
+
|
1053
|
+
# Output only. An estimation of the nearest time in the future where a task in
|
1054
|
+
# the queue is scheduled to be executed.
|
1055
|
+
# Corresponds to the JSON property `oldestEstimatedArrivalTime`
|
1056
|
+
# @return [String]
|
1057
|
+
attr_accessor :oldest_estimated_arrival_time
|
1058
|
+
|
1059
|
+
# Output only. An estimation of the number of tasks in the queue, that is, the
|
1060
|
+
# tasks in the queue that haven't been executed, the tasks in the queue which
|
1061
|
+
# the queue has dispatched but has not yet received a reply for, and the failed
|
1062
|
+
# tasks that the queue is retrying.
|
1063
|
+
# Corresponds to the JSON property `tasksCount`
|
1064
|
+
# @return [Fixnum]
|
1065
|
+
attr_accessor :tasks_count
|
1066
|
+
|
1067
|
+
def initialize(**args)
|
1068
|
+
update!(**args)
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
# Update properties of this object
|
1072
|
+
def update!(**args)
|
1073
|
+
@concurrent_dispatches_count = args[:concurrent_dispatches_count] if args.key?(:concurrent_dispatches_count)
|
1074
|
+
@effective_execution_rate = args[:effective_execution_rate] if args.key?(:effective_execution_rate)
|
1075
|
+
@executed_last_minute_count = args[:executed_last_minute_count] if args.key?(:executed_last_minute_count)
|
1076
|
+
@oldest_estimated_arrival_time = args[:oldest_estimated_arrival_time] if args.key?(:oldest_estimated_arrival_time)
|
1077
|
+
@tasks_count = args[:tasks_count] if args.key?(:tasks_count)
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
988
1081
|
# Rate limits. This message determines the maximum rate that tasks can be
|
989
1082
|
# dispatched by a queue, regardless of whether the dispatch is a first task
|
990
1083
|
# attempt or a retry. Note: The debugging command, RunTask, will run a task even
|
@@ -1394,6 +1487,14 @@ module Google
|
|
1394
1487
|
# @return [String]
|
1395
1488
|
attr_accessor :name
|
1396
1489
|
|
1490
|
+
# Pull Message. This proto can only be used for tasks in a queue which has PULL
|
1491
|
+
# type. It currently exists for backwards compatibility with the App Engine Task
|
1492
|
+
# Queue SDK. This message type maybe returned with methods list and get, when
|
1493
|
+
# the response view is FULL.
|
1494
|
+
# Corresponds to the JSON property `pullMessage`
|
1495
|
+
# @return [Google::Apis::CloudtasksV2beta3::PullMessage]
|
1496
|
+
attr_accessor :pull_message
|
1497
|
+
|
1397
1498
|
# Output only. The number of attempts which have received a response.
|
1398
1499
|
# Corresponds to the JSON property `responseCount`
|
1399
1500
|
# @return [Fixnum]
|
@@ -1425,6 +1526,7 @@ module Google
|
|
1425
1526
|
@http_request = args[:http_request] if args.key?(:http_request)
|
1426
1527
|
@last_attempt = args[:last_attempt] if args.key?(:last_attempt)
|
1427
1528
|
@name = args[:name] if args.key?(:name)
|
1529
|
+
@pull_message = args[:pull_message] if args.key?(:pull_message)
|
1428
1530
|
@response_count = args[:response_count] if args.key?(:response_count)
|
1429
1531
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
1430
1532
|
@view = args[:view] if args.key?(:view)
|