google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -80,16 +80,19 @@ module Google
|
|
80
80
|
execute_or_queue_command(command, &block)
|
81
81
|
end
|
82
82
|
|
83
|
-
#
|
83
|
+
# Launch a template.
|
84
84
|
# @param [String] project_id
|
85
|
-
#
|
85
|
+
# Required. The ID of the Cloud Platform project that the job belongs to.
|
86
|
+
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
|
87
|
+
# @param [String] gcs_path
|
88
|
+
# Required. A Cloud Storage path to the template from which to create
|
89
|
+
# the job.
|
90
|
+
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
86
91
|
# @param [String] location
|
87
|
-
# The location which
|
88
|
-
# @param [
|
89
|
-
#
|
90
|
-
#
|
91
|
-
# Return only metric data that has changed since this time.
|
92
|
-
# Default is to return all information about all metrics for the job.
|
92
|
+
# The location to which to direct the request.
|
93
|
+
# @param [Boolean] validate_only
|
94
|
+
# If true, the request is validated but not actually executed.
|
95
|
+
# Defaults to false.
|
93
96
|
# @param [String] fields
|
94
97
|
# Selector specifying which fields to include in a partial response.
|
95
98
|
# @param [String] quota_user
|
@@ -99,22 +102,256 @@ module Google
|
|
99
102
|
# Request-specific options
|
100
103
|
#
|
101
104
|
# @yield [result, err] Result & error if block supplied
|
102
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
105
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
|
103
106
|
# @yieldparam err [StandardError] error object if request failed
|
104
107
|
#
|
105
|
-
# @return [Google::Apis::DataflowV1b3::
|
108
|
+
# @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
|
106
109
|
#
|
107
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
-
def
|
111
|
-
command = make_simple_command(:
|
112
|
-
command.
|
113
|
-
command.
|
113
|
+
def launch_project_template(project_id, launch_template_parameters_object = nil, gcs_path: nil, location: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
|
115
|
+
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
|
116
|
+
command.request_object = launch_template_parameters_object
|
117
|
+
command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
|
118
|
+
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
|
119
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
120
|
+
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
121
|
+
command.query['location'] = location unless location.nil?
|
122
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
123
|
+
command.query['fields'] = fields unless fields.nil?
|
124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
125
|
+
execute_or_queue_command(command, &block)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Get the template associated with a template.
|
129
|
+
# @param [String] project_id
|
130
|
+
# Required. The ID of the Cloud Platform project that the job belongs to.
|
131
|
+
# @param [String] gcs_path
|
132
|
+
# Required. A Cloud Storage path to the template from which to
|
133
|
+
# create the job.
|
134
|
+
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
135
|
+
# @param [String] location
|
136
|
+
# The location to which to direct the request.
|
137
|
+
# @param [String] view
|
138
|
+
# The view to retrieve. Defaults to METADATA_ONLY.
|
139
|
+
# @param [String] fields
|
140
|
+
# Selector specifying which fields to include in a partial response.
|
141
|
+
# @param [String] quota_user
|
142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
145
|
+
# Request-specific options
|
146
|
+
#
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
148
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
150
|
+
#
|
151
|
+
# @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
|
152
|
+
#
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
156
|
+
def get_project_template(project_id, gcs_path: nil, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
157
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
|
158
|
+
command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
|
159
|
+
command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
|
160
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
161
|
+
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
162
|
+
command.query['location'] = location unless location.nil?
|
163
|
+
command.query['view'] = view unless view.nil?
|
164
|
+
command.query['fields'] = fields unless fields.nil?
|
165
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
166
|
+
execute_or_queue_command(command, &block)
|
167
|
+
end
|
168
|
+
|
169
|
+
# Creates a Cloud Dataflow job from a template.
|
170
|
+
# @param [String] project_id
|
171
|
+
# Required. The ID of the Cloud Platform project that the job belongs to.
|
172
|
+
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
173
|
+
# @param [String] fields
|
174
|
+
# Selector specifying which fields to include in a partial response.
|
175
|
+
# @param [String] quota_user
|
176
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
177
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
178
|
+
# @param [Google::Apis::RequestOptions] options
|
179
|
+
# Request-specific options
|
180
|
+
#
|
181
|
+
# @yield [result, err] Result & error if block supplied
|
182
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
184
|
+
#
|
185
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
186
|
+
#
|
187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
190
|
+
def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
191
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
|
192
|
+
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
193
|
+
command.request_object = create_job_from_template_request_object
|
194
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
195
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
196
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
197
|
+
command.query['fields'] = fields unless fields.nil?
|
198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
199
|
+
execute_or_queue_command(command, &block)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Send a worker_message to the service.
|
203
|
+
# @param [String] project_id
|
204
|
+
# The project to send the WorkerMessages to.
|
205
|
+
# @param [String] location
|
206
|
+
# The location which contains the job
|
207
|
+
# @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
|
208
|
+
# @param [String] fields
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
210
|
+
# @param [String] quota_user
|
211
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
212
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
213
|
+
# @param [Google::Apis::RequestOptions] options
|
214
|
+
# Request-specific options
|
215
|
+
#
|
216
|
+
# @yield [result, err] Result & error if block supplied
|
217
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse] parsed result object
|
218
|
+
# @yieldparam err [StandardError] error object if request failed
|
219
|
+
#
|
220
|
+
# @return [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse]
|
221
|
+
#
|
222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
225
|
+
def worker_project_location_messages(project_id, location, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
226
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/WorkerMessages', options)
|
227
|
+
command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
|
228
|
+
command.request_object = send_worker_messages_request_object
|
229
|
+
command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation
|
230
|
+
command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
|
114
231
|
command.params['projectId'] = project_id unless project_id.nil?
|
115
232
|
command.params['location'] = location unless location.nil?
|
116
|
-
command.
|
117
|
-
command.query['
|
233
|
+
command.query['fields'] = fields unless fields.nil?
|
234
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
235
|
+
execute_or_queue_command(command, &block)
|
236
|
+
end
|
237
|
+
|
238
|
+
# Creates a Cloud Dataflow job from a template.
|
239
|
+
# @param [String] project_id
|
240
|
+
# Required. The ID of the Cloud Platform project that the job belongs to.
|
241
|
+
# @param [String] location
|
242
|
+
# The location to which to direct the request.
|
243
|
+
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
244
|
+
# @param [String] fields
|
245
|
+
# Selector specifying which fields to include in a partial response.
|
246
|
+
# @param [String] quota_user
|
247
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
248
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
249
|
+
# @param [Google::Apis::RequestOptions] options
|
250
|
+
# Request-specific options
|
251
|
+
#
|
252
|
+
# @yield [result, err] Result & error if block supplied
|
253
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
254
|
+
# @yieldparam err [StandardError] error object if request failed
|
255
|
+
#
|
256
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
257
|
+
#
|
258
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
259
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
260
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
261
|
+
def create_job_from_template_with_location(project_id, location, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
262
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates', options)
|
263
|
+
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
264
|
+
command.request_object = create_job_from_template_request_object
|
265
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
266
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
267
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
268
|
+
command.params['location'] = location unless location.nil?
|
269
|
+
command.query['fields'] = fields unless fields.nil?
|
270
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
271
|
+
execute_or_queue_command(command, &block)
|
272
|
+
end
|
273
|
+
|
274
|
+
# Launch a template.
|
275
|
+
# @param [String] project_id
|
276
|
+
# Required. The ID of the Cloud Platform project that the job belongs to.
|
277
|
+
# @param [String] location
|
278
|
+
# The location to which to direct the request.
|
279
|
+
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
|
280
|
+
# @param [String] gcs_path
|
281
|
+
# Required. A Cloud Storage path to the template from which to create
|
282
|
+
# the job.
|
283
|
+
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
284
|
+
# @param [Boolean] validate_only
|
285
|
+
# If true, the request is validated but not actually executed.
|
286
|
+
# Defaults to false.
|
287
|
+
# @param [String] fields
|
288
|
+
# Selector specifying which fields to include in a partial response.
|
289
|
+
# @param [String] quota_user
|
290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
292
|
+
# @param [Google::Apis::RequestOptions] options
|
293
|
+
# Request-specific options
|
294
|
+
#
|
295
|
+
# @yield [result, err] Result & error if block supplied
|
296
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
|
297
|
+
# @yieldparam err [StandardError] error object if request failed
|
298
|
+
#
|
299
|
+
# @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
|
300
|
+
#
|
301
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
302
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
303
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
304
|
+
def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, gcs_path: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
305
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options)
|
306
|
+
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
|
307
|
+
command.request_object = launch_template_parameters_object
|
308
|
+
command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
|
309
|
+
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
|
310
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
311
|
+
command.params['location'] = location unless location.nil?
|
312
|
+
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
313
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
314
|
+
command.query['fields'] = fields unless fields.nil?
|
315
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
316
|
+
execute_or_queue_command(command, &block)
|
317
|
+
end
|
318
|
+
|
319
|
+
# Get the template associated with a template.
|
320
|
+
# @param [String] project_id
|
321
|
+
# Required. The ID of the Cloud Platform project that the job belongs to.
|
322
|
+
# @param [String] location
|
323
|
+
# The location to which to direct the request.
|
324
|
+
# @param [String] view
|
325
|
+
# The view to retrieve. Defaults to METADATA_ONLY.
|
326
|
+
# @param [String] gcs_path
|
327
|
+
# Required. A Cloud Storage path to the template from which to
|
328
|
+
# create the job.
|
329
|
+
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
330
|
+
# @param [String] fields
|
331
|
+
# Selector specifying which fields to include in a partial response.
|
332
|
+
# @param [String] quota_user
|
333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
335
|
+
# @param [Google::Apis::RequestOptions] options
|
336
|
+
# Request-specific options
|
337
|
+
#
|
338
|
+
# @yield [result, err] Result & error if block supplied
|
339
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
|
340
|
+
# @yieldparam err [StandardError] error object if request failed
|
341
|
+
#
|
342
|
+
# @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
|
343
|
+
#
|
344
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
345
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
346
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
347
|
+
def get_project_location_template(project_id, location, view: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
|
348
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/templates:get', options)
|
349
|
+
command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
|
350
|
+
command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
|
351
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
352
|
+
command.params['location'] = location unless location.nil?
|
353
|
+
command.query['view'] = view unless view.nil?
|
354
|
+
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
118
355
|
command.query['fields'] = fields unless fields.nil?
|
119
356
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
120
357
|
execute_or_queue_command(command, &block)
|
@@ -164,6 +401,8 @@ module Google
|
|
164
401
|
# The project which owns the jobs.
|
165
402
|
# @param [String] location
|
166
403
|
# The location that contains this job.
|
404
|
+
# @param [String] filter
|
405
|
+
# The kind of filter to use.
|
167
406
|
# @param [String] page_token
|
168
407
|
# Set this to the 'next_page_token' field of a previous response
|
169
408
|
# to request additional results in a long list.
|
@@ -173,8 +412,6 @@ module Google
|
|
173
412
|
# and an unspecified server-defined limit.
|
174
413
|
# @param [String] view
|
175
414
|
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
|
176
|
-
# @param [String] filter
|
177
|
-
# The kind of filter to use.
|
178
415
|
# @param [String] fields
|
179
416
|
# Selector specifying which fields to include in a partial response.
|
180
417
|
# @param [String] quota_user
|
@@ -192,16 +429,16 @@ module Google
|
|
192
429
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
193
430
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
194
431
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
195
|
-
def list_project_location_jobs(project_id, location,
|
432
|
+
def list_project_location_jobs(project_id, location, filter: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
196
433
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
197
434
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
198
435
|
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
199
436
|
command.params['projectId'] = project_id unless project_id.nil?
|
200
437
|
command.params['location'] = location unless location.nil?
|
438
|
+
command.query['filter'] = filter unless filter.nil?
|
201
439
|
command.query['pageToken'] = page_token unless page_token.nil?
|
202
440
|
command.query['pageSize'] = page_size unless page_size.nil?
|
203
441
|
command.query['view'] = view unless view.nil?
|
204
|
-
command.query['filter'] = filter unless filter.nil?
|
205
442
|
command.query['fields'] = fields unless fields.nil?
|
206
443
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
207
444
|
execute_or_queue_command(command, &block)
|
@@ -288,14 +525,16 @@ module Google
|
|
288
525
|
execute_or_queue_command(command, &block)
|
289
526
|
end
|
290
527
|
|
291
|
-
#
|
528
|
+
# Request the job status.
|
292
529
|
# @param [String] project_id
|
293
|
-
#
|
530
|
+
# A project id.
|
294
531
|
# @param [String] location
|
295
|
-
# The location which contains the
|
532
|
+
# The location which contains the job specified by job_id.
|
296
533
|
# @param [String] job_id
|
297
|
-
# The job
|
298
|
-
# @param [
|
534
|
+
# The job to get messages for.
|
535
|
+
# @param [String] start_time
|
536
|
+
# Return only metric data that has changed since this time.
|
537
|
+
# Default is to return all information about all metrics for the job.
|
299
538
|
# @param [String] fields
|
300
539
|
# Selector specifying which fields to include in a partial response.
|
301
540
|
# @param [String] quota_user
|
@@ -305,36 +544,35 @@ module Google
|
|
305
544
|
# Request-specific options
|
306
545
|
#
|
307
546
|
# @yield [result, err] Result & error if block supplied
|
308
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
547
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
|
309
548
|
# @yieldparam err [StandardError] error object if request failed
|
310
549
|
#
|
311
|
-
# @return [Google::Apis::DataflowV1b3::
|
550
|
+
# @return [Google::Apis::DataflowV1b3::JobMetrics]
|
312
551
|
#
|
313
552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
314
553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
|
-
def
|
317
|
-
command = make_simple_command(:
|
318
|
-
command.
|
319
|
-
command.
|
320
|
-
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
|
321
|
-
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
|
555
|
+
def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
556
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
|
557
|
+
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
558
|
+
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
322
559
|
command.params['projectId'] = project_id unless project_id.nil?
|
323
560
|
command.params['location'] = location unless location.nil?
|
324
561
|
command.params['jobId'] = job_id unless job_id.nil?
|
562
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
325
563
|
command.query['fields'] = fields unless fields.nil?
|
326
564
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
327
565
|
execute_or_queue_command(command, &block)
|
328
566
|
end
|
329
567
|
|
330
|
-
#
|
568
|
+
# Get encoded debug configuration for component. Not cacheable.
|
331
569
|
# @param [String] project_id
|
332
|
-
#
|
570
|
+
# The project id.
|
333
571
|
# @param [String] location
|
334
|
-
# The location which contains the
|
572
|
+
# The location which contains the job specified by job_id.
|
335
573
|
# @param [String] job_id
|
336
|
-
#
|
337
|
-
# @param [Google::Apis::DataflowV1b3::
|
574
|
+
# The job id.
|
575
|
+
# @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
|
338
576
|
# @param [String] fields
|
339
577
|
# Selector specifying which fields to include in a partial response.
|
340
578
|
# @param [String] quota_user
|
@@ -344,20 +582,20 @@ module Google
|
|
344
582
|
# Request-specific options
|
345
583
|
#
|
346
584
|
# @yield [result, err] Result & error if block supplied
|
347
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
585
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
|
348
586
|
# @yieldparam err [StandardError] error object if request failed
|
349
587
|
#
|
350
|
-
# @return [Google::Apis::DataflowV1b3::
|
588
|
+
# @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
|
351
589
|
#
|
352
590
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
353
591
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
354
592
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
355
|
-
def
|
356
|
-
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/
|
357
|
-
command.request_representation = Google::Apis::DataflowV1b3::
|
358
|
-
command.request_object =
|
359
|
-
command.response_representation = Google::Apis::DataflowV1b3::
|
360
|
-
command.response_class = Google::Apis::DataflowV1b3::
|
593
|
+
def get_project_location_job_debug_config(project_id, location, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
594
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig', options)
|
595
|
+
command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
|
596
|
+
command.request_object = get_debug_config_request_object
|
597
|
+
command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
|
598
|
+
command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
|
361
599
|
command.params['projectId'] = project_id unless project_id.nil?
|
362
600
|
command.params['location'] = location unless location.nil?
|
363
601
|
command.params['jobId'] = job_id unless job_id.nil?
|
@@ -366,29 +604,14 @@ module Google
|
|
366
604
|
execute_or_queue_command(command, &block)
|
367
605
|
end
|
368
606
|
|
369
|
-
#
|
607
|
+
# Send encoded debug capture data for component.
|
370
608
|
# @param [String] project_id
|
371
|
-
#
|
609
|
+
# The project id.
|
372
610
|
# @param [String] location
|
373
611
|
# The location which contains the job specified by job_id.
|
374
612
|
# @param [String] job_id
|
375
|
-
# The job
|
376
|
-
# @param [
|
377
|
-
# Return only messages with timestamps < end_time. The default is now
|
378
|
-
# (i.e. return up to the latest messages available).
|
379
|
-
# @param [String] start_time
|
380
|
-
# If specified, return only messages with timestamps >= start_time.
|
381
|
-
# The default is the job creation time (i.e. beginning of messages).
|
382
|
-
# @param [String] page_token
|
383
|
-
# If supplied, this should be the value of next_page_token returned
|
384
|
-
# by an earlier call. This will cause the next page of results to
|
385
|
-
# be returned.
|
386
|
-
# @param [Fixnum] page_size
|
387
|
-
# If specified, determines the maximum number of messages to
|
388
|
-
# return. If unspecified, the service may choose an appropriate
|
389
|
-
# default, or may return an arbitrarily large number of results.
|
390
|
-
# @param [String] minimum_importance
|
391
|
-
# Filter to only get messages with importance >= level
|
613
|
+
# The job id.
|
614
|
+
# @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
|
392
615
|
# @param [String] fields
|
393
616
|
# Selector specifying which fields to include in a partial response.
|
394
617
|
# @param [String] quota_user
|
@@ -398,43 +621,36 @@ module Google
|
|
398
621
|
# Request-specific options
|
399
622
|
#
|
400
623
|
# @yield [result, err] Result & error if block supplied
|
401
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
624
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
|
402
625
|
# @yieldparam err [StandardError] error object if request failed
|
403
626
|
#
|
404
|
-
# @return [Google::Apis::DataflowV1b3::
|
627
|
+
# @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
|
405
628
|
#
|
406
629
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
407
630
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
408
631
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
409
|
-
def
|
410
|
-
command = make_simple_command(:
|
411
|
-
command.
|
412
|
-
command.
|
632
|
+
def send_project_location_job_debug_capture(project_id, location, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
633
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture', options)
|
634
|
+
command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
|
635
|
+
command.request_object = send_debug_capture_request_object
|
636
|
+
command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
|
637
|
+
command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
|
413
638
|
command.params['projectId'] = project_id unless project_id.nil?
|
414
639
|
command.params['location'] = location unless location.nil?
|
415
640
|
command.params['jobId'] = job_id unless job_id.nil?
|
416
|
-
command.query['endTime'] = end_time unless end_time.nil?
|
417
|
-
command.query['startTime'] = start_time unless start_time.nil?
|
418
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
419
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
420
|
-
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
421
641
|
command.query['fields'] = fields unless fields.nil?
|
422
642
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
423
643
|
execute_or_queue_command(command, &block)
|
424
644
|
end
|
425
645
|
|
426
|
-
#
|
646
|
+
# Leases a dataflow WorkItem to run.
|
427
647
|
# @param [String] project_id
|
428
|
-
#
|
429
|
-
# @param [
|
430
|
-
#
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
# @param [String] gcs_path
|
435
|
-
# Required. A Cloud Storage path to the template from which to create
|
436
|
-
# the job.
|
437
|
-
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
648
|
+
# Identifies the project this worker belongs to.
|
649
|
+
# @param [String] location
|
650
|
+
# The location which contains the WorkItem's job.
|
651
|
+
# @param [String] job_id
|
652
|
+
# Identifies the workflow job this worker belongs to.
|
653
|
+
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
|
438
654
|
# @param [String] fields
|
439
655
|
# Selector specifying which fields to include in a partial response.
|
440
656
|
# @param [String] quota_user
|
@@ -444,37 +660,36 @@ module Google
|
|
444
660
|
# Request-specific options
|
445
661
|
#
|
446
662
|
# @yield [result, err] Result & error if block supplied
|
447
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
663
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
448
664
|
# @yieldparam err [StandardError] error object if request failed
|
449
665
|
#
|
450
|
-
# @return [Google::Apis::DataflowV1b3::
|
666
|
+
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
451
667
|
#
|
452
668
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
453
669
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
454
670
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
455
|
-
def
|
456
|
-
command = make_simple_command(:post, 'v1b3/projects/{projectId}/
|
457
|
-
command.request_representation = Google::Apis::DataflowV1b3::
|
458
|
-
command.request_object =
|
459
|
-
command.response_representation = Google::Apis::DataflowV1b3::
|
460
|
-
command.response_class = Google::Apis::DataflowV1b3::
|
671
|
+
def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
672
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
|
673
|
+
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
674
|
+
command.request_object = lease_work_item_request_object
|
675
|
+
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
676
|
+
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
461
677
|
command.params['projectId'] = project_id unless project_id.nil?
|
462
|
-
command.
|
463
|
-
command.
|
678
|
+
command.params['location'] = location unless location.nil?
|
679
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
464
680
|
command.query['fields'] = fields unless fields.nil?
|
465
681
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
466
682
|
execute_or_queue_command(command, &block)
|
467
683
|
end
|
468
684
|
|
469
|
-
#
|
685
|
+
# Reports the status of dataflow WorkItems leased by a worker.
|
470
686
|
# @param [String] project_id
|
471
|
-
#
|
472
|
-
# @param [String]
|
473
|
-
# The
|
474
|
-
# @param [String]
|
475
|
-
#
|
476
|
-
#
|
477
|
-
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
687
|
+
# The project which owns the WorkItem's job.
|
688
|
+
# @param [String] location
|
689
|
+
# The location which contains the WorkItem's job.
|
690
|
+
# @param [String] job_id
|
691
|
+
# The job which the WorkItem is part of.
|
692
|
+
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
|
478
693
|
# @param [String] fields
|
479
694
|
# Selector specifying which fields to include in a partial response.
|
480
695
|
# @param [String] quota_user
|
@@ -484,30 +699,51 @@ module Google
|
|
484
699
|
# Request-specific options
|
485
700
|
#
|
486
701
|
# @yield [result, err] Result & error if block supplied
|
487
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
702
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
|
488
703
|
# @yieldparam err [StandardError] error object if request failed
|
489
704
|
#
|
490
|
-
# @return [Google::Apis::DataflowV1b3::
|
705
|
+
# @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
|
491
706
|
#
|
492
707
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
493
708
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
494
709
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
495
|
-
def
|
496
|
-
command = make_simple_command(:
|
497
|
-
command.
|
498
|
-
command.
|
710
|
+
def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
711
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
|
712
|
+
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
|
713
|
+
command.request_object = report_work_item_status_request_object
|
714
|
+
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
|
715
|
+
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
|
499
716
|
command.params['projectId'] = project_id unless project_id.nil?
|
500
|
-
command.
|
501
|
-
command.
|
717
|
+
command.params['location'] = location unless location.nil?
|
718
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
502
719
|
command.query['fields'] = fields unless fields.nil?
|
503
720
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
504
721
|
execute_or_queue_command(command, &block)
|
505
722
|
end
|
506
723
|
|
507
|
-
#
|
724
|
+
# Request the job status.
|
508
725
|
# @param [String] project_id
|
509
|
-
#
|
510
|
-
# @param [
|
726
|
+
# A project id.
|
727
|
+
# @param [String] location
|
728
|
+
# The location which contains the job specified by job_id.
|
729
|
+
# @param [String] job_id
|
730
|
+
# The job to get messages about.
|
731
|
+
# @param [String] end_time
|
732
|
+
# Return only messages with timestamps < end_time. The default is now
|
733
|
+
# (i.e. return up to the latest messages available).
|
734
|
+
# @param [String] start_time
|
735
|
+
# If specified, return only messages with timestamps >= start_time.
|
736
|
+
# The default is the job creation time (i.e. beginning of messages).
|
737
|
+
# @param [String] page_token
|
738
|
+
# If supplied, this should be the value of next_page_token returned
|
739
|
+
# by an earlier call. This will cause the next page of results to
|
740
|
+
# be returned.
|
741
|
+
# @param [Fixnum] page_size
|
742
|
+
# If specified, determines the maximum number of messages to
|
743
|
+
# return. If unspecified, the service may choose an appropriate
|
744
|
+
# default, or may return an arbitrarily large number of results.
|
745
|
+
# @param [String] minimum_importance
|
746
|
+
# Filter to only get messages with importance >= level
|
511
747
|
# @param [String] fields
|
512
748
|
# Selector specifying which fields to include in a partial response.
|
513
749
|
# @param [String] quota_user
|
@@ -517,21 +753,26 @@ module Google
|
|
517
753
|
# Request-specific options
|
518
754
|
#
|
519
755
|
# @yield [result, err] Result & error if block supplied
|
520
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
756
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
|
521
757
|
# @yieldparam err [StandardError] error object if request failed
|
522
758
|
#
|
523
|
-
# @return [Google::Apis::DataflowV1b3::
|
759
|
+
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
|
524
760
|
#
|
525
761
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
762
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
763
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
-
def
|
529
|
-
command = make_simple_command(:
|
530
|
-
command.
|
531
|
-
command.
|
532
|
-
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
533
|
-
command.response_class = Google::Apis::DataflowV1b3::Job
|
764
|
+
def list_project_location_job_messages(project_id, location, job_id, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
|
765
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
|
766
|
+
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
767
|
+
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
534
768
|
command.params['projectId'] = project_id unless project_id.nil?
|
769
|
+
command.params['location'] = location unless location.nil?
|
770
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
771
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
772
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
773
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
774
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
775
|
+
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
535
776
|
command.query['fields'] = fields unless fields.nil?
|
536
777
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
537
778
|
execute_or_queue_command(command, &block)
|
@@ -542,10 +783,10 @@ module Google
|
|
542
783
|
# The ID of the Cloud Platform project that the job belongs to.
|
543
784
|
# @param [String] job_id
|
544
785
|
# The job ID.
|
545
|
-
# @param [String] location
|
546
|
-
# The location that contains this job.
|
547
786
|
# @param [String] view
|
548
787
|
# The level of information requested in response.
|
788
|
+
# @param [String] location
|
789
|
+
# The location that contains this job.
|
549
790
|
# @param [String] fields
|
550
791
|
# Selector specifying which fields to include in a partial response.
|
551
792
|
# @param [String] quota_user
|
@@ -563,14 +804,14 @@ module Google
|
|
563
804
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
564
805
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
565
806
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
566
|
-
def get_project_job(project_id, job_id,
|
807
|
+
def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
567
808
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
568
809
|
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
569
810
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
570
811
|
command.params['projectId'] = project_id unless project_id.nil?
|
571
812
|
command.params['jobId'] = job_id unless job_id.nil?
|
572
|
-
command.query['location'] = location unless location.nil?
|
573
813
|
command.query['view'] = view unless view.nil?
|
814
|
+
command.query['location'] = location unless location.nil?
|
574
815
|
command.query['fields'] = fields unless fields.nil?
|
575
816
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
576
817
|
execute_or_queue_command(command, &block)
|
@@ -710,11 +951,11 @@ module Google
|
|
710
951
|
# A project id.
|
711
952
|
# @param [String] job_id
|
712
953
|
# The job to get messages for.
|
713
|
-
# @param [String] location
|
714
|
-
# The location which contains the job specified by job_id.
|
715
954
|
# @param [String] start_time
|
716
955
|
# Return only metric data that has changed since this time.
|
717
956
|
# Default is to return all information about all metrics for the job.
|
957
|
+
# @param [String] location
|
958
|
+
# The location which contains the job specified by job_id.
|
718
959
|
# @param [String] fields
|
719
960
|
# Selector specifying which fields to include in a partial response.
|
720
961
|
# @param [String] quota_user
|
@@ -732,14 +973,14 @@ module Google
|
|
732
973
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
733
974
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
734
975
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
735
|
-
def get_project_job_metrics(project_id, job_id,
|
976
|
+
def get_project_job_metrics(project_id, job_id, start_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
736
977
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
|
737
978
|
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
738
979
|
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
739
980
|
command.params['projectId'] = project_id unless project_id.nil?
|
740
981
|
command.params['jobId'] = job_id unless job_id.nil?
|
741
|
-
command.query['location'] = location unless location.nil?
|
742
982
|
command.query['startTime'] = start_time unless start_time.nil?
|
983
|
+
command.query['location'] = location unless location.nil?
|
743
984
|
command.query['fields'] = fields unless fields.nil?
|
744
985
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
745
986
|
execute_or_queue_command(command, &block)
|
@@ -899,13 +1140,13 @@ module Google
|
|
899
1140
|
# (i.e. return up to the latest messages available).
|
900
1141
|
# @param [String] location
|
901
1142
|
# The location which contains the job specified by job_id.
|
902
|
-
# @param [String] start_time
|
903
|
-
# If specified, return only messages with timestamps >= start_time.
|
904
|
-
# The default is the job creation time (i.e. beginning of messages).
|
905
1143
|
# @param [String] page_token
|
906
1144
|
# If supplied, this should be the value of next_page_token returned
|
907
1145
|
# by an earlier call. This will cause the next page of results to
|
908
1146
|
# be returned.
|
1147
|
+
# @param [String] start_time
|
1148
|
+
# If specified, return only messages with timestamps >= start_time.
|
1149
|
+
# The default is the job creation time (i.e. beginning of messages).
|
909
1150
|
# @param [Fixnum] page_size
|
910
1151
|
# If specified, determines the maximum number of messages to
|
911
1152
|
# return. If unspecified, the service may choose an appropriate
|
@@ -929,7 +1170,7 @@ module Google
|
|
929
1170
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
930
1171
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
931
1172
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
932
|
-
def list_project_job_messages(project_id, job_id, end_time: nil, location: nil,
|
1173
|
+
def list_project_job_messages(project_id, job_id, end_time: nil, location: nil, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
|
933
1174
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
|
934
1175
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
935
1176
|
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
@@ -937,8 +1178,8 @@ module Google
|
|
937
1178
|
command.params['jobId'] = job_id unless job_id.nil?
|
938
1179
|
command.query['endTime'] = end_time unless end_time.nil?
|
939
1180
|
command.query['location'] = location unless location.nil?
|
940
|
-
command.query['startTime'] = start_time unless start_time.nil?
|
941
1181
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1182
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
942
1183
|
command.query['pageSize'] = page_size unless page_size.nil?
|
943
1184
|
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
944
1185
|
command.query['fields'] = fields unless fields.nil?
|