google-cloud-workflows-v1 2.0.0 → 2.1.0

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: 6ece58b6e1c309c744e6ccfecf6b80c25905b570220fab6f750acf174466db62
4
- data.tar.gz: 13d4d7d37f5de664a421636922d2b62b0925982b72b74a3018d6032e4013e3c8
3
+ metadata.gz: 6d06787d0534d5c2c51675acb18b22fc2179a7bb4da2aeaca54a7ed18596351a
4
+ data.tar.gz: 5e0ac9ed29fa46125cbcf3bfde0cfb68ba9dabf4793e461d1460f5c17e9aeaec
5
5
  SHA512:
6
- metadata.gz: 63f363e01e436d495274cef23bd6a1cf78f7d82416fc55f1d13baa3941354870a8450ee9a016458d0ce38456a028de5b85db23ef0fe6e2de7ebb25cd282564c9
7
- data.tar.gz: 4f40a53617c43fe8835cc5c561eab99bd9065089010283823326c9e2a1bfa00e32d465936016cd867955791e72df56b7f19a96f9cf5fb16a8cc3d34a5d44c905
6
+ metadata.gz: 9b46c11403489bd6e53eb8d4427bf780a34e51dda81f10e916e39f2a02a4732f2df5c5077ae64d6be3137fb72d96394604f9c5d015225852eb110f7f0592e930
7
+ data.tar.gz: 7648ce02c8bbb0687ca682b247ef55d07291c007c78536326c5bdfab99010944c911c19c3f87de4060b8d25a395c52a9224e2b7a69c57fb4bcac81efa00b69eb
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Workflows
23
23
  module V1
24
- VERSION = "2.0.0"
24
+ VERSION = "2.1.0"
25
25
  end
26
26
  end
27
27
  end
@@ -250,6 +250,16 @@ module Google
250
250
  # match the call that provided the page token.
251
251
  # @param filter [::String]
252
252
  # Filter to restrict results to specific workflows.
253
+ # For details, see <a href="https://google.aip.dev/160"
254
+ # class="external">AIP-160</a>.
255
+ #
256
+ # For example, if you are using the Google APIs Explorer:
257
+ #
258
+ # `state="SUCCEEDED"`
259
+ #
260
+ # or
261
+ #
262
+ # `createTime>"2023-08-01" AND state="FAILED"`
253
263
  # @param order_by [::String]
254
264
  # Comma-separated list of fields that specify the order of the results.
255
265
  # Default sorting order for a field is ascending. To specify descending order
@@ -724,6 +734,105 @@ module Google
724
734
  raise ::Google::Cloud::Error.from_error(e)
725
735
  end
726
736
 
