azure_mgmt_postgresql 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_postgresql.rb +71 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/check_name_availability.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/configurations.rb +396 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/databases.rb +541 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/firewall_rules.rb +541 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/location_based_performance_tier.rb +116 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/log_files.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/configuration.rb +132 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/configuration_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/database.rb +84 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/database_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/firewall_rule.rb +92 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/firewall_rule_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/geo_redundant_backup.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/log_file.rb +119 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/log_file_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/name_availability.rb +68 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/name_availability_request.rb +57 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation.rb +95 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation_display.rb +83 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/operation_origin.rb +17 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/performance_tier_list_result.rb +56 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/performance_tier_properties.rb +67 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/performance_tier_service_level_objectives.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/proxy_resource.rb +71 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server.rb +220 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_for_create.rb +92 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_list_result.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_create.rb +86 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_default_create.rb +100 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_geo_restore.rb +88 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb +87 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_properties_for_restore.rb +99 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_state.rb +17 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_update_parameters.rb +115 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_version.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/sku.rb +97 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/sku_tier.rb +17 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/ssl_enforcement_enum.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/storage_profile.rb +69 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/tracked_resource.rb +93 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/module_definition.rb +9 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/operations.rb +110 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/postgre_sqlmanagement_client.rb +164 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/replicas.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/servers.rb +771 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql.rb +78 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/check_name_availability.rb +126 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/configurations.rb +396 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/databases.rb +541 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/firewall_rules.rb +541 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/location_based_performance_tier.rb +116 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/log_files.rb +126 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/configuration.rb +132 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/configuration_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/database.rb +84 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/database_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/firewall_rule.rb +92 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/firewall_rule_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/geo_redundant_backup.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/log_file.rb +119 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/log_file_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/name_availability.rb +68 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/name_availability_request.rb +57 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation.rb +95 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation_display.rb +83 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/operation_origin.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/performance_tier_list_result.rb +56 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/performance_tier_properties.rb +67 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/performance_tier_service_level_objectives.rb +126 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/proxy_resource.rb +71 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server.rb +220 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_for_create.rb +92 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_list_result.rb +55 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_create.rb +86 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_default_create.rb +100 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_geo_restore.rb +88 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb +87 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_restore.rb +99 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_security_alert_policy.rb +166 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_security_alert_policy_state.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_state.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_update_parameters.rb +126 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_version.rb +19 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/sku.rb +97 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/sku_tier.rb +17 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/ssl_enforcement_enum.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/storage_profile.rb +69 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/tracked_resource.rb +93 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/virtual_network_rule.rb +99 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/virtual_network_rule_list_result.rb +100 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/models/virtual_network_rule_state.rb +19 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/module_definition.rb +9 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/operations.rb +110 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/postgre_sqlmanagement_client.rb +172 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/replicas.rb +126 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/server_security_alert_policies.rb +290 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/servers.rb +900 -0
- data/lib/2017-12-01/generated/azure_mgmt_postgresql/virtual_network_rules.rb +666 -0
- data/lib/azure_mgmt_postgresql.rb +7 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/postgresql_profile_module.rb +241 -0
- data/lib/profiles/latest/postgresql_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/postgresql_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +225 -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::Postgresql::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
|
@@ -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::Postgresql::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_postgresql/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::Postgresql::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_postgresql/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::Postgresql::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,17 @@
|
|
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_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ServerState
|
10
|
+
#
|
11
|
+
module ServerState
|
12
|
+
Ready = "Ready"
|
13
|
+
Dropping = "Dropping"
|
14
|
+
Disabled = "Disabled"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/2017-12-01-preview/generated/azure_mgmt_postgresql/models/server_update_parameters.rb
ADDED
@@ -0,0 +1,115 @@
|
|
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_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters allowed to update for a server.
|
10
|
+
#
|
11
|
+
class ServerUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Sku] The SKU (pricing tier) of the server.
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
# @return [StorageProfile] Storage profile of a server.
|
19
|
+
attr_accessor :storage_profile
|
20
|
+
|
21
|
+
# @return [String] The password of the administrator login.
|
22
|
+
attr_accessor :administrator_login_password
|
23
|
+
|
24
|
+
# @return [ServerVersion] The version of a server. Possible values
|
25
|
+
# include: '9.5', '9.6'
|
26
|
+
attr_accessor :version
|
27
|
+
|
28
|
+
# @return [SslEnforcementEnum] Enable ssl enforcement or not when connect
|
29
|
+
# to server. Possible values include: 'Enabled', 'Disabled'
|
30
|
+
attr_accessor :ssl_enforcement
|
31
|
+
|
32
|
+
# @return [Hash{String => String}] Application-specific metadata in the
|
33
|
+
# form of key-value pairs.
|
34
|
+
attr_accessor :tags
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for ServerUpdateParameters class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'ServerUpdateParameters',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'ServerUpdateParameters',
|
49
|
+
model_properties: {
|
50
|
+
sku: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'sku',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'Sku'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
storage_profile: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'properties.storageProfile',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'StorageProfile'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
administrator_login_password: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'properties.administratorLoginPassword',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
version: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'properties.version',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
ssl_enforcement: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'properties.sslEnforcement',
|
88
|
+
type: {
|
89
|
+
name: 'Enum',
|
90
|
+
module: 'SslEnforcementEnum'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
tags: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'tags',
|
97
|
+
type: {
|
98
|
+
name: 'Dictionary',
|
99
|
+
value: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'StringElementType',
|
103
|
+
type: {
|
104
|
+
name: 'String'
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|