WebserviceDeploymentConfiguration class

Definition

Defines the base-class functionality for all Webservice deployment configuration objects.

This class represents the configuration parameters for deploying a Webservice on a specific target. For example, to create deployment for Azure Kubernetes Service, use the deploy_configuration method of the AksWebservice class.

WebserviceDeploymentConfiguration(type, description=None, tags=None, properties=None, primary_key=None, secondary_key=None, location=None)
Inheritance
builtins.object
WebserviceDeploymentConfiguration

Parameters

type
Webservice

The type of Webservice associated with this object.

description
str

A description to give this Webservice.

tags
dict[str, str]

A dictionary of key value tags to give this Webservice.

properties
dict[str, str]

A dictionary of key value properties to give this Webservice. These properties cannot be changed after deployment, however new key value pairs can be added.

primary_key
str

A primary auth key to use for this Webservice.

secondary_key
str

A secondary auth key to use for this Webservice.

location
str

The Azure region to deploy this Webservice to.

Methods

validate_configuration()

Check that the specified configuration values are valid.

Raises a WebserviceException if validation fails.

validate_image(image)

Check that the image that is being deployed to the Webservice is valid.

Raises a WebserviceException if validation fails.

validate_configuration()

Check that the specified configuration values are valid.

Raises a WebserviceException if validation fails.

validate_configuration()

validate_image(image)

Check that the image that is being deployed to the Webservice is valid.

Raises a WebserviceException if validation fails.

validate_image(image)

Parameters

cls

Indicates that this is a class method.

image
Image

The image that will be deployed to the webservice.

Exceptions