google-apis-workflows_v1 0.28.0 → 0.30.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: 1c7b923b6aa6ffb69f967f1351299811c3e06a6d1072c0bee0986beba3d32c50
4
- data.tar.gz: a90d26ad906ae83d91c3c84645709c8c83fd293aadcbe2095d3a91b54f8e22d8
3
+ metadata.gz: b0ada9163b7dbb941a10edffb17f0589437132e3c99aac3d3598fe5fcbffa919
4
+ data.tar.gz: 45fad7d00af6e0d9e86b858a0df107152f0591ce3b928616e82314db60b04c0e
5
5
  SHA512:
6
- metadata.gz: 56fd799c678ba0716124685a461abad9c39db785ad8c470ad841493428d7c17152c94741c00bafbe6864e40102d21e8455572fd590dd31a5804ada561c16643f
7
- data.tar.gz: 9fc5a0f537eb4ecbbeddf2828745049a97e6421f7912489a10abf0c71ef4afb9a310d10d01853adcdbddbc3027f9ab5e58d5ea4a2124e6b4271b50b1e15901ff
6
+ metadata.gz: 89c06a817ae30ee962e99afbf27b8225b105ccb45700d574c15df3b43668944956036d0cd7b3b955656ad117fd9039174d48de5a601bc3107fa81caf8cc68459
7
+ data.tar.gz: 1765130a7ad77fe5faa1b233ed57cce65b9ffbfa27fdc89bfb94dc42929b6a4408f97a4343ada444af02236517197a3a77440e21c1e44ad4e3dcadffe755e99d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workflows_v1
2
2
 
3
+ ### v0.30.0 (2023-09-24)
4
+
5
+ * Regenerated from discovery document revision 20230913
6
+
7
+ ### v0.29.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230906
10
+
3
11
  ### v0.28.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230802
@@ -88,6 +88,32 @@ module Google
88
88
  end
89
89
  end
90
90
 
91
+ # Response for the ListWorkflowRevisions method.
92
+ class ListWorkflowRevisionsResponse
93
+ include Google::Apis::Core::Hashable
94
+
95
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
96
+ # field is omitted, there are no subsequent pages.
97
+ # Corresponds to the JSON property `nextPageToken`
98
+ # @return [String]
99
+ attr_accessor :next_page_token
100
+
101
+ # The revisions of the workflow, ordered in reverse chronological order.
102
+ # Corresponds to the JSON property `workflows`
103
+ # @return [Array<Google::Apis::WorkflowsV1::Workflow>]
104
+ attr_accessor :workflows
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
113
+ @workflows = args[:workflows] if args.key?(:workflows)
114
+ end
115
+ end
116
+
91
117
  # Response for the ListWorkflows method.
92
118
  class ListWorkflowsResponse
93
119
  include Google::Apis::Core::Hashable
@@ -347,7 +373,8 @@ module Google
347
373
  # @return [String]
348
374
  attr_accessor :call_log_level
349
375
 
350
- # Output only. The timestamp for when the workflow was created.
376
+ # Output only. The timestamp for when the workflow was created. This is a
377
+ # workflow-wide field and is not tied to a specific revision.
351
378
  # Corresponds to the JSON property `createTime`
352
379
  # @return [String]
353
380
  attr_accessor :create_time
@@ -362,8 +389,9 @@ module Google
362
389
  # @return [String]
363
390
  attr_accessor :crypto_key_name
364
391
 
365
- # Description of the workflow provided by the user. Must be at most 1000 unicode
366
- # characters long.
392
+ # Description of the workflow provided by the user. Must be at most 1000 Unicode
393
+ # characters long. This is a workflow-wide field and is not tied to a specific
394
+ # revision.
367
395
  # Corresponds to the JSON property `description`
368
396
  # @return [String]
369
397
  attr_accessor :description
@@ -371,13 +399,15 @@ module Google
371
399
  # Labels associated with this workflow. Labels can contain at most 64 entries.
372
400
  # Keys and values can be no longer than 63 characters and can only contain
373
401
  # lowercase letters, numeric characters, underscores, and dashes. Label keys
374
- # must start with a letter. International characters are allowed.
402
+ # must start with a letter. International characters are allowed. This is a
403
+ # workflow-wide field and is not tied to a specific revision.
375
404
  # Corresponds to the JSON property `labels`
376
405
  # @return [Hash<String,String>]
377
406
  attr_accessor :labels
378
407
 
379
408
  # The resource name of the workflow. Format: projects/`project`/locations/`
