google-api-client 0.23.9 → 0.24.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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2030 -58
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +878 -43
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +604 -0
  7. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  8. data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -1
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/classes.rb +8 -2
  11. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  12. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +108 -5
  14. data/generated/google/apis/androidenterprise_v1/representations.rb +60 -0
  15. data/generated/google/apis/appengine_v1.rb +1 -1
  16. data/generated/google/apis/appengine_v1/classes.rb +1 -1
  17. data/generated/google/apis/appengine_v1/service.rb +3 -3
  18. data/generated/google/apis/appengine_v1beta.rb +1 -1
  19. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  20. data/generated/google/apis/appengine_v1beta/service.rb +3 -3
  21. data/generated/google/apis/classroom_v1.rb +1 -1
  22. data/generated/google/apis/classroom_v1/classes.rb +14 -14
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  26. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  27. data/generated/google/apis/cloudtrace_v1/classes.rb +3 -2
  28. data/generated/google/apis/composer_v1.rb +1 -1
  29. data/generated/google/apis/composer_v1/classes.rb +1 -1
  30. data/generated/google/apis/composer_v1/service.rb +6 -6
  31. data/generated/google/apis/composer_v1beta1.rb +1 -1
  32. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  33. data/generated/google/apis/dataproc_v1.rb +1 -1
  34. data/generated/google/apis/dataproc_v1/classes.rb +475 -0
  35. data/generated/google/apis/dataproc_v1/representations.rb +188 -0
  36. data/generated/google/apis/dataproc_v1/service.rb +550 -0
  37. data/generated/google/apis/dlp_v2.rb +1 -1
  38. data/generated/google/apis/dlp_v2/classes.rb +21 -21
  39. data/generated/google/apis/file_v1beta1.rb +34 -0
  40. data/generated/google/apis/file_v1beta1/classes.rb +810 -0
  41. data/generated/google/apis/file_v1beta1/representations.rb +298 -0
  42. data/generated/google/apis/file_v1beta1/service.rb +472 -0
  43. data/generated/google/apis/jobs_v3.rb +1 -1
  44. data/generated/google/apis/jobs_v3/classes.rb +16 -17
  45. data/generated/google/apis/logging_v2.rb +1 -1
  46. data/generated/google/apis/logging_v2/classes.rb +8 -9
  47. data/generated/google/apis/logging_v2/service.rb +9 -9
  48. data/generated/google/apis/logging_v2beta1.rb +1 -1
  49. data/generated/google/apis/logging_v2beta1/classes.rb +8 -9
  50. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  51. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  52. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +14 -14
  53. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  54. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +142 -98
  55. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  56. data/generated/google/apis/servicecontrol_v1/classes.rb +0 -2
  57. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  58. data/generated/google/apis/servicemanagement_v1/classes.rb +142 -98
  59. data/generated/google/apis/serviceusage_v1.rb +1 -1
  60. data/generated/google/apis/serviceusage_v1/classes.rb +142 -98
  61. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  62. data/generated/google/apis/serviceusage_v1beta1/classes.rb +142 -98
  63. data/generated/google/apis/serviceuser_v1.rb +1 -1
  64. data/generated/google/apis/serviceuser_v1/classes.rb +142 -98
  65. data/generated/google/apis/speech_v1.rb +1 -1
  66. data/generated/google/apis/speech_v1/classes.rb +91 -0
  67. data/generated/google/apis/speech_v1/representations.rb +18 -0
  68. data/generated/google/apis/speech_v1/service.rb +47 -0
  69. data/generated/google/apis/speech_v1beta1.rb +1 -1
  70. data/generated/google/apis/speech_v1beta1/classes.rb +25 -0
  71. data/generated/google/apis/speech_v1beta1/representations.rb +15 -0
  72. data/generated/google/apis/speech_v1beta1/service.rb +47 -0
  73. data/generated/google/apis/sqladmin_v1beta4.rb +3 -3
  74. data/generated/google/apis/sqladmin_v1beta4/classes.rb +34 -31
  75. data/generated/google/apis/sqladmin_v1beta4/service.rb +8 -8
  76. data/generated/google/apis/storage_v1.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +3 -4
  78. data/generated/google/apis/storage_v1/service.rb +2 -1
  79. data/generated/google/apis/storage_v1beta2.rb +1 -1
  80. data/generated/google/apis/storage_v1beta2/classes.rb +1 -2
  81. data/generated/google/apis/storage_v1beta2/service.rb +2 -1
  82. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  83. data/generated/google/apis/storagetransfer_v1/classes.rb +21 -21
  84. data/generated/google/apis/testing_v1.rb +1 -1
  85. data/generated/google/apis/testing_v1/classes.rb +308 -14
  86. data/generated/google/apis/testing_v1/representations.rb +136 -0
  87. data/generated/google/apis/vision_v1.rb +1 -1
  88. data/generated/google/apis/vision_v1/classes.rb +156 -2
  89. data/generated/google/apis/vision_v1/representations.rb +60 -0
  90. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  91. data/generated/google/apis/vision_v1p1beta1/classes.rb +156 -2
  92. data/generated/google/apis/vision_v1p1beta1/representations.rb +60 -0
  93. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  94. data/generated/google/apis/vision_v1p2beta1/classes.rb +156 -2
  95. data/generated/google/apis/vision_v1p2beta1/representations.rb +60 -0
  96. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  97. data/lib/google/apis/version.rb +1 -1
  98. metadata +6 -14
  99. data/generated/google/apis/adexchangeseller_v1.rb +0 -37
  100. data/generated/google/apis/adexchangeseller_v1/classes.rb +0 -557
  101. data/generated/google/apis/adexchangeseller_v1/representations.rb +0 -248
  102. data/generated/google/apis/adexchangeseller_v1/service.rb +0 -544
  103. data/generated/google/apis/adexchangeseller_v1_1.rb +0 -37
  104. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +0 -842
  105. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +0 -364
  106. data/generated/google/apis/adexchangeseller_v1_1/service.rb +0 -735
  107. data/generated/google/apis/adexchangeseller_v2_0.rb +0 -37
  108. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +0 -792
  109. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +0 -347
  110. data/generated/google/apis/adexchangeseller_v2_0/service.rb +0 -638
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class ClusterSelector
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class ClusterStatus
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -148,6 +154,12 @@ module Google
148
154
  include Google::Apis::Core::JsonObjectSupport
149
155
  end
150
156
 
157
+ class InstantiateWorkflowTemplateRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
151
163
  class Job
152
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
165
 
@@ -196,12 +208,24 @@ module Google
196
208
  include Google::Apis::Core::JsonObjectSupport
197
209
  end
198
210
 
211
+ class ListWorkflowTemplatesResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
199
217
  class LoggingConfig
200
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
219
 
202
220
  include Google::Apis::Core::JsonObjectSupport
203
221
  end
204
222
 
223
+ class ManagedCluster
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
205
229
  class ManagedGroupConfig
206
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
231
 
@@ -220,6 +244,18 @@ module Google
220
244
  include Google::Apis::Core::JsonObjectSupport
221
245
  end
222
246
 
247
+ class OrderedJob
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class ParameterValidation
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
223
259
  class PigJob
224
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
261
 
@@ -244,6 +280,12 @@ module Google
244
280
  include Google::Apis::Core::JsonObjectSupport
245
281
  end
246
282
 
283
+ class RegexValidation
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
247
289
  class SetIamPolicyRequest
248
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
291
 
@@ -280,6 +322,12 @@ module Google
280
322
  include Google::Apis::Core::JsonObjectSupport
281
323
  end
282
324
 
325
+ class TemplateParameter
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
283
331
  class TestIamPermissionsRequest
284
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
333
 
@@ -292,6 +340,12 @@ module Google
292
340
  include Google::Apis::Core::JsonObjectSupport
293
341
  end
294
342
 
343
+ class ValueValidation
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
295
349
  class WorkflowGraph
296
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
351
 
@@ -310,6 +364,18 @@ module Google
310
364
  include Google::Apis::Core::JsonObjectSupport
311
365
  end
312
366
 
367
+ class WorkflowTemplate
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class WorkflowTemplatePlacement
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
313
379
  class YarnApplication
314
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
381
 
@@ -422,6 +488,14 @@ module Google
422
488
  end
423
489
  end
424
490
 
491
+ class ClusterSelector
492
+ # @private
493
+ class Representation < Google::Apis::Core::JsonRepresentation
494
+ hash :cluster_labels, as: 'clusterLabels'
495
+ property :zone, as: 'zone'
496
+ end
497
+ end
498
+
425
499
  class ClusterStatus
426
500
  # @private
427
501
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -542,6 +616,15 @@ module Google
542
616
  end
543
617
  end
544
618
 
619
+ class InstantiateWorkflowTemplateRequest
620
+ # @private
621
+ class Representation < Google::Apis::Core::JsonRepresentation
622
+ hash :parameters, as: 'parameters'
623
+ property :request_id, as: 'requestId'
624
+ property :version, as: 'version'
625
+ end
626
+ end
627
+
545
628
  class Job
546
629
  # @private
547
630
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -635,6 +718,15 @@ module Google
635
718
  end
