Class: Google::Apis::CloudcommerceprocurementV1::Approval

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

Overview

An approval for some action on an account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Approval

Returns a new instance of Approval.



124
125
126
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 124

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

Instance Attribute Details

#nameString

Output only. The name of the approval. Corresponds to the JSON property name

Returns:

  • (String)


107
108
109
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 107

def name
  @name
end

#reasonString

Output only. An explanation for the state of the approval. Corresponds to the JSON property reason

Returns:

  • (String)


112
113
114
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 112

def reason
  @reason
end

#stateString

Output only. The state of the approval. Corresponds to the JSON property state

Returns:

  • (String)


117
118
119
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 117

def state
  @state
end

#update_timeString

Optional. The last update timestamp of the approval. Corresponds to the JSON property updateTime

Returns:

  • (String)


122
123
124
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 122

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



129
130
131
132
133
134
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 129

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