Class ProjectsResource.LocationsResource.CapacityCommitmentsResource.CreateRequest
Creates a new capacity commitment resource.
Inheritance
ProjectsResource.LocationsResource.CapacityCommitmentsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.BigQueryReservation.v1
Assembly: Google.Apis.BigQueryReservation.v1.dll
Syntax
public class ProjectsResource.LocationsResource.CapacityCommitmentsResource.CreateRequest : BigQueryReservationBaseServiceRequest<CapacityCommitment>, IClientServiceRequest<CapacityCommitment>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CapacityCommitment, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CapacityCommitment body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CapacityCommitment | body | |
string | parent |
Properties
CapacityCommitmentId
The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.
Declaration
[RequestParameter("capacityCommitmentId", RequestParameterType.Query)]
public virtual string CapacityCommitmentId { get; set; }
Property Value
Type | Description |
---|---|
string |
EnforceSingleAdminProjectPerOrg
If true, fail the request if another project in the organization has a capacity commitment.
Declaration
[RequestParameter("enforceSingleAdminProjectPerOrg", RequestParameterType.Query)]
public virtual bool? EnforceSingleAdminProjectPerOrg { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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
Parent
Required. Resource name of the parent reservation. E.g., projects/myproject/locations/US
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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 Create parameter list.
Declaration
protected override void InitParameters()