Class: Google::Apis::ServiceusageV1beta1::Service

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/serviceusage_v1beta1/classes.rb,
generated/google/apis/serviceusage_v1beta1/representations.rb,
generated/google/apis/serviceusage_v1beta1/representations.rb

Overview

A service that is available for use by the consumer.

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) ⇒ Service

Returns a new instance of Service



3555
3556
3557
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3555

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#configGoogle::Apis::ServiceusageV1beta1::ServiceConfig

The configuration of the service. Corresponds to the JSON property config



3534
3535
3536
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3534

def config
  @config
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)


3541
3542
3543
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3541

def name
  @name
end

#parentString

The resource name of the consumer. A valid name would be:

  • projects/123 Corresponds to the JSON property parent

Returns:

  • (String)


3548
3549
3550
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3548

def parent
  @parent
end

#stateString

Whether or not the service has been enabled for use by the consumer. Corresponds to the JSON property state

Returns:

  • (String)


3553
3554
3555
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3553

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3560
3561
3562
3563
3564
3565
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3560

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
  @state = args[:state] if args.key?(:state)
end