Class NamespacesResource.ServicesResource.ReplaceServiceRequest
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.
Inheritance
NamespacesResource.ServicesResource.ReplaceServiceRequest
Inherited Members
Namespace: Google.Apis.CloudRun.v1
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class NamespacesResource.ServicesResource.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 | |
string | name |
Properties
DryRun
Indicates that the server should validate the request and populate default values without persisting
the request. Supported values: all
Declaration
[RequestParameter("dryRun", RequestParameterType.Query)]
public virtual string DryRun { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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 theendpoint
is regional)projects/{project_id_or_number}/locations/{region}/services/{service_name}
*projects/{project_id_or_number}/regions/{region}/services/{service_name}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes ReplaceService parameter list.
Declaration
protected override void InitParameters()