Class: Azure::Batch::Mgmt::V2019_04_01::Models::CheckNameAvailabilityParameters

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

Overview

Parameters for a check name availability request.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameString

Returns The name to check for availability.

Returns:

  • (String)

    The name to check for availability



16
17
18
# File 'lib/2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb', line 16

def name
  @name
end

#typeString

Microsoft.Batch/batchAccounts. Default value: ‘Microsoft.Batch/batchAccounts’ .

Returns:

  • (String)

    The resource type. Must be set to



21
22
23
# File 'lib/2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb', line 21

def type
  @type
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/2019-04-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CheckNameAvailabilityParameters',
    type: {
      name: 'Composite',
      class_name: 'CheckNameAvailabilityParameters',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          is_constant: true,
          serialized_name: 'type',
          default_value: 'Microsoft.Batch/batchAccounts',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end