Class: Google::Apis::MlV1::GoogleCloudMlV1OperationMetadata

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

Overview

Represents the metadata of the long-running operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1OperationMetadata

Returns a new instance of GoogleCloudMlV1OperationMetadata.



1890
1891
1892
# File 'lib/google/apis/ml_v1/classes.rb', line 1890

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)


1843
1844
1845
# File 'lib/google/apis/ml_v1/classes.rb', line 1843

def create_time
  @create_time
end

#end_timeString

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

Returns:

  • (String)


1848
1849
1850
# File 'lib/google/apis/ml_v1/classes.rb', line 1848

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)


1853
1854
1855
# File 'lib/google/apis/ml_v1/classes.rb', line 1853

def is_cancellation_requested
  @is_cancellation_requested
end

#labelsHash<String,String>

The user labels, inherited from the model or the model version being operated on. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1860
1861
1862
# File 'lib/google/apis/ml_v1/classes.rb', line 1860

def labels
  @labels
end

#model_nameString

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

Returns:

  • (String)


1865
1866
1867
# File 'lib/google/apis/ml_v1/classes.rb', line 1865

def model_name
  @model_name
end

#operation_typeString

The operation type. Corresponds to the JSON property operationType

Returns:

  • (String)


1870
1871
1872
# File 'lib/google/apis/ml_v1/classes.rb', line 1870

def operation_type
  @operation_type
end

#project_numberFixnum

Contains the project number associated with the operation. Corresponds to the JSON property projectNumber

Returns:

  • (Fixnum)


1875
1876
1877
# File 'lib/google/apis/ml_v1/classes.rb', line 1875

def project_number
  @project_number
end

#start_timeString

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

Returns:

  • (String)


1880
1881
1882
# File 'lib/google/apis/ml_v1/classes.rb', line 1880

def start_time
  @start_time
end

#versionGoogle::Apis::MlV1::GoogleCloudMlV1Version

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



1888
1889
1890
# File 'lib/google/apis/ml_v1/classes.rb', line 1888

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
# File 'lib/google/apis/ml_v1/classes.rb', line 1895

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