azure_mgmt_mysql 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql.rb +79 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/check_name_availability.rb +128 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/configurations.rb +402 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/databases.rb +549 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/firewall_rules.rb +549 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/location_based_performance_tier.rb +118 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/log_files.rb +128 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/configuration.rb +132 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/configuration_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/database.rb +84 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/database_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/firewall_rule.rb +92 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/firewall_rule_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/geo_redundant_backup.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/log_file.rb +119 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/log_file_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/name_availability.rb +68 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/name_availability_request.rb +57 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/operation.rb +95 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/operation_display.rb +83 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/operation_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/operation_origin.rb +17 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/performance_tier_list_result.rb +56 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/performance_tier_properties.rb +67 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/performance_tier_service_level_objectives.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/proxy_resource.rb +71 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server.rb +220 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_for_create.rb +92 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_create.rb +86 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_default_create.rb +100 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_geo_restore.rb +88 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_replica.rb +87 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb +99 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_security_alert_policy.rb +166 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_security_alert_policy_state.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_state.rb +17 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_update_parameters.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_version.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/sku.rb +97 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/sku_tier.rb +17 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/ssl_enforcement_enum.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/storage_autogrow.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/storage_profile.rb +81 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/tracked_resource.rb +93 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/virtual_network_rule.rb +99 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/virtual_network_rule_list_result.rb +100 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/virtual_network_rule_state.rb +19 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/module_definition.rb +9 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/my_sqlmanagement_client.rb +172 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/operations.rb +112 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/replicas.rb +128 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/server_security_alert_policies.rb +294 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/servers.rb +918 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/virtual_network_rules.rb +676 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql.rb +79 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/check_name_availability.rb +128 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/configurations.rb +402 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/databases.rb +549 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/firewall_rules.rb +549 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/location_based_performance_tier.rb +118 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/log_files.rb +128 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/configuration.rb +132 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/configuration_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/database.rb +84 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/database_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/firewall_rule.rb +92 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/firewall_rule_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/geo_redundant_backup.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/log_file.rb +119 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/log_file_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/name_availability.rb +68 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/name_availability_request.rb +57 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/operation.rb +95 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/operation_display.rb +83 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/operation_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/operation_origin.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/performance_tier_list_result.rb +56 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/performance_tier_properties.rb +67 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/performance_tier_service_level_objectives.rb +126 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/proxy_resource.rb +71 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server.rb +220 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_for_create.rb +92 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb +86 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_default_create.rb +100 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_geo_restore.rb +88 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_replica.rb +87 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb +99 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_security_alert_policy.rb +166 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_security_alert_policy_state.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_state.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_update_parameters.rb +126 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_version.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/sku.rb +97 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/sku_tier.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/ssl_enforcement_enum.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/storage_autogrow.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/storage_profile.rb +81 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/tracked_resource.rb +93 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/virtual_network_rule.rb +99 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/virtual_network_rule_list_result.rb +100 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/models/virtual_network_rule_state.rb +19 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/module_definition.rb +9 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/my_sqlmanagement_client.rb +172 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/operations.rb +112 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/replicas.rb +128 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/server_security_alert_policies.rb +294 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/servers.rb +918 -0
- data/lib/2017-12-01/generated/azure_mgmt_mysql/virtual_network_rules.rb +676 -0
- data/lib/azure_mgmt_mysql.rb +7 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/mysql_profile_module.rb +245 -0
- data/lib/profiles/latest/mysql_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/mysql_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +234 -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::Mysql::Mgmt::V2017_12_01_preview
|
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::Mysql::Mgmt::V2017_12_01_preview
|
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: '5.6',
|
24
|
+
# '5.7'
|
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::Mysql::Mgmt::V2017_12_01_preview
|
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::Mysql::Mgmt::V2017_12_01_preview
|
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::Mysql::Mgmt::V2017_12_01_preview
|
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: '5.6',
|
28
|
+
# '5.7'
|
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
|