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,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 sync schema properties.
10
+ #
11
+ class SyncFullSchemaPropertiesListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SyncFullSchemaProperties>] 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<SyncFullSchemaProperties>] 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 [SyncFullSchemaPropertiesListResult] 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 SyncFullSchemaPropertiesListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'SyncFullSchemaPropertiesListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'SyncFullSchemaPropertiesListResult',
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: 'SyncFullSchemaPropertiesElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'SyncFullSchemaProperties'
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,99 @@
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 the table in the database full schema.
10
+ #
11
+ class SyncFullSchemaTable
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<SyncFullSchemaTableColumn>] List of columns in the table
17
+ # of database full schema.
18
+ attr_accessor :columns
19
+
20
+ # @return [String] Error id of the table.
21
+ attr_accessor :error_id
22
+
23
+ # @return [Boolean] If there is error in the table.
24
+ attr_accessor :has_error
25
+
26
+ # @return [String] Name of the table.
27
+ attr_accessor :name
28
+
29
+ # @return [String] Quoted name of the table.
30
+ attr_accessor :quoted_name
31
+
32
+
33
+ #
34
+ # Mapper for SyncFullSchemaTable class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ required: false,
40
+ serialized_name: 'SyncFullSchemaTable',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'SyncFullSchemaTable',
44
+ model_properties: {
45
+ columns: {
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'columns',
49
+ type: {
50
+ name: 'Sequence',
51
+ element: {
52
+ required: false,
53
+ serialized_name: 'SyncFullSchemaTableColumnElementType',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'SyncFullSchemaTableColumn'
57
+ }
58
+ }
59
+ }
60
+ },
61
+ error_id: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'errorId',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ has_error: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'hasError',
73
+ type: {
74
+ name: 'Boolean'
75
+ }
76
+ },
77
+ name: {
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'name',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ quoted_name: {
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'quotedName',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,112 @@
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 the column in the table of database full schema.
10
+ #
11
+ class SyncFullSchemaTableColumn
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] Data size of the column.
17
+ attr_accessor :data_size
18
+
19
+ # @return [String] Data type of the column.
20
+ attr_accessor :data_type
21
+
22
+ # @return [String] Error id of the column.
23
+ attr_accessor :error_id
24
+
25
+ # @return [Boolean] If there is error in the table.
26
+ attr_accessor :has_error
27
+
28
+ # @return [Boolean] If it is the primary key of the table.
29
+ attr_accessor :is_primary_key
30
+
31
+ # @return [String] Name of the column.
32
+ attr_accessor :name
33
+
34
+ # @return [String] Quoted name of the column.
35
+ attr_accessor :quoted_name
36
+
37
+
38
+ #
39
+ # Mapper for SyncFullSchemaTableColumn class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ required: false,
45
+ serialized_name: 'SyncFullSchemaTableColumn',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'SyncFullSchemaTableColumn',
49
+ model_properties: {
50
+ data_size: {
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'dataSize',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ data_type: {
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'dataType',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ error_id: {
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'errorId',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ has_error: {
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'hasError',
78
+ type: {
79
+ name: 'Boolean'
80
+ }
81
+ },
82
+ is_primary_key: {
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'isPrimaryKey',
86
+ type: {
87
+ name: 'Boolean'
88
+ }
89
+ },
90
+ name: {
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'name',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ },
98
+ quoted_name: {
99
+ required: false,
100
+ read_only: true,
101
+ serialized_name: 'quotedName',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ end
110
+ end
111
+ end
112
+ end
@@ -0,0 +1,145 @@
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 group.
10
+ #
11
+ class SyncGroup < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Integer] Sync interval of the sync group.
17
+ attr_accessor :interval
18
+
19
+ # @return [DateTime] Last sync time of the sync group.
20
+ attr_accessor :last_sync_time
21
+
22
+ # @return [SyncConflictResolutionPolicy] Conflict resolution policy of
23
+ # the sync group. Possible values include: 'HubWin', 'MemberWin'
24
+ attr_accessor :conflict_resolution_policy
25
+
26
+ # @return [String] ARM resource id of the sync database in the sync
27
+ # group.
28
+ attr_accessor :sync_database_id
29
+
30
+ # @return [String] User name for the sync group hub database credential.
31
+ attr_accessor :hub_database_user_name
32
+
33
+ # @return [String] Password for the sync group hub database credential.
34
+ attr_accessor :hub_database_password
35
+
36
+ # @return [SyncGroupState] Sync state of the sync group. Possible values
37
+ # include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good'
38
+ attr_accessor :sync_state
39
+
40
+ # @return [SyncGroupSchema] Sync schema of the sync group.
41
+ attr_accessor :schema
42
+
43
+
44
+ #
45
+ # Mapper for SyncGroup class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ required: false,
51
+ serialized_name: 'SyncGroup',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'SyncGroup',
55
+ model_properties: {
56
+ id: {
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'id',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ name: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'name',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ type: {
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'type',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ interval: {
81
+ required: false,
82
+ serialized_name: 'properties.interval',
83
+ type: {
84
+ name: 'Number'
85
+ }
86
+ },
87
+ last_sync_time: {
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'properties.lastSyncTime',
91
+ type: {
92
+ name: 'DateTime'
93
+ }
94
+ },
95
+ conflict_resolution_policy: {
96
+ required: false,
97
+ serialized_name: 'properties.conflictResolutionPolicy',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ sync_database_id: {
103
+ required: false,
104
+ serialized_name: 'properties.syncDatabaseId',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ hub_database_user_name: {
110
+ required: false,
111
+ serialized_name: 'properties.hubDatabaseUserName',
112
+ type: {
113
+ name: 'String'
114
+ }
115
+ },
116
+ hub_database_password: {
117
+ required: false,
118
+ serialized_name: 'properties.hubDatabasePassword',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ sync_state: {
124
+ required: false,
125
+ read_only: true,
126
+ serialized_name: 'properties.syncState',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ schema: {
132
+ required: false,
133
+ serialized_name: 'properties.schema',
134
+ type: {
135
+ name: 'Composite',
136
+ class_name: 'SyncGroupSchema'
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ end
143
+ end
144
+ end
145
+ end