class Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackage

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

Attributes

format[RW]

@return [String] The format of the application package, if the package is active.

id[RW]

@return [String] The ID of the application.

last_activation_time[RW]

@return [DateTime] The time at which the package was last activated, if the package is active.

state[RW]

@return [PackageState] The current state of the application package. Possible values include: 'Pending', 'Active', 'Unmapped'

storage_url[RW]

@return [String] The URL for the application package in Azure Storage.

storage_url_expiry[RW]

@return [DateTime] The UTC time at which the Azure Storage URL will expire.

version[RW]

@return [String] The version of the application package.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-09-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