Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR @azure/arm-resources] Add missing properties from list tenants API #7394

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)
3 changes: 3 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,12 @@ export {
Resource,
ResourceGroup,
ResourceGroupProperties,
ScopedDeployment,
Sku,
SubResource,
TagCount,
Tags,
TagsResource,
TagValue,
TemplateHashResult,
TemplateLink,
Expand Down
162 changes: 156 additions & 6 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 @@ -800,7 +814,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 +833,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 +1124,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 +1313,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 +1345,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 +1604,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 +3162,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 +3262,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
108 changes: 108 additions & 0 deletions sdk/resources/arm-resources/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,31 @@ export const Deployment: msRest.CompositeMapper = {
}
};

export const ScopedDeployment: msRest.CompositeMapper = {
serializedName: "ScopedDeployment",
type: {
name: "Composite",
className: "ScopedDeployment",
modelProperties: {
location: {
required: true,
serializedName: "location",
type: {
name: "String"
}
},
properties: {
required: true,
serializedName: "properties",
type: {
name: "Composite",
className: "DeploymentProperties"
}
}
}
}
};

export const DeploymentExportResult: msRest.CompositeMapper = {
serializedName: "DeploymentExportResult",
type: {
Expand Down Expand Up @@ -1849,6 +1874,89 @@ export const WhatIfOperationResult: msRest.CompositeMapper = {
}
};

export const Tags: msRest.CompositeMapper = {
serializedName: "Tags",
type: {
name: "Composite",
className: "Tags",
modelProperties: {
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};

export const TagsPatchResource: msRest.CompositeMapper = {
serializedName: "TagsPatchResource",
type: {
name: "Composite",
className: "TagsPatchResource",
modelProperties: {
operation: {
serializedName: "operation",
type: {
name: "String"
}
},
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "Tags"
}
}
}
}
};

export const TagsResource: msRest.CompositeMapper = {
serializedName: "TagsResource",
type: {
name: "Composite",
className: "TagsResource",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
},
name: {
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
type: {
readOnly: true,
serializedName: "type",
type: {
name: "String"
}
},
properties: {
required: true,
serializedName: "properties",
type: {
name: "Composite",
className: "Tags"
}
}
}
}
};

export const DeploymentsWhatIfAtSubscriptionScopeHeaders: msRest.CompositeMapper = {
serializedName: "deployments-whatifatsubscriptionscope-headers",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export {
Sku,
SubResource,
TagCount,
Tags,
TagsResource,
TagValue,
TemplateLink
} from "../models/mappers";
2 changes: 2 additions & 0 deletions sdk/resources/arm-resources/src/models/resourcesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export {
Sku,
SubResource,
TagCount,
Tags,
TagsResource,
TagValue,
TemplateLink
} from "../models/mappers";
Loading