azure_mgmt_sql 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_sql.rb +95 -46
  3. data/lib/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +310 -0
  4. data/lib/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +300 -0
  5. data/lib/generated/azure_mgmt_sql/data_masking_policies.rb +248 -0
  6. data/lib/generated/azure_mgmt_sql/data_masking_rules.rb +262 -0
  7. data/lib/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +264 -0
  8. data/lib/generated/azure_mgmt_sql/database_threat_detection_policies.rb +264 -0
  9. data/lib/generated/azure_mgmt_sql/database_usages.rb +129 -0
  10. data/lib/generated/azure_mgmt_sql/databases.rb +357 -2825
  11. data/lib/generated/azure_mgmt_sql/elastic_pool_activities.rb +132 -0
  12. data/lib/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +129 -0
  13. data/lib/generated/azure_mgmt_sql/elastic_pools.rb +0 -417
  14. data/lib/generated/azure_mgmt_sql/encryption_protectors.rb +498 -0
  15. data/lib/generated/azure_mgmt_sql/failover_groups.rb +6 -6
  16. data/lib/generated/azure_mgmt_sql/geo_backup_policies.rb +359 -0
  17. data/lib/generated/azure_mgmt_sql/models/database_usage.rb +4 -9
  18. data/lib/generated/azure_mgmt_sql/models/encryption_protector.rb +3 -4
  19. data/lib/generated/azure_mgmt_sql/models/failover_group.rb +2 -2
  20. data/lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb +6 -4
  21. data/lib/generated/azure_mgmt_sql/models/failover_group_update.rb +93 -0
  22. data/lib/generated/azure_mgmt_sql/models/firewall_rule.rb +11 -14
  23. data/lib/generated/azure_mgmt_sql/models/metric_value.rb +1 -17
  24. data/lib/generated/azure_mgmt_sql/models/operation.rb +36 -3
  25. data/lib/generated/azure_mgmt_sql/models/operation_display.rb +20 -5
  26. data/lib/generated/azure_mgmt_sql/models/operation_list_result.rb +36 -6
  27. data/lib/generated/azure_mgmt_sql/models/operation_origin.rb +16 -0
  28. data/lib/generated/azure_mgmt_sql/models/partner_info.rb +1 -1
  29. data/lib/generated/azure_mgmt_sql/models/replication_link.rb +9 -12
  30. data/lib/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb +11 -3
  31. data/lib/generated/azure_mgmt_sql/models/server_key.rb +3 -4
  32. data/lib/generated/azure_mgmt_sql/models/service_objective.rb +11 -3
  33. data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +11 -3
  34. data/lib/generated/azure_mgmt_sql/models/sync_agent.rb +137 -0
  35. data/lib/generated/azure_mgmt_sql/models/{sql_sub_resource.rb → sync_agent_key_properties.rb} +9 -20
  36. data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb +126 -0
  37. data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb +96 -0
  38. data/lib/generated/azure_mgmt_sql/models/sync_agent_list_result.rb +96 -0
  39. data/lib/generated/azure_mgmt_sql/models/sync_agent_state.rb +17 -0
  40. data/lib/generated/azure_mgmt_sql/models/sync_conflict_resolution_policy.rb +16 -0
  41. data/lib/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb +96 -0
  42. data/lib/generated/azure_mgmt_sql/models/{sub_resource.rb → sync_database_id_properties.rb} +7 -15
  43. data/lib/generated/azure_mgmt_sql/models/sync_direction.rb +17 -0
  44. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb +66 -0
  45. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb +96 -0
  46. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table.rb +99 -0
  47. data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb +112 -0
  48. data/lib/generated/azure_mgmt_sql/models/sync_group.rb +145 -0
  49. data/lib/generated/azure_mgmt_sql/models/sync_group_list_result.rb +96 -0
  50. data/lib/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb +96 -0
  51. data/lib/generated/azure_mgmt_sql/models/sync_group_log_properties.rb +102 -0
  52. data/lib/generated/azure_mgmt_sql/models/sync_group_log_type.rb +18 -0
  53. data/lib/generated/azure_mgmt_sql/models/sync_group_schema.rb +64 -0
  54. data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table.rb +64 -0
  55. data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb +65 -0
  56. data/lib/generated/azure_mgmt_sql/models/sync_group_state.rb +19 -0
  57. data/lib/generated/azure_mgmt_sql/models/sync_member.rb +160 -0
  58. data/lib/generated/azure_mgmt_sql/models/sync_member_db_type.rb +16 -0
  59. data/lib/generated/azure_mgmt_sql/models/sync_member_list_result.rb +96 -0
  60. data/lib/generated/azure_mgmt_sql/models/sync_member_state.rb +32 -0
  61. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +22 -3
  62. data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +22 -3
  63. data/lib/generated/azure_mgmt_sql/models/virtual_network_rule.rb +2 -2
  64. data/lib/generated/azure_mgmt_sql/operations.rb +111 -4
  65. data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +3 -215
  66. data/lib/generated/azure_mgmt_sql/replication_links.rb +629 -0
  67. data/lib/generated/azure_mgmt_sql/restore_points.rb +132 -0
  68. data/lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb +5 -5
  69. data/lib/generated/azure_mgmt_sql/server_connection_policies.rb +250 -0
  70. data/lib/generated/azure_mgmt_sql/server_keys.rb +10 -10
  71. data/lib/generated/azure_mgmt_sql/server_usages.rb +125 -0
  72. data/lib/generated/azure_mgmt_sql/servers.rb +161 -1423
  73. data/lib/generated/azure_mgmt_sql/service_objectives.rb +229 -0
  74. data/lib/generated/azure_mgmt_sql/service_tier_advisors.rb +234 -0
  75. data/lib/generated/azure_mgmt_sql/sql_management_client.rb +100 -9
  76. data/lib/generated/azure_mgmt_sql/sync_agents.rb +983 -0
  77. data/lib/generated/azure_mgmt_sql/sync_groups.rb +1863 -0
  78. data/lib/generated/azure_mgmt_sql/sync_members.rb +1290 -0
  79. data/lib/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +133 -0
  80. data/lib/generated/azure_mgmt_sql/transparent_data_encryptions.rb +264 -0
  81. data/lib/generated/azure_mgmt_sql/version.rb +1 -1
  82. metadata +55 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6ee14cf8cc575f4ee6993500352520bacaacdc8
