Skip to content

Commit

Permalink
Generated from dad49351288e4f30220300156d2cfccf9055a949 (#3546) (#3547)
Browse files Browse the repository at this point in the history
Fix operation named missed in #3947
  • Loading branch information
AutorestCI authored and lmazuel committed Oct 10, 2018
1 parent 2c5f990 commit 9d51cf2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get(
return deserialized
get.metadata = {'url': '/{tenantID}/oauth2PermissionGrants'}

def post(
def grant(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Grants OAuth2 permissions for the relevant resource Ids of an app.
Expand All @@ -116,7 +116,7 @@ def post(
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = self.post.metadata['url']
url = self.grant.metadata['url']
path_format_arguments = {
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
}
Expand Down Expand Up @@ -162,4 +162,4 @@ def post(
return client_raw_response

return deserialized
post.metadata = {'url': '/{tenantID}/oauth2PermissionGrants'}
grant.metadata = {'url': '/{tenantID}/oauth2PermissionGrants'}

0 comments on commit 9d51cf2

Please sign in to comment.