380
- # location`/workflows/`workflow`
409
+ # location`/workflows/`workflow`. This is a workflow-wide field and is not tied
410
+ # to a specific revision.
381
411
  # Corresponds to the JSON property `name`
382
412
  # @return [String]
383
413
  attr_accessor :name
@@ -424,7 +454,8 @@ module Google
424
454
  # @return [Google::Apis::WorkflowsV1::StateError]
425
455
  attr_accessor :state_error
426
456
 
427
- # Output only. The timestamp for when the workflow was last updated.
457
+ # Output only. The timestamp for when the workflow was last updated. This is a
458
+ # workflow-wide field and is not tied to a specific revision.
428
459
  # Corresponds to the JSON property `updateTime`
429
460
  # @return [String]
430
461
  attr_accessor :update_time
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module WorkflowsV1
18
18
  # Version of the google-apis-workflows_v1 gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230802"
25
+ REVISION = "20230913"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class ListWorkflowRevisionsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class ListWorkflowsResponse
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -106,6 +112,15 @@ module Google
106
112
  end
107
113
  end
108
114
 
115
+ class ListWorkflowRevisionsResponse
116
+ # @private
117
+ class Representation < Google::Apis::Core::JsonRepresentation
118
+ property :next_page_token, as: 'nextPageToken'
119
+ collection :workflows, as: 'workflows', class: Google::Apis::WorkflowsV1::Workflow, decorator: Google::Apis::WorkflowsV1::Workflow::Representation
120
+
121
+ end
122
+ end
123
+
109
124
  class ListWorkflowsResponse
110
125
  # @private
111
126
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -391,13 +391,54 @@ module Google
391
391
  execute_or_queue_command(command, &block)
392
392
  end
393
393
 
394
+ # Lists revisions for a given workflow.
395
+ # @param [String] name
396
+ # Required. Workflow for which the revisions should be listed. Format: projects/`
397
+ # project`/locations/`location`/workflows/`workflow`
398
+ # @param [Fixnum] page_size
399
+ # The maximum number of revisions to return per page. If a value is not
400
+ # specified, a default value of 20 is used. The maximum permitted value is 100.
401
+ # Values greater than 100 are coerced down to 100.
402
+ # @param [String] page_token
403
+ # The page token, received from a previous ListWorkflowRevisions call. Provide
404
+ # this to retrieve the subsequent page.
405
+ # @param [String] fields
406
+ # Selector specifying which fields to include in a partial response.
407
+ # @param [String] quota_user
408
+ # Available to use for quota purposes for server-side applications. Can be any
409
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
410
+ # @param [Google::Apis::RequestOptions] options
411
+ # Request-specific options
412
+ #
413
+ # @yield [result, err] Result & error if block supplied
414
+ # @yieldparam result [Google::Apis::WorkflowsV1::ListWorkflowRevisionsResponse] parsed result object
415
+ # @yieldparam err [StandardError] error object if request failed
416
+ #
417
+ # @return [Google::Apis::WorkflowsV1::ListWorkflowRevisionsResponse]
418
+ #
419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
422
+ def list_project_location_workflow_revisions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
423
+ command = make_simple_command(:get, 'v1/{+name}:listRevisions', options)
424
+ command.response_representation = Google::Apis::WorkflowsV1::ListWorkflowRevisionsResponse::Representation
425
+ command.response_class = Google::Apis::WorkflowsV1::ListWorkflowRevisionsResponse
426
+ command.params['name'] = name unless name.nil?
427
+ command.query['pageSize'] = page_size unless page_size.nil?
428
+ command.query['pageToken'] = page_token unless page_token.nil?
429
+ command.query['fields'] = fields unless fields.nil?
430
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
431
+ execute_or_queue_command(command, &block)
432
+ end
433
+
394
434
  # Updates an existing workflow. Running this method has no impact on already
395
435
  # running executions of the workflow. A new revision of the workflow might be
396
436
  # created as a result of a successful update operation. In that case, the new
397
437
  # revision is used in new workflow executions.
398
438
  # @param [String] name
399
439
  # The resource name of the workflow. Format: projects/`project`/locations/`
400
- # location`/workflows/`workflow`
440
+ # location`/workflows/`workflow`. This is a workflow-wide field and is not tied
441
+ # to a specific revision.
401
442
  # @param [Google::Apis::WorkflowsV1::Workflow] workflow_object
402
443
  # @param [String] update_mask
403
444
  # List of fields to be updated. If not present, the entire workflow will be
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-workflows_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.30.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: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2023-09-24 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-workflows_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-workflows_v1/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workflows_v1/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workflows_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Workflows API V1