Class ProjectsResource.LocationsResource.TemplatesResource
The "templates" collection of methods.
Inherited Members
Namespace: Google.Apis.Dataflow.v1b3
Assembly: Google.Apis.Dataflow.v1b3.dll
Syntax
public class ProjectsResource.LocationsResource.TemplatesResource
Constructors
TemplatesResource(IClientService)
Constructs a new resource.
Declaration
public TemplatesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(CreateJobFromTemplateRequest, string, 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.LocationsResource.TemplatesResource.CreateRequest Create(CreateJobFromTemplateRequest body, string projectId, string location)
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. |
| string | location | The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.TemplatesResource.CreateRequest |
Get(string, 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.LocationsResource.TemplatesResource.GetRequest Get(string projectId, string location)
Parameters
| Type | Name | Description |
|---|---|---|
| string | projectId | Required. The ID of the Cloud Platform project that the job belongs to. |
| string | location | The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.TemplatesResource.GetRequest |
Launch(LaunchTemplateParameters, string, 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.LocationsResource.TemplatesResource.LaunchRequest Launch(LaunchTemplateParameters body, string projectId, string location)
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. |
| string | location | The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.TemplatesResource.LaunchRequest |