Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
DeploymentWhatIfSettings,
ErrorAdditionalInfo,
ErrorResponse,
ExpressionEvaluationOptions,
GenericResource,
GenericResourceExpanded,
Identity,
Expand Down
26 changes: 26 additions & 0 deletions sdk/resources/arm-resources/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ export interface OnErrorDeployment {
deploymentName?: string;
}

/**
* Specifies whether template expressions are evaluated within the scope of the parent template or
* nested template.
*/
export interface ExpressionEvaluationOptions {
/**
* The scope to be used for evaluation of parameters, variables and functions in a nested
* template. Possible values include: 'NotSpecified', 'Outer', 'Inner'
*/
scope?: ExpressionEvaluationOptionsScopeType;
}

/**
* Deployment properties.
*/
Expand Down Expand Up @@ -164,6 +176,12 @@ export interface DeploymentProperties {
* The deployment on error behavior.
*/
onErrorDeployment?: OnErrorDeployment;
/**
* Specifies whether template expressions are evaluated within the scope of the parent template
* or nested template. Only applicable to nested templates. If not specified, default value is
* outer.
*/
expressionEvaluationOptions?: ExpressionEvaluationOptions;
}

/**
Expand Down Expand Up @@ -1811,6 +1829,14 @@ export type DeploymentMode = 'Incremental' | 'Complete';
*/
export type OnErrorDeploymentType = 'LastSuccessful' | 'SpecificDeployment';

/**
* Defines values for ExpressionEvaluationOptionsScopeType.
* Possible values include: 'NotSpecified', 'Outer', 'Inner'
* @readonly
* @enum {string}
*/
export type ExpressionEvaluationOptionsScopeType = 'NotSpecified' | 'Outer' | 'Inner';

/**
* Defines values for WhatIfResultFormat.
* Possible values include: 'ResourceIdOnly', 'FullResourcePayloads'
Expand Down
23 changes: 23 additions & 0 deletions sdk/resources/arm-resources/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,22 @@ export const OnErrorDeployment: msRest.CompositeMapper = {
}
};

export const ExpressionEvaluationOptions: msRest.CompositeMapper = {
serializedName: "ExpressionEvaluationOptions",
type: {
name: "Composite",
className: "ExpressionEvaluationOptions",
modelProperties: {
scope: {
serializedName: "scope",
type: {
name: "String"
}
}
}
}
};

export const DeploymentProperties: msRest.CompositeMapper = {
serializedName: "DeploymentProperties",
type: {
Expand Down Expand Up @@ -233,6 +249,13 @@ export const DeploymentProperties: msRest.CompositeMapper = {
name: "Composite",
className: "OnErrorDeployment"
}
},
expressionEvaluationOptions: {
serializedName: "expressionEvaluationOptions",
type: {
name: "Composite",
className: "ExpressionEvaluationOptions"
}
}
}
}
Expand Down
54 changes: 54 additions & 0 deletions sdk/resources/arm-resources/src/operations/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,38 @@ export class Providers {
callback) as Promise<Models.ProvidersUnregisterResponse>;
}

/**
* Registers a management group with a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to register.
* @param groupId The management group ID.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param resourceProviderNamespace The namespace of the resource provider to register.
* @param groupId The management group ID.
* @param callback The callback
*/
registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param resourceProviderNamespace The namespace of the resource provider to register.
* @param groupId The management group ID.
* @param options The optional parameters
* @param callback The callback
*/
registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
registerAtManagementGroupScope(resourceProviderNamespace: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
return this.client.sendOperationRequest(
{
resourceProviderNamespace,
groupId,
options
},
registerAtManagementGroupScopeOperationSpec,
callback);
}

/**
* Registers a subscription with a resource provider.
* @param resourceProviderNamespace The namespace of the resource provider to register.
Expand Down Expand Up @@ -269,6 +301,28 @@ const unregisterOperationSpec: msRest.OperationSpec = {
serializer
};

const registerAtManagementGroupScopeOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register",
urlParameters: [
Parameters.resourceProviderNamespace,
Parameters.groupId
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};

const registerOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register",
Expand Down