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.



11535
11536
11537
# File 'lib/google/apis/compute_alpha/classes.rb', line 11535

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)


11523
11524
11525
# File 'lib/google/apis/compute_alpha/classes.rb', line 11523

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)


11528
11529
11530
# File 'lib/google/apis/compute_alpha/classes.rb', line 11528

def network_id
  @network_id
end

#stateString

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

Returns:

  • (String)


11533
11534
11535
# File 'lib/google/apis/compute_alpha/classes.rb', line 11533

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11540
11541
11542
11543
11544
# File 'lib/google/apis/compute_alpha/classes.rb', line 11540

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