Class: Google::Apis::ComputeAlpha::DhcpOptionsConfigAssociation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Association represents the relationship between a DHCP options config and a network. Association represents the relationship between a DHCP options config and a network.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DhcpOptionsConfigAssociation

Returns a new instance of DhcpOptionsConfigAssociation.



11698
11699
11700
# File 'lib/google/apis/compute_alpha/classes.rb', line 11698

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#networkString

Required. The target network this DHCP option is attached to. You can specify this as a full or partial URL. For example, the following are all valid URLs:

Returns:

  • (String)


11686
11687
11688
# File 'lib/google/apis/compute_alpha/classes.rb', line 11686

def network
  @network
end

#network_idFixnum

Output only. [Output Only] The server-defined ID of the associated Network. Corresponds to the JSON property networkId

Returns:

  • (Fixnum)


11691
11692
11693
# File 'lib/google/apis/compute_alpha/classes.rb', line 11691

def network_id
  @network_id
end

#stateString

Output only. [Output Only] State of the association. Corresponds to the JSON property state

Returns:

  • (String)


11696
11697
11698
# File 'lib/google/apis/compute_alpha/classes.rb', line 11696

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11703
11704
11705
11706
11707
# File 'lib/google/apis/compute_alpha/classes.rb', line 11703

def update!(**args)
  @network = args[:network] if args.key?(:network)
  @network_id = args[:network_id] if args.key?(:network_id)
  @state = args[:state] if args.key?(:state)
end