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.



2580
2581
2582
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 2580

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


2578
2579
2580
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 2578

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2585
2586
2587
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 2585

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