Class ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest
Creates a WorkerPool
.
Inheritance
ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest : CloudBuildBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, WorkerPool, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, WorkerPool body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
WorkerPool | body | |
string | parent |
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
Parent
Required. The parent resource where this worker pool will be created. Format:
projects/{project}/locations/{location}
.
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
ValidateOnly
If set, validate the request and preview the response, but do not actually post it.
Declaration
[RequestParameter("validateOnly", RequestParameterType.Query)]
public virtual bool? ValidateOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
WorkerPoolId
Required. Immutable. The ID to use for the WorkerPool
, which will become the final component
of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
Declaration
[RequestParameter("workerPoolId", RequestParameterType.Query)]
public virtual string WorkerPoolId { get; set; }
Property Value
Type | Description |
---|---|
string |
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()