azure_mgmt_sql 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2014-04-01/generated/azure_mgmt_sql.rb +77 -63
  3. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +118 -16
  4. data/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +114 -16
  5. data/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +6 -5
  6. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +12 -12
  7. data/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +12 -12
  8. data/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  9. data/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +12 -12
  10. data/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +18 -17
  11. data/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +12 -12
  12. data/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +6 -5
  13. data/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +649 -643
  14. data/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb +830 -0
  15. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +6 -5
  16. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +6 -5
  17. data/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +216 -213
  18. data/lib/2014-04-01/generated/azure_mgmt_sql/extensions.rb +130 -0
  19. data/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +24 -22
  20. data/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +18 -17
  21. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_list_result.rb +56 -0
  22. data/lib/2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb +56 -0
  23. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database.rb +43 -10
  24. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_edition.rb +1 -0
  25. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database_update.rb +43 -10
  26. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration.rb +164 -0
  27. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_auto_failover.rb +16 -0
  28. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_failover_policy.rb +16 -0
  29. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_list_result.rb +57 -0
  30. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_role.rb +17 -0
  31. data/lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_status.rb +18 -0
  32. data/lib/2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb +13 -0
  33. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb +13 -0
  34. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +13 -0
  35. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_update.rb +13 -0
  36. data/lib/2014-04-01/generated/azure_mgmt_sql/models/extension_list_result.rb +54 -0
  37. data/lib/2014-04-01/generated/azure_mgmt_sql/models/import_request.rb +12 -4
  38. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text.rb +72 -0
  39. data/lib/2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb +55 -0
  40. data/lib/2014-04-01/generated/azure_mgmt_sql/models/service_objective_name.rb +52 -2
  41. data/lib/2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb +10 -3
  42. data/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +6 -5
  43. data/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +6 -5
  44. data/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +6 -5
  45. data/lib/2014-04-01/generated/azure_mgmt_sql/query_texts.rb +134 -0
  46. data/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +18 -15
  47. data/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +12 -10
  48. data/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +38 -33
  49. data/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +12 -10
  50. data/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +6 -5
  51. data/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +32 -30
  52. data/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +28 -26
  53. data/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +12 -12
  54. data/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +18 -17
  55. data/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +6 -5
  56. data/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +134 -133
  57. data/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +12 -10
  58. data/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +12 -10
  59. data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +32 -17
  60. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +6 -5
  61. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +6 -5
  62. data/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +12 -12
  63. data/lib/2015-05-01-preview/generated/azure_mgmt_sql.rb +22 -19
  64. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +18 -17
  65. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +12 -12
  66. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +18 -17
  67. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +31 -29
  68. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +71 -67
  69. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage.rb +110 -0
  70. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage_list_result.rb +100 -0
  71. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +15 -13
  72. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +18 -17
  73. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +41 -38
  74. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +66 -62
  75. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +8 -1
  76. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb +324 -0
  77. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +62 -56
  78. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +118 -107
  79. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +76 -71
  80. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +41 -38
  81. data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +30 -1
  82. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +21 -18
  83. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_restore_points.rb +527 -0
  84. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +1599 -0
  85. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/arm_sku.rb +92 -0
  86. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb +16 -0
  87. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb +17 -0
  88. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_mode.rb +17 -0
  89. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_options.rb +90 -0
  90. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_server_reason.rb +17 -0
  91. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/catalog_collation_type.rb +16 -0
  92. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_database_restore_point_definition.rb +47 -0
  93. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +23 -0
  94. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database.rb +393 -0
  95. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_list_result.rb +100 -0
  96. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point.rb +124 -0
  97. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_restore_point_list_result.rb +100 -0
  98. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_update.rb +348 -0
  99. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_database_definition.rb +145 -0
  100. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/import_export_operation_result.rb +170 -0
  101. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/resource_move_definition.rb +46 -0
  102. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/restore_point_type.rb +16 -0
  103. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sample_name.rb +17 -0
  104. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_automatic_tuning.rb +110 -0
  105. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias.rb +74 -0
  106. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_acquisition.rb +47 -0
  107. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_dns_alias_list_result.rb +100 -0
  108. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/status.rb +32 -0
  109. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb +92 -0
  110. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +238 -0
  111. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +805 -0
  112. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +21 -1
  113. data/lib/profiles/latest/modules/sql_profile_module.rb +912 -749
  114. data/lib/profiles/latest/sql_latest_profile_client.rb +28 -9
  115. data/lib/profiles/latest/sql_module_definition.rb +0 -1
  116. data/lib/version.rb +1 -1
  117. metadata +49 -3
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01
38
38
  #