737
+ ##
738
+ # Lists revisions for a given workflow.
739
+ #
740
+ # @overload list_workflow_revisions(request, options = nil)
741
+ # Pass arguments to `list_workflow_revisions` via a request object, either of type
742
+ # {::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest} or an equivalent Hash.
743
+ #
744
+ # @param request [::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest, ::Hash]
745
+ # A request object representing the call parameters. Required. To specify no
746
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
747
+ # @param options [::Gapic::CallOptions, ::Hash]
748
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
749
+ #
750
+ # @overload list_workflow_revisions(name: nil, page_size: nil, page_token: nil)
751
+ # Pass arguments to `list_workflow_revisions` via keyword arguments. Note that at
752
+ # least one keyword argument is required. To specify no parameters, or to keep all
753
+ # the default parameter values, pass an empty Hash as a request object (see above).
754
+ #
755
+ # @param name [::String]
756
+ # Required. Workflow for which the revisions should be listed.
757
+ # Format: projects/\\{project}/locations/\\{location}/workflows/\\{workflow}
758
+ # @param page_size [::Integer]
759
+ # The maximum number of revisions to return per page. If a value is not
760
+ # specified, a default value of 20 is used. The maximum permitted value is
761
+ # 100. Values greater than 100 are coerced down to 100.
762
+ # @param page_token [::String]
763
+ # The page token, received from a previous ListWorkflowRevisions call.
764
+ # Provide this to retrieve the subsequent page.
765
+ #
766
+ # @yield [response, operation] Access the result along with the RPC operation
767
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Workflows::V1::Workflow>]
768
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
769
+ #
770
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Workflows::V1::Workflow>]
771
+ #
772
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
773
+ #
774
+ # @example Basic example
775
+ # require "google/cloud/workflows/v1"
776
+ #
777
+ # # Create a client object. The client can be reused for multiple calls.
778
+ # client = Google::Cloud::Workflows::V1::Workflows::Client.new
779
+ #
780
+ # # Create a request. To set request fields, pass in keyword arguments.
781
+ # request = Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest.new
782
+ #
783
+ # # Call the list_workflow_revisions method.
784
+ # result = client.list_workflow_revisions request
785
+ #
786
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
787
+ # # over elements, and API calls will be issued to fetch pages as needed.
788
+ # result.each do |item|
789
+ # # Each element is of type ::Google::Cloud::Workflows::V1::Workflow.
790
+ # p item
791
+ # end
792
+ #
793
+ def list_workflow_revisions request, options = nil
794
+ raise ::ArgumentError, "request must be provided" if request.nil?
795
+
796
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest
797
+
798
+ # Converts hash and nil to an options object
799
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
800
+
801
+ # Customize the options with defaults
802
+ metadata = @config.rpcs.list_workflow_revisions.metadata.to_h
803
+
804
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
805
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
807
+ gapic_version: ::Google::Cloud::Workflows::V1::VERSION
808
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
809
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
810
+
811
+ header_params = {}
812
+ if request.name
813
+ header_params["name"] = request.name
814
+ end
815
+
816
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
817
+ metadata[:"x-goog-request-params"] ||= request_params_header
818
+
819
+ options.apply_defaults timeout: @config.rpcs.list_workflow_revisions.timeout,
820
+ metadata: metadata,
821
+ retry_policy: @config.rpcs.list_workflow_revisions.retry_policy
822
+
823
+ options.apply_defaults timeout: @config.timeout,
824
+ metadata: @config.metadata,
825
+ retry_policy: @config.retry_policy
826
+
827
+ @workflows_stub.call_rpc :list_workflow_revisions, request, options: options do |response, operation|
828
+ response = ::Gapic::PagedEnumerable.new @workflows_stub, :list_workflow_revisions, request, response, operation, options
829
+ yield response, operation if block_given?
830
+ throw :response, response
831
+ end
832
+ rescue ::GRPC::BadStatus => e
833
+ raise ::Google::Cloud::Error.from_error(e)
834
+ end
835
+
727
836
  ##
728
837
  # Configuration class for the Workflows API.
729
838
  #
@@ -915,6 +1024,11 @@ module Google
915
1024
  # @return [::Gapic::Config::Method]
916
1025
  #
917
1026
  attr_reader :update_workflow
1027
+ ##
1028
+ # RPC-specific configuration for `list_workflow_revisions`
1029
+ # @return [::Gapic::Config::Method]
1030
+ #
1031
+ attr_reader :list_workflow_revisions
918
1032
 
919
1033
  # @private
920
1034
  def initialize parent_rpcs = nil
@@ -928,6 +1042,8 @@ module Google
928
1042
  @delete_workflow = ::Gapic::Config::Method.new delete_workflow_config
929
1043
  update_workflow_config = parent_rpcs.update_workflow if parent_rpcs.respond_to? :update_workflow
930
1044
  @update_workflow = ::Gapic::Config::Method.new update_workflow_config
1045
+ list_workflow_revisions_config = parent_rpcs.list_workflow_revisions if parent_rpcs.respond_to? :list_workflow_revisions
1046
+ @list_workflow_revisions = ::Gapic::Config::Method.new list_workflow_revisions_config
931
1047
 
932
1048
  yield self if block_given?
933
1049
  end
@@ -45,6 +45,29 @@ module Google
45
45
  "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
46
46
  end
47
47
 
48
+ ##
49
+ # Create a fully-qualified CryptoKeyVersion resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param key_ring [String]
58
+ # @param crypto_key [String]
59
+ # @param crypto_key_version [String]
60
+ #
61
+ # @return [::String]
62
+ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
63
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
64
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
65
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
66
+ raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
67
+
68
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
69
+ end
70
+
48
71
  ##
49
72
  # Create a fully-qualified Location resource string.
50
73
  #
@@ -244,6 +244,16 @@ module Google
244
244
  # match the call that provided the page token.
245
245
  # @param filter [::String]
246
246
  # Filter to restrict results to specific workflows.
247
+ # For details, see <a href="https://google.aip.dev/160"
248
+ # class="external">AIP-160</a>.
249
+ #
250
+ # For example, if you are using the Google APIs Explorer:
251
+ #
252
+ # `state="SUCCEEDED"`
253
+ #
254
+ # or
255
+ #
256
+ # `createTime>"2023-08-01" AND state="FAILED"`
247
257
  # @param order_by [::String]
248
258
  # Comma-separated list of fields that specify the order of the results.
249
259
  # Default sorting order for a field is ascending. To specify descending order
@@ -683,6 +693,98 @@ module Google
683
693
  raise ::Google::Cloud::Error.from_error(e)
684
694
  end
685
695
 
696
+ ##
697
+ # Lists revisions for a given workflow.
698
+ #
699
+ # @overload list_workflow_revisions(request, options = nil)
700
+ # Pass arguments to `list_workflow_revisions` via a request object, either of type
701
+ # {::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest} or an equivalent Hash.
702
+ #
703
+ # @param request [::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest, ::Hash]
704
+ # A request object representing the call parameters. Required. To specify no
705
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
706
+ # @param options [::Gapic::CallOptions, ::Hash]
707
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
708
+ #
709
+ # @overload list_workflow_revisions(name: nil, page_size: nil, page_token: nil)
710
+ # Pass arguments to `list_workflow_revisions` via keyword arguments. Note that at
711
+ # least one keyword argument is required. To specify no parameters, or to keep all
712
+ # the default parameter values, pass an empty Hash as a request object (see above).
713
+ #
714
+ # @param name [::String]
715
+ # Required. Workflow for which the revisions should be listed.
716
+ # Format: projects/\\{project}/locations/\\{location}/workflows/\\{workflow}
717
+ # @param page_size [::Integer]
718
+ # The maximum number of revisions to return per page. If a value is not
719
+ # specified, a default value of 20 is used. The maximum permitted value is
720
+ # 100. Values greater than 100 are coerced down to 100.
721
+ # @param page_token [::String]
722
+ # The page token, received from a previous ListWorkflowRevisions call.
723
+ # Provide this to retrieve the subsequent page.
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workflows::V1::Workflow>]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Workflows::V1::Workflow>]
729
+ #
730
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
731
+ #
732
+ # @example Basic example
733
+ # require "google/cloud/workflows/v1"
734
+ #
735
+ # # Create a client object. The client can be reused for multiple calls.
736
+ # client = Google::Cloud::Workflows::V1::Workflows::Rest::Client.new
737
+ #
738
+ # # Create a request. To set request fields, pass in keyword arguments.
739
+ # request = Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest.new
740
+ #
741
+ # # Call the list_workflow_revisions method.
742
+ # result = client.list_workflow_revisions request
743
+ #
744
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
745
+ # # over elements, and API calls will be issued to fetch pages as needed.
746
+ # result.each do |item|
747
+ # # Each element is of type ::Google::Cloud::Workflows::V1::Workflow.
748
+ # p item
749
+ # end
750
+ #
751
+ def list_workflow_revisions request, options = nil
752
+ raise ::ArgumentError, "request must be provided" if request.nil?
753
+
754
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest
755
+
756
+ # Converts hash and nil to an options object
757
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
758
+
759
+ # Customize the options with defaults
760
+ call_metadata = @config.rpcs.list_workflow_revisions.metadata.to_h
761
+
762
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
763
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
764
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
765
+ gapic_version: ::Google::Cloud::Workflows::V1::VERSION,
766
+ transports_version_send: [:rest]
767
+
768
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
769
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
770
+
771
+ options.apply_defaults timeout: @config.rpcs.list_workflow_revisions.timeout,
772
+ metadata: call_metadata,
773
+ retry_policy: @config.rpcs.list_workflow_revisions.retry_policy
774
+
775
+ options.apply_defaults timeout: @config.timeout,
776
+ metadata: @config.metadata,
777
+ retry_policy: @config.retry_policy
778
+
779
+ @workflows_stub.list_workflow_revisions request, options do |result, operation|
780
+ result = ::Gapic::Rest::PagedEnumerable.new @workflows_stub, :list_workflow_revisions, "workflows", request, result, options
781
+ yield result, operation if block_given?
782
+ throw :response, result
783
+ end
784
+ rescue ::Gapic::Rest::Error => e
785
+ raise ::Google::Cloud::Error.from_error(e)
786
+ end
787
+
686
788
  ##
687
789
  # Configuration class for the Workflows REST API.
688
790
  #
@@ -861,6 +963,11 @@ module Google
861
963
  # @return [::Gapic::Config::Method]
862
964
  #
863
965
  attr_reader :update_workflow
966
+ ##
967
+ # RPC-specific configuration for `list_workflow_revisions`
968
+ # @return [::Gapic::Config::Method]
969
+ #
970
+ attr_reader :list_workflow_revisions
864
971
 
865
972
  # @private
866
973
  def initialize parent_rpcs = nil
@@ -874,6 +981,8 @@ module Google
874
981
  @delete_workflow = ::Gapic::Config::Method.new delete_workflow_config
875
982
  update_workflow_config = parent_rpcs.update_workflow if parent_rpcs.respond_to? :update_workflow
876
983
  @update_workflow = ::Gapic::Config::Method.new update_workflow_config
