azure_mgmt_postgresql 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql.rb +71 -0
  4. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/check_name_availability.rb +126 -0
  5. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/configurations.rb +396 -0
  6. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/databases.rb +541 -0
  7. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/firewall_rules.rb +541 -0
  8. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/location_based_performance_tier.rb +116 -0
  9. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/log_files.rb +126 -0
  10. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/configuration.rb +132 -0
  11. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/configuration_list_result.rb +55 -0
  12. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/database.rb +84 -0
  13. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/database_list_result.rb +55 -0
  14. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/firewall_rule.rb +92 -0
  15. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/firewall_rule_list_result.rb +55 -0
  16. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/geo_redundant_backup.rb +16 -0
  17. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/log_file.rb +119 -0
  18. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/log_file_list_result.rb +55 -0
  19. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/name_availability.rb +68 -0
  20. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/name_availability_request.rb +57 -0
  21. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation.rb +95 -0
  22. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation_display.rb +83 -0
  23. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation_list_result.rb +55 -0
  24. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation_origin.rb +17 -0
  25. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/performance_tier_list_result.rb +56 -0
  26. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/performance_tier_properties.rb +67 -0
  27. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/performance_tier_service_level_objectives.rb +126 -0
  28. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/proxy_resource.rb +71 -0
  29. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server.rb +220 -0
  30. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_for_create.rb +92 -0
  31. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_list_result.rb +55 -0
  32. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_create.rb +86 -0
  33. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_default_create.rb +100 -0
  34. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_geo_restore.rb +88 -0
  35. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb +87 -0
  36. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_restore.rb +99 -0
  37. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_state.rb +17 -0
  38. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_update_parameters.rb +115 -0
  39. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_version.rb +16 -0
  40. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/sku.rb +97 -0
  41. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/sku_tier.rb +17 -0
  42. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/ssl_enforcement_enum.rb +16 -0
  43. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/storage_profile.rb +69 -0
  44. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/tracked_resource.rb +93 -0
  45. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/module_definition.rb +9 -0
  46. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/operations.rb +110 -0
  47. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/postgre_sqlmanagement_client.rb +164 -0
  48. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/replicas.rb +126 -0
  49. data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/servers.rb +771 -0
  50. data/lib/2017-12-01/generated/azure_mgmt_postgresql.rb +78 -0
  51. data/lib/2017-12-01/generated/azure_mgmt_postgresql/check_name_availability.rb +126 -0
  52. data/lib/2017-12-01/generated/azure_mgmt_postgresql/configurations.rb +396 -0
  53. data/lib/2017-12-01/generated/azure_mgmt_postgresql/databases.rb +541 -0
  54. data/lib/2017-12-01/generated/azure_mgmt_postgresql/firewall_rules.rb +541 -0
  55. data/lib/2017-12-01/generated/azure_mgmt_postgresql/location_based_performance_tier.rb +116 -0
  56. data/lib/2017-12-01/generated/azure_mgmt_postgresql/log_files.rb +126 -0
  57. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/configuration.rb +132 -0
  58. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/configuration_list_result.rb +55 -0
  59. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/database.rb +84 -0
  60. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/database_list_result.rb +55 -0
  61. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/firewall_rule.rb +92 -0
  62. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/firewall_rule_list_result.rb +55 -0
  63. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/geo_redundant_backup.rb +16 -0
  64. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/log_file.rb +119 -0
  65. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/log_file_list_result.rb +55 -0
  66. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/name_availability.rb +68 -0
  67. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/name_availability_request.rb +57 -0
  68. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation.rb +95 -0
  69. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation_display.rb +83 -0
  70. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation_list_result.rb +55 -0
  71. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation_origin.rb +17 -0
  72. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/performance_tier_list_result.rb +56 -0
  73. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/performance_tier_properties.rb +67 -0
  74. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/performance_tier_service_level_objectives.rb +126 -0
  75. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/proxy_resource.rb +71 -0
  76. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server.rb +220 -0
  77. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb +92 -0
  78. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_list_result.rb +55 -0
  79. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_create.rb +86 -0
  80. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_default_create.rb +100 -0
  81. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_geo_restore.rb +88 -0
  82. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb +87 -0
  83. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_restore.rb +99 -0
  84. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_security_alert_policy.rb +166 -0
  85. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_security_alert_policy_state.rb +16 -0
  86. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_state.rb +17 -0
  87. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_update_parameters.rb +126 -0
  88. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_version.rb +19 -0
  89. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/sku.rb +97 -0
  90. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/sku_tier.rb +17 -0
  91. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/ssl_enforcement_enum.rb +16 -0
  92. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/storage_profile.rb +69 -0
  93. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/tracked_resource.rb +93 -0
  94. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/virtual_network_rule.rb +99 -0
  95. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/virtual_network_rule_list_result.rb +100 -0
  96. data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/virtual_network_rule_state.rb +19 -0
  97. data/lib/2017-12-01/generated/azure_mgmt_postgresql/module_definition.rb +9 -0
  98. data/lib/2017-12-01/generated/azure_mgmt_postgresql/operations.rb +110 -0
  99. data/lib/2017-12-01/generated/azure_mgmt_postgresql/postgre_sqlmanagement_client.rb +172 -0
  100. data/lib/2017-12-01/generated/azure_mgmt_postgresql/replicas.rb +126 -0
  101. data/lib/2017-12-01/generated/azure_mgmt_postgresql/server_security_alert_policies.rb +290 -0
  102. data/lib/2017-12-01/generated/azure_mgmt_postgresql/servers.rb +900 -0
  103. data/lib/2017-12-01/generated/azure_mgmt_postgresql/virtual_network_rules.rb +666 -0
  104. data/lib/azure_mgmt_postgresql.rb +7 -0
  105. data/lib/module_definition.rb +7 -0
  106. data/lib/profiles/latest/modules/postgresql_profile_module.rb +241 -0
  107. data/lib/profiles/latest/postgresql_latest_profile_client.rb +40 -0
  108. data/lib/profiles/latest/postgresql_module_definition.rb +8 -0
  109. data/lib/version.rb +7 -0
  110. metadata +225 -0
