class Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountCreateParameters

Parameters supplied to the Create operation.

Attributes

auto_storage[RW]

@return [AutoStorageBaseProperties] The properties related to the auto-storage account.

key_vault_reference[RW]

@return [KeyVaultReference] A reference to the Azure key vault associated with the Batch account.

location[RW]

@return [String] The region in which to create the account.

pool_allocation_mode[RW]

@return [PoolAllocationMode] The allocation mode to use for creating pools in the Batch account. The pool allocation mode also affects how clients may authenticate to the Batch Service API. If the mode is BatchService, clients may authenticate using access keys or Azure Active Directory. If the mode is UserSubscription, clients must use Azure Active Directory. The default is BatchService. Possible values include: 'BatchService', 'UserSubscription'

tags[RW]

@return [Hash{String => String}] The user-specified tags associated with the account.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb, line 44
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BatchAccountCreateParameters',
    type: {
      name: 'Composite',
      class_name: 'BatchAccountCreateParameters',
      model_properties: {
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        auto_storage: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.autoStorage',
          type: {
            name: 'Composite',
            class_name: 'AutoStorageBaseProperties'
          }
        },
        pool_allocation_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.poolAllocationMode',
          type: {
            name: 'Enum',
            module: 'PoolAllocationMode'
          }
        },
        key_vault_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.keyVaultReference',
          type: {
            name: 'Composite',
            class_name: 'KeyVaultReference'
          }
        }
      }
    }
  }
end