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,100 @@
|
|
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 ServerPropertiesForDefaultCreate < ServerPropertiesForCreate
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@createMode = "Default"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :createMode
|
21
|
+
|
22
|
+
# @return [String] The administrator's login name of a server. Can only
|
23
|
+
# be specified when the server is being created (and is required for
|
24
|
+
# creation).
|
25
|
+
attr_accessor :administrator_login
|
26
|
+
|
27
|
+
# @return [String] The password of the administrator login.
|
28
|
+
attr_accessor :administrator_login_password
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ServerPropertiesForDefaultCreate class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'Default',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'ServerPropertiesForDefaultCreate',
|
43
|
+
model_properties: {
|
44
|
+
version: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'version',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
ssl_enforcement: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'sslEnforcement',
|
56
|
+
type: {
|
57
|
+
name: 'Enum',
|
58
|
+
module: 'SslEnforcementEnum'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
storage_profile: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'storageProfile',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'StorageProfile'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
createMode: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: true,
|
73
|
+
serialized_name: 'createMode',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
administrator_login: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: true,
|
81
|
+
serialized_name: 'administratorLogin',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
administrator_login_password: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: true,
|
89
|
+
serialized_name: 'administratorLoginPassword',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_geo_restore.rb
ADDED
@@ -0,0 +1,88 @@
|
|
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 by restoring to a different
|
10
|
+
# region from a geo replicated backup.
|
11
|
+
#
|
12
|
+
class ServerPropertiesForGeoRestore < ServerPropertiesForCreate
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@createMode = "GeoRestore"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :createMode
|
22
|
+
|
23
|
+
# @return [String] The source server id to restore from.
|
24
|
+
attr_accessor :source_server_id
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for ServerPropertiesForGeoRestore class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'GeoRestore',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ServerPropertiesForGeoRestore',
|
39
|
+
model_properties: {
|
40
|
+
version: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'version',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
ssl_enforcement: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'sslEnforcement',
|
52
|
+
type: {
|
53
|
+
name: 'Enum',
|
54
|
+
module: 'SslEnforcementEnum'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
storage_profile: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'storageProfile',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'StorageProfile'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
createMode: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: true,
|
69
|
+
serialized_name: 'createMode',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
source_server_id: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: true,
|
77
|
+
serialized_name: 'sourceServerId',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_replica.rb
ADDED
@@ -0,0 +1,87 @@
|
|
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 to create a new replica.
|
10
|
+
#
|
11
|
+
class ServerPropertiesForReplica < ServerPropertiesForCreate
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@createMode = "Replica"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :createMode
|
21
|
+
|
22
|
+
# @return [String] The master server id to create replica from.
|
23
|
+
attr_accessor :source_server_id
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for ServerPropertiesForReplica class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Replica',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'ServerPropertiesForReplica',
|
38
|
+
model_properties: {
|
39
|
+
version: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'version',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
ssl_enforcement: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'sslEnforcement',
|
51
|
+
type: {
|
52
|
+
name: 'Enum',
|
53
|
+
module: 'SslEnforcementEnum'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
storage_profile: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'storageProfile',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'StorageProfile'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
createMode: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: true,
|
68
|
+
serialized_name: 'createMode',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
source_server_id: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: true,
|
76
|
+
serialized_name: 'sourceServerId',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
data/lib/2017-12-01-preview/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb
ADDED
@@ -0,0 +1,99 @@
|
|
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 by restoring from a backup.
|
10
|
+
#
|
11
|
+
class ServerPropertiesForRestore < ServerPropertiesForCreate
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@createMode = "PointInTimeRestore"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :createMode
|
21
|
+
|
22
|
+
# @return [String] The source server id to restore from.
|
23
|
+
attr_accessor :source_server_id
|
24
|
+
|
25
|
+
# @return [DateTime] Restore point creation time (ISO8601 format),
|
26
|
+
# specifying the time to restore from.
|
27
|
+
attr_accessor :restore_point_in_time
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for ServerPropertiesForRestore class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'PointInTimeRestore',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'ServerPropertiesForRestore',
|
42
|
+
model_properties: {
|
43
|
+
version: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'version',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
ssl_enforcement: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'sslEnforcement',
|
55
|
+
type: {
|
56
|
+
name: 'Enum',
|
57
|
+
module: 'SslEnforcementEnum'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
storage_profile: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'storageProfile',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'StorageProfile'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
createMode: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: true,
|
72
|
+
serialized_name: 'createMode',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
source_server_id: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: true,
|
80
|
+
serialized_name: 'sourceServerId',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
restore_point_in_time: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: true,
|
88
|
+
serialized_name: 'restorePointInTime',
|
89
|
+
type: {
|
90
|
+
name: 'DateTime'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,166 @@
|
|
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 server security alert policy.
|
10
|
+
#
|
11
|
+
class ServerSecurityAlertPolicy < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ServerSecurityAlertPolicyState] Specifies the state of the
|
16
|
+
# policy, whether it is enabled or disabled. Possible values include:
|
17
|
+
# 'Enabled', 'Disabled'
|
18
|
+
attr_accessor :state
|
19
|
+
|
20
|
+
# @return [Array<String>] Specifies an array of alerts that are disabled.
|
21
|
+
# Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
|
22
|
+
# Access_Anomaly
|
23
|
+
attr_accessor :disabled_alerts
|
24
|
+
|
25
|
+
# @return [Array<String>] Specifies an array of e-mail addresses to which
|
26
|
+
# the alert is sent.
|
27
|
+
attr_accessor :email_addresses
|
28
|
+
|
29
|
+
# @return [Boolean] Specifies that the alert is sent to the account
|
30
|
+
# administrators.
|
31
|
+
attr_accessor :email_account_admins
|
32
|
+
|
33
|
+
# @return [String] Specifies the blob storage endpoint (e.g.
|
34
|
+
# https://MyAccount.blob.core.windows.net). This blob storage will hold
|
35
|
+
# all Threat Detection audit logs.
|
36
|
+
attr_accessor :storage_endpoint
|
37
|
+
|
38
|
+
# @return [String] Specifies the identifier key of the Threat Detection
|
39
|
+
# audit storage account.
|
40
|
+
attr_accessor :storage_account_access_key
|
41
|
+
|
42
|
+
# @return [Integer] Specifies the number of days to keep in the Threat
|
43
|
+
# Detection audit logs.
|
44
|
+
attr_accessor :retention_days
|
45
|
+
|
46
|
+
|
47
|
+
#
|
48
|
+
# Mapper for ServerSecurityAlertPolicy class as Ruby Hash.
|
49
|
+
# This will be used for serialization/deserialization.
|
50
|
+
#
|
51
|
+
def self.mapper()
|
52
|
+
{
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'ServerSecurityAlertPolicy',
|
56
|
+
type: {
|
57
|
+
name: 'Composite',
|
58
|
+
class_name: 'ServerSecurityAlertPolicy',
|
59
|
+
model_properties: {
|
60
|
+
id: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'id',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
name: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'name',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
type: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'type',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
state: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: true,
|
90
|
+
serialized_name: 'properties.state',
|
91
|
+
type: {
|
92
|
+
name: 'Enum',
|
93
|
+
module: 'ServerSecurityAlertPolicyState'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
disabled_alerts: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'properties.disabledAlerts',
|
100
|
+
type: {
|
101
|
+
name: 'Sequence',
|
102
|
+
element: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
serialized_name: 'StringElementType',
|
106
|
+
type: {
|
107
|
+
name: 'String'
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
},
|
112
|
+
email_addresses: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'properties.emailAddresses',
|
116
|
+
type: {
|
117
|
+
name: 'Sequence',
|
118
|
+
element: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
serialized_name: 'StringElementType',
|
122
|
+
type: {
|
123
|
+
name: 'String'
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
},
|
128
|
+
email_account_admins: {
|
129
|
+
client_side_validation: true,
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'properties.emailAccountAdmins',
|
132
|
+
type: {
|
133
|
+
name: 'Boolean'
|
134
|
+
}
|
135
|
+
},
|
136
|
+
storage_endpoint: {
|
137
|
+
client_side_validation: true,
|
138
|
+
required: false,
|
139
|
+
serialized_name: 'properties.storageEndpoint',
|
140
|
+
type: {
|
141
|
+
name: 'String'
|
142
|
+
}
|
143
|
+
},
|
144
|
+
storage_account_access_key: {
|
145
|
+
client_side_validation: true,
|
146
|
+
required: false,
|
147
|
+
serialized_name: 'properties.storageAccountAccessKey',
|
148
|
+
type: {
|
149
|
+
name: 'String'
|
150
|
+
}
|
151
|
+
},
|
152
|
+
retention_days: {
|
153
|
+
client_side_validation: true,
|
154
|
+
required: false,
|
155
|
+
serialized_name: 'properties.retentionDays',
|
156
|
+
type: {
|
157
|
+
name: 'Number'
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|