Class: Google::Apis::ServiceusageV1::BatchEnableServicesRequest

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

Request message for the BatchEnableServices method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchEnableServicesRequest

Returns a new instance of BatchEnableServicesRequest.



532
533
534
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 532

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

Instance Attribute Details

#service_idsArray<String>

The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur. Corresponds to the JSON property serviceIds

Returns:

  • (Array<String>)


530
531
532
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 530

def service_ids
  @service_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



537
538
539
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 537

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