google-cloud-workflows-executions-v1beta 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9afa870e438eec10b4d665e815b52e89a028b0718a9c8612852d4d5ab5a5c26b
4
- data.tar.gz: b0a8460f7d507da2530191d011e42110d47b3a2981f5cb100b740c8d9c2dabbd
3
+ metadata.gz: b99fb81ca080b971878f94f8a9fdd6140d32aabe88cd0b7395eec36081215ff6
4
+ data.tar.gz: bb89442de9215b5f3e16023cb6f8370191deb91e7547d359a537569010d67547
5
5
  SHA512:
6
- metadata.gz: 89b1932ccc68b80c1af0f4744df9c16a489031f6ce52d24cde09940736c8dbbd759c1c0c7ba4eaa62046a1a60066d19a4d67b6308448349b2bb176dae2d122ee
7
- data.tar.gz: c9f210b2d91aea4273228f89c3a22cc9a05d65e5fa30c1051cac4dd80ee1e4e5e64224a067c87fd1e5eb881c51ed3f44f83be8573bece96fc672e6b98a71997b
6
+ metadata.gz: 0bbb0b8e0f267f93343cd5a95e3a9b0d5bbc6d1fe76310cd714544bcbf0257069ffa00ed83dd0012c523bb1e999d6b668791098948ce8a26c752aefd77f465f9
7
+ data.tar.gz: '086cd7e637fa89eff55798f178a6242e5ec29267f39efec71a473196d35dc7809c198005ca80b36d7894c114ea4874116500467024321a9de52fdbd4e888f64c'
@@ -194,6 +194,27 @@ module Google
194
194
  #
195
195
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
196
196
  #
197
+ # @example Basic example
198
+ # require "google/cloud/workflows/executions/v1beta"
199
+ #
200
+ # # Create a client object. The client can be reused for multiple calls.
201
+ # client = Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
202
+ #
203
+ # # Create a request. To set request fields, pass in keyword arguments.
204
+ # request = Google::Cloud::Workflows::Executions::V1beta::ListExecutionsRequest.new
205
+ #
206
+ # # Call the list_executions method.
207
+ # result = client.list_executions request
208
+ #
209
+ # # The returned object is of type Gapic::PagedEnumerable. You can
210
+ # # iterate over all elements by calling #each, and the enumerable
211
+ # # will lazily make API calls to fetch subsequent pages. Other
212
+ # # methods are also available for managing paging directly.
213
+ # result.each do |response|
214
+ # # Each element is of type ::Google::Cloud::Workflows::Executions::V1beta::Execution.
215
+ # p response
216
+ # end
217
+ #
197
218
  def list_executions request, options = nil
198
219
  raise ::ArgumentError, "request must be provided" if request.nil?
199
220
 
@@ -211,9 +232,11 @@ module Google
211
232
  gapic_version: ::Google::Cloud::Workflows::Executions::V1beta::VERSION
212
233
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
213
234
 
214
- header_params = {
215
- "parent" => request.parent
216
- }
235
+ header_params = {}
236
+ if request.parent
237
+ header_params["parent"] = request.parent
238
+ end
239
+
217
240
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
218
241
  metadata[:"x-goog-request-params"] ||= request_params_header
219
242
 
@@ -267,6 +290,21 @@ module Google
267
290
  #
268
291
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
269
292
  #
293
+ # @example Basic example
294
+ # require "google/cloud/workflows/executions/v1beta"
295
+ #
296
+ # # Create a client object. The client can be reused for multiple calls.
297
+ # client = Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
298
+ #
299
+ # # Create a request. To set request fields, pass in keyword arguments.
300
+ # request = Google::Cloud::Workflows::Executions::V1beta::CreateExecutionRequest.new
301
+ #
302
+ # # Call the create_execution method.
303
+ # result = client.create_execution request
304
+ #
305
+ # # The returned object is of type Google::Cloud::Workflows::Executions::V1beta::Execution.
306
+ # p result
307
+ #
270
308
  def create_execution request, options = nil
271
309
  raise ::ArgumentError, "request must be provided" if request.nil?
272
310
 
@@ -284,9 +322,11 @@ module Google
284
322
  gapic_version: ::Google::Cloud::Workflows::Executions::V1beta::VERSION
285
323
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
286
324
 
287
- header_params = {
288
- "parent" => request.parent
289
- }
325
+ header_params = {}
326
+ if request.parent
327
+ header_params["parent"] = request.parent
328
+ end
329
+
290
330
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
291
331
  metadata[:"x-goog-request-params"] ||= request_params_header
292
332
 
@@ -340,6 +380,21 @@ module Google
340
380
  #
341
381
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
342
382
  #
383
+ # @example Basic example
384
+ # require "google/cloud/workflows/executions/v1beta"
385
+ #
386
+ # # Create a client object. The client can be reused for multiple calls.
387
+ # client = Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
388
+ #
389
+ # # Create a request. To set request fields, pass in keyword arguments.
390
+ # request = Google::Cloud::Workflows::Executions::V1beta::GetExecutionRequest.new
391
+ #
392
+ # # Call the get_execution method.
393
+ # result = client.get_execution request
394
+ #
395
+ # # The returned object is of type Google::Cloud::Workflows::Executions::V1beta::Execution.
396
+ # p result
397
+ #
343
398
  def get_execution request, options = nil
344
399
  raise ::ArgumentError, "request must be provided" if request.nil?
345
400
 
@@ -357,9 +412,11 @@ module Google
357
412
  gapic_version: ::Google::Cloud::Workflows::Executions::V1beta::VERSION
358
413
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
359
414
 
360
- header_params = {
361
- "name" => request.name
362
- }
415
+ header_params = {}
416
+ if request.name
417
+ header_params["name"] = request.name
418
+ end
419
+
363
420
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
364
421
  metadata[:"x-goog-request-params"] ||= request_params_header
365
422
 
@@ -410,6 +467,21 @@ module Google
410
467
  #
411
468
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
412
469
  #
470
+ # @example Basic example
471
+ # require "google/cloud/workflows/executions/v1beta"
472
+ #
473
+ # # Create a client object. The client can be reused for multiple calls.
474
+ # client = Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
475
+ #
476
+ # # Create a request. To set request fields, pass in keyword arguments.
477
+ # request = Google::Cloud::Workflows::Executions::V1beta::CancelExecutionRequest.new
478
+ #
479
+ # # Call the cancel_execution method.
480
+ # result = client.cancel_execution request
481
+ #
482
+ # # The returned object is of type Google::Cloud::Workflows::Executions::V1beta::Execution.
483
+ # p result
484
+ #
413
485
  def cancel_execution request, options = nil
414
486
  raise ::ArgumentError, "request must be provided" if request.nil?
415
487
 
@@ -427,9 +499,11 @@ module Google
427
499
  gapic_version: ::Google::Cloud::Workflows::Executions::V1beta::VERSION
428
500
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
501
 
430
- header_params = {
431
- "name" => request.name
432
- }
502
+ header_params = {}
503
+ if request.name
504
+ header_params["name"] = request.name
505
+ end
506
+
433
507
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
434
508
  metadata[:"x-goog-request-params"] ||= request_params_header
435
509
 
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/workflows/executions/v1beta/executions.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/protobuf/timestamp_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/workflows/executions/v1beta/executions.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.workflows.executions.v1beta.Execution" do
@@ -29,7 +29,7 @@ module Google
29
29
  # [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -22,7 +22,7 @@ module Google
22
22
  module Workflows
23
23
  module Executions
24
24
  module V1beta
25
- VERSION = "0.3.4"
25
+ VERSION = "0.3.5"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-workflows-executions-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common