Class: Google::Apis::MlV1::GoogleCloudMlV1beta1OperationMetadata

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

Overview

Represents the metadata of the long-running operation.

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

Returns a new instance of GoogleCloudMlV1beta1OperationMetadata



882
883
884
# File 'generated/google/apis/ml_v1/classes.rb', line 882

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

Instance Attribute Details

#create_timeString

The time the operation was submitted. Corresponds to the JSON property createTime

Returns:

  • (String)


850
851
852
# File 'generated/google/apis/ml_v1/classes.rb', line 850

def create_time
  @create_time
end

#end_timeString

The time operation processing completed. Corresponds to the JSON property endTime

Returns:

  • (String)


870
871
872
# File 'generated/google/apis/ml_v1/classes.rb', line 870

def end_time
  @end_time
end

#is_cancellation_requestedBoolean Also known as: is_cancellation_requested?

Indicates whether a request to cancel this operation has been made. Corresponds to the JSON property isCancellationRequested

Returns:

  • (Boolean)


844
845
846
# File 'generated/google/apis/ml_v1/classes.rb', line 844

def is_cancellation_requested
  @is_cancellation_requested
end

#model_nameString

Contains the name of the model associated with the operation. Corresponds to the JSON property modelName

Returns:

  • (String)


855
856
857
# File 'generated/google/apis/ml_v1/classes.rb', line 855

def model_name
  @model_name
end

#operation_typeString

The operation type. Corresponds to the JSON property operationType

Returns:

  • (String)


875
876
877
# File 'generated/google/apis/ml_v1/classes.rb', line 875

def operation_type
  @operation_type
end

#start_timeString

The time operation processing started. Corresponds to the JSON property startTime

Returns:

  • (String)


880
881
882
# File 'generated/google/apis/ml_v1/classes.rb', line 880

def start_time
  @start_time
end

#versionGoogle::Apis::MlV1::GoogleCloudMlV1beta1Version

Represents a version of the model. Each version is a trained model deployed in the cloud, ready to handle prediction requests. A model can have multiple versions. You can get information about all of the versions of a given model by calling projects.models.versions.list. Corresponds to the JSON property version



865
866
867
# File 'generated/google/apis/ml_v1/classes.rb', line 865

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



887
888
889
890
891
892
893
894
895
# File 'generated/google/apis/ml_v1/classes.rb', line 887

def update!(**args)
  @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
  @create_time = args[:create_time] if args.key?(:create_time)
  @model_name = args[:model_name] if args.key?(:model_name)
  @version = args[:version] if args.key?(:version)
  @end_time = args[:end_time] if args.key?(:end_time)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @start_time = args[:start_time] if args.key?(:start_time)
end