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
ServicesResource.DisableRequest
Inherited Members
Namespace: Google.Apis.ServiceUsage.v1
Assembly: Google.Apis.ServiceUsage.v1.dll
Syntax
public class ServicesResource.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 | |
string | name |
Properties
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
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 |
---|---|
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 Disable parameter list.
Declaration
protected override void InitParameters()