4
- data.tar.gz: cb23ff0f6f12d3e0b5e42183b2cf411c4956e740
3
+ metadata.gz: 652b547563084f5f7522d58d66cf4990f83f7085
4
+ data.tar.gz: dbe07513b5358caf4e4eeae90b084747c09b3d81
5
5
  SHA512:
6
- metadata.gz: a7a27385e30c0d9bbbb6ea7f482eb0991947fdf1b882af8c4e9eb3fc9d942ee01168aff7bf06f51c189f8ff1ad2fedb6ca8e2138c434e8c7cf0d9de6ee33fa37
7
- data.tar.gz: 5625aa11cd1dc1b35a8e8cd55a8617fa87c8d8469fa0e53e0cfb8cea9287bc5f48eca8524c8b2af9bf01f217121a136ca1ab27597abb535048d431ecf32e1290
6
+ metadata.gz: f091e7e923866bd7b3ad68e374887ac87da4741903005b3142f0c5177084fd2f016c576df07fa7ff07626d5af5f747b1eeaaa0bf4a18569d0871ce58b01e1df5
7
+ data.tar.gz: 74486614707523136df1ae0e0db41e64877940aad82bd4deba7e4083b7dfaa6d10d7423c6283b44173d1462632679aaaeda6eea701d14d9710fb989b93c15d99
@@ -20,81 +20,120 @@ require 'generated/azure_mgmt_sql/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::ARM::SQL
23
- autoload :Databases, 'generated/azure_mgmt_sql/databases.rb'
24
- autoload :Servers, 'generated/azure_mgmt_sql/servers.rb'
23
+ autoload :BackupLongTermRetentionPolicies, 'generated/azure_mgmt_sql/backup_long_term_retention_policies.rb'
24
+ autoload :BackupLongTermRetentionVaults, 'generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb'
25
+ autoload :RestorePoints, 'generated/azure_mgmt_sql/restore_points.rb'
25
26
  autoload :RecoverableDatabases, 'generated/azure_mgmt_sql/recoverable_databases.rb'
26
27
  autoload :RestorableDroppedDatabases, 'generated/azure_mgmt_sql/restorable_dropped_databases.rb'
27
28
  autoload :Capabilities, 'generated/azure_mgmt_sql/capabilities.rb'
29
+ autoload :ServerConnectionPolicies, 'generated/azure_mgmt_sql/server_connection_policies.rb'
30
+ autoload :DatabaseThreatDetectionPolicies, 'generated/azure_mgmt_sql/database_threat_detection_policies.rb'
31
+ autoload :DataMaskingPolicies, 'generated/azure_mgmt_sql/data_masking_policies.rb'
32
+ autoload :DataMaskingRules, 'generated/azure_mgmt_sql/data_masking_rules.rb'
28
33
  autoload :FirewallRules, 'generated/azure_mgmt_sql/firewall_rules.rb'
