class Azure::Batch::Mgmt::V2019_04_01::Models::ApplicationPackageReference

Link to an application package inside the batch account

Attributes

id[RW]

@return [String] The ID of the application package to install. This must be inside the same batch account as the pool. This can either be a reference to a specific version or the default version if one exists.

version[RW]

@return [String] The version of the application to deploy. If omitted, the default version is deployed. If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-04-01/generated/azure_mgmt_batch/models/application_package_reference.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationPackageReference',
    type: {
      name: 'Composite',
      class_name: 'ApplicationPackageReference',
      model_properties: {
        id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'version',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end