39
39
  # @return [ServiceObjective] operation results.
40
40
  #
41
- def get(resource_group_name, server_name, service_objective_name, custom_headers = nil)
42
- response = get_async(resource_group_name, server_name, service_objective_name, custom_headers).value!
41
+ def get(resource_group_name, server_name, service_objective_name, custom_headers:nil)
42
+ response = get_async(resource_group_name, server_name, service_objective_name, custom_headers:custom_headers).value!
43
43
  response.body unless response.nil?
44
44
  end
45
45
 
@@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01
57
57
  #
58
58
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
59
  #
60
- def get_with_http_info(resource_group_name, server_name, service_objective_name, custom_headers = nil)
61
- get_async(resource_group_name, server_name, service_objective_name, custom_headers).value!
60
+ def get_with_http_info(resource_group_name, server_name, service_objective_name, custom_headers:nil)
61
+ get_async(resource_group_name, server_name, service_objective_name, custom_headers:custom_headers).value!
62
62
  end
63
63
 
64
64
  #
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01
75
75
  #
76
76
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
77
  #
78
- def get_async(resource_group_name, server_name, service_objective_name, custom_headers = nil)
78
+ def get_async(resource_group_name, server_name, service_objective_name, custom_headers:nil)
79
79
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
80
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
81
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01
84
84
 
85
85
 
86
86
  request_headers = {}
87
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
87
88
 
88
89
  # Set Headers
89
90
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01
140
141
  #
141
142
  # @return [ServiceObjectiveListResult] operation results.
142
143
  #
143
- def list_by_server(resource_group_name, server_name, custom_headers = nil)
144
- response = list_by_server_async(resource_group_name, server_name, custom_headers).value!
144
+ def list_by_server(resource_group_name, server_name, custom_headers:nil)
145
+ response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
145
146
  response.body unless response.nil?
146
147
  end
147
148
 
@@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2014_04_01
157
158
  #
158
159
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
159
160
  #
160
- def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil)
161
- list_by_server_async(resource_group_name, server_name, custom_headers).value!
161
+ def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
162
+ list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
162
163
  end
163
164
 
164
165
  #
@@ -173,7 +174,7 @@ module Azure::SQL::Mgmt::V2014_04_01
173
174
  #
174
175
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
175
176
  #
176
- def list_by_server_async(resource_group_name, server_name, custom_headers = nil)
177
+ def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
177
178
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
178
179
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
179
180
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -181,6 +182,7 @@ module Azure::SQL::Mgmt::V2014_04_01
181
182
 
182
183
 
183
184
  request_headers = {}
185
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
184
186
 
185
187
  # Set Headers
186
188
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01
38
38
  #
39
39
  # @return [ServiceTierAdvisor] operation results.
40
40
  #
41
- def get(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers = nil)
42
- response = get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers).value!
41
+ def get(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:nil)
42
+ response = get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:custom_headers).value!
43
43
  response.body unless response.nil?
44
44
  end
45
45
 
@@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01
57
57
  #
58
58
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
59
  #
60
- def get_with_http_info(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers = nil)
61
- get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers).value!
60
+ def get_with_http_info(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:nil)
61
+ get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:custom_headers).value!
62
62
  end
63
63
 
64
64
  #
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01
75
75
  #
76
76
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
77
  #
78
- def get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers = nil)
78
+ def get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:nil)
79
79
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
80
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
81
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2014_04_01
85
85
 
86
86
 
87
87
  request_headers = {}
88
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
88
89
 
89
90
  # Set Headers
90
91
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -142,8 +143,8 @@ module Azure::SQL::Mgmt::V2014_04_01
142
143
  #
143
144
  # @return [ServiceTierAdvisorListResult] operation results.
144
145
  #
145
- def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil)
146
- response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
146
+ def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
147
+ response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
147
148
  response.body unless response.nil?
