Class: Google::Apis::StoragetransferV1::AgentPool

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_limitGoogle::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_nameString

Specifies the client-specified AgentPool description. Corresponds to the JSON property displayName

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 37

def display_name
  @display_name
end

#nameString

Required. Specifies a unique string that identifies the agent pool. Format: projects/project_id/agentPools/agent_pool_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


43
44
45
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 43

def name
  @name
end

#stateString

Output only. Specifies the state of the AgentPool. Corresponds to the JSON property state

Returns:

  • (String)


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