/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * ClassicAdministrators * __NOTE__: An instance of this class is automatically created for an * instance of the AuthorizationManagementClient. */ export interface ClassicAdministrators { /** * Gets service administrator, account administrator, and co-administrators for * the subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets service administrator, account administrator, and co-administrators for * the subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClassicAdministratorListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClassicAdministratorListResult} [result] - The deserialized result object if an error did not occur. * See {@link ClassicAdministratorListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets service administrator, account administrator, and co-administrators for * the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets service administrator, account administrator, and co-administrators for * the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ClassicAdministratorListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ClassicAdministratorListResult} [result] - The deserialized result object if an error did not occur. * See {@link ClassicAdministratorListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ProviderOperationsMetadataOperations * __NOTE__: An instance of this class is automatically created for an * instance of the AuthorizationManagementClient. */ export interface ProviderOperationsMetadataOperations { /** * Gets provider operations metadata for the specified resource provider. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Specifies whether to expand the values. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceProviderNamespace: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets provider operations metadata for the specified resource provider. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Specifies whether to expand the values. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ProviderOperationsMetadata} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ProviderOperationsMetadata} [result] - The deserialized result object if an error did not occur. * See {@link ProviderOperationsMetadata} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceProviderNamespace: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceProviderNamespace: string, callback: ServiceCallback): void; get(resourceProviderNamespace: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets provider operations metadata for all resource providers. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Specifies whether to expand the values. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets provider operations metadata for all resource providers. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Specifies whether to expand the values. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ProviderOperationsMetadataListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ProviderOperationsMetadataListResult} [result] - The deserialized result object if an error did not occur. * See {@link ProviderOperationsMetadataListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets provider operations metadata for all resource providers. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets provider operations metadata for all resource providers. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ProviderOperationsMetadataListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ProviderOperationsMetadataListResult} [result] - The deserialized result object if an error did not occur. * See {@link ProviderOperationsMetadataListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * RoleAssignments * __NOTE__: An instance of this class is automatically created for an * instance of the AuthorizationManagementClient. */ export interface RoleAssignments { /** * Gets role assignments for a resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {string} parentResourcePath The parent resource identity. * * @param {string} resourceType The resource type of the resource. * * @param {string} resourceName The name of the resource to get role * assignments for. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceWithHttpOperationResponse(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets role assignments for a resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {string} parentResourcePath The parent resource identity. * * @param {string} resourceType The resource type of the resource. * * @param {string} resourceName The name of the resource to get role * assignments for. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, callback: ServiceCallback): void; listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets role assignments for a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets role assignments for a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceGroup(resourceGroupName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listForResourceGroup(resourceGroupName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a role assignment. * * @param {string} scope The scope of the role assignment to delete. * * @param {string} roleAssignmentName The name of the role assignment to * delete. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(scope: string, roleAssignmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a role assignment. * * @param {string} scope The scope of the role assignment to delete. * * @param {string} roleAssignmentName The name of the role assignment to * delete. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignment} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(scope: string, roleAssignmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(scope: string, roleAssignmentName: string, callback: ServiceCallback): void; deleteMethod(scope: string, roleAssignmentName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a role assignment. * * @param {string} scope The scope of the role assignment to create. The scope * can be any REST resource instance. For example, use * '/subscriptions/{subscription-id}/' for a subscription, * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for * a resource group, and * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' * for a resource. * * @param {string} roleAssignmentName The name of the role assignment to * create. It can be any valid GUID. * * @param {object} parameters Parameters for the role assignment. * * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * * @param {string} [parameters.principalType] The principal type of the * assigned principal ID. Possible values include: 'User', 'Group', * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * * @param {boolean} [parameters.canDelegate] The delgation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createWithHttpOperationResponse(scope: string, roleAssignmentName: string, parameters: models.RoleAssignmentCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a role assignment. * * @param {string} scope The scope of the role assignment to create. The scope * can be any REST resource instance. For example, use * '/subscriptions/{subscription-id}/' for a subscription, * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for * a resource group, and * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' * for a resource. * * @param {string} roleAssignmentName The name of the role assignment to * create. It can be any valid GUID. * * @param {object} parameters Parameters for the role assignment. * * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * * @param {string} [parameters.principalType] The principal type of the * assigned principal ID. Possible values include: 'User', 'Group', * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * * @param {boolean} [parameters.canDelegate] The delgation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignment} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ create(scope: string, roleAssignmentName: string, parameters: models.RoleAssignmentCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; create(scope: string, roleAssignmentName: string, parameters: models.RoleAssignmentCreateParameters, callback: ServiceCallback): void; create(scope: string, roleAssignmentName: string, parameters: models.RoleAssignmentCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified role assignment. * * @param {string} scope The scope of the role assignment. * * @param {string} roleAssignmentName The name of the role assignment to get. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(scope: string, roleAssignmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified role assignment. * * @param {string} scope The scope of the role assignment. * * @param {string} roleAssignmentName The name of the role assignment to get. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignment} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(scope: string, roleAssignmentName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(scope: string, roleAssignmentName: string, callback: ServiceCallback): void; get(scope: string, roleAssignmentName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a role assignment. * * @param {string} roleId The ID of the role assignment to delete. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteByIdWithHttpOperationResponse(roleId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a role assignment. * * @param {string} roleId The ID of the role assignment to delete. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignment} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteById(roleId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteById(roleId: string, callback: ServiceCallback): void; deleteById(roleId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a role assignment by ID. * * @param {string} roleId The ID of the role assignment to create. * * @param {object} parameters Parameters for the role assignment. * * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * * @param {string} [parameters.principalType] The principal type of the * assigned principal ID. Possible values include: 'User', 'Group', * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * * @param {boolean} [parameters.canDelegate] The delgation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createByIdWithHttpOperationResponse(roleId: string, parameters: models.RoleAssignmentCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a role assignment by ID. * * @param {string} roleId The ID of the role assignment to create. * * @param {object} parameters Parameters for the role assignment. * * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * * @param {string} [parameters.principalType] The principal type of the * assigned principal ID. Possible values include: 'User', 'Group', * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * * @param {boolean} [parameters.canDelegate] The delgation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignment} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createById(roleId: string, parameters: models.RoleAssignmentCreateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createById(roleId: string, parameters: models.RoleAssignmentCreateParameters, callback: ServiceCallback): void; createById(roleId: string, parameters: models.RoleAssignmentCreateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets a role assignment by ID. * * @param {string} roleId The ID of the role assignment to get. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getByIdWithHttpOperationResponse(roleId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a role assignment by ID. * * @param {string} roleId The ID of the role assignment to get. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignment} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getById(roleId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getById(roleId: string, callback: ServiceCallback): void; getById(roleId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all role assignments for the subscription. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all role assignments for the subscription. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets role assignments for a scope. * * @param {string} scope The scope of the role assignments. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForScopeWithHttpOperationResponse(scope: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets role assignments for a scope. * * @param {string} scope The scope of the role assignments. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all role assignments at or above the scope. Use * $filter=principalId eq {id} to return all role assignments at, above or * below the scope for the specified principal. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForScope(scope: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listForScope(scope: string, callback: ServiceCallback): void; listForScope(scope: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets role assignments for a resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets role assignments for a resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceNext(nextPageLink: string, callback: ServiceCallback): void; listForResourceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets role assignments for a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets role assignments for a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listForResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all role assignments for the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all role assignments for the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets role assignments for a scope. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForScopeNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets role assignments for a scope. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForScopeNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForScopeNext(nextPageLink: string, callback: ServiceCallback): void; listForScopeNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Permissions * __NOTE__: An instance of this class is automatically created for an * instance of the AuthorizationManagementClient. */ export interface Permissions { /** * Gets all permissions the caller has for a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all permissions the caller has for a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PermissionGetResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PermissionGetResult} [result] - The deserialized result object if an error did not occur. * See {@link PermissionGetResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listForResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all permissions the caller has for a resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {string} parentResourcePath The parent resource identity. * * @param {string} resourceType The resource type of the resource. * * @param {string} resourceName The name of the resource to get the permissions * for. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceWithHttpOperationResponse(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all permissions the caller has for a resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {string} parentResourcePath The parent resource identity. * * @param {string} resourceType The resource type of the resource. * * @param {string} resourceName The name of the resource to get the permissions * for. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PermissionGetResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PermissionGetResult} [result] - The deserialized result object if an error did not occur. * See {@link PermissionGetResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, callback: ServiceCallback): void; listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all permissions the caller has for a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all permissions the caller has for a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PermissionGetResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PermissionGetResult} [result] - The deserialized result object if an error did not occur. * See {@link PermissionGetResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listForResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all permissions the caller has for a resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all permissions the caller has for a resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PermissionGetResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PermissionGetResult} [result] - The deserialized result object if an error did not occur. * See {@link PermissionGetResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceNext(nextPageLink: string, callback: ServiceCallback): void; listForResourceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * RoleDefinitions * __NOTE__: An instance of this class is automatically created for an * instance of the AuthorizationManagementClient. */ export interface RoleDefinitions { /** * Deletes a role definition. * * @param {string} scope The scope of the role definition. * * @param {string} roleDefinitionId The ID of the role definition to delete. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(scope: string, roleDefinitionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a role definition. * * @param {string} scope The scope of the role definition. * * @param {string} roleDefinitionId The ID of the role definition to delete. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleDefinition} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleDefinition} [result] - The deserialized result object if an error did not occur. * See {@link RoleDefinition} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(scope: string, roleDefinitionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(scope: string, roleDefinitionId: string, callback: ServiceCallback): void; deleteMethod(scope: string, roleDefinitionId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get role definition by name (GUID). * * @param {string} scope The scope of the role definition. * * @param {string} roleDefinitionId The ID of the role definition. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(scope: string, roleDefinitionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get role definition by name (GUID). * * @param {string} scope The scope of the role definition. * * @param {string} roleDefinitionId The ID of the role definition. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleDefinition} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleDefinition} [result] - The deserialized result object if an error did not occur. * See {@link RoleDefinition} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(scope: string, roleDefinitionId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(scope: string, roleDefinitionId: string, callback: ServiceCallback): void; get(scope: string, roleDefinitionId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a role definition. * * @param {string} scope The scope of the role definition. * * @param {string} roleDefinitionId The ID of the role definition. * * @param {object} roleDefinition The values for the role definition. * * @param {string} [roleDefinition.roleName] The role name. * * @param {string} [roleDefinition.description] The role definition * description. * * @param {string} [roleDefinition.roleType] The role type. * * @param {array} [roleDefinition.permissions] Role definition permissions. * * @param {array} [roleDefinition.assignableScopes] Role definition assignable * scopes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(scope: string, roleDefinitionId: string, roleDefinition: models.RoleDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a role definition. * * @param {string} scope The scope of the role definition. * * @param {string} roleDefinitionId The ID of the role definition. * * @param {object} roleDefinition The values for the role definition. * * @param {string} [roleDefinition.roleName] The role name. * * @param {string} [roleDefinition.description] The role definition * description. * * @param {string} [roleDefinition.roleType] The role type. * * @param {array} [roleDefinition.permissions] Role definition permissions. * * @param {array} [roleDefinition.assignableScopes] Role definition assignable * scopes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleDefinition} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleDefinition} [result] - The deserialized result object if an error did not occur. * See {@link RoleDefinition} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(scope: string, roleDefinitionId: string, roleDefinition: models.RoleDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(scope: string, roleDefinitionId: string, roleDefinition: models.RoleDefinition, callback: ServiceCallback): void; createOrUpdate(scope: string, roleDefinitionId: string, roleDefinition: models.RoleDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get all role definitions that are applicable at scope and above. * * @param {string} scope The scope of the role definition. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * atScopeAndBelow filter to search below the given scope as well. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(scope: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get all role definitions that are applicable at scope and above. * * @param {string} scope The scope of the role definition. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * atScopeAndBelow filter to search below the given scope as well. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleDefinitionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleDefinitionListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleDefinitionListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(scope: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; list(scope: string, callback: ServiceCallback): void; list(scope: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets a role definition by ID. * * @param {string} roleId The fully qualified role definition ID. Use the * format, * /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} * for subscription level role definitions, or * /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for * tenant level role definitions. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getByIdWithHttpOperationResponse(roleId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a role definition by ID. * * @param {string} roleId The fully qualified role definition ID. Use the * format, * /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} * for subscription level role definitions, or * /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for * tenant level role definitions. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleDefinition} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleDefinition} [result] - The deserialized result object if an error did not occur. * See {@link RoleDefinition} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getById(roleId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getById(roleId: string, callback: ServiceCallback): void; getById(roleId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get all role definitions that are applicable at scope and above. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get all role definitions that are applicable at scope and above. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RoleDefinitionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RoleDefinitionListResult} [result] - The deserialized result object if an error did not occur. * See {@link RoleDefinitionListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * DenyAssignments * __NOTE__: An instance of this class is automatically created for an * instance of the AuthorizationManagementClient. */ export interface DenyAssignments { /** * Gets deny assignments for a resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {string} parentResourcePath The parent resource identity. * * @param {string} resourceType The resource type of the resource. * * @param {string} resourceName The name of the resource to get deny * assignments for. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceWithHttpOperationResponse(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets deny assignments for a resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceProviderNamespace The namespace of the resource * provider. * * @param {string} parentResourcePath The parent resource identity. * * @param {string} resourceType The resource type of the resource. * * @param {string} resourceName The name of the resource to get deny * assignments for. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, callback: ServiceCallback): void; listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets deny assignments for a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets deny assignments for a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceGroup(resourceGroupName: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listForResourceGroup(resourceGroupName: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all deny assignments for the subscription. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all deny assignments for the subscription. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified deny assignment. * * @param {string} scope The scope of the deny assignment. * * @param {string} denyAssignmentId The ID of the deny assignment to get. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(scope: string, denyAssignmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified deny assignment. * * @param {string} scope The scope of the deny assignment. * * @param {string} denyAssignmentId The ID of the deny assignment to get. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignment} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(scope: string, denyAssignmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(scope: string, denyAssignmentId: string, callback: ServiceCallback): void; get(scope: string, denyAssignmentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets a deny assignment by ID. * * @param {string} denyAssignmentId The fully qualified deny assignment ID. For * example, use the format, * /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} * for subscription level deny assignments, or * /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for * tenant level deny assignments. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getByIdWithHttpOperationResponse(denyAssignmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a deny assignment by ID. * * @param {string} denyAssignmentId The fully qualified deny assignment ID. For * example, use the format, * /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} * for subscription level deny assignments, or * /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for * tenant level deny assignments. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignment} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignment} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignment} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getById(denyAssignmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getById(denyAssignmentId: string, callback: ServiceCallback): void; getById(denyAssignmentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets deny assignments for a scope. * * @param {string} scope The scope of the deny assignments. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForScopeWithHttpOperationResponse(scope: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets deny assignments for a scope. * * @param {string} scope The scope of the deny assignments. * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. Use * $filter=atScope() to return all deny assignments at or above the scope. Use * $filter=denyAssignmentName eq '{name}' to search deny assignments by name at * specified scope. Use $filter=principalId eq '{id}' to return all deny * assignments at, above and below the scope for the specified principal. Use * $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, * above and below the scope for the specified principal. This filter is * different from the principalId filter as it returns not only those deny * assignments that contain the specified principal is the Principals list but * also those deny assignments that contain the specified principal is the * ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is * used, only the deny assignment name and description properties are returned. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForScope(scope: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listForScope(scope: string, callback: ServiceCallback): void; listForScope(scope: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets deny assignments for a resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets deny assignments for a resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceNext(nextPageLink: string, callback: ServiceCallback): void; listForResourceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets deny assignments for a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets deny assignments for a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listForResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all deny assignments for the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all deny assignments for the subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets deny assignments for a scope. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listForScopeNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets deny assignments for a scope. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DenyAssignmentListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DenyAssignmentListResult} [result] - The deserialized result object if an error did not occur. * See {@link DenyAssignmentListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listForScopeNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listForScopeNext(nextPageLink: string, callback: ServiceCallback): void; listForScopeNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; }