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 On-Premises Agent pool.
Instance Attribute Summary collapse
-
#bandwidth_limit ⇒ Google::Apis::StoragetransferV1::BandwidthLimit
Specifies the BandwidthLimit to describe the non-negative bandwidth rate in mbps for the 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.
51 52 53 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 51 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bandwidth_limit ⇒ Google::Apis::StoragetransferV1::BandwidthLimit
Specifies the BandwidthLimit to describe the non-negative bandwidth rate in
mbps for the agent pool.
Corresponds to the JSON property bandwidthLimit
33 34 35 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 33 def bandwidth_limit @bandwidth_limit end |
#display_name ⇒ String
Specifies the client-specified AgentPool description.
Corresponds to the JSON property displayName
38 39 40 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 38 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
44 45 46 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 44 def name @name end |
#state ⇒ String
Output only. Specifies the state of the AgentPool.
Corresponds to the JSON property state
49 50 51 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 49 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
56 57 58 59 60 61 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 56 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 |