Class: Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForDefaultCreate

Inherits:
ServerPropertiesForCreate show all
Includes:
MsRestAzure
Defined in:
lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_default_create.rb

Overview

The properties used to create a new server.

Instance Attribute Summary collapse

Attributes inherited from ServerPropertiesForCreate

#ssl_enforcement, #storage_profile, #version

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServerPropertiesForDefaultCreate

Returns a new instance of ServerPropertiesForDefaultCreate.



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

def initialize
  @createMode = "Default"
end

Instance Attribute Details

#administrator_loginString

be specified when the server is being created (and is required for creation).

Returns:

  • (String)

    The administrator's login name of a server. Can only



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

def 
  @administrator_login
end

#administrator_login_passwordString

Returns The password of the administrator login.

Returns:

  • (String)

    The password of the administrator login.



28
29
30
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_default_create.rb', line 28

def 
  @administrator_login_password
end

#createModeObject

Returns the value of attribute createMode.



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

def createMode
  @createMode
end

Class Method Details

.mapperObject

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



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
90
91
92
93
94
95
96
97
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_default_create.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Default',
    type: {
      name: 'Composite',
      class_name: 'ServerPropertiesForDefaultCreate',
      model_properties: {
        version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'version',
          type: {
            name: 'String'
          }
        },
        ssl_enforcement: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sslEnforcement',
          type: {
            name: 'Enum',
            module: 'SslEnforcementEnum'
          }
        },
        storage_profile: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageProfile',
          type: {
            name: 'Composite',
            class_name: 'StorageProfile'
          }
        },
        createMode: {
          client_side_validation: true,
          required: true,
          serialized_name: 'createMode',
          type: {
            name: 'String'
          }
        },
        administrator_login: {
          client_side_validation: true,
          required: true,
          serialized_name: 'administratorLogin',
          type: {
            name: 'String'
          }
        },
        administrator_login_password: {
          client_side_validation: true,
          required: true,
          serialized_name: 'administratorLoginPassword',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end