Class: Google::Cloud::Recommender::V1::RecommendationStateInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/recommender/v1/recommendation.rb

Overview

Information for state. Contains state and metadata.

Defined Under Namespace

Modules: State Classes: StateMetadataEntry

Instance Attribute Summary collapse

Instance Attribute Details

#state::Google::Cloud::Recommender::V1::RecommendationStateInfo::State

Returns The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.

Returns:



267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'proto_docs/google/cloud/recommender/v1/recommendation.rb', line 267

class RecommendationStateInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class StateMetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents Recommendation State.
  module State
    # Default state. Don't use directly.
    STATE_UNSPECIFIED = 0

    # Recommendation is active and can be applied. Recommendations content can
    # be updated by Google.
    #
    # ACTIVE recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
    ACTIVE = 1

    # Recommendation is in claimed state. Recommendations content is
    # immutable and cannot be updated by Google.
    #
    # CLAIMED recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
    CLAIMED = 6

    # Recommendation is in succeeded state. Recommendations content is
    # immutable and cannot be updated by Google.
    #
    # SUCCEEDED recommendations can be marked as SUCCEEDED, or FAILED.
    SUCCEEDED = 3

    # Recommendation is in failed state. Recommendations content is immutable
    # and cannot be updated by Google.
    #
    # FAILED recommendations can be marked as SUCCEEDED, or FAILED.
    FAILED = 4

    # Recommendation is in dismissed state. Recommendation content can be
    # updated by Google.
    #
    # DISMISSED recommendations can be marked as ACTIVE.
    DISMISSED = 5
  end
end

#state_metadata::Google::Protobuf::Map{::String => ::String}

Returns A map of metadata for the state, provided by user or automations systems.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    A map of metadata for the state, provided by user or automations systems.



267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'proto_docs/google/cloud/recommender/v1/recommendation.rb', line 267

class RecommendationStateInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class StateMetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents Recommendation State.
  module State
    # Default state. Don't use directly.
    STATE_UNSPECIFIED = 0

    # Recommendation is active and can be applied. Recommendations content can
    # be updated by Google.
    #
    # ACTIVE recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
    ACTIVE = 1

    # Recommendation is in claimed state. Recommendations content is
    # immutable and cannot be updated by Google.
    #
    # CLAIMED recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.
    CLAIMED = 6

    # Recommendation is in succeeded state. Recommendations content is
    # immutable and cannot be updated by Google.
    #
    # SUCCEEDED recommendations can be marked as SUCCEEDED, or FAILED.
    SUCCEEDED = 3

    # Recommendation is in failed state. Recommendations content is immutable
    # and cannot be updated by Google.
    #
    # FAILED recommendations can be marked as SUCCEEDED, or FAILED.
    FAILED = 4

    # Recommendation is in dismissed state. Recommendation content can be
    # updated by Google.
    #
    # DISMISSED recommendations can be marked as ACTIVE.
    DISMISSED = 5
  end
end