984
+ list_workflow_revisions_config = parent_rpcs.list_workflow_revisions if parent_rpcs.respond_to? :list_workflow_revisions
985
+ @list_workflow_revisions = ::Gapic::Config::Method.new list_workflow_revisions_config
877
986
 
878
987
  yield self if block_given?
879
988
  end
@@ -273,6 +273,46 @@ module Google
273
273
  end
274
274
  end
275
275
 
276
+ ##
277
+ # Baseline implementation for the list_workflow_revisions REST call
278
+ #
279
+ # @param request_pb [::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest]
280
+ # A request object representing the call parameters. Required.
281
+ # @param options [::Gapic::CallOptions]
282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
283
+ #
284
+ # @yield [result, operation] Access the result along with the TransportOperation object
285
+ # @yieldparam result [::Google::Cloud::Workflows::V1::ListWorkflowRevisionsResponse]
286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
+ #
288
+ # @return [::Google::Cloud::Workflows::V1::ListWorkflowRevisionsResponse]
289
+ # A result object deserialized from the server's reply
290
+ def list_workflow_revisions request_pb, options = nil
291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
292
+
293
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_revisions_request request_pb
294
+ query_string_params = if query_string_params.any?
295
+ query_string_params.to_h { |p| p.split "=", 2 }
296
+ else
297
+ {}
298
+ end
299
+
300
+ response = @client_stub.make_http_request(
301
+ verb,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "list_workflow_revisions",
306
+ options: options
307
+ )
308
+ operation = ::Gapic::Rest::TransportOperation.new response
309
+ result = ::Google::Cloud::Workflows::V1::ListWorkflowRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
314
+ end
315
+
276
316
  ##
277
317
  # @private
278
318
  #
@@ -379,6 +419,27 @@ module Google
379
419
  )
380
420
  transcoder.transcode request_pb
381
421
  end
422
+
423
+ ##
424
+ # @private
425
+ #
426
+ # GRPC transcoding helper method for the list_workflow_revisions REST call
427
+ #
428
+ # @param request_pb [::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest]
429
+ # A request object representing the call parameters. Required.
430
+ # @return [Array(String, [String, nil], Hash{String => String})]
431
+ # Uri, Body, Query string parameters
432
+ def self.transcode_list_workflow_revisions_request request_pb
433
+ transcoder = Gapic::Rest::GrpcTranscoder.new
434
+ .with_bindings(
435
+ uri_method: :get,
436
+ uri_template: "/v1/{name}:listRevisions",
437
+ matches: [
438
+ ["name", %r{^projects/[^/]+/locations/[^/]+/workflows/[^/]+/?$}, false]
439
+ ]
440
+ )
441
+ transcoder.transcode request_pb
442
+ end
382
443
  end
383
444
  end
384
445
  end
@@ -14,7 +14,7 @@ require 'google/protobuf/field_mask_pb'
14
14
  require 'google/protobuf/timestamp_pb'
15
15
 
16
16
 
