Class: Google::Apis::ComputeAlpha::DhcpOptionsConfigAssociation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::DhcpOptionsConfigAssociation
- 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
-
#network ⇒ String
Required.
-
#network_id ⇒ Fixnum
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DhcpOptionsConfigAssociation
constructor
A new instance of DhcpOptionsConfigAssociation.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#network ⇒ String
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:
https://www.googleapis.com/compute/v1/projects/project/global/networks/ network
projects/project/global/networks/network Corresponds to the JSON property
network
11523 11524 11525 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11523 def network @network end |
#network_id ⇒ Fixnum
Output only. [Output Only] The server-defined ID of the associated Network.
Corresponds to the JSON property networkId
11528 11529 11530 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11528 def network_id @network_id end |
#state ⇒ String
Output only. [Output Only] State of the association.
Corresponds to the JSON property state
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 |