Class ProjectsResource.LocationsResource.ServicesResource.ReplaceServiceRequest
Rpc to replace 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.
Inheritance
System.Object
ProjectsResource.LocationsResource.ServicesResource.ReplaceServiceRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudRun.v1alpha1
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class ReplaceServiceRequest : CloudRunBaseServiceRequest<Service>, IClientServiceRequest<Service>, IClientServiceRequest
Constructors
ReplaceServiceRequest(IClientService, Service, String)
Constructs a new ReplaceService request.
Declaration
public ReplaceServiceRequest(IClientService service, Service body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Service | body | |
| System.String | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudRun.v1alpha1.Data.Service>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudRun.v1alpha1.Data.Service>.MethodName
Name
The name of the service being replaced. If needed, replace {namespace_id} with the project ID.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudRun.v1alpha1.Data.Service>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudRun.v1alpha1.Data.Service>.GetBody()
InitParameters()
Initializes ReplaceService parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudRun.v1alpha1.CloudRunBaseServiceRequest<Google.Apis.CloudRun.v1alpha1.Data.Service>.InitParameters()