ServiceUnits class

Class representing a ServiceUnits.

Constructors

ServiceUnits(AzureDeploymentManagerContext)

Create a ServiceUnits.

Methods

beginCreateOrUpdate(string, string, string, string, ServiceUnitResource, RequestOptionsBase)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

createOrUpdate(string, string, string, string, ServiceUnitResource, RequestOptionsBase)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

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

Constructor Details

ServiceUnits(AzureDeploymentManagerContext)

Create a ServiceUnits.

new ServiceUnits(client: AzureDeploymentManagerContext)

Parameters

client
AzureDeploymentManagerContext

Reference to the service client.

Method Details

beginCreateOrUpdate(string, string, string, string, ServiceUnitResource, RequestOptionsBase)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

function beginCreateOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: string, serviceUnitInfo: ServiceUnitResource, options?: RequestOptionsBase): Promise<LROPoller>

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.

serviceUnitName

string

The name of the service unit resource.

serviceUnitInfo
ServiceUnitResource

The service unit resource object.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

createOrUpdate(string, string, string, string, ServiceUnitResource, RequestOptionsBase)

This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: string, serviceUnitInfo: ServiceUnitResource, options?: RequestOptionsBase): Promise<ServiceUnitsCreateOrUpdateResponse>

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.

serviceUnitName

string

The name of the service unit resource.

serviceUnitInfo
ServiceUnitResource

The service unit resource object.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServiceUnitsCreateOrUpdateResponse>

deleteMethod(string, string, string, string, RequestOptionsBase)

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: 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.

serviceUnitName

string

The name of the service unit resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

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

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: 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.

serviceUnitName

string

The name of the service unit resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

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

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceUnitName: 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.

serviceUnitName

string

The name of the service unit resource.

callback

ServiceCallback<void>

The callback

get(string, string, string, string, RequestOptionsBase)

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

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.

serviceUnitName

string

The name of the service unit resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServiceUnitsGetResponse>

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

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

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.

serviceUnitName

string

The name of the service unit resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ServiceUnitResource>

The callback

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

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

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.

serviceUnitName

string

The name of the service unit resource.

callback

ServiceCallback<ServiceUnitResource>

The callback

list(string, string, string, RequestOptionsBase)

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

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.ServiceUnitsListResponse>

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

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

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<ServiceUnitResource[]>

The callback

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

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

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<ServiceUnitResource[]>

The callback