target.apidocs.com.google.api.services.run.v1.CloudRun.Namespaces.Services.html Maven / Gradle / Ivy
CloudRun.Namespaces.Services (Cloud Run Admin API v1-rev20240731-2.0.0)
com.google.api.services.run.v1
Class CloudRun.Namespaces.Services
- java.lang.Object
-
- com.google.api.services.run.v1.CloudRun.Namespaces.Services
-
- Enclosing class:
- CloudRun.Namespaces
public class CloudRun.Namespaces.Services
extends Object
The "services" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
CloudRun.Namespaces.Services.Create
class
CloudRun.Namespaces.Services.Delete
class
CloudRun.Namespaces.Services.Get
class
CloudRun.Namespaces.Services.List
class
CloudRun.Namespaces.Services.ReplaceService
-
Constructor Summary
Constructors
Constructor and Description
Services()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CloudRun.Namespaces.Services.Create
create(String parent,
Service content)
Creates a new Service.
CloudRun.Namespaces.Services.Delete
delete(String name)
Deletes the provided service.
CloudRun.Namespaces.Services.Get
get(String name)
Gets information about a service.
CloudRun.Namespaces.Services.List
list(String parent)
Lists services for the given project and region.
CloudRun.Namespaces.Services.ReplaceService
replaceService(String name,
Service content)
Replaces a service.
-
-
Method Detail
-
create
public CloudRun.Namespaces.Services.Create create(String parent,
Service content)
throws IOException
Creates a new Service. Service creation will trigger a new deployment. Use GetService, and check
service.status to determine if the Service is ready.
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 resource's parent. In Cloud Run, it may be one of the following: *
`{project_id_or_number}` * `namespaces/{project_id_or_number}` *
`namespaces/{project_id_or_number}/services` *
`projects/{project_id_or_number}/locations/{region}` *
`projects/{project_id_or_number}/regions/{region}`
content
- the Service
- Returns:
- the request
- Throws:
IOException
-
delete
public CloudRun.Namespaces.Services.Delete delete(String name)
throws IOException
Deletes the provided service. This will cause the Service to stop serving traffic and will delete
all associated 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 fully qualified name of the service to delete. It can be any of the following forms: *
`namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is
regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` *
`projects/{project_id_or_number}/regions/{region}/services/{service_name}`
- Returns:
- the request
- Throws:
IOException
-
get
public CloudRun.Namespaces.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 fully qualified name of the service to retrieve. It can be any of the following forms:
* `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is
regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` *
`projects/{project_id_or_number}/regions/{region}/services/{service_name}`
- Returns:
- the request
- Throws:
IOException
-
list
public CloudRun.Namespaces.Services.List list(String parent)
throws IOException
Lists services for the given project and region. 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 parent from where the resources should be listed. In Cloud Run, it may be one of the
following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` *
`namespaces/{project_id_or_number}/services` *
`projects/{project_id_or_number}/locations/{region}` *
`projects/{project_id_or_number}/regions/{region}`
- Returns:
- the request
- Throws:
IOException
-
replaceService
public CloudRun.Namespaces.Services.ReplaceService replaceService(String name,
Service content)
throws IOException
Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the
Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide
metadata.resourceVersion to enforce update from last read for optimistic concurrency control.
Create a request for the method "services.replaceService".
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 fully qualified name of the service to replace. It can be any of the following forms:
* `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is
regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` *
`projects/{project_id_or_number}/regions/{region}/services/{service_name}`
content
- the Service
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy