Services class

Class representing a Services.

Constructors

Services(AzureDeploymentManagerContext)

Create a Services.

Methods

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase)

Synchronously creates a new service or updates an existing service.

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase, ServiceCallback<ServiceResource>)
createOrUpdate(string, string, string, ServiceResource, ServiceCallback<ServiceResource>)
deleteMethod(string, string, string, RequestOptionsBase)
deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, RequestOptionsBase)
get(string, string, string, RequestOptionsBase, ServiceCallback<ServiceResource>)
get(string, string, string, ServiceCallback<ServiceResource>)
list(string, string, RequestOptionsBase)
list(string, string, RequestOptionsBase, ServiceCallback<ServiceResource[]>)
list(string, string, ServiceCallback<ServiceResource[]>)

Constructor Details

Services(AzureDeploymentManagerContext)

Create a Services.

new Services(client: AzureDeploymentManagerContext)

Parameters

client
AzureDeploymentManagerContext

Reference to the service client.

Method Details

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase)

Synchronously creates a new service or updates an existing service.

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, options?: RequestOptionsBase): Promise<ServicesCreateOrUpdateResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

serviceInfo
ServiceResource

The service object

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServicesCreateOrUpdateResponse>

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase, ServiceCallback<ServiceResource>)

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

serviceInfo
ServiceResource

The service object

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ServiceResource>

The callback

createOrUpdate(string, string, string, ServiceResource, ServiceCallback<ServiceResource>)

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, callback: ServiceCallback<ServiceResource>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

serviceInfo
ServiceResource

The service object

callback

ServiceCallback<ServiceResource>

The callback

deleteMethod(string, string, string, RequestOptionsBase)

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

callback

ServiceCallback<void>

The callback

get(string, string, string, RequestOptionsBase)

function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: RequestOptionsBase): Promise<ServicesGetResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServicesGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<ServiceResource>)

function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ServiceResource>

The callback

get(string, string, string, ServiceCallback<ServiceResource>)

function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, callback: ServiceCallback<ServiceResource>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

serviceName

string

The name of the service resource.

callback

ServiceCallback<ServiceResource>

The callback

list(string, string, RequestOptionsBase)

function list(resourceGroupName: string, serviceTopologyName: string, options?: RequestOptionsBase): Promise<ServicesListResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServicesListResponse>

list(string, string, RequestOptionsBase, ServiceCallback<ServiceResource[]>)

function list(resourceGroupName: string, serviceTopologyName: string, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource[]>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ServiceResource[]>

The callback

list(string, string, ServiceCallback<ServiceResource[]>)

function list(resourceGroupName: string, serviceTopologyName: string, callback: ServiceCallback<ServiceResource[]>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

serviceTopologyName

string

The name of the service topology .

callback

ServiceCallback<ServiceResource[]>

The callback