Class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaEnableRule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/serviceusage_v1beta1/classes.rb,
lib/google/apis/serviceusage_v1beta1/representations.rb,
lib/google/apis/serviceusage_v1beta1/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.



3001
3002
3003
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 3001

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


2999
3000
3001
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2999

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3006
3007
3008
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 3006

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