17
- descriptor_data = "\n)google/cloud/workflows/v1/workflows.proto\x12\x19google.cloud.workflows.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\t\n\x08Workflow\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12=\n\x05state\x18\x03 \x01(\x0e\x32).google.cloud.workflows.v1.Workflow.StateB\x03\xe0\x41\x03\x12\x18\n\x0brevision_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14revision_create_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x08 \x03(\x0b\x32/.google.cloud.workflows.v1.Workflow.LabelsEntry\x12\x17\n\x0fservice_account\x18\t \x01(\t\x12\x19\n\x0fsource_contents\x18\n \x01(\tH\x00\x12\x42\n\x0f\x63rypto_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12H\n\x0bstate_error\x18\x0c \x01(\x0b\x32..google.cloud.workflows.v1.Workflow.StateErrorB\x03\xe0\x41\x03\x12M\n\x0e\x63\x61ll_log_level\x18\r \x01(\x0e\x32\x30.google.cloud.workflows.v1.Workflow.CallLogLevelB\x03\xe0\x41\x01\x12P\n\ruser_env_vars\x18\x0e \x03(\x0b\x32\x34.google.cloud.workflows.v1.Workflow.UserEnvVarsEntryB\x03\xe0\x41\x01\x1a\x8d\x01\n\nStateError\x12\x0f\n\x07\x64\x65tails\x18\x01 \x01(\t\x12\x41\n\x04type\x18\x02 \x01(\x0e\x32\x33.google.cloud.workflows.v1.Workflow.StateError.Type\"+\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tKMS_ERROR\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10UserEnvVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\"d\n\x0c\x43\x61llLogLevel\x12\x1e\n\x1a\x43\x41LL_LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rLOG_ALL_CALLS\x10\x01\x12\x13\n\x0fLOG_ERRORS_ONLY\x10\x02\x12\x0c\n\x08LOG_NONE\x10\x03:d\xea\x41\x61\n!workflows.googleapis.com/Workflow\x12<projects/{project}/locations/{location}/workflows/{workflow}B\r\n\x0bsource_code\"\x9a\x01\n\x14ListWorkflowsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"}\n\x15ListWorkflowsResponse\x12\x36\n\tworkflows\x18\x01 \x03(\x0b\x32#.google.cloud.workflows.v1.Workflow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"g\n\x12GetWorkflowRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!workflows.googleapis.com/Workflow\x12\x18\n\x0brevision_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa8\x01\n\x15\x43reateWorkflowRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\x08workflow\x18\x02 \x01(\x0b\x32#.google.cloud.workflows.v1.WorkflowB\x03\xe0\x41\x02\x12\x18\n\x0bworkflow_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"P\n\x15\x44\x65leteWorkflowRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!workflows.googleapis.com/Workflow\"\x84\x01\n\x15UpdateWorkflowRequest\x12:\n\x08workflow\x18\x01 \x01(\x0b\x32#.google.cloud.workflows.v1.WorkflowB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xa5\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x13\n\x0b\x61pi_version\x18\x05 \x01(\t2\xc7\x08\n\tWorkflows\x12\xb2\x01\n\rListWorkflows\x12/.google.cloud.workflows.v1.ListWorkflowsRequest\x1a\x30.google.cloud.workflows.v1.ListWorkflowsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/workflows\x12\x9f\x01\n\x0bGetWorkflow\x12-.google.cloud.workflows.v1.GetWorkflowRequest\x1a#.google.cloud.workflows.v1.Workflow\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/workflows/*}\x12\xe0\x01\n\x0e\x43reateWorkflow\x12\x30.google.cloud.workflows.v1.CreateWorkflowRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x1d\n\x08Workflow\x12\x11OperationMetadata\xda\x41\x1bparent,workflow,workflow_id\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/workflows:\x08workflow\x12\xcc\x01\n\x0e\x44\x65leteWorkflow\x12\x30.google.cloud.workflows.v1.DeleteWorkflowRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/workflows/*}\x12\xe2\x01\n\x0eUpdateWorkflow\x12\x30.google.cloud.workflows.v1.UpdateWorkflowRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41\x1d\n\x08Workflow\x12\x11OperationMetadata\xda\x41\x14workflow,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{workflow.name=projects/*/locations/*/workflows/*}:\x08workflow\x1aL\xca\x41\x18workflows.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe7\x01\n\x1d\x63om.google.cloud.workflows.v1B\x0eWorkflowsProtoP\x01Z;cloud.google.com/go/workflows/apiv1/workflowspb;workflowspb\xea\x41v\n!cloudkms.googleapis.com/CryptoKey\x12Qprojects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}b\x06proto3"
17
+ descriptor_data = "\n)google/cloud/workflows/v1/workflows.proto\x12\x19google.cloud.workflows.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\r\n\x08Workflow\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12=\n\x05state\x18\x03 \x01(\x0e\x32).google.cloud.workflows.v1.Workflow.StateB\x03\xe0\x41\x03\x12\x18\n\x0brevision_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14revision_create_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x08 \x03(\x0b\x32/.google.cloud.workflows.v1.Workflow.LabelsEntry\x12\x17\n\x0fservice_account\x18\t \x01(\t\x12\x19\n\x0fsource_contents\x18\n \x01(\tH\x00\x12\x42\n\x0f\x63rypto_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12H\n\x0bstate_error\x18\x0c \x01(\x0b\x32..google.cloud.workflows.v1.Workflow.StateErrorB\x03\xe0\x41\x03\x12M\n\x0e\x63\x61ll_log_level\x18\r \x01(\x0e\x32\x30.google.cloud.workflows.v1.Workflow.CallLogLevelB\x03\xe0\x41\x01\x12P\n\ruser_env_vars\x18\x0e \x03(\x0b\x32\x34.google.cloud.workflows.v1.Workflow.UserEnvVarsEntryB\x03\xe0\x41\x01\x12V\n\x17\x65xecution_history_level\x18\x0f \x01(\x0e\x32\x30.google.cloud.workflows.v1.ExecutionHistoryLevelB\x03\xe0\x41\x01\x12?\n\x0c\x61ll_kms_keys\x18\x10 \x03(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12O\n\x15\x61ll_kms_keys_versions\x18\x11 \x03(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x12L\n\x12\x63rypto_key_version\x18\x12 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\x12\x46\n\x04tags\x18\x13 \x03(\x0b\x32-.google.cloud.workflows.v1.Workflow.TagsEntryB\t\xe0\x41\x04\xe0\x41\x05\xe0\x41\x01\x1a\x8d\x01\n\nStateError\x12\x0f\n\x07\x64\x65tails\x18\x01 \x01(\t\x12\x41\n\x04type\x18\x02 \x01(\x0e\x32\x33.google.cloud.workflows.v1.Workflow.StateError.Type\"+\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tKMS_ERROR\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10UserEnvVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\"d\n\x0c\x43\x61llLogLevel\x12\x1e\n\x1a\x43\x41LL_LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rLOG_ALL_CALLS\x10\x01\x12\x13\n\x0fLOG_ERRORS_ONLY\x10\x02\x12\x0c\n\x08LOG_NONE\x10\x03:d\xea\x41\x61\n!workflows.googleapis.com/Workflow\x12<projects/{project}/locations/{location}/workflows/{workflow}B\r\n\x0bsource_code\"\x9a\x01\n\x14ListWorkflowsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"}\n\x15ListWorkflowsResponse\x12\x36\n\tworkflows\x18\x01 \x03(\x0b\x32#.google.cloud.workflows.v1.Workflow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"g\n\x12GetWorkflowRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!workflows.googleapis.com/Workflow\x12\x18\n\x0brevision_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa8\x01\n\x15\x43reateWorkflowRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\x08workflow\x18\x02 \x01(\x0b\x32#.google.cloud.workflows.v1.WorkflowB\x03\xe0\x41\x02\x12\x18\n\x0bworkflow_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"P\n\x15\x44\x65leteWorkflowRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!workflows.googleapis.com/Workflow\"\x84\x01\n\x15UpdateWorkflowRequest\x12:\n\x08workflow\x18\x01 \x01(\x0b\x32#.google.cloud.workflows.v1.WorkflowB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xa5\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x13\n\x0b\x61pi_version\x18\x05 \x01(\t\"~\n\x1cListWorkflowRevisionsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!workflows.googleapis.com/Workflow\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"p\n\x1dListWorkflowRevisionsResponse\x12\x36\n\tworkflows\x18\x01 \x03(\x0b\x32#.google.cloud.workflows.v1.Workflow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*}\n\x15\x45xecutionHistoryLevel\x12\'\n#EXECUTION_HISTORY_LEVEL_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45XECUTION_HISTORY_BASIC\x10\x01\x12\x1e\n\x1a\x45XECUTION_HISTORY_DETAILED\x10\x02\x32\x99\n\n\tWorkflows\x12\xb2\x01\n\rListWorkflows\x12/.google.cloud.workflows.v1.ListWorkflowsRequest\x1a\x30.google.cloud.workflows.v1.ListWorkflowsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/workflows\x12\x9f\x01\n\x0bGetWorkflow\x12-.google.cloud.workflows.v1.GetWorkflowRequest\x1a#.google.cloud.workflows.v1.Workflow\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/workflows/*}\x12\xe0\x01\n\x0e\x43reateWorkflow\x12\x30.google.cloud.workflows.v1.CreateWorkflowRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x1d\n\x08Workflow\x12\x11OperationMetadata\xda\x41\x1bparent,workflow,workflow_id\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/workflows:\x08workflow\x12\xcc\x01\n\x0e\x44\x65leteWorkflow\x12\x30.google.cloud.workflows.v1.DeleteWorkflowRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/workflows/*}\x12\xe2\x01\n\x0eUpdateWorkflow\x12\x30.google.cloud.workflows.v1.UpdateWorkflowRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41\x1d\n\x08Workflow\x12\x11OperationMetadata\xda\x41\x14workflow,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{workflow.name=projects/*/locations/*/workflows/*}:\x08workflow\x12\xcf\x01\n\x15ListWorkflowRevisions\x12\x37.google.cloud.workflows.v1.ListWorkflowRevisionsRequest\x1a\x38.google.cloud.workflows.v1.ListWorkflowRevisionsResponse\"C\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/workflows/*}:listRevisions\x1aL\xca\x41\x18workflows.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8d\x03\n\x1d\x63om.google.cloud.workflows.v1B\x0eWorkflowsProtoP\x01Z;cloud.google.com/go/workflows/apiv1/workflowspb;workflowspb\xea\x41v\n!cloudkms.googleapis.com/CryptoKey\x12Qprojects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}\xea\x41\xa2\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12vprojects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}b\x06proto3"
18
18
 
19
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
20
20
 
@@ -58,6 +58,9 @@ module Google
58
58
  DeleteWorkflowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.v1.DeleteWorkflowRequest").msgclass
59
59
  UpdateWorkflowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.v1.UpdateWorkflowRequest").msgclass
60
60
  OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.v1.OperationMetadata").msgclass
61
+ ListWorkflowRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.v1.ListWorkflowRevisionsRequest").msgclass
62
+ ListWorkflowRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.v1.ListWorkflowRevisionsResponse").msgclass
63
+ ExecutionHistoryLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workflows.v1.ExecutionHistoryLevel").enummodule
61
64
  end
62
65
  end
63
66
  end
@@ -54,6 +54,8 @@ module Google
54
54
  # successful update operation. In that case, the new revision is used
55
55
  # in new workflow executions.
56
56
  rpc :UpdateWorkflow, ::Google::Cloud::Workflows::V1::UpdateWorkflowRequest, ::Google::Longrunning::Operation
57
+ # Lists revisions for a given workflow.
58
+ rpc :ListWorkflowRevisions, ::Google::Cloud::Workflows::V1::ListWorkflowRevisionsRequest, ::Google::Cloud::Workflows::V1::ListWorkflowRevisionsResponse
57
59
  end
58
60
 
59
61
  Stub = Service.rpc_stub_class
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -25,11 +25,13 @@ module Google
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
27
  # The resource name of the workflow.
28
- # Format: projects/\\{project}/locations/\\{location}/workflows/\\{workflow}
28
+ # Format: projects/\\{project}/locations/\\{location}/workflows/\\{workflow}.
29
+ # This is a workflow-wide field and is not tied to a specific revision.
29
30
  # @!attribute [rw] description
30
31
  # @return [::String]
31
32
  # Description of the workflow provided by the user.
32
- # Must be at most 1000 unicode characters long.
33
+ # Must be at most 1000 Unicode characters long.
34
+ # This is a workflow-wide field and is not tied to a specific revision.
33
35
  # @!attribute [r] state
34
36
  # @return [::Google::Cloud::Workflows::V1::Workflow::State]
35
37
  # Output only. State of the workflow deployment.
@@ -49,9 +51,11 @@ module Google
49
51
  # @!attribute [r] create_time
50
52
  # @return [::Google::Protobuf::Timestamp]
51
53
  # Output only. The timestamp for when the workflow was created.
54
+ # This is a workflow-wide field and is not tied to a specific revision.
52
55
  # @!attribute [r] update_time
53
56
  # @return [::Google::Protobuf::Timestamp]
54
57
  # Output only. The timestamp for when the workflow was last updated.
58
+ # This is a workflow-wide field and is not tied to a specific revision.
55
59
  # @!attribute [r] revision_create_time
56
60
  # @return [::Google::Protobuf::Timestamp]
57
61
  # Output only. The timestamp for the latest revision of the workflow's
@@ -63,6 +67,7 @@ module Google
63
67
  # than 63 characters and can only contain lowercase letters, numeric
64
68
  # characters, underscores, and dashes. Label keys must start with a letter.
65
69
  # International characters are allowed.
70
+ # This is a workflow-wide field and is not tied to a specific revision.
66
71
  # @!attribute [rw] service_account
67
72
  # @return [::String]
68
73
  # The service account associated with the latest workflow version.
@@ -108,8 +113,29 @@ module Google
108
113
  # @return [::Google::Protobuf::Map{::String => ::String}]
109
114
  # Optional. User-defined environment variables associated with this workflow
110
115
  # revision. This map has a maximum length of 20. Each string can take up to
111
- # 40KiB. Keys cannot be empty strings and cannot start with GOOGLE or
112
- # WORKFLOWS".
116
+ # 4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or
117
+ # "WORKFLOWS".
118
+ # @!attribute [rw] execution_history_level
119
+ # @return [::Google::Cloud::Workflows::V1::ExecutionHistoryLevel]
120
+ # Optional. Describes the execution history level to apply to this workflow.
121
+ # @!attribute [r] all_kms_keys
122
+ # @return [::Array<::String>]
123
+ # Output only. A list of all KMS crypto keys used to encrypt or decrypt the
124
+ # data associated with the workflow.
125
+ # @!attribute [r] all_kms_keys_versions
126
+ # @return [::Array<::String>]
127
+ # Output only. A list of all KMS crypto key versions used to encrypt or
128
+ # decrypt the data associated with the workflow.
129
+ # @!attribute [r] crypto_key_version
130
+ # @return [::String]
131
+ # Output only. The resource name of a KMS crypto key version used to encrypt
132
+ # or decrypt the data associated with the workflow.
133
+ #
134
+ # Format:
135
+ # projects/\\{project}/locations/\\{location}/keyRings/\\{keyRing}/cryptoKeys/\\{cryptoKey}/cryptoKeyVersions/\\{cryptoKeyVersion}
136
+ # @!attribute [rw] tags
137
+ # @return [::Google::Protobuf::Map{::String => ::String}]
138
+ # Optional. Input only. Immutable. Tags associated with this workflow.
113
139
  class Workflow
114
140
  include ::Google::Protobuf::MessageExts
115
141
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -153,6 +179,15 @@ module Google
153
179
  extend ::Google::Protobuf::MessageExts::ClassMethods
154
180
  end
155
181
 
182
+ # @!attribute [rw] key
183
+ # @return [::String]
184
+ # @!attribute [rw] value
185
+ # @return [::String]
186
+ class TagsEntry
187
+ include ::Google::Protobuf::MessageExts
188
+ extend ::Google::Protobuf::MessageExts::ClassMethods
189
+ end
190
+
156
191
  # Describes the current state of workflow deployment.
157
192
  module State
158
193
  # Invalid state.
@@ -206,6 +241,16 @@ module Google
206
241
  # @!attribute [rw] filter
207
242
  # @return [::String]
208
243
  # Filter to restrict results to specific workflows.
244
+ # For details, see <a href="https://google.aip.dev/160"
245
+ # class="external">AIP-160</a>.
246
+ #
247
+ # For example, if you are using the Google APIs Explorer:
248
+ #
249
+ # `state="SUCCEEDED"`
250
+ #
251
+ # or
252
+ #
253
+ # `createTime>"2023-08-01" AND state="FAILED"`
209
254
  # @!attribute [rw] order_by
210
255
  # @return [::String]
211
256
  # Comma-separated list of fields that specify the order of the results.
@@ -325,6 +370,54 @@ module Google
325
370
  include ::Google::Protobuf::MessageExts
326
371
  extend ::Google::Protobuf::MessageExts::ClassMethods
327
372
  end
373
+
374
+ # Request for the
375
+ # {::Google::Cloud::Workflows::V1::Workflows::Client#list_workflow_revisions ListWorkflowRevisions}
376
+ # method.
377
+ # @!attribute [rw] name
378
+ # @return [::String]
379
+ # Required. Workflow for which the revisions should be listed.
380
+ # Format: projects/\\{project}/locations/\\{location}/workflows/\\{workflow}
381
+ # @!attribute [rw] page_size
382
+ # @return [::Integer]
383
+ # The maximum number of revisions to return per page. If a value is not
384
+ # specified, a default value of 20 is used. The maximum permitted value is
385
+ # 100. Values greater than 100 are coerced down to 100.
386
+ # @!attribute [rw] page_token
387
+ # @return [::String]
388
+ # The page token, received from a previous ListWorkflowRevisions call.
389
+ # Provide this to retrieve the subsequent page.
390
+ class ListWorkflowRevisionsRequest
391
+ include ::Google::Protobuf::MessageExts
392
+ extend ::Google::Protobuf::MessageExts::ClassMethods
393
+ end
394
+
395
+ # Response for the
396
+ # {::Google::Cloud::Workflows::V1::Workflows::Client#list_workflow_revisions ListWorkflowRevisions}
397
+ # method.
398
+ # @!attribute [rw] workflows
399
+ # @return [::Array<::Google::Cloud::Workflows::V1::Workflow>]
400
+ # The revisions of the workflow, ordered in reverse chronological order.
401
+ # @!attribute [rw] next_page_token
402
+ # @return [::String]
403
+ # A token, which can be sent as `page_token` to retrieve the next page.
404
+ # If this field is omitted, there are no subsequent pages.
405
+ class ListWorkflowRevisionsResponse
406
+ include ::Google::Protobuf::MessageExts
407
+ extend ::Google::Protobuf::MessageExts::ClassMethods
408
+ end
409
+
410
+ # Define possible options for enabling the execution history level.
411
+ module ExecutionHistoryLevel
412
+ # The default/unset value.
413
+ EXECUTION_HISTORY_LEVEL_UNSPECIFIED = 0
414
+
415
+ # Enable execution history basic feature.
416
+ EXECUTION_HISTORY_BASIC = 1
417
+
418
+ # Enable execution history detailed feature.
419
+ EXECUTION_HISTORY_DETAILED = 2
420
+ end
328
421
  end
329
422
  end
330
423
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-workflows-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-07 00:00:00.000000000 Z
10
+ date: 2025-03-18 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.6.3
129
+ rubygems_version: 3.6.5
130
130
  specification_version: 4
131
131
  summary: Manage workflow definitions. To execute workflows and manage executions,
132
132
  see the Workflows Executions API.