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.0"
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 @@ -341,7 +341,7 @@ async def update(
resource_group_name: str,
lab_name: str,
name: str,
artifact_source: "_models.ArtifactSourceFragment",
tags: Optional[Dict[str, str]] = None,
**kwargs
) -> "_models.ArtifactSource":
"""Allows modifying tags of artifact sources. All other properties will be ignored.
Expand All @@ -352,8 +352,8 @@ async def update(
:type lab_name: str
:param name: The name of the artifact source.
:type name: str
:param artifact_source: Properties of an artifact source.
:type artifact_source: ~azure.mgmt.devtestlabs.models.ArtifactSourceFragment
:param tags: The tags of the resource.
:type tags: dict[str, str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ArtifactSource, or the result of cls(response)
:rtype: ~azure.mgmt.devtestlabs.models.ArtifactSource
Expand All @@ -364,6 +364,8 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_artifact_source = _models.UpdateResource(tags=tags)
api_version = "2018-09-15"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
Expand All @@ -388,7 +390,7 @@ async def update(
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(artifact_source, 'ArtifactSourceFragment')
body_content = self._serialize.body(_artifact_source, 'UpdateResource')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ async def update(
resource_group_name: str,
lab_name: str,
name: str,
custom_image: "_models.CustomImageFragment",
tags: Optional[Dict[str, str]] = None,
**kwargs
) -> "_models.CustomImage":
"""Allows modifying tags of custom images. All other properties will be ignored.
Expand All @@ -471,8 +471,8 @@ async def update(
:type lab_name: str
:param name: The name of the custom image.
:type name: str
:param custom_image: A custom image.
:type custom_image: ~azure.mgmt.devtestlabs.models.CustomImageFragment
:param tags: The tags of the resource.
:type tags: dict[str, str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: CustomImage, or the result of cls(response)
:rtype: ~azure.mgmt.devtestlabs.models.CustomImage
Expand All @@ -483,6 +483,8 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_custom_image = _models.UpdateResource(tags=tags)
api_version = "2018-09-15"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
Expand All @@ -507,7 +509,7 @@ async def update(
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(custom_image, 'CustomImageFragment')
body_content = self._serialize.body(_custom_image, 'UpdateResource')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def update(
lab_name: str,
user_name: str,
name: str,
disk: "_models.DiskFragment",
tags: Optional[Dict[str, str]] = None,
**kwargs
) -> "_models.Disk":
"""Allows modifying tags of disks. All other properties will be ignored.
Expand All @@ -496,8 +496,8 @@ async def update(
:type user_name: str
:param name: The name of the disk.
:type name: str
:param disk: A Disk.
:type disk: ~azure.mgmt.devtestlabs.models.DiskFragment
:param tags: The tags of the resource.
:type tags: dict[str, str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Disk, or the result of cls(response)
:rtype: ~azure.mgmt.devtestlabs.models.Disk
Expand All @@ -508,6 +508,8 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_disk = _models.UpdateResource(tags=tags)
api_version = "2018-09-15"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
Expand All @@ -533,7 +535,7 @@ async def update(
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(disk, 'DiskFragment')
body_content = self._serialize.body(_disk, 'UpdateResource')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def update(
lab_name: str,
user_name: str,
name: str,
dtl_environment: "_models.DtlEnvironmentFragment",
tags: Optional[Dict[str, str]] = None,
**kwargs
) -> "_models.DtlEnvironment":
"""Allows modifying tags of environments. All other properties will be ignored.
Expand All @@ -496,8 +496,8 @@ async def update(
:type user_name: str
:param name: The name of the environment.
:type name: str
:param dtl_environment: An environment, which is essentially an ARM template deployment.
:type dtl_environment: ~azure.mgmt.devtestlabs.models.DtlEnvironmentFragment
:param tags: The tags of the resource.
:type tags: dict[str, str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DtlEnvironment, or the result of cls(response)
:rtype: ~azure.mgmt.devtestlabs.models.DtlEnvironment
Expand All @@ -508,6 +508,8 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_dtl_environment = _models.UpdateResource(tags=tags)
api_version = "2018-09-15"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
Expand All @@ -533,7 +535,7 @@ async def update(
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(dtl_environment, 'DtlEnvironmentFragment')
body_content = self._serialize.body(_dtl_environment, 'UpdateResource')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ async def update(
resource_group_name: str,
lab_name: str,
name: str,
formula: "_models.FormulaFragment",
tags: Optional[Dict[str, str]] = None,
**kwargs
) -> "_models.Formula":
"""Allows modifying tags of formulas. All other properties will be ignored.
Expand All @@ -415,8 +415,8 @@ async def update(
:type lab_name: str
:param name: The name of the formula.
:type name: str
:param formula: A formula for creating a VM, specifying an image base and other parameters.
:type formula: ~azure.mgmt.devtestlabs.models.FormulaFragment
:param tags: The tags of the resource.
:type tags: dict[str, str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Formula, or the result of cls(response)
:rtype: ~azure.mgmt.devtestlabs.models.Formula
Expand All @@ -427,6 +427,8 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_formula = _models.UpdateResource(tags=tags)
api_version = "2018-09-15"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
Expand All @@ -451,7 +453,7 @@ async def update(
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(formula, 'FormulaFragment')
body_content = self._serialize.body(_formula, 'UpdateResource')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ async def update(
self,
resource_group_name: str,
name: str,
schedule: "_models.ScheduleFragment",
tags: Optional[Dict[str, str]] = None,
**kwargs
) -> "_models.Schedule":
"""Allows modifying tags of schedules. All other properties will be ignored.
Expand All @@ -422,8 +422,8 @@ async def update(
:type resource_group_name: str
:param name: The name of the schedule.
:type name: str
:param schedule: A schedule.
:type schedule: ~azure.mgmt.devtestlabs.models.ScheduleFragment
:param tags: The tags of the resource.
:type tags: dict[str, str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Schedule, or the result of cls(response)
:rtype: ~azure.mgmt.devtestlabs.models.Schedule
Expand All @@ -434,6 +434,8 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_schedule = _models.UpdateResource(tags=tags)
api_version = "2018-09-15"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
Expand All @@ -457,7 +459,7 @@ async def update(
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(schedule, 'ScheduleFragment')
body_content = self._serialize.body(_schedule, 'UpdateResource')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ async def update(
self,
resource_group_name: str,
name: str,
lab: "_models.LabFragment",
tags: Optional[Dict[str, str]] = None,
**kwargs
) -> "_models.Lab":
"""Allows modifying tags of labs. All other properties will be ignored.
Expand All @@ -534,8 +534,8 @@ async def update(
:type resource_group_name: str
:param name: The name of the lab.
:type name: str
:param lab: A lab.
:type lab: ~azure.mgmt.devtestlabs.models.LabFragment
:param tags: The tags of the resource.
:type tags: dict[str, str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Lab, or the result of cls(response)
:rtype: ~azure.mgmt.devtestlabs.models.Lab
Expand All @@ -546,6 +546,8 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))

_lab = _models.UpdateResource(tags=tags)
api_version = "2018-09-15"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
Expand All @@ -569,7 +571,7 @@ async def update(
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(lab, 'LabFragment')
body_content = self._serialize.body(_lab, 'UpdateResource')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
Expand Down
Loading