Class ProjectsResource.AgentPoolsResource.CreateRequest
Creates an agent pool resource.
Inheritance
ProjectsResource.AgentPoolsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.Storagetransfer.v1
Assembly: Google.Apis.Storagetransfer.v1.dll
Syntax
public class ProjectsResource.AgentPoolsResource.CreateRequest : StoragetransferBaseServiceRequest<AgentPool>, IClientServiceRequest<AgentPool>, IClientServiceRequest
Constructors
CreateRequest(IClientService, AgentPool, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, AgentPool body, string projectId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AgentPool | body | |
| string | projectId |
Properties
AgentPoolId
Required. The ID of the agent pool to create. The agent_pool_id must meet the following
requirements: * Length of 128 characters or less. * Not start with the string goog. * Start with a
lowercase ASCII character, followed by: * Zero or more: lowercase Latin alphabet characters,
numerals, hyphens (-), periods (.), underscores (_), or tildes (~). * One or more numerals
or lowercase ASCII characters. As expressed by the regular expression:
^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$.
Declaration
[RequestParameter("agentPoolId", RequestParameterType.Query)]
public virtual string AgentPoolId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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
ProjectId
Required. The ID of the Google Cloud project that owns the agent pool.
Declaration
[RequestParameter("projectId", RequestParameterType.Path)]
public virtual string ProjectId { 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()