Google Cloud Storage Transfer V1 Client - Class CreateAgentPoolRequest (1.1.1)

Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class CreateAgentPoolRequest.

Specifies the request passed to CreateAgentPool.

Generated from protobuf message google.storagetransfer.v1.CreateAgentPoolRequest

Namespace

Google \ Cloud \ StorageTransfer \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project_id string

Required. The ID of the Google Cloud project that owns the agent pool.

↳ agent_pool Google\Cloud\StorageTransfer\V1\AgentPool

Required. The agent pool to create.

↳ agent_pool_id string

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])?$.

getProjectId

Required. The ID of the Google Cloud project that owns the agent pool.

Returns
TypeDescription
string

setProjectId

Required. The ID of the Google Cloud project that owns the agent pool.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAgentPool

Required. The agent pool to create.

Returns
TypeDescription
Google\Cloud\StorageTransfer\V1\AgentPool|null

hasAgentPool

clearAgentPool

setAgentPool

Required. The agent pool to create.

Parameter
NameDescription
var Google\Cloud\StorageTransfer\V1\AgentPool
Returns
TypeDescription
$this

getAgentPoolId

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])?$.
Returns
TypeDescription
string

setAgentPoolId

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])?$.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
projectId string

Required. The ID of the Google Cloud project that owns the agent pool.

agentPool Google\Cloud\StorageTransfer\V1\AgentPool

Required. The agent pool to create.

agentPoolId string

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])?$.

Returns
TypeDescription
Google\Cloud\StorageTransfer\V1\CreateAgentPoolRequest