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

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: 88102da31538db9498060e0dbd26b9603faaccc2fa6a6c58d4a401dd2c232306
4
- data.tar.gz: 97a0a0eddb974e701249215bed36498ac113ee3177701b239be860c85d48fd72
3
+ metadata.gz: b99fb81ca080b971878f94f8a9fdd6140d32aabe88cd0b7395eec36081215ff6
4
+ data.tar.gz: bb89442de9215b5f3e16023cb6f8370191deb91e7547d359a537569010d67547
5
5
  SHA512:
6
- metadata.gz: bf3b6dd8c2e035ddfc930c8a2e4a1c37b2fe3d6c5fea75f2255f0d4424be360a1d4a3a9e1d0d5c6c1975c3e112a291fd4e44ba80c5369acff83b93fa1c3638d2
7
- data.tar.gz: e70efa328883e7b9216391c3b49e7d96d6f831b5053412172b210bdbc906c95ac6c08668893c17cf91f038d196bc5e8d807ef4947dc3af23c6b9e020cc276460
6
+ metadata.gz: 0bbb0b8e0f267f93343cd5a95e3a9b0d5bbc6d1fe76310cd714544bcbf0257069ffa00ed83dd0012c523bb1e999d6b668791098948ce8a26c752aefd77f465f9
7
+ data.tar.gz: '086cd7e637fa89eff55798f178a6242e5ec29267f39efec71a473196d35dc7809c198005ca80b36d7894c114ea4874116500467024321a9de52fdbd4e888f64c'
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-workflows-executions-v1beta
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Workflows::Executions::V1beta::Executions::Credentials}):
68
68
 
69
- 1. `WORKFLOWS_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `WORKFLOWS_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `WORKFLOWS_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `WORKFLOWS_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/workflows/executions/v1beta"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/workflows/executions/v1beta"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/workflows/executions/v1beta"
data/README.md CHANGED
@@ -9,7 +9,7 @@ https://github.com/googleapis/google-cloud-ruby
9
9
  This gem is a _versioned_ client. It provides basic client classes for a
10
10
  specific version of the Workflows Executions V1beta API. Most users should consider using
11
11
  the main client gem,
