public abstract class JobServiceClient
Reference documentation and code samples for the Google Cloud Talent Solution v4 API class JobServiceClient.
JobService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Talent.V4Assembly
Google.Cloud.Talent.V4.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 |
BatchDeleteJobsOperationsClient
public virtual OperationsClient BatchDeleteJobsOperationsClient { get; }
The long-running operations client for BatchDeleteJobs
.
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 |
IReadOnlyListstring |
The default JobService scopes are:
GrpcClient
public virtual JobService.JobServiceClient GrpcClient { get; }
The underlying gRPC JobService client
Property Value | |
---|---|
Type | Description |
JobServiceJobServiceClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
BatchCreateJobs(BatchCreateJobsRequest, CallSettings)
public virtual Operation<BatchCreateJobsResponse, 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 |
OperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(request);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobs(TenantName, IEnumerable<Job>, CallSettings)
public virtual Operation<BatchCreateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be created. A maximum of 200 jobs can be created in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobs(string, IEnumerable<Job>, CallSettings)
public virtual Operation<BatchCreateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be created. A maximum of 200 jobs can be created in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(BatchCreateJobsRequest, CallSettings)
public virtual Task<Operation<BatchCreateJobsResponse, 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 |
TaskOperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(BatchCreateJobsRequest, CancellationToken)
public virtual Task<Operation<BatchCreateJobsResponse, 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 |
TaskOperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<BatchCreateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be created. A maximum of 200 jobs can be created in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<BatchCreateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be created. A maximum of 200 jobs can be created in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(string, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<BatchCreateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be created. A maximum of 200 jobs can be created in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchCreateJobsAsync(string, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<BatchCreateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be created. A maximum of 200 jobs can be created in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchCreateJobsResponseBatchOperationMetadata |
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<BatchCreateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchCreateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchCreateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchCreateJobsResponse 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<BatchCreateJobsResponse, 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
BatchCreateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobs(BatchDeleteJobsRequest, CallSettings)
public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> BatchDeleteJobs(BatchDeleteJobsRequest request, CallSettings callSettings = null)
Begins executing a batch delete jobs operation.
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 |
OperationBatchDeleteJobsResponseBatchOperationMetadata |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
BatchDeleteJobsRequest request = new BatchDeleteJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
JobNames =
{
JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
},
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchDeleteJobs(request);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchDeleteJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobs(TenantName, IEnumerable<JobName>, CallSettings)
public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> BatchDeleteJobs(TenantName parent, IEnumerable<JobName> names, CallSettings callSettings = null)
Begins executing a batch delete 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/tenants/bar". The parent of all of the jobs specified in |
names |
IEnumerableJobName The names of the jobs to delete. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". A maximum of 200 jobs can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchDeleteJobsResponseBatchOperationMetadata |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<JobName> names = new JobName[]
{
JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchDeleteJobs(parent, names);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchDeleteJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobs(string, IEnumerable<string>, CallSettings)
public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> BatchDeleteJobs(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Begins executing a batch delete 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/tenants/bar". The parent of all of the jobs specified in |
names |
IEnumerablestring The names of the jobs to delete. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". A maximum of 200 jobs can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchDeleteJobsResponseBatchOperationMetadata |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<string> names = new string[]
{
"projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]",
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchDeleteJobs(parent, names);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchDeleteJobs(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobsAsync(BatchDeleteJobsRequest, CallSettings)
public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CallSettings callSettings = null)
Begins executing a batch delete jobs operation.
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 |
TaskOperationBatchDeleteJobsResponseBatchOperationMetadata |
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]"),
JobNames =
{
JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
},
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobsAsync(BatchDeleteJobsRequest, CancellationToken)
public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(BatchDeleteJobsRequest request, CancellationToken cancellationToken)
Begins executing a batch delete jobs operation.
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 |
TaskOperationBatchDeleteJobsResponseBatchOperationMetadata |
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]"),
JobNames =
{
JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
},
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobsAsync(TenantName, IEnumerable<JobName>, CallSettings)
public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(TenantName parent, IEnumerable<JobName> names, CallSettings callSettings = null)
Begins executing a batch delete 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/tenants/bar". The parent of all of the jobs specified in |
names |
IEnumerableJobName The names of the jobs to delete. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". A maximum of 200 jobs can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchDeleteJobsResponseBatchOperationMetadata |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<JobName> names = new JobName[]
{
JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobsAsync(TenantName, IEnumerable<JobName>, CancellationToken)
public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(TenantName parent, IEnumerable<JobName> names, CancellationToken cancellationToken)
Begins executing a batch delete 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/tenants/bar". The parent of all of the jobs specified in |
names |
IEnumerableJobName The names of the jobs to delete. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". A maximum of 200 jobs can be deleted in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchDeleteJobsResponseBatchOperationMetadata |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
IEnumerable<JobName> names = new JobName[]
{
JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobsAsync(string, IEnumerable<string>, CallSettings)
public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Begins executing a batch delete 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/tenants/bar". The parent of all of the jobs specified in |
names |
IEnumerablestring The names of the jobs to delete. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". A maximum of 200 jobs can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchDeleteJobsResponseBatchOperationMetadata |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<string> names = new string[]
{
"projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]",
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchDeleteJobsAsync(string, IEnumerable<string>, CancellationToken)
public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> BatchDeleteJobsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Begins executing a batch delete 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/tenants/bar". The parent of all of the jobs specified in |
names |
IEnumerablestring The names of the jobs to delete. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". A maximum of 200 jobs can be deleted in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchDeleteJobsResponseBatchOperationMetadata |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
IEnumerable<string> names = new string[]
{
"projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]",
};
// Make the request
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchDeleteJobsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<BatchDeleteJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchDeleteJobsResponse 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<BatchDeleteJobsResponse, BatchOperationMetadata> retrievedResponse = await jobServiceClient.PollOnceBatchDeleteJobsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchDeleteJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobs(BatchUpdateJobsRequest, CallSettings)
public virtual Operation<BatchUpdateJobsResponse, 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 |
OperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(request);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobs(TenantName, IEnumerable<Job>, CallSettings)
public virtual Operation<BatchUpdateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobs(string, IEnumerable<Job>, CallSettings)
public virtual Operation<BatchUpdateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(BatchUpdateJobsRequest, CallSettings)
public virtual Task<Operation<BatchUpdateJobsResponse, 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 |
TaskOperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(BatchUpdateJobsRequest, CancellationToken)
public virtual Task<Operation<BatchUpdateJobsResponse, 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 |
TaskOperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<BatchUpdateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(TenantName, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<BatchUpdateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(string, IEnumerable<Job>, CallSettings)
public virtual Task<Operation<BatchUpdateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateJobsAsync(string, IEnumerable<Job>, CancellationToken)
public virtual Task<Operation<BatchUpdateJobsResponse, 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/tenants/bar". |
jobs |
IEnumerableJob Required. The jobs to be updated. A maximum of 200 jobs can be updated in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchUpdateJobsResponseBatchOperationMetadata |
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<BatchUpdateJobsResponse, BatchOperationMetadata> response = await jobServiceClient.BatchUpdateJobsAsync(parent, jobs);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateJobsResponse, BatchOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateJobsResponse 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<BatchUpdateJobsResponse, 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
BatchUpdateJobsResponse 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)
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 |
TaskJobServiceClient |
The task representing the created JobServiceClient. |
CreateJob(CreateJobRequest, CallSettings)
public virtual Job CreateJob(CreateJobRequest request, CallSettings callSettings = null)
Creates a new job.
Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
CreateJobRequest 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 |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Job = new Job(),
};
// Make the request
Job response = jobServiceClient.CreateJob(request);
CreateJob(TenantName, Job, CallSettings)
public virtual Job CreateJob(TenantName 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.
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/tenants/bar". |
job |
Job Required. The Job to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Job job = new Job();
// Make the request
Job response = jobServiceClient.CreateJob(parent, job);
CreateJob(string, Job, CallSettings)
public virtual Job CreateJob(string 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.
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/tenants/bar". |
job |
Job Required. The Job to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Job job = new Job();
// Make the request
Job response = jobServiceClient.CreateJob(parent, job);
CreateJobAsync(CreateJobRequest, CallSettings)
public virtual Task<Job> CreateJobAsync(CreateJobRequest request, CallSettings callSettings = null)
Creates a new job.
Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
CreateJobRequest 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 |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Job = new Job(),
};
// Make the request
Job response = await jobServiceClient.CreateJobAsync(request);
CreateJobAsync(CreateJobRequest, CancellationToken)
public virtual Task<Job> CreateJobAsync(CreateJobRequest request, CancellationToken cancellationToken)
Creates a new job.
Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
CreateJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Job = new Job(),
};
// Make the request
Job response = await jobServiceClient.CreateJobAsync(request);
CreateJobAsync(TenantName, Job, CallSettings)
public virtual Task<Job> CreateJobAsync(TenantName 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.
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/tenants/bar". |
job |
Job Required. The Job to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);
CreateJobAsync(TenantName, Job, CancellationToken)
public virtual Task<Job> CreateJobAsync(TenantName parent, Job job, CancellationToken cancellationToken)
Creates a new job.
Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
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/tenants/bar". |
job |
Job Required. The Job to be created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);
CreateJobAsync(string, Job, CallSettings)
public virtual Task<Job> CreateJobAsync(string 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.
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/tenants/bar". |
job |
Job Required. The Job to be created. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);
CreateJobAsync(string, Job, CancellationToken)
public virtual Task<Job> CreateJobAsync(string parent, Job job, CancellationToken cancellationToken)
Creates a new job.
Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
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/tenants/bar". |
job |
Job Required. The Job to be created. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Job job = new Job();
// Make the request
Job response = await jobServiceClient.CreateJobAsync(parent, job);
DeleteJob(DeleteJobRequest, CallSettings)
public virtual void DeleteJob(DeleteJobRequest request, CallSettings callSettings = null)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
DeleteJobRequest 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)
DeleteJobRequest request = new DeleteJobRequest
{
JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
jobServiceClient.DeleteJob(request);
DeleteJob(JobName, CallSettings)
public virtual void DeleteJob(JobName name, CallSettings callSettings = null)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
name |
JobName Required. The resource name of the job to be deleted. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
jobServiceClient.DeleteJob(name);
DeleteJob(string, CallSettings)
public virtual void DeleteJob(string name, CallSettings callSettings = null)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job to be deleted. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
jobServiceClient.DeleteJob(name);
DeleteJobAsync(DeleteJobRequest, CallSettings)
public virtual Task DeleteJobAsync(DeleteJobRequest request, CallSettings callSettings = null)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
DeleteJobRequest 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)
DeleteJobRequest request = new DeleteJobRequest
{
JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
await jobServiceClient.DeleteJobAsync(request);
DeleteJobAsync(DeleteJobRequest, CancellationToken)
public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
DeleteJobRequest 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)
DeleteJobRequest request = new DeleteJobRequest
{
JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
await jobServiceClient.DeleteJobAsync(request);
DeleteJobAsync(JobName, CallSettings)
public virtual Task DeleteJobAsync(JobName name, CallSettings callSettings = null)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
name |
JobName Required. The resource name of the job to be deleted. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
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)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
await jobServiceClient.DeleteJobAsync(name);
DeleteJobAsync(JobName, CancellationToken)
public virtual Task DeleteJobAsync(JobName name, CancellationToken cancellationToken)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
name |
JobName Required. The resource name of the job to be deleted. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
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)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
await jobServiceClient.DeleteJobAsync(name);
DeleteJobAsync(string, CallSettings)
public virtual Task DeleteJobAsync(string name, CallSettings callSettings = null)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job to be deleted. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
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 name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
await jobServiceClient.DeleteJobAsync(name);
DeleteJobAsync(string, CancellationToken)
public virtual Task DeleteJobAsync(string name, CancellationToken cancellationToken)
Deletes the specified job.
Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job to be deleted. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
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 name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
await jobServiceClient.DeleteJobAsync(name);
GetJob(GetJobRequest, CallSettings)
public virtual Job GetJob(GetJobRequest request, CallSettings callSettings = null)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
request |
GetJobRequest 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 |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Job response = jobServiceClient.GetJob(request);
GetJob(JobName, CallSettings)
public virtual Job GetJob(JobName name, CallSettings callSettings = null)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
name |
JobName Required. The resource name of the job to retrieve. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
Job response = jobServiceClient.GetJob(name);
GetJob(string, CallSettings)
public virtual Job GetJob(string name, CallSettings callSettings = null)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job to retrieve. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
Job response = jobServiceClient.GetJob(name);
GetJobAsync(GetJobRequest, CallSettings)
public virtual Task<Job> GetJobAsync(GetJobRequest request, CallSettings callSettings = null)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
request |
GetJobRequest 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 |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Job response = await jobServiceClient.GetJobAsync(request);
GetJobAsync(GetJobRequest, CancellationToken)
public virtual Task<Job> GetJobAsync(GetJobRequest request, CancellationToken cancellationToken)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
request |
GetJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
JobName = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]"),
};
// Make the request
Job response = await jobServiceClient.GetJobAsync(request);
GetJobAsync(JobName, CallSettings)
public virtual Task<Job> GetJobAsync(JobName name, CallSettings callSettings = null)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
name |
JobName Required. The resource name of the job to retrieve. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);
GetJobAsync(JobName, CancellationToken)
public virtual Task<Job> GetJobAsync(JobName name, CancellationToken cancellationToken)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
name |
JobName Required. The resource name of the job to retrieve. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectTenantJob("[PROJECT]", "[TENANT]", "[JOB]");
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);
GetJobAsync(string, CallSettings)
public virtual Task<Job> GetJobAsync(string name, CallSettings callSettings = null)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job to retrieve. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);
GetJobAsync(string, CancellationToken)
public virtual Task<Job> GetJobAsync(string name, CancellationToken cancellationToken)
Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job to retrieve. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For example, "projects/foo/tenants/bar/jobs/baz". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/jobs/[JOB]";
// Make the request
Job response = await jobServiceClient.GetJobAsync(name);
ListJobs(ListJobsRequest, CallSettings)
public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(ListJobsRequest request, CallSettings callSettings = null)
Lists jobs by filter.
Parameters | |
---|---|
Name | Description |
request |
ListJobsRequest 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 |
PagedEnumerableListJobsResponseJob |
A pageable sequence of Job resources. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
ListJobsRequest request = new ListJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Filter = "",
JobView = JobView.Unspecified,
};
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Job item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Job> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Job item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobs(TenantName, string, string, int?, CallSettings)
public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(TenantName parent, string filter, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs 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/tenants/bar". |
filter |
string Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND The fields eligible for filtering are:
At least one of Sample Query:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListJobsResponseJob |
A pageable sequence of Job resources. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobs(parent, filter);
// Iterate over all response items, lazily performing RPCs as required
foreach (Job item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Job> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Job item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobs(string, string, string, int?, CallSettings)
public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(string parent, string filter, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs 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/tenants/bar". |
filter |
string Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND The fields eligible for filtering are:
At least one of Sample Query:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListJobsResponseJob |
A pageable sequence of Job resources. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobs(parent, filter);
// Iterate over all response items, lazily performing RPCs as required
foreach (Job item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Job> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Job item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobsAsync(ListJobsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(ListJobsRequest request, CallSettings callSettings = null)
Lists jobs by filter.
Parameters | |
---|---|
Name | Description |
request |
ListJobsRequest 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 |
PagedAsyncEnumerableListJobsResponseJob |
A pageable asynchronous sequence of Job resources. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
ListJobsRequest request = new ListJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
Filter = "",
JobView = JobView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Job> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Job item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobsAsync(TenantName, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(TenantName parent, string filter, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs 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/tenants/bar". |
filter |
string Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND The fields eligible for filtering are:
At least one of Sample Query:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListJobsResponseJob |
A pageable asynchronous sequence of Job resources. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
string filter = "";
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobsAsync(parent, filter);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Job> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Job item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListJobsAsync(string, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(string parent, string filter, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs 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/tenants/bar". |
filter |
string Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND The fields eligible for filtering are:
At least one of Sample Query:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListJobsResponseJob |
A pageable asynchronous sequence of Job resources. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
string filter = "";
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = jobServiceClient.ListJobsAsync(parent, filter);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Job> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Job item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceBatchCreateJobs(string, CallSettings)
public virtual Operation<BatchCreateJobsResponse, BatchOperationMetadata> PollOnceBatchCreateJobs(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of BatchCreateJobs
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchCreateJobsResponseBatchOperationMetadata |
The result of polling the operation. |
PollOnceBatchCreateJobsAsync(string, CallSettings)
public virtual Task<Operation<BatchCreateJobsResponse, BatchOperationMetadata>> PollOnceBatchCreateJobsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
BatchCreateJobs
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchCreateJobsResponseBatchOperationMetadata |
A task representing the result of polling the operation. |
PollOnceBatchDeleteJobs(string, CallSettings)
public virtual Operation<BatchDeleteJobsResponse, BatchOperationMetadata> PollOnceBatchDeleteJobs(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of BatchDeleteJobs
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchDeleteJobsResponseBatchOperationMetadata |
The result of polling the operation. |
PollOnceBatchDeleteJobsAsync(string, CallSettings)
public virtual Task<Operation<BatchDeleteJobsResponse, BatchOperationMetadata>> PollOnceBatchDeleteJobsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
BatchDeleteJobs
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchDeleteJobsResponseBatchOperationMetadata |
A task representing the result of polling the operation. |
PollOnceBatchUpdateJobs(string, CallSettings)
public virtual Operation<BatchUpdateJobsResponse, BatchOperationMetadata> PollOnceBatchUpdateJobs(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of BatchUpdateJobs
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationBatchUpdateJobsResponseBatchOperationMetadata |
The result of polling the operation. |
PollOnceBatchUpdateJobsAsync(string, CallSettings)
public virtual Task<Operation<BatchUpdateJobsResponse, BatchOperationMetadata>> PollOnceBatchUpdateJobsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
BatchUpdateJobs
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationBatchUpdateJobsResponseBatchOperationMetadata |
A task representing the result of polling the operation. |
SearchJobs(SearchJobsRequest, CallSettings)
public virtual SearchJobsResponse SearchJobs(SearchJobsRequest request, CallSettings callSettings = null)
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.
Parameters | |
---|---|
Name | Description |
request |
SearchJobsRequest 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 |
SearchJobsResponse |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
RequestMetadata = new RequestMetadata(),
JobQuery = new JobQuery(),
EnableBroadening = false,
HistogramQueries =
{
new HistogramQuery(),
},
JobView = JobView.Unspecified,
Offset = 0,
MaxPageSize = 0,
PageToken = "",
OrderBy = "",
DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = jobServiceClient.SearchJobs(request);
SearchJobsAsync(SearchJobsRequest, CallSettings)
public virtual Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, CallSettings callSettings = null)
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.
Parameters | |
---|---|
Name | Description |
request |
SearchJobsRequest 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 |
TaskSearchJobsResponse |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
RequestMetadata = new RequestMetadata(),
JobQuery = new JobQuery(),
EnableBroadening = false,
HistogramQueries =
{
new HistogramQuery(),
},
JobView = JobView.Unspecified,
Offset = 0,
MaxPageSize = 0,
PageToken = "",
OrderBy = "",
DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsAsync(request);
SearchJobsAsync(SearchJobsRequest, CancellationToken)
public virtual Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, CancellationToken cancellationToken)
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.
Parameters | |
---|---|
Name | Description |
request |
SearchJobsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSearchJobsResponse |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
RequestMetadata = new RequestMetadata(),
JobQuery = new JobQuery(),
EnableBroadening = false,
HistogramQueries =
{
new HistogramQuery(),
},
JobView = JobView.Unspecified,
Offset = 0,
MaxPageSize = 0,
PageToken = "",
OrderBy = "",
DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsAsync(request);
SearchJobsForAlert(SearchJobsRequest, CallSettings)
public virtual SearchJobsResponse SearchJobsForAlert(SearchJobsRequest request, CallSettings callSettings = null)
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.
Parameters | |
---|---|
Name | Description |
request |
SearchJobsRequest 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 |
SearchJobsResponse |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
RequestMetadata = new RequestMetadata(),
JobQuery = new JobQuery(),
EnableBroadening = false,
HistogramQueries =
{
new HistogramQuery(),
},
JobView = JobView.Unspecified,
Offset = 0,
MaxPageSize = 0,
PageToken = "",
OrderBy = "",
DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = jobServiceClient.SearchJobsForAlert(request);
SearchJobsForAlertAsync(SearchJobsRequest, CallSettings)
public virtual Task<SearchJobsResponse> SearchJobsForAlertAsync(SearchJobsRequest request, CallSettings callSettings = null)
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.
Parameters | |
---|---|
Name | Description |
request |
SearchJobsRequest 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 |
TaskSearchJobsResponse |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
RequestMetadata = new RequestMetadata(),
JobQuery = new JobQuery(),
EnableBroadening = false,
HistogramQueries =
{
new HistogramQuery(),
},
JobView = JobView.Unspecified,
Offset = 0,
MaxPageSize = 0,
PageToken = "",
OrderBy = "",
DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsForAlertAsync(request);
SearchJobsForAlertAsync(SearchJobsRequest, CancellationToken)
public virtual Task<SearchJobsResponse> SearchJobsForAlertAsync(SearchJobsRequest request, CancellationToken cancellationToken)
Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers.
This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.
Parameters | |
---|---|
Name | Description |
request |
SearchJobsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSearchJobsResponse |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
SearchJobsRequest request = new SearchJobsRequest
{
ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
SearchMode = SearchJobsRequest.Types.SearchMode.Unspecified,
RequestMetadata = new RequestMetadata(),
JobQuery = new JobQuery(),
EnableBroadening = false,
HistogramQueries =
{
new HistogramQuery(),
},
JobView = JobView.Unspecified,
Offset = 0,
MaxPageSize = 0,
PageToken = "",
OrderBy = "",
DiversificationLevel = SearchJobsRequest.Types.DiversificationLevel.Unspecified,
CustomRankingInfo = new SearchJobsRequest.Types.CustomRankingInfo(),
KeywordMatchMode = SearchJobsRequest.Types.KeywordMatchMode.Unspecified,
};
// Make the request
SearchJobsResponse response = await jobServiceClient.SearchJobsForAlertAsync(request);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateJob(Job, FieldMask, CallSettings)
public virtual Job UpdateJob(Job job, FieldMask updateMask, CallSettings callSettings = null)
Updates specified job.
Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
job |
Job Required. The Job to be updated. |
updateMask |
FieldMask Strongly recommended for the best service experience. If [update_mask][google.cloud.talent.v4.UpdateJobRequest.update_mask] is provided, only the specified fields in [job][google.cloud.talent.v4.UpdateJobRequest.job] are updated. Otherwise all the fields are updated. A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4.Job] are supported. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
Job job = new Job();
FieldMask updateMask = new FieldMask();
// Make the request
Job response = jobServiceClient.UpdateJob(job, updateMask);
UpdateJob(UpdateJobRequest, CallSettings)
public virtual Job UpdateJob(UpdateJobRequest request, CallSettings callSettings = null)
Updates specified job.
Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
UpdateJobRequest 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 |
Job |
The RPC response. |
// Create client
JobServiceClient jobServiceClient = JobServiceClient.Create();
// Initialize request argument(s)
UpdateJobRequest request = new UpdateJobRequest
{
Job = new Job(),
UpdateMask = new FieldMask(),
};
// Make the request
Job response = jobServiceClient.UpdateJob(request);
UpdateJobAsync(Job, FieldMask, CallSettings)
public virtual Task<Job> UpdateJobAsync(Job job, FieldMask updateMask, CallSettings callSettings = null)
Updates specified job.
Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
job |
Job Required. The Job to be updated. |
updateMask |
FieldMask Strongly recommended for the best service experience. If [update_mask][google.cloud.talent.v4.UpdateJobRequest.update_mask] is provided, only the specified fields in [job][google.cloud.talent.v4.UpdateJobRequest.job] are updated. Otherwise all the fields are updated. A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4.Job] are supported. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
Job job = new Job();
FieldMask updateMask = new FieldMask();
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(job, updateMask);
UpdateJobAsync(Job, FieldMask, CancellationToken)
public virtual Task<Job> UpdateJobAsync(Job job, FieldMask updateMask, CancellationToken cancellationToken)
Updates specified job.
Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
job |
Job Required. The Job to be updated. |
updateMask |
FieldMask Strongly recommended for the best service experience. If [update_mask][google.cloud.talent.v4.UpdateJobRequest.update_mask] is provided, only the specified fields in [job][google.cloud.talent.v4.UpdateJobRequest.job] are updated. Otherwise all the fields are updated. A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4.Job] are supported. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
Job job = new Job();
FieldMask updateMask = new FieldMask();
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(job, updateMask);
UpdateJobAsync(UpdateJobRequest, CallSettings)
public virtual Task<Job> UpdateJobAsync(UpdateJobRequest request, CallSettings callSettings = null)
Updates specified job.
Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
UpdateJobRequest 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 |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateJobRequest request = new UpdateJobRequest
{
Job = new Job(),
UpdateMask = new FieldMask(),
};
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(request);
UpdateJobAsync(UpdateJobRequest, CancellationToken)
public virtual Task<Job> UpdateJobAsync(UpdateJobRequest request, CancellationToken cancellationToken)
Updates specified job.
Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.
Parameters | |
---|---|
Name | Description |
request |
UpdateJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskJob |
A Task containing the RPC response. |
// Create client
JobServiceClient jobServiceClient = await JobServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateJobRequest request = new UpdateJobRequest
{
Job = new Job(),
UpdateMask = new FieldMask(),
};
// Make the request
Job response = await jobServiceClient.UpdateJobAsync(request);