class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachineFragment

A virtual machine.

Attributes

allow_claim[RW]

@return [Boolean] Indicates whether another user can take ownership of the virtual machine

artifact_deployment_status[RW]

@return [ArtifactDeploymentStatusPropertiesFragment] The artifact deployment status for the virtual machine.

artifacts[RW]

@return [Array<ArtifactInstallPropertiesFragment>] The artifacts to be installed on the virtual machine.

compute_id[RW]

@return [String] The resource identifier (Microsoft.Compute) of the virtual machine.

created_by_user[RW]

@return [String] The email address of creator of the virtual machine.

created_by_user_id[RW]

@return [String] The object identifier of the creator of the virtual machine.

created_date[RW]

@return [DateTime] The creation date of the virtual machine.

custom_image_id[RW]

@return [String] The custom image identifier of the virtual machine.

data_disk_parameters[RW]

@return [Array<DataDiskPropertiesFragment>] New or existing data disks to attach to the virtual machine after creation

disallow_public_ip_address[RW]

@return [Boolean] Indicates whether the virtual machine is to be created without a public IP address.

environment_id[RW]

@return [String] The resource ID of the environment that contains this virtual machine, if any.

expiration_date[RW]

@return [DateTime] The expiration date for VM.

fqdn[RW]

@return [String] The fully-qualified domain name of the virtual machine.

is_authentication_with_ssh_key[RW]

@return [Boolean] Indicates whether this virtual machine uses an SSH key for authentication.

lab_subnet_name[RW]

@return [String] The lab subnet name of the virtual machine.

lab_virtual_network_id[RW]

@return [String] The lab virtual network identifier of the virtual machine.

last_known_power_state[RW]

@return [String] Last known compute power state captured in DTL

network_interface[RW]

@return [NetworkInterfacePropertiesFragment] The network interface properties.

notes[RW]

@return [String] The notes of the virtual machine.

os_type[RW]

@return [String] The OS type of the virtual machine.

owner_object_id[RW]

@return [String] The object identifier of the owner of the virtual machine.

owner_user_principal_name[RW]

@return [String] The user principal name of the virtual machine owner.

password[RW]

@return [String] The password of the virtual machine administrator.

plan_id[RW]

@return [String] The id of the plan associated with the virtual machine image

schedule_parameters[RW]

@return [Array<ScheduleCreationParameterFragment>] Virtual Machine schedules to be created

size[RW]

@return [String] The size of the virtual machine.

ssh_key[RW]

@return [String] The SSH key of the virtual machine administrator.

storage_type[RW]

@return [String] Storage type to use for virtual machine (i.e. Standard, Premium).

user_name[RW]

@return [String] The user name of the virtual machine.

virtual_machine_creation_source[RW]

@return [VirtualMachineCreationSource] Tells source of creation of lab virtual machine. Output property only. Possible values include: 'FromCustomImage', 'FromGalleryImage', 'FromSharedGalleryImage'

Private Class Methods

mapper() click to toggle source

Mapper for LabVirtualMachineFragment class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb, line 132
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LabVirtualMachineFragment',
    type: {
      name: 'Composite',
      class_name: 'LabVirtualMachineFragment',
      model_properties: {
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        notes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.notes',
          type: {
            name: 'String'
          }
        },
        owner_object_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ownerObjectId',
          type: {
            name: 'String'
          }
        },
        owner_user_principal_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ownerUserPrincipalName',
          type: {
            name: 'String'
          }
        },
        created_by_user_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.createdByUserId',
          type: {
            name: 'String'
          }
        },
        created_by_user: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.createdByUser',
          type: {
            name: 'String'
          }
        },
        created_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.createdDate',
          type: {
            name: 'DateTime'
          }
        },
        compute_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.computeId',
          type: {
            name: 'String'
          }
        },
        custom_image_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.customImageId',
          type: {
            name: 'String'
          }
        },
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'String'
          }
        },
        size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.size',
          type: {
            name: 'String'
          }
        },
        user_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.userName',
          type: {
            name: 'String'
          }
        },
        password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.password',
          type: {
            name: 'String'
          }
        },
        ssh_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sshKey',
          type: {
            name: 'String'
          }
        },
        is_authentication_with_ssh_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isAuthenticationWithSshKey',
          type: {
            name: 'Boolean'
          }
        },
        fqdn: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.fqdn',
          type: {
            name: 'String'
          }
        },
        lab_subnet_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.labSubnetName',
          type: {
            name: 'String'
          }
        },
        lab_virtual_network_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.labVirtualNetworkId',
          type: {
            name: 'String'
          }
        },
        disallow_public_ip_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.disallowPublicIpAddress',
          type: {
            name: 'Boolean'
          }
        },
        artifacts: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.artifacts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ArtifactInstallPropertiesFragmentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ArtifactInstallPropertiesFragment'
                }
            }
          }
        },
        artifact_deployment_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.artifactDeploymentStatus',
          type: {
            name: 'Composite',
            class_name: 'ArtifactDeploymentStatusPropertiesFragment'
          }
        },
        gallery_image_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.galleryImageReference',
          type: {
            name: 'Composite',
            class_name: 'GalleryImageReferenceFragment'
          }
        },
        plan_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.planId',
          type: {
            name: 'String'
          }
        },
        network_interface: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkInterface',
          type: {
            name: 'Composite',
            class_name: 'NetworkInterfacePropertiesFragment'
          }
        },
        expiration_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.expirationDate',
          type: {
            name: 'DateTime'
          }
        },
        allow_claim: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.allowClaim',
          type: {
            name: 'Boolean'
          }
        },
        storage_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.storageType',
          type: {
            name: 'String'
          }
        },
        virtual_machine_creation_source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualMachineCreationSource',
          type: {
            name: 'String'
          }
        },
        environment_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.environmentId',
          type: {
            name: 'String'
          }
        },
        data_disk_parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.dataDiskParameters',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DataDiskPropertiesFragmentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'DataDiskPropertiesFragment'
                }
            }
          }
        },
        schedule_parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.scheduleParameters',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ScheduleCreationParameterFragmentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ScheduleCreationParameterFragment'
                }
            }
          }
        },
        last_known_power_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastKnownPowerState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end