azure_mgmt_sql 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2014-04-01/generated/azure_mgmt_sql.rb +62 -61
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/database.rb +8 -8
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb +8 -8
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/server.rb +8 -8
- data/lib/2014-04-01/generated/azure_mgmt_sql/models/tracked_resource.rb +11 -11
- data/lib/2014-04-01/generated/azure_mgmt_sql/server_advisors.rb +454 -0
- data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +22 -17
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql.rb +43 -25
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_automatic_tuning_operations.rb +246 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +6 -12
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/firewall_rules.rb +666 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/managed_instances.rb +986 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_disabled_reason.rb +21 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_mode.rb +18 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb +16 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb +17 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_options.rb +91 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/database_automatic_tuning.rb +110 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +72 -2
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule.rb +86 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule_list.rb +55 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb +100 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb +206 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance_list_result.rb +100 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance_update.rb +161 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/proxy_resource_with_writable_name.rb +61 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/resource_with_writable_name.rb +70 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/sku.rb +97 -0
- data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +20 -6
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +88 -11
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +402 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/data_warehouse_user_activities_operations.rb +134 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +258 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +4 -4
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_rule_baselines.rb +400 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessments.rb +356 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +4 -4
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_database_blob_auditing_policies.rb +258 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_server_blob_auditing_policies.rb +290 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_agents.rb +816 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_credentials.rb +571 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_executions.rb +1101 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_step_executions.rb +415 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_steps.rb +927 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_executions.rb +697 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_groups.rb +571 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_versions.rb +358 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/jobs.rb +570 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb +925 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb +963 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb +110 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/blob_auditing_policy_state.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/complete_database_restore_definition.rb +47 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +1 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/data_warehouse_user_activities.rb +74 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database.rb +9 -9
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +238 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb +36 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{status.rb → database_status.rb} +2 -2
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_update.rb +9 -9
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment_rule_baseline.rb +84 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment_rule_baseline_item.rb +56 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_database_blob_auditing_policy.rb +238 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_server_blob_auditing_policy.rb +238 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job.rb +99 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent.rb +122 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent_state.rb +19 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent_update.rb +54 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_credential.rb +85 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_credential_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution.rb +224 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution_lifecycle.rb +24 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution_target.rb +73 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_schedule.rb +98 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_schedule_type.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step.rb +135 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_action.rb +73 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_action_source.rb +15 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_action_type.rb +15 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_execution_options.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_output.rb +127 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_output_type.rb +15 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target.rb +121 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_group.rb +82 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_group_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_group_membership_type.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_type.rb +19 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_version.rb +62 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_version_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/long_term_retention_backup.rb +134 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{database_restore_point_list_result.rb → long_term_retention_backup_list_result.rb} +9 -9
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/long_term_retention_database_state.rb +17 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database.rb +242 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_create_mode.rb +17 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_status.rb +19 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_update.rb +210 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/provisioning_state.rb +19 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{database_restore_point.rb → restore_point.rb} +6 -5
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/restore_point_list_result.rb +68 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/security_alert_policy_state.rb +17 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sensitivity_label.rb +84 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sensitivity_label_list_result.rb +100 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sensitivity_label_source.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_blob_auditing_policy.rb +226 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb +166 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{arm_sku.rb → sku.rb} +16 -11
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_policy_baseline_name.rb +16 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_recurring_scans_properties.rb +80 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/{database_restore_points.rb → restore_points.rb} +93 -111
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sensitivity_labels.rb +612 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +4 -4
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_blob_auditing_policies.rb +290 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +4 -4
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_security_alert_policies.rb +290 -0
- data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +100 -9
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql.rb +104 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/backup_short_term_retention_policies.rb +684 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/capabilities.rb +128 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_operations.rb +338 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_scans.rb +621 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/databases.rb +1566 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pool_operations.rb +338 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pools.rb +815 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/instance_failover_groups.rb +983 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_tde_certificates.rb +175 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/backup_short_term_retention_policy.rb +74 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/backup_short_term_retention_policy_list_result.rb +101 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/capability_group.rb +17 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/capability_status.rb +18 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/catalog_collation_type.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +24 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database.rb +482 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_license_type.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_list_result.rb +100 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb +233 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation_list_result.rb +100 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_read_scale.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_status.rb +32 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_update.rb +425 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment.rb +100 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment_scans_export.rb +76 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/edition_capability.rb +107 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool.rb +187 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +107 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_license_type.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb +100 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_operation.rb +231 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_operation_list_result.rb +100 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_performance_level_capability.rb +108 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_performance_level_capability.rb +86 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_per_database_settings.rb +57 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_performance_level_capability.rb +200 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_state.rb +17 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_update.rb +116 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group.rb +156 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_list_result.rb +100 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_read_only_endpoint.rb +48 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_read_write_endpoint.rb +62 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_replication_role.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/license_type_capability.rb +72 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/location_capabilities.rb +116 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/log_size_capability.rb +61 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/log_size_unit.rb +19 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_edition_capability.rb +94 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_family_capability.rb +161 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_pair_info.rb +57 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_vcores_capability.rb +84 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_version_capability.rb +94 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/management_operation_state.rb +20 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/max_size_capability.rb +61 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/max_size_range_capability.rb +113 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/max_size_unit.rb +18 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/partner_region_info.rb +60 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/performance_level_capability.rb +60 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/performance_level_unit.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/proxy_resource.rb +62 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/read_write_endpoint_failover_policy.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/resource.rb +71 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/resource_move_definition.rb +46 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/sample_name.rb +17 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/server_version_capability.rb +116 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/service_objective_capability.rb +166 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/sku.rb +97 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/tde_certificate.rb +84 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb +92 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_recurring_scans_properties.rb +80 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_error.rb +59 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_record.rb +169 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_record_list_result.rb +102 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_state.rb +18 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_trigger_type.rb +16 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/module_definition.rb +9 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +171 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_sql/tde_certificates.rb +175 -0
- data/lib/azure_mgmt_sql.rb +2 -1
- data/lib/profiles/latest/modules/sql_profile_module.rb +855 -411
- data/lib/version.rb +1 -1
- metadata +186 -10
@@ -17,24 +17,28 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
17
17
|
# @return Credentials needed for the client to connect to Azure.
|
18
18
|
attr_reader :credentials
|
19
19
|
|
20
|
+
# @return [String] The API version to use for the request.
|
21
|
+
attr_reader :api_version
|
22
|
+
|
20
23
|
# @return [String] The subscription ID that identifies an Azure
|
21
24
|
# subscription.
|
22
25
|
attr_accessor :subscription_id
|
23
26
|
|
24
|
-
# @return [String] The
|
25
|
-
attr_reader :api_version
|
26
|
-
|
27
|
-
# @return [String] Gets or sets the preferred language for the response.
|
27
|
+
# @return [String] The preferred language for the response.
|
28
28
|
attr_accessor :accept_language
|
29
29
|
|
30
|
-
# @return [Integer]
|
31
|
-
#
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
32
|
attr_accessor :long_running_operation_retry_timeout
|
33
33
|
|
34
|
-
# @return [Boolean]
|
35
|
-
#
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
36
37
|
attr_accessor :generate_client_request_id
|
37
38
|
|
39
|
+
# @return [ServerAdvisors] server_advisors
|
40
|
+
attr_reader :server_advisors
|
41
|
+
|
38
42
|
# @return [DatabaseAdvisors] database_advisors
|
39
43
|
attr_reader :database_advisors
|
40
44
|
|
@@ -51,9 +55,6 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
51
55
|
# @return [RestorableDroppedDatabases] restorable_dropped_databases
|
52
56
|
attr_reader :restorable_dropped_databases
|
53
57
|
|
54
|
-
# @return [RestorePoints] restore_points
|
55
|
-
attr_reader :restore_points
|
56
|
-
|
57
58
|
# @return [Capabilities] capabilities
|
58
59
|
attr_reader :capabilities
|
59
60
|
|
@@ -107,9 +108,15 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
107
108
|
# @return [QueryTexts] query_texts
|
108
109
|
attr_reader :query_texts
|
109
110
|
|
111
|
+
# @return [RecommendedElasticPools] recommended_elastic_pools
|
112
|
+
attr_reader :recommended_elastic_pools
|
113
|
+
|
110
114
|
# @return [ReplicationLinks] replication_links
|
111
115
|
attr_reader :replication_links
|
112
116
|
|
117
|
+
# @return [RestorePoints] restore_points
|
118
|
+
attr_reader :restore_points
|
119
|
+
|
113
120
|
# @return [ServerAzureADAdministrators] server_azure_adadministrators
|
114
121
|
attr_reader :server_azure_adadministrators
|
115
122
|
|
@@ -125,9 +132,6 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
125
132
|
# @return [ElasticPoolDatabaseActivities] elastic_pool_database_activities
|
126
133
|
attr_reader :elastic_pool_database_activities
|
127
134
|
|
128
|
-
# @return [RecommendedElasticPools] recommended_elastic_pools
|
129
|
-
attr_reader :recommended_elastic_pools
|
130
|
-
|
131
135
|
# @return [ServiceTierAdvisors] service_tier_advisors
|
132
136
|
attr_reader :service_tier_advisors
|
133
137
|
|
@@ -166,12 +170,12 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
166
170
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
167
171
|
@credentials = credentials
|
168
172
|
|
173
|
+
@server_advisors = ServerAdvisors.new(self)
|
169
174
|
@database_advisors = DatabaseAdvisors.new(self)
|
170
175
|
@backup_long_term_retention_policies = BackupLongTermRetentionPolicies.new(self)
|
171
176
|
@backup_long_term_retention_vaults = BackupLongTermRetentionVaults.new(self)
|
172
177
|
@recoverable_databases = RecoverableDatabases.new(self)
|
173
178
|
@restorable_dropped_databases = RestorableDroppedDatabases.new(self)
|
174
|
-
@restore_points = RestorePoints.new(self)
|
175
179
|
@capabilities = Capabilities.new(self)
|
176
180
|
@servers = Servers.new(self)
|
177
181
|
@server_connection_policies = ServerConnectionPolicies.new(self)
|
@@ -189,13 +193,14 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
189
193
|
@queries = Queries.new(self)
|
190
194
|
@query_statistics = QueryStatistics.new(self)
|
191
195
|
@query_texts = QueryTexts.new(self)
|
196
|
+
@recommended_elastic_pools = RecommendedElasticPools.new(self)
|
192
197
|
@replication_links = ReplicationLinks.new(self)
|
198
|
+
@restore_points = RestorePoints.new(self)
|
193
199
|
@server_azure_adadministrators = ServerAzureADAdministrators.new(self)
|
194
200
|
@server_communication_links = ServerCommunicationLinks.new(self)
|
195
201
|
@service_objectives = ServiceObjectives.new(self)
|
196
202
|
@elastic_pool_activities = ElasticPoolActivities.new(self)
|
197
203
|
@elastic_pool_database_activities = ElasticPoolDatabaseActivities.new(self)
|
198
|
-
@recommended_elastic_pools = RecommendedElasticPools.new(self)
|
199
204
|
@service_tier_advisors = ServiceTierAdvisors.new(self)
|
200
205
|
@transparent_data_encryptions = TransparentDataEncryptions.new(self)
|
201
206
|
@transparent_data_encryption_activities = TransparentDataEncryptionActivities.new(self)
|
@@ -276,7 +281,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
276
281
|
#
|
277
282
|
def add_telemetry
|
278
283
|
sdk_information = 'azure_mgmt_sql'
|
279
|
-
sdk_information = "#{sdk_information}/0.
|
284
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
280
285
|
add_user_agent_information(sdk_information)
|
281
286
|
end
|
282
287
|
end
|
@@ -24,8 +24,11 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
24
24
|
autoload :DatabaseRecommendedActions, '2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb'
|
25
25
|
autoload :ServerAdvisors, '2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb'
|
26
26
|
autoload :DatabaseBlobAuditingPolicies, '2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb'
|
27
|
+
autoload :DatabaseAutomaticTuningOperations, '2015-05-01-preview/generated/azure_mgmt_sql/database_automatic_tuning_operations.rb'
|
27
28
|
autoload :EncryptionProtectors, '2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb'
|
28
29
|
autoload :FailoverGroups, '2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb'
|
30
|
+
autoload :FirewallRules, '2015-05-01-preview/generated/azure_mgmt_sql/firewall_rules.rb'
|
31
|
+
autoload :ManagedInstances, '2015-05-01-preview/generated/azure_mgmt_sql/managed_instances.rb'
|
29
32
|
autoload :Operations, '2015-05-01-preview/generated/azure_mgmt_sql/operations.rb'
|
30
33
|
autoload :ServerKeys, '2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb'
|
31
34
|
autoload :Servers, '2015-05-01-preview/generated/azure_mgmt_sql/servers.rb'
|
@@ -37,51 +40,62 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
37
40
|
autoload :SqlManagementClient, '2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb'
|
38
41
|
|
39
42
|
module Models
|
40
|
-
autoload :
|
41
|
-
autoload :
|
43
|
+
autoload :OperationDisplay, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation_display.rb'
|
44
|
+
autoload :Operation, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation.rb'
|
45
|
+
autoload :RecommendedActionImplementationInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_implementation_info.rb'
|
46
|
+
autoload :OperationListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation_list_result.rb'
|
47
|
+
autoload :RecommendedActionImpactRecord, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_impact_record.rb'
|
48
|
+
autoload :ManagedInstanceUpdate, '2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance_update.rb'
|
49
|
+
autoload :FirewallRuleList, '2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule_list.rb'
|
42
50
|
autoload :ResourceIdentity, '2015-05-01-preview/generated/azure_mgmt_sql/models/resource_identity.rb'
|
51
|
+
autoload :SyncGroupSchema, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema.rb'
|
52
|
+
autoload :Sku, '2015-05-01-preview/generated/azure_mgmt_sql/models/sku.rb'
|
53
|
+
autoload :SyncDatabaseIdListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb'
|
54
|
+
autoload :SyncGroupSchemaTable, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table.rb'
|
55
|
+
autoload :SyncFullSchemaTable, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_table.rb'
|
56
|
+
autoload :SyncGroupSchemaTableColumn, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb'
|
57
|
+
autoload :ManagedInstanceListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance_list_result.rb'
|
58
|
+
autoload :EncryptionProtectorListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb'
|
59
|
+
autoload :SyncFullSchemaTableColumn, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb'
|
60
|
+
autoload :FailoverGroupReadOnlyEndpoint, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb'
|
43
61
|
autoload :RecommendedActionStateInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_state_info.rb'
|
62
|
+
autoload :SyncGroupLogProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_log_properties.rb'
|
44
63
|
autoload :RecommendedActionErrorInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_error_info.rb'
|
45
|
-
autoload :
|
64
|
+
autoload :FailoverGroupListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_list_result.rb'
|
46
65
|
autoload :RecommendedActionMetricInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb'
|
66
|
+
autoload :SyncFullSchemaPropertiesListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb'
|
67
|
+
autoload :FirewallRuleListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb'
|
68
|
+
autoload :ServerKeyListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_key_list_result.rb'
|
69
|
+
autoload :Resource, '2015-05-01-preview/generated/azure_mgmt_sql/models/resource.rb'
|
47
70
|
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'
|
52
|
-
autoload :FailoverGroupReadWriteEndpoint, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb'
|
53
71
|
autoload :SyncGroupLogListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb'
|
72
|
+
autoload :ServerListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_list_result.rb'
|
54
73
|
autoload :PartnerInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/partner_info.rb'
|
55
74
|
autoload :ServerUpdate, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_update.rb'
|
56
|
-
autoload :
|
75
|
+
autoload :ResourceWithWritableName, '2015-05-01-preview/generated/azure_mgmt_sql/models/resource_with_writable_name.rb'
|
57
76
|
autoload :SubscriptionUsageListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/subscription_usage_list_result.rb'
|
58
|
-
autoload :
|
77
|
+
autoload :SyncGroupListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_list_result.rb'
|
59
78
|
autoload :SyncAgentListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_list_result.rb'
|
60
|
-
autoload :
|
79
|
+
autoload :FailoverGroupReadWriteEndpoint, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb'
|
61
80
|
autoload :SyncAgentKeyProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_key_properties.rb'
|
62
|
-
autoload :
|
63
|
-
autoload :RecommendedActionImplementationInfo, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_implementation_info.rb'
|
81
|
+
autoload :SyncFullSchemaProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb'
|
64
82
|
autoload :SyncMemberListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_member_list_result.rb'
|
65
|
-
autoload :
|
83
|
+
autoload :FailoverGroupUpdate, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_update.rb'
|
66
84
|
autoload :SyncAgentLinkedDatabaseListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb'
|
67
|
-
autoload :
|
85
|
+
autoload :AutomaticTuningOptions, '2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_options.rb'
|
68
86
|
autoload :SyncDatabaseIdProperties, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_database_id_properties.rb'
|
69
|
-
autoload :SyncGroupSchemaTableColumn, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb'
|
70
|
-
autoload :SyncDatabaseIdListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb'
|
71
|
-
autoload :SyncGroupSchemaTable, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_schema_table.rb'
|
72
|
-
autoload :SyncFullSchemaTableColumn, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb'
|
73
|
-
autoload :EncryptionProtectorListResult, '2015-05-01-preview/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb'
|
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'
|
77
87
|
autoload :ProxyResource, '2015-05-01-preview/generated/azure_mgmt_sql/models/proxy_resource.rb'
|
78
88
|
autoload :RecommendedAction, '2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action.rb'
|
79
89
|
autoload :Advisor, '2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb'
|
90
|
+
autoload :TrackedResource, '2015-05-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb'
|
80
91
|
autoload :DatabaseBlobAuditingPolicy, '2015-05-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb'
|
92
|
+
autoload :DatabaseAutomaticTuning, '2015-05-01-preview/generated/azure_mgmt_sql/models/database_automatic_tuning.rb'
|
81
93
|
autoload :EncryptionProtector, '2015-05-01-preview/generated/azure_mgmt_sql/models/encryption_protector.rb'
|
82
94
|
autoload :FailoverGroup, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb'
|
95
|
+
autoload :ProxyResourceWithWritableName, '2015-05-01-preview/generated/azure_mgmt_sql/models/proxy_resource_with_writable_name.rb'
|
96
|
+
autoload :FirewallRule, '2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule.rb'
|
97
|
+
autoload :ManagedInstance, '2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb'
|
83
98
|
autoload :ServerKey, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_key.rb'
|
84
|
-
autoload :TrackedResource, '2015-05-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb'
|
85
99
|
autoload :Server, '2015-05-01-preview/generated/azure_mgmt_sql/models/server.rb'
|
86
100
|
autoload :SyncAgent, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent.rb'
|
87
101
|
autoload :SyncAgentLinkedDatabase, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb'
|
@@ -97,12 +111,16 @@ module Azure::SQL::Mgmt::V2015_05_01_preview
|
|
97
111
|
autoload :ImplementationMethod, '2015-05-01-preview/generated/azure_mgmt_sql/models/implementation_method.rb'
|
98
112
|
autoload :IsRetryable, '2015-05-01-preview/generated/azure_mgmt_sql/models/is_retryable.rb'
|
99
113
|
autoload :BlobAuditingPolicyState, '2015-05-01-preview/generated/azure_mgmt_sql/models/blob_auditing_policy_state.rb'
|
114
|
+
autoload :AutomaticTuningMode, '2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_mode.rb'
|
115
|
+
autoload :AutomaticTuningOptionModeDesired, '2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb'
|
116
|
+
autoload :AutomaticTuningOptionModeActual, '2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb'
|
117
|
+
autoload :AutomaticTuningDisabledReason, '2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_disabled_reason.rb'
|
100
118
|
autoload :ServerKeyType, '2015-05-01-preview/generated/azure_mgmt_sql/models/server_key_type.rb'
|
101
119
|
autoload :ReadWriteEndpointFailoverPolicy, '2015-05-01-preview/generated/azure_mgmt_sql/models/read_write_endpoint_failover_policy.rb'
|
102
120
|
autoload :ReadOnlyEndpointFailoverPolicy, '2015-05-01-preview/generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb'
|
103
121
|
autoload :FailoverGroupReplicationRole, '2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group_replication_role.rb'
|
104
|
-
autoload :OperationOrigin, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation_origin.rb'
|
105
122
|
autoload :IdentityType, '2015-05-01-preview/generated/azure_mgmt_sql/models/identity_type.rb'
|
123
|
+
autoload :OperationOrigin, '2015-05-01-preview/generated/azure_mgmt_sql/models/operation_origin.rb'
|
106
124
|
autoload :SyncAgentState, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_agent_state.rb'
|
107
125
|
autoload :SyncMemberDbType, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_member_db_type.rb'
|
108
126
|
autoload :SyncGroupLogType, '2015-05-01-preview/generated/azure_mgmt_sql/models/sync_group_log_type.rb'
|
@@ -0,0 +1,246 @@
|
|
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::SQL::Mgmt::V2015_05_01_preview
|
7
|
+
#
|
8
|
+
# The Azure SQL Database management API provides a RESTful set of web
|
9
|
+
# services that interact with Azure SQL Database services to manage your
|
10
|
+
# databases. The API enables you to create, retrieve, update, and delete
|
11
|
+
# databases.
|
12
|
+
#
|
13
|
+
class DatabaseAutomaticTuningOperations
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the DatabaseAutomaticTuningOperations class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [SqlManagementClient] reference to the SqlManagementClient
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets a database's automatic tuning.
|
29
|
+
#
|
30
|
+
# @param resource_group_name [String] The name of the resource group that
|
31
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
32
|
+
# Manager API or the portal.
|
33
|
+
# @param server_name [String] The name of the server.
|
34
|
+
# @param database_name [String] The name of the database.
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
# @return [DatabaseAutomaticTuning] operation results.
|
39
|
+
#
|
40
|
+
def get(resource_group_name, server_name, database_name, custom_headers:nil)
|
41
|
+
response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Gets a database's automatic tuning.
|
47
|
+
#
|
48
|
+
# @param resource_group_name [String] The name of the resource group that
|
49
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
50
|
+
# Manager API or the portal.
|
51
|
+
# @param server_name [String] The name of the server.
|
52
|
+
# @param database_name [String] The name of the database.
|
53
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
54
|
+
# will be added to the HTTP request.
|
55
|
+
#
|
56
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
|
+
#
|
58
|
+
def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
59
|
+
get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# Gets a database's automatic tuning.
|
64
|
+
#
|
65
|
+
# @param resource_group_name [String] The name of the resource group that
|
66
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
67
|
+
# Manager API or the portal.
|
68
|
+
# @param server_name [String] The name of the server.
|
69
|
+
# @param database_name [String] The name of the database.
|
70
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
|
+
# to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
|
+
#
|
75
|
+
def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
76
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
78
|
+
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
79
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
81
|
+
|
82
|
+
|
83
|
+
request_headers = {}
|
84
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
85
|
+
|
86
|
+
# Set Headers
|
87
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
88
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
89
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current'
|
90
|
+
|
91
|
+
request_url = @base_url || @client.base_url
|
92
|
+
|
93
|
+
options = {
|
94
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
95
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
96
|
+
query_params: {'api-version' => @client.api_version},
|
97
|
+
headers: request_headers.merge(custom_headers || {}),
|
98
|
+
base_url: request_url
|
99
|
+
}
|
100
|
+
promise = @client.make_request_async(:get, path_template, options)
|
101
|
+
|
102
|
+
promise = promise.then do |result|
|
103
|
+
http_response = result.response
|
104
|
+
status_code = http_response.status
|
105
|
+
response_content = http_response.body
|
106
|
+
unless status_code == 200
|
107
|
+
error_model = JSON.load(response_content)
|
108
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
109
|
+
end
|
110
|
+
|
111
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
112
|
+
# Deserialize Response
|
113
|
+
if status_code == 200
|
114
|
+
begin
|
115
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
+
result_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::DatabaseAutomaticTuning.mapper()
|
117
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
118
|
+
rescue Exception => e
|
119
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
result
|
124
|
+
end
|
125
|
+
|
126
|
+
promise.execute
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# Update automatic tuning properties for target database.
|
131
|
+
#
|
132
|
+
# @param resource_group_name [String] The name of the resource group that
|
133
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
134
|
+
# Manager API or the portal.
|
135
|
+
# @param server_name [String] The name of the server.
|
136
|
+
# @param database_name [String] The name of the database.
|
137
|
+
# @param parameters [DatabaseAutomaticTuning] The requested automatic tuning
|
138
|
+
# resource state.
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
140
|
+
# will be added to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [DatabaseAutomaticTuning] operation results.
|
143
|
+
#
|
144
|
+
def update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
145
|
+
response = update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
146
|
+
response.body unless response.nil?
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# Update automatic tuning properties for target database.
|
151
|
+
#
|
152
|
+
# @param resource_group_name [String] The name of the resource group that
|
153
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
154
|
+
# Manager API or the portal.
|
155
|
+
# @param server_name [String] The name of the server.
|
156
|
+
# @param database_name [String] The name of the database.
|
157
|
+
# @param parameters [DatabaseAutomaticTuning] The requested automatic tuning
|
158
|
+
# resource state.
|
159
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
160
|
+
# will be added to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
163
|
+
#
|
164
|
+
def update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
165
|
+
update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
# Update automatic tuning properties for target database.
|
170
|
+
#
|
171
|
+
# @param resource_group_name [String] The name of the resource group that
|
172
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
173
|
+
# Manager API or the portal.
|
174
|
+
# @param server_name [String] The name of the server.
|
175
|
+
# @param database_name [String] The name of the database.
|
176
|
+
# @param parameters [DatabaseAutomaticTuning] The requested automatic tuning
|
177
|
+
# resource state.
|
178
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
179
|
+
# to the HTTP request.
|
180
|
+
#
|
181
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
182
|
+
#
|
183
|
+
def update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
184
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
185
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
186
|
+
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
187
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
188
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
189
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
190
|
+
|
191
|
+
|
192
|
+
request_headers = {}
|
193
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
194
|
+
|
195
|
+
# Set Headers
|
196
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
197
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
198
|
+
|
199
|
+
# Serialize Request
|
200
|
+
request_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::DatabaseAutomaticTuning.mapper()
|
201
|
+
request_content = @client.serialize(request_mapper, parameters)
|
202
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
203
|
+
|
204
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current'
|
205
|
+
|
206
|
+
request_url = @base_url || @client.base_url
|
207
|
+
|
208
|
+
options = {
|
209
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
210
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
211
|
+
query_params: {'api-version' => @client.api_version},
|
212
|
+
body: request_content,
|
213
|
+
headers: request_headers.merge(custom_headers || {}),
|
214
|
+
base_url: request_url
|
215
|
+
}
|
216
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
217
|
+
|
218
|
+
promise = promise.then do |result|
|
219
|
+
http_response = result.response
|
220
|
+
status_code = http_response.status
|
221
|
+
response_content = http_response.body
|
222
|
+
unless status_code == 200
|
223
|
+
error_model = JSON.load(response_content)
|
224
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
225
|
+
end
|
226
|
+
|
227
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
228
|
+
# Deserialize Response
|
229
|
+
if status_code == 200
|
230
|
+
begin
|
231
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
232
|
+
result_mapper = Azure::SQL::Mgmt::V2015_05_01_preview::Models::DatabaseAutomaticTuning.mapper()
|
233
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
234
|
+
rescue Exception => e
|
235
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
result
|
240
|
+
end
|
241
|
+
|
242
|
+
promise.execute
|
243
|
+
end
|
244
|
+
|
245
|
+
end
|
246
|
+
end
|