34
+ autoload :GeoBackupPolicies, 'generated/azure_mgmt_sql/geo_backup_policies.rb'
35
+ autoload :Databases, 'generated/azure_mgmt_sql/databases.rb'
29
36
  autoload :ElasticPools, 'generated/azure_mgmt_sql/elastic_pools.rb'
30
- autoload :Operations, 'generated/azure_mgmt_sql/operations.rb'
37
+ autoload :ReplicationLinks, 'generated/azure_mgmt_sql/replication_links.rb'
31
38
  autoload :ServerAzureADAdministrators, 'generated/azure_mgmt_sql/server_azure_adadministrators.rb'
32
39
  autoload :ServerCommunicationLinks, 'generated/azure_mgmt_sql/server_communication_links.rb'
40
+ autoload :ServiceObjectives, 'generated/azure_mgmt_sql/service_objectives.rb'
41
+ autoload :Servers, 'generated/azure_mgmt_sql/servers.rb'
42
+ autoload :ElasticPoolActivities, 'generated/azure_mgmt_sql/elastic_pool_activities.rb'
43
+ autoload :ElasticPoolDatabaseActivities, 'generated/azure_mgmt_sql/elastic_pool_database_activities.rb'
33
44
  autoload :RecommendedElasticPools, 'generated/azure_mgmt_sql/recommended_elastic_pools.rb'
45
+ autoload :ServiceTierAdvisors, 'generated/azure_mgmt_sql/service_tier_advisors.rb'
46
+ autoload :TransparentDataEncryptions, 'generated/azure_mgmt_sql/transparent_data_encryptions.rb'
47
+ autoload :TransparentDataEncryptionActivities, 'generated/azure_mgmt_sql/transparent_data_encryption_activities.rb'
48
+ autoload :ServerUsages, 'generated/azure_mgmt_sql/server_usages.rb'
49
+ autoload :DatabaseUsages, 'generated/azure_mgmt_sql/database_usages.rb'
50
+ autoload :DatabaseBlobAuditingPolicies, 'generated/azure_mgmt_sql/database_blob_auditing_policies.rb'
51
+ autoload :EncryptionProtectors, 'generated/azure_mgmt_sql/encryption_protectors.rb'
34
52
  autoload :FailoverGroups, 'generated/azure_mgmt_sql/failover_groups.rb'
53
+ autoload :Operations, 'generated/azure_mgmt_sql/operations.rb'
35
54
  autoload :ServerKeys, 'generated/azure_mgmt_sql/server_keys.rb'
55
+ autoload :SyncAgents, 'generated/azure_mgmt_sql/sync_agents.rb'
56
+ autoload :SyncGroups, 'generated/azure_mgmt_sql/sync_groups.rb'
57
+ autoload :SyncMembers, 'generated/azure_mgmt_sql/sync_members.rb'
36
58
  autoload :VirtualNetworkRules, 'generated/azure_mgmt_sql/virtual_network_rules.rb'
37
59
  autoload :SqlManagementClient, 'generated/azure_mgmt_sql/sql_management_client.rb'
38
60
 
39
61
  module Models
40
- autoload :SqlSubResource, 'generated/azure_mgmt_sql/models/sql_sub_resource.rb'
41
- autoload :MetricDefinition, 'generated/azure_mgmt_sql/models/metric_definition.rb'
42
- autoload :ImportExtensionRequest, 'generated/azure_mgmt_sql/models/import_extension_request.rb'
43
- autoload :PartnerInfo, 'generated/azure_mgmt_sql/models/partner_info.rb'
44
- autoload :TransparentDataEncryptionActivityListResult, 'generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
45
- autoload :RecommendedElasticPoolListMetricsResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb'
46
- autoload :ServiceTierAdvisorListResult, 'generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
47
- autoload :ExportRequest, 'generated/azure_mgmt_sql/models/export_request.rb'
48
- autoload :DatabaseListResult, 'generated/azure_mgmt_sql/models/database_list_result.rb'
49
62
  autoload :RecommendedElasticPoolListResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb'
50
- autoload :DatabaseUsageListResult, 'generated/azure_mgmt_sql/models/database_usage_list_result.rb'
51
- autoload :MetricName, 'generated/azure_mgmt_sql/models/metric_name.rb'
63
+ autoload :RecommendedElasticPoolListMetricsResult, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb'
64
+ autoload :SyncDatabaseIdListResult, 'generated/azure_mgmt_sql/models/sync_database_id_list_result.rb'
65
+ autoload :ReplicationLinkListResult, 'generated/azure_mgmt_sql/models/replication_link_list_result.rb'
66
+ autoload :SyncMemberListResult, 'generated/azure_mgmt_sql/models/sync_member_list_result.rb'
67
+ autoload :SyncDatabaseIdProperties, 'generated/azure_mgmt_sql/models/sync_database_id_properties.rb'
68
+ autoload :SyncGroupListResult, 'generated/azure_mgmt_sql/models/sync_group_list_result.rb'
69
+ autoload :ServerAdministratorListResult, 'generated/azure_mgmt_sql/models/server_administrator_list_result.rb'
70
+ autoload :SyncGroupSchema, 'generated/azure_mgmt_sql/models/sync_group_schema.rb'
71
+ autoload :SyncAgentLinkedDatabaseListResult, 'generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb'
52
72
  autoload :MaxSizeCapability, 'generated/azure_mgmt_sql/models/max_size_capability.rb'
