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.



11728
11729
11730
# File 'lib/google/apis/compute_alpha/classes.rb', line 11728

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)


11716
11717
11718
# File 'lib/google/apis/compute_alpha/classes.rb', line 11716

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)


11721
11722
11723
# File 'lib/google/apis/compute_alpha/classes.rb', line 11721

def network_id
  @network_id
end

#stateString

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

Returns:

  • (String)


11726
11727
11728
# File 'lib/google/apis/compute_alpha/classes.rb', line 11726

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11733
11734
11735
11736
11737
# File 'lib/google/apis/compute_alpha/classes.rb', line 11733

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