Class: Azure::Compute::Mgmt::V2020_09_30_preview::Models::GalleryArtifactVersionSource

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb

Overview

The gallery artifact version source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

specify a disk uri, snapshot uri, user image or storage account resource.

Returns:

  • (String)

    The id of the gallery artifact version source. Can



18
19
20
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb', line 18

def id
  @id
end

#uriString

Currently used to specify vhd/blob source.

Returns:

  • (String)

    The uri of the gallery artifact version source.



22
23
24
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb', line 22

def uri
  @uri
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_artifact_version_source.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GalleryArtifactVersionSource',
    type: {
      name: 'Composite',
      class_name: 'GalleryArtifactVersionSource',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'uri',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end