google-api-client 0.14.4 → 0.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +111 -0
- data/generated/google/apis/appengine_v1/representations.rb +59 -0
- data/generated/google/apis/appengine_v1/service.rb +220 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +361 -0
- data/generated/google/apis/classroom_v1/representations.rb +161 -0
- data/generated/google/apis/classroom_v1/service.rb +426 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +3 -3
- data/generated/google/apis/cloudiot_v1.rb +38 -0
- data/generated/google/apis/cloudiot_v1/classes.rb +1197 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +473 -0
- data/generated/google/apis/cloudiot_v1/service.rb +657 -0
- data/generated/google/apis/cloudiot_v1beta1.rb +38 -0
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +1064 -0
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +442 -0
- data/generated/google/apis/cloudiot_v1beta1/service.rb +725 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/service.rb +1 -1
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +34 -4
- data/generated/google/apis/container_v1/representations.rb +15 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +34 -4
- data/generated/google/apis/container_v1beta1/representations.rb +15 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +91 -9
- data/generated/google/apis/content_v2/representations.rb +20 -0
- data/generated/google/apis/content_v2/service.rb +1 -2
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +90 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +20 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +53 -3
- data/generated/google/apis/dataflow_v1b3/representations.rb +16 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +461 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +194 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +452 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +30 -1
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +8 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +2 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2 -1
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +2 -2
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +44 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +17 -0
- data/generated/google/apis/firebaserules_v1/service.rb +35 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +3 -3
- data/generated/google/apis/fitness_v1/service.rb +4 -4
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +14 -14
- data/generated/google/apis/iam_v1/service.rb +29 -29
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +11 -9
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +11 -9
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +5 -4
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +2 -1
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +19 -23
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +106 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +32 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +92 -92
- data/generated/google/apis/serviceuser_v1/representations.rb +27 -15
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/service.rb +7 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +53 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +29 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +37 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -2
@@ -58,6 +58,12 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
+
class ClusterOperation
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
61
67
|
class ClusterOperationMetadata
|
62
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
69
|
|
@@ -70,6 +76,12 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class ClusterSelector
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class ClusterStatus
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -124,6 +136,12 @@ module Google
|
|
124
136
|
include Google::Apis::Core::JsonObjectSupport
|
125
137
|
end
|
126
138
|
|
139
|
+
class InstantiateWorkflowTemplateRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
127
145
|
class Job
|
128
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
147
|
|
@@ -178,12 +196,24 @@ module Google
|
|
178
196
|
include Google::Apis::Core::JsonObjectSupport
|
179
197
|
end
|
180
198
|
|
199
|
+
class ListWorkflowTemplatesResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
181
205
|
class LoggingConfig
|
182
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
207
|
|
184
208
|
include Google::Apis::Core::JsonObjectSupport
|
185
209
|
end
|
186
210
|
|
211
|
+
class ManagedCluster
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
187
217
|
class ManagedGroupConfig
|
188
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
219
|
|
@@ -202,6 +232,12 @@ module Google
|
|
202
232
|
include Google::Apis::Core::JsonObjectSupport
|
203
233
|
end
|
204
234
|
|
235
|
+
class OrderedJob
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
205
241
|
class PigJob
|
206
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
243
|
|
@@ -274,6 +310,36 @@ module Google
|
|
274
310
|
include Google::Apis::Core::JsonObjectSupport
|
275
311
|
end
|
276
312
|
|
313
|
+
class WorkflowGraph
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
319
|
+
class WorkflowMetadata
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
325
|
+
class WorkflowNode
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
331
|
+
class WorkflowTemplate
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
337
|
+
class WorkflowTemplatePlacement
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
277
343
|
class YarnApplication
|
278
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
345
|
|
@@ -349,6 +415,15 @@ module Google
|
|
349
415
|
end
|
350
416
|
end
|
351
417
|
|
418
|
+
class ClusterOperation
|
419
|
+
# @private
|
420
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
421
|
+
property :done, as: 'done'
|
422
|
+
property :error, as: 'error'
|
423
|
+
property :operation_id, as: 'operationId'
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
352
427
|
class ClusterOperationMetadata
|
353
428
|
# @private
|
354
429
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -375,6 +450,14 @@ module Google
|
|
375
450
|
end
|
376
451
|
end
|
377
452
|
|
453
|
+
class ClusterSelector
|
454
|
+
# @private
|
455
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
456
|
+
hash :cluster_labels, as: 'clusterLabels'
|
457
|
+
property :zone, as: 'zone'
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
378
461
|
class ClusterStatus
|
379
462
|
# @private
|
380
463
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -471,6 +554,14 @@ module Google
|
|
471
554
|
end
|
472
555
|
end
|
473
556
|
|
557
|
+
class InstantiateWorkflowTemplateRequest
|
558
|
+
# @private
|
559
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
560
|
+
property :instance_id, as: 'instanceId'
|
561
|
+
property :version, as: 'version'
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
474
565
|
class Job
|
475
566
|
# @private
|
476
567
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -573,6 +664,15 @@ module Google
|
|
573
664
|
end
|
574
665
|
end
|
575
666
|
|
667
|
+
class ListWorkflowTemplatesResponse
|
668
|
+
# @private
|
669
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
670
|
+
property :next_page_token, as: 'nextPageToken'
|
671
|
+
collection :templates, as: 'templates', class: Google::Apis::DataprocV1beta2::WorkflowTemplate, decorator: Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
672
|
+
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
576
676
|
class LoggingConfig
|
577
677
|
# @private
|
578
678
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -580,6 +680,16 @@ module Google
|
|
580
680
|
end
|
581
681
|
end
|
582
682
|
|
683
|
+
class ManagedCluster
|
684
|
+
# @private
|
685
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
686
|
+
property :cluster_name, as: 'clusterName'
|
687
|
+
property :config, as: 'config', class: Google::Apis::DataprocV1beta2::ClusterConfig, decorator: Google::Apis::DataprocV1beta2::ClusterConfig::Representation
|
688
|
+
|
689
|
+
hash :labels, as: 'labels'
|
690
|
+
end
|
691
|
+
end
|
692
|
+
|
583
693
|
class ManagedGroupConfig
|
584
694
|
# @private
|
585
695
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -608,6 +718,29 @@ module Google
|
|
608
718
|
end
|
609
719
|
end
|
610
720
|
|
721
|
+
class OrderedJob
|
722
|
+
# @private
|
723
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
724
|
+
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1beta2::HadoopJob, decorator: Google::Apis::DataprocV1beta2::HadoopJob::Representation
|
725
|
+
|
726
|
+
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1beta2::HiveJob, decorator: Google::Apis::DataprocV1beta2::HiveJob::Representation
|
727
|
+
|
728
|
+
hash :labels, as: 'labels'
|
729
|
+
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1beta2::PigJob, decorator: Google::Apis::DataprocV1beta2::PigJob::Representation
|
730
|
+
|
731
|
+
collection :prerequisite_step_ids, as: 'prerequisiteStepIds'
|
732
|
+
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1beta2::PySparkJob, decorator: Google::Apis::DataprocV1beta2::PySparkJob::Representation
|
733
|
+
|
734
|
+
property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1beta2::JobScheduling, decorator: Google::Apis::DataprocV1beta2::JobScheduling::Representation
|
735
|
+
|
736
|
+
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1beta2::SparkJob, decorator: Google::Apis::DataprocV1beta2::SparkJob::Representation
|
737
|
+
|
738
|
+
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1beta2::SparkSqlJob, decorator: Google::Apis::DataprocV1beta2::SparkSqlJob::Representation
|
739
|
+
|
740
|
+
property :step_id, as: 'stepId'
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
611
744
|
class PigJob
|
612
745
|
# @private
|
613
746
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -731,6 +864,67 @@ module Google
|
|
731
864
|
end
|
732
865
|
end
|
733
866
|
|
867
|
+
class WorkflowGraph
|
868
|
+
# @private
|
869
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
870
|
+
collection :nodes, as: 'nodes', class: Google::Apis::DataprocV1beta2::WorkflowNode, decorator: Google::Apis::DataprocV1beta2::WorkflowNode::Representation
|
871
|
+
|
872
|
+
end
|
873
|
+
end
|
874
|
+
|
875
|
+
class WorkflowMetadata
|
876
|
+
# @private
|
877
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
878
|
+
property :cluster_name, as: 'clusterName'
|
879
|
+
property :create_cluster, as: 'createCluster', class: Google::Apis::DataprocV1beta2::ClusterOperation, decorator: Google::Apis::DataprocV1beta2::ClusterOperation::Representation
|
880
|
+
|
881
|
+
property :delete_cluster, as: 'deleteCluster', class: Google::Apis::DataprocV1beta2::ClusterOperation, decorator: Google::Apis::DataprocV1beta2::ClusterOperation::Representation
|
882
|
+
|
883
|
+
property :graph, as: 'graph', class: Google::Apis::DataprocV1beta2::WorkflowGraph, decorator: Google::Apis::DataprocV1beta2::WorkflowGraph::Representation
|
884
|
+
|
885
|
+
property :state, as: 'state'
|
886
|
+
property :template, as: 'template'
|
887
|
+
property :version, as: 'version'
|
888
|
+
end
|
889
|
+
end
|
890
|
+
|
891
|
+
class WorkflowNode
|
892
|
+
# @private
|
893
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
894
|
+
property :error, as: 'error'
|
895
|
+
property :job_id, as: 'jobId'
|
896
|
+
collection :prerequisite_step_ids, as: 'prerequisiteStepIds'
|
897
|
+
property :state, as: 'state'
|
898
|
+
property :step_id, as: 'stepId'
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
902
|
+
class WorkflowTemplate
|
903
|
+
# @private
|
904
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
905
|
+
property :create_time, as: 'createTime'
|
906
|
+
property :id, as: 'id'
|
907
|
+
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1beta2::OrderedJob, decorator: Google::Apis::DataprocV1beta2::OrderedJob::Representation
|
908
|
+
|
909
|
+
hash :labels, as: 'labels'
|
910
|
+
property :name, as: 'name'
|
911
|
+
property :placement, as: 'placement', class: Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement, decorator: Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement::Representation
|
912
|
+
|
913
|
+
property :update_time, as: 'updateTime'
|
914
|
+
property :version, as: 'version'
|
915
|
+
end
|
916
|
+
end
|
917
|
+
|
918
|
+
class WorkflowTemplatePlacement
|
919
|
+
# @private
|
920
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
921
|
+
property :cluster_selector, as: 'clusterSelector', class: Google::Apis::DataprocV1beta2::ClusterSelector, decorator: Google::Apis::DataprocV1beta2::ClusterSelector::Representation
|
922
|
+
|
923
|
+
property :managed_cluster, as: 'managedCluster', class: Google::Apis::DataprocV1beta2::ManagedCluster, decorator: Google::Apis::DataprocV1beta2::ManagedCluster::Representation
|
924
|
+
|
925
|
+
end
|
926
|
+
end
|
927
|
+
|
734
928
|
class YarnApplication
|
735
929
|
# @private
|
736
930
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -47,6 +47,232 @@ 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::DataprocV1beta2::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::DataprocV1beta2::WorkflowTemplate] parsed result object
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [Google::Apis::DataprocV1beta2::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, 'v1beta2/{+parent}/workflowTemplates', options)
|
75
|
+
command.request_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
76
|
+
command.request_object = workflow_template_object
|
77
|
+
command.response_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
78
|
+
command.response_class = Google::Apis::DataprocV1beta2::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::DataprocV1beta2::Empty] parsed result object
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
104
|
+
#
|
105
|
+
# @return [Google::Apis::DataprocV1beta2::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, 'v1beta2/{+name}', options)
|
112
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation
|
113
|
+
command.response_class = Google::Apis::DataprocV1beta2::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::DataprocV1beta2::WorkflowTemplate] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::DataprocV1beta2::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, 'v1beta2/{+name}', options)
|
150
|
+
command.response_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
151
|
+
command.response_class = Google::Apis::DataprocV1beta2::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
|
+
|
159
|
+
# Instantiates a template and begins execution.The returned Operation can be
|
160
|
+
# used to track execution of workflow by polling google.cloud.dataproc.v1beta2.
|
161
|
+
# OperationService.GetOperation. The Operation will complete when entire
|
162
|
+
# workflow is finished.The running workflow can be aborted via google.cloud.
|
163
|
+
# dataproc.v1beta2.OperationService.CancelOperation.The google.cloud.dataproc.
|
164
|
+
# v1beta2.Operation.metadata will always be google.cloud.dataproc.v1beta2.
|
165
|
+
# WorkflowMetadata.The google.cloud.dataproc.v1beta2.Operation.result will
|
166
|
+
# always be google.protobuf.Empty.
|
167
|
+
# @param [String] name
|
168
|
+
# Required The "resource name" of the workflow template, as described in https://
|
169
|
+
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
|
170
|
+
# regions/`region`/workflowTemplates/`template_id`
|
171
|
+
# @param [Google::Apis::DataprocV1beta2::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_request_object
|
172
|
+
# @param [String] fields
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
174
|
+
# @param [String] quota_user
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
178
|
+
# Request-specific options
|
179
|
+
#
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
181
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
183
|
+
#
|
184
|
+
# @return [Google::Apis::DataprocV1beta2::Operation]
|
185
|
+
#
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
189
|
+
def instantiate_project_location_workflow_template(name, instantiate_workflow_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
190
|
+
command = make_simple_command(:post, 'v1beta2/{+name}:instantiate', options)
|
191
|
+
command.request_representation = Google::Apis::DataprocV1beta2::InstantiateWorkflowTemplateRequest::Representation
|
192
|
+
command.request_object = instantiate_workflow_template_request_object
|
193
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
|
194
|
+
command.response_class = Google::Apis::DataprocV1beta2::Operation
|
195
|
+
command.params['name'] = name unless name.nil?
|
196
|
+
command.query['fields'] = fields unless fields.nil?
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
198
|
+
execute_or_queue_command(command, &block)
|
199
|
+
end
|
200
|
+
|
201
|
+
# Lists workflows that match the specified filter in the request.
|
202
|
+
# @param [String] parent
|
203
|
+
# Required The "resource name" of the region, as described in https://cloud.
|
204
|
+
# google.com/apis/design/resource_names of the form projects/`project_id`/
|
205
|
+
# regions/`region`
|
206
|
+
# @param [Fixnum] page_size
|
207
|
+
# Optional The maximum number of results to return in each response.
|
208
|
+
# @param [String] page_token
|
209
|
+
# Optional The page token, returned by a previous call, to request the next page
|
210
|
+
# of results.
|
211
|
+
# @param [String] fields
|
212
|
+
# Selector specifying which fields to include in a partial response.
|
213
|
+
# @param [String] quota_user
|
214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
216
|
+
# @param [Google::Apis::RequestOptions] options
|
217
|
+
# Request-specific options
|
218
|
+
#
|
219
|
+
# @yield [result, err] Result & error if block supplied
|
220
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse] parsed result object
|
221
|
+
# @yieldparam err [StandardError] error object if request failed
|
222
|
+
#
|
223
|
+
# @return [Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse]
|
224
|
+
#
|
225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
228
|
+
def list_project_location_workflow_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
229
|
+
command = make_simple_command(:get, 'v1beta2/{+parent}/workflowTemplates', options)
|
230
|
+
command.response_representation = Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse::Representation
|
231
|
+
command.response_class = Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse
|
232
|
+
command.params['parent'] = parent unless parent.nil?
|
233
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
234
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Updates (replaces) workflow template. The updated template must contain
|
241
|
+
# version that matches the current server version.
|
242
|
+
# @param [String] name
|
243
|
+
# Output-only The "resource name" of the template, as described in https://cloud.
|
244
|
+
# google.com/apis/design/resource_names of the form projects/`project_id`/
|
245
|
+
# regions/`region`/workflowTemplates/`template_id`
|
246
|
+
# @param [Google::Apis::DataprocV1beta2::WorkflowTemplate] workflow_template_object
|
247
|
+
# @param [String] fields
|
248
|
+
# Selector specifying which fields to include in a partial response.
|
249
|
+
# @param [String] quota_user
|
250
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
251
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
252
|
+
# @param [Google::Apis::RequestOptions] options
|
253
|
+
# Request-specific options
|
254
|
+
#
|
255
|
+
# @yield [result, err] Result & error if block supplied
|
256
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::WorkflowTemplate] parsed result object
|
257
|
+
# @yieldparam err [StandardError] error object if request failed
|
258
|
+
#
|
259
|
+
# @return [Google::Apis::DataprocV1beta2::WorkflowTemplate]
|
260
|
+
#
|
261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
264
|
+
def update_project_location_workflow_template(name, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:put, 'v1beta2/{+name}', options)
|
266
|
+
command.request_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
267
|
+
command.request_object = workflow_template_object
|
268
|
+
command.response_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
269
|
+
command.response_class = Google::Apis::DataprocV1beta2::WorkflowTemplate
|
270
|
+
command.params['name'] = name unless name.nil?
|
271
|
+
command.query['fields'] = fields unless fields.nil?
|
272
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
273
|
+
execute_or_queue_command(command, &block)
|
274
|
+
end
|
275
|
+
|
50
276
|
# Creates a cluster in a project.
|
51
277
|
# @param [String] project_id
|
52
278
|
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
@@ -831,6 +1057,232 @@ module Google
|
|
831
1057
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
832
1058
|
execute_or_queue_command(command, &block)
|
833
1059
|
end
|
1060
|
+
|
1061
|
+
# Creates new workflow template.
|
1062
|
+
# @param [String] parent
|
1063
|
+
# Required The "resource name" of the region, as described in https://cloud.
|
1064
|
+
# google.com/apis/design/resource_names of the form projects/`project_id`/
|
1065
|
+
# regions/`region`
|
1066
|
+
# @param [Google::Apis::DataprocV1beta2::WorkflowTemplate] workflow_template_object
|
1067
|
+
# @param [String] fields
|
1068
|
+
# Selector specifying which fields to include in a partial response.
|
1069
|
+
# @param [String] quota_user
|
1070
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1071
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1072
|
+
# @param [Google::Apis::RequestOptions] options
|
1073
|
+
# Request-specific options
|
1074
|
+
#
|
1075
|
+
# @yield [result, err] Result & error if block supplied
|
1076
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::WorkflowTemplate] parsed result object
|
1077
|
+
# @yieldparam err [StandardError] error object if request failed
|
1078
|
+
#
|
1079
|
+
# @return [Google::Apis::DataprocV1beta2::WorkflowTemplate]
|
1080
|
+
#
|
1081
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1082
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1083
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1084
|
+
def create_project_region_workflow_template(parent, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1085
|
+
command = make_simple_command(:post, 'v1beta2/{+parent}/workflowTemplates', options)
|
1086
|
+
command.request_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
1087
|
+
command.request_object = workflow_template_object
|
1088
|
+
command.response_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
1089
|
+
command.response_class = Google::Apis::DataprocV1beta2::WorkflowTemplate
|
1090
|
+
command.params['parent'] = parent unless parent.nil?
|
1091
|
+
command.query['fields'] = fields unless fields.nil?
|
1092
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1093
|
+
execute_or_queue_command(command, &block)
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
# Deletes a workflow template. It does not cancel in-progress workflows.
|
1097
|
+
# @param [String] name
|
1098
|
+
# Required The "resource name" of the workflow template, as described in https://
|
1099
|
+
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
|
1100
|
+
# regions/`region`/workflowTemplates/`template_id`
|
1101
|
+
# @param [Fixnum] version
|
1102
|
+
# Optional The version of workflow template to delete. If specified, will only
|
1103
|
+
# delete the template if the current server version matches specified version.
|
1104
|
+
# @param [String] fields
|
1105
|
+
# Selector specifying which fields to include in a partial response.
|
1106
|
+
# @param [String] quota_user
|
1107
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1108
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1109
|
+
# @param [Google::Apis::RequestOptions] options
|
1110
|
+
# Request-specific options
|
1111
|
+
#
|
1112
|
+
# @yield [result, err] Result & error if block supplied
|
1113
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Empty] parsed result object
|
1114
|
+
# @yieldparam err [StandardError] error object if request failed
|
1115
|
+
#
|
1116
|
+
# @return [Google::Apis::DataprocV1beta2::Empty]
|
1117
|
+
#
|
1118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1121
|
+
def delete_project_region_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1122
|
+
command = make_simple_command(:delete, 'v1beta2/{+name}', options)
|
1123
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation
|
1124
|
+
command.response_class = Google::Apis::DataprocV1beta2::Empty
|
1125
|
+
command.params['name'] = name unless name.nil?
|
1126
|
+
command.query['version'] = version unless version.nil?
|
1127
|
+
command.query['fields'] = fields unless fields.nil?
|
1128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1129
|
+
execute_or_queue_command(command, &block)
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
# Retrieves the latest workflow template.Can retrieve previously instantiated
|
1133
|
+
# template by specifying optional version parameter.
|
1134
|
+
# @param [String] name
|
1135
|
+
# Required The "resource name" of the workflow template, as described in https://
|
1136
|
+
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
|
1137
|
+
# regions/`region`/workflowTemplates/`template_id`
|
1138
|
+
# @param [Fixnum] version
|
1139
|
+
# Optional The version of workflow template to retrieve. Only previously
|
1140
|
+
# instatiated versions can be retrieved.If unspecified, retrieves the current
|
1141
|
+
# version.
|
1142
|
+
# @param [String] fields
|
1143
|
+
# Selector specifying which fields to include in a partial response.
|
1144
|
+
# @param [String] quota_user
|
1145
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1146
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1147
|
+
# @param [Google::Apis::RequestOptions] options
|
1148
|
+
# Request-specific options
|
1149
|
+
#
|
1150
|
+
# @yield [result, err] Result & error if block supplied
|
1151
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::WorkflowTemplate] parsed result object
|
1152
|
+
# @yieldparam err [StandardError] error object if request failed
|
1153
|
+
#
|
1154
|
+
# @return [Google::Apis::DataprocV1beta2::WorkflowTemplate]
|
1155
|
+
#
|
1156
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1157
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1158
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1159
|
+
def get_project_region_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1160
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
1161
|
+
command.response_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
1162
|
+
command.response_class = Google::Apis::DataprocV1beta2::WorkflowTemplate
|
1163
|
+
command.params['name'] = name unless name.nil?
|
1164
|
+
command.query['version'] = version unless version.nil?
|
1165
|
+
command.query['fields'] = fields unless fields.nil?
|
1166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1167
|
+
execute_or_queue_command(command, &block)
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
# Instantiates a template and begins execution.The returned Operation can be
|
1171
|
+
# used to track execution of workflow by polling google.cloud.dataproc.v1beta2.
|
1172
|
+
# OperationService.GetOperation. The Operation will complete when entire
|
1173
|
+
# workflow is finished.The running workflow can be aborted via google.cloud.
|
1174
|
+
# dataproc.v1beta2.OperationService.CancelOperation.The google.cloud.dataproc.
|
1175
|
+
# v1beta2.Operation.metadata will always be google.cloud.dataproc.v1beta2.
|
1176
|
+
# WorkflowMetadata.The google.cloud.dataproc.v1beta2.Operation.result will
|
1177
|
+
# always be google.protobuf.Empty.
|
1178
|
+
# @param [String] name
|
1179
|
+
# Required The "resource name" of the workflow template, as described in https://
|
1180
|
+
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
|
1181
|
+
# regions/`region`/workflowTemplates/`template_id`
|
1182
|
+
# @param [Google::Apis::DataprocV1beta2::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_request_object
|
1183
|
+
# @param [String] fields
|
1184
|
+
# Selector specifying which fields to include in a partial response.
|
1185
|
+
# @param [String] quota_user
|
1186
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1187
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1188
|
+
# @param [Google::Apis::RequestOptions] options
|
1189
|
+
# Request-specific options
|
1190
|
+
#
|
1191
|
+
# @yield [result, err] Result & error if block supplied
|
1192
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
|
1193
|
+
# @yieldparam err [StandardError] error object if request failed
|
1194
|
+
#
|
1195
|
+
# @return [Google::Apis::DataprocV1beta2::Operation]
|
1196
|
+
#
|
1197
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1198
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1199
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1200
|
+
def instantiate_project_region_workflow_template(name, instantiate_workflow_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1201
|
+
command = make_simple_command(:post, 'v1beta2/{+name}:instantiate', options)
|
1202
|
+
command.request_representation = Google::Apis::DataprocV1beta2::InstantiateWorkflowTemplateRequest::Representation
|
1203
|
+
command.request_object = instantiate_workflow_template_request_object
|
1204
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
|
1205
|
+
command.response_class = Google::Apis::DataprocV1beta2::Operation
|
1206
|
+
command.params['name'] = name unless name.nil?
|
1207
|
+
command.query['fields'] = fields unless fields.nil?
|
1208
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1209
|
+
execute_or_queue_command(command, &block)
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
# Lists workflows that match the specified filter in the request.
|
1213
|
+
# @param [String] parent
|
1214
|
+
# Required The "resource name" of the region, as described in https://cloud.
|
1215
|
+
# google.com/apis/design/resource_names of the form projects/`project_id`/
|
1216
|
+
# regions/`region`
|
1217
|
+
# @param [Fixnum] page_size
|
1218
|
+
# Optional The maximum number of results to return in each response.
|
1219
|
+
# @param [String] page_token
|
1220
|
+
# Optional The page token, returned by a previous call, to request the next page
|
1221
|
+
# of results.
|
1222
|
+
# @param [String] fields
|
1223
|
+
# Selector specifying which fields to include in a partial response.
|
1224
|
+
# @param [String] quota_user
|
1225
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1226
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1227
|
+
# @param [Google::Apis::RequestOptions] options
|
1228
|
+
# Request-specific options
|
1229
|
+
#
|
1230
|
+
# @yield [result, err] Result & error if block supplied
|
1231
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse] parsed result object
|
1232
|
+
# @yieldparam err [StandardError] error object if request failed
|
1233
|
+
#
|
1234
|
+
# @return [Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse]
|
1235
|
+
#
|
1236
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1237
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1238
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1239
|
+
def list_project_region_workflow_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1240
|
+
command = make_simple_command(:get, 'v1beta2/{+parent}/workflowTemplates', options)
|
1241
|
+
command.response_representation = Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse::Representation
|
1242
|
+
command.response_class = Google::Apis::DataprocV1beta2::ListWorkflowTemplatesResponse
|
1243
|
+
command.params['parent'] = parent unless parent.nil?
|
1244
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1245
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1246
|
+
command.query['fields'] = fields unless fields.nil?
|
1247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1248
|
+
execute_or_queue_command(command, &block)
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
# Updates (replaces) workflow template. The updated template must contain
|
1252
|
+
# version that matches the current server version.
|
1253
|
+
# @param [String] name
|
1254
|
+
# Output-only The "resource name" of the template, as described in https://cloud.
|
1255
|
+
# google.com/apis/design/resource_names of the form projects/`project_id`/
|
1256
|
+
# regions/`region`/workflowTemplates/`template_id`
|
1257
|
+
# @param [Google::Apis::DataprocV1beta2::WorkflowTemplate] workflow_template_object
|
1258
|
+
# @param [String] fields
|
1259
|
+
# Selector specifying which fields to include in a partial response.
|
1260
|
+
# @param [String] quota_user
|
1261
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1262
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1263
|
+
# @param [Google::Apis::RequestOptions] options
|
1264
|
+
# Request-specific options
|
1265
|
+
#
|
1266
|
+
# @yield [result, err] Result & error if block supplied
|
1267
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::WorkflowTemplate] parsed result object
|
1268
|
+
# @yieldparam err [StandardError] error object if request failed
|
1269
|
+
#
|
1270
|
+
# @return [Google::Apis::DataprocV1beta2::WorkflowTemplate]
|
1271
|
+
#
|
1272
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1273
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1274
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1275
|
+
def update_project_region_workflow_template(name, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1276
|
+
command = make_simple_command(:put, 'v1beta2/{+name}', options)
|
1277
|
+
command.request_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
1278
|
+
command.request_object = workflow_template_object
|
1279
|
+
command.response_representation = Google::Apis::DataprocV1beta2::WorkflowTemplate::Representation
|
1280
|
+
command.response_class = Google::Apis::DataprocV1beta2::WorkflowTemplate
|
1281
|
+
command.params['name'] = name unless name.nil?
|
1282
|
+
command.query['fields'] = fields unless fields.nil?
|
1283
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1284
|
+
execute_or_queue_command(command, &block)
|
1285
|
+
end
|
834
1286
|
|
835
1287
|
protected
|
836
1288
|
|