Class ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest
Creates a WorkerPool
to run the builds, and returns the new worker pool. NOTE: As of now, this
method returns an Operation
that is always complete.
Inheritance
System.Object
ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest
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.CloudBuild.v1beta1
Assembly: Google.Apis.CloudBuild.v1beta1.dll
Syntax
public class 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 | |
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.CloudBuild.v1beta1.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.CloudBuild.v1beta1.Data.Operation>.MethodName
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 |
---|---|
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.CloudBuild.v1beta1.Data.Operation>.RestPath
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 |
---|---|
System.String |
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.CloudBuild.v1beta1.Data.Operation>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudBuild.v1beta1.CloudBuildBaseServiceRequest<Google.Apis.CloudBuild.v1beta1.Data.Operation>.InitParameters()