Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR track2_azure-mgmt-azurestack] [Hub Generated] Review request for Microsoft.AzureStack to add version preview/2020-06-01-preview #17891

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/azurestack/azure-mgmt-azurestack/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/azurestack/azure-mgmt-azurestack/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "3.0.6369",
"use": "@autorest/python@5.6.2",
"commit": "ea6ceada9e22eb0d455288d339955dfe56521302",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/azurestack/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.6.2 --version=3.0.6369",
"readme": "specification/azurestack/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
from ._configuration import AzureStackManagementClientConfiguration
from .operations import Operations
from .operations import CloudManifestFileOperations
from .operations import CustomerSubscriptionsOperations
from .operations import ProductsOperations
from .operations import RegistrationsOperations
from .operations import CustomerSubscriptionsOperations
from .operations import LinkedSubscriptionsOperations
from . import models


Expand All @@ -33,12 +34,14 @@ class AzureStackManagementClient(object):
:vartype operations: azure.mgmt.azurestack.operations.Operations
:ivar cloud_manifest_file: CloudManifestFileOperations operations
:vartype cloud_manifest_file: azure.mgmt.azurestack.operations.CloudManifestFileOperations
:ivar customer_subscriptions: CustomerSubscriptionsOperations operations
:vartype customer_subscriptions: azure.mgmt.azurestack.operations.CustomerSubscriptionsOperations
:ivar products: ProductsOperations operations
:vartype products: azure.mgmt.azurestack.operations.ProductsOperations
:ivar registrations: RegistrationsOperations operations
:vartype registrations: azure.mgmt.azurestack.operations.RegistrationsOperations
:ivar customer_subscriptions: CustomerSubscriptionsOperations operations
:vartype customer_subscriptions: azure.mgmt.azurestack.operations.CustomerSubscriptionsOperations
:ivar linked_subscriptions: LinkedSubscriptionsOperations operations
:vartype linked_subscriptions: azure.mgmt.azurestack.operations.LinkedSubscriptionsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -68,11 +71,13 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.cloud_manifest_file = CloudManifestFileOperations(
self._client, self._config, self._serialize, self._deserialize)
self.customer_subscriptions = CustomerSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.products = ProductsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.registrations = RegistrationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.customer_subscriptions = CustomerSubscriptionsOperations(
self.linked_subscriptions = LinkedSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize)

def close(self):
Expand Down
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 = "2017-06-01"
self.api_version = "2020-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurestack/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"chosen_version": "2020-06-01-preview",
"total_api_version_list": ["2020-06-01-preview"],
"client": {
"name": "AzureStackManagementClient",
"filename": "_azure_stack_management_client",
"description": "Azure Stack.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": false,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureStackManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureStackManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential: \"AsyncTokenCredential\",",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id: str,",
"description": "Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id",
"service_client_specific": {
"sync": {
"api_version": {
"signature": "api_version=None, # type: Optional[str]",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url=None, # type: Optional[str]",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
},
"async": {
"api_version": {
"signature": "api_version: Optional[str] = None,",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url: Optional[str] = None,",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile: KnownProfiles = KnownProfiles.default,",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
}
}
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null,
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
"operations": "Operations",
"cloud_manifest_file": "CloudManifestFileOperations",
"customer_subscriptions": "CustomerSubscriptionsOperations",
"products": "ProductsOperations",
"registrations": "RegistrationsOperations",
"linked_subscriptions": "LinkedSubscriptionsOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"

VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
from ._configuration import AzureStackManagementClientConfiguration
from .operations import Operations
from .operations import CloudManifestFileOperations
from .operations import CustomerSubscriptionsOperations
from .operations import ProductsOperations
from .operations import RegistrationsOperations
from .operations import CustomerSubscriptionsOperations
from .operations import LinkedSubscriptionsOperations
from .. import models


Expand All @@ -31,12 +32,14 @@ class AzureStackManagementClient(object):
:vartype operations: azure.mgmt.azurestack.aio.operations.Operations
:ivar cloud_manifest_file: CloudManifestFileOperations operations
:vartype cloud_manifest_file: azure.mgmt.azurestack.aio.operations.CloudManifestFileOperations
:ivar customer_subscriptions: CustomerSubscriptionsOperations operations
:vartype customer_subscriptions: azure.mgmt.azurestack.aio.operations.CustomerSubscriptionsOperations
:ivar products: ProductsOperations operations
:vartype products: azure.mgmt.azurestack.aio.operations.ProductsOperations
:ivar registrations: RegistrationsOperations operations
:vartype registrations: azure.mgmt.azurestack.aio.operations.RegistrationsOperations
:ivar customer_subscriptions: CustomerSubscriptionsOperations operations
:vartype customer_subscriptions: azure.mgmt.azurestack.aio.operations.CustomerSubscriptionsOperations
:ivar linked_subscriptions: LinkedSubscriptionsOperations operations
:vartype linked_subscriptions: azure.mgmt.azurestack.aio.operations.LinkedSubscriptionsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -65,11 +68,13 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.cloud_manifest_file = CloudManifestFileOperations(
self._client, self._config, self._serialize, self._deserialize)
self.customer_subscriptions = CustomerSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.products = ProductsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.registrations = RegistrationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.customer_subscriptions = CustomerSubscriptionsOperations(
self.linked_subscriptions = LinkedSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize)

async def close(self) -> None:
Expand Down
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 = "2017-06-01"
self.api_version = "2020-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurestack/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@

from ._operations import Operations
from ._cloud_manifest_file_operations import CloudManifestFileOperations
from ._customer_subscriptions_operations import CustomerSubscriptionsOperations
from ._products_operations import ProductsOperations
from ._registrations_operations import RegistrationsOperations
from ._customer_subscriptions_operations import CustomerSubscriptionsOperations
from ._linked_subscriptions_operations import LinkedSubscriptionsOperations

__all__ = [
'Operations',
'CloudManifestFileOperations',
'CustomerSubscriptionsOperations',
'ProductsOperations',
'RegistrationsOperations',
'CustomerSubscriptionsOperations',
'LinkedSubscriptionsOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2017-06-01"
api_version = "2020-06-01-preview"
accept = "application/json"

# Construct URL
Expand All @@ -76,7 +76,7 @@ async def list(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('CloudManifestFileResponse', pipeline_response)
Expand Down Expand Up @@ -109,7 +109,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2017-06-01"
api_version = "2020-06-01-preview"
accept = "application/json"

# Construct URL
Expand All @@ -135,7 +135,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorResponse, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('CloudManifestFileResponse', pipeline_response)
Expand Down
Loading