-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR consumption/resource-manager] Renamed cost allocation tags to…
… cost tags and added schema for get list of all available tag keys (#2389) * Generated from 1f2de0f37c163aa960c824541bb9094f41418b45 Renamed cost allocation tags to cost tags and added schema for get list of all available tag keys Renamed cost allocation tags to cost tags and added schema for get list of all available tag keys * Generated from 5699a841d9bb36bb99d1fbeecf46459473d054ac Incorporated review comments Incorporated review comments * Generated from 3bd6450532e1e5132bbbe60dd88be6ff2716818a Incorporated review comments Incorporated review comments * Generated from 7f53393ed97f6918aed8a574dc62a42fd1e36011 Incorporated review comments Incorporated review comments
- Loading branch information
1 parent
c03d206
commit 145cc28
Showing
9 changed files
with
227 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
azure-mgmt-consumption/azure/mgmt/consumption/models/tag.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class Tag(Model): | ||
"""The tag resource. | ||
:param key: Tag key. | ||
:type key: str | ||
""" | ||
|
||
_attribute_map = { | ||
'key': {'key': 'key', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, key=None): | ||
super(Tag, self).__init__() | ||
self.key = key |
51 changes: 51 additions & 0 deletions
51
azure-mgmt-consumption/azure/mgmt/consumption/models/tags.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .proxy_resource import ProxyResource | ||
|
||
|
||
class Tags(ProxyResource): | ||
"""A resource listing all tags. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param e_tag: eTag of the resource. To handle concurrent update scenarion, | ||
this field will be used to determine whether the user is updating the | ||
latest version or not. | ||
:type e_tag: str | ||
:param tags: A list of Tag. | ||
:type tags: list[~azure.mgmt.consumption.models.Tag] | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'e_tag': {'key': 'eTag', 'type': 'str'}, | ||
'tags': {'key': 'properties.tags', 'type': '[Tag]'}, | ||
} | ||
|
||
def __init__(self, e_tag=None, tags=None): | ||
super(Tags, self).__init__(e_tag=e_tag) | ||
self.tags = tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.