Class: Azure::Compute::Mgmt::V2020_09_30_preview::Models::SharedGalleryImageVersion

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

Overview

Specifies information about the gallery image version that you want to create or update.

Instance Attribute Summary collapse

Attributes inherited from PirSharedGalleryResource

#unique_id

Attributes inherited from PirResource

#location, #name

Class Method Summary collapse

Instance Attribute Details

#end_of_life_dateDateTime

Definition. This property can be used for decommissioning purposes. This property is updatable.

Returns:

  • (DateTime)

    The end of life date of the gallery image version



24
25
26
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image_version.rb', line 24

def end_of_life_date
  @end_of_life_date
end

#published_dateDateTime

Definition. This property can be used for decommissioning purposes. This property is updatable.

Returns:

  • (DateTime)

    The published date of the gallery image version



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

def published_date
  @published_date
end

Class Method Details

.mapperObject

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



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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image_version.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SharedGalleryImageVersion',
    type: {
      name: 'Composite',
      class_name: 'SharedGalleryImageVersion',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        unique_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identifier.uniqueId',
          type: {
            name: 'String'
          }
        },
        published_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.publishedDate',
          type: {
            name: 'DateTime'
          }
        },
        end_of_life_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endOfLifeDate',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end