@@ -0,0 +1,71 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Postgresql::Mgmt::V2017_12_01
7
+ module Models
8
+ #
9
+ # Resource properties.
10
+ #
11
+ class ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource ID
16
+ attr_accessor :id
17
+
18
+ # @return [String] Resource name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Resource type.
22
+ attr_accessor :type
23
+
24
+
25
+ #
26
+ # Mapper for ProxyResource class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'ProxyResource',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ProxyResource',
37
+ model_properties: {
38
+ id: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'id',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ name: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'name',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ type: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'type',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,220 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Postgresql::Mgmt::V2017_12_01
7
+ module Models
8
+ #
9
+ # Represents a server.
10
+ #
11
+ class Server < TrackedResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Sku] The SKU (pricing tier) of the server.
16
+ attr_accessor :sku
17
+
18
+ # @return [String] The administrator's login name of a server. Can only
19
+ # be specified when the server is being created (and is required for
20
+ # creation).
21
+ attr_accessor :administrator_login
22
+
23
+ # @return [ServerVersion] Server version. Possible values include: '9.5',
24
+ # '9.6', '10', '10.0', '10.2'
25
+ attr_accessor :version
26
+
27
+ # @return [SslEnforcementEnum] Enable ssl enforcement or not when connect
28
+ # to server. Possible values include: 'Enabled', 'Disabled'
29
+ attr_accessor :ssl_enforcement
30
+
31
+ # @return [ServerState] A state of a server that is visible to user.
32
+ # Possible values include: 'Ready', 'Dropping', 'Disabled'
33
+ attr_accessor :user_visible_state
34
+
35
+ # @return [String] The fully qualified domain name of a server.
36
+ attr_accessor :fully_qualified_domain_name
37
+
38
+ # @return [DateTime] Earliest restore point creation time (ISO8601
39
+ # format)
40
+ attr_accessor :earliest_restore_date
41
+
42
+ # @return [StorageProfile] Storage profile of a server.
43
+ attr_accessor :storage_profile
44
+
45
+ # @return [String] The replication role of the server.
46
+ attr_accessor :replication_role
47
+
48
+ # @return [String] The master server id of a replica server.
49
+ attr_accessor :master_server_id
50
+
51
+ # @return [Integer] The maximum number of replicas that a master server
52
+ # can have.
53
+ attr_accessor :replica_capacity
54
+
55
+
56
+ #
57
+ # Mapper for Server class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'Server',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'Server',
68
+ model_properties: {
69
+ id: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'id',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ name: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'name',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ type: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ read_only: true,
91
+ serialized_name: 'type',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ location: {
97
+ client_side_validation: true,
98
+ required: true,
99
+ serialized_name: 'location',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ tags: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'tags',
108
+ type: {
109
+ name: 'Dictionary',
110
+ value: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'StringElementType',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ }
118
+ }
119
+ },
120
+ sku: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ serialized_name: 'sku',
124
+ type: {
125
+ name: 'Composite',
126
+ class_name: 'Sku'
127
+ }
128
+ },
129
+ administrator_login: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ serialized_name: 'properties.administratorLogin',
133
+ type: {
134
+ name: 'String'
135
+ }
136
+ },
137
+ version: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'properties.version',
141
+ type: {
142
+ name: 'String'
143
+ }
144
+ },
145
+ ssl_enforcement: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ serialized_name: 'properties.sslEnforcement',
149
+ type: {
150
+ name: 'Enum',
151
+ module: 'SslEnforcementEnum'
152
+ }
153
+ },
154
+ user_visible_state: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'properties.userVisibleState',
158
+ type: {
159
+ name: 'String'
160
+ }
161
+ },
162
+ fully_qualified_domain_name: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ serialized_name: 'properties.fullyQualifiedDomainName',
166
+ type: {
167
+ name: 'String'
168
+ }
169
+ },
170
+ earliest_restore_date: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ serialized_name: 'properties.earliestRestoreDate',
174
+ type: {
175
+ name: 'DateTime'
176
+ }
177
+ },
178
+ storage_profile: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ serialized_name: 'properties.storageProfile',
182
+ type: {
183
+ name: 'Composite',
184
+ class_name: 'StorageProfile'
185
+ }
186
+ },
187
+ replication_role: {
188
+ client_side_validation: true,
189
+ required: false,
190
+ serialized_name: 'properties.replicationRole',
191
+ type: {
192
+ name: 'String'
193
+ }
194
+ },
195
+ master_server_id: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ serialized_name: 'properties.masterServerId',
199
+ type: {
200
+ name: 'String'
201
+ }
202
+ },
203
+ replica_capacity: {
204
+ client_side_validation: true,
205
+ required: false,
206
+ serialized_name: 'properties.replicaCapacity',
207
+ constraints: {
208
+ InclusiveMinimum: 0
209
+ },
210
+ type: {
211
+ name: 'Number'
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+ end
218
+ end
219
+ end
220
+ end
@@ -0,0 +1,92 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Postgresql::Mgmt::V2017_12_01
7
+ module Models
8
+ #
9
+ # Represents a server to be created.
10
+ #
11
+ class ServerForCreate
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Sku] The SKU (pricing tier) of the server.
16
+ attr_accessor :sku
17
+
18
+ # @return [ServerPropertiesForCreate] Properties of the server.
19
+ attr_accessor :properties
20
+
21
+ # @return [String] The location the resource resides in.
22
+ attr_accessor :location
23
+
24
+ # @return [Hash{String => String}] Application-specific metadata in the
25
+ # form of key-value pairs.
26
+ attr_accessor :tags
27
+
28
+
29
+ #
30
+ # Mapper for ServerForCreate class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'ServerForCreate',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'ServerForCreate',
41
+ model_properties: {
42
+ sku: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'sku',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'Sku'
49
+ }
50
+ },
51
+ properties: {
52
+ client_side_validation: true,
53
+ required: true,
54
+ serialized_name: 'properties',
55
+ type: {
56
+ name: 'Composite',
57
+ polymorphic_discriminator: 'createMode',
58
+ uber_parent: 'ServerPropertiesForCreate',
59
+ class_name: 'ServerPropertiesForCreate'
60
+ }
61
+ },
62
+ location: {
63
+ client_side_validation: true,
64
+ required: true,
65
+ serialized_name: 'location',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ tags: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'tags',
74
+ type: {
75
+ name: 'Dictionary',
76
+ value: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'StringElementType',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Postgresql::Mgmt::V2017_12_01
7
+ module Models
8
+ #
9
+ # A list of servers.
10
+ #
11
+ class ServerListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Server>] The list of servers
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for ServerListResult class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ServerListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ServerListResult',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ServerElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'Server'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,86 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Postgresql::Mgmt::V2017_12_01
7
+ module Models
8
+ #
9
+ # The properties used to create a new server.
10
+ #
11
+ class ServerPropertiesForCreate
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["Default"] = "ServerPropertiesForDefaultCreate"
17
+ @@discriminatorMap["PointInTimeRestore"] = "ServerPropertiesForRestore"
18
+ @@discriminatorMap["GeoRestore"] = "ServerPropertiesForGeoRestore"
19
+ @@discriminatorMap["Replica"] = "ServerPropertiesForReplica"
20
+
21
+ def initialize
22
+ @createMode = "ServerPropertiesForCreate"
23
+ end
24
+
25
+ attr_accessor :createMode
26
+
27
+ # @return [ServerVersion] Server version. Possible values include: '9.5',
28
+ # '9.6', '10', '10.0', '10.2'
29
+ attr_accessor :version
30
+
31
+ # @return [SslEnforcementEnum] Enable ssl enforcement or not when connect
32
+ # to server. Possible values include: 'Enabled', 'Disabled'
33
+ attr_accessor :ssl_enforcement
34
+
35
+ # @return [StorageProfile] Storage profile of a server.
36
+ attr_accessor :storage_profile
37
+
38
+
39
+ #
40
+ # Mapper for ServerPropertiesForCreate class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'ServerPropertiesForCreate',
48
+ type: {
49
+ name: 'Composite',
50
+ polymorphic_discriminator: 'createMode',
51
+ uber_parent: 'ServerPropertiesForCreate',
52
+ class_name: 'ServerPropertiesForCreate',
53
+ model_properties: {
54
+ version: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'version',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ ssl_enforcement: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'sslEnforcement',
66
+ type: {
67
+ name: 'Enum',
68
+ module: 'SslEnforcementEnum'
69
+ }
70
+ },
71
+ storage_profile: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'storageProfile',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'StorageProfile'
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end