Class ProjectsResource.TemplatesResource
The "templates" collection of methods.
Inherited Members
Namespace: Google.Apis.Dataflow.v1b3
Assembly: Google.Apis.Dataflow.v1b3.dll
Syntax
public class ProjectsResource.TemplatesResource
Constructors
TemplatesResource(IClientService)
Constructs a new resource.
Declaration
public TemplatesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CreateJobFromTemplateRequest, string)
Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply
string values using the API. To create a job, we recommend using projects.locations.templates.create
with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
projects.templates.create
is not recommended, because your job will always start in us-central1
.
Declaration
public virtual ProjectsResource.TemplatesResource.CreateRequest Create(CreateJobFromTemplateRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
CreateJobFromTemplateRequest | body | The body of the request. |
string | projectId | Required. The ID of the Cloud Platform project that the job belongs to. |
Returns
Type | Description |
---|---|
ProjectsResource.TemplatesResource.CreateRequest |
Get(string)
Get the template associated with a template. To get the template, we recommend using
projects.locations.templates.get
with a [regional endpoint]
(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using projects.templates.get
is
not recommended, because only templates that are running in us-central1
are retrieved.
Declaration
public virtual ProjectsResource.TemplatesResource.GetRequest Get(string projectId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. The ID of the Cloud Platform project that the job belongs to. |
Returns
Type | Description |
---|---|
ProjectsResource.TemplatesResource.GetRequest |
Launch(LaunchTemplateParameters, string)
Launches a template. To launch a template, we recommend using projects.locations.templates.launch
with
a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
projects.templates.launch
is not recommended, because jobs launched from the template will always
start in us-central1
.
Declaration
public virtual ProjectsResource.TemplatesResource.LaunchRequest Launch(LaunchTemplateParameters body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
LaunchTemplateParameters | body | The body of the request. |
string | projectId | Required. The ID of the Cloud Platform project that the job belongs to. |
Returns
Type | Description |
---|---|
ProjectsResource.TemplatesResource.LaunchRequest |