class Azure::Postgresql::Mgmt::V2017_12_01_preview::Models::ServerForCreate

Represents a server to be created.

Attributes

location[RW]

@return [String] The location the resource resides in.

properties[RW]

@return [ServerPropertiesForCreate] Properties of the server.

sku[RW]

@return [Sku] The SKU (pricing tier) of the server.

tags[RW]

@return [Hash{String => String}] Application-specific metadata in the form of key-value pairs.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-12-01-preview/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