Class: Google::Apis::ServiceusageV1::ServiceState
- Inherits:
-
Object
- Object
- Google::Apis::ServiceusageV1::ServiceState
- 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 properties of a consumer with respect to a Service.
Instance Attribute Summary collapse
-
#enabled ⇒ Google::Apis::ServiceusageV1::EnabledState
The EnabledState reflects whether the service has been explicitly enabled or not.
-
#name ⇒ String
The resource name of the consumer and service.
-
#service ⇒ Google::Apis::ServiceusageV1::PublishedService
The published version of a Service that is managed by Google Service Management.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceState
constructor
A new instance of ServiceState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceState
Returns a new instance of ServiceState
3382 3383 3384 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3382 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Google::Apis::ServiceusageV1::EnabledState
The EnabledState reflects whether the service has been explicitly enabled or
not.
Corresponds to the JSON property enabled
3367 3368 3369 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3367 def enabled @enabled end |
#name ⇒ String
The resource name of the consumer and service. A valid name would be:
- projects/123/services/serviceusage.googleapis.com
Corresponds to the JSON property
name
3374 3375 3376 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3374 def name @name end |
#service ⇒ Google::Apis::ServiceusageV1::PublishedService
The published version of a Service that is managed by
Google Service Management.
Corresponds to the JSON property service
3380 3381 3382 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3380 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3387 3388 3389 3390 3391 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3387 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @name = args[:name] if args.key?(:name) @service = args[:service] if args.key?(:service) end |