148
149
  end
149
150
 
@@ -160,8 +161,8 @@ module Azure::SQL::Mgmt::V2014_04_01
160
161
  #
161
162
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
162
163
  #
163
- def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
164
- list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
164
+ def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
165
+ list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
165
166
  end
166
167
 
167
168
  #
@@ -177,7 +178,7 @@ module Azure::SQL::Mgmt::V2014_04_01
177
178
  #
178
179
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
179
180
  #
180
- def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil)
181
+ def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
181
182
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
182
183
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
183
184
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -186,6 +187,7 @@ module Azure::SQL::Mgmt::V2014_04_01
186
187
 
187
188
 
188
189
  request_headers = {}
190
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
189
191
 
190
192
  # Set Headers
191
193
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -45,21 +45,27 @@ module Azure::SQL::Mgmt::V2014_04_01
45
45
  # @return [BackupLongTermRetentionVaults] backup_long_term_retention_vaults
46
46
  attr_reader :backup_long_term_retention_vaults
47
47
 
48
- # @return [RestorePoints] restore_points
49
- attr_reader :restore_points
50
-
51
48
  # @return [RecoverableDatabases] recoverable_databases
52
49
  attr_reader :recoverable_databases
53
50
 
54
51
  # @return [RestorableDroppedDatabases] restorable_dropped_databases
55
52
  attr_reader :restorable_dropped_databases
56
53
 
54
+ # @return [RestorePoints] restore_points
55
+ attr_reader :restore_points
56
+
57
57
  # @return [Capabilities] capabilities
58
58
  attr_reader :capabilities
59
59
 
60
+ # @return [Servers] servers
61
+ attr_reader :servers
62
+
60
63
  # @return [ServerConnectionPolicies] server_connection_policies
61
64
  attr_reader :server_connection_policies
62
65
 
66
+ # @return [Databases] databases
67
+ attr_reader :databases
68
+
63
69
  # @return [DatabaseThreatDetectionPolicies]
64
70
  # database_threat_detection_policies
65
71
  attr_reader :database_threat_detection_policies
@@ -74,18 +80,21 @@ module Azure::SQL::Mgmt::V2014_04_01
74
80
  # transparent_data_encryption_configurations
75
81
  attr_reader :transparent_data_encryption_configurations
76
82
 
83
+ # @return [Extensions] extensions
84
+ attr_reader :extensions
85
+
86
+ # @return [DisasterRecoveryConfigurations] disaster_recovery_configurations
87
+ attr_reader :disaster_recovery_configurations
88
+
89
+ # @return [ElasticPools] elastic_pools
90
+ attr_reader :elastic_pools
91
+
77
92
  # @return [FirewallRules] firewall_rules
78
93
  attr_reader :firewall_rules
79
94
 
80
95
  # @return [GeoBackupPolicies] geo_backup_policies
81
96
  attr_reader :geo_backup_policies
82
97
 
83
- # @return [Databases] databases
84
- attr_reader :databases
85
-
86
- # @return [ElasticPools] elastic_pools
87
- attr_reader :elastic_pools
88
-
89
98
  # @return [Operations] operations
90
99
  attr_reader :operations
91
100
 
@@ -95,6 +104,9 @@ module Azure::SQL::Mgmt::V2014_04_01
95
104
  # @return [QueryStatistics] query_statistics
96
105
  attr_reader :query_statistics
97
106
 
107
+ # @return [QueryTexts] query_texts
108
+ attr_reader :query_texts
109
+
98
110
  # @return [ReplicationLinks] replication_links
99
111
  attr_reader :replication_links
100
112
 
@@ -104,9 +116,6 @@ module Azure::SQL::Mgmt::V2014_04_01
104
116
  # @return [ServerCommunicationLinks] server_communication_links
105
117
  attr_reader :server_communication_links
106
118
 
107
- # @return [Servers] servers
108
- attr_reader :servers
109
-
110
119
  # @return [ServiceObjectives] service_objectives
111
120
  attr_reader :service_objectives
112
121
 
@@ -160,26 +169,29 @@ module Azure::SQL::Mgmt::V2014_04_01
160
169
  @database_advisors = DatabaseAdvisors.new(self)
