@Generated("by gapic-generator-java")
Package com.google.cloud.run.v2
The interfaces provided are listed below, along with usage samples.
======================= ExecutionsClient =======================
Service Description: Cloud Run Execution Control Plane API.
Sample for ExecutionsClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]");
Execution response = executionsClient.getExecution(name);
}
======================= JobsClient =======================
Service Description: Cloud Run Job Control Plane API.
Sample for JobsClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (JobsClient jobsClient = JobsClient.create()) {
JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
Job response = jobsClient.getJob(name);
}
======================= RevisionsClient =======================
Service Description: Cloud Run Revision Control Plane API.
Sample for RevisionsClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (RevisionsClient revisionsClient = RevisionsClient.create()) {
RevisionName name = RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]");
Revision response = revisionsClient.getRevision(name);
}
======================= ServicesClient =======================
Service Description: Cloud Run Service Control Plane API
Sample for ServicesClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ServicesClient servicesClient = ServicesClient.create()) {
ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
Service response = servicesClient.getService(name);
}
======================= TasksClient =======================
Service Description: Cloud Run Task Control Plane API.
Sample for TasksClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TasksClient tasksClient = TasksClient.create()) {
TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]");
Task response = tasksClient.getTask(name);
}
-
Class Summary Class Description BinaryAuthorization Settings for Binary Authorization feature.BinaryAuthorization.Builder Settings for Binary Authorization feature.CloudSqlInstance Represents a set of Cloud SQL instances.CloudSqlInstance.Builder Represents a set of Cloud SQL instances.Condition Defines a status condition for a resource.Condition.Builder Defines a status condition for a resource.ConditionProto Container A single application container.Container.Builder A single application container.ContainerPort ContainerPort represents a network port in a single container.ContainerPort.Builder ContainerPort represents a network port in a single container.CreateJobRequest Request message for creating a Job.CreateJobRequest.Builder Request message for creating a Job.CreateServiceRequest Request message for creating a Service.CreateServiceRequest.Builder Request message for creating a Service.DeleteExecutionRequest Request message for deleting an Execution.DeleteExecutionRequest.Builder Request message for deleting an Execution.DeleteJobRequest Request message to delete a Job by its full name.DeleteJobRequest.Builder Request message to delete a Job by its full name.DeleteRevisionRequest Request message for deleting a retired Revision.DeleteRevisionRequest.Builder Request message for deleting a retired Revision.DeleteServiceRequest Request message to delete a Service by its full name.DeleteServiceRequest.Builder Request message to delete a Service by its full name.EnvVar EnvVar represents an environment variable present in a Container.EnvVar.Builder EnvVar represents an environment variable present in a Container.EnvVarSource EnvVarSource represents a source for the value of an EnvVar.EnvVarSource.Builder EnvVarSource represents a source for the value of an EnvVar.Execution Execution represents the configuration of a single execution.Execution.Builder Execution represents the configuration of a single execution.ExecutionName ExecutionName.Builder Builder for projects/{project}/locations/{location}/jobs/{job}/executions/{execution}.ExecutionProto ExecutionReference Reference to an Execution.ExecutionReference.Builder Reference to an Execution.ExecutionsClient Service Description: Cloud Run Execution Control Plane API.ExecutionsClient.ListExecutionsFixedSizeCollection ExecutionsClient.ListExecutionsPage ExecutionsClient.ListExecutionsPagedResponse ExecutionsGrpc Cloud Run Execution Control Plane API.ExecutionsGrpc.ExecutionsBlockingStub A stub to allow clients to do synchronous rpc calls to service Executions.ExecutionsGrpc.ExecutionsFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Executions.ExecutionsGrpc.ExecutionsImplBase Base class for the server implementation of the service Executions.ExecutionsGrpc.ExecutionsStub A stub to allow clients to do asynchronous rpc calls to service Executions.ExecutionsSettings Settings class to configure an instance ofExecutionsClient
.ExecutionsSettings.Builder Builder for ExecutionsSettings.ExecutionTemplate ExecutionTemplate describes the data an execution should have when created from a template.ExecutionTemplate.Builder ExecutionTemplate describes the data an execution should have when created from a template.ExecutionTemplateProto GetExecutionRequest Request message for obtaining a Execution by its full name.GetExecutionRequest.Builder Request message for obtaining a Execution by its full name.GetJobRequest Request message for obtaining a Job by its full name.GetJobRequest.Builder Request message for obtaining a Job by its full name.GetRevisionRequest Request message for obtaining a Revision by its full name.GetRevisionRequest.Builder Request message for obtaining a Revision by its full name.GetServiceRequest Request message for obtaining a Service by its full name.GetServiceRequest.Builder Request message for obtaining a Service by its full name.GetTaskRequest Request message for obtaining a Task by its full name.GetTaskRequest.Builder Request message for obtaining a Task by its full name.GRPCAction GRPCAction describes an action involving a GRPC port.GRPCAction.Builder GRPCAction describes an action involving a GRPC port.HTTPGetAction HTTPGetAction describes an action based on HTTP Get requests.HTTPGetAction.Builder HTTPGetAction describes an action based on HTTP Get requests.HTTPHeader HTTPHeader describes a custom header to be used in HTTP probesHTTPHeader.Builder HTTPHeader describes a custom header to be used in HTTP probesJob Job represents the configuration of a single job, which references a container image that is run to completion.Job.Builder Job represents the configuration of a single job, which references a container image that is run to completion.JobName JobName.Builder Builder for projects/{project}/locations/{location}/jobs/{job}.JobProto JobsClient Service Description: Cloud Run Job Control Plane API.JobsClient.ListJobsFixedSizeCollection JobsClient.ListJobsPage JobsClient.ListJobsPagedResponse JobsGrpc Cloud Run Job Control Plane API.JobsGrpc.JobsBlockingStub A stub to allow clients to do synchronous rpc calls to service Jobs.JobsGrpc.JobsFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Jobs.JobsGrpc.JobsImplBase Base class for the server implementation of the service Jobs.JobsGrpc.JobsStub A stub to allow clients to do asynchronous rpc calls to service Jobs.JobsSettings Settings class to configure an instance ofJobsClient
.JobsSettings.Builder Builder for JobsSettings.K8sMinProto ListExecutionsRequest Request message for retrieving a list of Executions.ListExecutionsRequest.Builder Request message for retrieving a list of Executions.ListExecutionsResponse Response message containing a list of Executions.ListExecutionsResponse.Builder Response message containing a list of Executions.ListJobsRequest Request message for retrieving a list of Jobs.ListJobsRequest.Builder Request message for retrieving a list of Jobs.ListJobsResponse Response message containing a list of Jobs.ListJobsResponse.Builder Response message containing a list of Jobs.ListRevisionsRequest Request message for retrieving a list of Revisions.ListRevisionsRequest.Builder Request message for retrieving a list of Revisions.ListRevisionsResponse Response message containing a list of Revisions.ListRevisionsResponse.Builder Response message containing a list of Revisions.ListServicesRequest Request message for retrieving a list of Services.ListServicesRequest.Builder Request message for retrieving a list of Services.ListServicesResponse Response message containing a list of Services.ListServicesResponse.Builder Response message containing a list of Services.ListTasksRequest Request message for retrieving a list of Tasks.ListTasksRequest.Builder Request message for retrieving a list of Tasks.ListTasksResponse Response message containing a list of Tasks.ListTasksResponse.Builder Response message containing a list of Tasks.LocationName LocationName.Builder Builder for projects/{project}/locations/{location}.Probe Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.Probe.Builder Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.ResourceRequirements ResourceRequirements describes the compute resource requirements.ResourceRequirements.Builder ResourceRequirements describes the compute resource requirements.Revision A Revision is an immutable snapshot of code and configuration.Revision.Builder A Revision is an immutable snapshot of code and configuration.RevisionName RevisionName.Builder Builder for projects/{project}/locations/{location}/services/{service}/revisions/{revision}.RevisionProto RevisionScaling Settings for revision-level scaling settings.RevisionScaling.Builder Settings for revision-level scaling settings.RevisionsClient Service Description: Cloud Run Revision Control Plane API.RevisionsClient.ListRevisionsFixedSizeCollection RevisionsClient.ListRevisionsPage RevisionsClient.ListRevisionsPagedResponse RevisionsGrpc Cloud Run Revision Control Plane API.RevisionsGrpc.RevisionsBlockingStub A stub to allow clients to do synchronous rpc calls to service Revisions.RevisionsGrpc.RevisionsFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Revisions.RevisionsGrpc.RevisionsImplBase Base class for the server implementation of the service Revisions.RevisionsGrpc.RevisionsStub A stub to allow clients to do asynchronous rpc calls to service Revisions.RevisionsSettings Settings class to configure an instance ofRevisionsClient
.RevisionsSettings.Builder Builder for RevisionsSettings.RevisionTemplate RevisionTemplate describes the data a revision should have when created from a template.RevisionTemplate.Builder RevisionTemplate describes the data a revision should have when created from a template.RevisionTemplateProto RunJobRequest Request message to create a new Execution of a Job.RunJobRequest.Builder Request message to create a new Execution of a Job.SecretKeySelector SecretEnvVarSource represents a source for the value of an EnvVar.SecretKeySelector.Builder SecretEnvVarSource represents a source for the value of an EnvVar.SecretVolumeSource The secret's value will be presented as the content of a file whose name is defined in the item path.SecretVolumeSource.Builder The secret's value will be presented as the content of a file whose name is defined in the item path.Service Service acts as a top-level container that manages a set of configurations and revision templates which implement a network service.Service.Builder Service acts as a top-level container that manages a set of configurations and revision templates which implement a network service.ServiceName ServiceName.Builder Builder for projects/{project}/locations/{location}/services/{service}.ServiceProto ServicesClient Service Description: Cloud Run Service Control Plane APIServicesClient.ListServicesFixedSizeCollection ServicesClient.ListServicesPage ServicesClient.ListServicesPagedResponse ServicesGrpc Cloud Run Service Control Plane APIServicesGrpc.ServicesBlockingStub A stub to allow clients to do synchronous rpc calls to service Services.ServicesGrpc.ServicesFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Services.ServicesGrpc.ServicesImplBase Base class for the server implementation of the service Services.ServicesGrpc.ServicesStub A stub to allow clients to do asynchronous rpc calls to service Services.ServicesSettings Settings class to configure an instance ofServicesClient
.ServicesSettings.Builder Builder for ServicesSettings.Task Task represents a single run of a container to completion.Task.Builder Task represents a single run of a container to completion.TaskAttemptResult Result of a task attempt.TaskAttemptResult.Builder Result of a task attempt.TaskName TaskName.Builder Builder for projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}.TaskProto TasksClient Service Description: Cloud Run Task Control Plane API.TasksClient.ListTasksFixedSizeCollection TasksClient.ListTasksPage TasksClient.ListTasksPagedResponse TasksGrpc Cloud Run Task Control Plane API.TasksGrpc.TasksBlockingStub A stub to allow clients to do synchronous rpc calls to service Tasks.TasksGrpc.TasksFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Tasks.TasksGrpc.TasksImplBase Base class for the server implementation of the service Tasks.TasksGrpc.TasksStub A stub to allow clients to do asynchronous rpc calls to service Tasks.TasksSettings Settings class to configure an instance ofTasksClient
.TasksSettings.Builder Builder for TasksSettings.TaskTemplate TaskTemplate describes the data a task should have when created from a template.TaskTemplate.Builder TaskTemplate describes the data a task should have when created from a template.TaskTemplateProto TCPSocketAction TCPSocketAction describes an action based on opening a socketTCPSocketAction.Builder TCPSocketAction describes an action based on opening a socketTrafficTarget Holds a single traffic routing entry for the Service.TrafficTarget.Builder Holds a single traffic routing entry for the Service.TrafficTargetProto TrafficTargetStatus Represents the observed state of a single `TrafficTarget` entry.TrafficTargetStatus.Builder Represents the observed state of a single `TrafficTarget` entry.UpdateJobRequest Request message for updating a Job.UpdateJobRequest.Builder Request message for updating a Job.UpdateServiceRequest Request message for updating a service.UpdateServiceRequest.Builder Request message for updating a service.VendorSettingsProto VersionToPath VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.VersionToPath.Builder VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.Volume Volume represents a named volume in a container.Volume.Builder Volume represents a named volume in a container.VolumeMount VolumeMount describes a mounting of a Volume within a container.VolumeMount.Builder VolumeMount describes a mounting of a Volume within a container.VpcAccess VPC Access settings.VpcAccess.Builder VPC Access settings. -
Enum Summary Enum Description BinaryAuthorization.BinauthzMethodCase Condition.CommonReason Reasons common to all types of conditions.Condition.ExecutionReason Reasons specific to Execution resource.Condition.ReasonsCase Condition.RevisionReason Reasons specific to Revision resource.Condition.Severity Represents the severity of the condition failures.Condition.State Represents the possible Condition states.EncryptionKeyRevocationAction Specifies behavior if an encryption key used by a resource is revoked.EnvVar.ValuesCase ExecutionEnvironment Alternatives for execution environments.IngressTraffic Allowed ingress traffic for the Container.Probe.ProbeTypeCase TaskTemplate.RetriesCase TrafficTargetAllocationType The type of instance allocation.Volume.VolumeTypeCase VpcAccess.VpcEgress Egress options for VPC access.