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
@@ -102,7 +102,7 @@ module Azure::ARM::SQL
102
102
  }
103
103
  },
104
104
  read_write_endpoint: {
105
- required: false,
105
+ required: true,
106
106
  serialized_name: 'properties.readWriteEndpoint',
107
107
  type: {
108
108
  name: 'Composite',
@@ -134,7 +134,7 @@ module Azure::ARM::SQL
134
134
  }
135
135
  },
136
136
  partner_servers: {
137
- required: false,
137
+ required: true,
138
138
  serialized_name: 'properties.partnerServers',
139
139
  type: {
140
140
  name: 'Sequence',
@@ -14,12 +14,14 @@ module Azure::ARM::SQL
14
14
 
15
15
  include MsRest::JSONable
16
16
  # @return [ReadWriteEndpointFailoverPolicy] Failover policy of the
17
- # read-write endpoint for the failover group. Possible values include:
18
- # 'Manual', 'Automatic'
17
+ # read-write endpoint for the failover group. If failoverPolicy is
18
+ # Automatic then failoverWithDataLossGracePeriodMinutes is required.
19
+ # Possible values include: 'Manual', 'Automatic'
19
20
  attr_accessor :failover_policy
20
21
 
21
22
  # @return [Integer] Grace period before failover with data loss is
22
- # attempted for the read-write endpoint.
23
+ # attempted for the read-write endpoint. If failoverPolicy is Automatic
24
+ # then failoverWithDataLossGracePeriodMinutes is required.
23
25
  attr_accessor :failover_with_data_loss_grace_period_minutes
24
26
 
25
27
 
@@ -36,7 +38,7 @@ module Azure::ARM::SQL
36
38
  class_name: 'FailoverGroupReadWriteEndpoint',
37
39
  model_properties: {
38
40
  failover_policy: {
39
- required: false,
41
+ required: true,
40
42
  serialized_name: 'failoverPolicy',
41
43
  type: {
42
44
  name: 'String'
@@ -0,0 +1,93 @@
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
+ module Models
8
+ #
9
+ # A failover group update request.
10
+ #
11
+ class FailoverGroupUpdate
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [FailoverGroupReadWriteEndpoint] Read-write endpoint of the
17
+ # failover group instance.
18
+ attr_accessor :read_write_endpoint
19
+
20
+ # @return [FailoverGroupReadOnlyEndpoint] Read-only endpoint of the
21
+ # failover group instance.
22
+ attr_accessor :read_only_endpoint
23
+
24
+ # @return [Array<String>] List of databases in the failover group.
25
+ attr_accessor :databases
26
+
27
+ # @return [Hash{String => String}] Resource tags.
28
+ attr_accessor :tags
29
+
30
+
31
+ #
32
+ # Mapper for FailoverGroupUpdate class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'FailoverGroupUpdate',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'FailoverGroupUpdate',
42
+ model_properties: {
43
+ read_write_endpoint: {
44
+ required: false,
45
+ serialized_name: 'properties.readWriteEndpoint',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'FailoverGroupReadWriteEndpoint'
49
+ }
50
+ },
51
+ read_only_endpoint: {
52
+ required: false,
53
+ serialized_name: 'properties.readOnlyEndpoint',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'FailoverGroupReadOnlyEndpoint'
57
+ }
58
+ },
59
+ databases: {
60
+ required: false,
61
+ serialized_name: 'properties.databases',
62
+ type: {
63
+ name: 'Sequence',
64
+ element: {
65
+ required: false,
66
+ serialized_name: 'StringElementType',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ }
71
+ }
72
+ },
73
+ tags: {
74
+ required: false,
75
+ serialized_name: 'tags',
76
+ type: {
77
+ name: 'Dictionary',
78
+ value: {
79
+ required: false,
80
+ serialized_name: 'StringElementType',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -8,7 +8,7 @@ module Azure::ARM::SQL
8
8
  #
9
9
  # Represents a server firewall rule.
10
10
  #
11
- class FirewallRule < SubResource
11
+ class FirewallRule < ProxyResource
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -20,9 +20,6 @@ module Azure::ARM::SQL
20
20
  # rule.
21
21
  attr_accessor :location
22
22
 
23
- # @return [String] Type of resource this is.
24
- attr_accessor :type
25
-
26
23
  # @return [String] The start IP address of the firewall rule. Must be
27
24
  # IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP
28
25
  # addresses.
@@ -46,42 +43,42 @@ module Azure::ARM::SQL
46
43
  name: 'Composite',
47
44
  class_name: 'FirewallRule',
48
45
  model_properties: {
49
- name: {
46
+ id: {
50
47
  required: false,
51
48
  read_only: true,
52
- serialized_name: 'name',
49
+ serialized_name: 'id',
53
50
  type: {
54
51
  name: 'String'
55
52
  }
56
53
  },
57
- id: {
54
+ name: {
58
55
  required: false,
59
56
  read_only: true,
60
- serialized_name: 'id',
57
+ serialized_name: 'name',
61
58
  type: {
62
59
  name: 'String'
63
60
  }
64
61
  },
65
- kind: {
62
+ type: {
66
63
  required: false,
67
64
  read_only: true,
68
- serialized_name: 'kind',
65
+ serialized_name: 'type',
69
66
  type: {
70
67
  name: 'String'
71
68
  }
72
69
  },
73
- location: {
70
+ kind: {
74
71
  required: false,
75
72
  read_only: true,
76
- serialized_name: 'location',
73
+ serialized_name: 'kind',
77
74
  type: {
78
75
  name: 'String'
79
76
  }
80
77
  },
81
- type: {
78
+ location: {
82
79
  required: false,
83
80
  read_only: true,
84
- serialized_name: 'type',
81
+ serialized_name: 'location',
85
82
  type: {
86
83
  name: 'String'
87
84
  }
@@ -8,7 +8,7 @@ module Azure::ARM::SQL
8
8
  #
9
9
  # Represents database metrics.
10
10
  #
11
- class MetricValue < SubResource
11
+ class MetricValue
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -44,22 +44,6 @@ module Azure::ARM::SQL
44
44
  name: 'Composite',
45
45
  class_name: 'MetricValue',
46
46
  model_properties: {
47
- name: {
48
- required: false,
49
- read_only: true,
50
- serialized_name: 'name',
51
- type: {
52
- name: 'String'
53
- }
54
- },
55
- id: {
56
- required: false,
57
- read_only: true,
58
- serialized_name: 'id',
59
- type: {
60
- name: 'String'
61
- }
62
- },
63
47
  count: {
64
48
  required: false,
65
49
  read_only: true,
@@ -13,13 +13,21 @@ module Azure::ARM::SQL
13
13
  include MsRestAzure
14
14
 
15
15
  include MsRest::JSONable
16
- # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ # @return [String] The name of the operation being performed on this
17
+ # particular object.
17
18
  attr_accessor :name
18
19
 
19
- # @return [OperationDisplay] Display metadata associated with the
20
- # operation.
20
+ # @return [OperationDisplay] The localized display information for this
21
+ # particular operation / action.
21
22
  attr_accessor :display
22
23
 
24
+ # @return [OperationOrigin] The intended executor of the operation.
25
+ # Possible values include: 'user', 'system'
26
+ attr_accessor :origin
27
+
28
+ # @return Additional descriptions for the operation.
29
+ attr_accessor :properties
30
+
23
31
 
24
32
  #
25
33
  # Mapper for Operation class as Ruby Hash.
@@ -35,6 +43,7 @@ module Azure::ARM::SQL
35
43
  model_properties: {
36
44
  name: {
37
45
  required: false,
46
+ read_only: true,
38
47
  serialized_name: 'name',
39
48
  type: {
40
49
  name: 'String'
@@ -42,11 +51,35 @@ module Azure::ARM::SQL
42
51
  },
43
52
  display: {
44
53
  required: false,
54
+ read_only: true,
45
55
  serialized_name: 'display',
46
56
  type: {
47
57
  name: 'Composite',
48
58
  class_name: 'OperationDisplay'
49
59
  }
60
+ },
61
+ origin: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'origin',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ properties: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'properties',
73
+ type: {
74
+ name: 'Dictionary',
75
+ value: {
76
+ required: false,
77
+ serialized_name: 'ObjectElementType',
78
+ type: {
79
+ name: 'Object'
80
+ }
81
+ }
82
+ }
50
83
  }
51
84
  }
52
85
  }
@@ -13,16 +13,20 @@ module Azure::ARM::SQL
13
13
  include MsRestAzure
14
14
 
15
15
  include MsRest::JSONable
16
- # @return [String] Service provider: Microsoft SQL Database.
16
+ # @return [String] The localized friendly form of the resource provider
17
+ # name.
17
18
  attr_accessor :provider
18
19
 
19
- # @return [String] Resource on which the operation is performed: Server,
20
- # Database, etc.
20
+ # @return [String] The localized friendly form of the resource type
21
+ # related to this action/operation.
21
22
  attr_accessor :resource
22
23
 
23
- # @return [String] Type of operation: get, read, delete, etc.
24
+ # @return [String] The localized friendly name for the operation.
24
25
  attr_accessor :operation
25
26
 
27
+ # @return [String] The localized friendly description for the operation.
28
+ attr_accessor :description
29
+
26
30
 
27
31
  #
28
32
  # Mapper for OperationDisplay class as Ruby Hash.
@@ -31,13 +35,14 @@ module Azure::ARM::SQL
31
35
  def self.mapper()
32
36
  {
33
37
  required: false,
34
- serialized_name: 'Operation_display',
38
+ serialized_name: 'OperationDisplay',
35
39
  type: {
36
40
  name: 'Composite',
37
41
  class_name: 'OperationDisplay',
38
42
  model_properties: {
39
43
  provider: {
40
44
  required: false,
45
+ read_only: true,
41
46
  serialized_name: 'provider',
42
47
  type: {
43
48
  name: 'String'
@@ -45,6 +50,7 @@ module Azure::ARM::SQL
45
50
  },
46
51
  resource: {
47
52
  required: false,
53
+ read_only: true,
48
54
  serialized_name: 'resource',
49
55
  type: {
50
56
  name: 'String'
@@ -52,10 +58,19 @@ module Azure::ARM::SQL
52
58
  },
53
59
  operation: {
54
60
  required: false,
61
+ read_only: true,
55
62
  serialized_name: 'operation',
56
63
  type: {
57
64
  name: 'String'
58
65
  }
66
+ },
67
+ description: {
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'description',
71
+ type: {
72
+ name: 'String'
73
+ }
59
74
  }
60
75
  }
61
76
  }
@@ -6,22 +6,50 @@
6
6
  module Azure::ARM::SQL
7
7
  module Models
8
8
  #
9
- # Result of the request to list SQL operations. It contains a list of
10
- # operations and a URL link to get the next set of results.
9
+ # Result of the request to list SQL operations.
11
10
  #
12
11
  class OperationListResult
13
12
 
14
13
  include MsRestAzure
15
14
 
16
15
  include MsRest::JSONable
17
- # @return [Array<Operation>] List of SQL operations supported by the SQL
18
- # resource provider.
16
+ # @return [Array<Operation>] Array of results.
19
17
  attr_accessor :value
20
18
 
21
- # @return [String] URL to get the next set of operation list results if
22
- # there are any.
19
+ # @return [String] Link to retrieve next page of results.
23
20
  attr_accessor :next_link
24
21
 
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<Operation>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [OperationListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
25
53
 
26
54
  #
27
55
  # Mapper for OperationListResult class as Ruby Hash.
@@ -37,6 +65,7 @@ module Azure::ARM::SQL
37
65
  model_properties: {
38
66
  value: {
39
67
  required: false,
68
+ read_only: true,
40
69
  serialized_name: 'value',
41
70
  type: {
42
71
  name: 'Sequence',
@@ -52,6 +81,7 @@ module Azure::ARM::SQL
52
81
  },
53
82
  next_link: {
54
83
  required: false,
84
+ read_only: true,
55
85
  serialized_name: 'nextLink',
56
86
  type: {
57
87
  name: 'String'