Skip to content

Commit

Permalink
CodeGen from PR 15748 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add config for sdk automation of newest rp (Azure#15748)
  • Loading branch information
SDKAuto committed Aug 24, 2021
1 parent 3fe8964 commit 90eec2a
Show file tree
Hide file tree
Showing 41 changed files with 622 additions and 677 deletions.
10 changes: 5 additions & 5 deletions sdk/eventgrid/azure-mgmt-eventgrid/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.1"
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "b554b6d3497ef8a9eff147f94a5d47ba4eeb7a34",
"commit": "e5c47c5615f81613263ff76fe25628ee19030a02",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/eventgrid/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2",
"autorest_command": "autorest specification/eventgrid/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/eventgrid/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-10-15-preview"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-eventgrid/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2020-10-15-preview",
"total_api_version_list": ["2020-10-15-preview"],
"chosen_version": "2021-06-01-preview",
"total_api_version_list": ["2021-06-01-preview"],
"client": {
"name": "EventGridManagementClient",
"filename": "_event_grid_management_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.0.0"
VERSION = "2.2.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-10-15-preview"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-eventgrid/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -119,7 +119,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -242,7 +242,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -382,7 +382,7 @@ def list_by_domain(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -115,7 +115,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -240,7 +240,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -349,7 +349,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -496,7 +496,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -584,7 +584,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -663,7 +663,7 @@ async def list_shared_access_keys(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -726,7 +726,7 @@ async def regenerate_key(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -137,7 +137,7 @@ async def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -191,7 +191,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -331,7 +331,7 @@ def list_by_partner_namespace(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -121,7 +121,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -255,7 +255,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -369,7 +369,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -519,7 +519,7 @@ async def get_full_url(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -585,7 +585,7 @@ def list_global_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -673,7 +673,7 @@ def list_global_by_subscription_for_topic_type(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -762,7 +762,7 @@ def list_global_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -854,7 +854,7 @@ def list_global_by_resource_group_for_topic_type(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -944,7 +944,7 @@ def list_regional_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -1037,7 +1037,7 @@ def list_regional_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -1131,7 +1131,7 @@ def list_regional_by_subscription_for_topic_type(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -1228,7 +1228,7 @@ def list_regional_by_resource_group_for_topic_type(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -1328,7 +1328,7 @@ def list_by_resource(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -1426,7 +1426,7 @@ def list_by_domain_topic(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -1514,7 +1514,7 @@ async def get_delivery_attributes(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-10-15-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Loading

0 comments on commit 90eec2a

Please sign in to comment.