161
170
  @backup_long_term_retention_policies = BackupLongTermRetentionPolicies.new(self)
162
171
  @backup_long_term_retention_vaults = BackupLongTermRetentionVaults.new(self)
163
- @restore_points = RestorePoints.new(self)
164
172
  @recoverable_databases = RecoverableDatabases.new(self)
165
173
  @restorable_dropped_databases = RestorableDroppedDatabases.new(self)
174
+ @restore_points = RestorePoints.new(self)
166
175
  @capabilities = Capabilities.new(self)
176
+ @servers = Servers.new(self)
167
177
  @server_connection_policies = ServerConnectionPolicies.new(self)
178
+ @databases = Databases.new(self)
168
179
  @database_threat_detection_policies = DatabaseThreatDetectionPolicies.new(self)
169
180
  @data_masking_policies = DataMaskingPolicies.new(self)
170
181
  @data_masking_rules = DataMaskingRules.new(self)
171
182
  @transparent_data_encryption_configurations = TransparentDataEncryptionConfigurations.new(self)
183
+ @extensions = Extensions.new(self)
184
+ @disaster_recovery_configurations = DisasterRecoveryConfigurations.new(self)
185
+ @elastic_pools = ElasticPools.new(self)
172
186
  @firewall_rules = FirewallRules.new(self)
173
187
  @geo_backup_policies = GeoBackupPolicies.new(self)
174
- @databases = Databases.new(self)
175
- @elastic_pools = ElasticPools.new(self)
176
188
  @operations = Operations.new(self)
177
189
  @queries = Queries.new(self)
178
190
  @query_statistics = QueryStatistics.new(self)
191
+ @query_texts = QueryTexts.new(self)
179
192
  @replication_links = ReplicationLinks.new(self)
180
193
  @server_azure_adadministrators = ServerAzureADAdministrators.new(self)
181
194
  @server_communication_links = ServerCommunicationLinks.new(self)
182
- @servers = Servers.new(self)
183
195
  @service_objectives = ServiceObjectives.new(self)
184
196
  @elastic_pool_activities = ElasticPoolActivities.new(self)
185
197
  @elastic_pool_database_activities = ElasticPoolDatabaseActivities.new(self)
@@ -245,6 +257,9 @@ module Azure::SQL::Mgmt::V2014_04_01
245
257
  fail ArgumentError, 'path is nil' if path.nil?
246
258
 
247
259
  request_url = options[:base_url] || @base_url
260
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
261
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
262
+ end
248
263
 
249
264
  request_headers = @request_headers
250
265
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -261,7 +276,7 @@ module Azure::SQL::Mgmt::V2014_04_01
261
276
  #
262
277
  def add_telemetry
263
278
  sdk_information = 'azure_mgmt_sql'
264
- sdk_information = "#{sdk_information}/0.15.2"
279
+ sdk_information = "#{sdk_information}/0.16.0"
265
280
  add_user_agent_information(sdk_information)
266
281
  end
267
282
  end
@@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01
38
38
  #
39
39
  # @return [TransparentDataEncryptionActivityListResult] operation results.
40
40
  #
41
- def list_by_configuration(resource_group_name, server_name, database_name, custom_headers = nil)
42
- response = list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers).value!
41
+ def list_by_configuration(resource_group_name, server_name, database_name, custom_headers:nil)
42
+ response = list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
43
43
  response.body unless response.nil?
44
44
  end
45
45
 
@@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01
57
57
  #
58
58
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
59
59
  #
60
- def list_by_configuration_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
61
- list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers).value!
60
+ def list_by_configuration_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
61
+ list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
62
62
  end
63
63
 
64
64
  #
@@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01
75
75
  #
76
76
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
77
  #
78
- def list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers = nil)
78
+ def list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers:nil)
79
79
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
80
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
81
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2014_04_01
85
85
 
86
86
 
87
87
  request_headers = {}
88
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
88
89
 
89
90
  # Set Headers
90
91
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -40,8 +40,8 @@ module Azure::SQL::Mgmt::V2014_04_01
40
40
  #
41
41
  # @return [TransparentDataEncryptionListResult] operation results.
42
42
  #
43
- def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil)
44
- response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
43
+ def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
44
+ response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
45
45
  response.body unless response.nil?
46
46
  end
