azure_mgmt_sql 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_sql.rb +95 -46
  3. data/lib/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +310 -0
  4. data/lib/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +300 -0
  5. data/lib/generated/azure_mgmt_sql/data_masking_policies.rb +248 -0
  6. data/lib/generated/azure_mgmt_sql/data_masking_rules.rb +262 -0
  7. data/lib/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +264 -0
  8. data/lib/generated/azure_mgmt_sql/database_threat_detection_policies.rb +264 -0
  9. data/lib/generated/azure_mgmt_sql/database_usages.rb +129 -0
  10. data/lib/generated/azure_mgmt_sql/databases.rb +357 -2825
  11. data/lib/generated/azure_mgmt_sql/elastic_pool_activities.rb +132 -0
  12. data/lib/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +129 -0
  13. data/lib/generated/azure_mgmt_sql/elastic_pools.rb +0 -417
  14. data/lib/generated/azure_mgmt_sql/encryption_protectors.rb +498 -0
  15. data/lib/generated/azure_mgmt_sql/failover_groups.rb +6 -6
  16. data/lib/generated/azure_mgmt_sql/geo_backup_policies.rb +359 -0
  17. data/lib/generated/azure_mgmt_sql/models/database_usage.rb +4 -9
  18. data/lib/generated/azure_mgmt_sql/models/encryption_protector.rb +3 -4
  19. data/lib/generated/azure_mgmt_sql/models/failover_group.rb +2 -2
  20. data/lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb +6 -4
  21. data/lib/generated/azure_mgmt_sql/models/failover_group_update.rb +93 -0
  22. data/lib/generated/azure_mgmt_sql/models/firewall_rule.rb +11 -14
  23. data/lib/generated/azure_mgmt_sql/models/metric_value.rb +1 -17
  24. data/lib/generated/azure_mgmt_sql/models/operation.rb +36 -3
  25. data/lib/generated/azure_mgmt_sql/models/operation_display.rb +20 -5
  26. data/lib/generated/azure_mgmt_sql/models/operation_list_result.rb +36 -6
  27. data/lib/generated/azure_mgmt_sql/models/operation_origin.rb +16 -0
  28. data/lib/generated/azure_mgmt_sql/models/partner_info.rb +1 -1
  29. data/lib/generated/azure_mgmt_sql/models/replication_link.rb +9 -12
  30. data/lib/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb +11 -3
  31. data/lib/generated/azure_mgmt_sql/models/server_key.rb +3 -4
  32. data/lib/generated/azure_mgmt_sql/models/service_objective.rb +11 -3
  33. data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +11 -3
  34. data/lib/generated/azure_mgmt_sql/models/sync_agent.rb +137 -0
  35. data/lib/generated/azure_mgmt_sql/models/{sql_sub_resource.rb → sync_agent_key_properties.rb} +9 -20
  36. data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb +126 -0
  37. data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb +96 -0
  38. data/lib/generated/azure_mgmt_sql/models/sync_agent_list_result.rb +96 -0
  39. data/lib/generated/azure_mgmt_sql/models/sync_agent_state.rb +17 -0
  40. data/lib/generated/azure_mgmt_sql/models/sync_conflict_resolution_policy.rb +16 -0
  41. data/lib/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb +96 -0
  42. data/lib/generated/azure_mgmt_sql/models/{sub_resource.rb → sync_database_id_properties.rb} +7 -15
  43. data/lib/generated/azure_mgmt_sql/models/sync_direction.rb +17 -0
  44. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb +66 -0
  45. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb +96 -0
  46. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table.rb +99 -0
  47. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb +112 -0
  48. data/lib/generated/azure_mgmt_sql/models/sync_group.rb +145 -0
  49. data/lib/generated/azure_mgmt_sql/models/sync_group_list_result.rb +96 -0
  50. data/lib/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb +96 -0
  51. data/lib/generated/azure_mgmt_sql/models/sync_group_log_properties.rb +102 -0
  52. data/lib/generated/azure_mgmt_sql/models/sync_group_log_type.rb +18 -0
  53. data/lib/generated/azure_mgmt_sql/models/sync_group_schema.rb +64 -0
  54. data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table.rb +64 -0
  55. data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb +65 -0
  56. data/lib/generated/azure_mgmt_sql/models/sync_group_state.rb +19 -0
  57. data/lib/generated/azure_mgmt_sql/models/sync_member.rb +160 -0
  58. data/lib/generated/azure_mgmt_sql/models/sync_member_db_type.rb +16 -0
  59. data/lib/generated/azure_mgmt_sql/models/sync_member_list_result.rb +96 -0
  60. data/lib/generated/azure_mgmt_sql/models/sync_member_state.rb +32 -0
  61. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +22 -3
  62. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +22 -3
  63. data/lib/generated/azure_mgmt_sql/models/virtual_network_rule.rb +2 -2
  64. data/lib/generated/azure_mgmt_sql/operations.rb +111 -4
  65. data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +3 -215
  66. data/lib/generated/azure_mgmt_sql/replication_links.rb +629 -0
  67. data/lib/generated/azure_mgmt_sql/restore_points.rb +132 -0
  68. data/lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb +5 -5
  69. data/lib/generated/azure_mgmt_sql/server_connection_policies.rb +250 -0
  70. data/lib/generated/azure_mgmt_sql/server_keys.rb +10 -10
  71. data/lib/generated/azure_mgmt_sql/server_usages.rb +125 -0
  72. data/lib/generated/azure_mgmt_sql/servers.rb +161 -1423
  73. data/lib/generated/azure_mgmt_sql/service_objectives.rb +229 -0
  74. data/lib/generated/azure_mgmt_sql/service_tier_advisors.rb +234 -0
  75. data/lib/generated/azure_mgmt_sql/sql_management_client.rb +100 -9
  76. data/lib/generated/azure_mgmt_sql/sync_agents.rb +983 -0
  77. data/lib/generated/azure_mgmt_sql/sync_groups.rb +1863 -0
  78. data/lib/generated/azure_mgmt_sql/sync_members.rb +1290 -0
  79. data/lib/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +133 -0
  80. data/lib/generated/azure_mgmt_sql/transparent_data_encryptions.rb +264 -0
  81. data/lib/generated/azure_mgmt_sql/version.rb +1 -1
  82. metadata +55 -6