636
719
  end
637
720
 
721
+ class ListWorkflowTemplatesResponse
722
+ # @private
723
+ class Representation < Google::Apis::Core::JsonRepresentation
724
+ property :next_page_token, as: 'nextPageToken'
725
+ collection :templates, as: 'templates', class: Google::Apis::DataprocV1::WorkflowTemplate, decorator: Google::Apis::DataprocV1::WorkflowTemplate::Representation
726
+
727
+ end
728
+ end
729
+
638
730
  class LoggingConfig
639
731
  # @private
640
732
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -642,6 +734,16 @@ module Google
642
734
  end
643
735
  end
644
736
 
737
+ class ManagedCluster
738
+ # @private
739
+ class Representation < Google::Apis::Core::JsonRepresentation
740
+ property :cluster_name, as: 'clusterName'
741
+ property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
742
+
743
+ hash :labels, as: 'labels'
744
+ end
745
+ end
746
+
645
747
  class ManagedGroupConfig
646
748
  # @private
647
749
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -670,6 +772,39 @@ module Google
670
772
  end
671
773
  end
672
774
 
775
+ class OrderedJob
776
+ # @private
777
+ class Representation < Google::Apis::Core::JsonRepresentation
778
+ property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
779
+
780
+ property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
781
+
782
+ hash :labels, as: 'labels'
783
+ property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
784
+
785
+ collection :prerequisite_step_ids, as: 'prerequisiteStepIds'
786
+ property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
787
+
788
+ property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1::JobScheduling, decorator: Google::Apis::DataprocV1::JobScheduling::Representation
789
+
790
+ property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
791
+
792
+ property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
793
+
794
+ property :step_id, as: 'stepId'
795
+ end
796
+ end
797
+
798
+ class ParameterValidation
799
+ # @private
800
+ class Representation < Google::Apis::Core::JsonRepresentation
801
+ property :regex, as: 'regex', class: Google::Apis::DataprocV1::RegexValidation, decorator: Google::Apis::DataprocV1::RegexValidation::Representation
802
+
803
+ property :values, as: 'values', class: Google::Apis::DataprocV1::ValueValidation, decorator: Google::Apis::DataprocV1::ValueValidation::Representation
804
+
805
+ end
806
+ end
807
+
673
808
  class PigJob
674
809
  # @private
675
810
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -717,6 +852,13 @@ module Google
717
852
  end
718
853
  end
719
854
 
855
+ class RegexValidation
856
+ # @private
857
+ class Representation < Google::Apis::Core::JsonRepresentation
858
+ collection :regexes, as: 'regexes'
859
+ end
860
+ end
861
+
720
862
  class SetIamPolicyRequest
721
863
  # @private
722
864
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -780,6 +922,17 @@ module Google
780
922
  end
781
923
  end
782
924
 
925
+ class TemplateParameter
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ property :description, as: 'description'
929
+ collection :fields, as: 'fields'
930
+ property :name, as: 'name'
931
+ property :validation, as: 'validation', class: Google::Apis::DataprocV1::ParameterValidation, decorator: Google::Apis::DataprocV1::ParameterValidation::Representation
932
+
933
+ end
934
+ end
935
+
783
936
  class TestIamPermissionsRequest
784
937
  # @private
785
938
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -794,6 +947,13 @@ module Google
794
947
  end
795
948
  end
796
949
 
950
+ class ValueValidation
951
+ # @private
952
+ class Representation < Google::Apis::Core::JsonRepresentation
953
+ collection :values, as: 'values'
954
+ end
955
+ end
956
+
797
957
  class WorkflowGraph
798
958
  # @private
799
959
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -830,6 +990,34 @@ module Google
830
990
  end
831
991
  end
832
992
 
993
+ class WorkflowTemplate
994
+ # @private
995
+ class Representation < Google::Apis::Core::JsonRepresentation
996
+ property :create_time, as: 'createTime'
997
+ property :id, as: 'id'
998
+ collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::OrderedJob, decorator: Google::Apis::DataprocV1::OrderedJob::Representation
999
+
1000
+ hash :labels, as: 'labels'
1001
+ property :name, as: 'name'
1002
+ collection :parameters, as: 'parameters', class: Google::Apis::DataprocV1::TemplateParameter, decorator: Google::Apis::DataprocV1::TemplateParameter::Representation
1003
+
1004
+ property :placement, as: 'placement', class: Google::Apis::DataprocV1::WorkflowTemplatePlacement, decorator: Google::Apis::DataprocV1::WorkflowTemplatePlacement::Representation
1005
+
1006
+ property :update_time, as: 'updateTime'
1007
+ property :version, as: 'version'
1008
+ end
1009
+ end
1010
+
1011
+ class WorkflowTemplatePlacement
1012
+ # @private
1013
+ class Representation < Google::Apis::Core::JsonRepresentation
1014
+ property :cluster_selector, as: 'clusterSelector', class: Google::Apis::DataprocV1::ClusterSelector, decorator: Google::Apis::DataprocV1::ClusterSelector::Representation
1015
+
1016
+ property :managed_cluster, as: 'managedCluster', class: Google::Apis::DataprocV1::ManagedCluster, decorator: Google::Apis::DataprocV1::ManagedCluster::Representation
1017
+
1018
+ end
1019
+ end
1020
+
833
1021
  class YarnApplication
