-
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 cost-management/resource-manager] Fixing examples and adding …
…missed properties (#3480) * Generated from 73f83b4c51d265aca17132381382f60da78d5f7a Fixing examples and adding missed properties * Packaging update of azure-mgmt-costmanagement
- Loading branch information
1 parent
69327e8
commit 18172d8
Showing
17 changed files
with
465 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
0.1.0 (1970-01-01) | ||
++++++++++++++++++ | ||
|
||
* Initial Release |
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 @@ | ||
include *.rst |
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,49 @@ | ||
Microsoft Azure SDK for Python | ||
============================== | ||
|
||
This is the Microsoft Azure MyService Management Client Library. | ||
|
||
Azure Resource Manager (ARM) is the next generation of management APIs that | ||
replace the old Azure Service Management (ASM). | ||
|
||
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. | ||
|
||
For the older Azure Service Management (ASM) libraries, see | ||
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library. | ||
|
||
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package. | ||
|
||
|
||
Compatibility | ||
============= | ||
|
||
**IMPORTANT**: If you have an earlier version of the azure package | ||
(version < 1.0), you should uninstall it before installing this package. | ||
|
||
You can check the version using pip: | ||
|
||
.. code:: shell | ||
pip freeze | ||
If you see azure==0.11.0 (or any version below 1.0), uninstall it first: | ||
|
||
.. code:: shell | ||
pip uninstall azure | ||
Usage | ||
===== | ||
|
||
For code examples, see `MyService Management | ||
<https://docs.microsoft.com/python/api/overview/azure/>`__ | ||
on docs.microsoft.com. | ||
|
||
|
||
Provide Feedback | ||
================ | ||
|
||
If you encounter any bugs or have suggestions, please file an issue in the | ||
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__ | ||
section of the project. |
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 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
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 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
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
39 changes: 39 additions & 0 deletions
39
azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/operation.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,39 @@ | ||
# 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 Operation(Model): | ||
"""A Cost management REST API operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar name: Operation name: {provider}/{resource}/{operation}. | ||
:vartype name: str | ||
:param display: The object that represents the operation. | ||
:type display: ~azure.mgmt.costmanagement.models.OperationDisplay | ||
""" | ||
|
||
_validation = { | ||
'name': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display': {'key': 'display', 'type': 'OperationDisplay'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Operation, self).__init__(**kwargs) | ||
self.name = None | ||
self.display = kwargs.get('display', None) |
46 changes: 46 additions & 0 deletions
46
azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/operation_display.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,46 @@ | ||
# 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 OperationDisplay(Model): | ||
"""The object that represents the operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar provider: Service provider: Microsoft.CostManagement. | ||
:vartype provider: str | ||
:ivar resource: Resource on which the operation is performed: Dimensions, | ||
Query. | ||
:vartype resource: str | ||
:ivar operation: Operation type: Read, write, delete, etc. | ||
:vartype operation: str | ||
""" | ||
|
||
_validation = { | ||
'provider': {'readonly': True}, | ||
'resource': {'readonly': True}, | ||
'operation': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(OperationDisplay, self).__init__(**kwargs) | ||
self.provider = None | ||
self.resource = None | ||
self.operation = None |
46 changes: 46 additions & 0 deletions
46
azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/operation_display_py3.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,46 @@ | ||
# 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 OperationDisplay(Model): | ||
"""The object that represents the operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar provider: Service provider: Microsoft.CostManagement. | ||
:vartype provider: str | ||
:ivar resource: Resource on which the operation is performed: Dimensions, | ||
Query. | ||
:vartype resource: str | ||
:ivar operation: Operation type: Read, write, delete, etc. | ||
:vartype operation: str | ||
""" | ||
|
||
_validation = { | ||
'provider': {'readonly': True}, | ||
'resource': {'readonly': True}, | ||
'operation': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(OperationDisplay, self).__init__(**kwargs) | ||
self.provider = None | ||
self.resource = None | ||
self.operation = None |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/operation_paged.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,27 @@ | ||
# 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.paging import Paged | ||
|
||
|
||
class OperationPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`Operation <azure.mgmt.costmanagement.models.Operation>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[Operation]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(OperationPaged, self).__init__(*args, **kwargs) |
39 changes: 39 additions & 0 deletions
39
azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/operation_py3.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,39 @@ | ||
# 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 Operation(Model): | ||
"""A Cost management REST API operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar name: Operation name: {provider}/{resource}/{operation}. | ||
:vartype name: str | ||
:param display: The object that represents the operation. | ||
:type display: ~azure.mgmt.costmanagement.models.OperationDisplay | ||
""" | ||
|
||
_validation = { | ||
'name': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display': {'key': 'display', 'type': 'OperationDisplay'}, | ||
} | ||
|
||
def __init__(self, *, display=None, **kwargs) -> None: | ||
super(Operation, self).__init__(**kwargs) | ||
self.name = None | ||
self.display = display |
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.