# Storage Transfer Service V1 API - Class Google::Cloud::StorageTransfer::V1::CreateAgentPoolRequest (v1.11.0)

1.11.0 (latest) 1.10.0 1.9.0 1.8.1 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Storage Transfer Service V1 API class Google::Cloud::StorageTransfer::V1::CreateAgentPoolRequest.

Specifies the request passed to CreateAgentPool.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #agent_pool

    def agent_pool() -> ::Google::Cloud::StorageTransfer::V1::AgentPool

**Returns**

- ([::Google::Cloud::StorageTransfer::V1::AgentPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AgentPool)) --- Required. The agent pool to create.

### #agent_pool=

    def agent_pool=(value) -> ::Google::Cloud::StorageTransfer::V1::AgentPool

**Parameter**

- **value** ([::Google::Cloud::StorageTransfer::V1::AgentPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AgentPool)) --- Required. The agent pool to create.
**Returns**

- ([::Google::Cloud::StorageTransfer::V1::AgentPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-AgentPool)) --- Required. The agent pool to create.

### #agent_pool_id

    def agent_pool_id() -> ::String

**Returns**

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

### #agent_pool_id=

    def agent_pool_id=(value) -> ::String

**Parameter**

- **value** (::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**

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

### #project_id

    def project_id() -> ::String

**Returns**

- (::String) --- Required. The ID of the Google Cloud project that owns the agent pool.

### #project_id=

    def project_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The ID of the Google Cloud project that owns the agent pool.
**Returns**

- (::String) --- Required. The ID of the Google Cloud project that owns the agent pool.