Class: Google::Apis::StoragetransferV1::AgentPool
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::AgentPool
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/google/apis/storagetransfer_v1/representations.rb
Overview
Represents an agent pool.
Instance Attribute Summary collapse
-
#bandwidth_limit ⇒ Google::Apis::StoragetransferV1::BandwidthLimit
Specifies a bandwidth limit for an agent pool.
-
#display_name ⇒ String
Specifies the client-specified AgentPool description.
-
#name ⇒ String
Required.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentPool
constructor
A new instance of AgentPool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentPool
Returns a new instance of AgentPool.
50 51 52 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 50 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bandwidth_limit ⇒ Google::Apis::StoragetransferV1::BandwidthLimit
Specifies a bandwidth limit for an agent pool.
Corresponds to the JSON property bandwidthLimit
32 33 34 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 32 def bandwidth_limit @bandwidth_limit end |
#display_name ⇒ String
Specifies the client-specified AgentPool description.
Corresponds to the JSON property displayName
37 38 39 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 37 def display_name @display_name end |
#name ⇒ String
Required. Specifies a unique string that identifies the agent pool. Format:
projects/
project_id/agentPools/
agent_pool_id`
Corresponds to the JSON property
name`
43 44 45 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 43 def name @name end |
#state ⇒ String
Output only. Specifies the state of the AgentPool.
Corresponds to the JSON property state
48 49 50 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 48 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
55 56 57 58 59 60 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 55 def update!(**args) @bandwidth_limit = args[:bandwidth_limit] if args.key?(:bandwidth_limit) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |