Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.provider_operations = ProviderOperationsOperations(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"chosen_version": "2018-09-15",
"total_api_version_list": ["2018-09-15"],
"client": {
"name": "DevTestLabsClient",
"filename": "_dev_test_labs_client",
"description": "The DevTest Labs Client.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
},
"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": "The subscription ID.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential, # type: \"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, # type: str",
"description": "The subscription ID.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id"
},
"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
},
"operation_groups": {
"provider_operations": "ProviderOperationsOperations",
"labs": "LabsOperations",
"operations": "Operations",
"global_schedules": "GlobalSchedulesOperations",
"artifact_sources": "ArtifactSourcesOperations",
"arm_templates": "ArmTemplatesOperations",
"artifacts": "ArtifactsOperations",
"costs": "CostsOperations",
"custom_images": "CustomImagesOperations",
"formulas": "FormulasOperations",
"gallery_images": "GalleryImagesOperations",
"notification_channels": "NotificationChannelsOperations",
"policy_sets": "PolicySetsOperations",
"policies": "PoliciesOperations",
"schedules": "SchedulesOperations",
"service_runners": "ServiceRunnersOperations",
"users": "UsersOperations",
"disks": "DisksOperations",
"environments": "EnvironmentsOperations",
"secrets": "SecretsOperations",
"service_fabrics": "ServiceFabricsOperations",
"service_fabric_schedules": "ServiceFabricSchedulesOperations",
"virtual_machines": "VirtualMachinesOperations",
"virtual_machine_schedules": "VirtualMachineSchedulesOperations",
"virtual_networks": "VirtualNetworksOperations"
},
"operation_mixins": {
},
"sync_imports": "None",
"async_imports": "None"
}
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.0b1"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.provider_operations = ProviderOperationsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
Expand All @@ -33,7 +33,7 @@ class ArmTemplatesOperations:
:param deserializer: An object model deserializer.
"""

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -51,7 +51,7 @@ def list(
top: Optional[int] = None,
orderby: Optional[str] = None,
**kwargs
) -> AsyncIterable["models.ArmTemplateList"]:
) -> AsyncIterable["_models.ArmTemplateList"]:
"""List azure resource manager templates in a given artifact source.

:param resource_group_name: The name of the resource group.
Expand All @@ -74,7 +74,7 @@ def list(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.devtestlabs.models.ArmTemplateList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArmTemplateList"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArmTemplateList"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -148,7 +148,7 @@ async def get(
name: str,
expand: Optional[str] = None,
**kwargs
) -> "models.ArmTemplate":
) -> "_models.ArmTemplate":
"""Get azure resource manager template.

:param resource_group_name: The name of the resource group.
Expand All @@ -166,7 +166,7 @@ async def get(
:rtype: ~azure.mgmt.devtestlabs.models.ArmTemplate
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArmTemplate"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArmTemplate"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
Expand All @@ -33,7 +33,7 @@ class ArtifactSourcesOperations:
:param deserializer: An object model deserializer.
"""

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -50,7 +50,7 @@ def list(
top: Optional[int] = None,
orderby: Optional[str] = None,
**kwargs
) -> AsyncIterable["models.ArtifactSourceList"]:
) -> AsyncIterable["_models.ArtifactSourceList"]:
"""List artifact sources in a given lab.

:param resource_group_name: The name of the resource group.
Expand All @@ -71,7 +71,7 @@ def list(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.devtestlabs.models.ArtifactSourceList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArtifactSourceList"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactSourceList"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -143,7 +143,7 @@ async def get(
name: str,
expand: Optional[str] = None,
**kwargs
) -> "models.ArtifactSource":
) -> "_models.ArtifactSource":
"""Get artifact source.

:param resource_group_name: The name of the resource group.
Expand All @@ -159,7 +159,7 @@ async def get(
:rtype: ~azure.mgmt.devtestlabs.models.ArtifactSource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArtifactSource"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactSource"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -208,9 +208,9 @@ async def create_or_update(
resource_group_name: str,
lab_name: str,
name: str,
artifact_source: "models.ArtifactSource",
artifact_source: "_models.ArtifactSource",
**kwargs
) -> "models.ArtifactSource":
) -> "_models.ArtifactSource":
"""Create or replace an existing artifact source.

:param resource_group_name: The name of the resource group.
Expand All @@ -226,7 +226,7 @@ async def create_or_update(
:rtype: ~azure.mgmt.devtestlabs.models.ArtifactSource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArtifactSource"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactSource"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -341,9 +341,9 @@ async def update(
resource_group_name: str,
lab_name: str,
name: str,
artifact_source: "models.ArtifactSourceFragment",
artifact_source: "_models.ArtifactSourceFragment",
**kwargs
) -> "models.ArtifactSource":
) -> "_models.ArtifactSource":
"""Allows modifying tags of artifact sources. All other properties will be ignored.

:param resource_group_name: The name of the resource group.
Expand All @@ -359,7 +359,7 @@ async def update(
:rtype: ~azure.mgmt.devtestlabs.models.ArtifactSource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArtifactSource"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactSource"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
Expand All @@ -33,7 +33,7 @@ class ArtifactsOperations:
:param deserializer: An object model deserializer.
"""

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -51,7 +51,7 @@ def list(
top: Optional[int] = None,
orderby: Optional[str] = None,
**kwargs
) -> AsyncIterable["models.ArtifactList"]:
) -> AsyncIterable["_models.ArtifactList"]:
"""List artifacts in a given artifact source.

:param resource_group_name: The name of the resource group.
Expand All @@ -74,7 +74,7 @@ def list(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.devtestlabs.models.ArtifactList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArtifactList"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactList"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -148,7 +148,7 @@ async def get(
name: str,
expand: Optional[str] = None,
**kwargs
) -> "models.Artifact":
) -> "_models.Artifact":
"""Get artifact.

:param resource_group_name: The name of the resource group.
Expand All @@ -166,7 +166,7 @@ async def get(
:rtype: ~azure.mgmt.devtestlabs.models.Artifact
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.Artifact"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.Artifact"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -217,9 +217,9 @@ async def generate_arm_template(
lab_name: str,
artifact_source_name: str,
name: str,
generate_arm_template_request: "models.GenerateArmTemplateRequest",
generate_arm_template_request: "_models.GenerateArmTemplateRequest",
**kwargs
) -> "models.ArmTemplateInfo":
) -> "_models.ArmTemplateInfo":
"""Generates an ARM template for the given artifact, uploads the required files to a storage
account, and validates the generated artifact.

Expand All @@ -239,7 +239,7 @@ async def generate_arm_template(
:rtype: ~azure.mgmt.devtestlabs.models.ArmTemplateInfo
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ArmTemplateInfo"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ArmTemplateInfo"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
Expand All @@ -32,7 +32,7 @@ class CostsOperations:
:param deserializer: An object model deserializer.
"""

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -47,7 +47,7 @@ async def get(
name: str,
expand: Optional[str] = None,
**kwargs
) -> "models.LabCost":
) -> "_models.LabCost":
"""Get cost.

:param resource_group_name: The name of the resource group.
Expand All @@ -63,7 +63,7 @@ async def get(
:rtype: ~azure.mgmt.devtestlabs.models.LabCost
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.LabCost"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.LabCost"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -112,9 +112,9 @@ async def create_or_update(
resource_group_name: str,
lab_name: str,
name: str,
lab_cost: "models.LabCost",
lab_cost: "_models.LabCost",
**kwargs
) -> "models.LabCost":
) -> "_models.LabCost":
"""Create or replace an existing cost.

:param resource_group_name: The name of the resource group.
Expand All @@ -130,7 +130,7 @@ async def create_or_update(
:rtype: ~azure.mgmt.devtestlabs.models.LabCost
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.LabCost"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.LabCost"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down
Loading