Class: Google::Apis::HomegraphV1::ZoneStruct
- Inherits:
-
Object
- Object
- Google::Apis::HomegraphV1::ZoneStruct
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/homegraph_v1/classes.rb,
lib/google/apis/homegraph_v1/representations.rb,
lib/google/apis/homegraph_v1/representations.rb
Instance Attribute Summary collapse
-
#label ⇒ String
Name of the zone.
-
#zone_id ⇒ Fixnum
Id of the zone Corresponds to the JSON property
zoneId.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ZoneStruct
constructor
A new instance of ZoneStruct.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ZoneStruct
Returns a new instance of ZoneStruct.
1416 1417 1418 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
Name of the zone.
Corresponds to the JSON property label
1409 1410 1411 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1409 def label @label end |
#zone_id ⇒ Fixnum
Id of the zone
Corresponds to the JSON property zoneId
1414 1415 1416 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1414 def zone_id @zone_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1421 1422 1423 1424 |
# File 'lib/google/apis/homegraph_v1/classes.rb', line 1421 def update!(**args) @label = args[:label] if args.key?(:label) @zone_id = args[:zone_id] if args.key?(:zone_id) end |