Services class
表示服务的类。
构造函数
| Services(Azure |
创建服务。 |
方法
构造函数详细信息
Services(AzureDeploymentManagerContext)
创建服务。
new Services(client: AzureDeploymentManagerContext)
参数
对服务客户端的引用。
方法详细信息
createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase)
同步创建新的服务或更新现有服务。
function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, options?: RequestOptionsBase): Promise<ServicesCreateOrUpdateResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- serviceInfo
- ServiceResource
服务对象
- options
- RequestOptionsBase
可选参数
返回
Promise<ServicesCreateOrUpdateResponse>
承诺<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>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- serviceInfo
- ServiceResource
服务对象
- options
- RequestOptionsBase
可选参数
- callback
回调
createOrUpdate(string, string, string, ServiceResource, ServiceCallback<ServiceResource>)
function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, callback: ServiceCallback<ServiceResource>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- serviceInfo
- ServiceResource
服务对象
- callback
回调
deleteMethod(string, string, string, RequestOptionsBase)
function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: RequestOptionsBase): Promise<RestResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
-
ServiceCallback<void>
回调
deleteMethod(string, string, string, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- callback
-
ServiceCallback<void>
回调
get(string, string, string, RequestOptionsBase)
function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: RequestOptionsBase): Promise<ServicesGetResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<ServicesGetResponse>
承诺<Models.ServicesGetResponse>
get(string, string, string, RequestOptionsBase, ServiceCallback<ServiceResource>)
function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
get(string, string, string, ServiceCallback<ServiceResource>)
function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, callback: ServiceCallback<ServiceResource>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- serviceName
-
string
服务资源的名称。
- callback
回调
list(string, string, RequestOptionsBase)
function list(resourceGroupName: string, serviceTopologyName: string, options?: RequestOptionsBase): Promise<ServicesListResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<ServicesListResponse>
承诺<Models.ServicesListResponse>
list(string, string, RequestOptionsBase, ServiceCallback<ServiceResource[]>)
function list(resourceGroupName: string, serviceTopologyName: string, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource[]>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
list(string, string, ServiceCallback<ServiceResource[]>)
function list(resourceGroupName: string, serviceTopologyName: string, callback: ServiceCallback<ServiceResource[]>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- serviceTopologyName
-
string
服务拓扑的名称。
- callback
回调