Class: Google::Apis::MlV1::GoogleCloudMlV1RouteMap
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1RouteMap
- 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
Specifies HTTP paths served by a custom container. AI Platform Prediction sends requests to these paths on the container; the custom container must run an HTTP server that responds to these requests with appropriate responses. Read Custom container requirements for details on how to create your container image to meet these requirements.
Instance Attribute Summary collapse
-
#health ⇒ String
HTTP path on the container to send health checkss to.
-
#predict ⇒ String
HTTP path on the container to send prediction requests to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1RouteMap
constructor
A new instance of GoogleCloudMlV1RouteMap.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1RouteMap
Returns a new instance of GoogleCloudMlV1RouteMap.
2295 2296 2297 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2295 def initialize(**args) update!(**args) end |
Instance Attribute Details
#health ⇒ String
HTTP path on the container to send health checkss to. AI Platform Prediction
intermittently sends GET requests to this path on the container's IP address
and port to check that the container is healthy. Read more about health
checks.
For example, if you set this field to /bar
, then AI Platform Prediction
intermittently sends a GET request to the /bar
path on the port of your
container specified by the first value of Version.container.ports. If you don'
t specify this field, it defaults to the following value: /v1/models/ MODEL/
versions/VERSION The placeholders in this value are replaced as follows: *
MODEL: The name of the parent Model. This does not include the "projects/
PROJECT_ID/models/" prefix that the API returns in output; it is the bare
model name, as provided to projects.models.create. * VERSION: The name of the
model version. This does not include the "projects/PROJECT_ID /models/MODEL/
versions/" prefix that the API returns in output; it is the bare version name,
as provided to projects.models.versions.create.
Corresponds to the JSON property health
2274 2275 2276 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2274 def health @health end |
#predict ⇒ String
HTTP path on the container to send prediction requests to. AI Platform
Prediction forwards requests sent using projects.predict to this path on the
container's IP address and port. AI Platform Prediction then returns the
container's response in the API response. For example, if you set this field
to /foo
, then when AI Platform Prediction receives a prediction request, it
forwards the request body in a POST request to the /foo
path on the port of
your container specified by the first value of Version.container.ports. If you
don't specify this field, it defaults to the following value: /v1/models/MODEL/
versions/VERSION:predict The placeholders in this value are replaced as
follows: * MODEL: The name of the parent Model. This does not include the "
projects/PROJECT_ID/models/" prefix that the API returns in output; it is the
bare model name, as provided to projects.models.create. * VERSION: The name of
the model version. This does not include the "projects/PROJECT_ID/models/MODEL/
versions/" prefix that the API returns in output; it is the bare version name,
as provided to projects.models.versions.create.
Corresponds to the JSON property predict
2293 2294 2295 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2293 def predict @predict end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2300 2301 2302 2303 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2300 def update!(**args) @health = args[:health] if args.key?(:health) @predict = args[:predict] if args.key?(:predict) end |