google-apis-cloudtasks_v2beta2 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6e0218118a6c56944d4882b5da1b052343dbadb771422b1e344cc66c0eda2f3
4
- data.tar.gz: 3caf468950ab516b52e01e5cd03c04cd6e1e96e3fbe06040611cf101150c6aad
3
+ metadata.gz: 7cb8e6f8ee50d6825fb1907f5e7142569e9dac3e34b771948cc56f130b99754f
4
+ data.tar.gz: 47061fa17656fcc1f45c5e25c1083bd744c41a0a6d480916dff7d3383e5b351d
5
5
  SHA512:
6
- metadata.gz: 00badd17cdb52c066f5fe1fa0951181610aff174a1e4585a572a6ac11200d485d01570c9e66730b72afb8cc5de6c19c9336b8e7c8b230b7d7278b535aad1d7a7
7
- data.tar.gz: 73a3b06927815aaa5b5e28a65bc7a909a517283aea6effff5cefefee497ae24cace5618d9423df379e91470bb0ff67744721ca9eca50031ac9a1a48799e4344f
6
+ metadata.gz: 12187a6dd2a9d28593d175d8aa84dfb2ac8aef2937f318ad6797a3bacbcc1ce873e1e78d87f04815313feb0b8433274ff81063f29f2819ed5b2da16c90dfa26a
7
+ data.tar.gz: a8e36f49c01d250b577f1f9af5f434a3c3ead37ebef0da4eb7323952ea4e00cd5199786764f34b9ee51cca87127b8fb35e79f795e1fb46f1aba529c5ba737981
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudtasks_v2beta2
2
2
 
3
+ ### v0.25.0 (2022-09-09)
4
+
5
+ * Regenerated from discovery document revision 20220908
6
+
3
7
  ### v0.24.0 (2022-08-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20220825
@@ -402,8 +402,8 @@ module Google
402
402
  end
403
403
  end
404
404
 
405
- # Request message for BufferQueue.
406
- class BufferQueueRequest
405
+ # Request message for BufferTask.
406
+ class BufferTaskRequest
407
407
  include Google::Apis::Core::Hashable
408
408
 
409
409
  # Message that represents an arbitrary HTTP body. It should only be used for
@@ -436,15 +436,13 @@ module Google
436
436
  end
437
437
  end
438
438
 
439
- # Response message for BufferQueue.
440
- class BufferQueueResponse
439
+ # Response message for BufferTask.
440
+ class BufferTaskResponse
441
441
  include Google::Apis::Core::Hashable
442
442
 
443
- # The name of the created task. For example: `projects/PROJECT_ID/locations/
444
- # LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. TASK_ID is randomly generated and
445
- # is unique within the queue.
443
+ # A unit of scheduled work.
446
444
  # Corresponds to the JSON property `task`
447
- # @return [String]
445
+ # @return [Google::Apis::CloudtasksV2beta2::Task]
448
446
  attr_accessor :task
449
447
 
450
448
  def initialize(**args)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudtasksV2beta2
18
18
  # Version of the google-apis-cloudtasks_v2beta2 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.25.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220825"
25
+ REVISION = "20220908"
26
26
  end
27
27
  end
28
28
  end
@@ -58,13 +58,13 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class BufferQueueRequest
61
+ class BufferTaskRequest
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class BufferQueueResponse
67
+ class BufferTaskResponse
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
@@ -356,7 +356,7 @@ module Google
356
356
  end
357
357
  end
358
358
 
359
- class BufferQueueRequest
359
+ class BufferTaskRequest
360
360
  # @private
361
361
  class Representation < Google::Apis::Core::JsonRepresentation
362
362
  property :body, as: 'body', class: Google::Apis::CloudtasksV2beta2::HttpBody, decorator: Google::Apis::CloudtasksV2beta2::HttpBody::Representation
@@ -364,10 +364,11 @@ module Google
364
364
  end
365
365
  end
366
366
 
367
- class BufferQueueResponse
367
+ class BufferTaskResponse
368
368
  # @private
369
369
  class Representation < Google::Apis::Core::JsonRepresentation
370
- property :task, as: 'task'
370
+ property :task, as: 'task', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
371
+
371
372
  end
372
373
  end
373
374
 