53
- autoload :Metric, 'generated/azure_mgmt_sql/models/metric.rb'
73
+ autoload :ServerCommunicationLinkListResult, 'generated/azure_mgmt_sql/models/server_communication_link_list_result.rb'
54
74
  autoload :EditionCapability, 'generated/azure_mgmt_sql/models/edition_capability.rb'
55
- autoload :MetricListResult, 'generated/azure_mgmt_sql/models/metric_list_result.rb'
75
+ autoload :SyncAgentKeyProperties, 'generated/azure_mgmt_sql/models/sync_agent_key_properties.rb'
56
76
  autoload :ElasticPoolPerDatabaseMaxDtuCapability, 'generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb'
57
- autoload :MetricAvailability, 'generated/azure_mgmt_sql/models/metric_availability.rb'
77
+ autoload :ServiceObjectiveListResult, 'generated/azure_mgmt_sql/models/service_objective_list_result.rb'
58
78
  autoload :ElasticPoolEditionCapability, 'generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb'
59
- autoload :FailoverGroupListResult, 'generated/azure_mgmt_sql/models/failover_group_list_result.rb'
79
+ autoload :CheckNameAvailabilityRequest, 'generated/azure_mgmt_sql/models/check_name_availability_request.rb'
60
80
  autoload :LocationCapabilities, 'generated/azure_mgmt_sql/models/location_capabilities.rb'
61
- autoload :MetricDefinitionListResult, 'generated/azure_mgmt_sql/models/metric_definition_list_result.rb'
81
+ autoload :CheckNameAvailabilityResponse, 'generated/azure_mgmt_sql/models/check_name_availability_response.rb'
82
+ autoload :SyncGroupSchemaTableColumn, 'generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb'
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'
86
+ autoload :SyncFullSchemaPropertiesListResult, 'generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb'
87
+ autoload :SyncAgentListResult, 'generated/azure_mgmt_sql/models/sync_agent_list_result.rb'
88
+ autoload :SyncFullSchemaProperties, 'generated/azure_mgmt_sql/models/sync_full_schema_properties.rb'
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'
92
+ autoload :SyncFullSchemaTableColumn, 'generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb'
93
+ autoload :ServerListResult, 'generated/azure_mgmt_sql/models/server_list_result.rb'
94
+ autoload :MetricValue, 'generated/azure_mgmt_sql/models/metric_value.rb'
95
+ autoload :ResourceIdentity, 'generated/azure_mgmt_sql/models/resource_identity.rb'
96
+ autoload :Metric, 'generated/azure_mgmt_sql/models/metric.rb'
97
+ autoload :ServerKeyListResult, 'generated/azure_mgmt_sql/models/server_key_list_result.rb'
98
+ autoload :MetricAvailability, 'generated/azure_mgmt_sql/models/metric_availability.rb'
99
+ autoload :MetricDefinition, 'generated/azure_mgmt_sql/models/metric_definition.rb'
62
100
  autoload :EncryptionProtectorListResult, 'generated/azure_mgmt_sql/models/encryption_protector_list_result.rb'
63
- autoload :OperationDisplay, 'generated/azure_mgmt_sql/models/operation_display.rb'
64
- autoload :FailoverGroupReadWriteEndpoint, 'generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb'
65
- autoload :Operation, 'generated/azure_mgmt_sql/models/operation.rb'
66
- autoload :SubResource, 'generated/azure_mgmt_sql/models/sub_resource.rb'
101
+ autoload :VirtualNetworkRuleListResult, 'generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb'
67
102
  autoload :OperationListResult, 'generated/azure_mgmt_sql/models/operation_list_result.rb'
