Class: Google::Apis::ServiceusageV1::EnabledState
- Inherits:
-
Object
- Object
- Google::Apis::ServiceusageV1::EnabledState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/serviceusage_v1/classes.rb,
generated/google/apis/serviceusage_v1/representations.rb,
generated/google/apis/serviceusage_v1/representations.rb
Overview
The EnabledState reflects whether the service has been explicitly enabled or not.
Instance Attribute Summary collapse
-
#state ⇒ String
Whether or not the service has been explicitly enabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnabledState
constructor
A new instance of EnabledState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EnabledState
Returns a new instance of EnabledState
962 963 964 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 962 def initialize(**args) update!(**args) end |
Instance Attribute Details
#state ⇒ String
Whether or not the service has been explicitly enabled.
Corresponds to the JSON property state
960 961 962 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 960 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
967 968 969 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 967 def update!(**args) @state = args[:state] if args.key?(:state) end |