47
47
 
@@ -61,8 +61,8 @@ module Azure::SQL::Mgmt::V2014_04_01
61
61
  #
62
62
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
63
63
  #
64
- def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
65
- list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
64
+ def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
65
+ list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
66
66
  end
67
67
 
68
68
  #
@@ -81,7 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01
81
81
  #
82
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
83
  #
84
- def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil)
84
+ def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil)
85
85
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
86
86
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
87
87
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -90,6 +90,7 @@ module Azure::SQL::Mgmt::V2014_04_01
90
90
 
91
91
 
92
92
  request_headers = {}
93
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
93
94
 
94
95
  # Set Headers
95
96
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -40,8 +40,8 @@ module Azure::SQL::Mgmt::V2014_04_01
40
40
  #
41
41
  # @return [TransparentDataEncryption] operation results.
42
42
  #
43
- def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
44
- response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
43
+ def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
44
+ response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
45
45
  response.body unless response.nil?
46
46
  end
47
47
 
@@ -61,8 +61,8 @@ module Azure::SQL::Mgmt::V2014_04_01
61
61
  #
62
62
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
63
63
  #
64
- def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
65
- create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
64
+ def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
65
+ create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
66
66
  end
67
67
 
68
68
  #
@@ -81,7 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01
81
81
  #
82
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
83
  #
84
- def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
84
+ def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
85
85
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
86
86
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
87
87
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -92,13 +92,12 @@ module Azure::SQL::Mgmt::V2014_04_01
92
92
 
93
93
 
94
94
  request_headers = {}
95
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
95
96
 
96
97
  # Set Headers
97
98
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
98
99
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
99
100
 
100
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
101
-
102
101
  # Serialize Request
103
102
  request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption.mapper()
104
103
  request_content = @client.serialize(request_mapper, parameters)
@@ -169,8 +168,8 @@ module Azure::SQL::Mgmt::V2014_04_01
169
168
  #
170
169
  # @return [TransparentDataEncryption] operation results.
171
170
  #
172
- def get(resource_group_name, server_name, database_name, custom_headers = nil)
173
- response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
171
+ def get(resource_group_name, server_name, database_name, custom_headers:nil)
172
+ response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
174
173
  response.body unless response.nil?
175
174
  end
176
175
 
@@ -188,8 +187,8 @@ module Azure::SQL::Mgmt::V2014_04_01
188
187
  #
189
188
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
190
189
  #
191
- def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
192
- get_async(resource_group_name, server_name, database_name, custom_headers).value!
190
+ def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
191
+ get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
193
192
  end
194
193
 
195
194
  #
@@ -206,7 +205,7 @@ module Azure::SQL::Mgmt::V2014_04_01
206
205
  #
207
206
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
208
207
  #
209
- def get_async(resource_group_name, server_name, database_name, custom_headers = nil)
208
+ def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
210
209
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
211
210
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
212
211
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -216,6 +215,7 @@ module Azure::SQL::Mgmt::V2014_04_01
216
215
 
217
216
 
218
217
  request_headers = {}
218
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
219
219
 
220
220
  # Set Headers
221
221
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -32,46 +32,48 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
32
32
  autoload :SyncAgents, '2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb'
33
33
  autoload :SyncGroups, '2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb'
34
34
  autoload :SyncMembers, '2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb'
35
+ autoload :SubscriptionUsages, '2015-05-01-preview/generated/azure_mgmt_sql/subscription_usages.rb'
35
36
  autoload :VirtualNetworkRules, '2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb'
36
37
  autoload :SqlManagementClient, '2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb'
37
38
 
38
39
  module Models
39
- autoload :ServerListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_list_result.rb'
40
- autoload :Resource, '2015-05-01-preview/generated/azure_mgmt_sql/models/resource.rb'
41
40
  autoload :ServerKeyListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_key_list_result.rb'
41
+ autoload :Resource, '2015-05-01-preview/generated/azure_mgmt_sql/models/resource.rb'
42
42
  autoload :ResourceIdentity, '2015-05-01-preview/generated/azure_mgmt_sql/models/resource_identity.rb'
