target.apidocs.com.google.api.services.run.v2.CloudRun.Projects.Locations.Services.html Maven / Gradle / Ivy
CloudRun.Projects.Locations.Services (Cloud Run Admin API v2-rev20241025-2.0.0)
com.google.api.services.run.v2
Class CloudRun.Projects.Locations.Services
- java.lang.Object
-
- com.google.api.services.run.v2.CloudRun.Projects.Locations.Services
-
- Enclosing class:
- CloudRun.Projects.Locations
public class CloudRun.Projects.Locations.Services
extends Object
The "services" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
CloudRun.Projects.Locations.Services.Create
class
CloudRun.Projects.Locations.Services.Delete
class
CloudRun.Projects.Locations.Services.Get
class
CloudRun.Projects.Locations.Services.GetIamPolicy
class
CloudRun.Projects.Locations.Services.List
class
CloudRun.Projects.Locations.Services.Patch
class
CloudRun.Projects.Locations.Services.Revisions
The "revisions" collection of methods.
class
CloudRun.Projects.Locations.Services.SetIamPolicy
class
CloudRun.Projects.Locations.Services.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
Services()
-
Method Summary
-
-
Method Detail
-
create
public CloudRun.Projects.Locations.Services.Create create(String parent,
GoogleCloudRunV2Service content)
throws IOException
Creates a new Service in a given project and location.
Create a request for the method "services.create".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The location and project in which this service should be created. Format:
projects/{project}/locations/{location}, where {project} can be project id or number. Only
lowercase characters, digits, and hyphens.
content
- the GoogleCloudRunV2Service
- Returns:
- the request
- Throws:
IOException
-
delete
public CloudRun.Projects.Locations.Services.Delete delete(String name)
throws IOException
Deletes a Service. This will cause the Service to stop serving traffic and will delete all
revisions.
Create a request for the method "services.delete".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The full name of the Service. Format:
projects/{project}/locations/{location}/services/{service}, where {project} can be project
id or number.
- Returns:
- the request
- Throws:
IOException
-
get
public CloudRun.Projects.Locations.Services.Get get(String name)
throws IOException
Gets information about a Service.
Create a request for the method "services.get".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The full name of the Service. Format:
projects/{project}/locations/{location}/services/{service}, where {project} can be project
id or number.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public CloudRun.Projects.Locations.Services.GetIamPolicy getIamPolicy(String resource)
throws IOException
Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This
result does not include any inherited policies.
Create a request for the method "services.getIamPolicy".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
- Returns:
- the request
- Throws:
IOException
-
list
public CloudRun.Projects.Locations.Services.List list(String parent)
throws IOException
Lists Services. Results are sorted by creation time, descending.
Create a request for the method "services.list".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The location and project to list resources on. Location must be a valid Google Cloud
region, and cannot be the "-" wildcard. Format: projects/{project}/locations/{location},
where {project} can be project id or number.
- Returns:
- the request
- Throws:
IOException
-
patch
public CloudRun.Projects.Locations.Services.Patch patch(String name,
GoogleCloudRunV2Service content)
throws IOException
Updates a Service.
Create a request for the method "services.patch".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and
instead composed from CreateServiceRequest.parent and CreateServiceRequest.service_id.
Format: projects/{project}/locations/{location}/services/{service_id}
content
- the GoogleCloudRunV2Service
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public CloudRun.Projects.Locations.Services.SetIamPolicy setIamPolicy(String resource,
GoogleIamV1SetIamPolicyRequest content)
throws IOException
Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.
Create a request for the method "services.setIamPolicy".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy is being specified. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
content
- the GoogleIamV1SetIamPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public CloudRun.Projects.Locations.Services.TestIamPermissions testIamPermissions(String resource,
GoogleIamV1TestIamPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified Project. There are no permissions required
for making this API call.
Create a request for the method "services.testIamPermissions".
This request holds the parameters needed by the run server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy detail is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
content
- the GoogleIamV1TestIamPermissionsRequest
- Returns:
- the request
- Throws:
IOException
-
revisions
public CloudRun.Projects.Locations.Services.Revisions revisions()
An accessor for creating requests from the Revisions collection.
The typical use is:
CloudRun run = new CloudRun(...);
CloudRun.Revisions.List request = run.revisions().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy