Class: Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerForCreate

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb

Overview

Represents a server to be created.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#locationString

Returns The location the resource resides in.

Returns:

  • (String)

    The location the resource resides in.



22
23
24
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb', line 22

def location
  @location
end

#propertiesServerPropertiesForCreate

Returns Properties of the server.

Returns:



19
20
21
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb', line 19

def properties
  @properties
end

#skuSku

Returns The SKU (pricing tier) of the server.

Returns:

  • (Sku)

    The SKU (pricing tier) of the server.



16
17
18
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb', line 16

def sku
  @sku
end

#tagsHash{String => String}

form of key-value pairs.

Returns:

  • (Hash{String => String})

    Application-specific metadata in the



26
27
28
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb', line 26

def tags
  @tags
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServerForCreate',
    type: {
      name: 'Composite',
      class_name: 'ServerForCreate',
      model_properties: {
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        properties: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'createMode',
            uber_parent: 'ServerPropertiesForCreate',
            class_name: 'ServerPropertiesForCreate'
          }
        },
        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'
                }
            }
          }
        }
      }
    }
  }
end