834
1022
  # @private
835
1023
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -47,6 +47,115 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Creates new workflow template.
51
+ # @param [String] parent
52
+ # Required. The "resource name" of the region, as described in https://cloud.
53
+ # google.com/apis/design/resource_names of the form projects/`project_id`/
54
+ # regions/`region`
55
+ # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::DataprocV1::WorkflowTemplate] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::DataprocV1::WorkflowTemplate]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def create_project_location_workflow_template(parent, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates', options)
75
+ command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
76
+ command.request_object = workflow_template_object
77
+ command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
78
+ command.response_class = Google::Apis::DataprocV1::WorkflowTemplate
79
+ command.params['parent'] = parent unless parent.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Deletes a workflow template. It does not cancel in-progress workflows.
86
+ # @param [String] name
87
+ # Required. The "resource name" of the workflow template, as described in https:/
88
+ # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
89
+ # regions/`region`/workflowTemplates/`template_id`
90
+ # @param [Fixnum] version
91
+ # Optional. The version of workflow template to delete. If specified, will only
92
+ # delete the template if the current server version matches specified version.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::DataprocV1::Empty]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def delete_project_location_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:delete, 'v1/{+name}', options)
112
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
113
+ command.response_class = Google::Apis::DataprocV1::Empty
114
+ command.params['name'] = name unless name.nil?
115
+ command.query['version'] = version unless version.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Retrieves the latest workflow template.Can retrieve previously instantiated
122
+ # template by specifying optional version parameter.
123
+ # @param [String] name
124
+ # Required. The "resource name" of the workflow template, as described in https:/
125
+ # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
126
+ # regions/`region`/workflowTemplates/`template_id`
127
+ # @param [Fixnum] version
128
+ # Optional. The version of workflow template to retrieve. Only previously
129
+ # instatiated versions can be retrieved.If unspecified, retrieves the current
130
+ # version.
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::DataprocV1::WorkflowTemplate] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::DataprocV1::WorkflowTemplate]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def get_project_location_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:get, 'v1/{+name}', options)
150
+ command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
151
+ command.response_class = Google::Apis::DataprocV1::WorkflowTemplate
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['version'] = version unless version.nil?
154
+ command.query['fields'] = fields unless fields.nil?
155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
156
+ execute_or_queue_command(command, &block)
157
+ end
158
+
50
159
  # Gets the access control policy for a resource. Returns an empty policy if the
51
160
  # resource exists and does not have a policy set.
52
161
  # @param [String] resource
@@ -82,6 +191,136 @@ module Google
82
191
  execute_or_queue_command(command, &block)
83
192
  end
84
193
 