43
- autoload :RecommendedActionImplementationInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_implementation_info.rb'
44
- autoload :RecommendedActionImpactRecord, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_impact_record.rb'
45
- autoload :SyncFullSchemaPropertiesListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb'
46
43
  autoload :RecommendedActionStateInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_state_info.rb'
47
- autoload :SyncGroupSchemaTable, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table.rb'
48
44
  autoload :RecommendedActionErrorInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_error_info.rb'
49
- autoload :SyncGroupLogListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb'
45
+ autoload :ServerListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_list_result.rb'
50
46
  autoload :RecommendedActionMetricInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb'
47
+ autoload :VirtualNetworkRuleListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb'
48
+ autoload :RecommendedActionImpactRecord, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_impact_record.rb'
49
+ autoload :SyncGroupListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_list_result.rb'
50
+ autoload :SyncGroupSchema, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema.rb'
51
+ autoload :SyncGroupLogProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_log_properties.rb'
51
52
  autoload :FailoverGroupReadWriteEndpoint, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb'
52
- autoload :SyncFullSchemaProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb'
53
+ autoload :SyncGroupLogListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb'
53
54
  autoload :PartnerInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/partner_info.rb'
54
- autoload :VirtualNetworkRuleListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb'
55
- autoload :FailoverGroupUpdate, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_update.rb'
56
55
  autoload :ServerUpdate, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_update.rb'
56
+ autoload :FailoverGroupUpdate, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_update.rb'
57
+ autoload :SubscriptionUsageListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage_list_result.rb'
57
58
  autoload :OperationDisplay, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation_display.rb'
58
- autoload :SyncMemberListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_member_list_result.rb'
59
- autoload :OperationListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation_list_result.rb'
60
59
  autoload :SyncAgentListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_list_result.rb'
61
- autoload :SyncGroupSchemaTableColumn, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb'
60
+ autoload :OperationListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation_list_result.rb'
62
61
  autoload :SyncAgentKeyProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_key_properties.rb'
62
+ autoload :SyncFullSchemaPropertiesListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb'
63
+ autoload :RecommendedActionImplementationInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_implementation_info.rb'
64
+ autoload :SyncMemberListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_member_list_result.rb'
63
65
  autoload :FailoverGroupReadOnlyEndpoint, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb'
64
- autoload :SyncGroupListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_list_result.rb'
65
- autoload :FailoverGroupListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_list_result.rb'
66
66
  autoload :SyncAgentLinkedDatabaseListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb'
67
- autoload :SyncGroupSchema, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema.rb'
67
+ autoload :FailoverGroupListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_list_result.rb'
68
68
  autoload :SyncDatabaseIdProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_database_id_properties.rb'
69
- autoload :SyncGroupLogProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_log_properties.rb'
69
+ autoload :SyncGroupSchemaTableColumn, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb'
70
70
  autoload :SyncDatabaseIdListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb'
71
- autoload :EncryptionProtectorListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb'
71
+ autoload :SyncGroupSchemaTable, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table.rb'
72
72
  autoload :SyncFullSchemaTableColumn, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb'
73
- autoload :Operation, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation.rb'
73
+ autoload :EncryptionProtectorListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb'
74
74
  autoload :SyncFullSchemaTable, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_table.rb'
75
+ autoload :Operation, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation.rb'
76
+ autoload :SyncFullSchemaProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb'
75
77
  autoload :ProxyResource, '2015-05-01-preview/generated/azure_mgmt_sql/models/proxy_resource.rb'
76
78
  autoload :RecommendedAction, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action.rb'
77
79
  autoload :Advisor, '2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb'
@@ -85,6 +87,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
85
87
  autoload :SyncAgentLinkedDatabase, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb'
86
88
  autoload :SyncGroup, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group.rb'
87
89
  autoload :SyncMember, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_member.rb'
90
+ autoload :SubscriptionUsage, '2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage.rb'
88
91
  autoload :VirtualNetworkRule, '2015-05-01-preview/generated/azure_mgmt_sql/models/virtual_network_rule.rb'
89
92
  autoload :AdvisorStatus, '2015-05-01-preview/generated/azure_mgmt_sql/models/advisor_status.rb'
90
93
  autoload :AutoExecuteStatus, '2015-05-01-preview/generated/azure_mgmt_sql/models/auto_execute_status.rb'