12
- [google-cloud-workflows-executions](https://rubygems.org/gems/google-cloud-workflows-executions).
12
+ [google-cloud-workflows](https://rubygems.org/gems/google-cloud-workflows).
13
13
  See the section below titled *Which client should I use?* for more information.
14
14
 
15
15
  ## Installation
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/workflows/executions/v1beta"
34
34
 
35
35
  client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Workflows::Executions::V1beta::ListExecutionsRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_executions request
38
38
  ```
39
39
 
@@ -83,7 +83,7 @@ about the Ruby support schedule.
83
83
  ## Which client should I use?
84
84
 
85
85
  Most modern Ruby client libraries for Google APIs come in two flavors: the main
86
- client library with a name such as `google-cloud-workflows-executions`,
86
+ client library with a name such as `google-cloud-workflows`,
87
87
  and lower-level _versioned_ client libraries with names such as
88
88
  `google-cloud-workflows-executions-v1beta`.
89
89
  _In most cases, you should install the main client._
@@ -110,7 +110,7 @@ service version.
110
110
 
111
111
  We recommend that most users install the main client gem for a service. You can
112
112
  identify this gem as the one _without_ a version in its name, e.g.
113
- `google-cloud-workflows-executions`.
113
+ `google-cloud-workflows`.
114
114
  The main client is recommended because it will embody the best practices for
115
115
  accessing the service, and may also provide more convenient interfaces or
116
116
  tighter integration into frameworks and third-party libraries. In addition, the
@@ -43,13 +43,12 @@ module Google
43
43
  # See {::Google::Cloud::Workflows::Executions::V1beta::Executions::Client::Configuration}
44
44
  # for a description of the configuration fields.
45
45
  #
46
- # ## Example
46
+ # @example
47
47
  #
48
- # To modify the configuration for all Executions clients:
49
- #
50
- # ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.configure do |config|
51
- # config.timeout = 10.0
52
- # end
48
+ # # Modify the configuration for all Executions clients
49
+ # ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
53
52
  #
54
53
  # @yield [config] Configure the Client client.
55
54
  # @yieldparam config [Client::Configuration]
@@ -96,19 +95,15 @@ module Google
96
95
  ##
97
96
  # Create a new Executions client object.
98
97
  #
99
- # ## Examples
100
- #
101
- # To create a new Executions client with the default
102
- # configuration:
103
- #
104
- # client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
98
+ # @example
105
99
  #
106
- # To create a new Executions client with a custom
107
- # configuration:
100
+ # # Create a client using the default configuration
101
+ # client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new
108
102
  #
109
- # client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new do |config|
110
- # config.timeout = 10.0
111
- # end
103
+ # # Create a client using a custom configuration
104
+ # client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new do |config|
105
+ # config.timeout = 10.0
106
+ # end
112
107
  #
113
108
  # @yield [config] Configure the Executions client.
114
109
  # @yieldparam config [Client::Configuration]
@@ -128,14 +123,13 @@ module Google
128
123
 
129
124
  # Create credentials
130
125
  credentials = @config.credentials
131
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
126
+ # Use self-signed JWT if the endpoint is unchanged from default,
132
127
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
134
- @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
135
129
  !@config.endpoint.split(".").first.include?("-")
136
130
  credentials ||= Credentials.default scope: @config.scope,
137
131
  enable_self_signed_jwt: enable_self_signed_jwt
138
- if credentials.is_a?(String) || credentials.is_a?(Hash)
132
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
139
133
  credentials = Credentials.new credentials, scope: @config.scope
140
134
  end
141
135
  @quota_project_id = @config.quota_project
@@ -200,6 +194,27 @@ module Google
200
194
  #
201
195
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
202
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
+ #
203
218
  def list_executions request, options = nil
204
219
  raise ::ArgumentError, "request must be provided" if request.nil?
205
220
 
@@ -217,16 +232,20 @@ module Google
217
232
  gapic_version: ::Google::Cloud::Workflows::Executions::V1beta::VERSION
218
233
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
219
234
 
220
- header_params = {
221
- "parent" => request.parent
222
- }
235
+ header_params = {}
236
+ if request.parent
237
+ header_params["parent"] = request.parent
238
+ end
239
+
223
240
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
224
241
  metadata[:"x-goog-request-params"] ||= request_params_header
225
242
 
226
243
  options.apply_defaults timeout: @config.rpcs.list_executions.timeout,
227
244
  metadata: metadata,
228
245
  retry_policy: @config.rpcs.list_executions.retry_policy
229
- options.apply_defaults metadata: @config.metadata,
246
+
247
+ options.apply_defaults timeout: @config.timeout,
248
+ metadata: @config.metadata,
230
249
  retry_policy: @config.retry_policy
231
250
 
232
251
  @executions_stub.call_rpc :list_executions, request, options: options do |response, operation|
@@ -271,6 +290,21 @@ module Google
271
290
  #
272
291
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
273
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
+ #
274
308
  def create_execution request, options = nil
275
309
  raise ::ArgumentError, "request must be provided" if request.nil?
276
310
 
@@ -288,16 +322,20 @@ module Google
288
322
  gapic_version: ::Google::Cloud::Workflows::Executions::V1beta::VERSION
289
323
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
290
324
 
291
- header_params = {
292
- "parent" => request.parent
293
- }
325
+ header_params = {}
326
+ if request.parent
327
+ header_params["parent"] = request.parent
328
+ end
329
+
294
330
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
295
331
  metadata[:"x-goog-request-params"] ||= request_params_header
296
332
 
297
333
  options.apply_defaults timeout: @config.rpcs.create_execution.timeout,
298
334
  metadata: metadata,
299
335
  retry_policy: @config.rpcs.create_execution.retry_policy
300
- options.apply_defaults metadata: @config.metadata,
336
+
337
+ options.apply_defaults timeout: @config.timeout,
338
+ metadata: @config.metadata,
301
339
  retry_policy: @config.retry_policy
302
340
 
303
341
  @executions_stub.call_rpc :create_execution, request, options: options do |response, operation|
@@ -342,6 +380,21 @@ module Google
342
380
  #
343
381
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
344
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
+ #
345
398
  def get_execution request, options = nil
346
399
  raise ::ArgumentError, "request must be provided" if request.nil?
347
400
 
@@ -359,16 +412,20 @@ module Google
359
412
  gapic_version: ::Google::Cloud::Workflows::Executions::V1beta::VERSION
360
413
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
414
 
362
- header_params = {
363
- "name" => request.name
364
- }
415
+ header_params = {}
416
+ if request.name
417
+ header_params["name"] = request.name
418
+ end
419
+
365
420
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
366
421
  metadata[:"x-goog-request-params"] ||= request_params_header
367
422
 
368
423
  options.apply_defaults timeout: @config.rpcs.get_execution.timeout,
369
424
  metadata: metadata,
370
425
  retry_policy: @config.rpcs.get_execution.retry_policy
371
- options.apply_defaults metadata: @config.metadata,
426
+
427
+ options.apply_defaults timeout: @config.timeout,
428
+ metadata: @config.metadata,
372
429
  retry_policy: @config.retry_policy
373
430
 
374
431
  @executions_stub.call_rpc :get_execution, request, options: options do |response, operation|
@@ -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,16 +499,20 @@ 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
 
436
510
  options.apply_defaults timeout: @config.rpcs.cancel_execution.timeout,
437
511
  metadata: metadata,
438
512
  retry_policy: @config.rpcs.cancel_execution.retry_policy
439
- options.apply_defaults metadata: @config.metadata,
513
+
514
+ options.apply_defaults timeout: @config.timeout,
515
+ metadata: @config.metadata,
440
516
  retry_policy: @config.retry_policy
441
517
 
442
518
  @executions_stub.call_rpc :cancel_execution, request, options: options do |response, operation|
@@ -460,22 +536,21 @@ module Google
460
536
  # Configuration can be applied globally to all clients, or to a single client
461
537
  # on construction.
462
538
  #
463
- # # Examples
464
- #
465
- # To modify the global config, setting the timeout for list_executions
466
- # to 20 seconds, and all remaining timeouts to 10 seconds:
467
- #
468
- # ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.configure do |config|
469
- # config.timeout = 10.0
470
- # config.rpcs.list_executions.timeout = 20.0
471
- # end
472
- #
473
- # To apply the above configuration only to a new client:
474
- #
475
- # client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new do |config|
476
- # config.timeout = 10.0
477
- # config.rpcs.list_executions.timeout = 20.0
478
- # end
539
+ # @example
540
+ #
541
+ # # Modify the global config, setting the timeout for
542
+ # # list_executions to 20 seconds,
543
+ # # and all remaining timeouts to 10 seconds.
544
+ # ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.configure do |config|
545
+ # config.timeout = 10.0
546
+ # config.rpcs.list_executions.timeout = 20.0
547
+ # end
548
+ #
549
+ # # Apply the above configuration only to a new client.
550
+ # client = ::Google::Cloud::Workflows::Executions::V1beta::Executions::Client.new do |config|
551
+ # config.timeout = 10.0
552
+ # config.rpcs.list_executions.timeout = 20.0
553
+ # end
479
554
  #
480
555
  # @!attribute [rw] endpoint
481
556
  # The hostname or hostname:port of the service endpoint.
@@ -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
@@ -22,7 +22,7 @@ module Google
22
22
  module Workflows
23
23
  module Executions
24
24
  module V1beta
25
- VERSION = "0.3.1"
25
+ VERSION = "0.3.5"
26
26
  end
27
27
  end
28
28
  end
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  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.1
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-06-17 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -162,8 +162,7 @@ description: Workflows link series of serverless tasks together in an order you
162
162
  Workflows requires no infrastructure management and scales seamlessly with demand,
163
163
  including scaling down to zero.. Note that google-cloud-workflows-executions-v1beta
164
164
  is a version-specific client library. For most uses, we recommend installing the
165
- main client library google-cloud-workflows-executions instead. See the readme for
166
- more details.
165
+ main client library google-cloud-workflows instead. See the readme for more details.
167
166
  email: googleapis-packages@google.com
168
167
  executables: []
169
168
  extensions: []