Class: Google::Apis::CloudbillingV1beta::Rejection

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb

Overview

Encapsulates details about why a request was rejected.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Rejection

Returns a new instance of Rejection.



2130
2131
2132
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2130

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

Instance Attribute Details

#display_messageString

Output only. A user-facing message explaining the rejection. Corresponds to the JSON property displayMessage

Returns:

  • (String)


2123
2124
2125
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2123

def display_message
  @display_message
end

#reasonString

Output only. The reason for the rejection. Corresponds to the JSON property reason

Returns:

  • (String)


2128
2129
2130
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2128

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2135
2136
2137
2138
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2135

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