@@ -0,0 +1,65 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Properties of column in sync group table.
10
+ #
11
+ class SyncGroupSchemaTableColumn
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] Quoted name of sync group table column.
17
+ attr_accessor :quoted_name
18
+
19
+ # @return [String] Data size of the column.
20
+ attr_accessor :data_size
21
+
22
+ # @return [String] Data type of the column.
23
+ attr_accessor :data_type
24
+
25
+
26
+ #
27
+ # Mapper for SyncGroupSchemaTableColumn class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'SyncGroupSchemaTableColumn',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'SyncGroupSchemaTableColumn',
37
+ model_properties: {
38
+ quoted_name: {
39
+ required: false,
40
+ serialized_name: 'quotedName',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ data_size: {
46
+ required: false,
47
+ serialized_name: 'dataSize',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ data_type: {
53
+ required: false,
54
+ serialized_name: 'dataType',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,19 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Defines values for SyncGroupState
10
+ #
11
+ module SyncGroupState
12
+ NotReady = "NotReady"
13
+ Error = "Error"
14
+ Warning = "Warning"
15
+ Progressing = "Progressing"
16
+ Good = "Good"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,160 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # An Azure SQL Database sync member.
10
+ #
11
+ class SyncMember < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [SyncMemberDbType] Database type of the sync member. Possible
17
+ # values include: 'AzureSqlDatabase', 'SqlServerDatabase'
18
+ attr_accessor :database_type
19
+
20
+ # @return [String] ARM resource id of the sync agent in the sync member.
21
+ attr_accessor :sync_agent_id
22
+
23
+ # @return SQL Server database id of the sync member.
24
+ attr_accessor :sql_server_database_id
25
+
26
+ # @return [String] Server name of the member database in the sync member
27
+ attr_accessor :server_name
28
+
29
+ # @return [String] Database name of the member database in the sync
30
+ # member.
31
+ attr_accessor :database_name
32
+
33
+ # @return [String] User name of the member database in the sync member.
34
+ attr_accessor :user_name
35
+
36
+ # @return [String] Password of the member database in the sync member.
37
+ attr_accessor :password
38
+
39
+ # @return [SyncDirection] Sync direction of the sync member. Possible
40
+ # values include: 'Bidirectional', 'OneWayMemberToHub',
41
+ # 'OneWayHubToMember'
42
+ attr_accessor :sync_direction
43
+
44
+ # @return [SyncMemberState] Sync state of the sync member. Possible
45
+ # values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed',
46
+ # 'DisabledTombstoneCleanup', 'DisabledBackupRestore',
47
+ # 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled',
48
+ # 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed',
49
+ # 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed',
50
+ # 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned'
51
+ attr_accessor :sync_state
52
+
53
+
54
+ #
55
+ # Mapper for SyncMember class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'SyncMember',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'SyncMember',
65
+ model_properties: {
66
+ id: {
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'id',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ name: {
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'name',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ type: {
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'type',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ database_type: {
91
+ required: false,
92
+ serialized_name: 'properties.databaseType',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ sync_agent_id: {
98
+ required: false,
99
+ serialized_name: 'properties.syncAgentId',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ sql_server_database_id: {
105
+ required: false,
106
+ serialized_name: 'properties.sqlServerDatabaseId',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ server_name: {
112
+ required: false,
113
+ serialized_name: 'properties.serverName',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ database_name: {
119
+ required: false,
120
+ serialized_name: 'properties.databaseName',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ user_name: {
126
+ required: false,
127
+ serialized_name: 'properties.userName',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ password: {
133
+ required: false,
134
+ serialized_name: 'properties.password',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ },
139
+ sync_direction: {
140
+ required: false,
141
+ serialized_name: 'properties.syncDirection',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ sync_state: {
147
+ required: false,
148
+ read_only: true,
149
+ serialized_name: 'properties.syncState',
150
+ type: {
151
+ name: 'String'
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ end
158
+ end
159
+ end
160
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Defines values for SyncMemberDbType
10
+ #
11
+ module SyncMemberDbType
12
+ AzureSqlDatabase = "AzureSqlDatabase"
13
+ SqlServerDatabase = "SqlServerDatabase"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,96 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # A list of Azure SQL Database sync members.
10
+ #
11
+ class SyncMemberListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SyncMember>] Array of results.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Link to retrieve next page of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<SyncMember>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [SyncMemberListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for SyncMemberListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'SyncMemberListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'SyncMemberListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'value',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'SyncMemberElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'SyncMember'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ next_link: {
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'nextLink',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,32 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::SQL
7
+ module Models
8
+ #
9
+ # Defines values for SyncMemberState
10
+ #
11
+ module SyncMemberState
12
+ SyncInProgress = "SyncInProgress"
13
+ SyncSucceeded = "SyncSucceeded"
14
+ SyncFailed = "SyncFailed"
15
+ DisabledTombstoneCleanup = "DisabledTombstoneCleanup"
16
+ DisabledBackupRestore = "DisabledBackupRestore"
17
+ SyncSucceededWithWarnings = "SyncSucceededWithWarnings"
18
+ SyncCancelling = "SyncCancelling"
19
+ SyncCancelled = "SyncCancelled"
20
+ UnProvisioned = "UnProvisioned"
21
+ Provisioning = "Provisioning"
22
+ Provisioned = "Provisioned"
23
+ ProvisionFailed = "ProvisionFailed"
24
+ DeProvisioning = "DeProvisioning"
25
+ DeProvisioned = "DeProvisioned"
26
+ DeProvisionFailed = "DeProvisionFailed"
27
+ Reprovisioning = "Reprovisioning"
28
+ ReprovisionFailed = "ReprovisionFailed"
29
+ UnReprovisioned = "UnReprovisioned"
30
+ end
31
+ end
32
+ end
@@ -8,11 +8,14 @@ module Azure::ARM::SQL
8
8
  #
9
9
  # Represents a database transparent data encryption configuration.
10
10
  #
11
- class TransparentDataEncryption < SubResource
11
+ class TransparentDataEncryption < ProxyResource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
15
  include MsRest::JSONable
16
+ # @return [String] Resource location.
17
+ attr_accessor :location
18
+
16
19
  # @return [TransparentDataEncryptionStatus] The status of the database
17
20
  # transparent data encryption. Possible values include: 'Enabled',
18
21
  # 'Disabled'
@@ -31,6 +34,14 @@ module Azure::ARM::SQL
31
34
  name: 'Composite',
32
35
  class_name: 'TransparentDataEncryption',
33
36
  model_properties: {
37
+ id: {
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'id',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
34
45
  name: {
35
46
  required: false,
36
47
  read_only: true,
@@ -39,10 +50,18 @@ module Azure::ARM::SQL
39
50
  name: 'String'
40
51
  }
41
52
  },
42
- id: {
53
+ type: {
43
54
  required: false,
44
55
  read_only: true,
45
- serialized_name: 'id',
56
+ serialized_name: 'type',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ location: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'location',
46
65
  type: {
47
66
  name: 'String'
48
67
  }