public abstract class JobServiceClient
Reference documentation and code samples for the Google Cloud Talent Solution v4beta1 API class JobServiceClient.
JobService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Talent.V4Beta1Assembly
Google.Cloud.Talent.V4Beta1.dll
Remarks
A service handles job management, including job CRUD, enumeration and search.
Properties
BatchCreateJobsOperationsClient
public virtual OperationsClient BatchCreateJobsOperationsClient { get; }
The long-running operations client for BatchCreateJobs
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
BatchUpdateJobsOperationsClient
public virtual OperationsClient BatchUpdateJobsOperationsClient { get; }
The long-running operations client for BatchUpdateJobs
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the JobService service, which is a host of "jobs.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default JobService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default JobService scopes are:
GrpcClient
public virtual JobService.JobServiceClient GrpcClient { get; }
The underlying gRPC JobService client
Property Value | |
---|---|
Type | Description |
JobService.JobServiceClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
BatchCreateJobs(ProjectName, IEnumerable<Job>, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchCreateJobs(ProjectName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobs(BatchCreateJobsRequest, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchCreateJobs(BatchCreateJobsRequest request, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
request | BatchCreateJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchCreateJobsRequest request = new BatchCreateJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Jobs = { new Job(), },
};
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(request);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobs(TenantName, IEnumerable<Job>, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchCreateJobs(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobs(String, IEnumerable<Job>, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchCreateJobs(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(ProjectName, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(ProjectName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(ProjectName, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(ProjectName parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(BatchCreateJobsRequest, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(BatchCreateJobsRequest request, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
request | BatchCreateJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateJobsRequest request = new BatchCreateJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Jobs = { new Job(), },
};
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(BatchCreateJobsRequest, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(BatchCreateJobsRequest request, CancellationToken cancellationToken)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
request | BatchCreateJobsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateJobsRequest request = new BatchCreateJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Jobs = { new Job(), },
};
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(String, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(String, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchCreateJobsAsync(string parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)
Begins executing a batch create jobs operation.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be created. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchCreateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobs(ProjectName, String, CallSettings)
public virtual void BatchDeleteJobs(ProjectName parent, string filter, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string filter = "";
// Make the request
jobServiceClient.BatchDeleteJobs(parent, filter);
BatchDeleteJobs(BatchDeleteJobsRequest, CallSettings)
public virtual void BatchDeleteJobs(BatchDeleteJobsRequest request, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
request | BatchDeleteJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchDeleteJobsRequest request = new BatchDeleteJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Filter = "",
};
// Make the request
jobServiceClient.BatchDeleteJobs(request);
BatchDeleteJobs(TenantName, String, CallSettings)
public virtual void BatchDeleteJobs(TenantName parent, string filter, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
jobServiceClient.BatchDeleteJobs(parent, filter);
BatchDeleteJobs(String, String, CallSettings)
public virtual void BatchDeleteJobs(string parent, string filter, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
jobServiceClient.BatchDeleteJobs(parent, filter);
BatchDeleteJobsAsync(ProjectName, String, CallSettings)
public virtual Task BatchDeleteJobsAsync(ProjectName parent, string filter, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);
BatchDeleteJobsAsync(ProjectName, String, CancellationToken)
public virtual Task BatchDeleteJobsAsync(ProjectName parent, string filter, CancellationToken cancellationToken)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);
BatchDeleteJobsAsync(BatchDeleteJobsRequest, CallSettings)
public virtual Task BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
request | BatchDeleteJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteJobsRequest request = new BatchDeleteJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Filter = "",
};
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(request);
BatchDeleteJobsAsync(BatchDeleteJobsRequest, CancellationToken)
public virtual Task BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CancellationToken cancellationToken)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
request | BatchDeleteJobsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteJobsRequest request = new BatchDeleteJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Filter = "",
};
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(request);
BatchDeleteJobsAsync(TenantName, String, CallSettings)
public virtual Task BatchDeleteJobsAsync(TenantName parent, string filter, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);
BatchDeleteJobsAsync(TenantName, String, CancellationToken)
public virtual Task BatchDeleteJobsAsync(TenantName parent, string filter, CancellationToken cancellationToken)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);
BatchDeleteJobsAsync(String, String, CallSettings)
public virtual Task BatchDeleteJobsAsync(string parent, string filter, CallSettings callSettings = null)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);
BatchDeleteJobsAsync(String, String, CancellationToken)
public virtual Task BatchDeleteJobsAsync(string parent, string filter, CancellationToken cancellationToken)
Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
filter | String Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are:
Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
await jobServiceClient.BatchDeleteJobsAsync(parent, filter);
BatchUpdateJobs(ProjectName, IEnumerable<Job>, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchUpdateJobs(ProjectName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobs(BatchUpdateJobsRequest, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchUpdateJobs(BatchUpdateJobsRequest request, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
request | BatchUpdateJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchUpdateJobsRequest request = new BatchUpdateJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Jobs = { new Job(), },
UpdateMask = new FieldMask(),
};
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(request);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobs(TenantName, IEnumerable<Job>, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchUpdateJobs(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobs(String, IEnumerable<Job>, CallSettings)
public virtual Operation<JobOperationResult, BatchOperationMetadata> BatchUpdateJobs(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<JobOperationResult, BatchOperationMetadata> | The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(ProjectName, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(ProjectName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(ProjectName, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(ProjectName parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(BatchUpdateJobsRequest, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(BatchUpdateJobsRequest request, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
request | BatchUpdateJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateJobsRequest request = new BatchUpdateJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Jobs = { new Job(), },
UpdateMask = new FieldMask(),
};
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(BatchUpdateJobsRequest, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(BatchUpdateJobsRequest request, CancellationToken cancellationToken)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
request | BatchUpdateJobsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateJobsRequest request = new BatchUpdateJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Jobs = { new Job(), },
UpdateMask = new FieldMask(),
};
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(TenantName parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | TenantName Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(String, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(string parent, IEnumerable<Job> jobs, CallSettings callSettings = null)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(String, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<JobOperationResult, BatchOperationMetadata>> BatchUpdateJobsAsync(string parent, IEnumerable<Job> jobs, CancellationToken cancellationToken)
Begins executing a batch update jobs operation.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the tenant under which the job is created. The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo". |
jobs | IEnumerable<Job> Required. The jobs to be updated. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<JobOperationResult, BatchOperationMetadata>> | A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<Job> jobs = new Job[] { new Job(), };
// Make the request
Operation<JobOperationResult, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<JobOperationResult, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
JobOperationResult result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<JobOperationResult, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchUpdateJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
JobOperationResult retrievedResult = retrievedResponse.Result;
}
Create()
public static JobServiceClient Create()
Synchronously creates a JobServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use JobServiceClientBuilder.
Returns | |
---|---|
Type | Description |
JobServiceClient | The created JobServiceClient. |
CreateAsync(CancellationToken)
public static Task<JobServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a JobServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use JobServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<JobServiceClient> | The task representing the created JobServiceClient. |
CreateJob(ProjectName, Job, CallSettings)
public virtual Job CreateJob(ProjectName parent, Job job, CallSettings callSettings = null)
Creates a new job.
Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.