Class: Google::Apis::ServiceusageV1beta1::BatchEnableServicesResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/serviceusage_v1beta1/classes.rb,
generated/google/apis/serviceusage_v1beta1/representations.rb,
generated/google/apis/serviceusage_v1beta1/representations.rb

Overview

Response message for the BatchEnableServices method. This response message is assigned to the response field of the returned Operation when that operation is done.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BatchEnableServicesResponse

Returns a new instance of BatchEnableServicesResponse.



528
529
530
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 528

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

Instance Attribute Details

#failuresArray<Google::Apis::ServiceusageV1beta1::EnableFailure>

If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure. Corresponds to the JSON property failures



521
522
523
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 521

def failures
  @failures
end

#servicesArray<Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1Service>

The new state of the services after enabling. Corresponds to the JSON property services



526
527
528
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 526

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



533
534
535
536
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 533

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