Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadModelRequest

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

Overview

Request message for ModelService.UploadModel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1UploadModelRequest

Returns a new instance of GoogleCloudAiplatformV1UploadModelRequest.



23315
23316
23317
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23315

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

Instance Attribute Details

#modelGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Model

A trained machine learning Model. Corresponds to the JSON property model



23289
23290
23291
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23289

def model
  @model
end

#model_idString

Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen. Corresponds to the JSON property modelId

Returns:

  • (String)


23297
23298
23299
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23297

def model_id
  @model_id
end

#parent_modelString

Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. Corresponds to the JSON property parentModel

Returns:

  • (String)


23303
23304
23305
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23303

def parent_model
  @parent_model
end

#service_accountString

Optional. The user-provided custom service account to use to do the model upload. If empty, Vertex AI Service Agent will be used. Users uploading the Model must have the iam.serviceAccounts.actAs permission on this service account. Also, this account must belong to the project specified in the parent field and have all necessary read permissions. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


23313
23314
23315
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23313

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23320
23321
23322
23323
23324
23325
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23320

def update!(**args)
  @model = args[:model] if args.key?(:model)
  @model_id = args[:model_id] if args.key?(:model_id)
  @parent_model = args[:parent_model] if args.key?(:parent_model)
  @service_account = args[:service_account] if args.key?(:service_account)
end