Class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaEnableRule
- Inherits:
-
Object
- Object
- Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaEnableRule
- 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
-
#categories ⇒ Array<String>
The names of the categories that are enabled.
-
#groups ⇒ Array<String>
The names of the service groups that are enabled.
-
#services ⇒ Array<String>
The names of the services that are enabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleApiServiceusageV2alphaEnableRule
constructor
A new instance of GoogleApiServiceusageV2alphaEnableRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleApiServiceusageV2alphaEnableRule
Returns a new instance of GoogleApiServiceusageV2alphaEnableRule.
2537 2538 2539 |
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2537 def initialize(**args) update!(**args) end |
Instance Attribute Details
#categories ⇒ Array<String>
The names of the categories that are enabled. Example: categories/
googleServices.
Corresponds to the JSON property categories
2523 2524 2525 |
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2523 def categories @categories end |
#groups ⇒ Array<String>
The names of the service groups that are enabled. Example: services/container.
googleapis.com/groups/dependencies.
Corresponds to the JSON property groups
2529 2530 2531 |
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2529 def groups @groups end |
#services ⇒ Array<String>
The names of the services that are enabled. Example: services/storage.
googleapis.com.
Corresponds to the JSON property services
2535 2536 2537 |
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2535 def services @services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2542 2543 2544 2545 2546 |
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2542 def update!(**args) @categories = args[:categories] if args.key?(:categories) @groups = args[:groups] if args.key?(:groups) @services = args[:services] if args.key?(:services) end |