azure_mgmt_mariadb 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/2018-06-01-preview/generated/azure_mgmt_mariadb.rb +76 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/check_name_availability.rb +123 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/configurations.rb +393 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/databases.rb +538 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/firewall_rules.rb +538 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/location_based_performance_tier.rb +113 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/log_files.rb +123 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/maria_dbmanagement_client.rb +168 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/configuration.rb +132 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/configuration_list_result.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/database.rb +84 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/database_list_result.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/firewall_rule.rb +92 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/firewall_rule_list_result.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/geo_redundant_backup.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/log_file.rb +120 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/log_file_list_result.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability_request.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation.rb +95 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation_display.rb +83 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation_list_result.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation_origin.rb +17 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_list_result.rb +56 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_properties.rb +67 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_service_level_objectives.rb +126 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/proxy_resource.rb +71 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server.rb +183 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_for_create.rb +92 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_list_result.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_create.rb +85 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_default_create.rb +100 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb +88 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_restore.rb +99 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_security_alert_policy.rb +166 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_security_alert_policy_state.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_state.rb +17 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_update_parameters.rb +115 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_version.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/sku.rb +97 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/sku_tier.rb +17 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/ssl_enforcement_enum.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/storage_profile.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/tracked_resource.rb +93 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule.rb +99 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule_list_result.rb +100 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule_state.rb +19 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/module_definition.rb +9 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/operations.rb +107 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/server_security_alert_policies.rb +287 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/servers.rb +772 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_mariadb/virtual_network_rules.rb +663 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb.rb +78 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/check_name_availability.rb +123 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/configurations.rb +393 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/databases.rb +538 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/firewall_rules.rb +538 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/location_based_performance_tier.rb +113 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/log_files.rb +123 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/maria_dbmanagement_client.rb +172 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/configuration.rb +132 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/configuration_list_result.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/database.rb +84 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/database_list_result.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/firewall_rule.rb +92 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/firewall_rule_list_result.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/geo_redundant_backup.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/log_file.rb +120 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/log_file_list_result.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/name_availability.rb +68 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/name_availability_request.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/operation.rb +95 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/operation_display.rb +83 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/operation_list_result.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/operation_origin.rb +17 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/performance_tier_list_result.rb +56 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/performance_tier_properties.rb +67 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/performance_tier_service_level_objectives.rb +126 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/proxy_resource.rb +71 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server.rb +220 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_for_create.rb +92 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_list_result.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_create.rb +86 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_default_create.rb +100 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb +88 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_replica.rb +87 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_restore.rb +99 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_security_alert_policy.rb +166 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_security_alert_policy_state.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_state.rb +17 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_update_parameters.rb +126 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_version.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/sku.rb +97 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/sku_tier.rb +17 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/ssl_enforcement_enum.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/storage_profile.rb +69 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/tracked_resource.rb +93 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/virtual_network_rule.rb +99 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/virtual_network_rule_list_result.rb +100 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/virtual_network_rule_state.rb +19 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/module_definition.rb +9 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/operations.rb +107 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/replicas.rb +123 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/server_security_alert_policies.rb +287 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/servers.rb +901 -0
- data/lib/2018-06-01/generated/azure_mgmt_mariadb/virtual_network_rules.rb +663 -0
- data/lib/azure_mgmt_mariadb.rb +7 -0
- data/lib/module_definition.rb +9 -0
- data/lib/profiles/latest/mariadb_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/mariadb_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/mariadb_profile_module.rb +241 -0
- data/lib/version.rb +7 -0
- metadata +231 -0
@@ -0,0 +1,67 @@
|
|
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::MariaDB::Mgmt::V2018_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Performance tier properties
|
10
|
+
#
|
11
|
+
class PerformanceTierProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] ID of the performance tier.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [Array<PerformanceTierServiceLevelObjectives>] Service level
|
19
|
+
# objectives associated with the performance tier
|
20
|
+
attr_accessor :service_level_objectives
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for PerformanceTierProperties class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'PerformanceTierProperties',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'PerformanceTierProperties',
|
35
|
+
model_properties: {
|
36
|
+
id: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
service_level_objectives: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'serviceLevelObjectives',
|
48
|
+
type: {
|
49
|
+
name: 'Sequence',
|
50
|
+
element: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'PerformanceTierServiceLevelObjectivesElementType',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'PerformanceTierServiceLevelObjectives'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
data/lib/2018-06-01/generated/azure_mgmt_mariadb/models/performance_tier_service_level_objectives.rb
ADDED
@@ -0,0 +1,126 @@
|
|
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::MariaDB::Mgmt::V2018_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Service level objectives for performance tier.
|
10
|
+
#
|
11
|
+
class PerformanceTierServiceLevelObjectives
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] ID for the service level objective.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Edition of the performance tier.
|
19
|
+
attr_accessor :edition
|
20
|
+
|
21
|
+
# @return [Integer] vCore associated with the service level objective
|
22
|
+
attr_accessor :v_core
|
23
|
+
|
24
|
+
# @return [String] Hardware generation associated with the service level
|
25
|
+
# objective
|
26
|
+
attr_accessor :hardware_generation
|
27
|
+
|
28
|
+
# @return [Integer] Maximum Backup retention in days for the performance
|
29
|
+
# tier edition
|
30
|
+
attr_accessor :max_backup_retention_days
|
31
|
+
|
32
|
+
# @return [Integer] Minimum Backup retention in days for the performance
|
33
|
+
# tier edition
|
34
|
+
attr_accessor :min_backup_retention_days
|
35
|
+
|
36
|
+
# @return [Integer] Max storage allowed for a server.
|
37
|
+
attr_accessor :max_storage_mb
|
38
|
+
|
39
|
+
# @return [Integer] Max storage allowed for a server.
|
40
|
+
attr_accessor :min_storage_mb
|
41
|
+
|
42
|
+
|
43
|
+
#
|
44
|
+
# Mapper for PerformanceTierServiceLevelObjectives class as Ruby Hash.
|
45
|
+
# This will be used for serialization/deserialization.
|
46
|
+
#
|
47
|
+
def self.mapper()
|
48
|
+
{
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'PerformanceTierServiceLevelObjectives',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'PerformanceTierServiceLevelObjectives',
|
55
|
+
model_properties: {
|
56
|
+
id: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'id',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
edition: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'edition',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
v_core: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'vCore',
|
76
|
+
type: {
|
77
|
+
name: 'Number'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
hardware_generation: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'hardwareGeneration',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
max_backup_retention_days: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'maxBackupRetentionDays',
|
92
|
+
type: {
|
93
|
+
name: 'Number'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
min_backup_retention_days: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'minBackupRetentionDays',
|
100
|
+
type: {
|
101
|
+
name: 'Number'
|
102
|
+
}
|
103
|
+
},
|
104
|
+
max_storage_mb: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'maxStorageMB',
|
108
|
+
type: {
|
109
|
+
name: 'Number'
|
110
|
+
}
|
111
|
+
},
|
112
|
+
min_storage_mb: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'minStorageMB',
|
116
|
+
type: {
|
117
|
+
name: 'Number'
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -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::MariaDB::Mgmt::V2018_06_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::MariaDB::Mgmt::V2018_06_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: '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
|