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
@@ -6,46 +6,51 @@
|
|
6
6
|
module Azure::SQL::Mgmt::V2017_03_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# The resource model definition representing SKU
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class Sku
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] The name of the SKU
|
16
|
-
# code
|
15
|
+
# @return [String] The name of the SKU. Ex - P3. It is typically a
|
16
|
+
# letter+number code
|
17
17
|
attr_accessor :name
|
18
18
|
|
19
|
-
# @return [String]
|
19
|
+
# @return [String] This field is required to be implemented by the
|
20
|
+
# Resource Provider if the service has more than one tier, but is not
|
21
|
+
# required on a PUT.
|
20
22
|
attr_accessor :tier
|
21
23
|
|
22
|
-
# @return [String]
|
24
|
+
# @return [String] The SKU size. When the name field is the combination
|
25
|
+
# of tier and some other value, this would be the standalone code.
|
23
26
|
attr_accessor :size
|
24
27
|
|
25
28
|
# @return [String] If the service has different generations of hardware,
|
26
29
|
# for the same SKU, then that can be captured here.
|
27
30
|
attr_accessor :family
|
28
31
|
|
29
|
-
# @return [Integer]
|
32
|
+
# @return [Integer] If the SKU supports scale out/in then the capacity
|
33
|
+
# integer should be included. If scale out/in is not possible for the
|
34
|
+
# resource this may be omitted.
|
30
35
|
attr_accessor :capacity
|
31
36
|
|
32
37
|
|
33
38
|
#
|
34
|
-
# Mapper for
|
39
|
+
# Mapper for Sku class as Ruby Hash.
|
35
40
|
# This will be used for serialization/deserialization.
|
36
41
|
#
|
37
42
|
def self.mapper()
|
38
43
|
{
|
39
44
|
client_side_validation: true,
|
40
45
|
required: false,
|
41
|
-
serialized_name: '
|
46
|
+
serialized_name: 'Sku',
|
42
47
|
type: {
|
43
48
|
name: 'Composite',
|
44
|
-
class_name: '
|
49
|
+
class_name: 'Sku',
|
45
50
|
model_properties: {
|
46
51
|
name: {
|
47
52
|
client_side_validation: true,
|
48
|
-
required:
|
53
|
+
required: true,
|
49
54
|
serialized_name: 'name',
|
50
55
|
type: {
|
51
56
|
name: 'String'
|
@@ -0,0 +1,16 @@
|
|
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::V2017_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for VulnerabilityAssessmentPolicyBaselineName
|
10
|
+
#
|
11
|
+
module VulnerabilityAssessmentPolicyBaselineName
|
12
|
+
Master = "master"
|
13
|
+
Default = "default"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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::V2017_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Properties of a Vulnerability Assessment recurring scans.
|
10
|
+
#
|
11
|
+
class VulnerabilityAssessmentRecurringScansProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] Recurring scans state.
|
16
|
+
attr_accessor :is_enabled
|
17
|
+
|
18
|
+
# @return [Boolean] Specifies that the schedule scan notification will be
|
19
|
+
# is sent to the subscription administrators. Default value: true .
|
20
|
+
attr_accessor :email_subscription_admins
|
21
|
+
|
22
|
+
# @return [Array<String>] Specifies an array of e-mail addresses to which
|
23
|
+
# the scan notification is sent.
|
24
|
+
attr_accessor :emails
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for VulnerabilityAssessmentRecurringScansProperties class as
|
29
|
+
# Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'VulnerabilityAssessmentRecurringScansProperties',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'VulnerabilityAssessmentRecurringScansProperties',
|
40
|
+
model_properties: {
|
41
|
+
is_enabled: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'isEnabled',
|
45
|
+
type: {
|
46
|
+
name: 'Boolean'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
email_subscription_admins: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'emailSubscriptionAdmins',
|
53
|
+
default_value: true,
|
54
|
+
type: {
|
55
|
+
name: 'Boolean'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
emails: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'emails',
|
62
|
+
type: {
|
63
|
+
name: 'Sequence',
|
64
|
+
element: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'StringElementType',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -5,16 +5,16 @@
|
|
5
5
|
|
6
6
|
module Azure::SQL::Mgmt::V2017_03_01_preview
|
7
7
|
#
|
8
|
-
# The Azure SQL Database management API provides a RESTful set of web
|
9
|
-
# that interact with Azure SQL Database services to manage your
|
10
|
-
# The API enables
|
11
|
-
#
|
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
12
|
#
|
13
|
-
class
|
13
|
+
class RestorePoints
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
16
|
#
|
17
|
-
# Creates and initializes a new instance of the
|
17
|
+
# Creates and initializes a new instance of the RestorePoints class.
|
18
18
|
# @param client service class for accessing basic functionality.
|
19
19
|
#
|
20
20
|
def initialize(client)
|
@@ -25,7 +25,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
25
25
|
attr_reader :client
|
26
26
|
|
27
27
|
#
|
28
|
-
# Gets a
|
28
|
+
# Gets a list of database restore points.
|
29
29
|
#
|
30
30
|
# @param resource_group_name [String] The name of the resource group that
|
31
31
|
# contains the resource. You can obtain this value from the Azure Resource
|
@@ -35,15 +35,15 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
35
35
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
36
|
# will be added to the HTTP request.
|
37
37
|
#
|
38
|
-
# @return [
|
38
|
+
# @return [RestorePointListResult] operation results.
|
39
39
|
#
|
40
40
|
def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
|
41
|
-
|
42
|
-
|
41
|
+
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
45
45
|
#
|
46
|
-
# Gets a
|
46
|
+
# Gets a list of database restore points.
|
47
47
|
#
|
48
48
|
# @param resource_group_name [String] The name of the resource group that
|
49
49
|
# contains the resource. You can obtain this value from the Azure Resource
|
@@ -60,7 +60,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
60
60
|
end
|
61
61
|
|
62
62
|
#
|
63
|
-
# Gets a
|
63
|
+
# Gets a list of database restore points.
|
64
64
|
#
|
65
65
|
# @param resource_group_name [String] The name of the resource group that
|
66
66
|
# contains the resource. You can obtain this value from the Azure Resource
|
@@ -113,7 +113,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
113
113
|
if status_code == 200
|
114
114
|
begin
|
115
115
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
-
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::
|
116
|
+
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult.mapper()
|
117
117
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
118
118
|
rescue Exception => e
|
119
119
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -139,7 +139,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
139
139
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
140
140
|
# will be added to the HTTP request.
|
141
141
|
#
|
142
|
-
# @return [
|
142
|
+
# @return [RestorePoint] operation results.
|
143
143
|
#
|
144
144
|
def create(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
145
145
|
response = create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
@@ -167,7 +167,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
167
167
|
promise = promise.then do |response|
|
168
168
|
# Defining deserialization method.
|
169
169
|
deserialize_method = lambda do |parsed_response|
|
170
|
-
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::
|
170
|
+
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
|
171
171
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
172
172
|
end
|
173
173
|
|
@@ -190,7 +190,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
190
190
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
191
191
|
# will be added to the HTTP request.
|
192
192
|
#
|
193
|
-
# @return [
|
193
|
+
# @return [RestorePoint] operation results.
|
194
194
|
#
|
195
195
|
def get(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
|
196
196
|
response = get_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:custom_headers).value!
|
@@ -271,7 +271,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
271
271
|
if status_code == 200
|
272
272
|
begin
|
273
273
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
274
|
-
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::
|
274
|
+
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
|
275
275
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
276
276
|
rescue Exception => e
|
277
277
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -285,64 +285,60 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
285
285
|
end
|
286
286
|
|
287
287
|
#
|
288
|
-
#
|
288
|
+
# Deletes a restore point.
|
289
289
|
#
|
290
290
|
# @param resource_group_name [String] The name of the resource group that
|
291
291
|
# contains the resource. You can obtain this value from the Azure Resource
|
292
292
|
# Manager API or the portal.
|
293
293
|
# @param server_name [String] The name of the server.
|
294
294
|
# @param database_name [String] The name of the database.
|
295
|
-
# @param
|
296
|
-
# creating the restore point of this database.
|
295
|
+
# @param restore_point_name [String] The name of the restore point.
|
297
296
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
298
297
|
# will be added to the HTTP request.
|
299
298
|
#
|
300
|
-
# @return [DatabaseRestorePoint] operation results.
|
301
299
|
#
|
302
|
-
def
|
303
|
-
response =
|
304
|
-
|
300
|
+
def delete(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
|
301
|
+
response = delete_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:custom_headers).value!
|
302
|
+
nil
|
305
303
|
end
|
306
304
|
|
307
305
|
#
|
308
|
-
#
|
306
|
+
# Deletes a restore point.
|
309
307
|
#
|
310
308
|
# @param resource_group_name [String] The name of the resource group that
|
311
309
|
# contains the resource. You can obtain this value from the Azure Resource
|
312
310
|
# Manager API or the portal.
|
313
311
|
# @param server_name [String] The name of the server.
|
314
312
|
# @param database_name [String] The name of the database.
|
315
|
-
# @param
|
316
|
-
# creating the restore point of this database.
|
313
|
+
# @param restore_point_name [String] The name of the restore point.
|
317
314
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
318
315
|
# will be added to the HTTP request.
|
319
316
|
#
|
320
317
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
321
318
|
#
|
322
|
-
def
|
323
|
-
|
319
|
+
def delete_with_http_info(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
|
320
|
+
delete_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:custom_headers).value!
|
324
321
|
end
|
325
322
|
|
326
323
|
#
|
327
|
-
#
|
324
|
+
# Deletes a restore point.
|
328
325
|
#
|
329
326
|
# @param resource_group_name [String] The name of the resource group that
|
330
327
|
# contains the resource. You can obtain this value from the Azure Resource
|
331
328
|
# Manager API or the portal.
|
332
329
|
# @param server_name [String] The name of the server.
|
333
330
|
# @param database_name [String] The name of the database.
|
334
|
-
# @param
|
335
|
-
# creating the restore point of this database.
|
331
|
+
# @param restore_point_name [String] The name of the restore point.
|
336
332
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
337
333
|
# to the HTTP request.
|
338
334
|
#
|
339
335
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
340
336
|
#
|
341
|
-
def
|
337
|
+
def delete_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
|
342
338
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
343
339
|
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
344
340
|
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
345
|
-
fail ArgumentError, '
|
341
|
+
fail ArgumentError, 'restore_point_name is nil' if restore_point_name.nil?
|
346
342
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
347
343
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
348
344
|
|
@@ -353,56 +349,29 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
353
349
|
# Set Headers
|
354
350
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
355
351
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
356
|
-
|
357
|
-
# Serialize Request
|
358
|
-
request_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition.mapper()
|
359
|
-
request_content = @client.serialize(request_mapper, parameters)
|
360
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
361
|
-
|
362
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints'
|
352
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}'
|
363
353
|
|
364
354
|
request_url = @base_url || @client.base_url
|
365
355
|
|
366
356
|
options = {
|
367
357
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
368
|
-
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
358
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'restorePointName' => restore_point_name,'subscriptionId' => @client.subscription_id},
|
369
359
|
query_params: {'api-version' => @client.api_version},
|
370
|
-
body: request_content,
|
371
360
|
headers: request_headers.merge(custom_headers || {}),
|
372
361
|
base_url: request_url
|
373
362
|
}
|
374
|
-
promise = @client.make_request_async(:
|
363
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
375
364
|
|
376
365
|
promise = promise.then do |result|
|
377
366
|
http_response = result.response
|
378
367
|
status_code = http_response.status
|
379
368
|
response_content = http_response.body
|
380
|
-
unless status_code == 200
|
369
|
+
unless status_code == 200
|
381
370
|
error_model = JSON.load(response_content)
|
382
371
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
383
372
|
end
|
384
373
|
|
385
374
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
386
|
-
# Deserialize Response
|
387
|
-
if status_code == 200
|
388
|
-
begin
|
389
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
390
|
-
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePoint.mapper()
|
391
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
392
|
-
rescue Exception => e
|
393
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
394
|
-
end
|
395
|
-
end
|
396
|
-
# Deserialize Response
|
397
|
-
if status_code == 201
|
398
|
-
begin
|
399
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
400
|
-
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePoint.mapper()
|
401
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
402
|
-
rescue Exception => e
|
403
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
404
|
-
end
|
405
|
-
end
|
406
375
|
|
407
376
|
result
|
408
377
|
end
|
@@ -411,46 +380,66 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
411
380
|
end
|
412
381
|
|
413
382
|
#
|
414
|
-
#
|
383
|
+
# Creates a restore point for a data warehouse.
|
415
384
|
#
|
416
|
-
# @param
|
417
|
-
#
|
385
|
+
# @param resource_group_name [String] The name of the resource group that
|
386
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
387
|
+
# Manager API or the portal.
|
388
|
+
# @param server_name [String] The name of the server.
|
389
|
+
# @param database_name [String] The name of the database.
|
390
|
+
# @param parameters [CreateDatabaseRestorePointDefinition] The definition for
|
391
|
+
# creating the restore point of this database.
|
418
392
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
419
393
|
# will be added to the HTTP request.
|
420
394
|
#
|
421
|
-
# @return [
|
395
|
+
# @return [RestorePoint] operation results.
|
422
396
|
#
|
423
|
-
def
|
424
|
-
response =
|
397
|
+
def begin_create(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
398
|
+
response = begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
425
399
|
response.body unless response.nil?
|
426
400
|
end
|
427
401
|
|
428
402
|
#
|
429
|
-
#
|
403
|
+
# Creates a restore point for a data warehouse.
|
430
404
|
#
|
431
|
-
# @param
|
432
|
-
#
|
405
|
+
# @param resource_group_name [String] The name of the resource group that
|
406
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
407
|
+
# Manager API or the portal.
|
408
|
+
# @param server_name [String] The name of the server.
|
409
|
+
# @param database_name [String] The name of the database.
|
410
|
+
# @param parameters [CreateDatabaseRestorePointDefinition] The definition for
|
411
|
+
# creating the restore point of this database.
|
433
412
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
434
413
|
# will be added to the HTTP request.
|
435
414
|
#
|
436
415
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
437
416
|
#
|
438
|
-
def
|
439
|
-
|
417
|
+
def begin_create_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
418
|
+
begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
440
419
|
end
|
441
420
|
|
442
421
|
#
|
443
|
-
#
|
422
|
+
# Creates a restore point for a data warehouse.
|
444
423
|
#
|
445
|
-
# @param
|
446
|
-
#
|
424
|
+
# @param resource_group_name [String] The name of the resource group that
|
425
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
426
|
+
# Manager API or the portal.
|
427
|
+
# @param server_name [String] The name of the server.
|
428
|
+
# @param database_name [String] The name of the database.
|
429
|
+
# @param parameters [CreateDatabaseRestorePointDefinition] The definition for
|
430
|
+
# creating the restore point of this database.
|
447
431
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
448
432
|
# to the HTTP request.
|
449
433
|
#
|
450
434
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
451
435
|
#
|
452
|
-
def
|
453
|
-
fail ArgumentError, '
|
436
|
+
def begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
437
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
438
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
439
|
+
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
440
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
441
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
442
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
454
443
|
|
455
444
|
|
456
445
|
request_headers = {}
|
@@ -459,23 +448,31 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
459
448
|
# Set Headers
|
460
449
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
461
450
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
462
|
-
|
451
|
+
|
452
|
+
# Serialize Request
|
453
|
+
request_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition.mapper()
|
454
|
+
request_content = @client.serialize(request_mapper, parameters)
|
455
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
456
|
+
|
457
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints'
|
463
458
|
|
464
459
|
request_url = @base_url || @client.base_url
|
465
460
|
|
466
461
|
options = {
|
467
462
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
468
|
-
|
463
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
464
|
+
query_params: {'api-version' => @client.api_version},
|
465
|
+
body: request_content,
|
469
466
|
headers: request_headers.merge(custom_headers || {}),
|
470
467
|
base_url: request_url
|
471
468
|
}
|
472
|
-
promise = @client.make_request_async(:
|
469
|
+
promise = @client.make_request_async(:post, path_template, options)
|
473
470
|
|
474
471
|
promise = promise.then do |result|
|
475
472
|
http_response = result.response
|
476
473
|
status_code = http_response.status
|
477
474
|
response_content = http_response.body
|
478
|
-
unless status_code == 200
|
475
|
+
unless status_code == 200 || status_code == 202 || status_code == 201
|
479
476
|
error_model = JSON.load(response_content)
|
480
477
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
481
478
|
end
|
@@ -485,7 +482,17 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
485
482
|
if status_code == 200
|
486
483
|
begin
|
487
484
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
488
|
-
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::
|
485
|
+
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
|
486
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
487
|
+
rescue Exception => e
|
488
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
489
|
+
end
|
490
|
+
end
|
491
|
+
# Deserialize Response
|
492
|
+
if status_code == 201
|
493
|
+
begin
|
494
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
495
|
+
result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
|
489
496
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
490
497
|
rescue Exception => e
|
491
498
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -498,30 +505,5 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
|
|
498
505
|
promise.execute
|
499
506
|
end
|
500
507
|
|
501
|
-
#
|
502
|
-
# Gets a collection of restore points that belongs to the database.
|
503
|
-
#
|
504
|
-
# @param resource_group_name [String] The name of the resource group that
|
505
|
-
# contains the resource. You can obtain this value from the Azure Resource
|
506
|
-
# Manager API or the portal.
|
507
|
-
# @param server_name [String] The name of the server.
|
508
|
-
# @param database_name [String] The name of the database.
|
509
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
510
|
-
# will be added to the HTTP request.
|
511
|
-
#
|
512
|
-
# @return [DatabaseRestorePointListResult] which provide lazy access to pages
|
513
|
-
# of the response.
|
514
|
-
#
|
515
|
-
def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:nil)
|
516
|
-
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
517
|
-
unless response.nil?
|
518
|
-
page = response.body
|
519
|
-
page.next_method = Proc.new do |next_page_link|
|
520
|
-
list_by_database_next_async(next_page_link, custom_headers:custom_headers)
|
521
|
-
end
|
522
|
-
page
|
523
|
-
end
|
524
|
-
end
|
525
|
-
|
526
508
|
end
|
527
509
|
end
|