Class: Google::Apis::ServiceusageV1beta1::EnableFailure

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

Provides error messages for the failing services.

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

Returns a new instance of EnableFailure.



1028
1029
1030
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 1028

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

Instance Attribute Details

#error_messageString

An error message describing why the service could not be enabled. Corresponds to the JSON property errorMessage

Returns:

  • (String)


1021
1022
1023
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 1021

def error_message
  @error_message
end

#service_idString

The service id of a service that could not be enabled. Corresponds to the JSON property serviceId

Returns:

  • (String)


1026
1027
1028
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 1026

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1033
1034
1035
1036
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 1033

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