Class: Google::Apis::ServicebrokerV1alpha1::GoogleCloudServicebrokerV1alpha1Operation

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

Overview

Describes a long running operation, which conforms to OpenService API.

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

Returns a new instance of GoogleCloudServicebrokerV1alpha1Operation



434
435
436
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 434

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

Instance Attribute Details

#descriptionString

Optional description of the Operation state. Corresponds to the JSON property description

Returns:

  • (String)


426
427
428
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 426

def description
  @description
end

#stateString

The state of the operation. Valid values are: "in progress", "succeeded", and "failed". Corresponds to the JSON property state

Returns:

  • (String)


432
433
434
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 432

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



439
440
441
442
# File 'generated/google/apis/servicebroker_v1alpha1/classes.rb', line 439

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