Class ServicesResource.DisableRequest
Disable a service so that it can no longer be used with a project. This prevents unintended usage that may
cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service
that is not currently enabled. Callers will receive a FAILED_PRECONDITION status if the target service is
not currently enabled.
Inheritance
System.Object
ServicesResource.DisableRequest
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.ServiceUsage.v1
Assembly: Google.Apis.ServiceUsage.v1.dll
Syntax
public class DisableRequest : ServiceUsageBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
DisableRequest(IClientService, DisableServiceRequest, String)
Constructs a new Disable request.
Declaration
public DisableRequest(IClientService service, DisableServiceRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| DisableServiceRequest | 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.ServiceUsage.v1.Data.Operation>.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.ServiceUsage.v1.Data.Operation>.MethodName
Name
Name of the consumer and service to disable the service on. The enable and disable methods currently
only support projects. An example name would be: projects/123/services/serviceusage.googleapis.com
where 123 is the project number.
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.ServiceUsage.v1.Data.Operation>.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.ServiceUsage.v1.Data.Operation>.GetBody()
InitParameters()
Initializes Disable parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.ServiceUsage.v1.ServiceUsageBaseServiceRequest<Google.Apis.ServiceUsage.v1.Data.Operation>.InitParameters()