Class: Azure::Batch::Mgmt::V2019_08_01::Models::ApplicationPackage

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb

Overview

An application package which represents a particular version of an application.

Instance Attribute Summary collapse

Attributes inherited from ProxyResource

#etag, #id, #name, #type

Class Method Summary collapse

Instance Attribute Details

#formatString

is active.

Returns:

  • (String)

    The format of the application package, if the package



22
23
24
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb', line 22

def format
  @format
end

#last_activation_timeDateTime

the package is active.

Returns:

  • (DateTime)

    The time at which the package was last activated, if



33
34
35
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb', line 33

def last_activation_time
  @last_activation_time
end

#statePackageState

Possible values include: ‘Pending’, ‘Active’

Returns:

  • (PackageState)

    The current state of the application package.



18
19
20
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb', line 18

def state
  @state
end

#storage_urlString

Returns The URL for the application package in Azure Storage.

Returns:

  • (String)

    The URL for the application package in Azure Storage.



25
26
27
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb', line 25

def storage_url
  @storage_url
end

#storage_url_expiryDateTime

expire.

Returns:

  • (DateTime)

    The UTC time at which the Azure Storage URL will



29
30
31
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb', line 29

def storage_url_expiry
  @storage_url_expiry
end

Class Method Details

.mapperObject

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



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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/application_package.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationPackage',
    type: {
      name: 'Composite',
      class_name: 'ApplicationPackage',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.state',
          type: {
            name: 'Enum',
            module: 'PackageState'
          }
        },
        format: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.format',
          type: {
            name: 'String'
          }
        },
        storage_url: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.storageUrl',
          type: {
            name: 'String'
          }
        },
        storage_url_expiry: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.storageUrlExpiry',
          type: {
            name: 'DateTime'
          }
        },
        last_activation_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lastActivationTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end