संपादित करें

इसके माध्यम से साझा किया गया


Class OperationalizationDefinition

OperationalizationDefinition

azureml.deploy.operationalization.OperationalizationDefinition(name, op,
    defs_extent={})

Base abstract class defining a service's properties.

Create a new publish definition.

Arguments

name

The web service name.

op

A reference to the deploy client instance.

defs_extent

A mixin of subclass specific definitions.

alias(alias)

Set the optional service function name alias to use in order to consume the service.

Example:

service = client.service('score-service').alias('score').deploy()

# `score()` is the function that will call the `score-service`
result = service.score()

Arguments

alias

The service function name alias to use in order to consume the service.

Returns

Self OperationalizationDefinition for fluent API.

deploy

deploy()

Bundle up the definition properties and publish the service.

To be implemented by subclasses.

Returns

A new instance of Service representing the service deployed.

description

description(description)

Set the service's optional description.

Arguments

description

The description of the service.

Returns

Self OperationalizationDefinition for fluent API.

redeploy

redeploy(force=False)

Bundle up the definition properties and update the service.

To be implemented by subclasses.

Returns

A new instance of Service representing the service deployed.

version

version(version)

Set the service's optional version.

Arguments

version

The version of the service.

Returns

Self OperationalizationDefinition for fluent API.