Class: Azure::Batch::Mgmt::V2017_01_01::Models::ApplicationPackage

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-01-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

Class Method Summary collapse

Instance Attribute Details

#formatString

is active.

Returns:

  • (String)

    The format of the application package, if the package



28
29
30
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 28

def format
  @format
end

#idString

Returns The ID of the application.

Returns:

  • (String)

    The ID of the application.



17
18
19
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 17

def id
  @id
end

#last_activation_timeDateTime

the package is active.

Returns:

  • (DateTime)

    The time at which the package was last activated, if



39
40
41
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 39

def last_activation_time
  @last_activation_time
end

#statePackageState

Possible values include: ‘pending’, ‘active’, ‘unmapped’

Returns:

  • (PackageState)

    The current state of the application package.



24
25
26
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 24

def state
  @state
end

#storage_urlString

stored.

Returns:

  • (String)

    The storage URL at which the application package is



32
33
34
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 32

def storage_url
  @storage_url
end

#storage_url_expiryDateTime

Returns The UTC time at which the storage URL will expire.

Returns:

  • (DateTime)

    The UTC time at which the storage URL will expire.



35
36
37
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 35

def storage_url_expiry
  @storage_url_expiry
end

#versionString

Returns The version of the application package.

Returns:

  • (String)

    The version of the application package.



20
21
22
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 20

def version
  @version
end

Class Method Details

.mapperObject

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



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
# File 'lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb', line 46

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'
          }
        },
        version: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'version',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'Enum',
            module: 'PackageState'
          }
        },
        format: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'format',
          type: {
            name: 'String'
          }
        },
        storage_url: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'storageUrl',
          type: {
            name: 'String'
          }
        },
        storage_url_expiry: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'storageUrlExpiry',
          type: {
            name: 'DateTime'
          }
        },
        last_activation_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastActivationTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end