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.



2537
2538
2539
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2537

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

Instance Attribute Details

#categoriesArray<String>

The names of the categories that are enabled. Example: categories/ googleServices. Corresponds to the JSON property categories

Returns:

  • (Array<String>)


2523
2524
2525
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2523

def categories
  @categories
end

#groupsArray<String>

The names of the service groups that are enabled. Example: services/container. googleapis.com/groups/dependencies. Corresponds to the JSON property groups

Returns:

  • (Array<String>)


2529
2530
2531
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 2529

def groups
  @groups
end

#servicesArray<String>

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

Returns:

  • (Array<String>)


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