azure_mgmt_sql 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_sql.rb +61 -56
- data/lib/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +1 -1
- data/lib/generated/azure_mgmt_sql/capabilities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/data_masking_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/data_masking_rules.rb +1 -1
- data/lib/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/database_operations.rb +335 -0
- data/lib/generated/azure_mgmt_sql/database_threat_detection_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/database_usages.rb +1 -1
- data/lib/generated/azure_mgmt_sql/databases.rb +1 -1
- data/lib/generated/azure_mgmt_sql/elastic_pool_activities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/elastic_pools.rb +1 -1
- data/lib/generated/azure_mgmt_sql/encryption_protectors.rb +1 -1
- data/lib/generated/azure_mgmt_sql/failover_groups.rb +1 -1
- data/lib/generated/azure_mgmt_sql/firewall_rules.rb +1 -1
- data/lib/generated/azure_mgmt_sql/geo_backup_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/authentication_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/blob_auditing_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/capability_status.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_reason.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_response.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/create_mode.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_function.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_edition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_operation.rb +183 -0
- data/lib/generated/azure_mgmt_sql/models/database_operation_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_usage.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_usage_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/edition_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_edition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/encryption_protector.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/export_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_replication_role.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/firewall_rule.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/identity_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/import_export_response.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/import_extension_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/import_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/location_capabilities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/management_operation_state.rb +20 -0
- data/lib/generated/azure_mgmt_sql/models/max_size_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/max_size_units.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_availability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_definition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_definition_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_name.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_value.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_display.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_impact.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_origin.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/partner_info.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/performance_level_unit.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/primary_aggregation_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/proxy_resource.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/read_scale.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/read_write_endpoint_failover_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index_action.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recoverable_database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/replication_link.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/replication_link_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/replication_role.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/replication_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/resource_identity.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restore_point.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restore_point_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restore_point_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sample_name.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_email_account_admins.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_use_server_default.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_administrator_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_communication_link.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_communication_link_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_connection_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_connection_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_key.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_key_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_key_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_usage.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_usage_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_version_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective_name.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/slo_usage_metric.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/storage_key_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_key_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_conflict_resolution_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_database_id_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_direction.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_log_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_log_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_schema.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member_db_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/tracked_resource.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_status.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_status.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/unit_definition_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/unit_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule.rb +25 -1
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule_state.rb +19 -0
- data/lib/generated/azure_mgmt_sql/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/operations.rb +1 -1
- data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +1 -1
- data/lib/generated/azure_mgmt_sql/recoverable_databases.rb +1 -1
- data/lib/generated/azure_mgmt_sql/replication_links.rb +1 -1
- data/lib/generated/azure_mgmt_sql/restorable_dropped_databases.rb +1 -1
- data/lib/generated/azure_mgmt_sql/restore_points.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_communication_links.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_connection_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_keys.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_usages.rb +1 -1
- data/lib/generated/azure_mgmt_sql/servers.rb +1 -1
- data/lib/generated/azure_mgmt_sql/service_objectives.rb +1 -1
- data/lib/generated/azure_mgmt_sql/service_tier_advisors.rb +1 -1
- data/lib/generated/azure_mgmt_sql/sql_management_client.rb +5 -1
- data/lib/generated/azure_mgmt_sql/sync_agents.rb +1 -1
- data/lib/generated/azure_mgmt_sql/sync_groups.rb +1 -1
- data/lib/generated/azure_mgmt_sql/sync_members.rb +1 -1
- data/lib/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/transparent_data_encryptions.rb +1 -1
- data/lib/generated/azure_mgmt_sql/version.rb +2 -2
- data/lib/generated/azure_mgmt_sql/virtual_network_rules.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 043eb6abdfc50370bc8dcc83c9ae2a5642e7e589
|
4
|
+
data.tar.gz: 8dea3d7998e0836e9ee7bd7d3e2b207fb1dc355a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97138d87162ff35f21cb16f2355cf9289fb9ca57faa3025ed84bc159499dcac8d1678a3a18540aa2df2d4050c3289a4e41baa16628d587e11a870497680edd1b
|
7
|
+
data.tar.gz: 566e3226523a805a72012440975edfb18b1a59078b86b50631a8a4d572287ad2897495cdf922ba9faf9278146434979a6225a21ec8fe92a172d17ba096ba559a
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -56,84 +56,86 @@ module Azure::ARM::SQL
|
|
56
56
|
autoload :SyncGroups, 'generated/azure_mgmt_sql/sync_groups.rb'
|
57
57
|
autoload :SyncMembers, 'generated/azure_mgmt_sql/sync_members.rb'
|
58
58
|
autoload :VirtualNetworkRules, 'generated/azure_mgmt_sql/virtual_network_rules.rb'
|
59
|
+
autoload :DatabaseOperations, 'generated/azure_mgmt_sql/database_operations.rb'
|
59
60
|
autoload :SqlManagementClient, 'generated/azure_mgmt_sql/sql_management_client.rb'
|
60
61
|
|
61
62
|
module Models
|
62
|
-
autoload :RecommendedElasticPoolListResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
|
63
63
|
autoload :RecommendedElasticPoolListMetricsResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb'
|
64
|
-
autoload :
|
65
|
-
autoload :
|
66
|
-
autoload :
|
67
|
-
autoload :
|
68
|
-
autoload :SyncGroupListResult, 'generated/azure_mgmt_sql/models/sync_group_list_result.rb'
|
64
|
+
autoload :SloUsageMetric, 'generated/azure_mgmt_sql/models/slo_usage_metric.rb'
|
65
|
+
autoload :CheckNameAvailabilityResponse, 'generated/azure_mgmt_sql/models/check_name_availability_response.rb'
|
66
|
+
autoload :RecommendedElasticPoolMetric, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb'
|
67
|
+
autoload :FailoverGroupListResult, 'generated/azure_mgmt_sql/models/failover_group_list_result.rb'
|
69
68
|
autoload :ServerAdministratorListResult, 'generated/azure_mgmt_sql/models/server_administrator_list_result.rb'
|
70
|
-
autoload :
|
71
|
-
autoload :
|
72
|
-
autoload :
|
69
|
+
autoload :RestorePointListResult, 'generated/azure_mgmt_sql/models/restore_point_list_result.rb'
|
70
|
+
autoload :FailoverGroupUpdate, 'generated/azure_mgmt_sql/models/failover_group_update.rb'
|
71
|
+
autoload :RecoverableDatabaseListResult, 'generated/azure_mgmt_sql/models/recoverable_database_list_result.rb'
|
73
72
|
autoload :ServerCommunicationLinkListResult, 'generated/azure_mgmt_sql/models/server_communication_link_list_result.rb'
|
74
|
-
autoload :
|
75
|
-
autoload :
|
76
|
-
autoload :
|
73
|
+
autoload :RestorableDroppedDatabaseListResult, 'generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb'
|
74
|
+
autoload :SyncGroupLogListResult, 'generated/azure_mgmt_sql/models/sync_group_log_list_result.rb'
|
75
|
+
autoload :ServiceObjectiveCapability, 'generated/azure_mgmt_sql/models/service_objective_capability.rb'
|
77
76
|
autoload :ServiceObjectiveListResult, 'generated/azure_mgmt_sql/models/service_objective_list_result.rb'
|
78
|
-
autoload :
|
77
|
+
autoload :ElasticPoolPerDatabaseMinDtuCapability, 'generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb'
|
79
78
|
autoload :CheckNameAvailabilityRequest, 'generated/azure_mgmt_sql/models/check_name_availability_request.rb'
|
79
|
+
autoload :ElasticPoolDtuCapability, 'generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb'
|
80
|
+
autoload :ElasticPoolEditionCapability, 'generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb'
|
81
|
+
autoload :FailoverGroupReadOnlyEndpoint, 'generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb'
|
80
82
|
autoload :LocationCapabilities, 'generated/azure_mgmt_sql/models/location_capabilities.rb'
|
81
|
-
autoload :
|
82
|
-
autoload :
|
83
|
-
autoload :RecommendedElasticPoolMetric, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb'
|
84
|
-
autoload :SyncGroupLogProperties, 'generated/azure_mgmt_sql/models/sync_group_log_properties.rb'
|
85
|
-
autoload :SloUsageMetric, 'generated/azure_mgmt_sql/models/slo_usage_metric.rb'
|
83
|
+
autoload :PartnerInfo, 'generated/azure_mgmt_sql/models/partner_info.rb'
|
84
|
+
autoload :ServerListResult, 'generated/azure_mgmt_sql/models/server_list_result.rb'
|
86
85
|
autoload :SyncFullSchemaPropertiesListResult, 'generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb'
|
87
|
-
autoload :
|
88
|
-
autoload :
|
89
|
-
autoload :ServerUpdate, 'generated/azure_mgmt_sql/models/server_update.rb'
|
90
|
-
autoload :ImportExtensionRequest, 'generated/azure_mgmt_sql/models/import_extension_request.rb'
|
91
|
-
autoload :OperationImpact, 'generated/azure_mgmt_sql/models/operation_impact.rb'
|
86
|
+
autoload :FailoverGroupReadWriteEndpoint, 'generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb'
|
87
|
+
autoload :DataMaskingRuleListResult, 'generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb'
|
92
88
|
autoload :SyncFullSchemaTableColumn, 'generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb'
|
93
|
-
autoload :
|
94
|
-
autoload :
|
95
|
-
autoload :
|
96
|
-
autoload :
|
97
|
-
autoload :
|
98
|
-
autoload :
|
89
|
+
autoload :FirewallRuleListResult, 'generated/azure_mgmt_sql/models/firewall_rule_list_result.rb'
|
90
|
+
autoload :SyncDatabaseIdListResult, 'generated/azure_mgmt_sql/models/sync_database_id_list_result.rb'
|
91
|
+
autoload :GeoBackupPolicyListResult, 'generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb'
|
92
|
+
autoload :OperationImpact, 'generated/azure_mgmt_sql/models/operation_impact.rb'
|
93
|
+
autoload :OperationListResult, 'generated/azure_mgmt_sql/models/operation_list_result.rb'
|
94
|
+
autoload :SyncDatabaseIdProperties, 'generated/azure_mgmt_sql/models/sync_database_id_properties.rb'
|
95
|
+
autoload :ExportRequest, 'generated/azure_mgmt_sql/models/export_request.rb'
|
96
|
+
autoload :SyncAgentLinkedDatabaseListResult, 'generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb'
|
97
|
+
autoload :MetricName, 'generated/azure_mgmt_sql/models/metric_name.rb'
|
98
|
+
autoload :SyncFullSchemaTable, 'generated/azure_mgmt_sql/models/sync_full_schema_table.rb'
|
99
|
+
autoload :MetricListResult, 'generated/azure_mgmt_sql/models/metric_list_result.rb'
|
100
|
+
autoload :RecommendedElasticPoolListResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
|
99
101
|
autoload :MetricDefinition, 'generated/azure_mgmt_sql/models/metric_definition.rb'
|
102
|
+
autoload :MetricDefinitionListResult, 'generated/azure_mgmt_sql/models/metric_definition_list_result.rb'
|
100
103
|
autoload :EncryptionProtectorListResult, 'generated/azure_mgmt_sql/models/encryption_protector_list_result.rb'
|
101
|
-
autoload :
|
102
|
-
autoload :
|
103
|
-
autoload :
|
104
|
-
autoload :
|
105
|
-
autoload :ServiceObjectiveCapability, 'generated/azure_mgmt_sql/models/service_objective_capability.rb'
|
106
|
-
autoload :OperationDisplay, 'generated/azure_mgmt_sql/models/operation_display.rb'
|
107
|
-
autoload :ElasticPoolDtuCapability, 'generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb'
|
104
|
+
autoload :ReplicationLinkListResult, 'generated/azure_mgmt_sql/models/replication_link_list_result.rb'
|
105
|
+
autoload :SyncAgentListResult, 'generated/azure_mgmt_sql/models/sync_agent_list_result.rb'
|
106
|
+
autoload :DatabaseOperationListResult, 'generated/azure_mgmt_sql/models/database_operation_list_result.rb'
|
107
|
+
autoload :MaxSizeCapability, 'generated/azure_mgmt_sql/models/max_size_capability.rb'
|
108
108
|
autoload :ElasticPoolListResult, 'generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
|
109
|
-
autoload :
|
110
|
-
autoload :
|
111
|
-
autoload :
|
109
|
+
autoload :ElasticPoolPerDatabaseMaxDtuCapability, 'generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb'
|
110
|
+
autoload :VirtualNetworkRuleListResult, 'generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb'
|
111
|
+
autoload :ServerUpdate, 'generated/azure_mgmt_sql/models/server_update.rb'
|
112
112
|
autoload :ElasticPoolActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
|
113
|
-
autoload :
|
114
|
-
autoload :
|
115
|
-
autoload :
|
113
|
+
autoload :ServerKeyListResult, 'generated/azure_mgmt_sql/models/server_key_list_result.rb'
|
114
|
+
autoload :SyncMemberListResult, 'generated/azure_mgmt_sql/models/sync_member_list_result.rb'
|
115
|
+
autoload :ImportExtensionRequest, 'generated/azure_mgmt_sql/models/import_extension_request.rb'
|
116
116
|
autoload :ElasticPoolDatabaseActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
|
117
|
-
autoload :
|
118
|
-
autoload :
|
119
|
-
autoload :
|
117
|
+
autoload :MetricValue, 'generated/azure_mgmt_sql/models/metric_value.rb'
|
118
|
+
autoload :SyncGroupListResult, 'generated/azure_mgmt_sql/models/sync_group_list_result.rb'
|
119
|
+
autoload :MetricAvailability, 'generated/azure_mgmt_sql/models/metric_availability.rb'
|
120
120
|
autoload :DatabaseListResult, 'generated/azure_mgmt_sql/models/database_list_result.rb'
|
121
|
-
autoload :
|
121
|
+
autoload :SyncAgentKeyProperties, 'generated/azure_mgmt_sql/models/sync_agent_key_properties.rb'
|
122
122
|
autoload :ServiceTierAdvisorListResult, 'generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
|
123
|
-
autoload :
|
124
|
-
autoload :
|
125
|
-
autoload :
|
123
|
+
autoload :EditionCapability, 'generated/azure_mgmt_sql/models/edition_capability.rb'
|
124
|
+
autoload :SyncGroupSchema, 'generated/azure_mgmt_sql/models/sync_group_schema.rb'
|
125
|
+
autoload :ResourceIdentity, 'generated/azure_mgmt_sql/models/resource_identity.rb'
|
126
126
|
autoload :TransparentDataEncryptionActivityListResult, 'generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
|
127
|
-
autoload :
|
127
|
+
autoload :Operation, 'generated/azure_mgmt_sql/models/operation.rb'
|
128
128
|
autoload :ServerUsage, 'generated/azure_mgmt_sql/models/server_usage.rb'
|
129
|
-
autoload :
|
129
|
+
autoload :OperationDisplay, 'generated/azure_mgmt_sql/models/operation_display.rb'
|
130
130
|
autoload :ServerUsageListResult, 'generated/azure_mgmt_sql/models/server_usage_list_result.rb'
|
131
|
-
autoload :
|
131
|
+
autoload :ServerVersionCapability, 'generated/azure_mgmt_sql/models/server_version_capability.rb'
|
132
132
|
autoload :DatabaseUsage, 'generated/azure_mgmt_sql/models/database_usage.rb'
|
133
|
-
autoload :
|
133
|
+
autoload :Metric, 'generated/azure_mgmt_sql/models/metric.rb'
|
134
134
|
autoload :DatabaseUsageListResult, 'generated/azure_mgmt_sql/models/database_usage_list_result.rb'
|
135
|
-
autoload :
|
136
|
-
autoload :
|
135
|
+
autoload :SyncGroupLogProperties, 'generated/azure_mgmt_sql/models/sync_group_log_properties.rb'
|
136
|
+
autoload :SyncGroupSchemaTable, 'generated/azure_mgmt_sql/models/sync_group_schema_table.rb'
|
137
|
+
autoload :SyncFullSchemaProperties, 'generated/azure_mgmt_sql/models/sync_full_schema_properties.rb'
|
138
|
+
autoload :SyncGroupSchemaTableColumn, 'generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb'
|
137
139
|
autoload :ProxyResource, 'generated/azure_mgmt_sql/models/proxy_resource.rb'
|
138
140
|
autoload :BackupLongTermRetentionPolicy, 'generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb'
|
139
141
|
autoload :BackupLongTermRetentionVault, 'generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb'
|
@@ -174,6 +176,7 @@ module Azure::ARM::SQL
|
|
174
176
|
autoload :SyncGroup, 'generated/azure_mgmt_sql/models/sync_group.rb'
|
175
177
|
autoload :SyncMember, 'generated/azure_mgmt_sql/models/sync_member.rb'
|
176
178
|
autoload :VirtualNetworkRule, 'generated/azure_mgmt_sql/models/virtual_network_rule.rb'
|
179
|
+
autoload :DatabaseOperation, 'generated/azure_mgmt_sql/models/database_operation.rb'
|
177
180
|
autoload :BackupLongTermRetentionPolicyState, 'generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb'
|
178
181
|
autoload :RestorePointType, 'generated/azure_mgmt_sql/models/restore_point_type.rb'
|
179
182
|
autoload :CapabilityStatus, 'generated/azure_mgmt_sql/models/capability_status.rb'
|
@@ -221,5 +224,7 @@ module Azure::ARM::SQL
|
|
221
224
|
autoload :SyncGroupState, 'generated/azure_mgmt_sql/models/sync_group_state.rb'
|
222
225
|
autoload :SyncDirection, 'generated/azure_mgmt_sql/models/sync_direction.rb'
|
223
226
|
autoload :SyncMemberState, 'generated/azure_mgmt_sql/models/sync_member_state.rb'
|
227
|
+
autoload :VirtualNetworkRuleState, 'generated/azure_mgmt_sql/models/virtual_network_rule_state.rb'
|
228
|
+
autoload :ManagementOperationState, 'generated/azure_mgmt_sql/models/management_operation_state.rb'
|
224
229
|
end
|
225
230
|
end
|
@@ -0,0 +1,335 @@
|
|
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::ARM::SQL
|
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 DatabaseOperations
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the DatabaseOperations 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
|
+
# Cancels the asynchronous operation on the database.
|
29
|
+
#
|
30
|
+
# @param resource_group_name [String] The name of the resource group that
|
31
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
32
|
+
# Manager API or the portal.
|
33
|
+
# @param server_name [String] The name of the server.
|
34
|
+
# @param database_name [String] The name of the database.
|
35
|
+
# @param operation_id The operation identifier.
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
#
|
40
|
+
def cancel(resource_group_name, server_name, database_name, operation_id, custom_headers = nil)
|
41
|
+
response = cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers).value!
|
42
|
+
nil
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Cancels the asynchronous operation on the database.
|
47
|
+
#
|
48
|
+
# @param resource_group_name [String] The name of the resource group that
|
49
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
50
|
+
# Manager API or the portal.
|
51
|
+
# @param server_name [String] The name of the server.
|
52
|
+
# @param database_name [String] The name of the database.
|
53
|
+
# @param operation_id The operation identifier.
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
55
|
+
# will be added to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
|
+
#
|
59
|
+
def cancel_with_http_info(resource_group_name, server_name, database_name, operation_id, custom_headers = nil)
|
60
|
+
cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers).value!
|
61
|
+
end
|
62
|
+
|
63
|
+
#
|
64
|
+
# Cancels the asynchronous operation on the database.
|
65
|
+
#
|
66
|
+
# @param resource_group_name [String] The name of the resource group that
|
67
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
68
|
+
# Manager API or the portal.
|
69
|
+
# @param server_name [String] The name of the server.
|
70
|
+
# @param database_name [String] The name of the database.
|
71
|
+
# @param operation_id The operation identifier.
|
72
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
73
|
+
# to the HTTP request.
|
74
|
+
#
|
75
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
76
|
+
#
|
77
|
+
def cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers = nil)
|
78
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
79
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
80
|
+
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
81
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
82
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
83
|
+
api_version = '2017-03-01-preview'
|
84
|
+
|
85
|
+
|
86
|
+
request_headers = {}
|
87
|
+
|
88
|
+
# Set Headers
|
89
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
90
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
91
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel'
|
92
|
+
|
93
|
+
request_url = @base_url || @client.base_url
|
94
|
+
|
95
|
+
options = {
|
96
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
97
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
98
|
+
query_params: {'api-version' => api_version},
|
99
|
+
headers: request_headers.merge(custom_headers || {}),
|
100
|
+
base_url: request_url
|
101
|
+
}
|
102
|
+
promise = @client.make_request_async(:post, path_template, options)
|
103
|
+
|
104
|
+
promise = promise.then do |result|
|
105
|
+
http_response = result.response
|
106
|
+
status_code = http_response.status
|
107
|
+
response_content = http_response.body
|
108
|
+
unless status_code == 200
|
109
|
+
error_model = JSON.load(response_content)
|
110
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
111
|
+
end
|
112
|
+
|
113
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
114
|
+
|
115
|
+
result
|
116
|
+
end
|
117
|
+
|
118
|
+
promise.execute
|
119
|
+
end
|
120
|
+
|
121
|
+
#
|
122
|
+
# Gets a list of operations performed on the database.
|
123
|
+
#
|
124
|
+
# @param resource_group_name [String] The name of the resource group that
|
125
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
126
|
+
# Manager API or the portal.
|
127
|
+
# @param server_name [String] The name of the server.
|
128
|
+
# @param database_name [String] The name of the database.
|
129
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
130
|
+
# will be added to the HTTP request.
|
131
|
+
#
|
132
|
+
# @return [Array<DatabaseOperation>] operation results.
|
133
|
+
#
|
134
|
+
def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil)
|
135
|
+
first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers)
|
136
|
+
first_page.get_all_items
|
137
|
+
end
|
138
|
+
|
139
|
+
#
|
140
|
+
# Gets a list of operations performed on the database.
|
141
|
+
#
|
142
|
+
# @param resource_group_name [String] The name of the resource group that
|
143
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
144
|
+
# Manager API or the portal.
|
145
|
+
# @param server_name [String] The name of the server.
|
146
|
+
# @param database_name [String] The name of the database.
|
147
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
|
+
# will be added to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
151
|
+
#
|
152
|
+
def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
|
153
|
+
list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
154
|
+
end
|
155
|
+
|
156
|
+
#
|
157
|
+
# Gets a list of operations performed on the database.
|
158
|
+
#
|
159
|
+
# @param resource_group_name [String] The name of the resource group that
|
160
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
161
|
+
# Manager API or the portal.
|
162
|
+
# @param server_name [String] The name of the server.
|
163
|
+
# @param database_name [String] The name of the database.
|
164
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
165
|
+
# to the HTTP request.
|
166
|
+
#
|
167
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
|
+
#
|
169
|
+
def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil)
|
170
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
171
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
172
|
+
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
173
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
174
|
+
api_version = '2017-03-01-preview'
|
175
|
+
|
176
|
+
|
177
|
+
request_headers = {}
|
178
|
+
|
179
|
+
# Set Headers
|
180
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
181
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
182
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations'
|
183
|
+
|
184
|
+
request_url = @base_url || @client.base_url
|
185
|
+
|
186
|
+
options = {
|
187
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
188
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
|
189
|
+
query_params: {'api-version' => api_version},
|
190
|
+
headers: request_headers.merge(custom_headers || {}),
|
191
|
+
base_url: request_url
|
192
|
+
}
|
193
|
+
promise = @client.make_request_async(:get, path_template, options)
|
194
|
+
|
195
|
+
promise = promise.then do |result|
|
196
|
+
http_response = result.response
|
197
|
+
status_code = http_response.status
|
198
|
+
response_content = http_response.body
|
199
|
+
unless status_code == 200
|
200
|
+
error_model = JSON.load(response_content)
|
201
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
202
|
+
end
|
203
|
+
|
204
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
205
|
+
# Deserialize Response
|
206
|
+
if status_code == 200
|
207
|
+
begin
|
208
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
209
|
+
result_mapper = Azure::ARM::SQL::Models::DatabaseOperationListResult.mapper()
|
210
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
211
|
+
rescue Exception => e
|
212
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
result
|
217
|
+
end
|
218
|
+
|
219
|
+
promise.execute
|
220
|
+
end
|
221
|
+
|
222
|
+
#
|
223
|
+
# Gets a list of operations performed on the database.
|
224
|
+
#
|
225
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
226
|
+
# to List operation.
|
227
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
228
|
+
# will be added to the HTTP request.
|
229
|
+
#
|
230
|
+
# @return [DatabaseOperationListResult] operation results.
|
231
|
+
#
|
232
|
+
def list_by_database_next(next_page_link, custom_headers = nil)
|
233
|
+
response = list_by_database_next_async(next_page_link, custom_headers).value!
|
234
|
+
response.body unless response.nil?
|
235
|
+
end
|
236
|
+
|
237
|
+
#
|
238
|
+
# Gets a list of operations performed on the database.
|
239
|
+
#
|
240
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
241
|
+
# to List operation.
|
242
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
243
|
+
# will be added to the HTTP request.
|
244
|
+
#
|
245
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
246
|
+
#
|
247
|
+
def list_by_database_next_with_http_info(next_page_link, custom_headers = nil)
|
248
|
+
list_by_database_next_async(next_page_link, custom_headers).value!
|
249
|
+
end
|
250
|
+
|
251
|
+
#
|
252
|
+
# Gets a list of operations performed on the database.
|
253
|
+
#
|
254
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
255
|
+
# to List operation.
|
256
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
257
|
+
# to the HTTP request.
|
258
|
+
#
|
259
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
260
|
+
#
|
261
|
+
def list_by_database_next_async(next_page_link, custom_headers = nil)
|
262
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
263
|
+
|
264
|
+
|
265
|
+
request_headers = {}
|
266
|
+
|
267
|
+
# Set Headers
|
268
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
269
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
270
|
+
path_template = '{nextLink}'
|
271
|
+
|
272
|
+
request_url = @base_url || @client.base_url
|
273
|
+
|
274
|
+
options = {
|
275
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
276
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
277
|
+
headers: request_headers.merge(custom_headers || {}),
|
278
|
+
base_url: request_url
|
279
|
+
}
|
280
|
+
promise = @client.make_request_async(:get, path_template, options)
|
281
|
+
|
282
|
+
promise = promise.then do |result|
|
283
|
+
http_response = result.response
|
284
|
+
status_code = http_response.status
|
285
|
+
response_content = http_response.body
|
286
|
+
unless status_code == 200
|
287
|
+
error_model = JSON.load(response_content)
|
288
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
289
|
+
end
|
290
|
+
|
291
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
292
|
+
# Deserialize Response
|
293
|
+
if status_code == 200
|
294
|
+
begin
|
295
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
296
|
+
result_mapper = Azure::ARM::SQL::Models::DatabaseOperationListResult.mapper()
|
297
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
298
|
+
rescue Exception => e
|
299
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
result
|
304
|
+
end
|
305
|
+
|
306
|
+
promise.execute
|
307
|
+
end
|
308
|
+
|
309
|
+
#
|
310
|
+
# Gets a list of operations performed on the database.
|
311
|
+
#
|
312
|
+
# @param resource_group_name [String] The name of the resource group that
|
313
|
+
# contains the resource. You can obtain this value from the Azure Resource
|
314
|
+
# Manager API or the portal.
|
315
|
+
# @param server_name [String] The name of the server.
|
316
|
+
# @param database_name [String] The name of the database.
|
317
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
318
|
+
# will be added to the HTTP request.
|
319
|
+
#
|
320
|
+
# @return [DatabaseOperationListResult] which provide lazy access to pages of
|
321
|
+
# the response.
|
322
|
+
#
|
323
|
+
def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers = nil)
|
324
|
+
response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value!
|
325
|
+
unless response.nil?
|
326
|
+
page = response.body
|
327
|
+
page.next_method = Proc.new do |next_page_link|
|
328
|
+
list_by_database_next_async(next_page_link, custom_headers)
|
329
|
+
end
|
330
|
+
page
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
334
|
+
end
|
335
|
+
end
|