@@ -122,45 +122,6 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
- # Note: This feature is in its experimental stage. You must request access to
126
- # the API through the [Cloud Tasks BufferQueues Experiment Signup form](https://
127
- # forms.gle/X8Zr5hiXH5tTGFqh8). Creates and buffers a new task without the need
128
- # to explicitly define a Task message. The queue must be an http queue (i.e.,
129
- # must have HTTP target). This method is used for a simplified application of
130
- # Cloud Tasks queues in buffer and rate limitting HTTP requests.
131
- # @param [String] name
132
- # Required. The queue name. For example: `projects/PROJECT_ID/locations/
133
- # LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
134
- # @param [Google::Apis::CloudtasksV2beta2::BufferQueueRequest] buffer_queue_request_object
135
- # @param [String] fields
136
- # Selector specifying which fields to include in a partial response.
137
- # @param [String] quota_user
138
- # Available to use for quota purposes for server-side applications. Can be any
139
- # arbitrary string assigned to a user, but should not exceed 40 characters.
140
- # @param [Google::Apis::RequestOptions] options
141
- # Request-specific options
142
- #
143
- # @yield [result, err] Result & error if block supplied
144
- # @yieldparam result [Google::Apis::CloudtasksV2beta2::BufferQueueResponse] parsed result object
145
- # @yieldparam err [StandardError] error object if request failed
146
- #
147
- # @return [Google::Apis::CloudtasksV2beta2::BufferQueueResponse]
148
- #
149
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
- # @raise [Google::Apis::AuthorizationError] Authorization is required
152
- def buffer_queue(name, buffer_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
153
- command = make_simple_command(:post, 'v2beta2/{+name}:buffer', options)
154
- command.request_representation = Google::Apis::CloudtasksV2beta2::BufferQueueRequest::Representation
155
- command.request_object = buffer_queue_request_object
156
- command.response_representation = Google::Apis::CloudtasksV2beta2::BufferQueueResponse::Representation
157
- command.response_class = Google::Apis::CloudtasksV2beta2::BufferQueueResponse
158
- command.params['name'] = name unless name.nil?
159
- command.query['fields'] = fields unless fields.nil?
160
- command.query['quotaUser'] = quota_user unless quota_user.nil?
161
- execute_or_queue_command(command, &block)
162
- end
163
-
164
125
  # Creates a queue. Queues created with this method allow tasks to live for a
165
126
  # maximum of 31 days. After a task is 31 days old, the task will be deleted
166
127
  # regardless of whether it was dispatched or not. WARNING: Using this method may
@@ -654,6 +615,43 @@ module Google
654
615
  execute_or_queue_command(command, &block)
655
616
  end
656
617
 
618
+ # Creates and buffers a new task without the need to explicitly define a Task
619
+ # message. The queue must have HTTP target. Note: This feature is in its
620
+ # experimental stage. You must request access to the API through the [Cloud
621
+ # Tasks BufferTasks Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
622
+ # @param [String] parent
623
+ # Required. The parent queue name. For example: projects/PROJECT_ID/locations/
624
+ # LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
625
+ # @param [Google::Apis::CloudtasksV2beta2::BufferTaskRequest] buffer_task_request_object
626
+ # @param [String] fields
627
+ # Selector specifying which fields to include in a partial response.
628
+ # @param [String] quota_user
629
+ # Available to use for quota purposes for server-side applications. Can be any
630
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
631
+ # @param [Google::Apis::RequestOptions] options
632
+ # Request-specific options
633
+ #
634
+ # @yield [result, err] Result & error if block supplied
635
+ # @yieldparam result [Google::Apis::CloudtasksV2beta2::BufferTaskResponse] parsed result object
636
+ # @yieldparam err [StandardError] error object if request failed
637
+ #
638
+ # @return [Google::Apis::CloudtasksV2beta2::BufferTaskResponse]
639
+ #
640
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
641
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
642
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
643
+ def buffer_task(parent, buffer_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
644
+ command = make_simple_command(:post, 'v2beta2/{+parent}/tasks:buffer', options)
645
+ command.request_representation = Google::Apis::CloudtasksV2beta2::BufferTaskRequest::Representation
646
+ command.request_object = buffer_task_request_object
647
+ command.response_representation = Google::Apis::CloudtasksV2beta2::BufferTaskResponse::Representation
648
+ command.response_class = Google::Apis::CloudtasksV2beta2::BufferTaskResponse
649
+ command.params['parent'] = parent unless parent.nil?
650
+ command.query['fields'] = fields unless fields.nil?
651
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
652
+ execute_or_queue_command(command, &block)
653
+ end
654
+
657
655
  # Cancel a pull task's lease. The worker can use this method to cancel a task's
658
656
  # lease by setting its schedule_time to now. This will make the task available
659
657
  # to be leased to the next caller of LeaseTasks.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudtasks_v2beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-29 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.25.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta2
63
63
  post_install_message:
64
64
  rdoc_options: []