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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76a2cda322f4faaade13eb0de1fcce26cd575847
|
4
|
+
data.tar.gz: b06fb7b8c1e562acec0a68eeefc884babe553a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 423aa46104b66a50b7d02b8c51d8fdca75f4092e5543c4b0883c53fd4e8e543304946fb134b46665c8065bdd0403aebf47dbb20b995552e824681d3b4e175690
|
7
|
+
data.tar.gz: 3e0f235ede4843eed6a4eafe6c27f9eaf742eaf41a227ede5830f7f9d18cfe0cfafa154ce52700acd762c270b38ca6799173fb87f275c6b6f5c7d20596faf12e
|
@@ -20,12 +20,12 @@ require '2014-04-01/generated/azure_mgmt_sql/module_definition'
|
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
22
|
module Azure::SQL::Mgmt::V2014_04_01
|
23
|
+
autoload :ServerAdvisors, '2014-04-01/generated/azure_mgmt_sql/server_advisors.rb'
|
23
24
|
autoload :DatabaseAdvisors, '2014-04-01/generated/azure_mgmt_sql/database_advisors.rb'
|
24
25
|
autoload :BackupLongTermRetentionPolicies, '2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb'
|
25
26
|
autoload :BackupLongTermRetentionVaults, '2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb'
|
26
27
|
autoload :RecoverableDatabases, '2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb'
|
27
28
|
autoload :RestorableDroppedDatabases, '2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb'
|
28
|
-
autoload :RestorePoints, '2014-04-01/generated/azure_mgmt_sql/restore_points.rb'
|
29
29
|
autoload :Capabilities, '2014-04-01/generated/azure_mgmt_sql/capabilities.rb'
|
30
30
|
autoload :Servers, '2014-04-01/generated/azure_mgmt_sql/servers.rb'
|
31
31
|
autoload :ServerConnectionPolicies, '2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb'
|
@@ -43,13 +43,14 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
43
43
|
autoload :Queries, '2014-04-01/generated/azure_mgmt_sql/queries.rb'
|
44
44
|
autoload :QueryStatistics, '2014-04-01/generated/azure_mgmt_sql/query_statistics.rb'
|
45
45
|
autoload :QueryTexts, '2014-04-01/generated/azure_mgmt_sql/query_texts.rb'
|
46
|
+
autoload :RecommendedElasticPools, '2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb'
|
46
47
|
autoload :ReplicationLinks, '2014-04-01/generated/azure_mgmt_sql/replication_links.rb'
|
48
|
+
autoload :RestorePoints, '2014-04-01/generated/azure_mgmt_sql/restore_points.rb'
|
47
49
|
autoload :ServerAzureADAdministrators, '2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb'
|
48
50
|
autoload :ServerCommunicationLinks, '2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb'
|
49
51
|
autoload :ServiceObjectives, '2014-04-01/generated/azure_mgmt_sql/service_objectives.rb'
|
50
52
|
autoload :ElasticPoolActivities, '2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb'
|
51
53
|
autoload :ElasticPoolDatabaseActivities, '2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb'
|
52
|
-
autoload :RecommendedElasticPools, '2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb'
|
53
54
|
autoload :ServiceTierAdvisors, '2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb'
|
54
55
|
autoload :TransparentDataEncryptions, '2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb'
|
55
56
|
autoload :TransparentDataEncryptionActivities, '2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb'
|
@@ -61,91 +62,86 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
61
62
|
autoload :SqlManagementClient, '2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb'
|
62
63
|
|
63
64
|
module Models
|
64
|
-
autoload :
|
65
|
-
autoload :
|
66
|
-
autoload :
|
67
|
-
autoload :ServerAdministratorListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_administrator_list_result.rb'
|
68
|
-
autoload :ServerUsage, '2014-04-01/generated/azure_mgmt_sql/models/server_usage.rb'
|
69
|
-
autoload :ServiceTierAdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
|
70
|
-
autoload :ReplicationLinkListResult, '2014-04-01/generated/azure_mgmt_sql/models/replication_link_list_result.rb'
|
71
|
-
autoload :ElasticPoolDatabaseActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
|
72
|
-
autoload :RecommendedElasticPoolMetric, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb'
|
73
|
-
autoload :ElasticPoolActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
|
74
|
-
autoload :ServerUsageListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_usage_list_result.rb'
|
75
|
-
autoload :RecoverableDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb'
|
76
|
-
autoload :QueryTextListResult, '2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb'
|
77
|
-
autoload :RestorableDroppedDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb'
|
78
|
-
autoload :QueryText, '2014-04-01/generated/azure_mgmt_sql/models/query_text.rb'
|
79
|
-
autoload :RestorePointListResult, '2014-04-01/generated/azure_mgmt_sql/models/restore_point_list_result.rb'
|
80
|
-
autoload :QueryStatisticListResult, '2014-04-01/generated/azure_mgmt_sql/models/query_statistic_list_result.rb'
|
81
|
-
autoload :ServiceObjectiveCapability, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_capability.rb'
|
65
|
+
autoload :MetricValue, '2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb'
|
66
|
+
autoload :ServiceObjectiveListResult, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_list_result.rb'
|
67
|
+
autoload :ServerListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_list_result.rb'
|
82
68
|
autoload :DataMaskingRuleListResult, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb'
|
83
|
-
autoload :
|
69
|
+
autoload :QueryText, '2014-04-01/generated/azure_mgmt_sql/models/query_text.rb'
|
70
|
+
autoload :DatabaseUsageListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_usage_list_result.rb'
|
84
71
|
autoload :TransparentDataEncryptionListResult, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_list_result.rb'
|
85
|
-
autoload :
|
72
|
+
autoload :DatabaseUsage, '2014-04-01/generated/azure_mgmt_sql/models/database_usage.rb'
|
86
73
|
autoload :ExtensionListResult, '2014-04-01/generated/azure_mgmt_sql/models/extension_list_result.rb'
|
87
|
-
autoload :
|
88
|
-
autoload :TopQueriesListResult, '2014-04-01/generated/azure_mgmt_sql/models/top_queries_list_result.rb'
|
89
|
-
autoload :CheckNameAvailabilityRequest, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_request.rb'
|
90
|
-
autoload :TopQueries, '2014-04-01/generated/azure_mgmt_sql/models/top_queries.rb'
|
91
|
-
autoload :TransparentDataEncryptionActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
|
92
|
-
autoload :QueryStatistic, '2014-04-01/generated/azure_mgmt_sql/models/query_statistic.rb'
|
93
|
-
autoload :ServerListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_list_result.rb'
|
94
|
-
autoload :QueryInterval, '2014-04-01/generated/azure_mgmt_sql/models/query_interval.rb'
|
95
|
-
autoload :OperationImpact, '2014-04-01/generated/azure_mgmt_sql/models/operation_impact.rb'
|
96
|
-
autoload :ElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
|
74
|
+
autoload :ServerUsageListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_usage_list_result.rb'
|
97
75
|
autoload :ServerCommunicationLinkListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_communication_link_list_result.rb'
|
98
|
-
autoload :
|
99
|
-
autoload :
|
100
|
-
autoload :AdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/advisor_list_result.rb'
|
101
|
-
autoload :OperationListResult, '2014-04-01/generated/azure_mgmt_sql/models/operation_list_result.rb'
|
102
|
-
autoload :BackupLongTermRetentionVaultListResult, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb'
|
103
|
-
autoload :RecommendedElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
|
104
|
-
autoload :GeoBackupPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb'
|
76
|
+
autoload :ServerUsage, '2014-04-01/generated/azure_mgmt_sql/models/server_usage.rb'
|
77
|
+
autoload :DisasterRecoveryConfigurationListResult, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_list_result.rb'
|
105
78
|
autoload :MaxSizeCapability, '2014-04-01/generated/azure_mgmt_sql/models/max_size_capability.rb'
|
106
|
-
autoload :
|
79
|
+
autoload :ServerAdministratorListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_administrator_list_result.rb'
|
80
|
+
autoload :EditionCapability, '2014-04-01/generated/azure_mgmt_sql/models/edition_capability.rb'
|
81
|
+
autoload :RestorePointListResult, '2014-04-01/generated/azure_mgmt_sql/models/restore_point_list_result.rb'
|
107
82
|
autoload :ElasticPoolPerDatabaseMaxDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb'
|
108
|
-
autoload :
|
83
|
+
autoload :ElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
|
84
|
+
autoload :ElasticPoolEditionCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb'
|
85
|
+
autoload :ReplicationLinkListResult, '2014-04-01/generated/azure_mgmt_sql/models/replication_link_list_result.rb'
|
109
86
|
autoload :LocationCapabilities, '2014-04-01/generated/azure_mgmt_sql/models/location_capabilities.rb'
|
110
|
-
autoload :
|
87
|
+
autoload :FirewallRuleListResult, '2014-04-01/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb'
|
88
|
+
autoload :CheckNameAvailabilityResponse, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_response.rb'
|
89
|
+
autoload :RecommendedElasticPoolListMetricsResult, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb'
|
111
90
|
autoload :SloUsageMetric, '2014-04-01/generated/azure_mgmt_sql/models/slo_usage_metric.rb'
|
91
|
+
autoload :GeoBackupPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb'
|
92
|
+
autoload :TableAuditingPolicyProperties, '2014-04-01/generated/azure_mgmt_sql/models/table_auditing_policy_properties.rb'
|
93
|
+
autoload :ImportExtensionRequest, '2014-04-01/generated/azure_mgmt_sql/models/import_extension_request.rb'
|
94
|
+
autoload :TransparentDataEncryptionActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
|
95
|
+
autoload :RecommendedElasticPoolListResult, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
|
96
|
+
autoload :ElasticPoolDatabaseActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
|
97
|
+
autoload :RecommendedElasticPoolMetric, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb'
|
98
|
+
autoload :ElasticPoolActivityListResult, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
|
112
99
|
autoload :ExportRequest, '2014-04-01/generated/azure_mgmt_sql/models/export_request.rb'
|
113
|
-
autoload :
|
114
|
-
autoload :
|
115
|
-
autoload :
|
100
|
+
autoload :Resource, '2014-04-01/generated/azure_mgmt_sql/models/resource.rb'
|
101
|
+
autoload :QueryTextListResult, '2014-04-01/generated/azure_mgmt_sql/models/query_text_list_result.rb'
|
102
|
+
autoload :BackupLongTermRetentionVaultListResult, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault_list_result.rb'
|
116
103
|
autoload :MetricName, '2014-04-01/generated/azure_mgmt_sql/models/metric_name.rb'
|
117
|
-
autoload :
|
104
|
+
autoload :RestorableDroppedDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb'
|
118
105
|
autoload :Metric, '2014-04-01/generated/azure_mgmt_sql/models/metric.rb'
|
119
|
-
autoload :
|
106
|
+
autoload :ElasticPoolPerDatabaseMinDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb'
|
120
107
|
autoload :MetricListResult, '2014-04-01/generated/azure_mgmt_sql/models/metric_list_result.rb'
|
121
|
-
autoload :
|
108
|
+
autoload :ServerVersionCapability, '2014-04-01/generated/azure_mgmt_sql/models/server_version_capability.rb'
|
122
109
|
autoload :MetricAvailability, '2014-04-01/generated/azure_mgmt_sql/models/metric_availability.rb'
|
123
|
-
autoload :
|
110
|
+
autoload :ServerTableAuditingPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/server_table_auditing_policy_list_result.rb'
|
124
111
|
autoload :MetricDefinition, '2014-04-01/generated/azure_mgmt_sql/models/metric_definition.rb'
|
125
|
-
autoload :
|
112
|
+
autoload :OperationImpact, '2014-04-01/generated/azure_mgmt_sql/models/operation_impact.rb'
|
126
113
|
autoload :MetricDefinitionListResult, '2014-04-01/generated/azure_mgmt_sql/models/metric_definition_list_result.rb'
|
127
|
-
autoload :
|
114
|
+
autoload :DatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_list_result.rb'
|
128
115
|
autoload :OperationDisplay, '2014-04-01/generated/azure_mgmt_sql/models/operation_display.rb'
|
129
|
-
autoload :
|
116
|
+
autoload :BackupLongTermRetentionPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_list_result.rb'
|
130
117
|
autoload :Operation, '2014-04-01/generated/azure_mgmt_sql/models/operation.rb'
|
118
|
+
autoload :ServiceObjectiveCapability, '2014-04-01/generated/azure_mgmt_sql/models/service_objective_capability.rb'
|
119
|
+
autoload :OperationListResult, '2014-04-01/generated/azure_mgmt_sql/models/operation_list_result.rb'
|
120
|
+
autoload :CheckNameAvailabilityRequest, '2014-04-01/generated/azure_mgmt_sql/models/check_name_availability_request.rb'
|
121
|
+
autoload :QueryMetric, '2014-04-01/generated/azure_mgmt_sql/models/query_metric.rb'
|
122
|
+
autoload :ServiceTierAdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
|
123
|
+
autoload :QueryInterval, '2014-04-01/generated/azure_mgmt_sql/models/query_interval.rb'
|
124
|
+
autoload :RecoverableDatabaseListResult, '2014-04-01/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb'
|
125
|
+
autoload :QueryStatistic, '2014-04-01/generated/azure_mgmt_sql/models/query_statistic.rb'
|
126
|
+
autoload :DatabaseTableAuditingPolicyListResult, '2014-04-01/generated/azure_mgmt_sql/models/database_table_auditing_policy_list_result.rb'
|
127
|
+
autoload :TopQueries, '2014-04-01/generated/azure_mgmt_sql/models/top_queries.rb'
|
128
|
+
autoload :ElasticPoolDtuCapability, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb'
|
129
|
+
autoload :TopQueriesListResult, '2014-04-01/generated/azure_mgmt_sql/models/top_queries_list_result.rb'
|
130
|
+
autoload :AdvisorListResult, '2014-04-01/generated/azure_mgmt_sql/models/advisor_list_result.rb'
|
131
|
+
autoload :QueryStatisticListResult, '2014-04-01/generated/azure_mgmt_sql/models/query_statistic_list_result.rb'
|
131
132
|
autoload :ProxyResource, '2014-04-01/generated/azure_mgmt_sql/models/proxy_resource.rb'
|
132
133
|
autoload :Advisor, '2014-04-01/generated/azure_mgmt_sql/models/advisor.rb'
|
134
|
+
autoload :TrackedResource, '2014-04-01/generated/azure_mgmt_sql/models/tracked_resource.rb'
|
133
135
|
autoload :BackupLongTermRetentionPolicy, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb'
|
134
136
|
autoload :BackupLongTermRetentionVault, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb'
|
135
|
-
autoload :TrackedResource, '2014-04-01/generated/azure_mgmt_sql/models/tracked_resource.rb'
|
136
137
|
autoload :RecoverableDatabase, '2014-04-01/generated/azure_mgmt_sql/models/recoverable_database.rb'
|
137
138
|
autoload :RestorableDroppedDatabase, '2014-04-01/generated/azure_mgmt_sql/models/restorable_dropped_database.rb'
|
138
|
-
autoload :RestorePoint, '2014-04-01/generated/azure_mgmt_sql/models/restore_point.rb'
|
139
139
|
autoload :ServerConnectionPolicy, '2014-04-01/generated/azure_mgmt_sql/models/server_connection_policy.rb'
|
140
140
|
autoload :ServiceTierAdvisor, '2014-04-01/generated/azure_mgmt_sql/models/service_tier_advisor.rb'
|
141
141
|
autoload :TransparentDataEncryption, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption.rb'
|
142
142
|
autoload :RecommendedIndex, '2014-04-01/generated/azure_mgmt_sql/models/recommended_index.rb'
|
143
143
|
autoload :Database, '2014-04-01/generated/azure_mgmt_sql/models/database.rb'
|
144
144
|
autoload :DatabaseUpdate, '2014-04-01/generated/azure_mgmt_sql/models/database_update.rb'
|
145
|
-
autoload :TransparentDataEncryptionActivity, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb'
|
146
|
-
autoload :ElasticPoolDatabaseActivity, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb'
|
147
|
-
autoload :ElasticPoolActivity, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_activity.rb'
|
148
|
-
autoload :RecommendedElasticPool, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb'
|
149
145
|
autoload :DatabaseSecurityAlertPolicy, '2014-04-01/generated/azure_mgmt_sql/models/database_security_alert_policy.rb'
|
150
146
|
autoload :DataMaskingPolicy, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_policy.rb'
|
151
147
|
autoload :DataMaskingRule, '2014-04-01/generated/azure_mgmt_sql/models/data_masking_rule.rb'
|
@@ -156,19 +152,23 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
156
152
|
autoload :GeoBackupPolicy, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy.rb'
|
157
153
|
autoload :ImportExportResponse, '2014-04-01/generated/azure_mgmt_sql/models/import_export_response.rb'
|
158
154
|
autoload :ImportRequest, '2014-04-01/generated/azure_mgmt_sql/models/import_request.rb'
|
155
|
+
autoload :RecommendedElasticPool, '2014-04-01/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb'
|
159
156
|
autoload :ReplicationLink, '2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb'
|
157
|
+
autoload :RestorePoint, '2014-04-01/generated/azure_mgmt_sql/models/restore_point.rb'
|
160
158
|
autoload :ServerAzureADAdministrator, '2014-04-01/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb'
|
161
159
|
autoload :ServerCommunicationLink, '2014-04-01/generated/azure_mgmt_sql/models/server_communication_link.rb'
|
162
160
|
autoload :Server, '2014-04-01/generated/azure_mgmt_sql/models/server.rb'
|
163
161
|
autoload :ServerUpdate, '2014-04-01/generated/azure_mgmt_sql/models/server_update.rb'
|
164
162
|
autoload :ServiceObjective, '2014-04-01/generated/azure_mgmt_sql/models/service_objective.rb'
|
163
|
+
autoload :ElasticPoolActivity, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_activity.rb'
|
164
|
+
autoload :ElasticPoolDatabaseActivity, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb'
|
165
|
+
autoload :TransparentDataEncryptionActivity, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb'
|
165
166
|
autoload :DatabaseConnectionPolicy, '2014-04-01/generated/azure_mgmt_sql/models/database_connection_policy.rb'
|
166
167
|
autoload :DatabaseTableAuditingPolicy, '2014-04-01/generated/azure_mgmt_sql/models/database_table_auditing_policy.rb'
|
167
168
|
autoload :ServerTableAuditingPolicy, '2014-04-01/generated/azure_mgmt_sql/models/server_table_auditing_policy.rb'
|
168
169
|
autoload :AdvisorStatus, '2014-04-01/generated/azure_mgmt_sql/models/advisor_status.rb'
|
169
170
|
autoload :AutoExecuteStatus, '2014-04-01/generated/azure_mgmt_sql/models/auto_execute_status.rb'
|
170
171
|
autoload :BackupLongTermRetentionPolicyState, '2014-04-01/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb'
|
171
|
-
autoload :RestorePointType, '2014-04-01/generated/azure_mgmt_sql/models/restore_point_type.rb'
|
172
172
|
autoload :CapabilityStatus, '2014-04-01/generated/azure_mgmt_sql/models/capability_status.rb'
|
173
173
|
autoload :MaxSizeUnits, '2014-04-01/generated/azure_mgmt_sql/models/max_size_units.rb'
|
174
174
|
autoload :PerformanceLevelUnit, '2014-04-01/generated/azure_mgmt_sql/models/performance_level_unit.rb'
|
@@ -183,8 +183,6 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
183
183
|
autoload :RecommendedIndexType, '2014-04-01/generated/azure_mgmt_sql/models/recommended_index_type.rb'
|
184
184
|
autoload :ReadScale, '2014-04-01/generated/azure_mgmt_sql/models/read_scale.rb'
|
185
185
|
autoload :SampleName, '2014-04-01/generated/azure_mgmt_sql/models/sample_name.rb'
|
186
|
-
autoload :TransparentDataEncryptionActivityStatus, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_status.rb'
|
187
|
-
autoload :ElasticPoolEdition, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition.rb'
|
188
186
|
autoload :SecurityAlertPolicyState, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_state.rb'
|
189
187
|
autoload :SecurityAlertPolicyEmailAccountAdmins, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_email_account_admins.rb'
|
190
188
|
autoload :SecurityAlertPolicyUseServerDefault, '2014-04-01/generated/azure_mgmt_sql/models/security_alert_policy_use_server_default.rb'
|
@@ -196,6 +194,7 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
196
194
|
autoload :DisasterRecoveryConfigurationFailoverPolicy, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_failover_policy.rb'
|
197
195
|
autoload :DisasterRecoveryConfigurationRole, '2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration_role.rb'
|
198
196
|
autoload :ElasticPoolState, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_state.rb'
|
197
|
+
autoload :ElasticPoolEdition, '2014-04-01/generated/azure_mgmt_sql/models/elastic_pool_edition.rb'
|
199
198
|
autoload :GeoBackupPolicyState, '2014-04-01/generated/azure_mgmt_sql/models/geo_backup_policy_state.rb'
|
200
199
|
autoload :StorageKeyType, '2014-04-01/generated/azure_mgmt_sql/models/storage_key_type.rb'
|
201
200
|
autoload :AuthenticationType, '2014-04-01/generated/azure_mgmt_sql/models/authentication_type.rb'
|
@@ -208,7 +207,9 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
208
207
|
autoload :QueryMetricUnit, '2014-04-01/generated/azure_mgmt_sql/models/query_metric_unit.rb'
|
209
208
|
autoload :ReplicationRole, '2014-04-01/generated/azure_mgmt_sql/models/replication_role.rb'
|
210
209
|
autoload :ReplicationState, '2014-04-01/generated/azure_mgmt_sql/models/replication_state.rb'
|
210
|
+
autoload :RestorePointType, '2014-04-01/generated/azure_mgmt_sql/models/restore_point_type.rb'
|
211
211
|
autoload :ServerVersion, '2014-04-01/generated/azure_mgmt_sql/models/server_version.rb'
|
212
212
|
autoload :ServerState, '2014-04-01/generated/azure_mgmt_sql/models/server_state.rb'
|
213
|
+
autoload :TransparentDataEncryptionActivityStatus, '2014-04-01/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_status.rb'
|
213
214
|
end
|
214
215
|
end
|
@@ -258,6 +258,14 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
258
258
|
name: 'String'
|
259
259
|
}
|
260
260
|
},
|
261
|
+
location: {
|
262
|
+
client_side_validation: true,
|
263
|
+
required: true,
|
264
|
+
serialized_name: 'location',
|
265
|
+
type: {
|
266
|
+
name: 'String'
|
267
|
+
}
|
268
|
+
},
|
261
269
|
tags: {
|
262
270
|
client_side_validation: true,
|
263
271
|
required: false,
|
@@ -274,14 +282,6 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
274
282
|
}
|
275
283
|
}
|
276
284
|
},
|
277
|
-
location: {
|
278
|
-
client_side_validation: true,
|
279
|
-
required: true,
|
280
|
-
serialized_name: 'location',
|
281
|
-
type: {
|
282
|
-
name: 'String'
|
283
|
-
}
|
284
|
-
},
|
285
285
|
kind: {
|
286
286
|
client_side_validation: true,
|
287
287
|
required: false,
|
@@ -87,6 +87,14 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
87
87
|
name: 'String'
|
88
88
|
}
|
89
89
|
},
|
90
|
+
location: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: true,
|
93
|
+
serialized_name: 'location',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
90
98
|
tags: {
|
91
99
|
client_side_validation: true,
|
92
100
|
required: false,
|
@@ -103,14 +111,6 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
103
111
|
}
|
104
112
|
}
|
105
113
|
},
|
106
|
-
location: {
|
107
|
-
client_side_validation: true,
|
108
|
-
required: true,
|
109
|
-
serialized_name: 'location',
|
110
|
-
type: {
|
111
|
-
name: 'String'
|
112
|
-
}
|
113
|
-
},
|
114
114
|
creation_date: {
|
115
115
|
client_side_validation: true,
|
116
116
|
required: false,
|
@@ -88,6 +88,14 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
88
88
|
name: 'String'
|
89
89
|
}
|
90
90
|
},
|
91
|
+
location: {
|
92
|
+
client_side_validation: true,
|
93
|
+
required: true,
|
94
|
+
serialized_name: 'location',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
},
|
91
99
|
tags: {
|
92
100
|
client_side_validation: true,
|
93
101
|
required: false,
|
@@ -104,14 +112,6 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
104
112
|
}
|
105
113
|
}
|
106
114
|
},
|
107
|
-
location: {
|
108
|
-
client_side_validation: true,
|
109
|
-
required: true,
|
110
|
-
serialized_name: 'location',
|
111
|
-
type: {
|
112
|
-
name: 'String'
|
113
|
-
}
|
114
|
-
},
|
115
115
|
kind: {
|
116
116
|
client_side_validation: true,
|
117
117
|
required: false,
|
@@ -12,12 +12,12 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [Hash{String => String}] Resource tags.
|
16
|
-
attr_accessor :tags
|
17
|
-
|
18
15
|
# @return [String] Resource location.
|
19
16
|
attr_accessor :location
|
20
17
|
|
18
|
+
# @return [Hash{String => String}] Resource tags.
|
19
|
+
attr_accessor :tags
|
20
|
+
|
21
21
|
|
22
22
|
#
|
23
23
|
# Mapper for TrackedResource class as Ruby Hash.
|
@@ -59,6 +59,14 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
59
59
|
name: 'String'
|
60
60
|
}
|
61
61
|
},
|
62
|
+
location: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: true,
|
65
|
+
serialized_name: 'location',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
62
70
|
tags: {
|
63
71
|
client_side_validation: true,
|
64
72
|
required: false,
|
@@ -74,14 +82,6 @@ module Azure::SQL::Mgmt::V2014_04_01
|
|
74
82
|
}
|
75
83
|
}
|
76
84
|
}
|
77
|
-
},
|
78
|
-
location: {
|
79
|
-
client_side_validation: true,
|
80
|
-
required: true,
|
81
|
-
serialized_name: 'location',
|
82
|
-
type: {
|
83
|
-
name: 'String'
|
84
|
-
}
|
85
85
|
}
|
86
86
|
}
|
87
87
|
}
|
@@ -0,0 +1,454 @@
|
|
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::V2014_04_01
|
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 ServerAdvisors
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the ServerAdvisors 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 list of server advisors.
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
+
# will be added to the HTTP request.
|
36
|
+
#
|
37
|
+
# @return [AdvisorListResult] operation results.
|
38
|
+
#
|
39
|
+
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
40
|
+
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
41
|
+
response.body unless response.nil?
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Gets a list of server advisors.
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] The name of the resource group that
|
48
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
49
|
+
# Manager API or the portal.
|
50
|
+
# @param server_name [String] The name of the server.
|
51
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
52
|
+
# will be added to the HTTP request.
|
53
|
+
#
|
54
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
|
+
#
|
56
|
+
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
57
|
+
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
58
|
+
end
|
59
|
+
|
60
|
+
#
|
61
|
+
# Gets a list of server advisors.
|
62
|
+
#
|
63
|
+
# @param resource_group_name [String] The name of the resource group that
|
64
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
65
|
+
# Manager API or the portal.
|
66
|
+
# @param server_name [String] The name of the server.
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
73
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
75
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
76
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
|
+
|
78
|
+
|
79
|
+
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
+
|
82
|
+
# Set Headers
|
83
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors'
|
86
|
+
|
87
|
+
request_url = @base_url || @client.base_url
|
88
|
+
|
89
|
+
options = {
|
90
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
92
|
+
query_params: {'api-version' => @client.api_version},
|
93
|
+
headers: request_headers.merge(custom_headers || {}),
|
94
|
+
base_url: request_url
|
95
|
+
}
|
96
|
+
promise = @client.make_request_async(:get, path_template, options)
|
97
|
+
|
98
|
+
promise = promise.then do |result|
|
99
|
+
http_response = result.response
|
100
|
+
status_code = http_response.status
|
101
|
+
response_content = http_response.body
|
102
|
+
unless status_code == 200
|
103
|
+
error_model = JSON.load(response_content)
|
104
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
105
|
+
end
|
106
|
+
|
107
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
# Deserialize Response
|
109
|
+
if status_code == 200
|
110
|
+
begin
|
111
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
112
|
+
result_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::AdvisorListResult.mapper()
|
113
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
114
|
+
rescue Exception => e
|
115
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
result
|
120
|
+
end
|
121
|
+
|
122
|
+
promise.execute
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Gets a server advisor.
|
127
|
+
#
|
128
|
+
# @param resource_group_name [String] The name of the resource group that
|
129
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
130
|
+
# Manager API or the portal.
|
131
|
+
# @param server_name [String] The name of the server.
|
132
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [Advisor] operation results.
|
137
|
+
#
|
138
|
+
def get(resource_group_name, server_name, advisor_name, custom_headers:nil)
|
139
|
+
response = get_async(resource_group_name, server_name, advisor_name, custom_headers:custom_headers).value!
|
140
|
+
response.body unless response.nil?
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# Gets a server advisor.
|
145
|
+
#
|
146
|
+
# @param resource_group_name [String] The name of the resource group that
|
147
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
148
|
+
# Manager API or the portal.
|
149
|
+
# @param server_name [String] The name of the server.
|
150
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
151
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
|
+
# will be added to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
|
+
#
|
156
|
+
def get_with_http_info(resource_group_name, server_name, advisor_name, custom_headers:nil)
|
157
|
+
get_async(resource_group_name, server_name, advisor_name, custom_headers:custom_headers).value!
|
158
|
+
end
|
159
|
+
|
160
|
+
#
|
161
|
+
# Gets a server advisor.
|
162
|
+
#
|
163
|
+
# @param resource_group_name [String] The name of the resource group that
|
164
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
165
|
+
# Manager API or the portal.
|
166
|
+
# @param server_name [String] The name of the server.
|
167
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
168
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
169
|
+
# to the HTTP request.
|
170
|
+
#
|
171
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
172
|
+
#
|
173
|
+
def get_async(resource_group_name, server_name, advisor_name, custom_headers:nil)
|
174
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
175
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
176
|
+
fail ArgumentError, 'advisor_name is nil' if advisor_name.nil?
|
177
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
178
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
179
|
+
|
180
|
+
|
181
|
+
request_headers = {}
|
182
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
183
|
+
|
184
|
+
# Set Headers
|
185
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
186
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
187
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}'
|
188
|
+
|
189
|
+
request_url = @base_url || @client.base_url
|
190
|
+
|
191
|
+
options = {
|
192
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
193
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'advisorName' => advisor_name,'subscriptionId' => @client.subscription_id},
|
194
|
+
query_params: {'api-version' => @client.api_version},
|
195
|
+
headers: request_headers.merge(custom_headers || {}),
|
196
|
+
base_url: request_url
|
197
|
+
}
|
198
|
+
promise = @client.make_request_async(:get, path_template, options)
|
199
|
+
|
200
|
+
promise = promise.then do |result|
|
201
|
+
http_response = result.response
|
202
|
+
status_code = http_response.status
|
203
|
+
response_content = http_response.body
|
204
|
+
unless status_code == 200
|
205
|
+
error_model = JSON.load(response_content)
|
206
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
207
|
+
end
|
208
|
+
|
209
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
210
|
+
# Deserialize Response
|
211
|
+
if status_code == 200
|
212
|
+
begin
|
213
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
214
|
+
result_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::Advisor.mapper()
|
215
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
216
|
+
rescue Exception => e
|
217
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
result
|
222
|
+
end
|
223
|
+
|
224
|
+
promise.execute
|
225
|
+
end
|
226
|
+
|
227
|
+
#
|
228
|
+
# Updates a server advisor.
|
229
|
+
#
|
230
|
+
# @param resource_group_name [String] The name of the resource group that
|
231
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
232
|
+
# Manager API or the portal.
|
233
|
+
# @param server_name [String] The name of the server.
|
234
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
235
|
+
# @param parameters [Advisor] The requested advisor resource state.
|
236
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
237
|
+
# will be added to the HTTP request.
|
238
|
+
#
|
239
|
+
# @return [Advisor] operation results.
|
240
|
+
#
|
241
|
+
def update(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
242
|
+
response = update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
243
|
+
response.body unless response.nil?
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
# Updates a server advisor.
|
248
|
+
#
|
249
|
+
# @param resource_group_name [String] The name of the resource group that
|
250
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
251
|
+
# Manager API or the portal.
|
252
|
+
# @param server_name [String] The name of the server.
|
253
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
254
|
+
# @param parameters [Advisor] The requested advisor resource state.
|
255
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
256
|
+
# will be added to the HTTP request.
|
257
|
+
#
|
258
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
259
|
+
#
|
260
|
+
def update_with_http_info(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
261
|
+
update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
# Updates a server advisor.
|
266
|
+
#
|
267
|
+
# @param resource_group_name [String] The name of the resource group that
|
268
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
269
|
+
# Manager API or the portal.
|
270
|
+
# @param server_name [String] The name of the server.
|
271
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
272
|
+
# @param parameters [Advisor] The requested advisor resource state.
|
273
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
274
|
+
# to the HTTP request.
|
275
|
+
#
|
276
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
277
|
+
#
|
278
|
+
def update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
279
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
280
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
281
|
+
fail ArgumentError, 'advisor_name is nil' if advisor_name.nil?
|
282
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
283
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
284
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
285
|
+
|
286
|
+
|
287
|
+
request_headers = {}
|
288
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
289
|
+
|
290
|
+
# Set Headers
|
291
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
292
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
293
|
+
|
294
|
+
# Serialize Request
|
295
|
+
request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::Advisor.mapper()
|
296
|
+
request_content = @client.serialize(request_mapper, parameters)
|
297
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
298
|
+
|
299
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}'
|
300
|
+
|
301
|
+
request_url = @base_url || @client.base_url
|
302
|
+
|
303
|
+
options = {
|
304
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
305
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'advisorName' => advisor_name,'subscriptionId' => @client.subscription_id},
|
306
|
+
query_params: {'api-version' => @client.api_version},
|
307
|
+
body: request_content,
|
308
|
+
headers: request_headers.merge(custom_headers || {}),
|
309
|
+
base_url: request_url
|
310
|
+
}
|
311
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
312
|
+
|
313
|
+
promise = promise.then do |result|
|
314
|
+
http_response = result.response
|
315
|
+
status_code = http_response.status
|
316
|
+
response_content = http_response.body
|
317
|
+
unless status_code == 200
|
318
|
+
error_model = JSON.load(response_content)
|
319
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
320
|
+
end
|
321
|
+
|
322
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
323
|
+
# Deserialize Response
|
324
|
+
if status_code == 200
|
325
|
+
begin
|
326
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
327
|
+
result_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::Advisor.mapper()
|
328
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
329
|
+
rescue Exception => e
|
330
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
334
|
+
result
|
335
|
+
end
|
336
|
+
|
337
|
+
promise.execute
|
338
|
+
end
|
339
|
+
|
340
|
+
#
|
341
|
+
# Creates or updates a server advisor.
|
342
|
+
#
|
343
|
+
# @param resource_group_name [String] The name of the resource group that
|
344
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
345
|
+
# Manager API or the portal.
|
346
|
+
# @param server_name [String] The name of the server.
|
347
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
348
|
+
# @param parameters [Advisor] The requested advisor resource state.
|
349
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
350
|
+
# will be added to the HTTP request.
|
351
|
+
#
|
352
|
+
# @return [Advisor] operation results.
|
353
|
+
#
|
354
|
+
def create_or_update(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
355
|
+
response = create_or_update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
356
|
+
response.body unless response.nil?
|
357
|
+
end
|
358
|
+
|
359
|
+
#
|
360
|
+
# Creates or updates a server advisor.
|
361
|
+
#
|
362
|
+
# @param resource_group_name [String] The name of the resource group that
|
363
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
364
|
+
# Manager API or the portal.
|
365
|
+
# @param server_name [String] The name of the server.
|
366
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
367
|
+
# @param parameters [Advisor] The requested advisor resource state.
|
368
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
369
|
+
# will be added to the HTTP request.
|
370
|
+
#
|
371
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
372
|
+
#
|
373
|
+
def create_or_update_with_http_info(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
374
|
+
create_or_update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value!
|
375
|
+
end
|
376
|
+
|
377
|
+
#
|
378
|
+
# Creates or updates a server advisor.
|
379
|
+
#
|
380
|
+
# @param resource_group_name [String] The name of the resource group that
|
381
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
382
|
+
# Manager API or the portal.
|
383
|
+
# @param server_name [String] The name of the server.
|
384
|
+
# @param advisor_name [String] The name of the Server Advisor.
|
385
|
+
# @param parameters [Advisor] The requested advisor resource state.
|
386
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
387
|
+
# to the HTTP request.
|
388
|
+
#
|
389
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
390
|
+
#
|
391
|
+
def create_or_update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil)
|
392
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
393
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
394
|
+
fail ArgumentError, 'advisor_name is nil' if advisor_name.nil?
|
395
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
396
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
397
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
398
|
+
|
399
|
+
|
400
|
+
request_headers = {}
|
401
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
402
|
+
|
403
|
+
# Set Headers
|
404
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
405
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
406
|
+
|
407
|
+
# Serialize Request
|
408
|
+
request_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::Advisor.mapper()
|
409
|
+
request_content = @client.serialize(request_mapper, parameters)
|
410
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
411
|
+
|
412
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}'
|
413
|
+
|
414
|
+
request_url = @base_url || @client.base_url
|
415
|
+
|
416
|
+
options = {
|
417
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
418
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'advisorName' => advisor_name,'subscriptionId' => @client.subscription_id},
|
419
|
+
query_params: {'api-version' => @client.api_version},
|
420
|
+
body: request_content,
|
421
|
+
headers: request_headers.merge(custom_headers || {}),
|
422
|
+
base_url: request_url
|
423
|
+
}
|
424
|
+
promise = @client.make_request_async(:put, path_template, options)
|
425
|
+
|
426
|
+
promise = promise.then do |result|
|
427
|
+
http_response = result.response
|
428
|
+
status_code = http_response.status
|
429
|
+
response_content = http_response.body
|
430
|
+
unless status_code == 200
|
431
|
+
error_model = JSON.load(response_content)
|
432
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
433
|
+
end
|
434
|
+
|
435
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
436
|
+
# Deserialize Response
|
437
|
+
if status_code == 200
|
438
|
+
begin
|
439
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
440
|
+
result_mapper = Azure::SQL::Mgmt::V2014_04_01::Models::Advisor.mapper()
|
441
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
442
|
+
rescue Exception => e
|
443
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
447
|
+
result
|
448
|
+
end
|
449
|
+
|
450
|
+
promise.execute
|
451
|
+
end
|
452
|
+
|
453
|
+
end
|
454
|
+
end
|