Class: Google::Apis::ServiceusageV1::ServiceState

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#enabledGoogle::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

#nameString

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

Returns:

  • (String)


3374
3375
3376
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3374

def name
  @name
end

#serviceGoogle::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