68
- autoload :FirewallRuleListResult, 'generated/azure_mgmt_sql/models/firewall_rule_list_result.rb'
69
- autoload :ServerKeyListResult, 'generated/azure_mgmt_sql/models/server_key_list_result.rb'
70
- autoload :GeoBackupPolicyListResult, 'generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb'
71
- autoload :ReplicationLinkListResult, 'generated/azure_mgmt_sql/models/replication_link_list_result.rb'
72
- autoload :ServerUsageListResult, 'generated/azure_mgmt_sql/models/server_usage_list_result.rb'
73
- autoload :ResourceIdentity, 'generated/azure_mgmt_sql/models/resource_identity.rb'
74
103
  autoload :RecoverableDatabaseListResult, 'generated/azure_mgmt_sql/models/recoverable_database_list_result.rb'
75
- autoload :ServerAdministratorListResult, 'generated/azure_mgmt_sql/models/server_administrator_list_result.rb'
104
+ autoload :Operation, 'generated/azure_mgmt_sql/models/operation.rb'
76
105
  autoload :ServiceObjectiveCapability, 'generated/azure_mgmt_sql/models/service_objective_capability.rb'
106
+ autoload :OperationDisplay, 'generated/azure_mgmt_sql/models/operation_display.rb'
77
107
  autoload :ElasticPoolDtuCapability, 'generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb'
78
- autoload :ElasticPoolDatabaseActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
79
- autoload :ServerCommunicationLinkListResult, 'generated/azure_mgmt_sql/models/server_communication_link_list_result.rb'
108
+ autoload :ElasticPoolListResult, 'generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
109
+ autoload :SyncGroupSchemaTable, 'generated/azure_mgmt_sql/models/sync_group_schema_table.rb'
110
+ autoload :FailoverGroupListResult, 'generated/azure_mgmt_sql/models/failover_group_list_result.rb'
80
111
  autoload :DataMaskingRuleListResult, 'generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb'
81
- autoload :VirtualNetworkRuleListResult, 'generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb'
82
- autoload :FailoverGroupReadOnlyEndpoint, 'generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb'
83
- autoload :ServiceObjectiveListResult, 'generated/azure_mgmt_sql/models/service_objective_list_result.rb'
112
+ autoload :ElasticPoolActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
113
+ autoload :GeoBackupPolicyListResult, 'generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb'
114
+ autoload :FailoverGroupUpdate, 'generated/azure_mgmt_sql/models/failover_group_update.rb'
115
+ autoload :ExportRequest, 'generated/azure_mgmt_sql/models/export_request.rb'
116
+ autoload :ElasticPoolDatabaseActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb'
117
+ autoload :MetricListResult, 'generated/azure_mgmt_sql/models/metric_list_result.rb'
118
+ autoload :PartnerInfo, 'generated/azure_mgmt_sql/models/partner_info.rb'
84
119
  autoload :RestorePointListResult, 'generated/azure_mgmt_sql/models/restore_point_list_result.rb'
85
- autoload :CheckNameAvailabilityRequest, 'generated/azure_mgmt_sql/models/check_name_availability_request.rb'
120
+ autoload :DatabaseListResult, 'generated/azure_mgmt_sql/models/database_list_result.rb'
86
121
  autoload :ElasticPoolPerDatabaseMinDtuCapability, 'generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb'
87
- autoload :CheckNameAvailabilityResponse, 'generated/azure_mgmt_sql/models/check_name_availability_response.rb'
88
- autoload :ElasticPoolActivityListResult, 'generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb'
89
- autoload :RecommendedElasticPoolMetric, 'generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb'
122
+ autoload :ServiceTierAdvisorListResult, 'generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb'
123
+ autoload :SyncGroupLogListResult, 'generated/azure_mgmt_sql/models/sync_group_log_list_result.rb'
124
+ autoload :FailoverGroupReadOnlyEndpoint, 'generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb'
125
+ autoload :SyncFullSchemaTable, 'generated/azure_mgmt_sql/models/sync_full_schema_table.rb'
126
+ autoload :TransparentDataEncryptionActivityListResult, 'generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb'
127
+ autoload :MetricDefinitionListResult, 'generated/azure_mgmt_sql/models/metric_definition_list_result.rb'
90
128
  autoload :ServerUsage, 'generated/azure_mgmt_sql/models/server_usage.rb'
91
- autoload :SloUsageMetric, 'generated/azure_mgmt_sql/models/slo_usage_metric.rb'
92
129
  autoload :ServerVersionCapability, 'generated/azure_mgmt_sql/models/server_version_capability.rb'
93
- autoload :ServerUpdate, 'generated/azure_mgmt_sql/models/server_update.rb'
130
+ autoload :ServerUsageListResult, 'generated/azure_mgmt_sql/models/server_usage_list_result.rb'
131
+ autoload :MetricName, 'generated/azure_mgmt_sql/models/metric_name.rb'
132
+ autoload :DatabaseUsage, 'generated/azure_mgmt_sql/models/database_usage.rb'
133
+ autoload :FirewallRuleListResult, 'generated/azure_mgmt_sql/models/firewall_rule_list_result.rb'
134
+ autoload :DatabaseUsageListResult, 'generated/azure_mgmt_sql/models/database_usage_list_result.rb'
94
135
  autoload :RestorableDroppedDatabaseListResult, 'generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb'
