Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::CreateModelRequest.
Request for creating a model.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#dry_run
def dry_run() -> ::Boolean
Returns
- (::Boolean) — Optional. Whether to run a dry run to validate the request (without actually creating the model).
#dry_run=
def dry_run=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Whether to run a dry run to validate the request (without actually creating the model).
Returns
- (::Boolean) — Optional. Whether to run a dry run to validate the request (without actually creating the model).
#model
def model() -> ::Google::Cloud::Retail::V2::Model
Returns
- (::Google::Cloud::Retail::V2::Model) — Required. The payload of the Model to create.
#model=
def model=(value) -> ::Google::Cloud::Retail::V2::Model
Parameter
- value (::Google::Cloud::Retail::V2::Model) — Required. The payload of the Model to create.
Returns
- (::Google::Cloud::Retail::V2::Model) — Required. The payload of the Model to create.
#parent
def parent() -> ::String
Returns
-
(::String) — Required. The parent resource under which to create the model. Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
#parent=
def parent=(value) -> ::String
Parameter
-
value (::String) — Required. The parent resource under which to create the model. Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
Returns
-
(::String) — Required. The parent resource under which to create the model. Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}