Class ServicesResource.BatchEnableRequest
Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the
entire batch fails, and no state changes occur. To enable a single service, use the EnableService method
instead.
Inheritance
System.Object
ServicesResource.BatchEnableRequest
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 BatchEnableRequest : ServiceUsageBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
BatchEnableRequest(IClientService, BatchEnableServicesRequest, String)
Constructs a new BatchEnable request.
Declaration
public BatchEnableRequest(IClientService service, BatchEnableServicesRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| BatchEnableServicesRequest | body | |
| System.String | parent |
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
Parent
Parent to enable services on. An example name would be: projects/123 where 123 is the project
number. The BatchEnableServices method currently only supports projects.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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 BatchEnable parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.ServiceUsage.v1.ServiceUsageBaseServiceRequest<Google.Apis.ServiceUsage.v1.Data.Operation>.InitParameters()