95
- autoload :ServerListResult, 'generated/azure_mgmt_sql/models/server_list_result.rb'
96
- autoload :ElasticPoolListResult, 'generated/azure_mgmt_sql/models/elastic_pool_list_result.rb'
97
- autoload :OperationImpact, 'generated/azure_mgmt_sql/models/operation_impact.rb'
136
+ autoload :FailoverGroupReadWriteEndpoint, 'generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb'
98
137
  autoload :ProxyResource, 'generated/azure_mgmt_sql/models/proxy_resource.rb'
99
138
  autoload :BackupLongTermRetentionPolicy, 'generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb'
100
139
  autoload :BackupLongTermRetentionVault, 'generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb'
@@ -110,7 +149,6 @@ module Azure::ARM::SQL
110
149
  autoload :GeoBackupPolicy, 'generated/azure_mgmt_sql/models/geo_backup_policy.rb'
111
150
  autoload :ImportExportResponse, 'generated/azure_mgmt_sql/models/import_export_response.rb'
112
151
  autoload :ImportRequest, 'generated/azure_mgmt_sql/models/import_request.rb'
113
- autoload :MetricValue, 'generated/azure_mgmt_sql/models/metric_value.rb'
114
152
  autoload :ReplicationLink, 'generated/azure_mgmt_sql/models/replication_link.rb'
115
153
  autoload :ServerAzureADAdministrator, 'generated/azure_mgmt_sql/models/server_azure_adadministrator.rb'
116
154
  autoload :ServerCommunicationLink, 'generated/azure_mgmt_sql/models/server_communication_link.rb'
@@ -126,12 +164,15 @@ module Azure::ARM::SQL
126
164
  autoload :ElasticPoolDatabaseActivity, 'generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb'
127
165
  autoload :DatabaseUpdate, 'generated/azure_mgmt_sql/models/database_update.rb'
128
166
  autoload :TransparentDataEncryptionActivity, 'generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb'
129
- autoload :DatabaseUsage, 'generated/azure_mgmt_sql/models/database_usage.rb'
130
167
  autoload :DatabaseBlobAuditingPolicy, 'generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb'
131
168
  autoload :EncryptionProtector, 'generated/azure_mgmt_sql/models/encryption_protector.rb'
132
169
  autoload :FailoverGroup, 'generated/azure_mgmt_sql/models/failover_group.rb'
133
170
  autoload :ServerKey, 'generated/azure_mgmt_sql/models/server_key.rb'
134
171
  autoload :Server, 'generated/azure_mgmt_sql/models/server.rb'
172
+ autoload :SyncAgent, 'generated/azure_mgmt_sql/models/sync_agent.rb'
173
+ autoload :SyncAgentLinkedDatabase, 'generated/azure_mgmt_sql/models/sync_agent_linked_database.rb'
174
+ autoload :SyncGroup, 'generated/azure_mgmt_sql/models/sync_group.rb'
175
+ autoload :SyncMember, 'generated/azure_mgmt_sql/models/sync_member.rb'
135
176
  autoload :VirtualNetworkRule, 'generated/azure_mgmt_sql/models/virtual_network_rule.rb'
136
177
  autoload :BackupLongTermRetentionPolicyState, 'generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb'
137
178
  autoload :RestorePointType, 'generated/azure_mgmt_sql/models/restore_point_type.rb'
@@ -171,6 +212,14 @@ module Azure::ARM::SQL
171
212
  autoload :ReadWriteEndpointFailoverPolicy, 'generated/azure_mgmt_sql/models/read_write_endpoint_failover_policy.rb'
172
213
  autoload :ReadOnlyEndpointFailoverPolicy, 'generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb'
173
214
  autoload :FailoverGroupReplicationRole, 'generated/azure_mgmt_sql/models/failover_group_replication_role.rb'
215
+ autoload :OperationOrigin, 'generated/azure_mgmt_sql/models/operation_origin.rb'
174
216
  autoload :IdentityType, 'generated/azure_mgmt_sql/models/identity_type.rb'