194
+ # Instantiates a template and begins execution.The returned Operation can be
195
+ # used to track execution of workflow by polling operations.get. The Operation
196
+ # will complete when entire workflow is finished.The running workflow can be
197
+ # aborted via operations.cancel. This will cause any inflight jobs to be
198
+ # cancelled and workflow-owned clusters to be deleted.The Operation.metadata
199
+ # will be WorkflowMetadata.On successful completion, Operation.response will be
200
+ # Empty.
201
+ # @param [String] name
202
+ # Required. The "resource name" of the workflow template, as described in https:/
203
+ # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
204
+ # regions/`region`/workflowTemplates/`template_id`
205
+ # @param [Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_request_object
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::DataprocV1::Operation]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def instantiate_project_location_workflow_template(name, instantiate_workflow_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:post, 'v1/{+name}:instantiate', options)
225
+ command.request_representation = Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest::Representation
226
+ command.request_object = instantiate_workflow_template_request_object
227
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
228
+ command.response_class = Google::Apis::DataprocV1::Operation
229
+ command.params['name'] = name unless name.nil?
230
+ command.query['fields'] = fields unless fields.nil?
231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
232
+ execute_or_queue_command(command, &block)
233
+ end
234
+
235
+ # Instantiates a template and begins execution.This method is equivalent to
236
+ # executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate,
237
+ # DeleteWorkflowTemplate.The returned Operation can be used to track execution
238
+ # of workflow by polling operations.get. The Operation will complete when entire
239
+ # workflow is finished.The running workflow can be aborted via operations.cancel.
240
+ # This will cause any inflight jobs to be cancelled and workflow-owned clusters
241
+ # to be deleted.The Operation.metadata will be WorkflowMetadata.On successful
242
+ # completion, Operation.response will be Empty.
243
+ # @param [String] parent
244
+ # Required. The "resource name" of the workflow template region, as described in
245
+ # https://cloud.google.com/apis/design/resource_names of the form projects/`
246
+ # project_id`/regions/`region`
247
+ # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object
248
+ # @param [String] request_id
249
+ # Optional. A tag that prevents multiple concurrent workflow instances with the
250
+ # same tag from running. This mitigates risk of concurrent instances started due
251
+ # to retries.It is recommended to always set this value to a UUID (https://en.
252
+ # wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only
253
+ # letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The
254
+ # maximum length is 40 characters.
255
+ # @param [String] fields
256
+ # Selector specifying which fields to include in a partial response.
257
+ # @param [String] quota_user
258
+ # Available to use for quota purposes for server-side applications. Can be any
259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
260
+ # @param [Google::Apis::RequestOptions] options
261
+ # Request-specific options
262
+ #
263
+ # @yield [result, err] Result & error if block supplied
264
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
265
+ # @yieldparam err [StandardError] error object if request failed
266
+ #
267
+ # @return [Google::Apis::DataprocV1::Operation]
268
+ #
269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
272
+ def instantiate_project_location_workflow_template_inline(parent, workflow_template_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
273
+ command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates:instantiateInline', options)
274
+ command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
275
+ command.request_object = workflow_template_object
276
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
277
+ command.response_class = Google::Apis::DataprocV1::Operation
278
+ command.params['parent'] = parent unless parent.nil?
279
+ command.query['requestId'] = request_id unless request_id.nil?
280
+ command.query['fields'] = fields unless fields.nil?
281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
282
+ execute_or_queue_command(command, &block)
283
+ end
284
+
285
+ # Lists workflows that match the specified filter in the request.
286
+ # @param [String] parent
287
+ # Required. The "resource name" of the region, as described in https://cloud.
288
+ # google.com/apis/design/resource_names of the form projects/`project_id`/
289
+ # regions/`region`
290
+ # @param [Fixnum] page_size
291
+ # Optional. The maximum number of results to return in each response.
292
+ # @param [String] page_token
293
+ # Optional. The page token, returned by a previous call, to request the next
294
+ # page of results.
295
+ # @param [String] fields
296
+ # Selector specifying which fields to include in a partial response.
297
+ # @param [String] quota_user
298
+ # Available to use for quota purposes for server-side applications. Can be any
299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
300
+ # @param [Google::Apis::RequestOptions] options
301
+ # Request-specific options
302
+ #
303
+ # @yield [result, err] Result & error if block supplied
304
+ # @yieldparam result [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse] parsed result object
305
+ # @yieldparam err [StandardError] error object if request failed
306
+ #
307
+ # @return [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse]
308
+ #
309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
312
+ def list_project_location_workflow_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
313
+ command = make_simple_command(:get, 'v1/{+parent}/workflowTemplates', options)
314
+ command.response_representation = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse::Representation
315
+ command.response_class = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse
316
+ command.params['parent'] = parent unless parent.nil?
317
+ command.query['pageSize'] = page_size unless page_size.nil?
318
+ command.query['pageToken'] = page_token unless page_token.nil?
319
+ command.query['fields'] = fields unless fields.nil?
320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
321
+ execute_or_queue_command(command, &block)
322
+ end
323
+
85
324
  # Sets the access control policy on the specified resource. Replaces any
86
325
  # existing policy.
87
326
  # @param [String] resource
@@ -155,6 +394,42 @@ module Google
155
394
  execute_or_queue_command(command, &block)
156
395
  end
157
396
 
397
+ # Updates (replaces) workflow template. The updated template must contain
398
+ # version that matches the current server version.
399
+ # @param [String] name
400
+ # Output only. The "resource name" of the template, as described in https://
401
+ # cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
402
+ # regions/`region`/workflowTemplates/`template_id`
403
+ # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object
404
+ # @param [String] fields
405
+ # Selector specifying which fields to include in a partial response.
406
+ # @param [String] quota_user
407
+ # Available to use for quota purposes for server-side applications. Can be any
408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
409
+ # @param [Google::Apis::RequestOptions] options
410
+ # Request-specific options
411
+ #
412
+ # @yield [result, err] Result & error if block supplied
413
+ # @yieldparam result [Google::Apis::DataprocV1::WorkflowTemplate] parsed result object
414
+ # @yieldparam err [StandardError] error object if request failed
415
+ #
416
+ # @return [Google::Apis::DataprocV1::WorkflowTemplate]
417
+ #
418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
421
+ def update_project_location_workflow_template(name, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
422
+ command = make_simple_command(:put, 'v1/{+name}', options)
423
+ command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
424
+ command.request_object = workflow_template_object
425
+ command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
426
+ command.response_class = Google::Apis::DataprocV1::WorkflowTemplate
427
+ command.params['name'] = name unless name.nil?
428
+ command.query['fields'] = fields unless fields.nil?
429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
432
+
158
433
  # Creates a cluster in a project.
159
434
  # @param [String] project_id
160
435
  # Required. The ID of the Google Cloud Platform project that the cluster belongs
@@ -1191,6 +1466,115 @@ module Google
1191
1466
  execute_or_queue_command(command, &block)
1192
1467
  end
1193
1468
 
1469
+ # Creates new workflow template.
1470
+ # @param [String] parent
1471
+ # Required. The "resource name" of the region, as described in https://cloud.
1472
+ # google.com/apis/design/resource_names of the form projects/`project_id`/
1473
+ # regions/`region`
1474
+ # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object
1475
+ # @param [String] fields
1476
+ # Selector specifying which fields to include in a partial response.
1477
+ # @param [String] quota_user
1478
+ # Available to use for quota purposes for server-side applications. Can be any
1479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1480
+ # @param [Google::Apis::RequestOptions] options
1481
+ # Request-specific options
1482
+ #
1483
+ # @yield [result, err] Result & error if block supplied
1484
+ # @yieldparam result [Google::Apis::DataprocV1::WorkflowTemplate] parsed result object
1485
+ # @yieldparam err [StandardError] error object if request failed
1486
+ #
1487
+ # @return [Google::Apis::DataprocV1::WorkflowTemplate]
1488
+ #
1489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1492
+ def create_project_region_workflow_template(parent, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1493
+ command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates', options)
1494
+ command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
1495
+ command.request_object = workflow_template_object
1496
+ command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
1497
+ command.response_class = Google::Apis::DataprocV1::WorkflowTemplate
1498
+ command.params['parent'] = parent unless parent.nil?
1499
+ command.query['fields'] = fields unless fields.nil?
1500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1501
+ execute_or_queue_command(command, &block)
1502
+ end
1503
+
1504
+ # Deletes a workflow template. It does not cancel in-progress workflows.
1505
+ # @param [String] name
1506
+ # Required. The "resource name" of the workflow template, as described in https:/
1507
+ # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
1508
+ # regions/`region`/workflowTemplates/`template_id`
1509
+ # @param [Fixnum] version
1510
+ # Optional. The version of workflow template to delete. If specified, will only
1511
+ # delete the template if the current server version matches specified version.
1512
+ # @param [String] fields
1513
+ # Selector specifying which fields to include in a partial response.
1514
+ # @param [String] quota_user
1515
+ # Available to use for quota purposes for server-side applications. Can be any
1516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1517
+ # @param [Google::Apis::RequestOptions] options
1518
+ # Request-specific options
1519
+ #
1520
+ # @yield [result, err] Result & error if block supplied
1521
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
1522
+ # @yieldparam err [StandardError] error object if request failed
1523
+ #
1524
+ # @return [Google::Apis::DataprocV1::Empty]
1525
+ #
1526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1529
+ def delete_project_region_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
1530
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1531
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
1532
+ command.response_class = Google::Apis::DataprocV1::Empty
1533
+ command.params['name'] = name unless name.nil?
1534
+ command.query['version'] = version unless version.nil?
1535
+ command.query['fields'] = fields unless fields.nil?
1536
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1537
+ execute_or_queue_command(command, &block)
1538
+ end
1539
+
1540
+ # Retrieves the latest workflow template.Can retrieve previously instantiated
1541
+ # template by specifying optional version parameter.
1542
+ # @param [String] name
1543
+ # Required. The "resource name" of the workflow template, as described in https:/
1544
+ # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
1545
+ # regions/`region`/workflowTemplates/`template_id`
1546
+ # @param [Fixnum] version
1547
+ # Optional. The version of workflow template to retrieve. Only previously
1548
+ # instatiated versions can be retrieved.If unspecified, retrieves the current
1549
+ # version.
1550
+ # @param [String] fields
1551
+ # Selector specifying which fields to include in a partial response.
1552
+ # @param [String] quota_user
1553
+ # Available to use for quota purposes for server-side applications. Can be any
1554
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1555
+ # @param [Google::Apis::RequestOptions] options
1556
+ # Request-specific options
1557
+ #
1558
+ # @yield [result, err] Result & error if block supplied
1559
+ # @yieldparam result [Google::Apis::DataprocV1::WorkflowTemplate] parsed result object
1560
+ # @yieldparam err [StandardError] error object if request failed
1561
+ #
1562
+ # @return [Google::Apis::DataprocV1::WorkflowTemplate]
1563
+ #
1564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1567
+ def get_project_region_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
1568
+ command = make_simple_command(:get, 'v1/{+name}', options)
1569
+ command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
1570
+ command.response_class = Google::Apis::DataprocV1::WorkflowTemplate
1571
+ command.params['name'] = name unless name.nil?
1572
+ command.query['version'] = version unless version.nil?
1573
+ command.query['fields'] = fields unless fields.nil?
1574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1575
+ execute_or_queue_command(command, &block)
1576
+ end
1577
+
1194
1578
  # Gets the access control policy for a resource. Returns an empty policy if the
1195
1579
  # resource exists and does not have a policy set.
1196
1580
  # @param [String] resource
@@ -1226,6 +1610,136 @@ module Google
1226
1610
  execute_or_queue_command(command, &block)
1227
1611
  end
1228
1612
 
1613
+ # Instantiates a template and begins execution.The returned Operation can be
1614
+ # used to track execution of workflow by polling operations.get. The Operation
1615
+ # will complete when entire workflow is finished.The running workflow can be
1616
+ # aborted via operations.cancel. This will cause any inflight jobs to be
1617
+ # cancelled and workflow-owned clusters to be deleted.The Operation.metadata
1618
+ # will be WorkflowMetadata.On successful completion, Operation.response will be
1619
+ # Empty.
1620
+ # @param [String] name
1621
+ # Required. The "resource name" of the workflow template, as described in https:/
1622
+ # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
1623
+ # regions/`region`/workflowTemplates/`template_id`
1624
+ # @param [Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_request_object
1625
+ # @param [String] fields
1626
+ # Selector specifying which fields to include in a partial response.
1627
+ # @param [String] quota_user
1628
+ # Available to use for quota purposes for server-side applications. Can be any
1629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1630
+ # @param [Google::Apis::RequestOptions] options
1631
+ # Request-specific options
1632
+ #
1633
+ # @yield [result, err] Result & error if block supplied
1634
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
1635
+ # @yieldparam err [StandardError] error object if request failed
1636
+ #
1637
+ # @return [Google::Apis::DataprocV1::Operation]
1638
+ #
1639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1642
+ def instantiate_project_region_workflow_template(name, instantiate_workflow_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1643
+ command = make_simple_command(:post, 'v1/{+name}:instantiate', options)
1644
+ command.request_representation = Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest::Representation
1645
+ command.request_object = instantiate_workflow_template_request_object
1646
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
1647
+ command.response_class = Google::Apis::DataprocV1::Operation
1648
+ command.params['name'] = name unless name.nil?
1649
+ command.query['fields'] = fields unless fields.nil?
1650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1651
+ execute_or_queue_command(command, &block)
1652
+ end
1653
+
1654
+ # Instantiates a template and begins execution.This method is equivalent to
1655
+ # executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate,
1656
+ # DeleteWorkflowTemplate.The returned Operation can be used to track execution
1657
+ # of workflow by polling operations.get. The Operation will complete when entire
1658
+ # workflow is finished.The running workflow can be aborted via operations.cancel.
1659
+ # This will cause any inflight jobs to be cancelled and workflow-owned clusters
1660
+ # to be deleted.The Operation.metadata will be WorkflowMetadata.On successful
1661
+ # completion, Operation.response will be Empty.
1662
+ # @param [String] parent
1663
+ # Required. The "resource name" of the workflow template region, as described in
1664
+ # https://cloud.google.com/apis/design/resource_names of the form projects/`
1665
+ # project_id`/regions/`region`
1666
+ # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object
1667
+ # @param [String] request_id
1668
+ # Optional. A tag that prevents multiple concurrent workflow instances with the
1669
+ # same tag from running. This mitigates risk of concurrent instances started due
1670
+ # to retries.It is recommended to always set this value to a UUID (https://en.
1671
+ # wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only
1672
+ # letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The
1673
+ # maximum length is 40 characters.
1674
+ # @param [String] fields
1675
+ # Selector specifying which fields to include in a partial response.
1676
+ # @param [String] quota_user
1677
+ # Available to use for quota purposes for server-side applications. Can be any
1678
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1679
+ # @param [Google::Apis::RequestOptions] options
1680
+ # Request-specific options
1681
+ #
1682
+ # @yield [result, err] Result & error if block supplied
1683
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
1684
+ # @yieldparam err [StandardError] error object if request failed
1685
+ #
1686
+ # @return [Google::Apis::DataprocV1::Operation]
1687
+ #
1688
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1689
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1690
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1691
+ def instantiate_project_region_workflow_template_inline(parent, workflow_template_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1692
+ command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates:instantiateInline', options)
1693
+ command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
1694
+ command.request_object = workflow_template_object
1695
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
1696
+ command.response_class = Google::Apis::DataprocV1::Operation
1697
+ command.params['parent'] = parent unless parent.nil?
1698
+ command.query['requestId'] = request_id unless request_id.nil?
1699
+ command.query['fields'] = fields unless fields.nil?
1700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1701
+ execute_or_queue_command(command, &block)
1702
+ end
1703
+
1704
+ # Lists workflows that match the specified filter in the request.
1705
+ # @param [String] parent
1706
+ # Required. The "resource name" of the region, as described in https://cloud.
1707
+ # google.com/apis/design/resource_names of the form projects/`project_id`/
1708
+ # regions/`region`
1709
+ # @param [Fixnum] page_size
1710
+ # Optional. The maximum number of results to return in each response.
1711
+ # @param [String] page_token
1712
+ # Optional. The page token, returned by a previous call, to request the next
1713
+ # page of results.
1714
+ # @param [String] fields
1715
+ # Selector specifying which fields to include in a partial response.
1716
+ # @param [String] quota_user
1717
+ # Available to use for quota purposes for server-side applications. Can be any
1718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1719
+ # @param [Google::Apis::RequestOptions] options
1720
+ # Request-specific options
1721
+ #
1722
+ # @yield [result, err] Result & error if block supplied
1723
+ # @yieldparam result [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse] parsed result object
1724
+ # @yieldparam err [StandardError] error object if request failed
1725
+ #
1726
+ # @return [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse]
1727
+ #
1728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1731
+ def list_project_region_workflow_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1732
+ command = make_simple_command(:get, 'v1/{+parent}/workflowTemplates', options)
1733
+ command.response_representation = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse::Representation
1734
+ command.response_class = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse
1735
+ command.params['parent'] = parent unless parent.nil?
1736
+ command.query['pageSize'] = page_size unless page_size.nil?
1737
+ command.query['pageToken'] = page_token unless page_token.nil?
1738
+ command.query['fields'] = fields unless fields.nil?
1739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1740
+ execute_or_queue_command(command, &block)
1741
+ end
1742
+
1229
1743
  # Sets the access control policy on the specified resource. Replaces any
1230
1744
  # existing policy.
1231
1745
  # @param [String] resource
@@ -1298,6 +1812,42 @@ module Google
1298
1812
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1299
1813
  execute_or_queue_command(command, &block)
1300
1814
  end
1815
+
1816
+ # Updates (replaces) workflow template. The updated template must contain
1817
+ # version that matches the current server version.
1818
+ # @param [String] name
1819
+ # Output only. The "resource name" of the template, as described in https://
1820
+ # cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
1821
+ # regions/`region`/workflowTemplates/`template_id`
1822
+ # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object
1823
+ # @param [String] fields
1824
+ # Selector specifying which fields to include in a partial response.
1825
+ # @param [String] quota_user
1826
+ # Available to use for quota purposes for server-side applications. Can be any
1827
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1828
+ # @param [Google::Apis::RequestOptions] options
1829
+ # Request-specific options
1830
+ #
1831
+ # @yield [result, err] Result & error if block supplied
1832
+ # @yieldparam result [Google::Apis::DataprocV1::WorkflowTemplate] parsed result object
1833
+ # @yieldparam err [StandardError] error object if request failed
1834
+ #
1835
+ # @return [Google::Apis::DataprocV1::WorkflowTemplate]
1836
+ #
1837
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1838
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1839
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1840
+ def update_project_region_workflow_template(name, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1841
+ command = make_simple_command(:put, 'v1/{+name}', options)
1842
+ command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
1843
+ command.request_object = workflow_template_object
1844
+ command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation
1845
+ command.response_class = Google::Apis::DataprocV1::WorkflowTemplate
1846
+ command.params['name'] = name unless name.nil?
1847
+ command.query['fields'] = fields unless fields.nil?
1848
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1849
+ execute_or_queue_command(command, &block)
1850
+ end
1301
1851
 
1302
1852
  protected
1303
1853