Class: Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionPublishingProfile

Inherits:
GalleryArtifactPublishingProfileBase show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb

Overview

The publishing profile of a gallery Image Version.

Instance Attribute Summary collapse

Attributes inherited from GalleryArtifactPublishingProfileBase

#source, #target_regions

Class Method Summary collapse

Instance Attribute Details

#end_of_life_dateDateTime

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

Returns:

  • (DateTime)

    The end of life date of the gallery Image Version.



31
32
33
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb', line 31

def end_of_life_date
  @end_of_life_date
end

#exclude_from_latestBoolean

latest version of the Image Definition won't use this Image Version.

Returns:

  • (Boolean)

    If set to true, Virtual Machines deployed from the



22
23
24
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb', line 22

def exclude_from_latest
  @exclude_from_latest
end

#published_dateDateTime

published.

Returns:

  • (DateTime)

    The timestamp for when the gallery Image Version is



26
27
28
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb', line 26

def published_date
  @published_date
end

#replica_countInteger

created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.

Returns:

  • (Integer)

    The number of replicas of the Image Version to be



18
19
20
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb', line 18

def replica_count
  @replica_count
end

Class Method Details

.mapperObject

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



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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GalleryImageVersionPublishingProfile',
    type: {
      name: 'Composite',
      class_name: 'GalleryImageVersionPublishingProfile',
      model_properties: {
        target_regions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetRegions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TargetRegionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'TargetRegion'
                }
            }
          }
        },
        source: {
          client_side_validation: true,
          required: true,
          serialized_name: 'source',
          type: {
            name: 'Composite',
            class_name: 'GalleryArtifactSource'
          }
        },
        replica_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'replicaCount',
          type: {
            name: 'Number'
          }
        },
        exclude_from_latest: {
          client_side_validation: true,
          required: false,
          serialized_name: 'excludeFromLatest',
          type: {
            name: 'Boolean'
          }
        },
        published_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'publishedDate',
          type: {
            name: 'DateTime'
          }
        },
        end_of_life_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'endOfLifeDate',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end