Class NamespacesResource.ServicesResource.DeleteRequest
Rpc to delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRun.v1alpha1
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class DeleteRequest : CloudRunBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, String)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | name |
Properties
ApiVersion
Cloud Run currently ignores this parameter.
Declaration
[RequestParameter("apiVersion", RequestParameterType.Query)]
public virtual string ApiVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Kind
Cloud Run currently ignores this parameter.
Declaration
[RequestParameter("kind", RequestParameterType.Query)]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Name
The name of the service being deleted. 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 |
OrphanDependents
Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.
Declaration
[RequestParameter("orphanDependents", RequestParameterType.Query)]
public virtual bool? OrphanDependents { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
PropagationPolicy
Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage- collection/ for more information.
Declaration
[RequestParameter("propagationPolicy", RequestParameterType.Query)]
public virtual string PropagationPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()