Skip to content

Commit 9d51cf2

Browse files
AutorestCIlmazuel
authored andcommitted
Generated from dad49351288e4f30220300156d2cfccf9055a949 (#3546) (#3547)
Fix operation named missed in #3947
1 parent 2c5f990 commit 9d51cf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-graphrbac/azure/graphrbac/operations/oauth2_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get(
9898
return deserialized
9999
get.metadata = {'url': '/{tenantID}/oauth2PermissionGrants'}
100100

101-
def post(
101+
def grant(
102102
self, body=None, custom_headers=None, raw=False, **operation_config):
103103
"""Grants OAuth2 permissions for the relevant resource Ids of an app.
104104
@@ -116,7 +116,7 @@ def post(
116116
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
117117
"""
118118
# Construct URL
119-
url = self.post.metadata['url']
119+
url = self.grant.metadata['url']
120120
path_format_arguments = {
121121
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
122122
}
@@ -162,4 +162,4 @@ def post(
162162
return client_raw_response
163163

164164
return deserialized
165-
post.metadata = {'url': '/{tenantID}/oauth2PermissionGrants'}
165+
grant.metadata = {'url': '/{tenantID}/oauth2PermissionGrants'}

0 commit comments

Comments
 (0)