@@ -241,9 +241,16 @@ def create_workflow_template(
241241 >>> response = client.create_workflow_template(parent, template)
242242
243243 Args:
244- parent (str): Required. The "resource name" of the region, as described in
245- https://cloud.google.com/apis/design/resource\_names of the form
246- ``projects/{project_id}/regions/{region}``
244+ parent (str): Required. The resource name of the region or location, as described in
245+ https://cloud.google.com/apis/design/resource\_names.
246+
247+ - For ``projects.regions.workflowTemplates,create``, the resource name
248+ of the region has the following format:
249+ ``projects/{project_id}/regions/{region}``
250+
251+ - For ``projects.locations.workflowTemplates.create``, the resource
252+ name of the location has the following format:
253+ ``projects/{project_id}/locations/{location}``
247254 template (Union[dict, ~google.cloud.dataproc_v1.types.WorkflowTemplate]): Required. The Dataproc workflow template to create.
248255
249256 If a dict is provided, it must be of the same form as the protobuf
@@ -322,11 +329,18 @@ def get_workflow_template(
322329 >>> response = client.get_workflow_template(name)
323330
324331 Args:
325- name (str): Required. The "resource name" of the workflow template, as described in
326- https://cloud.google.com/apis/design/resource\_names of the form
327- ``projects/{project_id}/regions/{region}/workflowTemplates/{template_id}``
332+ name (str): Required. The resource name of the workflow template, as described in
333+ https://cloud.google.com/apis/design/resource\_names.
334+
335+ - For ``projects.regions.workflowTemplates.get``, the resource name of
336+ the template has the following format:
337+ ``projects/{project_id}/regions/{region}/workflowTemplates/{template_id}``
338+
339+ - For ``projects.locations.workflowTemplates.get``, the resource name
340+ of the template has the following format:
341+ ``projects/{project_id}/locations/{location}/workflowTemplates/{template_id}``
328342 version (int): Optional. The version of workflow template to retrieve. Only previously
329- instatiated versions can be retrieved.
343+ instantiated versions can be retrieved.
330344
331345 If unspecified, retrieves the current version.
332346 retry (Optional[google.api_core.retry.Retry]): A retry object used
@@ -400,7 +414,10 @@ def instantiate_workflow_template(
400414 cause any inflight jobs to be cancelled and workflow-owned clusters to
401415 be deleted.
402416
403- The ``Operation.metadata`` will be ``WorkflowMetadata``.
417+ The ``Operation.metadata`` will be
418+ `WorkflowMetadata <https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata>`__.
419+ Also see `Using
420+ WorkflowMetadata <https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata>`__.
404421
405422 On successful completion, ``Operation.response`` will be ``Empty``.
406423
@@ -423,9 +440,16 @@ def instantiate_workflow_template(
423440 >>> metadata = response.metadata()
424441
425442 Args:
426- name (str): Required. The "resource name" of the workflow template, as described in
427- https://cloud.google.com/apis/design/resource\_names of the form
428- ``projects/{project_id}/regions/{region}/workflowTemplates/{template_id}``
443+ name (str): Required. The resource name of the workflow template, as described in
444+ https://cloud.google.com/apis/design/resource\_names.
445+
446+ - For ``projects.regions.workflowTemplates.instantiate``, the resource
447+ name of the template has the following format:
448+ ``projects/{project_id}/regions/{region}/workflowTemplates/{template_id}``
449+
450+ - For ``projects.locations.workflowTemplates.instantiate``, the
451+ resource name of the template has the following format:
452+ ``projects/{project_id}/locations/{location}/workflowTemplates/{template_id}``
429453 version (int): Optional. The version of workflow template to instantiate. If specified,
430454 the workflow will be instantiated only if the current version of
431455 the workflow template has the supplied version.
@@ -525,7 +549,10 @@ def instantiate_inline_workflow_template(
525549 cause any inflight jobs to be cancelled and workflow-owned clusters to
526550 be deleted.
527551
528- The ``Operation.metadata`` will be ``WorkflowMetadata``.
552+ The ``Operation.metadata`` will be
553+ `WorkflowMetadata <https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata>`__.
554+ Also see `Using
555+ WorkflowMetadata <https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata>`__.
529556
530557 On successful completion, ``Operation.response`` will be ``Empty``.
531558
@@ -551,9 +578,16 @@ def instantiate_inline_workflow_template(
551578 >>> metadata = response.metadata()
552579
553580 Args:
554- parent (str): Required. The "resource name" of the workflow template region, as
555- described in https://cloud.google.com/apis/design/resource\_names of the
556- form ``projects/{project_id}/regions/{region}``
581+ parent (str): Required. The resource name of the region or location, as described in
582+ https://cloud.google.com/apis/design/resource\_names.
583+
584+ - For ``projects.regions.workflowTemplates,instantiateinline``, the
585+ resource name of the region has the following format:
586+ ``projects/{project_id}/regions/{region}``
587+
588+ - For ``projects.locations.workflowTemplates.instantiateinline``, the
589+ resource name of the location has the following format:
590+ ``projects/{project_id}/locations/{location}``
557591 template (Union[dict, ~google.cloud.dataproc_v1.types.WorkflowTemplate]): Required. The workflow template to instantiate.
558592
559593 If a dict is provided, it must be of the same form as the protobuf
@@ -738,9 +772,16 @@ def list_workflow_templates(
738772 ... pass
739773
740774 Args:
741- parent (str): Required. The "resource name" of the region, as described in
742- https://cloud.google.com/apis/design/resource\_names of the form
743- ``projects/{project_id}/regions/{region}``
775+ parent (str): Required. The resource name of the region or location, as described in
776+ https://cloud.google.com/apis/design/resource\_names.
777+
778+ - For ``projects.regions.workflowTemplates,list``, the resource name of
779+ the region has the following format:
780+ ``projects/{project_id}/regions/{region}``
781+
782+ - For ``projects.locations.workflowTemplates.list``, the resource name
783+ of the location has the following format:
784+ ``projects/{project_id}/locations/{location}``
744785 page_size (int): The maximum number of resources contained in the
745786 underlying API response. If page streaming is performed per-
746787 resource, this parameter does not affect the return value. If page
@@ -831,9 +872,16 @@ def delete_workflow_template(
831872 >>> client.delete_workflow_template(name)
832873
833874 Args:
834- name (str): Required. The "resource name" of the workflow template, as described in
835- https://cloud.google.com/apis/design/resource\_names of the form
836- ``projects/{project_id}/regions/{region}/workflowTemplates/{template_id}``
875+ name (str): Required. The resource name of the workflow template, as described in
876+ https://cloud.google.com/apis/design/resource\_names.
877+
878+ - For ``projects.regions.workflowTemplates.delete``, the resource name
879+ of the template has the following format:
880+ ``projects/{project_id}/regions/{region}/workflowTemplates/{template_id}``
881+
882+ - For ``projects.locations.workflowTemplates.instantiate``, the
883+ resource name of the template has the following format:
884+ ``projects/{project_id}/locations/{location}/workflowTemplates/{template_id}``
837885 version (int): Optional. The version of workflow template to delete. If specified,
838886 will only delete the template if the current server version matches
839887 specified version.
0 commit comments