Skip to content

Commit

Permalink
[AutoPR cost-management/resource-manager] [Hub Generated] Review requ…
Browse files Browse the repository at this point in the history
…est for Microsoft.CostManagement to add version stable/2019-01-01 (#4825)

* Generated from b8c32f37aa9e744d36530fcbd4caac35a37828f2

Adds suppression to readme

* Packaging update of azure-mgmt-costmanagement

* Generated from dda9bf78560444698902a49dadcbf2a5598dd1e9

updated examples with scope param and fixed syntax error
  • Loading branch information
AutorestCI authored Apr 12, 2019
1 parent 8cb1468 commit 558510a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 39 deletions.
1 change: 1 addition & 0 deletions azure-mgmt-costmanagement/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
3 changes: 3 additions & 0 deletions azure-mgmt-costmanagement/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ 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.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-costmanagement%2FREADME.png
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,16 @@ def list(
self, scope, custom_headers=None, raw=False, **operation_config):
"""Lists all exports at the given scope.
:param scope: The scope associated with query and export operations.
This includes '/subscriptions/{subscriptionId}/' for subscription
scope,
:param scope: The scope associated with export operations. This
includes '/subscriptions/{subscriptionId}' for subscription scope,
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
for resourceGroup scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for
Billing Account scope and
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
for Department scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and
'/providers/Microsoft.Management/managementGroups/{managementGroupId}
for Management Group scope..
for EnrollmentAccount scope.
:type scope: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down Expand Up @@ -109,19 +106,16 @@ def get(
self, scope, export_name, custom_headers=None, raw=False, **operation_config):
"""Gets the export for the defined scope by export name.
:param scope: The scope associated with query and export operations.
This includes '/subscriptions/{subscriptionId}/' for subscription
scope,
:param scope: The scope associated with export operations. This
includes '/subscriptions/{subscriptionId}' for subscription scope,
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
for resourceGroup scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for
Billing Account scope and
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
for Department scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and
'/providers/Microsoft.Management/managementGroups/{managementGroupId}
for Management Group scope..
for EnrollmentAccount scope.
:type scope: str
:param export_name: Export Name.
:type export_name: str
Expand Down Expand Up @@ -183,19 +177,16 @@ def create_or_update(
latest eTag to be set in the request. You may obtain the latest eTag by
performing a get operation. Create operation does not require eTag.
:param scope: The scope associated with query and export operations.
This includes '/subscriptions/{subscriptionId}/' for subscription
scope,
:param scope: The scope associated with export operations. This
includes '/subscriptions/{subscriptionId}' for subscription scope,
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
for resourceGroup scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for
Billing Account scope and
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
for Department scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and
'/providers/Microsoft.Management/managementGroups/{managementGroupId}
for Management Group scope..
for EnrollmentAccount scope.
:type scope: str
:param export_name: Export Name.
:type export_name: str
Expand Down Expand Up @@ -264,19 +255,16 @@ def delete(
self, scope, export_name, custom_headers=None, raw=False, **operation_config):
"""The operation to delete a export.
:param scope: The scope associated with query and export operations.
This includes '/subscriptions/{subscriptionId}/' for subscription
scope,
:param scope: The scope associated with export operations. This
includes '/subscriptions/{subscriptionId}' for subscription scope,
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
for resourceGroup scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for
Billing Account scope and
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
for Department scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and
'/providers/Microsoft.Management/managementGroups/{managementGroupId}
for Management Group scope..
for EnrollmentAccount scope.
:type scope: str
:param export_name: Export Name.
:type export_name: str
Expand Down Expand Up @@ -327,19 +315,16 @@ def execute(
self, scope, export_name, custom_headers=None, raw=False, **operation_config):
"""The operation to execute a export.
:param scope: The scope associated with query and export operations.
This includes '/subscriptions/{subscriptionId}/' for subscription
scope,
:param scope: The scope associated with export operations. This
includes '/subscriptions/{subscriptionId}' for subscription scope,
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
for resourceGroup scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for
Billing Account scope and
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
for Department scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and
'/providers/Microsoft.Management/managementGroups/{managementGroupId}
for Management Group scope..
for EnrollmentAccount scope.
:type scope: str
:param export_name: Export Name.
:type export_name: str
Expand Down Expand Up @@ -391,19 +376,16 @@ def get_execution_history(
"""Gets the execution history of a export for the defined scope by export
name.
:param scope: The scope associated with query and export operations.
This includes '/subscriptions/{subscriptionId}/' for subscription
scope,
:param scope: The scope associated with export operations. This
includes '/subscriptions/{subscriptionId}' for subscription scope,
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
for resourceGroup scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for
Billing Account scope and
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}'
for Department scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and
'/providers/Microsoft.Management/managementGroups/{managementGroupId}
for Management Group scope..
for EnrollmentAccount scope.
:type scope: str
:param export_name: Export Name.
:type export_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ def usage_by_scope(
self, scope, parameters, custom_headers=None, raw=False, **operation_config):
"""Query the usage data for scope defined.
:param scope: The scope associated with query and export operations.
This includes '/subscriptions/{subscriptionId}/' for subscription
scope,
:param scope: The scope associated with query operations. This
includes '/subscriptions/{subscriptionId}/' for subscription scope,
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
for resourceGroup scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for
Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-costmanagement/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
version=version,
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME),
long_description=readme + '\n\n' + history,
long_description_content_type='text/x-rst',
license='MIT License',
author='Microsoft Corporation',
author_email='azpysdkhelp@microsoft.com',
Expand Down

0 comments on commit 558510a

Please sign in to comment.