Skip to content

Commit

Permalink
Merge pull request Azure#1530 from AutorestCI/RestAPI-PR1829
Browse files Browse the repository at this point in the history
[DTL] Add Operations API in DevTestLab swagger
  • Loading branch information
lmazuel authored Oct 25, 2017
2 parents 73ad858 + a36432c commit f6d6a95
Show file tree
Hide file tree
Showing 160 changed files with 1,077 additions and 776 deletions.
Empty file modified azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/__init__.py
100755 → 100644
Empty file.
49 changes: 26 additions & 23 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/dev_test_labs_client.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.labs_operations import LabsOperations
from .operations.operations import Operations
from .operations.global_schedules_operations import GlobalSchedulesOperations
from .operations.artifact_sources_operations import ArtifactSourcesOperations
from .operations.arm_templates_operations import ArmTemplatesOperations
Expand Down Expand Up @@ -57,8 +58,6 @@ def __init__(
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not isinstance(subscription_id, str):
raise TypeError("Parameter 'subscription_id' must be str.")
if not base_url:
base_url = 'https://management.azure.com'

Expand All @@ -78,47 +77,49 @@ class DevTestLabsClient(object):
:vartype config: DevTestLabsClientConfiguration
:ivar labs: Labs operations
:vartype labs: .operations.LabsOperations
:vartype labs: azure.mgmt.devtestlabs.operations.LabsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.devtestlabs.operations.Operations
:ivar global_schedules: GlobalSchedules operations
:vartype global_schedules: .operations.GlobalSchedulesOperations
:vartype global_schedules: azure.mgmt.devtestlabs.operations.GlobalSchedulesOperations
:ivar artifact_sources: ArtifactSources operations
:vartype artifact_sources: .operations.ArtifactSourcesOperations
:vartype artifact_sources: azure.mgmt.devtestlabs.operations.ArtifactSourcesOperations
:ivar arm_templates: ArmTemplates operations
:vartype arm_templates: .operations.ArmTemplatesOperations
:vartype arm_templates: azure.mgmt.devtestlabs.operations.ArmTemplatesOperations
:ivar artifacts: Artifacts operations
:vartype artifacts: .operations.ArtifactsOperations
:vartype artifacts: azure.mgmt.devtestlabs.operations.ArtifactsOperations
:ivar costs: Costs operations
:vartype costs: .operations.CostsOperations
:vartype costs: azure.mgmt.devtestlabs.operations.CostsOperations
:ivar custom_images: CustomImages operations
:vartype custom_images: .operations.CustomImagesOperations
:vartype custom_images: azure.mgmt.devtestlabs.operations.CustomImagesOperations
:ivar formulas: Formulas operations
:vartype formulas: .operations.FormulasOperations
:vartype formulas: azure.mgmt.devtestlabs.operations.FormulasOperations
:ivar gallery_images: GalleryImages operations
:vartype gallery_images: .operations.GalleryImagesOperations
:vartype gallery_images: azure.mgmt.devtestlabs.operations.GalleryImagesOperations
:ivar notification_channels: NotificationChannels operations
:vartype notification_channels: .operations.NotificationChannelsOperations
:vartype notification_channels: azure.mgmt.devtestlabs.operations.NotificationChannelsOperations
:ivar policy_sets: PolicySets operations
:vartype policy_sets: .operations.PolicySetsOperations
:vartype policy_sets: azure.mgmt.devtestlabs.operations.PolicySetsOperations
:ivar policies: Policies operations
:vartype policies: .operations.PoliciesOperations
:vartype policies: azure.mgmt.devtestlabs.operations.PoliciesOperations
:ivar schedules: Schedules operations
:vartype schedules: .operations.SchedulesOperations
:vartype schedules: azure.mgmt.devtestlabs.operations.SchedulesOperations
:ivar service_runners: ServiceRunners operations
:vartype service_runners: .operations.ServiceRunnersOperations
:vartype service_runners: azure.mgmt.devtestlabs.operations.ServiceRunnersOperations
:ivar users: Users operations
:vartype users: .operations.UsersOperations
:vartype users: azure.mgmt.devtestlabs.operations.UsersOperations
:ivar disks: Disks operations
:vartype disks: .operations.DisksOperations
:vartype disks: azure.mgmt.devtestlabs.operations.DisksOperations
:ivar environments: Environments operations
:vartype environments: .operations.EnvironmentsOperations
:vartype environments: azure.mgmt.devtestlabs.operations.EnvironmentsOperations
:ivar secrets: Secrets operations
:vartype secrets: .operations.SecretsOperations
:vartype secrets: azure.mgmt.devtestlabs.operations.SecretsOperations
:ivar virtual_machines: VirtualMachines operations
:vartype virtual_machines: .operations.VirtualMachinesOperations
:vartype virtual_machines: azure.mgmt.devtestlabs.operations.VirtualMachinesOperations
:ivar virtual_machine_schedules: VirtualMachineSchedules operations
:vartype virtual_machine_schedules: .operations.VirtualMachineSchedulesOperations
:vartype virtual_machine_schedules: azure.mgmt.devtestlabs.operations.VirtualMachineSchedulesOperations
:ivar virtual_networks: VirtualNetworks operations
:vartype virtual_networks: .operations.VirtualNetworksOperations
:vartype virtual_networks: azure.mgmt.devtestlabs.operations.VirtualNetworksOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -141,6 +142,8 @@ def __init__(

self.labs = LabsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.global_schedules = GlobalSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.artifact_sources = ArtifactSourcesOperations(
Expand Down
6 changes: 6 additions & 0 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/__init__.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@
from .notification_channel import NotificationChannel
from .notification_channel_fragment import NotificationChannelFragment
from .notify_parameters import NotifyParameters
from .operation_error import OperationError
from .operation_result import OperationResult
from .policy import Policy
from .policy_fragment import PolicyFragment
from .port import Port
Expand Down Expand Up @@ -156,6 +158,7 @@
TargetCostStatus,
ReportingCycleType,
CostType,
HttpStatusCode,
PolicyStatus,
PolicyFactName,
PolicyEvaluatorType,
Expand Down Expand Up @@ -251,6 +254,8 @@
'NotificationChannel',
'NotificationChannelFragment',
'NotifyParameters',
'OperationError',
'OperationResult',
'Policy',
'PolicyFragment',
'Port',
Expand Down Expand Up @@ -309,6 +314,7 @@
'TargetCostStatus',
'ReportingCycleType',
'CostType',
'HttpStatusCode',
'PolicyStatus',
'PolicyFactName',
'PolicyEvaluatorType',
Expand Down
8 changes: 3 additions & 5 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ class ApplicableSchedule(Resource):
:param location: The location of the resource.
:type location: str
:param tags: The tags of the resource.
:type tags: dict
:type tags: dict[str, str]
:param lab_vms_shutdown: The auto-shutdown schedule, if one has been set
at the lab or lab resource level.
:type lab_vms_shutdown: :class:`Schedule
<azure.mgmt.devtestlabs.models.Schedule>`
:type lab_vms_shutdown: ~azure.mgmt.devtestlabs.models.Schedule
:param lab_vms_startup: The auto-startup schedule, if one has been set at
the lab or lab resource level.
:type lab_vms_startup: :class:`Schedule
<azure.mgmt.devtestlabs.models.Schedule>`
:type lab_vms_startup: ~azure.mgmt.devtestlabs.models.Schedule
"""

_validation = {
Expand Down
8 changes: 3 additions & 5 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/applicable_schedule_fragment.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ class ApplicableScheduleFragment(Resource):
:param location: The location of the resource.
:type location: str
:param tags: The tags of the resource.
:type tags: dict
:type tags: dict[str, str]
:param lab_vms_shutdown: The auto-shutdown schedule, if one has been set
at the lab or lab resource level.
:type lab_vms_shutdown: :class:`ScheduleFragment
<azure.mgmt.devtestlabs.models.ScheduleFragment>`
:type lab_vms_shutdown: ~azure.mgmt.devtestlabs.models.ScheduleFragment
:param lab_vms_startup: The auto-startup schedule, if one has been set at
the lab or lab resource level.
:type lab_vms_startup: :class:`ScheduleFragment
<azure.mgmt.devtestlabs.models.ScheduleFragment>`
:type lab_vms_startup: ~azure.mgmt.devtestlabs.models.ScheduleFragment
"""

_validation = {
Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/apply_artifacts_request.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class ApplyArtifactsRequest(Model):
"""Request body for applying artifacts to a virtual machine.
:param artifacts: The list of artifacts to apply.
:type artifacts: list of :class:`ArtifactInstallProperties
<azure.mgmt.devtestlabs.models.ArtifactInstallProperties>`
:type artifacts:
list[~azure.mgmt.devtestlabs.models.ArtifactInstallProperties]
"""

_attribute_map = {
Expand Down
7 changes: 3 additions & 4 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ArmTemplate(Resource):
:param location: The location of the resource.
:type location: str
:param tags: The tags of the resource.
:type tags: dict
:type tags: dict[str, str]
:ivar display_name: The display name of the ARM template.
:vartype display_name: str
:ivar description: The description of the ARM template.
Expand All @@ -42,9 +42,8 @@ class ArmTemplate(Resource):
:vartype created_date: datetime
:ivar parameters_value_files_info: File name and parameter values
information from all azuredeploy.*.parameters.json for the ARM template.
:vartype parameters_value_files_info: list of
:class:`ParametersValueFileInfo
<azure.mgmt.devtestlabs.models.ParametersValueFileInfo>`
:vartype parameters_value_files_info:
list[~azure.mgmt.devtestlabs.models.ParametersValueFileInfo]
"""

_validation = {
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/arm_template_paged.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class ArmTemplatePaged(Paged):
"""
A paging container for iterating over a list of ArmTemplate object
A paging container for iterating over a list of :class:`ArmTemplate <azure.mgmt.devtestlabs.models.ArmTemplate>` object
"""

_attribute_map = {
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Artifact(Resource):
:param location: The location of the resource.
:type location: str
:param tags: The tags of the resource.
:type tags: dict
:type tags: dict[str, str]
:ivar title: The artifact's title.
:vartype title: str
:ivar description: The artifact's description.
Expand Down
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_install_properties.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ArtifactInstallProperties(Model):
:param artifact_id: The artifact's identifier.
:type artifact_id: str
:param parameters: The parameters of the artifact.
:type parameters: list of :class:`ArtifactParameterProperties
<azure.mgmt.devtestlabs.models.ArtifactParameterProperties>`
:type parameters:
list[~azure.mgmt.devtestlabs.models.ArtifactParameterProperties]
:param status: The status of the artifact.
:type status: str
:param deployment_status_message: The status message from the deployment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ArtifactInstallPropertiesFragment(Model):
:param artifact_id: The artifact's identifier.
:type artifact_id: str
:param parameters: The parameters of the artifact.
:type parameters: list of :class:`ArtifactParameterPropertiesFragment
<azure.mgmt.devtestlabs.models.ArtifactParameterPropertiesFragment>`
:type parameters:
list[~azure.mgmt.devtestlabs.models.ArtifactParameterPropertiesFragment]
:param status: The status of the artifact.
:type status: str
:param deployment_status_message: The status message from the deployment.
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_paged.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class ArtifactPaged(Paged):
"""
A paging container for iterating over a list of Artifact object
A paging container for iterating over a list of :class:`Artifact <azure.mgmt.devtestlabs.models.Artifact>` object
"""

_attribute_map = {
Expand Down
Empty file.
Empty file.
8 changes: 3 additions & 5 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ class ArtifactSource(Resource):
:param location: The location of the resource.
:type location: str
:param tags: The tags of the resource.
:type tags: dict
:type tags: dict[str, str]
:param display_name: The artifact source's display name.
:type display_name: str
:param uri: The artifact source's URI.
:type uri: str
:param source_type: The artifact source's type. Possible values include:
'VsoGit', 'GitHub'
:type source_type: str or :class:`SourceControlType
<azure.mgmt.devtestlabs.models.SourceControlType>`
:type source_type: str or ~azure.mgmt.devtestlabs.models.SourceControlType
:param folder_path: The folder containing artifacts.
:type folder_path: str
:param arm_template_folder_path: The folder containing Azure Resource
Expand All @@ -48,8 +47,7 @@ class ArtifactSource(Resource):
:type security_token: str
:param status: Indicates if the artifact source is enabled (values:
Enabled, Disabled). Possible values include: 'Enabled', 'Disabled'
:type status: str or :class:`EnableStatus
<azure.mgmt.devtestlabs.models.EnableStatus>`
:type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus
:ivar created_date: The artifact source's creation date.
:vartype created_date: datetime
:param provisioning_state: The provisioning status of the resource.
Expand Down
8 changes: 3 additions & 5 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_fragment.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ class ArtifactSourceFragment(Resource):
:param location: The location of the resource.
:type location: str
:param tags: The tags of the resource.
:type tags: dict
:type tags: dict[str, str]
:param display_name: The artifact source's display name.
:type display_name: str
:param uri: The artifact source's URI.
:type uri: str
:param source_type: The artifact source's type. Possible values include:
'VsoGit', 'GitHub'
:type source_type: str or :class:`SourceControlType
<azure.mgmt.devtestlabs.models.SourceControlType>`
:type source_type: str or ~azure.mgmt.devtestlabs.models.SourceControlType
:param folder_path: The folder containing artifacts.
:type folder_path: str
:param arm_template_folder_path: The folder containing Azure Resource
Expand All @@ -48,8 +47,7 @@ class ArtifactSourceFragment(Resource):
:type security_token: str
:param status: Indicates if the artifact source is enabled (values:
Enabled, Disabled). Possible values include: 'Enabled', 'Disabled'
:type status: str or :class:`EnableStatus
<azure.mgmt.devtestlabs.models.EnableStatus>`
:type status: str or ~azure.mgmt.devtestlabs.models.EnableStatus
:param provisioning_state: The provisioning status of the resource.
:type provisioning_state: str
:param unique_identifier: The unique immutable identifier of a resource
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact_source_paged.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class ArtifactSourcePaged(Paged):
"""
A paging container for iterating over a list of ArtifactSource object
A paging container for iterating over a list of :class:`ArtifactSource <azure.mgmt.devtestlabs.models.ArtifactSource>` object
"""

_attribute_map = {
Expand Down
Empty file.
3 changes: 1 addition & 2 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/attach_new_data_disk_options.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class AttachNewDataDiskOptions(Model):
:type disk_name: str
:param disk_type: The storage type for the disk (i.e. Standard, Premium).
Possible values include: 'Standard', 'Premium'
:type disk_type: str or :class:`StorageType
<azure.mgmt.devtestlabs.models.StorageType>`
:type disk_type: str or ~azure.mgmt.devtestlabs.models.StorageType
"""

_attribute_map = {
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
9 changes: 4 additions & 5 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class ComputeVmProperties(Model):
"""Properties of a virtual machine returned by the Microsoft.Compute API.
:param statuses: Gets the statuses of the virtual machine.
:type statuses: list of :class:`ComputeVmInstanceViewStatus
<azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatus>`
:type statuses:
list[~azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatus]
:param os_type: Gets the OS type of the virtual machine.
:type os_type: str
:param vm_size: Gets the size of the virtual machine.
Expand All @@ -28,10 +28,9 @@ class ComputeVmProperties(Model):
:param os_disk_id: Gets OS disk blob uri for the virtual machine.
:type os_disk_id: str
:param data_disk_ids: Gets data disks blob uri for the virtual machine.
:type data_disk_ids: list of str
:type data_disk_ids: list[str]
:param data_disks: Gets all data disks attached to the virtual machine.
:type data_disks: list of :class:`ComputeDataDisk
<azure.mgmt.devtestlabs.models.ComputeDataDisk>`
:type data_disks: list[~azure.mgmt.devtestlabs.models.ComputeDataDisk]
"""

_attribute_map = {
Expand Down
10 changes: 5 additions & 5 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/compute_vm_properties_fragment.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class ComputeVmPropertiesFragment(Model):
"""Properties of a virtual machine returned by the Microsoft.Compute API.
:param statuses: Gets the statuses of the virtual machine.
:type statuses: list of :class:`ComputeVmInstanceViewStatusFragment
<azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatusFragment>`
:type statuses:
list[~azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatusFragment]
:param os_type: Gets the OS type of the virtual machine.
:type os_type: str
:param vm_size: Gets the size of the virtual machine.
Expand All @@ -28,10 +28,10 @@ class ComputeVmPropertiesFragment(Model):
:param os_disk_id: Gets OS disk blob uri for the virtual machine.
:type os_disk_id: str
:param data_disk_ids: Gets data disks blob uri for the virtual machine.
:type data_disk_ids: list of str
:type data_disk_ids: list[str]
:param data_disks: Gets all data disks attached to the virtual machine.
:type data_disks: list of :class:`ComputeDataDiskFragment
<azure.mgmt.devtestlabs.models.ComputeDataDiskFragment>`
:type data_disks:
list[~azure.mgmt.devtestlabs.models.ComputeDataDiskFragment]
"""

_attribute_map = {
Expand Down
12 changes: 6 additions & 6 deletions azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/cost_threshold_properties.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ class CostThresholdProperties(Model):
:param threshold_id: The ID of the cost threshold item.
:type threshold_id: str
:param percentage_threshold: The value of the percentage cost threshold.
:type percentage_threshold: :class:`PercentageCostThresholdProperties
<azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties>`
:type percentage_threshold:
~azure.mgmt.devtestlabs.models.PercentageCostThresholdProperties
:param display_on_chart: Indicates whether this threshold will be
displayed on cost charts. Possible values include: 'Enabled', 'Disabled'
:type display_on_chart: str or :class:`CostThresholdStatus
<azure.mgmt.devtestlabs.models.CostThresholdStatus>`
:type display_on_chart: str or
~azure.mgmt.devtestlabs.models.CostThresholdStatus
:param send_notification_when_exceeded: Indicates whether notifications
will be sent when this threshold is exceeded. Possible values include:
'Enabled', 'Disabled'
:type send_notification_when_exceeded: str or :class:`CostThresholdStatus
<azure.mgmt.devtestlabs.models.CostThresholdStatus>`
:type send_notification_when_exceeded: str or
~azure.mgmt.devtestlabs.models.CostThresholdStatus
:param notification_sent: Indicates the datetime when notifications were
last sent for this threshold.
:type notification_sent: str
Expand Down
Loading

0 comments on commit f6d6a95

Please sign in to comment.