https
GET
api.github.com
None
/repos/Azure/azure-sdk-for-python/pulls/1833
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Date', 'Thu, 17 May 2018 21:27:38 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4775'), ('X-RateLimit-Reset', '1526593184'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('ETag', 'W/"efe380b23abd3372e84ff35dbd437a3c"'), ('Last-Modified', 'Thu, 29 Mar 2018 00:23:35 GMT'), ('X-OAuth-Scopes', 'repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-Runtime-rack', '0.134239'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '1712:97B8:C2483A:FB57AE:5AFDF3C9')]
{"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/1833","id":165209780,"html_url":"https://github.com/Azure/azure-sdk-for-python/pull/1833","diff_url":"https://github.com/Azure/azure-sdk-for-python/pull/1833.diff","patch_url":"https://github.com/Azure/azure-sdk-for-python/pull/1833.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1833","number":1833,"state":"closed","locked":false,"title":"Automatic PR of restapi_auto_bgsky_master into master","user":{"login":"AutorestCI","id":18218145,"avatar_url":"https://avatars3.githubusercontent.com/u/18218145?v=4","gravatar_id":"","url":"https://api.github.com/users/AutorestCI","html_url":"https://github.com/AutorestCI","followers_url":"https://api.github.com/users/AutorestCI/followers","following_url":"https://api.github.com/users/AutorestCI/following{/other_user}","gists_url":"https://api.github.com/users/AutorestCI/gists{/gist_id}","starred_url":"https://api.github.com/users/AutorestCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutorestCI/subscriptions","organizations_url":"https://api.github.com/users/AutorestCI/orgs","repos_url":"https://api.github.com/users/AutorestCI/repos","events_url":"https://api.github.com/users/AutorestCI/events{/privacy}","received_events_url":"https://api.github.com/users/AutorestCI/received_events","type":"User","site_admin":false},"body":"Created to sync https://github.com/Azure/azure-rest-api-specs/pull/2335","created_at":"2018-01-25T19:40:09Z","updated_at":"2018-02-06T18:26:44Z","closed_at":"2018-02-06T18:26:41Z","merged_at":null,"merge_commit_sha":"7a4bc4682149db0f88b1ad628b432fe90ae87786","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":803155593,"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/labels/RestPRMerged","name":"RestPRMerged","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/1833/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/1833/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1833/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/statuses/3d6c419cd2ade53c240c40db96dbe34957351244","head":{"label":"Azure:restapi_auto_bgsky_master","ref":"restapi_auto_bgsky_master","sha":"3d6c419cd2ade53c240c40db96dbe34957351244","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":4127088,"name":"azure-sdk-for-python","full_name":"Azure/azure-sdk-for-python","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-sdk-for-python","description":"Microsoft Azure SDK for Python","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-for-python","forks_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/deployments","created_at":"2012-04-24T16:46:12Z","updated_at":"2018-05-16T23:44:09Z","pushed_at":"2018-05-17T20:20:22Z","git_url":"git://github.com/Azure/azure-sdk-for-python.git","ssh_url":"git@github.com:Azure/azure-sdk-for-python.git","clone_url":"https://github.com/Azure/azure-sdk-for-python.git","svn_url":"https://github.com/Azure/azure-sdk-for-python","homepage":"","size":64485,"stargazers_count":536,"watchers_count":536,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":450,"mirror_url":null,"archived":false,"open_issues_count":176,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":450,"open_issues":176,"watchers":536,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"f4715da4f929733b2b95c03142512f85ae8728a5","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":4127088,"name":"azure-sdk-for-python","full_name":"Azure/azure-sdk-for-python","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-sdk-for-python","description":"Microsoft Azure SDK for Python","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-for-python","forks_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/deployments","created_at":"2012-04-24T16:46:12Z","updated_at":"2018-05-16T23:44:09Z","pushed_at":"2018-05-17T20:20:22Z","git_url":"git://github.com/Azure/azure-sdk-for-python.git","ssh_url":"git@github.com:Azure/azure-sdk-for-python.git","clone_url":"https://github.com/Azure/azure-sdk-for-python.git","svn_url":"https://github.com/Azure/azure-sdk-for-python","homepage":"","size":64485,"stargazers_count":536,"watchers_count":536,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":450,"mirror_url":null,"archived":false,"open_issues_count":176,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":450,"open_issues":176,"watchers":536,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/1833"},"html":{"href":"https://github.com/Azure/azure-sdk-for-python/pull/1833"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1833"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1833/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/1833/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-python/pulls/1833/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-python/statuses/3d6c419cd2ade53c240c40db96dbe34957351244"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":9,"additions":1941,"deletions":43,"changed_files":23}

https
GET
api.github.com
None
/repos/Azure/azure-sdk-for-python/pulls/1833/files
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Date', 'Thu, 17 May 2018 21:27:38 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4774'), ('X-RateLimit-Reset', '1526593184'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('ETag', 'W/"974102d71c3b4d54ea78ae6faeddeb4d"'), ('Last-Modified', 'Thu, 29 Mar 2018 00:23:35 GMT'), ('X-OAuth-Scopes', 'repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-Runtime-rack', '0.104289'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '1713:97B6:61F208:7EE5BA:5AFDF3CA')]
[{"sha":"bf24d5ec847de2a0e8e63082550a5bcfeac05048","filename":"azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py","status":"modified","additions":33,"deletions":4,"changes":37,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -14,9 +14,12 @@\n from msrestazure import AzureConfiguration\n from .version import VERSION\n from .operations.usage_details_operations import UsageDetailsOperations\n+from .operations.marketplaces_operations import MarketplacesOperations\n from .operations.reservations_summaries_operations import ReservationsSummariesOperations\n from .operations.reservations_details_operations import ReservationsDetailsOperations\n+from .operations.budgets_operations import BudgetsOperations\n from .operations.operations import Operations\n+from .operations.price_sheet_operations import PriceSheetOperations\n from . import models\n \n \n@@ -30,16 +33,24 @@ class ConsumptionManagementClientConfiguration(AzureConfiguration):\n      object<msrestazure.azure_active_directory>`\n     :param subscription_id: Azure Subscription ID.\n     :type subscription_id: str\n+    :param resource_group_name: Azure Resource Group Name.\n+    :type resource_group_name: str\n+    :param budget_name: Budget Name.\n+    :type budget_name: str\n     :param str base_url: Service URL\n     \"\"\"\n \n     def __init__(\n-            self, credentials, subscription_id, base_url=None):\n+            self, credentials, subscription_id, resource_group_name, budget_name, base_url=None):\n \n         if credentials is None:\n             raise ValueError(\"Parameter 'credentials' must not be None.\")\n         if subscription_id is None:\n             raise ValueError(\"Parameter 'subscription_id' must not be None.\")\n+        if resource_group_name is None:\n+            raise ValueError(\"Parameter 'resource_group_name' must not be None.\")\n+        if budget_name is None:\n+            raise ValueError(\"Parameter 'budget_name' must not be None.\")\n         if not base_url:\n             base_url = 'https://management.azure.com'\n \n@@ -50,6 +61,8 @@ def __init__(\n \n         self.credentials = credentials\n         self.subscription_id = subscription_id\n+        self.resource_group_name = resource_group_name\n+        self.budget_name = budget_name\n \n \n class ConsumptionManagementClient(object):\n@@ -60,37 +73,53 @@ class ConsumptionManagementClient(object):\n \n     :ivar usage_details: UsageDetails operations\n     :vartype usage_details: azure.mgmt.consumption.operations.UsageDetailsOperations\n+    :ivar marketplaces: Marketplaces operations\n+    :vartype marketplaces: azure.mgmt.consumption.operations.MarketplacesOperations\n     :ivar reservations_summaries: ReservationsSummaries operations\n     :vartype reservations_summaries: azure.mgmt.consumption.operations.ReservationsSummariesOperations\n     :ivar reservations_details: ReservationsDetails operations\n     :vartype reservations_details: azure.mgmt.consumption.operations.ReservationsDetailsOperations\n+    :ivar budgets: Budgets operations\n+    :vartype budgets: azure.mgmt.consumption.operations.BudgetsOperations\n     :ivar operations: Operations operations\n     :vartype operations: azure.mgmt.consumption.operations.Operations\n+    :ivar price_sheet: PriceSheet operations\n+    :vartype price_sheet: azure.mgmt.consumption.operations.PriceSheetOperations\n \n     :param credentials: Credentials needed for the client to connect to Azure.\n     :type credentials: :mod:`A msrestazure Credentials\n      object<msrestazure.azure_active_directory>`\n     :param subscription_id: Azure Subscription ID.\n     :type subscription_id: str\n+    :param resource_group_name: Azure Resource Group Name.\n+    :type resource_group_name: str\n+    :param budget_name: Budget Name.\n+    :type budget_name: str\n     :param str base_url: Service URL\n     \"\"\"\n \n     def __init__(\n-            self, credentials, subscription_id, base_url=None):\n+            self, credentials, subscription_id, resource_group_name, budget_name, base_url=None):\n \n-        self.config = ConsumptionManagementClientConfiguration(credentials, subscription_id, base_url)\n+        self.config = ConsumptionManagementClientConfiguration(credentials, subscription_id, resource_group_name, budget_name, base_url)\n         self._client = ServiceClient(self.config.credentials, self.config)\n \n         client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}\n-        self.api_version = '2017-11-30'\n+        self.api_version = '2018-01-31'\n         self._serialize = Serializer(client_models)\n         self._deserialize = Deserializer(client_models)\n \n         self.usage_details = UsageDetailsOperations(\n             self._client, self.config, self._serialize, self._deserialize)\n+        self.marketplaces = MarketplacesOperations(\n+            self._client, self.config, self._serialize, self._deserialize)\n         self.reservations_summaries = ReservationsSummariesOperations(\n             self._client, self.config, self._serialize, self._deserialize)\n         self.reservations_details = ReservationsDetailsOperations(\n             self._client, self.config, self._serialize, self._deserialize)\n+        self.budgets = BudgetsOperations(\n+            self._client, self.config, self._serialize, self._deserialize)\n         self.operations = Operations(\n             self._client, self.config, self._serialize, self._deserialize)\n+        self.price_sheet = PriceSheetOperations(\n+            self._client, self.config, self._serialize, self._deserialize)"},{"sha":"d071f7f2e49d6159288f76e17b5cf2c52f900933","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py","status":"modified","additions":28,"deletions":0,"changes":28,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -11,34 +11,62 @@\n \n from .meter_details import MeterDetails\n from .usage_detail import UsageDetail\n+from .marketplace import Marketplace\n from .reservation_summaries import ReservationSummaries\n from .reservation_details import ReservationDetails\n+from .budget_time_period import BudgetTimePeriod\n+from .filters import Filters\n+from .current_spend import CurrentSpend\n+from .notification import Notification\n+from .budget import Budget\n from .error_details import ErrorDetails\n from .error_response import ErrorResponse, ErrorResponseException\n from .operation_display import OperationDisplay\n from .operation import Operation\n from .resource import Resource\n+from .proxy_resource import ProxyResource\n+from .price_sheet_list_result import PriceSheetListResult\n+from .price_sheet_model import PriceSheetModel\n from .usage_detail_paged import UsageDetailPaged\n+from .marketplace_paged import MarketplacePaged\n from .reservation_summaries_paged import ReservationSummariesPaged\n from .reservation_details_paged import ReservationDetailsPaged\n+from .budget_paged import BudgetPaged\n from .operation_paged import OperationPaged\n from .consumption_management_client_enums import (\n+    CategoryType,\n+    TimeGrainType,\n+    OperatorType,\n     Datagrain,\n )\n \n __all__ = [\n     'MeterDetails',\n     'UsageDetail',\n+    'Marketplace',\n     'ReservationSummaries',\n     'ReservationDetails',\n+    'BudgetTimePeriod',\n+    'Filters',\n+    'CurrentSpend',\n+    'Notification',\n+    'Budget',\n     'ErrorDetails',\n     'ErrorResponse', 'ErrorResponseException',\n     'OperationDisplay',\n     'Operation',\n     'Resource',\n+    'ProxyResource',\n+    'PriceSheetListResult',\n+    'PriceSheetModel',\n     'UsageDetailPaged',\n+    'MarketplacePaged',\n     'ReservationSummariesPaged',\n     'ReservationDetailsPaged',\n+    'BudgetPaged',\n     'OperationPaged',\n+    'CategoryType',\n+    'TimeGrainType',\n+    'OperatorType',\n     'Datagrain',\n ]"},{"sha":"f6485d49266ddf2734c02ab55dceb9aba94bfe0a","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py","status":"added","additions":91,"deletions":0,"changes":91,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,91 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from .proxy_resource import ProxyResource\n+\n+\n+class Budget(ProxyResource):\n+    \"\"\"A budget resource.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar id: Resource Id.\n+    :vartype id: str\n+    :ivar name: Resource name.\n+    :vartype name: str\n+    :ivar type: Resource type.\n+    :vartype type: str\n+    :param e_tag: eTag of the resource. To handle concurrent update scenarion,\n+     this field will be used to determine whether the user is updating the\n+     latest version or not.\n+    :type e_tag: str\n+    :param category: The category of the budget, whether the budget tracks\n+     cost or usage. Possible values include: 'Cost', 'Usage'\n+    :type category: str or ~azure.mgmt.consumption.models.CategoryType\n+    :param amount: The total amount of cost to track with the budget\n+    :type amount: decimal.Decimal\n+    :param time_grain: The time covered by a budget. Tracking of the amount\n+     will be reset based on the time grain. Possible values include: 'Monthly',\n+     'Quarterly', 'Annually'\n+    :type time_grain: str or ~azure.mgmt.consumption.models.TimeGrainType\n+    :param time_period: Has start and end date of the budget. The start date\n+     must be first of the month and should be less than the end date. Budget\n+     start date must be on or after June 1, 2017. Future start date should not\n+     be more than three months. Past start date should  be selected within the\n+     timegrain preiod. There are no restrictions on the end date.\n+    :type time_period: ~azure.mgmt.consumption.models.BudgetTimePeriod\n+    :param filters: May be used to filter budgets by resource group, resource,\n+     or meter.\n+    :type filters: ~azure.mgmt.consumption.models.Filters\n+    :ivar current_spend: The current amount of cost which is being tracked for\n+     a budget.\n+    :vartype current_spend: ~azure.mgmt.consumption.models.CurrentSpend\n+    :param notifications: Dictionary of notifications associated with the\n+     budget. Budget can have up to five notifications.\n+    :type notifications: dict[str,\n+     ~azure.mgmt.consumption.models.Notification]\n+    \"\"\"\n+\n+    _validation = {\n+        'id': {'readonly': True},\n+        'name': {'readonly': True},\n+        'type': {'readonly': True},\n+        'category': {'required': True},\n+        'amount': {'required': True},\n+        'time_grain': {'required': True},\n+        'time_period': {'required': True},\n+        'current_spend': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'id': {'key': 'id', 'type': 'str'},\n+        'name': {'key': 'name', 'type': 'str'},\n+        'type': {'key': 'type', 'type': 'str'},\n+        'e_tag': {'key': 'eTag', 'type': 'str'},\n+        'category': {'key': 'properties.category', 'type': 'str'},\n+        'amount': {'key': 'properties.amount', 'type': 'decimal'},\n+        'time_grain': {'key': 'properties.timeGrain', 'type': 'str'},\n+        'time_period': {'key': 'properties.timePeriod', 'type': 'BudgetTimePeriod'},\n+        'filters': {'key': 'properties.filters', 'type': 'Filters'},\n+        'current_spend': {'key': 'properties.currentSpend', 'type': 'CurrentSpend'},\n+        'notifications': {'key': 'properties.notifications', 'type': '{Notification}'},\n+    }\n+\n+    def __init__(self, category, amount, time_grain, time_period, e_tag=None, filters=None, notifications=None):\n+        super(Budget, self).__init__(e_tag=e_tag)\n+        self.category = category\n+        self.amount = amount\n+        self.time_grain = time_grain\n+        self.time_period = time_period\n+        self.filters = filters\n+        self.current_spend = None\n+        self.notifications = notifications"},{"sha":"2668382253e2d7aaefb8665a466d2482193e0246","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py","status":"added","additions":27,"deletions":0,"changes":27,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,27 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.paging import Paged\n+\n+\n+class BudgetPaged(Paged):\n+    \"\"\"\n+    A paging container for iterating over a list of :class:`Budget <azure.mgmt.consumption.models.Budget>` object\n+    \"\"\"\n+\n+    _attribute_map = {\n+        'next_link': {'key': 'nextLink', 'type': 'str'},\n+        'current_page': {'key': 'value', 'type': '[Budget]'}\n+    }\n+\n+    def __init__(self, *args, **kwargs):\n+\n+        super(BudgetPaged, self).__init__(*args, **kwargs)"},{"sha":"2b1c0e78418a1deb6b6147fc90ea53f1a03256d0","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py","status":"added","additions":37,"deletions":0,"changes":37,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,37 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class BudgetTimePeriod(Model):\n+    \"\"\"The start and end date for a budget.\n+\n+    :param start_date: The start date for the budget.\n+    :type start_date: datetime\n+    :param end_date: The end date for the budget. If not provided, we default\n+     this to 10 years from the start date.\n+    :type end_date: datetime\n+    \"\"\"\n+\n+    _validation = {\n+        'start_date': {'required': True},\n+    }\n+\n+    _attribute_map = {\n+        'start_date': {'key': 'startDate', 'type': 'iso-8601'},\n+        'end_date': {'key': 'endDate', 'type': 'iso-8601'},\n+    }\n+\n+    def __init__(self, start_date, end_date=None):\n+        super(BudgetTimePeriod, self).__init__()\n+        self.start_date = start_date\n+        self.end_date = end_date"},{"sha":"bb0db82f76b32c1d02cca1de69b0ecc49b3b548b","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py","status":"modified","additions":20,"deletions":0,"changes":20,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -12,6 +12,26 @@\n from enum import Enum\n \n \n+class CategoryType(Enum):\n+\n+    cost = \"Cost\"\n+    usage = \"Usage\"\n+\n+\n+class TimeGrainType(Enum):\n+\n+    monthly = \"Monthly\"\n+    quarterly = \"Quarterly\"\n+    annually = \"Annually\"\n+\n+\n+class OperatorType(Enum):\n+\n+    equal_to = \"EqualTo\"\n+    greater_than = \"GreaterThan\"\n+    greater_than_or_equal_to = \"GreaterThanOrEqualTo\"\n+\n+\n class Datagrain(Enum):\n \n     daily_grain = \"daily\""},{"sha":"839c286b104079f531a4b130f3e01082d63d08ac","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py","status":"added","additions":41,"deletions":0,"changes":41,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,41 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class CurrentSpend(Model):\n+    \"\"\"The current amount of cost which is being tracked for a budget.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar amount: The total amount of cost which is being tracked by the\n+     budget.\n+    :vartype amount: decimal.Decimal\n+    :ivar unit: The unit of measure for the budget amount.\n+    :vartype unit: str\n+    \"\"\"\n+\n+    _validation = {\n+        'amount': {'readonly': True},\n+        'unit': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'amount': {'key': 'amount', 'type': 'decimal'},\n+        'unit': {'key': 'unit', 'type': 'str'},\n+    }\n+\n+    def __init__(self):\n+        super(CurrentSpend, self).__init__()\n+        self.amount = None\n+        self.unit = None"},{"sha":"dc010a065900621f02b77dfe1b389071e597fd73","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py","status":"added","additions":44,"deletions":0,"changes":44,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,44 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class Filters(Model):\n+    \"\"\"May be used to filter budgets by resource group, resource, or meter.\n+\n+    :param resource_groups: The list of filters on resource groups, allowed at\n+     subscription level only.\n+    :type resource_groups: list[str]\n+    :param resources: The list of filters on resources.\n+    :type resources: list[str]\n+    :param meters: The list of filters on meters, mandatory for budgets of\n+     usage category.\n+    :type meters: list[str]\n+    \"\"\"\n+\n+    _validation = {\n+        'resource_groups': {'max_items': 10, 'min_items': 0},\n+        'resources': {'max_items': 10, 'min_items': 0},\n+        'meters': {'max_items': 10, 'min_items': 0},\n+    }\n+\n+    _attribute_map = {\n+        'resource_groups': {'key': 'resourceGroups', 'type': '[str]'},\n+        'resources': {'key': 'resources', 'type': '[str]'},\n+        'meters': {'key': 'meters', 'type': '[str]'},\n+    }\n+\n+    def __init__(self, resource_groups=None, resources=None, meters=None):\n+        super(Filters, self).__init__()\n+        self.resource_groups = resource_groups\n+        self.resources = resources\n+        self.meters = meters"},{"sha":"d401f3fdc397e6aa0d40011f987917ef0984a8bc","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace.py","status":"added","additions":174,"deletions":0,"changes":174,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,174 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from .resource import Resource\n+\n+\n+class Marketplace(Resource):\n+    \"\"\"An marketplace resource.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar id: Resource Id.\n+    :vartype id: str\n+    :ivar name: Resource name.\n+    :vartype name: str\n+    :ivar type: Resource type.\n+    :vartype type: str\n+    :ivar tags: Resource tags.\n+    :vartype tags: dict[str, str]\n+    :ivar billing_period_id: The id of the billing period resource that the\n+     usage belongs to.\n+    :vartype billing_period_id: str\n+    :ivar usage_start: The start of the date time range covered by the usage\n+     detail.\n+    :vartype usage_start: datetime\n+    :ivar usage_end: The end of the date time range covered by the usage\n+     detail.\n+    :vartype usage_end: datetime\n+    :ivar resource_rate: The marketplace resource rate.\n+    :vartype resource_rate: decimal.Decimal\n+    :ivar offer_name: The type of offer.\n+    :vartype offer_name: str\n+    :ivar resource_group: The name of resource group.\n+    :vartype resource_group: str\n+    :ivar order_number: The order number.\n+    :vartype order_number: str\n+    :ivar instance_name: The name of the resource instance that the usage is\n+     about.\n+    :vartype instance_name: str\n+    :ivar instance_id: The uri of the resource instance that the usage is\n+     about.\n+    :vartype instance_id: str\n+    :ivar currency: The ISO currency in which the meter is charged, for\n+     example, USD.\n+    :vartype currency: str\n+    :ivar consumed_quantity: The quantity of usage.\n+    :vartype consumed_quantity: decimal.Decimal\n+    :ivar unit_of_measure: The unit of measure.\n+    :vartype unit_of_measure: str\n+    :ivar pretax_cost: The amount of cost before tax.\n+    :vartype pretax_cost: decimal.Decimal\n+    :ivar is_estimated: The estimated usage is subject to change.\n+    :vartype is_estimated: bool\n+    :ivar meter_id: The meter id.\n+    :vartype meter_id: str\n+    :ivar subscription_guid: Subscription guid.\n+    :vartype subscription_guid: str\n+    :ivar subscription_name: Subscription name.\n+    :vartype subscription_name: str\n+    :ivar account_name: Account name.\n+    :vartype account_name: str\n+    :ivar department_name: Department name.\n+    :vartype department_name: str\n+    :ivar consumed_service: Consumed service name.\n+    :vartype consumed_service: str\n+    :ivar cost_center: The cost center of this department if it is a\n+     department and a costcenter exists\n+    :vartype cost_center: str\n+    :ivar additional_properties: Additional details of this usage item. By\n+     default this is not populated, unless it's specified in $expand.\n+    :vartype additional_properties: str\n+    :ivar publisher_name: The name of publisher.\n+    :vartype publisher_name: str\n+    :ivar plan_name: The name of plan.\n+    :vartype plan_name: str\n+    \"\"\"\n+\n+    _validation = {\n+        'id': {'readonly': True},\n+        'name': {'readonly': True},\n+        'type': {'readonly': True},\n+        'tags': {'readonly': True},\n+        'billing_period_id': {'readonly': True},\n+        'usage_start': {'readonly': True},\n+        'usage_end': {'readonly': True},\n+        'resource_rate': {'readonly': True},\n+        'offer_name': {'readonly': True},\n+        'resource_group': {'readonly': True},\n+        'order_number': {'readonly': True},\n+        'instance_name': {'readonly': True},\n+        'instance_id': {'readonly': True},\n+        'currency': {'readonly': True},\n+        'consumed_quantity': {'readonly': True},\n+        'unit_of_measure': {'readonly': True},\n+        'pretax_cost': {'readonly': True},\n+        'is_estimated': {'readonly': True},\n+        'meter_id': {'readonly': True},\n+        'subscription_guid': {'readonly': True},\n+        'subscription_name': {'readonly': True},\n+        'account_name': {'readonly': True},\n+        'department_name': {'readonly': True},\n+        'consumed_service': {'readonly': True},\n+        'cost_center': {'readonly': True},\n+        'additional_properties': {'readonly': True},\n+        'publisher_name': {'readonly': True},\n+        'plan_name': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'id': {'key': 'id', 'type': 'str'},\n+        'name': {'key': 'name', 'type': 'str'},\n+        'type': {'key': 'type', 'type': 'str'},\n+        'tags': {'key': 'tags', 'type': '{str}'},\n+        'billing_period_id': {'key': 'properties.billingPeriodId', 'type': 'str'},\n+        'usage_start': {'key': 'properties.usageStart', 'type': 'iso-8601'},\n+        'usage_end': {'key': 'properties.usageEnd', 'type': 'iso-8601'},\n+        'resource_rate': {'key': 'properties.resourceRate', 'type': 'decimal'},\n+        'offer_name': {'key': 'properties.offerName', 'type': 'str'},\n+        'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'},\n+        'order_number': {'key': 'properties.orderNumber', 'type': 'str'},\n+        'instance_name': {'key': 'properties.instanceName', 'type': 'str'},\n+        'instance_id': {'key': 'properties.instanceId', 'type': 'str'},\n+        'currency': {'key': 'properties.currency', 'type': 'str'},\n+        'consumed_quantity': {'key': 'properties.consumedQuantity', 'type': 'decimal'},\n+        'unit_of_measure': {'key': 'properties.unitOfMeasure', 'type': 'str'},\n+        'pretax_cost': {'key': 'properties.pretaxCost', 'type': 'decimal'},\n+        'is_estimated': {'key': 'properties.isEstimated', 'type': 'bool'},\n+        'meter_id': {'key': 'properties.meterId', 'type': 'str'},\n+        'subscription_guid': {'key': 'properties.subscriptionGuid', 'type': 'str'},\n+        'subscription_name': {'key': 'properties.subscriptionName', 'type': 'str'},\n+        'account_name': {'key': 'properties.accountName', 'type': 'str'},\n+        'department_name': {'key': 'properties.departmentName', 'type': 'str'},\n+        'consumed_service': {'key': 'properties.consumedService', 'type': 'str'},\n+        'cost_center': {'key': 'properties.costCenter', 'type': 'str'},\n+        'additional_properties': {'key': 'properties.additionalProperties', 'type': 'str'},\n+        'publisher_name': {'key': 'properties.publisherName', 'type': 'str'},\n+        'plan_name': {'key': 'properties.planName', 'type': 'str'},\n+    }\n+\n+    def __init__(self):\n+        super(Marketplace, self).__init__()\n+        self.billing_period_id = None\n+        self.usage_start = None\n+        self.usage_end = None\n+        self.resource_rate = None\n+        self.offer_name = None\n+        self.resource_group = None\n+        self.order_number = None\n+        self.instance_name = None\n+        self.instance_id = None\n+        self.currency = None\n+        self.consumed_quantity = None\n+        self.unit_of_measure = None\n+        self.pretax_cost = None\n+        self.is_estimated = None\n+        self.meter_id = None\n+        self.subscription_guid = None\n+        self.subscription_name = None\n+        self.account_name = None\n+        self.department_name = None\n+        self.consumed_service = None\n+        self.cost_center = None\n+        self.additional_properties = None\n+        self.publisher_name = None\n+        self.plan_name = None"},{"sha":"d360761aca550436c8a2be210180f36920169c06","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace_paged.py","status":"added","additions":27,"deletions":0,"changes":27,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace_paged.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace_paged.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/marketplace_paged.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,27 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.paging import Paged\n+\n+\n+class MarketplacePaged(Paged):\n+    \"\"\"\n+    A paging container for iterating over a list of :class:`Marketplace <azure.mgmt.consumption.models.Marketplace>` object\n+    \"\"\"\n+\n+    _attribute_map = {\n+        'next_link': {'key': 'nextLink', 'type': 'str'},\n+        'current_page': {'key': 'value', 'type': '[Marketplace]'}\n+    }\n+\n+    def __init__(self, *args, **kwargs):\n+\n+        super(MarketplacePaged, self).__init__(*args, **kwargs)"},{"sha":"61e1ca0ed34df63b0df71d2970b19f7fa8a866bd","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py","status":"added","additions":62,"deletions":0,"changes":62,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,62 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class Notification(Model):\n+    \"\"\"The notification associated with a budget.\n+\n+    :param enabled: The notification is enabled or not.\n+    :type enabled: bool\n+    :param operator: The comparison operator. Possible values include:\n+     'EqualTo', 'GreaterThan', 'GreaterThanOrEqualTo'\n+    :type operator: str or ~azure.mgmt.consumption.models.OperatorType\n+    :param threshold: Threshold value associated with a notification.\n+     Notification is sent when the cost exceeded the threshold. It is always\n+     percent and has to be between 0 and 1000.\n+    :type threshold: decimal.Decimal\n+    :param contact_emails: Email addresses to send the budget notification to\n+     when the threshold is exceeded.\n+    :type contact_emails: list[str]\n+    :param contact_roles: Contact roles to send the budget notification to\n+     when the threshold is exceeded.\n+    :type contact_roles: list[str]\n+    :param contact_groups: Action groups to send the budget notification to\n+     when the threshold is exceeded.\n+    :type contact_groups: list[str]\n+    \"\"\"\n+\n+    _validation = {\n+        'enabled': {'required': True},\n+        'operator': {'required': True},\n+        'threshold': {'required': True},\n+        'contact_emails': {'required': True, 'max_items': 50, 'min_items': 1},\n+        'contact_groups': {'max_items': 50, 'min_items': 0},\n+    }\n+\n+    _attribute_map = {\n+        'enabled': {'key': 'enabled', 'type': 'bool'},\n+        'operator': {'key': 'operator', 'type': 'str'},\n+        'threshold': {'key': 'threshold', 'type': 'decimal'},\n+        'contact_emails': {'key': 'contactEmails', 'type': '[str]'},\n+        'contact_roles': {'key': 'contactRoles', 'type': '[str]'},\n+        'contact_groups': {'key': 'contactGroups', 'type': '[str]'},\n+    }\n+\n+    def __init__(self, enabled, operator, threshold, contact_emails, contact_roles=None, contact_groups=None):\n+        super(Notification, self).__init__()\n+        self.enabled = enabled\n+        self.operator = operator\n+        self.threshold = threshold\n+        self.contact_emails = contact_emails\n+        self.contact_roles = contact_roles\n+        self.contact_groups = contact_groups"},{"sha":"6b201161f1dd7f05fef48e2355c696e882bb029c","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_list_result.py","status":"added","additions":41,"deletions":0,"changes":41,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_list_result.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_list_result.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_list_result.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,41 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class PriceSheetListResult(Model):\n+    \"\"\"price sheet result. It contains the pricesheet associated with billing\n+    period.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar value: Price sheet\n+    :vartype value: object\n+    :ivar next_link: The link (url) to the next page of results.\n+    :vartype next_link: str\n+    \"\"\"\n+\n+    _validation = {\n+        'value': {'readonly': True},\n+        'next_link': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'value': {'key': 'value', 'type': 'object'},\n+        'next_link': {'key': 'nextLink', 'type': 'str'},\n+    }\n+\n+    def __init__(self):\n+        super(PriceSheetListResult, self).__init__()\n+        self.value = None\n+        self.next_link = None"},{"sha":"0f51585aa714c16764b94d5170b6f65e3f4b5ac0","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_model.py","status":"added","additions":88,"deletions":0,"changes":88,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_model.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_model.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_model.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,88 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from .resource import Resource\n+\n+\n+class PriceSheetModel(Resource):\n+    \"\"\"An pricesheet resource.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar id: Resource Id.\n+    :vartype id: str\n+    :ivar name: Resource name.\n+    :vartype name: str\n+    :ivar type: Resource type.\n+    :vartype type: str\n+    :ivar tags: Resource tags.\n+    :vartype tags: dict[str, str]\n+    :ivar billing_period_id: The id of the billing period resource that the\n+     usage belongs to.\n+    :vartype billing_period_id: str\n+    :ivar meter_id: The meter id\n+    :vartype meter_id: str\n+    :ivar meter_details: The details about the meter. By default this is not\n+     populated, unless it's specified in $expand.\n+    :vartype meter_details: ~azure.mgmt.consumption.models.MeterDetails\n+    :ivar unit_of_measure: Unit of measure\n+    :vartype unit_of_measure: str\n+    :ivar included_quantity: Included quality for an offer\n+    :vartype included_quantity: decimal.Decimal\n+    :ivar part_number: Part Number\n+    :vartype part_number: str\n+    :ivar unit_price: Unit Price\n+    :vartype unit_price: decimal.Decimal\n+    :ivar currency_code: Currency Code\n+    :vartype currency_code: str\n+    \"\"\"\n+\n+    _validation = {\n+        'id': {'readonly': True},\n+        'name': {'readonly': True},\n+        'type': {'readonly': True},\n+        'tags': {'readonly': True},\n+        'billing_period_id': {'readonly': True},\n+        'meter_id': {'readonly': True},\n+        'meter_details': {'readonly': True},\n+        'unit_of_measure': {'readonly': True},\n+        'included_quantity': {'readonly': True},\n+        'part_number': {'readonly': True},\n+        'unit_price': {'readonly': True},\n+        'currency_code': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'id': {'key': 'id', 'type': 'str'},\n+        'name': {'key': 'name', 'type': 'str'},\n+        'type': {'key': 'type', 'type': 'str'},\n+        'tags': {'key': 'tags', 'type': '{str}'},\n+        'billing_period_id': {'key': 'properties.billingPeriodId', 'type': 'str'},\n+        'meter_id': {'key': 'properties.meterId', 'type': 'str'},\n+        'meter_details': {'key': 'properties.meterDetails', 'type': 'MeterDetails'},\n+        'unit_of_measure': {'key': 'properties.unitOfMeasure', 'type': 'str'},\n+        'included_quantity': {'key': 'properties.includedQuantity', 'type': 'decimal'},\n+        'part_number': {'key': 'properties.partNumber', 'type': 'str'},\n+        'unit_price': {'key': 'properties.unitPrice', 'type': 'decimal'},\n+        'currency_code': {'key': 'properties.currencyCode', 'type': 'str'},\n+    }\n+\n+    def __init__(self):\n+        super(PriceSheetModel, self).__init__()\n+        self.billing_period_id = None\n+        self.meter_id = None\n+        self.meter_details = None\n+        self.unit_of_measure = None\n+        self.included_quantity = None\n+        self.part_number = None\n+        self.unit_price = None\n+        self.currency_code = None"},{"sha":"f6a9a40d22d569970958af165de44c9f84162e47","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py","status":"added","additions":51,"deletions":0,"changes":51,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,51 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class ProxyResource(Model):\n+    \"\"\"The Resource model definition.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar id: Resource Id.\n+    :vartype id: str\n+    :ivar name: Resource name.\n+    :vartype name: str\n+    :ivar type: Resource type.\n+    :vartype type: str\n+    :param e_tag: eTag of the resource. To handle concurrent update scenarion,\n+     this field will be used to determine whether the user is updating the\n+     latest version or not.\n+    :type e_tag: str\n+    \"\"\"\n+\n+    _validation = {\n+        'id': {'readonly': True},\n+        'name': {'readonly': True},\n+        'type': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'id': {'key': 'id', 'type': 'str'},\n+        'name': {'key': 'name', 'type': 'str'},\n+        'type': {'key': 'type', 'type': 'str'},\n+        'e_tag': {'key': 'eTag', 'type': 'str'},\n+    }\n+\n+    def __init__(self, e_tag=None):\n+        super(ProxyResource, self).__init__()\n+        self.id = None\n+        self.name = None\n+        self.type = None\n+        self.e_tag = e_tag"},{"sha":"cb1dff45a8f9ca787f34422829a20b142a1b9339","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py","status":"modified","additions":6,"deletions":0,"changes":6,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -10,13 +10,19 @@\n # --------------------------------------------------------------------------\n \n from .usage_details_operations import UsageDetailsOperations\n+from .marketplaces_operations import MarketplacesOperations\n from .reservations_summaries_operations import ReservationsSummariesOperations\n from .reservations_details_operations import ReservationsDetailsOperations\n+from .budgets_operations import BudgetsOperations\n from .operations import Operations\n+from .price_sheet_operations import PriceSheetOperations\n \n __all__ = [\n     'UsageDetailsOperations',\n+    'MarketplacesOperations',\n     'ReservationsSummariesOperations',\n     'ReservationsDetailsOperations',\n+    'BudgetsOperations',\n     'Operations',\n+    'PriceSheetOperations',\n ]"},{"sha":"38562f5af055bad608bd52aee7804a97040fab44","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py","status":"added","additions":514,"deletions":0,"changes":514,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,514 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+import uuid\n+from msrest.pipeline import ClientRawResponse\n+\n+from .. import models\n+\n+\n+class BudgetsOperations(object):\n+    \"\"\"BudgetsOperations operations.\n+\n+    :param client: Client for service requests.\n+    :param config: Configuration of service client.\n+    :param serializer: An object model serializer.\n+    :param deserializer: An objec model deserializer.\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n+    \"\"\"\n+\n+    models = models\n+\n+    def __init__(self, client, config, serializer, deserializer):\n+\n+        self._client = client\n+        self._serialize = serializer\n+        self._deserialize = deserializer\n+        self.api_version = \"2018-01-31\"\n+\n+        self.config = config\n+\n+    def list(\n+            self, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists all budgets for a subscription.\n+\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of Budget\n+        :rtype:\n+         ~azure.mgmt.consumption.models.BudgetPaged[~azure.mgmt.consumption.models.Budget]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets'\n+                path_format_arguments = {\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.BudgetPaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.BudgetPaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def list_by_resource_group_name(\n+            self, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists all budgets for a resource group under a subscription.\n+\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of Budget\n+        :rtype:\n+         ~azure.mgmt.consumption.models.BudgetPaged[~azure.mgmt.consumption.models.Budget]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets'\n+                path_format_arguments = {\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+                    'resourceGroupName': self._serialize.url(\"self.config.resource_group_name\", self.config.resource_group_name, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.BudgetPaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.BudgetPaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def get(\n+            self, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Gets the budget for a subscription by budget name.\n+\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: Budget or ClientRawResponse if raw=true\n+        :rtype: ~azure.mgmt.consumption.models.Budget or\n+         ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{budgetName}'\n+        path_format_arguments = {\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+            'budgetName': self._serialize.url(\"self.config.budget_name\", self.config.budget_name, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.get(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        deserialized = None\n+\n+        if response.status_code == 200:\n+            deserialized = self._deserialize('Budget', response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(deserialized, response)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def create_or_update(\n+            self, parameters, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"The operation to create or update a budget. Update operation requires\n+        latest eTag to be set in the request mandatorily. You may obtain the\n+        latest eTag by performing a get operation. Create operation does not\n+        require eTag.\n+\n+        :param parameters: Parameters supplied to the Create Budget operation.\n+        :type parameters: ~azure.mgmt.consumption.models.Budget\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of None\n+        :rtype: ~azure.mgmt.consumption.models.Budget[None]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{budgetName}'\n+                path_format_arguments = {\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+                    'budgetName': self._serialize.url(\"self.config.budget_name\", self.config.budget_name, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct body\n+            body_content = self._serialize.body(parameters, 'Budget')\n+\n+            # Construct and send request\n+            request = self._client.put(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, body_content, stream=False, **operation_config)\n+\n+            if response.status_code not in [200, 201]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.Budget(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.Budget(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def delete(\n+            self, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"The operation to delete a budget.\n+\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: None or ClientRawResponse if raw=true\n+        :rtype: None or ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{budgetName}'\n+        path_format_arguments = {\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+            'budgetName': self._serialize.url(\"self.config.budget_name\", self.config.budget_name, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.delete(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(None, response)\n+            return client_raw_response\n+\n+    def get_by_resource_group_name(\n+            self, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Gets the budget for a resource group under a subscription by budget\n+        name.\n+\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: Budget or ClientRawResponse if raw=true\n+        :rtype: ~azure.mgmt.consumption.models.Budget or\n+         ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}'\n+        path_format_arguments = {\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+            'resourceGroupName': self._serialize.url(\"self.config.resource_group_name\", self.config.resource_group_name, 'str'),\n+            'budgetName': self._serialize.url(\"self.config.budget_name\", self.config.budget_name, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.get(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        deserialized = None\n+\n+        if response.status_code == 200:\n+            deserialized = self._deserialize('Budget', response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(deserialized, response)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def create_or_update_by_resource_group_name(\n+            self, parameters, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"The operation to create or update a budget. Update operation requires\n+        latest eTag to be set in the request mandatorily. You may obtain the\n+        latest eTag by performing a get operation. Create operation does not\n+        require eTag.\n+\n+        :param parameters: Parameters supplied to the Create Budget operation.\n+        :type parameters: ~azure.mgmt.consumption.models.Budget\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of None\n+        :rtype: ~azure.mgmt.consumption.models.Budget[None]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}'\n+                path_format_arguments = {\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+                    'resourceGroupName': self._serialize.url(\"self.config.resource_group_name\", self.config.resource_group_name, 'str'),\n+                    'budgetName': self._serialize.url(\"self.config.budget_name\", self.config.budget_name, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct body\n+            body_content = self._serialize.body(parameters, 'Budget')\n+\n+            # Construct and send request\n+            request = self._client.put(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, body_content, stream=False, **operation_config)\n+\n+            if response.status_code not in [200, 201]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.Budget(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.Budget(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def delete_by_resource_group_name(\n+            self, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"The operation to delete a budget.\n+\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: None or ClientRawResponse if raw=true\n+        :rtype: None or ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}'\n+        path_format_arguments = {\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+            'resourceGroupName': self._serialize.url(\"self.config.resource_group_name\", self.config.resource_group_name, 'str'),\n+            'budgetName': self._serialize.url(\"self.config.budget_name\", self.config.budget_name, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.delete(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(None, response)\n+            return client_raw_response"},{"sha":"e74aa82ad6ec36fee8e4c10903efe7a5d5e9a584","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/marketplaces_operations.py","status":"added","additions":209,"deletions":0,"changes":209,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/marketplaces_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/marketplaces_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/marketplaces_operations.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,209 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+import uuid\n+from msrest.pipeline import ClientRawResponse\n+\n+from .. import models\n+\n+\n+class MarketplacesOperations(object):\n+    \"\"\"MarketplacesOperations operations.\n+\n+    :param client: Client for service requests.\n+    :param config: Configuration of service client.\n+    :param serializer: An object model serializer.\n+    :param deserializer: An objec model deserializer.\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n+    \"\"\"\n+\n+    models = models\n+\n+    def __init__(self, client, config, serializer, deserializer):\n+\n+        self._client = client\n+        self._serialize = serializer\n+        self._deserialize = deserializer\n+        self.api_version = \"2018-01-31\"\n+\n+        self.config = config\n+\n+    def list(\n+            self, filter=None, top=None, skiptoken=None, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists the marketplaces for a scope by subscriptionId. Marketplaces are\n+        available via this API only for May 1, 2014 or later.\n+\n+        :param filter: May be used to filter marketplaces by\n+         properties/usageEnd (Utc time), properties/usageStart (Utc time),\n+         properties/resourceGroup, properties/instanceName or\n+         properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le',\n+         'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.\n+        :type filter: str\n+        :param top: May be used to limit the number of results to the most\n+         recent N marketplaces.\n+        :type top: int\n+        :param skiptoken: Skiptoken is only used if a previous operation\n+         returned a partial result. If a previous response contains a nextLink\n+         element, the value of the nextLink element will include a skiptoken\n+         parameter that specifies a starting point to use for subsequent calls.\n+        :type skiptoken: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of Marketplace\n+        :rtype:\n+         ~azure.mgmt.consumption.models.MarketplacePaged[~azure.mgmt.consumption.models.Marketplace]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/marketplaces'\n+                path_format_arguments = {\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                if filter is not None:\n+                    query_parameters['$filter'] = self._serialize.query(\"filter\", filter, 'str')\n+                if top is not None:\n+                    query_parameters['$top'] = self._serialize.query(\"top\", top, 'int', maximum=1000, minimum=1)\n+                if skiptoken is not None:\n+                    query_parameters['$skiptoken'] = self._serialize.query(\"skiptoken\", skiptoken, 'str')\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.MarketplacePaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.MarketplacePaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def list_by_billing_period(\n+            self, billing_period_name, filter=None, top=None, skiptoken=None, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists the marketplaces for a scope by billing period and\n+        subscripotionId. Marketplaces are available via this API only for May\n+        1, 2014 or later.\n+\n+        :param billing_period_name: Billing Period Name.\n+        :type billing_period_name: str\n+        :param filter: May be used to filter marketplaces by\n+         properties/usageEnd (Utc time), properties/usageStart (Utc time),\n+         properties/resourceGroup, properties/instanceName or\n+         properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le',\n+         'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.\n+        :type filter: str\n+        :param top: May be used to limit the number of results to the most\n+         recent N marketplaces.\n+        :type top: int\n+        :param skiptoken: Skiptoken is only used if a previous operation\n+         returned a partial result. If a previous response contains a nextLink\n+         element, the value of the nextLink element will include a skiptoken\n+         parameter that specifies a starting point to use for subsequent calls.\n+        :type skiptoken: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of Marketplace\n+        :rtype:\n+         ~azure.mgmt.consumption.models.MarketplacePaged[~azure.mgmt.consumption.models.Marketplace]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces'\n+                path_format_arguments = {\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+                    'billingPeriodName': self._serialize.url(\"billing_period_name\", billing_period_name, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                if filter is not None:\n+                    query_parameters['$filter'] = self._serialize.query(\"filter\", filter, 'str')\n+                if top is not None:\n+                    query_parameters['$top'] = self._serialize.query(\"top\", top, 'int', maximum=1000, minimum=1)\n+                if skiptoken is not None:\n+                    query_parameters['$skiptoken'] = self._serialize.query(\"skiptoken\", skiptoken, 'str')\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.MarketplacePaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.MarketplacePaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized"},{"sha":"f3efdae1c20868aef1cbad552979edb11f41663f","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -22,7 +22,7 @@ class Operations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n@@ -78,7 +78,7 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"701320c573d314526b127b4b3e5f8233852ad8b1","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py","status":"added","additions":176,"deletions":0,"changes":176,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -0,0 +1,176 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+import uuid\n+from msrest.pipeline import ClientRawResponse\n+\n+from .. import models\n+\n+\n+class PriceSheetOperations(object):\n+    \"\"\"PriceSheetOperations operations.\n+\n+    :param client: Client for service requests.\n+    :param config: Configuration of service client.\n+    :param serializer: An object model serializer.\n+    :param deserializer: An objec model deserializer.\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n+    \"\"\"\n+\n+    models = models\n+\n+    def __init__(self, client, config, serializer, deserializer):\n+\n+        self._client = client\n+        self._serialize = serializer\n+        self._deserialize = deserializer\n+        self.api_version = \"2018-01-31\"\n+\n+        self.config = config\n+\n+    def list(\n+            self, expand=None, skiptoken=None, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists the price sheet for a scope by subscriptionId. Price sheets are\n+        available via this API only for May 1, 2014 or later.\n+\n+        :param expand: May be used to expand the properties/meterDetails\n+         within a price sheet. By default, these fields are not included when\n+         returning price sheet.\n+        :type expand: str\n+        :param skiptoken: Skiptoken is only used if a previous operation\n+         returned a partial result. If a previous response contains a nextLink\n+         element, the value of the nextLink element will include a skiptoken\n+         parameter that specifies a starting point to use for subsequent calls.\n+        :type skiptoken: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: PriceSheetListResult or ClientRawResponse if raw=true\n+        :rtype: ~azure.mgmt.consumption.models.PriceSheetListResult or\n+         ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default'\n+        path_format_arguments = {\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        if expand is not None:\n+            query_parameters['$expand'] = self._serialize.query(\"expand\", expand, 'str')\n+        if skiptoken is not None:\n+            query_parameters['$skiptoken'] = self._serialize.query(\"skiptoken\", skiptoken, 'str')\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.get(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        deserialized = None\n+\n+        if response.status_code == 200:\n+            deserialized = self._deserialize('PriceSheetListResult', response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(deserialized, response)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def list_by_billing_period(\n+            self, billing_period_name, expand=None, skiptoken=None, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists the price sheet for a scope by subscriptionId and billing period.\n+        Price sheets are available via this API only for May 1, 2014 or later.\n+\n+        :param billing_period_name: Billing Period Name.\n+        :type billing_period_name: str\n+        :param expand: May be used to expand the properties/meterDetails\n+         within a price sheet. By default, these fields are not included when\n+         returning price sheet.\n+        :type expand: str\n+        :param skiptoken: Skiptoken is only used if a previous operation\n+         returned a partial result. If a previous response contains a nextLink\n+         element, the value of the nextLink element will include a skiptoken\n+         parameter that specifies a starting point to use for subsequent calls.\n+        :type skiptoken: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: PriceSheetListResult or ClientRawResponse if raw=true\n+        :rtype: ~azure.mgmt.consumption.models.PriceSheetListResult or\n+         ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/pricesheets/default'\n+        path_format_arguments = {\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+            'billingPeriodName': self._serialize.url(\"billing_period_name\", billing_period_name, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        if expand is not None:\n+            query_parameters['$expand'] = self._serialize.query(\"expand\", expand, 'str')\n+        if skiptoken is not None:\n+            query_parameters['$skiptoken'] = self._serialize.query(\"skiptoken\", skiptoken, 'str')\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.get(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        deserialized = None\n+\n+        if response.status_code == 200:\n+            deserialized = self._deserialize('PriceSheetListResult', response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(deserialized, response)\n+            return client_raw_response\n+\n+        return deserialized"},{"sha":"485bb51bf4eb5333baf96a44f51ae286faabb00c","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py","status":"modified","additions":82,"deletions":12,"changes":94,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -22,7 +22,7 @@ class ReservationsDetailsOperations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,19 +32,16 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n-    def list(\n-            self, scope, filter, custom_headers=None, raw=False, **operation_config):\n+    def list_by_reservation_order(\n+            self, reservation_order_id, filter, custom_headers=None, raw=False, **operation_config):\n         \"\"\"Lists the reservations details for provided date range.\n \n-        :param scope: The scope of the reservation details. The scope can be\n-         'providers/Microsoft.Capacity/reservationorders/{ReservationOrderId}'\n-         or\n-         'providers/Microsoft.Capacity/reservationorders/{ReservationOrderId}/reservations/{ReservationId}'\n-        :type scope: str\n+        :param reservation_order_id: Order Id of the reservation\n+        :type reservation_order_id: str\n         :param filter: Filter reservation details by date range. The\n          properties/UsageDate for start date and end date. The filter supports\n          'le' and  'ge'\n@@ -64,9 +61,9 @@ def internal_paging(next_link=None, raw=False):\n \n             if not next_link:\n                 # Construct URL\n-                url = '/{scope}/providers/Microsoft.Consumption/reservationDetails'\n+                url = '/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails'\n                 path_format_arguments = {\n-                    'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True)\n+                    'reservationOrderId': self._serialize.url(\"reservation_order_id\", reservation_order_id, 'str')\n                 }\n                 url = self._client.format_url(url, **path_format_arguments)\n \n@@ -92,7 +89,80 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.ReservationDetailsPaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.ReservationDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def list_by_reservation_order_and_reservation(\n+            self, reservation_order_id, reservation_id, filter, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists the reservations details for provided date range.\n+\n+        :param reservation_order_id: Order Id of the reservation\n+        :type reservation_order_id: str\n+        :param reservation_id: Id of the reservation\n+        :type reservation_id: str\n+        :param filter: Filter reservation details by date range. The\n+         properties/UsageDate for start date and end date. The filter supports\n+         'le' and  'ge'\n+        :type filter: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of ReservationDetails\n+        :rtype:\n+         ~azure.mgmt.consumption.models.ReservationDetailsPaged[~azure.mgmt.consumption.models.ReservationDetails]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails'\n+                path_format_arguments = {\n+                    'reservationOrderId': self._serialize.url(\"reservation_order_id\", reservation_order_id, 'str'),\n+                    'reservationId': self._serialize.url(\"reservation_id\", reservation_id, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['$filter'] = self._serialize.query(\"filter\", filter, 'str')\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"2c1c2b451318b518d75a578a83e49e5597c6be6d","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py","status":"modified","additions":86,"deletions":12,"changes":98,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -22,7 +22,7 @@ class ReservationsSummariesOperations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,19 +32,16 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n-    def list(\n-            self, scope, grain, filter=None, custom_headers=None, raw=False, **operation_config):\n+    def list_by_reservation_order(\n+            self, reservation_order_id, grain, filter=None, custom_headers=None, raw=False, **operation_config):\n         \"\"\"Lists the reservations summaries for daily or monthly grain.\n \n-        :param scope: The scope of the reservation summaries. The scope can be\n-         'providers/Microsoft.Capacity/reservationorders/{ReservationOrderId}'\n-         or\n-         'providers/Microsoft.Capacity/reservationorders/{ReservationOrderId}/reservations/{ReservationId}'\n-        :type scope: str\n+        :param reservation_order_id: Order Id of the reservation\n+        :type reservation_order_id: str\n         :param grain: Can be daily or monthly. Possible values include:\n          'DailyGrain', 'MonthlyGrain'\n         :type grain: str or ~azure.mgmt.consumption.models.Datagrain\n@@ -66,9 +63,9 @@ def internal_paging(next_link=None, raw=False):\n \n             if not next_link:\n                 # Construct URL\n-                url = '/{scope}/providers/Microsoft.Consumption/reservationSummaries'\n+                url = '/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries'\n                 path_format_arguments = {\n-                    'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True)\n+                    'reservationOrderId': self._serialize.url(\"reservation_order_id\", reservation_order_id, 'str')\n                 }\n                 url = self._client.format_url(url, **path_format_arguments)\n \n@@ -96,7 +93,84 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.ReservationSummariesPaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.ReservationSummariesPaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def list_by_reservation_order_and_reservation(\n+            self, reservation_order_id, reservation_id, grain, filter=None, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists the reservations summaries for daily or monthly grain.\n+\n+        :param reservation_order_id: Order Id of the reservation\n+        :type reservation_order_id: str\n+        :param reservation_id: Id of the reservation\n+        :type reservation_id: str\n+        :param grain: Can be daily or monthly. Possible values include:\n+         'DailyGrain', 'MonthlyGrain'\n+        :type grain: str or ~azure.mgmt.consumption.models.Datagrain\n+        :param filter: Required only for daily grain. The properties/UsageDate\n+         for start date and end date. The filter supports 'le' and  'ge'\n+        :type filter: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of ReservationSummaries\n+        :rtype:\n+         ~azure.mgmt.consumption.models.ReservationSummariesPaged[~azure.mgmt.consumption.models.ReservationSummaries]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries'\n+                path_format_arguments = {\n+                    'reservationOrderId': self._serialize.url(\"reservation_order_id\", reservation_order_id, 'str'),\n+                    'reservationId': self._serialize.url(\"reservation_id\", reservation_id, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['grain'] = self._serialize.query(\"grain\", grain, 'str')\n+                if filter is not None:\n+                    query_parameters['$filter'] = self._serialize.query(\"filter\", filter, 'str')\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"a0f6cd91bd084879c4ac7e89959d2231a4b5795e","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py","status":"modified","additions":100,"deletions":11,"changes":111,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -22,7 +22,7 @@ class UsageDetailsOperations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,20 +32,15 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n     def list(\n-            self, scope, expand=None, filter=None, skiptoken=None, top=None, custom_headers=None, raw=False, **operation_config):\n+            self, expand=None, filter=None, skiptoken=None, top=None, custom_headers=None, raw=False, **operation_config):\n         \"\"\"Lists the usage details for a scope by billing period. Usage details\n         are available via this API only for May 1, 2014 or later.\n \n-        :param scope: The scope of the usage details. The scope can be\n-         '/subscriptions/{subscriptionId}' for a subscription, or\n-         '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'\n-         for a billing perdiod.\n-        :type scope: str\n         :param expand: May be used to expand the\n          properties/additionalProperties or properties/meterDetails within a\n          list of usage details. By default, these fields are not included when\n@@ -80,9 +75,9 @@ def internal_paging(next_link=None, raw=False):\n \n             if not next_link:\n                 # Construct URL\n-                url = '/{scope}/providers/Microsoft.Consumption/usageDetails'\n+                url = '/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/usageDetails'\n                 path_format_arguments = {\n-                    'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True)\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str')\n                 }\n                 url = self._client.format_url(url, **path_format_arguments)\n \n@@ -115,7 +110,101 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.UsageDetailPaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.UsageDetailPaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def list_by_billing_period(\n+            self, billing_period_name, expand=None, filter=None, skiptoken=None, top=None, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists the usage details for a scope by billing period. Usage details\n+        are available via this API only for May 1, 2014 or later.\n+\n+        :param billing_period_name: Billing Period Name.\n+        :type billing_period_name: str\n+        :param expand: May be used to expand the\n+         properties/additionalProperties or properties/meterDetails within a\n+         list of usage details. By default, these fields are not included when\n+         listing usage details.\n+        :type expand: str\n+        :param filter: May be used to filter usageDetails by\n+         properties/usageEnd (Utc time), properties/usageStart (Utc time),\n+         properties/resourceGroup, properties/instanceName or\n+         properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le',\n+         'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.\n+        :type filter: str\n+        :param skiptoken: Skiptoken is only used if a previous operation\n+         returned a partial result. If a previous response contains a nextLink\n+         element, the value of the nextLink element will include a skiptoken\n+         parameter that specifies a starting point to use for subsequent calls.\n+        :type skiptoken: str\n+        :param top: May be used to limit the number of results to the most\n+         recent N usageDetails.\n+        :type top: int\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of UsageDetail\n+        :rtype:\n+         ~azure.mgmt.consumption.models.UsageDetailPaged[~azure.mgmt.consumption.models.UsageDetail]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/usageDetails'\n+                path_format_arguments = {\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+                    'billingPeriodName': self._serialize.url(\"billing_period_name\", billing_period_name, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                if expand is not None:\n+                    query_parameters['$expand'] = self._serialize.query(\"expand\", expand, 'str')\n+                if filter is not None:\n+                    query_parameters['$filter'] = self._serialize.query(\"filter\", filter, 'str')\n+                if skiptoken is not None:\n+                    query_parameters['$skiptoken'] = self._serialize.query(\"skiptoken\", skiptoken, 'str')\n+                if top is not None:\n+                    query_parameters['$top'] = self._serialize.query(\"top\", top, 'int', maximum=1000, minimum=1)\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"9c644827672b274106be6000914f998e7e703574","filename":"azure-mgmt-consumption/azure/mgmt/consumption/version.py","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/version.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/3d6c419cd2ade53c240c40db96dbe34957351244/azure-mgmt-consumption/azure/mgmt/consumption/version.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/version.py?ref=3d6c419cd2ade53c240c40db96dbe34957351244","patch":"@@ -9,5 +9,5 @@\n # regenerated.\n # --------------------------------------------------------------------------\n \n-VERSION = \"1.1.0\"\n+VERSION = \"1.2.0\"\n "}]

https
GET
api.github.com
None
/repos/Azure/azure-sdk-for-python/commits/042b7a5840ff471776bb64e46b50950ee9f84430
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Date', 'Thu, 17 May 2018 21:27:38 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4773'), ('X-RateLimit-Reset', '1526593184'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('ETag', 'W/"dc862e28bdff24590d33c5d927a64947"'), ('Last-Modified', 'Thu, 25 Jan 2018 19:40:02 GMT'), ('X-OAuth-Scopes', 'repo, user'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-Runtime-rack', '0.277675'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '1714:97BA:C92467:104F1B5:5AFDF3CA')]
{"sha":"042b7a5840ff471776bb64e46b50950ee9f84430","commit":{"author":{"name":"Azure SDK for Python bot","email":"aspysdk2@microsoft.com","date":"2018-01-25T19:40:02Z"},"committer":{"name":"Azure SDK for Python bot","email":"aspysdk2@microsoft.com","date":"2018-01-25T19:40:02Z"},"message":"Generated from a59b564eca116f99d057c9758d0dd40393ce75b7\n\nIntroduce Pricesheet Arm API","tree":{"sha":"a6d63b3754e7f65c6a4fbed3d3e9c5a2d72ce778","url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/trees/a6d63b3754e7f65c6a4fbed3d3e9c5a2d72ce778"},"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/git/commits/042b7a5840ff471776bb64e46b50950ee9f84430","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/commits/042b7a5840ff471776bb64e46b50950ee9f84430","html_url":"https://github.com/Azure/azure-sdk-for-python/commit/042b7a5840ff471776bb64e46b50950ee9f84430","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/commits/042b7a5840ff471776bb64e46b50950ee9f84430/comments","author":{"login":"AutorestCI","id":18218145,"avatar_url":"https://avatars3.githubusercontent.com/u/18218145?v=4","gravatar_id":"","url":"https://api.github.com/users/AutorestCI","html_url":"https://github.com/AutorestCI","followers_url":"https://api.github.com/users/AutorestCI/followers","following_url":"https://api.github.com/users/AutorestCI/following{/other_user}","gists_url":"https://api.github.com/users/AutorestCI/gists{/gist_id}","starred_url":"https://api.github.com/users/AutorestCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutorestCI/subscriptions","organizations_url":"https://api.github.com/users/AutorestCI/orgs","repos_url":"https://api.github.com/users/AutorestCI/repos","events_url":"https://api.github.com/users/AutorestCI/events{/privacy}","received_events_url":"https://api.github.com/users/AutorestCI/received_events","type":"User","site_admin":false},"committer":{"login":"AutorestCI","id":18218145,"avatar_url":"https://avatars3.githubusercontent.com/u/18218145?v=4","gravatar_id":"","url":"https://api.github.com/users/AutorestCI","html_url":"https://github.com/AutorestCI","followers_url":"https://api.github.com/users/AutorestCI/followers","following_url":"https://api.github.com/users/AutorestCI/following{/other_user}","gists_url":"https://api.github.com/users/AutorestCI/gists{/gist_id}","starred_url":"https://api.github.com/users/AutorestCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutorestCI/subscriptions","organizations_url":"https://api.github.com/users/AutorestCI/orgs","repos_url":"https://api.github.com/users/AutorestCI/repos","events_url":"https://api.github.com/users/AutorestCI/events{/privacy}","received_events_url":"https://api.github.com/users/AutorestCI/received_events","type":"User","site_admin":false},"parents":[{"sha":"f4715da4f929733b2b95c03142512f85ae8728a5","url":"https://api.github.com/repos/Azure/azure-sdk-for-python/commits/f4715da4f929733b2b95c03142512f85ae8728a5","html_url":"https://github.com/Azure/azure-sdk-for-python/commit/f4715da4f929733b2b95c03142512f85ae8728a5"}],"stats":{"total":985,"additions":967,"deletions":18},"files":[{"sha":"55432c5a7edf83b2ce128aa764edf18e8bfb3149","filename":"azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py","status":"modified","additions":21,"deletions":4,"changes":25,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/consumption_management_client.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -16,7 +16,9 @@\n from .operations.usage_details_operations import UsageDetailsOperations\n from .operations.reservations_summaries_operations import ReservationsSummariesOperations\n from .operations.reservations_details_operations import ReservationsDetailsOperations\n+from .operations.budgets_operations import BudgetsOperations\n from .operations.operations import Operations\n+from .operations.price_sheet_operations import PriceSheetOperations\n from . import models\n \n \n@@ -30,16 +32,20 @@ class ConsumptionManagementClientConfiguration(AzureConfiguration):\n      object<msrestazure.azure_active_directory>`\n     :param subscription_id: Azure Subscription ID.\n     :type subscription_id: str\n+    :param name: Budget name.\n+    :type name: str\n     :param str base_url: Service URL\n     \"\"\"\n \n     def __init__(\n-            self, credentials, subscription_id, base_url=None):\n+            self, credentials, subscription_id, name, base_url=None):\n \n         if credentials is None:\n             raise ValueError(\"Parameter 'credentials' must not be None.\")\n         if subscription_id is None:\n             raise ValueError(\"Parameter 'subscription_id' must not be None.\")\n+        if name is None:\n+            raise ValueError(\"Parameter 'name' must not be None.\")\n         if not base_url:\n             base_url = 'https://management.azure.com'\n \n@@ -50,6 +56,7 @@ def __init__(\n \n         self.credentials = credentials\n         self.subscription_id = subscription_id\n+        self.name = name\n \n \n class ConsumptionManagementClient(object):\n@@ -64,25 +71,31 @@ class ConsumptionManagementClient(object):\n     :vartype reservations_summaries: azure.mgmt.consumption.operations.ReservationsSummariesOperations\n     :ivar reservations_details: ReservationsDetails operations\n     :vartype reservations_details: azure.mgmt.consumption.operations.ReservationsDetailsOperations\n+    :ivar budgets: Budgets operations\n+    :vartype budgets: azure.mgmt.consumption.operations.BudgetsOperations\n     :ivar operations: Operations operations\n     :vartype operations: azure.mgmt.consumption.operations.Operations\n+    :ivar price_sheet: PriceSheet operations\n+    :vartype price_sheet: azure.mgmt.consumption.operations.PriceSheetOperations\n \n     :param credentials: Credentials needed for the client to connect to Azure.\n     :type credentials: :mod:`A msrestazure Credentials\n      object<msrestazure.azure_active_directory>`\n     :param subscription_id: Azure Subscription ID.\n     :type subscription_id: str\n+    :param name: Budget name.\n+    :type name: str\n     :param str base_url: Service URL\n     \"\"\"\n \n     def __init__(\n-            self, credentials, subscription_id, base_url=None):\n+            self, credentials, subscription_id, name, base_url=None):\n \n-        self.config = ConsumptionManagementClientConfiguration(credentials, subscription_id, base_url)\n+        self.config = ConsumptionManagementClientConfiguration(credentials, subscription_id, name, base_url)\n         self._client = ServiceClient(self.config.credentials, self.config)\n \n         client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}\n-        self.api_version = '2017-11-30'\n+        self.api_version = '2018-01-31'\n         self._serialize = Serializer(client_models)\n         self._deserialize = Deserializer(client_models)\n \n@@ -92,5 +105,9 @@ def __init__(\n             self._client, self.config, self._serialize, self._deserialize)\n         self.reservations_details = ReservationsDetailsOperations(\n             self._client, self.config, self._serialize, self._deserialize)\n+        self.budgets = BudgetsOperations(\n+            self._client, self.config, self._serialize, self._deserialize)\n         self.operations = Operations(\n             self._client, self.config, self._serialize, self._deserialize)\n+        self.price_sheet = PriceSheetOperations(\n+            self._client, self.config, self._serialize, self._deserialize)"},{"sha":"2565b46a9d2b4dc2df7fa591699f866b2f496d1b","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py","status":"modified","additions":24,"deletions":0,"changes":24,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -13,16 +13,28 @@\n from .usage_detail import UsageDetail\n from .reservation_summaries import ReservationSummaries\n from .reservation_details import ReservationDetails\n+from .budget_time_period import BudgetTimePeriod\n+from .filters import Filters\n+from .current_spend import CurrentSpend\n+from .notification import Notification\n+from .budget import Budget\n from .error_details import ErrorDetails\n from .error_response import ErrorResponse, ErrorResponseException\n from .operation_display import OperationDisplay\n from .operation import Operation\n from .resource import Resource\n+from .proxy_resource import ProxyResource\n+from .price_sheet import PriceSheet\n from .usage_detail_paged import UsageDetailPaged\n from .reservation_summaries_paged import ReservationSummariesPaged\n from .reservation_details_paged import ReservationDetailsPaged\n+from .budget_paged import BudgetPaged\n from .operation_paged import OperationPaged\n+from .price_sheet_paged import PriceSheetPaged\n from .consumption_management_client_enums import (\n+    CategoryType,\n+    TimeGrainType,\n+    OperatorType,\n     Datagrain,\n )\n \n@@ -31,14 +43,26 @@\n     'UsageDetail',\n     'ReservationSummaries',\n     'ReservationDetails',\n+    'BudgetTimePeriod',\n+    'Filters',\n+    'CurrentSpend',\n+    'Notification',\n+    'Budget',\n     'ErrorDetails',\n     'ErrorResponse', 'ErrorResponseException',\n     'OperationDisplay',\n     'Operation',\n     'Resource',\n+    'ProxyResource',\n+    'PriceSheet',\n     'UsageDetailPaged',\n     'ReservationSummariesPaged',\n     'ReservationDetailsPaged',\n+    'BudgetPaged',\n     'OperationPaged',\n+    'PriceSheetPaged',\n+    'CategoryType',\n+    'TimeGrainType',\n+    'OperatorType',\n     'Datagrain',\n ]"},{"sha":"f6485d49266ddf2734c02ab55dceb9aba94bfe0a","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py","status":"added","additions":91,"deletions":0,"changes":91,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/budget.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,91 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from .proxy_resource import ProxyResource\n+\n+\n+class Budget(ProxyResource):\n+    \"\"\"A budget resource.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar id: Resource Id.\n+    :vartype id: str\n+    :ivar name: Resource name.\n+    :vartype name: str\n+    :ivar type: Resource type.\n+    :vartype type: str\n+    :param e_tag: eTag of the resource. To handle concurrent update scenarion,\n+     this field will be used to determine whether the user is updating the\n+     latest version or not.\n+    :type e_tag: str\n+    :param category: The category of the budget, whether the budget tracks\n+     cost or usage. Possible values include: 'Cost', 'Usage'\n+    :type category: str or ~azure.mgmt.consumption.models.CategoryType\n+    :param amount: The total amount of cost to track with the budget\n+    :type amount: decimal.Decimal\n+    :param time_grain: The time covered by a budget. Tracking of the amount\n+     will be reset based on the time grain. Possible values include: 'Monthly',\n+     'Quarterly', 'Annually'\n+    :type time_grain: str or ~azure.mgmt.consumption.models.TimeGrainType\n+    :param time_period: Has start and end date of the budget. The start date\n+     must be first of the month and should be less than the end date. Budget\n+     start date must be on or after June 1, 2017. Future start date should not\n+     be more than three months. Past start date should  be selected within the\n+     timegrain preiod. There are no restrictions on the end date.\n+    :type time_period: ~azure.mgmt.consumption.models.BudgetTimePeriod\n+    :param filters: May be used to filter budgets by resource group, resource,\n+     or meter.\n+    :type filters: ~azure.mgmt.consumption.models.Filters\n+    :ivar current_spend: The current amount of cost which is being tracked for\n+     a budget.\n+    :vartype current_spend: ~azure.mgmt.consumption.models.CurrentSpend\n+    :param notifications: Dictionary of notifications associated with the\n+     budget. Budget can have up to five notifications.\n+    :type notifications: dict[str,\n+     ~azure.mgmt.consumption.models.Notification]\n+    \"\"\"\n+\n+    _validation = {\n+        'id': {'readonly': True},\n+        'name': {'readonly': True},\n+        'type': {'readonly': True},\n+        'category': {'required': True},\n+        'amount': {'required': True},\n+        'time_grain': {'required': True},\n+        'time_period': {'required': True},\n+        'current_spend': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'id': {'key': 'id', 'type': 'str'},\n+        'name': {'key': 'name', 'type': 'str'},\n+        'type': {'key': 'type', 'type': 'str'},\n+        'e_tag': {'key': 'eTag', 'type': 'str'},\n+        'category': {'key': 'properties.category', 'type': 'str'},\n+        'amount': {'key': 'properties.amount', 'type': 'decimal'},\n+        'time_grain': {'key': 'properties.timeGrain', 'type': 'str'},\n+        'time_period': {'key': 'properties.timePeriod', 'type': 'BudgetTimePeriod'},\n+        'filters': {'key': 'properties.filters', 'type': 'Filters'},\n+        'current_spend': {'key': 'properties.currentSpend', 'type': 'CurrentSpend'},\n+        'notifications': {'key': 'properties.notifications', 'type': '{Notification}'},\n+    }\n+\n+    def __init__(self, category, amount, time_grain, time_period, e_tag=None, filters=None, notifications=None):\n+        super(Budget, self).__init__(e_tag=e_tag)\n+        self.category = category\n+        self.amount = amount\n+        self.time_grain = time_grain\n+        self.time_period = time_period\n+        self.filters = filters\n+        self.current_spend = None\n+        self.notifications = notifications"},{"sha":"2668382253e2d7aaefb8665a466d2482193e0246","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py","status":"added","additions":27,"deletions":0,"changes":27,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_paged.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,27 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.paging import Paged\n+\n+\n+class BudgetPaged(Paged):\n+    \"\"\"\n+    A paging container for iterating over a list of :class:`Budget <azure.mgmt.consumption.models.Budget>` object\n+    \"\"\"\n+\n+    _attribute_map = {\n+        'next_link': {'key': 'nextLink', 'type': 'str'},\n+        'current_page': {'key': 'value', 'type': '[Budget]'}\n+    }\n+\n+    def __init__(self, *args, **kwargs):\n+\n+        super(BudgetPaged, self).__init__(*args, **kwargs)"},{"sha":"2b1c0e78418a1deb6b6147fc90ea53f1a03256d0","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py","status":"added","additions":37,"deletions":0,"changes":37,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/budget_time_period.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,37 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class BudgetTimePeriod(Model):\n+    \"\"\"The start and end date for a budget.\n+\n+    :param start_date: The start date for the budget.\n+    :type start_date: datetime\n+    :param end_date: The end date for the budget. If not provided, we default\n+     this to 10 years from the start date.\n+    :type end_date: datetime\n+    \"\"\"\n+\n+    _validation = {\n+        'start_date': {'required': True},\n+    }\n+\n+    _attribute_map = {\n+        'start_date': {'key': 'startDate', 'type': 'iso-8601'},\n+        'end_date': {'key': 'endDate', 'type': 'iso-8601'},\n+    }\n+\n+    def __init__(self, start_date, end_date=None):\n+        super(BudgetTimePeriod, self).__init__()\n+        self.start_date = start_date\n+        self.end_date = end_date"},{"sha":"bb0db82f76b32c1d02cca1de69b0ecc49b3b548b","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py","status":"modified","additions":20,"deletions":0,"changes":20,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/consumption_management_client_enums.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -12,6 +12,26 @@\n from enum import Enum\n \n \n+class CategoryType(Enum):\n+\n+    cost = \"Cost\"\n+    usage = \"Usage\"\n+\n+\n+class TimeGrainType(Enum):\n+\n+    monthly = \"Monthly\"\n+    quarterly = \"Quarterly\"\n+    annually = \"Annually\"\n+\n+\n+class OperatorType(Enum):\n+\n+    equal_to = \"EqualTo\"\n+    greater_than = \"GreaterThan\"\n+    greater_than_or_equal_to = \"GreaterThanOrEqualTo\"\n+\n+\n class Datagrain(Enum):\n \n     daily_grain = \"daily\""},{"sha":"839c286b104079f531a4b130f3e01082d63d08ac","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py","status":"added","additions":41,"deletions":0,"changes":41,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/current_spend.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,41 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class CurrentSpend(Model):\n+    \"\"\"The current amount of cost which is being tracked for a budget.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar amount: The total amount of cost which is being tracked by the\n+     budget.\n+    :vartype amount: decimal.Decimal\n+    :ivar unit: The unit of measure for the budget amount.\n+    :vartype unit: str\n+    \"\"\"\n+\n+    _validation = {\n+        'amount': {'readonly': True},\n+        'unit': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'amount': {'key': 'amount', 'type': 'decimal'},\n+        'unit': {'key': 'unit', 'type': 'str'},\n+    }\n+\n+    def __init__(self):\n+        super(CurrentSpend, self).__init__()\n+        self.amount = None\n+        self.unit = None"},{"sha":"dc010a065900621f02b77dfe1b389071e597fd73","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py","status":"added","additions":44,"deletions":0,"changes":44,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/filters.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,44 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class Filters(Model):\n+    \"\"\"May be used to filter budgets by resource group, resource, or meter.\n+\n+    :param resource_groups: The list of filters on resource groups, allowed at\n+     subscription level only.\n+    :type resource_groups: list[str]\n+    :param resources: The list of filters on resources.\n+    :type resources: list[str]\n+    :param meters: The list of filters on meters, mandatory for budgets of\n+     usage category.\n+    :type meters: list[str]\n+    \"\"\"\n+\n+    _validation = {\n+        'resource_groups': {'max_items': 10, 'min_items': 0},\n+        'resources': {'max_items': 10, 'min_items': 0},\n+        'meters': {'max_items': 10, 'min_items': 0},\n+    }\n+\n+    _attribute_map = {\n+        'resource_groups': {'key': 'resourceGroups', 'type': '[str]'},\n+        'resources': {'key': 'resources', 'type': '[str]'},\n+        'meters': {'key': 'meters', 'type': '[str]'},\n+    }\n+\n+    def __init__(self, resource_groups=None, resources=None, meters=None):\n+        super(Filters, self).__init__()\n+        self.resource_groups = resource_groups\n+        self.resources = resources\n+        self.meters = meters"},{"sha":"61e1ca0ed34df63b0df71d2970b19f7fa8a866bd","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py","status":"added","additions":62,"deletions":0,"changes":62,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/notification.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,62 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class Notification(Model):\n+    \"\"\"The notification associated with a budget.\n+\n+    :param enabled: The notification is enabled or not.\n+    :type enabled: bool\n+    :param operator: The comparison operator. Possible values include:\n+     'EqualTo', 'GreaterThan', 'GreaterThanOrEqualTo'\n+    :type operator: str or ~azure.mgmt.consumption.models.OperatorType\n+    :param threshold: Threshold value associated with a notification.\n+     Notification is sent when the cost exceeded the threshold. It is always\n+     percent and has to be between 0 and 1000.\n+    :type threshold: decimal.Decimal\n+    :param contact_emails: Email addresses to send the budget notification to\n+     when the threshold is exceeded.\n+    :type contact_emails: list[str]\n+    :param contact_roles: Contact roles to send the budget notification to\n+     when the threshold is exceeded.\n+    :type contact_roles: list[str]\n+    :param contact_groups: Action groups to send the budget notification to\n+     when the threshold is exceeded.\n+    :type contact_groups: list[str]\n+    \"\"\"\n+\n+    _validation = {\n+        'enabled': {'required': True},\n+        'operator': {'required': True},\n+        'threshold': {'required': True},\n+        'contact_emails': {'required': True, 'max_items': 50, 'min_items': 1},\n+        'contact_groups': {'max_items': 50, 'min_items': 0},\n+    }\n+\n+    _attribute_map = {\n+        'enabled': {'key': 'enabled', 'type': 'bool'},\n+        'operator': {'key': 'operator', 'type': 'str'},\n+        'threshold': {'key': 'threshold', 'type': 'decimal'},\n+        'contact_emails': {'key': 'contactEmails', 'type': '[str]'},\n+        'contact_roles': {'key': 'contactRoles', 'type': '[str]'},\n+        'contact_groups': {'key': 'contactGroups', 'type': '[str]'},\n+    }\n+\n+    def __init__(self, enabled, operator, threshold, contact_emails, contact_roles=None, contact_groups=None):\n+        super(Notification, self).__init__()\n+        self.enabled = enabled\n+        self.operator = operator\n+        self.threshold = threshold\n+        self.contact_emails = contact_emails\n+        self.contact_roles = contact_roles\n+        self.contact_groups = contact_groups"},{"sha":"bc5f89b78fbeb0a81a93d089f3a640f8e63ff3a2","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet.py","status":"added","additions":88,"deletions":0,"changes":88,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,88 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from .resource import Resource\n+\n+\n+class PriceSheet(Resource):\n+    \"\"\"An pricesheet resource.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar id: Resource Id.\n+    :vartype id: str\n+    :ivar name: Resource name.\n+    :vartype name: str\n+    :ivar type: Resource type.\n+    :vartype type: str\n+    :ivar tags: Resource tags.\n+    :vartype tags: dict[str, str]\n+    :ivar billing_period_id: The id of the billing period resource that the\n+     usage belongs to.\n+    :vartype billing_period_id: str\n+    :ivar meter_id: The meter id\n+    :vartype meter_id: str\n+    :ivar meter_details: The details about the meter. By default this is not\n+     populated, unless it's specified in $expand.\n+    :vartype meter_details: ~azure.mgmt.consumption.models.MeterDetails\n+    :ivar unit_of_measure: Unit of measure\n+    :vartype unit_of_measure: str\n+    :ivar included_quantity: Included quality for an offer\n+    :vartype included_quantity: decimal.Decimal\n+    :ivar part_number: Part Number\n+    :vartype part_number: str\n+    :ivar unit_price: Unit Price\n+    :vartype unit_price: decimal.Decimal\n+    :ivar currency_code: Currency Code\n+    :vartype currency_code: str\n+    \"\"\"\n+\n+    _validation = {\n+        'id': {'readonly': True},\n+        'name': {'readonly': True},\n+        'type': {'readonly': True},\n+        'tags': {'readonly': True},\n+        'billing_period_id': {'readonly': True},\n+        'meter_id': {'readonly': True},\n+        'meter_details': {'readonly': True},\n+        'unit_of_measure': {'readonly': True},\n+        'included_quantity': {'readonly': True},\n+        'part_number': {'readonly': True},\n+        'unit_price': {'readonly': True},\n+        'currency_code': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'id': {'key': 'id', 'type': 'str'},\n+        'name': {'key': 'name', 'type': 'str'},\n+        'type': {'key': 'type', 'type': 'str'},\n+        'tags': {'key': 'tags', 'type': '{str}'},\n+        'billing_period_id': {'key': 'properties.billingPeriodId', 'type': 'str'},\n+        'meter_id': {'key': 'properties.meterId', 'type': 'str'},\n+        'meter_details': {'key': 'properties.meterDetails', 'type': 'MeterDetails'},\n+        'unit_of_measure': {'key': 'properties.unitOfMeasure', 'type': 'str'},\n+        'included_quantity': {'key': 'properties.includedQuantity', 'type': 'decimal'},\n+        'part_number': {'key': 'properties.partNumber', 'type': 'str'},\n+        'unit_price': {'key': 'properties.unitPrice', 'type': 'decimal'},\n+        'currency_code': {'key': 'properties.currencyCode', 'type': 'str'},\n+    }\n+\n+    def __init__(self):\n+        super(PriceSheet, self).__init__()\n+        self.billing_period_id = None\n+        self.meter_id = None\n+        self.meter_details = None\n+        self.unit_of_measure = None\n+        self.included_quantity = None\n+        self.part_number = None\n+        self.unit_price = None\n+        self.currency_code = None"},{"sha":"5dfe48207a52fc6efd11d8a2108a89bbed439301","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_paged.py","status":"added","additions":27,"deletions":0,"changes":27,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_paged.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_paged.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/price_sheet_paged.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,27 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.paging import Paged\n+\n+\n+class PriceSheetPaged(Paged):\n+    \"\"\"\n+    A paging container for iterating over a list of :class:`PriceSheet <azure.mgmt.consumption.models.PriceSheet>` object\n+    \"\"\"\n+\n+    _attribute_map = {\n+        'next_link': {'key': 'nextLink', 'type': 'str'},\n+        'current_page': {'key': 'value', 'type': '[PriceSheet]'}\n+    }\n+\n+    def __init__(self, *args, **kwargs):\n+\n+        super(PriceSheetPaged, self).__init__(*args, **kwargs)"},{"sha":"f6a9a40d22d569970958af165de44c9f84162e47","filename":"azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py","status":"added","additions":51,"deletions":0,"changes":51,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/models/proxy_resource.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,51 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+from msrest.serialization import Model\n+\n+\n+class ProxyResource(Model):\n+    \"\"\"The Resource model definition.\n+\n+    Variables are only populated by the server, and will be ignored when\n+    sending a request.\n+\n+    :ivar id: Resource Id.\n+    :vartype id: str\n+    :ivar name: Resource name.\n+    :vartype name: str\n+    :ivar type: Resource type.\n+    :vartype type: str\n+    :param e_tag: eTag of the resource. To handle concurrent update scenarion,\n+     this field will be used to determine whether the user is updating the\n+     latest version or not.\n+    :type e_tag: str\n+    \"\"\"\n+\n+    _validation = {\n+        'id': {'readonly': True},\n+        'name': {'readonly': True},\n+        'type': {'readonly': True},\n+    }\n+\n+    _attribute_map = {\n+        'id': {'key': 'id', 'type': 'str'},\n+        'name': {'key': 'name', 'type': 'str'},\n+        'type': {'key': 'type', 'type': 'str'},\n+        'e_tag': {'key': 'eTag', 'type': 'str'},\n+    }\n+\n+    def __init__(self, e_tag=None):\n+        super(ProxyResource, self).__init__()\n+        self.id = None\n+        self.name = None\n+        self.type = None\n+        self.e_tag = e_tag"},{"sha":"f791e0bc747d0bcd880175ab41f6f1a94f599bb1","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py","status":"modified","additions":4,"deletions":0,"changes":4,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/__init__.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -12,11 +12,15 @@\n from .usage_details_operations import UsageDetailsOperations\n from .reservations_summaries_operations import ReservationsSummariesOperations\n from .reservations_details_operations import ReservationsDetailsOperations\n+from .budgets_operations import BudgetsOperations\n from .operations import Operations\n+from .price_sheet_operations import PriceSheetOperations\n \n __all__ = [\n     'UsageDetailsOperations',\n     'ReservationsSummariesOperations',\n     'ReservationsDetailsOperations',\n+    'BudgetsOperations',\n     'Operations',\n+    'PriceSheetOperations',\n ]"},{"sha":"1694905cc3b44bf71f17a69479734d1a90f0128a","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py","status":"added","additions":297,"deletions":0,"changes":297,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/budgets_operations.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,297 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+import uuid\n+from msrest.pipeline import ClientRawResponse\n+\n+from .. import models\n+\n+\n+class BudgetsOperations(object):\n+    \"\"\"BudgetsOperations operations.\n+\n+    :param client: Client for service requests.\n+    :param config: Configuration of service client.\n+    :param serializer: An object model serializer.\n+    :param deserializer: An objec model deserializer.\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n+    \"\"\"\n+\n+    models = models\n+\n+    def __init__(self, client, config, serializer, deserializer):\n+\n+        self._client = client\n+        self._serialize = serializer\n+        self._deserialize = deserializer\n+        self.api_version = \"2018-01-31\"\n+\n+        self.config = config\n+\n+    def list(\n+            self, scope, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Lists all budgets for a scope.\n+\n+        :param scope: The scope of the budgets. The scope can be\n+         'subscriptions/{subscriptionId}' for a subscription, or\n+         'subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}' for a\n+         resource group under a subscription.\n+        :type scope: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of Budget\n+        :rtype:\n+         ~azure.mgmt.consumption.models.BudgetPaged[~azure.mgmt.consumption.models.Budget]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/{scope}/providers/Microsoft.Consumption/budgets'\n+                path_format_arguments = {\n+                    'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True),\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.BudgetPaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.BudgetPaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def get(\n+            self, scope, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Gets the budget for a scope by budget name.\n+\n+        :param scope: The scope of the budgets. The scope can be\n+         'subscriptions/{subscriptionId}' for a subscription, or\n+         'subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}' for a\n+         resource group under a subscription.\n+        :type scope: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: Budget or ClientRawResponse if raw=true\n+        :rtype: ~azure.mgmt.consumption.models.Budget or\n+         ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/{scope}/providers/Microsoft.Consumption/budgets/{name}'\n+        path_format_arguments = {\n+            'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True),\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+            'name': self._serialize.url(\"self.config.name\", self.config.name, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.get(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        deserialized = None\n+\n+        if response.status_code == 200:\n+            deserialized = self._deserialize('Budget', response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(deserialized, response)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def create_or_update(\n+            self, scope, parameters, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"The operation to create or update a budget. Update operation requires\n+        latest eTag to be set in the request mandatorily. You may obtain the\n+        latest eTag by performing a get operation. Create operation does not\n+        require eTag.\n+\n+        :param scope: The scope of the budgets. The scope can be\n+         'subscriptions/{subscriptionId}' for a subscription, or\n+         'subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}' for a\n+         resource group under a subscription.\n+        :type scope: str\n+        :param parameters: Parameters supplied to the Create Budget operation.\n+        :type parameters: ~azure.mgmt.consumption.models.Budget\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of None\n+        :rtype: ~azure.mgmt.consumption.models.Budget[None]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/{scope}/providers/Microsoft.Consumption/budgets/{name}'\n+                path_format_arguments = {\n+                    'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True),\n+                    'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+                    'name': self._serialize.url(\"self.config.name\", self.config.name, 'str')\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct body\n+            body_content = self._serialize.body(parameters, 'Budget')\n+\n+            # Construct and send request\n+            request = self._client.put(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, body_content, stream=False, **operation_config)\n+\n+            if response.status_code not in [200, 201]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.Budget(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.Budget(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized\n+\n+    def delete(\n+            self, scope, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"The operation to delete a budget.\n+\n+        :param scope: The scope of the budgets. The scope can be\n+         'subscriptions/{subscriptionId}' for a subscription, or\n+         'subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}' for a\n+         resource group under a subscription.\n+        :type scope: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: None or ClientRawResponse if raw=true\n+        :rtype: None or ~msrest.pipeline.ClientRawResponse\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        # Construct URL\n+        url = '/{scope}/providers/Microsoft.Consumption/budgets/{name}'\n+        path_format_arguments = {\n+            'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True),\n+            'subscriptionId': self._serialize.url(\"self.config.subscription_id\", self.config.subscription_id, 'str'),\n+            'name': self._serialize.url(\"self.config.name\", self.config.name, 'str')\n+        }\n+        url = self._client.format_url(url, **path_format_arguments)\n+\n+        # Construct parameters\n+        query_parameters = {}\n+        query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+        # Construct headers\n+        header_parameters = {}\n+        header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+        if self.config.generate_client_request_id:\n+            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+        if custom_headers:\n+            header_parameters.update(custom_headers)\n+        if self.config.accept_language is not None:\n+            header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+        # Construct and send request\n+        request = self._client.delete(url, query_parameters)\n+        response = self._client.send(request, header_parameters, stream=False, **operation_config)\n+\n+        if response.status_code not in [200]:\n+            raise models.ErrorResponseException(self._deserialize, response)\n+\n+        if raw:\n+            client_raw_response = ClientRawResponse(None, response)\n+            return client_raw_response"},{"sha":"f3efdae1c20868aef1cbad552979edb11f41663f","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/operations.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -22,7 +22,7 @@ class Operations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n@@ -78,7 +78,7 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"d5663fb7895a1f04d509f50a5821dbe9b94704dc","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py","status":"added","additions":119,"deletions":0,"changes":119,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/price_sheet_operations.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -0,0 +1,119 @@\n+# coding=utf-8\n+# --------------------------------------------------------------------------\n+# Copyright (c) Microsoft Corporation. All rights reserved.\n+# Licensed under the MIT License. See License.txt in the project root for\n+# license information.\n+#\n+# Code generated by Microsoft (R) AutoRest Code Generator.\n+# Changes may cause incorrect behavior and will be lost if the code is\n+# regenerated.\n+# --------------------------------------------------------------------------\n+\n+import uuid\n+from msrest.pipeline import ClientRawResponse\n+\n+from .. import models\n+\n+\n+class PriceSheetOperations(object):\n+    \"\"\"PriceSheetOperations operations.\n+\n+    :param client: Client for service requests.\n+    :param config: Configuration of service client.\n+    :param serializer: An object model serializer.\n+    :param deserializer: An objec model deserializer.\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n+    \"\"\"\n+\n+    models = models\n+\n+    def __init__(self, client, config, serializer, deserializer):\n+\n+        self._client = client\n+        self._serialize = serializer\n+        self._deserialize = deserializer\n+        self.api_version = \"2018-01-31\"\n+\n+        self.config = config\n+\n+    def list(\n+            self, scope, expand=None, skiptoken=None, custom_headers=None, raw=False, **operation_config):\n+        \"\"\"Returns the price sheet associated with subscription guid, for a scope\n+        by billing period.\n+\n+        :param scope: The scope of the price sheet. The scope can be\n+         '/subscriptions/{subscriptionId}' for a subscription, or\n+         '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodId}'\n+         for a billing period.\n+        :type scope: str\n+        :param expand: May be used to expand the properties/meterDetails\n+         within a price sheet. By default, these fields are not included when\n+         returning price sheet.\n+        :type expand: str\n+        :param skiptoken: Skiptoken is only used if a previous operation\n+         returned a partial result. If a previous response contains a nextLink\n+         element, the value of the nextLink element will include a skiptoken\n+         parameter that specifies a starting point to use for subsequent calls.\n+        :type skiptoken: str\n+        :param dict custom_headers: headers that will be added to the request\n+        :param bool raw: returns the direct response alongside the\n+         deserialized response\n+        :param operation_config: :ref:`Operation configuration\n+         overrides<msrest:optionsforoperations>`.\n+        :return: An iterator like instance of PriceSheet\n+        :rtype:\n+         ~azure.mgmt.consumption.models.PriceSheetPaged[~azure.mgmt.consumption.models.PriceSheet]\n+        :raises:\n+         :class:`ErrorResponseException<azure.mgmt.consumption.models.ErrorResponseException>`\n+        \"\"\"\n+        def internal_paging(next_link=None, raw=False):\n+\n+            if not next_link:\n+                # Construct URL\n+                url = '/{scope}/providers/Microsoft.Consumption/pricesheets/default'\n+                path_format_arguments = {\n+                    'scope': self._serialize.url(\"scope\", scope, 'str', skip_quote=True)\n+                }\n+                url = self._client.format_url(url, **path_format_arguments)\n+\n+                # Construct parameters\n+                query_parameters = {}\n+                if expand is not None:\n+                    query_parameters['$expand'] = self._serialize.query(\"expand\", expand, 'str')\n+                if skiptoken is not None:\n+                    query_parameters['$skiptoken'] = self._serialize.query(\"skiptoken\", skiptoken, 'str')\n+                query_parameters['api-version'] = self._serialize.query(\"self.api_version\", self.api_version, 'str')\n+\n+            else:\n+                url = next_link\n+                query_parameters = {}\n+\n+            # Construct headers\n+            header_parameters = {}\n+            header_parameters['Content-Type'] = 'application/json; charset=utf-8'\n+            if self.config.generate_client_request_id:\n+                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())\n+            if custom_headers:\n+                header_parameters.update(custom_headers)\n+            if self.config.accept_language is not None:\n+                header_parameters['accept-language'] = self._serialize.header(\"self.config.accept_language\", self.config.accept_language, 'str')\n+\n+            # Construct and send request\n+            request = self._client.get(url, query_parameters)\n+            response = self._client.send(\n+                request, header_parameters, stream=False, **operation_config)\n+\n+            if response.status_code not in [200]:\n+                raise models.ErrorResponseException(self._deserialize, response)\n+\n+            return response\n+\n+        # Deserialize response\n+        deserialized = models.PriceSheetPaged(internal_paging, self._deserialize.dependencies)\n+\n+        if raw:\n+            header_dict = {}\n+            client_raw_response = models.PriceSheetPaged(internal_paging, self._deserialize.dependencies, header_dict)\n+            return client_raw_response\n+\n+        return deserialized"},{"sha":"300e09f55c73071474db4e279693c0d4eef7d4db","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_details_operations.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -22,7 +22,7 @@ class ReservationsDetailsOperations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n@@ -92,7 +92,7 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"2c5124d9e9e4263cb4b1279bd8347fb627d199c5","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py","status":"modified","additions":3,"deletions":3,"changes":6,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/reservations_summaries_operations.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -22,7 +22,7 @@ class ReservationsSummariesOperations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n@@ -96,7 +96,7 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"69abfd9386466b0d517e293a16264e8082e42147","filename":"azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py","status":"modified","additions":4,"deletions":4,"changes":8,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/operations/usage_details_operations.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -22,7 +22,7 @@ class UsageDetailsOperations(object):\n     :param config: Configuration of service client.\n     :param serializer: An object model serializer.\n     :param deserializer: An objec model deserializer.\n-    :ivar api_version: Version of the API to be used with the client request. The current version is 2017-11-30. Constant value: \"2017-11-30\".\n+    :ivar api_version: Version of the API to be used with the client request. The current version is 2018-01-31. Constant value: \"2018-01-31\".\n     \"\"\"\n \n     models = models\n@@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):\n         self._client = client\n         self._serialize = serializer\n         self._deserialize = deserializer\n-        self.api_version = \"2017-11-30\"\n+        self.api_version = \"2018-01-31\"\n \n         self.config = config\n \n@@ -44,7 +44,7 @@ def list(\n         :param scope: The scope of the usage details. The scope can be\n          '/subscriptions/{subscriptionId}' for a subscription, or\n          '/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'\n-         for a billing perdiod.\n+         for a billing period.\n         :type scope: str\n         :param expand: May be used to expand the\n          properties/additionalProperties or properties/meterDetails within a\n@@ -115,7 +115,7 @@ def internal_paging(next_link=None, raw=False):\n             # Construct and send request\n             request = self._client.get(url, query_parameters)\n             response = self._client.send(\n-                request, header_parameters, **operation_config)\n+                request, header_parameters, stream=False, **operation_config)\n \n             if response.status_code not in [200]:\n                 raise models.ErrorResponseException(self._deserialize, response)"},{"sha":"7bae806554140ef811329cd7f7e3a8e337d580fe","filename":"azure-mgmt-consumption/azure/mgmt/consumption/version.py","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/Azure/azure-sdk-for-python/blob/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/version.py","raw_url":"https://github.com/Azure/azure-sdk-for-python/raw/042b7a5840ff471776bb64e46b50950ee9f84430/azure-mgmt-consumption/azure/mgmt/consumption/version.py","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/contents/azure-mgmt-consumption/azure/mgmt/consumption/version.py?ref=042b7a5840ff471776bb64e46b50950ee9f84430","patch":"@@ -9,5 +9,5 @@\n # regenerated.\n # --------------------------------------------------------------------------\n \n-VERSION = \"1.1.0\"\n+VERSION = \"2018-01-31\"\n "}]}