217
+ autoload :SyncAgentState, 'generated/azure_mgmt_sql/models/sync_agent_state.rb'
218
+ autoload :SyncMemberDbType, 'generated/azure_mgmt_sql/models/sync_member_db_type.rb'
219
+ autoload :SyncGroupLogType, 'generated/azure_mgmt_sql/models/sync_group_log_type.rb'
220
+ autoload :SyncConflictResolutionPolicy, 'generated/azure_mgmt_sql/models/sync_conflict_resolution_policy.rb'
221
+ autoload :SyncGroupState, 'generated/azure_mgmt_sql/models/sync_group_state.rb'
222
+ autoload :SyncDirection, 'generated/azure_mgmt_sql/models/sync_direction.rb'
223
+ autoload :SyncMemberState, 'generated/azure_mgmt_sql/models/sync_member_state.rb'
175
224
  end
176
225
  end
@@ -0,0 +1,310 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
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 BackupLongTermRetentionPolicies
14
+ include MsRestAzure
15
+
16
+ #
17
+ # Creates and initializes a new instance of the BackupLongTermRetentionPolicies 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
+ # Returns a database backup long term retention policy
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group that
31
+ # contains the resource. You can obtain this value from the Azure Resource
32
+ # Manager API or the portal.
33
+ # @param server_name [String] The name of the server.
34
+ # @param database_name [String] The name of the database.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ # @return [BackupLongTermRetentionPolicy] operation results.
39
+ #
40
+ def get(resource_group_name, server_name, database_name, custom_headers = nil)
41
+ response = get_async(resource_group_name, server_name, database_name, custom_headers).value!
42
+ response.body unless response.nil?
43
+ end
44
+
45
+ #
46
+ # Returns a database backup long term retention policy
47
+ #
48
+ # @param resource_group_name [String] The name of the resource group that
49
+ # contains the resource. You can obtain this value from the Azure Resource
50
+ # Manager API or the portal.
51
+ # @param server_name [String] The name of the server.
52
+ # @param database_name [String] The name of the database.
53
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
54
+ # will be added to the HTTP request.
55
+ #
56
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
57
+ #
58
+ def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil)
59
+ get_async(resource_group_name, server_name, database_name, custom_headers).value!
60
+ end
61
+
62
+ #
63
+ # Returns a database backup long term retention policy
64
+ #
65
+ # @param resource_group_name [String] The name of the resource group that
66
+ # contains the resource. You can obtain this value from the Azure Resource
67
+ # Manager API or the portal.
68
+ # @param server_name [String] The name of the server.
69
+ # @param database_name [String] The name of the database.
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def get_async(resource_group_name, server_name, database_name, custom_headers = nil)
76
+ api_version = '2014-04-01'
77
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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
+ backup_long_term_retention_policy_name = 'Default'
82
+
83
+
84
+ request_headers = {}
85
+
86
+ # Set Headers
87
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
88
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
89
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{backupLongTermRetentionPolicyName}'
90
+
91
+ request_url = @base_url || @client.base_url
92
+
93
+ options = {
94
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
95
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'backupLongTermRetentionPolicyName' => backup_long_term_retention_policy_name},
96
+ query_params: {'api-version' => api_version},
97
+ headers: request_headers.merge(custom_headers || {}),
98
+ base_url: request_url
99
+ }
100
+ promise = @client.make_request_async(:get, path_template, options)
101
+
102
+ promise = promise.then do |result|
103
+ http_response = result.response
104
+ status_code = http_response.status
105
+ response_content = http_response.body
106
+ unless status_code == 200
107
+ error_model = JSON.load(response_content)
108
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
109
+ end
110
+
111
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
112
+ # Deserialize Response
113
+ if status_code == 200
114
+ begin
115
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
116
+ result_mapper = Azure::ARM::SQL::Models::BackupLongTermRetentionPolicy.mapper()
117
+ result.body = @client.deserialize(result_mapper, parsed_response)
118
+ rescue Exception => e
119
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
120
+ end
121
+ end
122
+
123
+ result
124
+ end
125
+
126
+ promise.execute
127
+ end
128
+
129
+ #
130
+ # Creates or updates a database backup long term retention policy
131
+ #
132
+ # @param resource_group_name [String] The name of the resource group that
133
+ # contains the resource. You can obtain this value from the Azure Resource
134
+ # Manager API or the portal.
135
+ # @param server_name [String] The name of the server.
136
+ # @param database_name [String] The name of the database
137
+ # @param parameters [BackupLongTermRetentionPolicy] The required parameters to
138
+ # update a backup long term retention policy
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [BackupLongTermRetentionPolicy] operation results.
143
+ #
144
+ def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
145
+ response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
146
+ response.body unless response.nil?
147
+ end
148
+
149
+ #
150
+ # @param resource_group_name [String] The name of the resource group that
151
+ # contains the resource. You can obtain this value from the Azure Resource
152
+ # Manager API or the portal.
153
+ # @param server_name [String] The name of the server.
154
+ # @param database_name [String] The name of the database
155
+ # @param parameters [BackupLongTermRetentionPolicy] The required parameters to
156
+ # update a backup long term retention policy
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [Concurrent::Promise] promise which provides async access to http
161
+ # response.
162
+ #
163
+ def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
164
+ # Send request
165
+ promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers)
166
+
167
+ promise = promise.then do |response|
168
+ # Defining deserialization method.
169
+ deserialize_method = lambda do |parsed_response|
170
+ result_mapper = Azure::ARM::SQL::Models::BackupLongTermRetentionPolicy.mapper()
171
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
172
+ end
173
+
174
+ # Waiting for response.
175
+ @client.get_long_running_operation_result(response, deserialize_method)
176
+ end
177
+
178
+ promise
179
+ end
180
+
181
+ #
182
+ # Creates or updates a database backup long term retention policy
183
+ #
184
+ # @param resource_group_name [String] The name of the resource group that
185
+ # contains the resource. You can obtain this value from the Azure Resource
186
+ # Manager API or the portal.
187
+ # @param server_name [String] The name of the server.
188
+ # @param database_name [String] The name of the database
189
+ # @param parameters [BackupLongTermRetentionPolicy] The required parameters to
190
+ # update a backup long term retention policy
191
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
192
+ # will be added to the HTTP request.
193
+ #
194
+ # @return [BackupLongTermRetentionPolicy] operation results.
195
+ #
196
+ def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
197
+ response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
198
+ response.body unless response.nil?
199
+ end
200
+
201
+ #
202
+ # Creates or updates a database backup long term retention policy
203
+ #
204
+ # @param resource_group_name [String] The name of the resource group that
205
+ # contains the resource. You can obtain this value from the Azure Resource
206
+ # Manager API or the portal.
207
+ # @param server_name [String] The name of the server.
208
+ # @param database_name [String] The name of the database
209
+ # @param parameters [BackupLongTermRetentionPolicy] The required parameters to
210
+ # update a backup long term retention policy
211
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
212
+ # will be added to the HTTP request.
213
+ #
214
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
215
+ #
216
+ def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
217
+ begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value!
218
+ end
219
+
220
+ #
221
+ # Creates or updates a database backup long term retention policy
222
+ #
223
+ # @param resource_group_name [String] The name of the resource group that
224
+ # contains the resource. You can obtain this value from the Azure Resource
225
+ # Manager API or the portal.
226
+ # @param server_name [String] The name of the server.
227
+ # @param database_name [String] The name of the database
228
+ # @param parameters [BackupLongTermRetentionPolicy] The required parameters to
229
+ # update a backup long term retention policy
230
+ # @param [Hash{String => String}] A hash of custom headers that will be added
231
+ # to the HTTP request.
232
+ #
233
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
234
+ #
235
+ def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil)
236
+ api_version = '2014-04-01'
237
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
238
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
239
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
240
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
241
+ backup_long_term_retention_policy_name = 'Default'
242
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
243
+
244
+
245
+ request_headers = {}
246
+
247
+ # Set Headers
248
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
249
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
250
+
251
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
252
+
253
+ # Serialize Request
254
+ request_mapper = Azure::ARM::SQL::Models::BackupLongTermRetentionPolicy.mapper()
255
+ request_content = @client.serialize(request_mapper, parameters)
256
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
257
+
258
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{backupLongTermRetentionPolicyName}'
259
+
260
+ request_url = @base_url || @client.base_url
261
+
262
+ options = {
263
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
264
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'backupLongTermRetentionPolicyName' => backup_long_term_retention_policy_name},
265
+ query_params: {'api-version' => api_version},
266
+ body: request_content,
267
+ headers: request_headers.merge(custom_headers || {}),
268
+ base_url: request_url
269
+ }
270
+ promise = @client.make_request_async(:put, path_template, options)
271
+
272
+ promise = promise.then do |result|
273
+ http_response = result.response
274
+ status_code = http_response.status
275
+ response_content = http_response.body
276
+ unless status_code == 200 || status_code == 201 || status_code == 202
277
+ error_model = JSON.load(response_content)
278
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
279
+ end
280
+
281
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
282
+ # Deserialize Response
283
+ if status_code == 200
284
+ begin
285
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
286
+ result_mapper = Azure::ARM::SQL::Models::BackupLongTermRetentionPolicy.mapper()
287
+ result.body = @client.deserialize(result_mapper, parsed_response)
288
+ rescue Exception => e
289
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
290
+ end
291
+ end
292
+ # Deserialize Response
293
+ if status_code == 201
294
+ begin
295
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
296
+ result_mapper = Azure::ARM::SQL::Models::BackupLongTermRetentionPolicy.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
+ end
310
+ end