Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.flexTemplates.html">flexTemplates</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#launch">launch(projectId, location, body=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Launch a job with a FlexTemplate.</p> |
| 80 | <h3>Method Details</h3> |
| 81 | <div class="method"> |
| 82 | <code class="details" id="launch">launch(projectId, location, body=None, x__xgafv=None)</code> |
| 83 | <pre>Launch a job with a FlexTemplate. |
| 84 | |
| 85 | Args: |
| 86 | projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required) |
| 87 | location: string, Required. The [regional endpoint] |
| 88 | (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to |
| 89 | which to direct the request. E.g., us-central1, us-west1. (required) |
| 90 | body: object, The request body. |
| 91 | The object takes the form of: |
| 92 | |
| 93 | { # A request to launch a Cloud Dataflow job from a FlexTemplate. |
| 94 | "validateOnly": True or False, # If true, the request is validated but not actually executed. |
| 95 | # Defaults to false. |
| 96 | "launchParameter": { # Launch FlexTemplate Parameter. # Required. Parameter to launch a job form Flex Template. |
| 97 | "containerSpec": { # Container Spec. # Spec about the container image to launch. |
| 98 | "metadata": { # Metadata describing a template. # Metadata describing a template including description and validation rules. |
| 99 | "name": "A String", # Required. The name of the template. |
| 100 | "parameters": [ # The parameters for the template. |
| 101 | { # Metadata for a specific parameter. |
| 102 | "label": "A String", # Required. The label to display for the parameter. |
| 103 | "paramType": "A String", # Optional. The type of the parameter. |
| 104 | # Used for selecting input picker. |
| 105 | "helpText": "A String", # Required. The help text to display for the parameter. |
| 106 | "name": "A String", # Required. The name of the parameter. |
| 107 | "regexes": [ # Optional. Regexes that the parameter must match. |
| 108 | "A String", |
| 109 | ], |
| 110 | "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. |
| 111 | }, |
| 112 | ], |
| 113 | "description": "A String", # Optional. A description of the template. |
| 114 | }, |
| 115 | "sdkInfo": { # SDK Information. # Required. SDK info of the Flex Template. |
| 116 | "language": "A String", # Required. The SDK Language. |
| 117 | "version": "A String", # Optional. The SDK version. |
| 118 | }, |
| 119 | "image": "A String", # Name of the docker container image. E.g., gcr.io/project/some-image |
| 120 | }, |
| 121 | "containerSpecGcsPath": "A String", # Gcs path to a file with json serialized ContainerSpec as content. |
| 122 | "parameters": { # The parameters for FlexTemplate. |
| 123 | # Ex. {"num_workers":"5"} |
| 124 | "a_key": "A String", |
| 125 | }, |
| 126 | "jobName": "A String", # Required. The job name to use for the created job. |
| 127 | }, |
| 128 | } |
| 129 | |
| 130 | x__xgafv: string, V1 error format. |
| 131 | Allowed values |
| 132 | 1 - v1 error format |
| 133 | 2 - v2 error format |
| 134 | |
| 135 | Returns: |
| 136 | An object of the form: |
| 137 | |
| 138 | { # Response to the request to launch a job from Flex Template. |
| 139 | "job": { # Defines a job to be run by the Cloud Dataflow service. # The job that was launched, if the request was not a dry run and |
| 140 | # the job was successfully launched. |
| 141 | "clientRequestId": "A String", # The client's unique identifier of the job, re-used across retried attempts. |
| 142 | # If this field is set, the service will ensure its uniqueness. |
| 143 | # The request to create a job will fail if the service has knowledge of a |
| 144 | # previously submitted job with the same client's ID and job name. |
| 145 | # The caller may use this field to ensure idempotence of job |
| 146 | # creation across retried attempts to create a job. |
| 147 | # By default, the field is empty and, in that case, the service ignores it. |
| 148 | "id": "A String", # The unique ID of this job. |
| 149 | # |
| 150 | # This field is set by the Cloud Dataflow service when the Job is |
| 151 | # created, and is immutable for the life of the job. |
| 152 | "currentStateTime": "A String", # The timestamp associated with the current state. |
| 153 | "transformNameMapping": { # The map of transform name prefixes of the job to be replaced to the |
| 154 | # corresponding name prefixes of the new job. |
| 155 | "a_key": "A String", |
| 156 | }, |
| 157 | "environment": { # Describes the environment in which a Dataflow Job runs. # The environment for the job. |
| 158 | "sdkPipelineOptions": { # The Cloud Dataflow SDK pipeline options specified by the user. These |
| 159 | # options are passed through the service and are used to recreate the |
| 160 | # SDK pipeline options on the worker in a language agnostic and platform |
| 161 | # independent way. |
| 162 | "a_key": "", # Properties of the object. |
| 163 | }, |
| 164 | "flexResourceSchedulingGoal": "A String", # Which Flexible Resource Scheduling mode to run in. |
| 165 | "workerPools": [ # The worker pools. At least one "harness" worker pool must be |
| 166 | # specified in order for the job to have workers. |
| 167 | { # Describes one particular pool of Cloud Dataflow workers to be |
| 168 | # instantiated by the Cloud Dataflow service in order to perform the |
| 169 | # computations required by a job. Note that a workflow job may use |
| 170 | # multiple pools, in order to match the various computational |
| 171 | # requirements of the various stages of the job. |
| 172 | "defaultPackageSet": "A String", # The default package set to install. This allows the service to |
| 173 | # select a default set of packages which are useful to worker |
| 174 | # harnesses written in a particular language. |
| 175 | "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, |
| 176 | # the service will use the network "default". |
| 177 | "zone": "A String", # Zone to run the worker pools in. If empty or unspecified, the service |
| 178 | # will attempt to choose a reasonable default. |
| 179 | "numWorkers": 42, # Number of Google Compute Engine workers in this pool needed to |
| 180 | # execute the job. If zero or unspecified, the service will |
| 181 | # attempt to choose a reasonable default. |
| 182 | "numThreadsPerWorker": 42, # The number of threads per worker harness. If empty or unspecified, the |
| 183 | # service will choose a number of threads (according to the number of cores |
| 184 | # on the selected machine type for batch, or 1 by convention for streaming). |
| 185 | "diskSourceImage": "A String", # Fully qualified source image for disks. |
| 186 | "packages": [ # Packages to be installed on workers. |
| 187 | { # The packages that must be installed in order for a worker to run the |
| 188 | # steps of the Cloud Dataflow job that will be assigned to its worker |
| 189 | # pool. |
| 190 | # |
| 191 | # This is the mechanism by which the Cloud Dataflow SDK causes code to |
| 192 | # be loaded onto the workers. For example, the Cloud Dataflow Java SDK |
| 193 | # might use this to install jars containing the user's code and all of the |
| 194 | # various dependencies (libraries, data files, etc.) required in order |
| 195 | # for that code to run. |
| 196 | "location": "A String", # The resource to read the package from. The supported resource type is: |
| 197 | # |
| 198 | # Google Cloud Storage: |
| 199 | # |
| 200 | # storage.googleapis.com/{bucket} |
| 201 | # bucket.storage.googleapis.com/ |
| 202 | "name": "A String", # The name of the package. |
| 203 | }, |
| 204 | ], |
| 205 | "teardownPolicy": "A String", # Sets the policy for determining when to turndown worker pool. |
| 206 | # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and |
| 207 | # `TEARDOWN_NEVER`. |
| 208 | # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether |
| 209 | # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down |
| 210 | # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn |
| 211 | # down. |
| 212 | # |
| 213 | # If the workers are not torn down by the service, they will |
| 214 | # continue to run and use Google Compute Engine VM resources in the |
| 215 | # user's project until they are explicitly terminated by the user. |
| 216 | # Because of this, Google recommends using the `TEARDOWN_ALWAYS` |
| 217 | # policy except for small, manually supervised test jobs. |
| 218 | # |
| 219 | # If unknown or unspecified, the service will attempt to choose a reasonable |
| 220 | # default. |
| 221 | "onHostMaintenance": "A String", # The action to take on host maintenance, as defined by the Google |
| 222 | # Compute Engine API. |
| 223 | "poolArgs": { # Extra arguments for this worker pool. |
| 224 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 225 | }, |
| 226 | "diskSizeGb": 42, # Size of root disk for VMs, in GB. If zero or unspecified, the service will |
| 227 | # attempt to choose a reasonable default. |
| 228 | "workerHarnessContainerImage": "A String", # Required. Docker container image that executes the Cloud Dataflow worker |
| 229 | # harness, residing in Google Container Registry. |
| 230 | # |
| 231 | # Deprecated for the Fn API path. Use sdk_harness_container_images instead. |
| 232 | "diskType": "A String", # Type of root disk for VMs. If empty or unspecified, the service will |
| 233 | # attempt to choose a reasonable default. |
| 234 | "machineType": "A String", # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the |
| 235 | # service will attempt to choose a reasonable default. |
| 236 | "kind": "A String", # The kind of the worker pool; currently only `harness` and `shuffle` |
| 237 | # are supported. |
| 238 | "dataDisks": [ # Data disks that are used by a VM in this workflow. |
| 239 | { # Describes the data disk used by a workflow job. |
| 240 | "sizeGb": 42, # Size of disk in GB. If zero or unspecified, the service will |
| 241 | # attempt to choose a reasonable default. |
| 242 | "diskType": "A String", # Disk storage type, as defined by Google Compute Engine. This |
| 243 | # must be a disk type appropriate to the project and zone in which |
| 244 | # the workers will run. If unknown or unspecified, the service |
| 245 | # will attempt to choose a reasonable default. |
| 246 | # |
| 247 | # For example, the standard persistent disk type is a resource name |
| 248 | # typically ending in "pd-standard". If SSD persistent disks are |
| 249 | # available, the resource name typically ends with "pd-ssd". The |
| 250 | # actual valid values are defined the Google Compute Engine API, |
| 251 | # not by the Cloud Dataflow API; consult the Google Compute Engine |
| 252 | # documentation for more information about determining the set of |
| 253 | # available disk types for a particular project and zone. |
| 254 | # |
| 255 | # Google Compute Engine Disk types are local to a particular |
| 256 | # project in a particular zone, and so the resource name will |
| 257 | # typically look something like this: |
| 258 | # |
| 259 | # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard |
| 260 | "mountPoint": "A String", # Directory in a VM where disk is mounted. |
| 261 | }, |
| 262 | ], |
| 263 | "sdkHarnessContainerImages": [ # Set of SDK harness containers needed to execute this pipeline. This will |
| 264 | # only be set in the Fn API path. For non-cross-language pipelines this |
| 265 | # should have only one entry. Cross-language pipelines will have two or more |
| 266 | # entries. |
| 267 | { # Defines a SDK harness container for executing Dataflow pipelines. |
| 268 | "containerImage": "A String", # A docker container image that resides in Google Container Registry. |
| 269 | "useSingleCorePerContainer": True or False, # If true, recommends the Dataflow service to use only one core per SDK |
| 270 | # container instance with this image. If false (or unset) recommends using |
| 271 | # more than one core per SDK container instance with this image for |
| 272 | # efficiency. Note that Dataflow service may choose to override this property |
| 273 | # if needed. |
| 274 | }, |
| 275 | ], |
| 276 | "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. Expected to be of |
| 277 | # the form "regions/REGION/subnetworks/SUBNETWORK". |
| 278 | "ipConfiguration": "A String", # Configuration for VM IPs. |
| 279 | "taskrunnerSettings": { # Taskrunner configuration settings. # Settings passed through to Google Compute Engine workers when |
| 280 | # using the standard Dataflow task runner. Users should ignore |
| 281 | # this field. |
| 282 | "alsologtostderr": True or False, # Whether to also send taskrunner log info to stderr. |
| 283 | "taskGroup": "A String", # The UNIX group ID on the worker VM to use for tasks launched by |
| 284 | # taskrunner; e.g. "wheel". |
| 285 | "harnessCommand": "A String", # The command to launch the worker harness. |
| 286 | "logDir": "A String", # The directory on the VM to store logs. |
| 287 | "oauthScopes": [ # The OAuth2 scopes to be requested by the taskrunner in order to |
| 288 | # access the Cloud Dataflow API. |
| 289 | "A String", |
| 290 | ], |
| 291 | "dataflowApiVersion": "A String", # The API version of endpoint, e.g. "v1b3" |
| 292 | "logUploadLocation": "A String", # Indicates where to put logs. If this is not specified, the logs |
| 293 | # will not be uploaded. |
| 294 | # |
| 295 | # The supported resource type is: |
| 296 | # |
| 297 | # Google Cloud Storage: |
| 298 | # storage.googleapis.com/{bucket}/{object} |
| 299 | # bucket.storage.googleapis.com/{object} |
| 300 | "streamingWorkerMainClass": "A String", # The streaming worker main class name. |
| 301 | "workflowFileName": "A String", # The file to store the workflow in. |
| 302 | "baseTaskDir": "A String", # The location on the worker for task-specific subdirectories. |
| 303 | "tempStoragePrefix": "A String", # The prefix of the resources the taskrunner should use for |
| 304 | # temporary storage. |
| 305 | # |
| 306 | # The supported resource type is: |
| 307 | # |
| 308 | # Google Cloud Storage: |
| 309 | # storage.googleapis.com/{bucket}/{object} |
| 310 | # bucket.storage.googleapis.com/{object} |
| 311 | "commandlinesFileName": "A String", # The file to store preprocessing commands in. |
| 312 | "languageHint": "A String", # The suggested backend language. |
| 313 | "baseUrl": "A String", # The base URL for the taskrunner to use when accessing Google Cloud APIs. |
| 314 | # |
| 315 | # When workers access Google Cloud APIs, they logically do so via |
| 316 | # relative URLs. If this field is specified, it supplies the base |
| 317 | # URL to use for resolving these relative URLs. The normative |
| 318 | # algorithm used is defined by RFC 1808, "Relative Uniform Resource |
| 319 | # Locators". |
| 320 | # |
| 321 | # If not specified, the default value is "http://www.googleapis.com/" |
| 322 | "logToSerialconsole": True or False, # Whether to send taskrunner log info to Google Compute Engine VM serial |
| 323 | # console. |
| 324 | "continueOnException": True or False, # Whether to continue taskrunner if an exception is hit. |
| 325 | "parallelWorkerSettings": { # Provides data to pass through to the worker harness. # The settings to pass to the parallel worker harness. |
| 326 | "baseUrl": "A String", # The base URL for accessing Google Cloud APIs. |
| 327 | # |
| 328 | # When workers access Google Cloud APIs, they logically do so via |
| 329 | # relative URLs. If this field is specified, it supplies the base |
| 330 | # URL to use for resolving these relative URLs. The normative |
| 331 | # algorithm used is defined by RFC 1808, "Relative Uniform Resource |
| 332 | # Locators". |
| 333 | # |
| 334 | # If not specified, the default value is "http://www.googleapis.com/" |
| 335 | "reportingEnabled": True or False, # Whether to send work progress updates to the service. |
| 336 | "servicePath": "A String", # The Cloud Dataflow service path relative to the root URL, for example, |
| 337 | # "dataflow/v1b3/projects". |
| 338 | "shuffleServicePath": "A String", # The Shuffle service path relative to the root URL, for example, |
| 339 | # "shuffle/v1beta1". |
| 340 | "workerId": "A String", # The ID of the worker running this pipeline. |
| 341 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary |
| 342 | # storage. |
| 343 | # |
| 344 | # The supported resource type is: |
| 345 | # |
| 346 | # Google Cloud Storage: |
| 347 | # |
| 348 | # storage.googleapis.com/{bucket}/{object} |
| 349 | # bucket.storage.googleapis.com/{object} |
| 350 | }, |
| 351 | "vmId": "A String", # The ID string of the VM. |
| 352 | "taskUser": "A String", # The UNIX user ID on the worker VM to use for tasks launched by |
| 353 | # taskrunner; e.g. "root". |
| 354 | }, |
| 355 | "autoscalingSettings": { # Settings for WorkerPool autoscaling. # Settings for autoscaling of this WorkerPool. |
| 356 | "maxNumWorkers": 42, # The maximum number of workers to cap scaling at. |
| 357 | "algorithm": "A String", # The algorithm to use for autoscaling. |
| 358 | }, |
| 359 | "metadata": { # Metadata to set on the Google Compute Engine VMs. |
| 360 | "a_key": "A String", |
| 361 | }, |
| 362 | }, |
| 363 | ], |
| 364 | "dataset": "A String", # The dataset for the current project where various workflow |
| 365 | # related tables are stored. |
| 366 | # |
| 367 | # The supported resource type is: |
| 368 | # |
| 369 | # Google BigQuery: |
| 370 | # bigquery.googleapis.com/{dataset} |
| 371 | "internalExperiments": { # Experimental settings. |
| 372 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 373 | }, |
| 374 | "workerRegion": "A String", # The Compute Engine region |
| 375 | # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in |
| 376 | # which worker processing should occur, e.g. "us-west1". Mutually exclusive |
| 377 | # with worker_zone. If neither worker_region nor worker_zone is specified, |
| 378 | # default to the control plane's region. |
| 379 | "serviceKmsKeyName": "A String", # If set, contains the Cloud KMS key identifier used to encrypt data |
| 380 | # at rest, AKA a Customer Managed Encryption Key (CMEK). |
| 381 | # |
| 382 | # Format: |
| 383 | # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY |
| 384 | "userAgent": { # A description of the process that generated the request. |
| 385 | "a_key": "", # Properties of the object. |
| 386 | }, |
| 387 | "workerZone": "A String", # The Compute Engine zone |
| 388 | # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in |
| 389 | # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive |
| 390 | # with worker_region. If neither worker_region nor worker_zone is specified, |
| 391 | # a zone in the control plane's region is chosen based on available capacity. |
| 392 | "clusterManagerApiService": "A String", # The type of cluster manager API to use. If unknown or |
| 393 | # unspecified, the service will attempt to choose a reasonable |
| 394 | # default. This should be in the form of the API service name, |
| 395 | # e.g. "compute.googleapis.com". |
| 396 | "tempStoragePrefix": "A String", # The prefix of the resources the system should use for temporary |
| 397 | # storage. The system will append the suffix "/temp-{JOBNAME} to |
| 398 | # this resource prefix, where {JOBNAME} is the value of the |
| 399 | # job_name field. The resulting bucket and object prefix is used |
| 400 | # as the prefix of the resources used to store temporary data |
| 401 | # needed during the job execution. NOTE: This will override the |
| 402 | # value in taskrunner_settings. |
| 403 | # The supported resource type is: |
| 404 | # |
| 405 | # Google Cloud Storage: |
| 406 | # |
| 407 | # storage.googleapis.com/{bucket}/{object} |
| 408 | # bucket.storage.googleapis.com/{object} |
| 409 | "experiments": [ # The list of experiments to enable. |
| 410 | "A String", |
| 411 | ], |
| 412 | "version": { # A structure describing which components and their versions of the service |
| 413 | # are required in order to run the job. |
| 414 | "a_key": "", # Properties of the object. |
| 415 | }, |
| 416 | "serviceAccountEmail": "A String", # Identity to run virtual machines as. Defaults to the default account. |
| 417 | }, |
| 418 | "stageStates": [ # This field may be mutated by the Cloud Dataflow service; |
| 419 | # callers cannot mutate it. |
| 420 | { # A message describing the state of a particular execution stage. |
| 421 | "executionStageName": "A String", # The name of the execution stage. |
| 422 | "currentStateTime": "A String", # The time at which the stage transitioned to this state. |
| 423 | "executionStageState": "A String", # Executions stage states allow the same set of values as JobState. |
| 424 | }, |
| 425 | ], |
| 426 | "jobMetadata": { # Metadata available primarily for filtering jobs. Will be included in the # This field is populated by the Dataflow service to support filtering jobs |
| 427 | # by the metadata values provided here. Populated for ListJobs and all GetJob |
| 428 | # views SUMMARY and higher. |
| 429 | # ListJob response and Job SUMMARY view. |
| 430 | "bigTableDetails": [ # Identification of a BigTable source used in the Dataflow job. |
| 431 | { # Metadata for a BigTable connector used by the job. |
| 432 | "tableId": "A String", # TableId accessed in the connection. |
| 433 | "projectId": "A String", # ProjectId accessed in the connection. |
| 434 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 435 | }, |
| 436 | ], |
| 437 | "spannerDetails": [ # Identification of a Spanner source used in the Dataflow job. |
| 438 | { # Metadata for a Spanner connector used by the job. |
| 439 | "databaseId": "A String", # DatabaseId accessed in the connection. |
| 440 | "instanceId": "A String", # InstanceId accessed in the connection. |
| 441 | "projectId": "A String", # ProjectId accessed in the connection. |
| 442 | }, |
| 443 | ], |
| 444 | "datastoreDetails": [ # Identification of a Datastore source used in the Dataflow job. |
| 445 | { # Metadata for a Datastore connector used by the job. |
| 446 | "projectId": "A String", # ProjectId accessed in the connection. |
| 447 | "namespace": "A String", # Namespace used in the connection. |
| 448 | }, |
| 449 | ], |
| 450 | "sdkVersion": { # The version of the SDK used to run the job. # The SDK version used to run the job. |
| 451 | "versionDisplayName": "A String", # A readable string describing the version of the SDK. |
| 452 | "sdkSupportStatus": "A String", # The support status for this SDK version. |
| 453 | "version": "A String", # The version of the SDK used to run the job. |
| 454 | }, |
| 455 | "bigqueryDetails": [ # Identification of a BigQuery source used in the Dataflow job. |
| 456 | { # Metadata for a BigQuery connector used by the job. |
| 457 | "table": "A String", # Table accessed in the connection. |
| 458 | "dataset": "A String", # Dataset accessed in the connection. |
| 459 | "projectId": "A String", # Project accessed in the connection. |
| 460 | "query": "A String", # Query used to access data in the connection. |
| 461 | }, |
| 462 | ], |
| 463 | "fileDetails": [ # Identification of a File source used in the Dataflow job. |
| 464 | { # Metadata for a File connector used by the job. |
| 465 | "filePattern": "A String", # File Pattern used to access files by the connector. |
| 466 | }, |
| 467 | ], |
| 468 | "pubsubDetails": [ # Identification of a PubSub source used in the Dataflow job. |
| 469 | { # Metadata for a PubSub connector used by the job. |
| 470 | "subscription": "A String", # Subscription used in the connection. |
| 471 | "topic": "A String", # Topic accessed in the connection. |
| 472 | }, |
| 473 | ], |
| 474 | }, |
| 475 | "createdFromSnapshotId": "A String", # If this is specified, the job's initial state is populated from the given |
| 476 | # snapshot. |
| 477 | "projectId": "A String", # The ID of the Cloud Platform project that the job belongs to. |
| 478 | "type": "A String", # The type of Cloud Dataflow job. |
| 479 | "pipelineDescription": { # A descriptive representation of submitted pipeline as well as the executed # Preliminary field: The format of this data may change at any time. |
| 480 | # A description of the user pipeline and stages through which it is executed. |
| 481 | # Created by Cloud Dataflow service. Only retrieved with |
| 482 | # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. |
| 483 | # form. This data is provided by the Dataflow service for ease of visualizing |
| 484 | # the pipeline and interpreting Dataflow provided metrics. |
| 485 | "executionPipelineStage": [ # Description of each stage of execution of the pipeline. |
| 486 | { # Description of the composing transforms, names/ids, and input/outputs of a |
| 487 | # stage of execution. Some composing transforms and sources may have been |
| 488 | # generated by the Dataflow service during execution planning. |
| 489 | "id": "A String", # Dataflow service generated id for this stage. |
| 490 | "componentTransform": [ # Transforms that comprise this execution stage. |
| 491 | { # Description of a transform executed as part of an execution stage. |
| 492 | "originalTransform": "A String", # User name for the original user transform with which this transform is |
| 493 | # most closely associated. |
| 494 | "name": "A String", # Dataflow service generated name for this source. |
| 495 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 496 | }, |
| 497 | ], |
| 498 | "componentSource": [ # Collections produced and consumed by component transforms of this stage. |
| 499 | { # Description of an interstitial value between transforms in an execution |
| 500 | # stage. |
| 501 | "name": "A String", # Dataflow service generated name for this source. |
| 502 | "userName": "A String", # Human-readable name for this transform; may be user or system generated. |
| 503 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this |
| 504 | # source is most closely associated. |
| 505 | }, |
| 506 | ], |
| 507 | "kind": "A String", # Type of tranform this stage is executing. |
| 508 | "outputSource": [ # Output sources for this stage. |
| 509 | { # Description of an input or output of an execution stage. |
| 510 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this |
| 511 | # source is most closely associated. |
| 512 | "name": "A String", # Dataflow service generated name for this source. |
| 513 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 514 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 515 | }, |
| 516 | ], |
| 517 | "name": "A String", # Dataflow service generated name for this stage. |
| 518 | "inputSource": [ # Input sources for this stage. |
| 519 | { # Description of an input or output of an execution stage. |
| 520 | "originalTransformOrCollection": "A String", # User name for the original user transform or collection with which this |
| 521 | # source is most closely associated. |
| 522 | "name": "A String", # Dataflow service generated name for this source. |
| 523 | "sizeBytes": "A String", # Size of the source, if measurable. |
| 524 | "userName": "A String", # Human-readable name for this source; may be user or system generated. |
| 525 | }, |
| 526 | ], |
| 527 | }, |
| 528 | ], |
| 529 | "originalPipelineTransform": [ # Description of each transform in the pipeline and collections between them. |
| 530 | { # Description of the type, names/ids, and input/outputs for a transform. |
| 531 | "kind": "A String", # Type of transform. |
| 532 | "inputCollectionName": [ # User names for all collection inputs to this transform. |
| 533 | "A String", |
| 534 | ], |
| 535 | "name": "A String", # User provided name for this transform instance. |
| 536 | "id": "A String", # SDK generated id of this transform instance. |
| 537 | "displayData": [ # Transform-specific display data. |
| 538 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 539 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 540 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 541 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 542 | "strValue": "A String", # Contains value if the data is of string type. |
| 543 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 544 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 545 | "namespace": "A String", # The namespace for the key. This is usually a class name or programming |
| 546 | # language namespace (i.e. python module) which defines the display data. |
| 547 | # This allows a dax monitoring system to specially handle the data |
| 548 | # and perform custom rendering. |
| 549 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 550 | "key": "A String", # The key identifying the display data. |
| 551 | # This is intended to be used as a label for the display data |
| 552 | # when viewed in a dax monitoring system. |
| 553 | "shortStrValue": "A String", # A possible additional shorter value to display. |
| 554 | # For example a java_class_name_value of com.mypackage.MyDoFn |
| 555 | # will be stored with MyDoFn as the short_str_value and |
| 556 | # com.mypackage.MyDoFn as the java_class_name value. |
| 557 | # short_str_value can be displayed and java_class_name_value |
| 558 | # will be displayed as a tooltip. |
| 559 | "url": "A String", # An optional full URL. |
| 560 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 561 | }, |
| 562 | ], |
| 563 | "outputCollectionName": [ # User names for all collection outputs to this transform. |
| 564 | "A String", |
| 565 | ], |
| 566 | }, |
| 567 | ], |
| 568 | "displayData": [ # Pipeline level display data. |
| 569 | { # Data provided with a pipeline or transform to provide descriptive info. |
| 570 | "timestampValue": "A String", # Contains value if the data is of timestamp type. |
| 571 | "boolValue": True or False, # Contains value if the data is of a boolean type. |
| 572 | "javaClassValue": "A String", # Contains value if the data is of java class type. |
| 573 | "strValue": "A String", # Contains value if the data is of string type. |
| 574 | "int64Value": "A String", # Contains value if the data is of int64 type. |
| 575 | "durationValue": "A String", # Contains value if the data is of duration type. |
| 576 | "namespace": "A String", # The namespace for the key. This is usually a class name or programming |
| 577 | # language namespace (i.e. python module) which defines the display data. |
| 578 | # This allows a dax monitoring system to specially handle the data |
| 579 | # and perform custom rendering. |
| 580 | "floatValue": 3.14, # Contains value if the data is of float type. |
| 581 | "key": "A String", # The key identifying the display data. |
| 582 | # This is intended to be used as a label for the display data |
| 583 | # when viewed in a dax monitoring system. |
| 584 | "shortStrValue": "A String", # A possible additional shorter value to display. |
| 585 | # For example a java_class_name_value of com.mypackage.MyDoFn |
| 586 | # will be stored with MyDoFn as the short_str_value and |
| 587 | # com.mypackage.MyDoFn as the java_class_name value. |
| 588 | # short_str_value can be displayed and java_class_name_value |
| 589 | # will be displayed as a tooltip. |
| 590 | "url": "A String", # An optional full URL. |
| 591 | "label": "A String", # An optional label to display in a dax UI for the element. |
| 592 | }, |
| 593 | ], |
| 594 | }, |
| 595 | "replaceJobId": "A String", # If this job is an update of an existing job, this field is the job ID |
| 596 | # of the job it replaced. |
| 597 | # |
| 598 | # When sending a `CreateJobRequest`, you can update a job by specifying it |
| 599 | # here. The job named here is stopped, and its intermediate state is |
| 600 | # transferred to this job. |
| 601 | "tempFiles": [ # A set of files the system should be aware of that are used |
| 602 | # for temporary storage. These temporary files will be |
| 603 | # removed on job completion. |
| 604 | # No duplicates are allowed. |
| 605 | # No file patterns are supported. |
| 606 | # |
| 607 | # The supported files are: |
| 608 | # |
| 609 | # Google Cloud Storage: |
| 610 | # |
| 611 | # storage.googleapis.com/{bucket}/{object} |
| 612 | # bucket.storage.googleapis.com/{object} |
| 613 | "A String", |
| 614 | ], |
| 615 | "name": "A String", # The user-specified Cloud Dataflow job name. |
| 616 | # |
| 617 | # Only one Job with a given name may exist in a project at any |
| 618 | # given time. If a caller attempts to create a Job with the same |
| 619 | # name as an already-existing Job, the attempt returns the |
| 620 | # existing Job. |
| 621 | # |
| 622 | # The name must match the regular expression |
| 623 | # `[a-z]([-a-z0-9]{0,38}[a-z0-9])?` |
| 624 | "steps": [ # Exactly one of step or steps_location should be specified. |
| 625 | # |
| 626 | # The top-level steps that constitute the entire job. |
| 627 | { # Defines a particular step within a Cloud Dataflow job. |
| 628 | # |
| 629 | # A job consists of multiple steps, each of which performs some |
| 630 | # specific operation as part of the overall job. Data is typically |
| 631 | # passed from one step to another as part of the job. |
| 632 | # |
| 633 | # Here's an example of a sequence of steps which together implement a |
| 634 | # Map-Reduce job: |
| 635 | # |
| 636 | # * Read a collection of data from some source, parsing the |
| 637 | # collection's elements. |
| 638 | # |
| 639 | # * Validate the elements. |
| 640 | # |
| 641 | # * Apply a user-defined function to map each element to some value |
| 642 | # and extract an element-specific key value. |
| 643 | # |
| 644 | # * Group elements with the same key into a single element with |
| 645 | # that key, transforming a multiply-keyed collection into a |
| 646 | # uniquely-keyed collection. |
| 647 | # |
| 648 | # * Write the elements out to some data sink. |
| 649 | # |
| 650 | # Note that the Cloud Dataflow service may be used to run many different |
| 651 | # types of jobs, not just Map-Reduce. |
| 652 | "name": "A String", # The name that identifies the step. This must be unique for each |
| 653 | # step with respect to all other steps in the Cloud Dataflow job. |
| 654 | "kind": "A String", # The kind of step in the Cloud Dataflow job. |
| 655 | "properties": { # Named properties associated with the step. Each kind of |
| 656 | # predefined step has its own required set of properties. |
| 657 | # Must be provided on Create. Only retrieved with JOB_VIEW_ALL. |
| 658 | "a_key": "", # Properties of the object. |
| 659 | }, |
| 660 | }, |
| 661 | ], |
| 662 | "replacedByJobId": "A String", # If another job is an update of this job (and thus, this job is in |
| 663 | # `JOB_STATE_UPDATED`), this field contains the ID of that job. |
| 664 | "executionInfo": { # Additional information about how a Cloud Dataflow job will be executed that # Deprecated. |
| 665 | # isn't contained in the submitted job. |
| 666 | "stages": { # A mapping from each stage to the information about that stage. |
| 667 | "a_key": { # Contains information about how a particular |
| 668 | # google.dataflow.v1beta3.Step will be executed. |
| 669 | "stepName": [ # The steps associated with the execution stage. |
| 670 | # Note that stages may have several steps, and that a given step |
| 671 | # might be run by more than one stage. |
| 672 | "A String", |
| 673 | ], |
| 674 | }, |
| 675 | }, |
| 676 | }, |
| 677 | "currentState": "A String", # The current state of the job. |
| 678 | # |
| 679 | # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise |
| 680 | # specified. |
| 681 | # |
| 682 | # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a |
| 683 | # terminal state. After a job has reached a terminal state, no |
| 684 | # further state updates may be made. |
| 685 | # |
| 686 | # This field may be mutated by the Cloud Dataflow service; |
| 687 | # callers cannot mutate it. |
| 688 | "location": "A String", # The [regional endpoint] |
| 689 | # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that |
| 690 | # contains this job. |
| 691 | "startTime": "A String", # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). |
| 692 | # Flexible resource scheduling jobs are started with some delay after job |
| 693 | # creation, so start_time is unset before start and is updated when the |
| 694 | # job is started by the Cloud Dataflow service. For other jobs, start_time |
| 695 | # always equals to create_time and is immutable and set by the Cloud Dataflow |
| 696 | # service. |
| 697 | "stepsLocation": "A String", # The GCS location where the steps are stored. |
| 698 | "labels": { # User-defined labels for this job. |
| 699 | # |
| 700 | # The labels map can contain no more than 64 entries. Entries of the labels |
| 701 | # map are UTF8 strings that comply with the following restrictions: |
| 702 | # |
| 703 | # * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} |
| 704 | # * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} |
| 705 | # * Both keys and values are additionally constrained to be <= 128 bytes in |
| 706 | # size. |
| 707 | "a_key": "A String", |
| 708 | }, |
| 709 | "createTime": "A String", # The timestamp when the job was initially created. Immutable and set by the |
| 710 | # Cloud Dataflow service. |
| 711 | "requestedState": "A String", # The job's requested state. |
| 712 | # |
| 713 | # `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and |
| 714 | # `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may |
| 715 | # also be used to directly set a job's requested state to |
| 716 | # `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the |
| 717 | # job if it has not already reached a terminal state. |
| 718 | }, |
| 719 | }</pre> |
| 720 | </div> |
| 721 | |
| 722 | </body></html> |