Class: Google::Apis::ServiceusageV1::EnableFailure

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

Provides error messages for the failing services.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnableFailure

Returns a new instance of EnableFailure.



1227
1228
1229
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1227

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)


1220
1221
1222
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1220

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)


1225
1226
1227
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1225

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1232
1233
1234
1235
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 1232

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