Skip to content
Closed
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
2 changes: 1 addition & 1 deletion sdk/resources/arm-resources/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/resources/arm-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fresources%2Farm-resources%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/resources/arm-resources/README.png)
4 changes: 4 additions & 0 deletions sdk/resources/arm-resources/src/models/deploymentsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ export {
Resource,
ResourceGroup,
ResourceGroupProperties,
ResourceReference,
ScopedDeployment,
Sku,
SubResource,
TagCount,
Tags,
TagsResource,
TagValue,
TemplateHashResult,
TemplateLink,
Expand Down
233 changes: 210 additions & 23 deletions sdk/resources/arm-resources/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,20 @@ export interface Deployment {
properties: DeploymentProperties;
}

/**
* Deployment operation parameters.
*/
export interface ScopedDeployment {
/**
* The location to store the deployment data.
*/
location: string;
/**
* The deployment properties.
*/
properties: DeploymentProperties;
}

/**
* The deployment export result.
*/
Expand Down Expand Up @@ -411,6 +425,17 @@ export interface OnErrorDeploymentExtended {
deploymentName?: string;
}

/**
* The resource Id model.
*/
export interface ResourceReference {
/**
* The fully qualified resource Id.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
}

/**
* Deployment properties with additional details.
*/
Expand All @@ -437,45 +462,70 @@ export interface DeploymentPropertiesExtended {
readonly duration?: string;
/**
* Key/value pairs that represent deployment output.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
outputs?: any;
readonly outputs?: any;
/**
* The list of resource providers needed for the deployment.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
providers?: Provider[];
readonly providers?: Provider[];
/**
* The list of deployment dependencies.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
dependencies?: Dependency[];
/**
* The template content. Use only one of Template or TemplateLink.
*/
template?: any;
readonly dependencies?: Dependency[];
/**
* The URI referencing the template. Use only one of Template or TemplateLink.
* The URI referencing the template.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
templateLink?: TemplateLink;
readonly templateLink?: TemplateLink;
/**
* Deployment parameters. Use only one of Parameters or ParametersLink.
* Deployment parameters.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
parameters?: any;
readonly parameters?: any;
/**
* The URI referencing the parameters. Use only one of Parameters or ParametersLink.
* The URI referencing the parameters.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
parametersLink?: ParametersLink;
readonly parametersLink?: ParametersLink;
/**
* The deployment mode. Possible values are Incremental and Complete. Possible values include:
* 'Incremental', 'Complete'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
mode?: DeploymentMode;
readonly mode?: DeploymentMode;
/**
* The debug setting of the deployment.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
debugSetting?: DebugSetting;
readonly debugSetting?: DebugSetting;
/**
* The deployment on error behavior.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly onErrorDeployment?: OnErrorDeploymentExtended;
/**
* The hash produced for the template.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
onErrorDeployment?: OnErrorDeploymentExtended;
readonly templateHash?: string;
/**
* Array of provisioned resources.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly outputResources?: ResourceReference[];
/**
* Array of validated resources.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly validatedResources?: ResourceReference[];
/**
* The deployment error.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly error?: ErrorResponse;
}

/**
Expand All @@ -484,8 +534,9 @@ export interface DeploymentPropertiesExtended {
export interface DeploymentValidateResult {
/**
* The deployment validation error.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
error?: ErrorResponse;
readonly error?: ErrorResponse;
/**
* The template deployment properties.
*/
Expand Down Expand Up @@ -800,7 +851,7 @@ export interface TagCount {
*/
export interface TagValue extends BaseResource {
/**
* The tag ID.
* The tag value ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
Expand All @@ -819,7 +870,7 @@ export interface TagValue extends BaseResource {
*/
export interface TagDetails {
/**
* The tag ID.
* The tag name ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
Expand Down Expand Up @@ -1110,6 +1161,52 @@ export interface WhatIfOperationResult {
error?: ErrorResponse;
}

/**
* A dictionary of name and value pairs.
*/
export interface Tags {
tags?: { [propertyName: string]: string };
}

/**
* Wrapper resource for tags patch API request only.
*/
export interface TagsPatchResource {
/**
* The operation type for the patch API. Possible values include: 'Replace', 'Merge', 'Delete'
*/
operation?: OperationEnum;
/**
* The set of tags.
*/
properties?: Tags;
}

/**
* Wrapper resource for tags API requests and responses.
*/
export interface TagsResource extends BaseResource {
/**
* The ID of the tags wrapper resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The name of the tags wrapper resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The type of the tags wrapper resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* The set of tags.
*/
properties: Tags;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1253,8 +1350,9 @@ export interface ResourcesListByResourceGroupOptionalParams extends msRest.Reque
* and resourceGroup.<br><br>For example, to get all resources with 'demo' anywhere in the name,
* use: $filter=substringof('demo', name)<br><br>You can link more than one substringof together
* by adding and/or operators.<br><br>You can filter by tag names and values. For example, to
* filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq
* 'Value1'<br><br>You can use some properties together when filtering. The combinations you can
* filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When
* you filter by a tag name and value, the tags for each resource are not returned in the
* results.<br><br>You can use some properties together when filtering. The combinations you can
* use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and
* identity/principalId.
*/
Expand Down Expand Up @@ -1284,8 +1382,9 @@ export interface ResourcesListOptionalParams extends msRest.RequestOptionsBase {
* and resourceGroup.<br><br>For example, to get all resources with 'demo' anywhere in the name,
* use: $filter=substringof('demo', name)<br><br>You can link more than one substringof together
* by adding and/or operators.<br><br>You can filter by tag names and values. For example, to
* filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq
* 'Value1'<br><br>You can use some properties together when filtering. The combinations you can
* filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When
* you filter by a tag name and value, the tags for each resource are not returned in the
* results.<br><br>You can use some properties together when filtering. The combinations you can
* use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and
* identity/principalId.
*/
Expand Down Expand Up @@ -1542,6 +1641,14 @@ export type PropertyChangeType = 'Create' | 'Delete' | 'Modify' | 'Array';
*/
export type ChangeType = 'Create' | 'Delete' | 'Ignore' | 'Deploy' | 'NoChange' | 'Modify';

/**
* Defines values for OperationEnum.
* Possible values include: 'Replace', 'Merge', 'Delete'
* @readonly
* @enum {string}
*/
export type OperationEnum = 'Replace' | 'Merge' | 'Delete';

/**
* Contains response data for the list operation.
*/
Expand Down Expand Up @@ -3092,6 +3199,26 @@ export type ResourceGroupsListResponse = ResourceGroupListResult & {
};
};

/**
* Contains response data for the beginExportTemplate operation.
*/
export type ResourceGroupsBeginExportTemplateResponse = ResourceGroupExportResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ResourceGroupExportResult;
};
};

/**
* Contains response data for the listNext operation.
*/
Expand Down Expand Up @@ -3172,6 +3299,66 @@ export type TagsListResponse = TagsListResult & {
};
};

/**
* Contains response data for the createOrUpdateAtScope operation.
*/
export type TagsCreateOrUpdateAtScopeResponse = TagsResource & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: TagsResource;
};
};

/**
* Contains response data for the updateAtScope operation.
*/
export type TagsUpdateAtScopeResponse = TagsResource & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: TagsResource;
};
};

/**
* Contains response data for the getAtScope operation.
*/
export type TagsGetAtScopeResponse = TagsResource & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: TagsResource;
};
};

/**
* Contains response data for the listNext operation.
*/
Expand Down
Loading