Class: Google::Apis::ServiceusageV1::GoogleApiServiceusageV2alphaEnableRule

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

Overview

The consumer policy rule that defines enabled services, groups, and categories.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleApiServiceusageV2alphaEnableRule

Returns a new instance of GoogleApiServiceusageV2alphaEnableRule.



2449
2450
2451
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 2449

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

Instance Attribute Details

#servicesArray<String>

The names of the services that are enabled. Example: services/storage. googleapis.com. Corresponds to the JSON property services

Returns:

  • (Array<String>)


2447
2448
2449
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 2447

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2454
2455
2456
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 2454

def update!(**args)
  @services = args[:services] if args.key?(:services)
end