oci 2.4.6 → 2.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/lib/oci.rb +2 -0
  4. data/lib/oci/database/database.rb +1 -0
  5. data/lib/oci/database/models/database.rb +18 -4
  6. data/lib/oci/database/models/database_connection_strings.rb +182 -0
  7. data/lib/oci/database/models/database_summary.rb +18 -4
  8. data/lib/oci/dns/dns.rb +23 -0
  9. data/lib/oci/dns/dns_client.rb +802 -75
  10. data/lib/oci/dns/dns_client_composite_operations.rb +238 -0
  11. data/lib/oci/dns/models/create_steering_policy_attachment_details.rb +205 -0
  12. data/lib/oci/dns/models/create_steering_policy_details.rb +333 -0
  13. data/lib/oci/dns/models/steering_policy.rb +418 -0
  14. data/lib/oci/dns/models/steering_policy_answer.rb +205 -0
  15. data/lib/oci/dns/models/steering_policy_attachment.rb +308 -0
  16. data/lib/oci/dns/models/steering_policy_attachment_summary.rb +304 -0
  17. data/lib/oci/dns/models/steering_policy_filter_answer_data.rb +168 -0
  18. data/lib/oci/dns/models/steering_policy_filter_rule.rb +178 -0
  19. data/lib/oci/dns/models/steering_policy_filter_rule_case.rb +165 -0
  20. data/lib/oci/dns/models/steering_policy_health_rule.rb +160 -0
  21. data/lib/oci/dns/models/steering_policy_health_rule_case.rb +152 -0
  22. data/lib/oci/dns/models/steering_policy_limit_rule.rb +179 -0
  23. data/lib/oci/dns/models/steering_policy_limit_rule_case.rb +162 -0
  24. data/lib/oci/dns/models/steering_policy_priority_answer_data.rb +161 -0
  25. data/lib/oci/dns/models/steering_policy_priority_rule.rb +178 -0
  26. data/lib/oci/dns/models/steering_policy_priority_rule_case.rb +165 -0
  27. data/lib/oci/dns/models/steering_policy_rule.rb +237 -0
  28. data/lib/oci/dns/models/steering_policy_summary.rb +391 -0
  29. data/lib/oci/dns/models/steering_policy_weighted_answer_data.rb +161 -0
  30. data/lib/oci/dns/models/steering_policy_weighted_rule.rb +178 -0
  31. data/lib/oci/dns/models/steering_policy_weighted_rule_case.rb +165 -0
  32. data/lib/oci/dns/models/update_steering_policy_attachment_details.rb +156 -0
  33. data/lib/oci/dns/models/update_steering_policy_details.rb +319 -0
  34. data/lib/oci/email/email.rb +1 -0
  35. data/lib/oci/email/email_client.rb +87 -16
  36. data/lib/oci/email/email_client_composite_operations.rb +40 -0
  37. data/lib/oci/email/models/create_sender_details.rb +40 -6
  38. data/lib/oci/email/models/create_suppression_details.rb +2 -2
  39. data/lib/oci/email/models/sender.rb +53 -5
  40. data/lib/oci/email/models/sender_summary.rb +38 -4
  41. data/lib/oci/email/models/suppression.rb +20 -3
  42. data/lib/oci/email/models/update_sender_details.rb +174 -0
  43. data/lib/oci/healthchecks/health_checks_client.rb +1137 -0
  44. data/lib/oci/healthchecks/health_checks_client_composite_operations.rb +24 -0
  45. data/lib/oci/healthchecks/healthchecks.rb +41 -0
  46. data/lib/oci/healthchecks/models/connection.rb +159 -0
  47. data/lib/oci/healthchecks/models/create_http_monitor_details.rb +359 -0
  48. data/lib/oci/healthchecks/models/create_on_demand_http_probe_details.rb +278 -0
  49. data/lib/oci/healthchecks/models/create_on_demand_ping_probe_details.rb +229 -0
  50. data/lib/oci/healthchecks/models/create_ping_monitor_details.rb +310 -0
  51. data/lib/oci/healthchecks/models/dns.rb +165 -0
  52. data/lib/oci/healthchecks/models/geolocation.rb +239 -0
  53. data/lib/oci/healthchecks/models/health_checks_vantage_point_summary.rb +211 -0
  54. data/lib/oci/healthchecks/models/http_monitor.rb +395 -0
  55. data/lib/oci/healthchecks/models/http_monitor_summary.rb +290 -0
  56. data/lib/oci/healthchecks/models/http_probe.rb +314 -0
  57. data/lib/oci/healthchecks/models/http_probe_method.rb +10 -0
  58. data/lib/oci/healthchecks/models/http_probe_protocol.rb +10 -0
  59. data/lib/oci/healthchecks/models/http_probe_result_summary.rb +542 -0
  60. data/lib/oci/healthchecks/models/ping_monitor.rb +340 -0
  61. data/lib/oci/healthchecks/models/ping_monitor_summary.rb +290 -0
  62. data/lib/oci/healthchecks/models/ping_probe.rb +259 -0
  63. data/lib/oci/healthchecks/models/ping_probe_protocol.rb +10 -0
  64. data/lib/oci/healthchecks/models/ping_probe_result_summary.rb +418 -0
  65. data/lib/oci/healthchecks/models/routing.rb +192 -0
  66. data/lib/oci/healthchecks/models/tcp_connection.rb +189 -0
  67. data/lib/oci/healthchecks/models/update_http_monitor_details.rb +339 -0
  68. data/lib/oci/healthchecks/models/update_ping_monitor_details.rb +292 -0
  69. data/lib/oci/healthchecks/util.rb +2 -0
  70. data/lib/oci/regions.rb +3 -1
  71. data/lib/oci/version.rb +1 -1
  72. data/lib/oci/waas/models/access_rule.rb +283 -0
  73. data/lib/oci/waas/models/access_rule_criteria.rb +206 -0
  74. data/lib/oci/waas/models/address_rate_limiting.rb +195 -0
  75. data/lib/oci/waas/models/block_challenge_settings.rb +288 -0
  76. data/lib/oci/waas/models/captcha.rb +231 -0
  77. data/lib/oci/waas/models/certificate.rb +383 -0
  78. data/lib/oci/waas/models/certificate_extensions.rb +170 -0
  79. data/lib/oci/waas/models/certificate_public_key_info.rb +170 -0
  80. data/lib/oci/waas/models/certificate_subject_name.rb +218 -0
  81. data/lib/oci/waas/models/certificate_summary.rb +274 -0
  82. data/lib/oci/waas/models/create_certificate_details.rb +241 -0
  83. data/lib/oci/waas/models/create_waas_policy_details.rb +257 -0
  84. data/lib/oci/waas/models/device_fingerprint_challenge.rb +268 -0
  85. data/lib/oci/waas/models/edge_subnet.rb +173 -0
  86. data/lib/oci/waas/models/good_bot.rb +183 -0
  87. data/lib/oci/waas/models/header.rb +159 -0
  88. data/lib/oci/waas/models/human_interaction_challenge.rb +282 -0
  89. data/lib/oci/waas/models/js_challenge.rb +240 -0
  90. data/lib/oci/waas/models/lifecycle_states.rb +14 -0
  91. data/lib/oci/waas/models/origin.rb +191 -0
  92. data/lib/oci/waas/models/policy_config.rb +181 -0
  93. data/lib/oci/waas/models/protection_rule.rb +237 -0
  94. data/lib/oci/waas/models/protection_rule_action.rb +185 -0
  95. data/lib/oci/waas/models/protection_rule_exclusion.rb +182 -0
  96. data/lib/oci/waas/models/protection_settings.rb +404 -0
  97. data/lib/oci/waas/models/recommendation.rb +210 -0
  98. data/lib/oci/waas/models/threat_feed.rb +202 -0
  99. data/lib/oci/waas/models/threat_feed_action.rb +175 -0
  100. data/lib/oci/waas/models/update_certificate_details.rb +183 -0
  101. data/lib/oci/waas/models/update_waas_policy_details.rb +233 -0
  102. data/lib/oci/waas/models/waas_policy.rb +331 -0
  103. data/lib/oci/waas/models/waas_policy_summary.rb +271 -0
  104. data/lib/oci/waas/models/waf_blocked_request.rb +219 -0
  105. data/lib/oci/waas/models/waf_config.rb +295 -0
  106. data/lib/oci/waas/models/waf_config_details.rb +253 -0
  107. data/lib/oci/waas/models/waf_log.rb +510 -0
  108. data/lib/oci/waas/models/waf_meter_datum.rb +279 -0
  109. data/lib/oci/waas/models/waf_request.rb +177 -0
  110. data/lib/oci/waas/models/waf_traffic_datum.rb +223 -0
  111. data/lib/oci/waas/models/whitelist.rb +159 -0
  112. data/lib/oci/waas/models/work_request.rb +322 -0
  113. data/lib/oci/waas/models/work_request_error.rb +170 -0
  114. data/lib/oci/waas/models/work_request_log_entry.rb +159 -0
  115. data/lib/oci/waas/models/work_request_operation_types.rb +12 -0
  116. data/lib/oci/waas/models/work_request_resource.rb +217 -0
  117. data/lib/oci/waas/models/work_request_status_values.rb +14 -0
  118. data/lib/oci/waas/models/work_request_summary.rb +302 -0
  119. data/lib/oci/waas/util.rb +2 -0
  120. data/lib/oci/waas/waas.rb +66 -0
  121. data/lib/oci/waas/waas_client.rb +3044 -0
  122. data/lib/oci/waas/waas_client_composite_operations.rb +990 -0
  123. metadata +105 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9102d161d8cf5b8b9da3293c5c47b1aecd7c46b6590d83acd4daef1f4665b7f7
4
- data.tar.gz: 6d274676398027806c4241bbdcb1cd89cfeb28b621975535d699ec29e8c71508
3
+ metadata.gz: 8636927b21dc67d2ae17488d1ec9c596173f22d2f948ec53cd05f729afa6ba6f
4
+ data.tar.gz: 47feb57d3901f8c676f3aca869b6999458958915ef9b8aeca1a08810cdfd7cee
5
5
  SHA512:
6
- metadata.gz: e7dd89624fbc3871ea76946a3e670b06c287dade7d8b5d69395c1d007fa6af0f343d2879300f5952f3eba4b2629a8d904fad8c6fd5800af3f4d48a0fa36da8b8
7
- data.tar.gz: b3871a0c43b16b8d32f629f4f182959d3c12749d4f4b678b8d09ce6da921f7813db5cf1e43e12e072711be7bcc61502019f836659a4e51a169528f6ee873d730
6
+ metadata.gz: e42a878254106a66b9fceadb34cf66d108fae2188f50d8ecda3f6763d9855419d4b0232e9cb870a8b6504a38d500d7149febac88f5d723c584b2d5d2c4e843c2
7
+ data.tar.gz: 637fb65574d6bc7fe79d9d0d31088f389ae312a4d9cc50ab54948544eb77d5dcc686e0d1aa9aa75e5929b4b3afd4627c707eddaaee3d167081726c63cb128aca
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.4.6**
2
+ **Version 2.4.7**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -15,11 +15,13 @@ The Ruby SDK supports the following services:
15
15
  * Domain Name System
16
16
  * Email
17
17
  * File Storage
18
+ * Health Checks
18
19
  * Identity and Access Management
19
20
  * Key Management
20
21
  * Load Balancing
21
22
  * Object Storage
22
23
  * Search
24
+ * Web Application Acceleration and Security
23
25
 
24
26
  **Licensing:** This SDK and sample is dual licensed under the Universal Permissive License 1.0 and the Apache License.
25
27
 
data/lib/oci.rb CHANGED
@@ -31,6 +31,8 @@ require 'oci/object_storage/transfer/transfer'
31
31
  require 'oci/resource_search/resource_search'
32
32
  require 'oci/key_management/key_management'
33
33
  require 'oci/announcements_service/announcements_service'
34
+ require 'oci/waas/waas'
35
+ require 'oci/healthchecks/healthchecks'
34
36
 
35
37
  # Top level module for the Oracle Cloud Infrastructure SDK
36
38
  module OCI
@@ -42,6 +42,7 @@ require 'oci/database/models/create_external_backup_job_details'
42
42
  require 'oci/database/models/data_guard_association'
43
43
  require 'oci/database/models/data_guard_association_summary'
44
44
  require 'oci/database/models/database'
45
+ require 'oci/database/models/database_connection_strings'
45
46
  require 'oci/database/models/database_summary'
46
47
  require 'oci/database/models/db_backup_config'
47
48
  require 'oci/database/models/db_home'
@@ -87,6 +87,10 @@ module OCI
87
87
  # @return [Hash<String, Hash<String, Object>>]
88
88
  attr_accessor :defined_tags
89
89
 
90
+ # The Connection strings used to connect to the Oracle Database.
91
+ # @return [OCI::Database::Models::DatabaseConnectionStrings]
92
+ attr_accessor :connection_strings
93
+
90
94
  # Attribute mapping from ruby-style variable name to JSON key.
91
95
  def self.attribute_map
92
96
  {
@@ -105,7 +109,8 @@ module OCI
105
109
  'time_created': :'timeCreated',
106
110
  'db_backup_config': :'dbBackupConfig',
107
111
  'freeform_tags': :'freeformTags',
108
- 'defined_tags': :'definedTags'
112
+ 'defined_tags': :'definedTags',
113
+ 'connection_strings': :'connectionStrings'
109
114
  # rubocop:enable Style/SymbolLiteral
110
115
  }
111
116
  end
@@ -128,7 +133,8 @@ module OCI
128
133
  'time_created': :'DateTime',
129
134
  'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
130
135
  'freeform_tags': :'Hash<String, String>',
131
- 'defined_tags': :'Hash<String, Hash<String, Object>>'
136
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
137
+ 'connection_strings': :'OCI::Database::Models::DatabaseConnectionStrings'
132
138
  # rubocop:enable Style/SymbolLiteral
133
139
  }
134
140
  end
@@ -154,6 +160,7 @@ module OCI
154
160
  # @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
155
161
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
156
162
  # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
163
+ # @option attributes [OCI::Database::Models::DatabaseConnectionStrings] :connection_strings The value to assign to the {#connection_strings} property
157
164
  def initialize(attributes = {})
158
165
  return unless attributes.is_a?(Hash)
159
166
 
@@ -242,6 +249,12 @@ module OCI
242
249
  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
243
250
 
244
251
  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
252
+
253
+ self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings']
254
+
255
+ raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings')
256
+
257
+ self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings']
245
258
  end
246
259
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
247
260
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -284,7 +297,8 @@ module OCI
284
297
  time_created == other.time_created &&
285
298
  db_backup_config == other.db_backup_config &&
286
299
  freeform_tags == other.freeform_tags &&
287
- defined_tags == other.defined_tags
300
+ defined_tags == other.defined_tags &&
301
+ connection_strings == other.connection_strings
288
302
  end
289
303
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
290
304
 
@@ -300,7 +314,7 @@ module OCI
300
314
  # Calculates hash code according to all attributes.
301
315
  # @return [Fixnum] Hash code
302
316
  def hash
303
- [id, compartment_id, character_set, ncharacter_set, db_home_id, db_name, pdb_name, db_workload, db_unique_name, lifecycle_details, lifecycle_state, time_created, db_backup_config, freeform_tags, defined_tags].hash
317
+ [id, compartment_id, character_set, ncharacter_set, db_home_id, db_name, pdb_name, db_workload, db_unique_name, lifecycle_details, lifecycle_state, time_created, db_backup_config, freeform_tags, defined_tags, connection_strings].hash
304
318
  end
305
319
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
306
320
 
@@ -0,0 +1,182 @@
1
+ # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+
5
+ # rubocop:disable Lint/UnneededCopDisableDirective
6
+ module OCI
7
+ # Connection strings to connect to an Oracle Database.
8
+ #
9
+ class Database::Models::DatabaseConnectionStrings # rubocop:disable Metrics/LineLength
10
+ # Host name based CDB Connection String.
11
+ # @return [String]
12
+ attr_accessor :cdb_default
13
+
14
+ # IP based CDB Connection String.
15
+ # @return [String]
16
+ attr_accessor :cdb_ip_default
17
+
18
+ # All connection strings to use to connect to the Database.
19
+ # @return [Hash<String, String>]
20
+ attr_accessor :all_connection_strings
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ # rubocop:disable Style/SymbolLiteral
26
+ 'cdb_default': :'cdbDefault',
27
+ 'cdb_ip_default': :'cdbIpDefault',
28
+ 'all_connection_strings': :'allConnectionStrings'
29
+ # rubocop:enable Style/SymbolLiteral
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ # rubocop:disable Style/SymbolLiteral
37
+ 'cdb_default': :'String',
38
+ 'cdb_ip_default': :'String',
39
+ 'all_connection_strings': :'Hash<String, String>'
40
+ # rubocop:enable Style/SymbolLiteral
41
+ }
42
+ end
43
+
44
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
45
+ # rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
46
+
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ # @option attributes [String] :cdb_default The value to assign to the {#cdb_default} property
51
+ # @option attributes [String] :cdb_ip_default The value to assign to the {#cdb_ip_default} property
52
+ # @option attributes [Hash<String, String>] :all_connection_strings The value to assign to the {#all_connection_strings} property
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
+
59
+ self.cdb_default = attributes[:'cdbDefault'] if attributes[:'cdbDefault']
60
+
61
+ raise 'You cannot provide both :cdbDefault and :cdb_default' if attributes.key?(:'cdbDefault') && attributes.key?(:'cdb_default')
62
+
63
+ self.cdb_default = attributes[:'cdb_default'] if attributes[:'cdb_default']
64
+
65
+ self.cdb_ip_default = attributes[:'cdbIpDefault'] if attributes[:'cdbIpDefault']
66
+
67
+ raise 'You cannot provide both :cdbIpDefault and :cdb_ip_default' if attributes.key?(:'cdbIpDefault') && attributes.key?(:'cdb_ip_default')
68
+
69
+ self.cdb_ip_default = attributes[:'cdb_ip_default'] if attributes[:'cdb_ip_default']
70
+
71
+ self.all_connection_strings = attributes[:'allConnectionStrings'] if attributes[:'allConnectionStrings']
72
+
73
+ raise 'You cannot provide both :allConnectionStrings and :all_connection_strings' if attributes.key?(:'allConnectionStrings') && attributes.key?(:'all_connection_strings')
74
+
75
+ self.all_connection_strings = attributes[:'all_connection_strings'] if attributes[:'all_connection_strings']
76
+ end
77
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
78
+ # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
79
+
80
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
81
+
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] other the other object to be compared
85
+ def ==(other)
86
+ return true if equal?(other)
87
+
88
+ self.class == other.class &&
89
+ cdb_default == other.cdb_default &&
90
+ cdb_ip_default == other.cdb_ip_default &&
91
+ all_connection_strings == other.all_connection_strings
92
+ end
93
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
94
+
95
+ # @see the `==` method
96
+ # @param [Object] other the other object to be compared
97
+ def eql?(other)
98
+ self == other
99
+ end
100
+
101
+ # rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
102
+
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [cdb_default, cdb_ip_default, all_connection_strings].hash
108
+ end
109
+ # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
110
+
111
+ # rubocop:disable Metrics/AbcSize, Layout/EmptyLines
112
+
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+
120
+ self.class.swagger_types.each_pair do |key, type|
121
+ if type =~ /^Array<(.*)>/i
122
+ # check to ensure the input is an array given that the the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ public_method("#{key}=").call(
126
+ attributes[self.class.attribute_map[key]]
127
+ .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
128
+ )
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ public_method("#{key}=").call(
132
+ OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
133
+ )
134
+ end
135
+ # or else data not found in attributes(hash), not an issue as the data can be optional
136
+ end
137
+
138
+ self
139
+ end
140
+ # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
141
+
142
+ # Returns the string representation of the object
143
+ # @return [String] String presentation of the object
144
+ def to_s
145
+ to_hash.to_s
146
+ end
147
+
148
+ # Returns the object in the form of hash
149
+ # @return [Hash] Returns the object in the form of hash
150
+ def to_hash
151
+ hash = {}
152
+ self.class.attribute_map.each_pair do |attr, param|
153
+ value = public_method(attr).call
154
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
155
+
156
+ hash[param] = _to_hash(value)
157
+ end
158
+ hash
159
+ end
160
+
161
+ private
162
+
163
+ # Outputs non-array value in the form of hash
164
+ # For object, use to_hash. Otherwise, just return the value
165
+ # @param [Object] value Any valid value
166
+ # @return [Hash] Returns the value in the form of hash
167
+ def _to_hash(value)
168
+ if value.is_a?(Array)
169
+ value.compact.map { |v| _to_hash(v) }
170
+ elsif value.is_a?(Hash)
171
+ {}.tap do |hash|
172
+ value.each { |k, v| hash[k] = _to_hash(v) }
173
+ end
174
+ elsif value.respond_to? :to_hash
175
+ value.to_hash
176
+ else
177
+ value
178
+ end
179
+ end
180
+ end
181
+ end
182
+ # rubocop:enable Lint/UnneededCopDisableDirective
@@ -92,6 +92,10 @@ module OCI
92
92
  # @return [Hash<String, Hash<String, Object>>]
93
93
  attr_accessor :defined_tags
94
94
 
95
+ # The Connection strings used to connect to the Oracle Database.
96
+ # @return [OCI::Database::Models::DatabaseConnectionStrings]
97
+ attr_accessor :connection_strings
98
+
95
99
  # Attribute mapping from ruby-style variable name to JSON key.
96
100
  def self.attribute_map
97
101
  {
@@ -110,7 +114,8 @@ module OCI
110
114
  'time_created': :'timeCreated',
111
115
  'db_backup_config': :'dbBackupConfig',
112
116
  'freeform_tags': :'freeformTags',
113
- 'defined_tags': :'definedTags'
117
+ 'defined_tags': :'definedTags',
118
+ 'connection_strings': :'connectionStrings'
114
119
  # rubocop:enable Style/SymbolLiteral
115
120
  }
116
121
  end
@@ -133,7 +138,8 @@ module OCI
133
138
  'time_created': :'DateTime',
134
139
  'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
135
140
  'freeform_tags': :'Hash<String, String>',
136
- 'defined_tags': :'Hash<String, Hash<String, Object>>'
141
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
142
+ 'connection_strings': :'OCI::Database::Models::DatabaseConnectionStrings'
137
143
  # rubocop:enable Style/SymbolLiteral
138
144
  }
139
145
  end
@@ -159,6 +165,7 @@ module OCI
159
165
  # @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
160
166
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
161
167
  # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
168
+ # @option attributes [OCI::Database::Models::DatabaseConnectionStrings] :connection_strings The value to assign to the {#connection_strings} property
162
169
  def initialize(attributes = {})
163
170
  return unless attributes.is_a?(Hash)
164
171
 
@@ -250,6 +257,12 @@ module OCI
250
257
  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
251
258
 
252
259
  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
260
+
261
+ self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings']
262
+
263
+ raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings')
264
+
265
+ self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings']
253
266
  end
254
267
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
255
268
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -292,7 +305,8 @@ module OCI
292
305
  time_created == other.time_created &&
293
306
  db_backup_config == other.db_backup_config &&
294
307
  freeform_tags == other.freeform_tags &&
295
- defined_tags == other.defined_tags
308
+ defined_tags == other.defined_tags &&
309
+ connection_strings == other.connection_strings
296
310
  end
297
311
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
298
312
 
@@ -308,7 +322,7 @@ module OCI
308
322
  # Calculates hash code according to all attributes.
309
323
  # @return [Fixnum] Hash code
310
324
  def hash
311
- [id, compartment_id, character_set, ncharacter_set, db_home_id, db_name, pdb_name, db_workload, db_unique_name, lifecycle_details, lifecycle_state, time_created, db_backup_config, freeform_tags, defined_tags].hash
325
+ [id, compartment_id, character_set, ncharacter_set, db_home_id, db_name, pdb_name, db_workload, db_unique_name, lifecycle_details, lifecycle_state, time_created, db_backup_config, freeform_tags, defined_tags, connection_strings].hash
312
326
  end
313
327
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
314
328
 
@@ -10,6 +10,8 @@ module OCI
10
10
  end
11
11
 
12
12
  # Require models
13
+ require 'oci/dns/models/create_steering_policy_attachment_details'
14
+ require 'oci/dns/models/create_steering_policy_details'
13
15
  require 'oci/dns/models/create_zone_details'
14
16
  require 'oci/dns/models/external_master'
15
17
  require 'oci/dns/models/nameserver'
@@ -22,9 +24,30 @@ require 'oci/dns/models/record_collection'
22
24
  require 'oci/dns/models/record_details'
23
25
  require 'oci/dns/models/record_operation'
24
26
  require 'oci/dns/models/sort_order'
27
+ require 'oci/dns/models/steering_policy'
28
+ require 'oci/dns/models/steering_policy_answer'
29
+ require 'oci/dns/models/steering_policy_attachment'
30
+ require 'oci/dns/models/steering_policy_attachment_summary'
31
+ require 'oci/dns/models/steering_policy_filter_answer_data'
32
+ require 'oci/dns/models/steering_policy_filter_rule'
33
+ require 'oci/dns/models/steering_policy_filter_rule_case'
34
+ require 'oci/dns/models/steering_policy_health_rule'
35
+ require 'oci/dns/models/steering_policy_health_rule_case'
36
+ require 'oci/dns/models/steering_policy_limit_rule'
37
+ require 'oci/dns/models/steering_policy_limit_rule_case'
38
+ require 'oci/dns/models/steering_policy_priority_answer_data'
39
+ require 'oci/dns/models/steering_policy_priority_rule'
40
+ require 'oci/dns/models/steering_policy_priority_rule_case'
41
+ require 'oci/dns/models/steering_policy_rule'
42
+ require 'oci/dns/models/steering_policy_summary'
43
+ require 'oci/dns/models/steering_policy_weighted_answer_data'
44
+ require 'oci/dns/models/steering_policy_weighted_rule'
45
+ require 'oci/dns/models/steering_policy_weighted_rule_case'
25
46
  require 'oci/dns/models/tsig'
26
47
  require 'oci/dns/models/update_domain_records_details'
27
48
  require 'oci/dns/models/update_rr_set_details'
49
+ require 'oci/dns/models/update_steering_policy_attachment_details'
50
+ require 'oci/dns/models/update_steering_policy_details'
28
51
  require 'oci/dns/models/update_zone_details'
29
52
  require 'oci/dns/models/update_zone_records_details'
30
53
  require 'oci/dns/models/zone'
@@ -102,6 +102,128 @@ module OCI
102
102
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
103
103
 
104
104
 
105
+ # Creates a new steering policy in the specified compartment.
106
+ #
107
+ # @param [OCI::Dns::Models::CreateSteeringPolicyDetails] create_steering_policy_details Details for creating a new steering policy.
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
110
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
111
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
112
+ # of a timeout or server error without risk of executing that same action
113
+ # again. Retry tokens expire after 24 hours, but can be invalidated before
114
+ # then due to conflicting operations (for example, if a resource has been
115
+ # deleted and purged from the system, then a retry of the original creation
116
+ # request may be rejected).
117
+ #
118
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicy SteeringPolicy}
119
+ def create_steering_policy(create_steering_policy_details, opts = {})
120
+ logger.debug 'Calling operation DnsClient#create_steering_policy.' if logger
121
+
122
+ raise "Missing the required parameter 'create_steering_policy_details' when calling create_steering_policy." if create_steering_policy_details.nil?
123
+
124
+ path = '/steeringPolicies'
125
+ operation_signing_strategy = :standard
126
+
127
+ # rubocop:disable Style/NegatedIf
128
+ # Query Params
129
+ query_params = {}
130
+
131
+ # Header Params
132
+ header_params = {}
133
+ header_params[:accept] = 'application/json'
134
+ header_params[:'content-type'] = 'application/json'
135
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
136
+ # rubocop:enable Style/NegatedIf
137
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
138
+
139
+ post_body = @api_client.object_to_http_body(create_steering_policy_details)
140
+
141
+ # rubocop:disable Metrics/BlockLength
142
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#create_steering_policy') do
143
+ @api_client.call_api(
144
+ :POST,
145
+ path,
146
+ endpoint,
147
+ header_params: header_params,
148
+ query_params: query_params,
149
+ operation_signing_strategy: operation_signing_strategy,
150
+ body: post_body,
151
+ return_type: 'OCI::Dns::Models::SteeringPolicy'
152
+ )
153
+ end
154
+ # rubocop:enable Metrics/BlockLength
155
+ end
156
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
157
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
158
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
159
+
160
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
161
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
162
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
163
+
164
+
165
+ # Creates a new attachment between a steering policy and a domain.
166
+ # For the purposes of access control, the attachment is automatically placed
167
+ # into the same compartment as the containing zone of the domain.
168
+ #
169
+ # @param [OCI::Dns::Models::CreateSteeringPolicyAttachmentDetails] create_steering_policy_attachment_details Details for creating a new steering policy attachment.
170
+ # @param [Hash] opts the optional parameters
171
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
172
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
173
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
174
+ # of a timeout or server error without risk of executing that same action
175
+ # again. Retry tokens expire after 24 hours, but can be invalidated before
176
+ # then due to conflicting operations (for example, if a resource has been
177
+ # deleted and purged from the system, then a retry of the original creation
178
+ # request may be rejected).
179
+ #
180
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicyAttachment SteeringPolicyAttachment}
181
+ def create_steering_policy_attachment(create_steering_policy_attachment_details, opts = {})
182
+ logger.debug 'Calling operation DnsClient#create_steering_policy_attachment.' if logger
183
+
184
+ raise "Missing the required parameter 'create_steering_policy_attachment_details' when calling create_steering_policy_attachment." if create_steering_policy_attachment_details.nil?
185
+
186
+ path = '/steeringPolicyAttachments'
187
+ operation_signing_strategy = :standard
188
+
189
+ # rubocop:disable Style/NegatedIf
190
+ # Query Params
191
+ query_params = {}
192
+
193
+ # Header Params
194
+ header_params = {}
195
+ header_params[:accept] = 'application/json'
196
+ header_params[:'content-type'] = 'application/json'
197
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
198
+ # rubocop:enable Style/NegatedIf
199
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
200
+
201
+ post_body = @api_client.object_to_http_body(create_steering_policy_attachment_details)
202
+
203
+ # rubocop:disable Metrics/BlockLength
204
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#create_steering_policy_attachment') do
205
+ @api_client.call_api(
206
+ :POST,
207
+ path,
208
+ endpoint,
209
+ header_params: header_params,
210
+ query_params: query_params,
211
+ operation_signing_strategy: operation_signing_strategy,
212
+ body: post_body,
213
+ return_type: 'OCI::Dns::Models::SteeringPolicyAttachment'
214
+ )
215
+ end
216
+ # rubocop:enable Metrics/BlockLength
217
+ end
218
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
219
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
220
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
221
+
222
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
223
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
224
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
225
+
226
+
105
227
  # Creates a new zone in the specified compartment. The `compartmentId`
106
228
  # query parameter is required if the `Content-Type` header for the
107
229
  # request is `text/dns`.
@@ -299,8 +421,141 @@ module OCI
299
421
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
300
422
 
301
423
 
302
- # Deletes the specified zone. A `204` response indicates that zone has been successfully
303
- # deleted.
424
+ # Deletes the specified steering policy.
425
+ # A `204` response indicates that the delete has been successful.
426
+ # Deletion will fail if the policy is attached to any zones.
427
+ #
428
+ # @param [String] steering_policy_id The OCID of the target steering policy.
429
+ # @param [Hash] opts the optional parameters
430
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
431
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
432
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
433
+ # existence of at least one current representation of the target resource,
434
+ # when the field-value is `*`, or having a current representation of the
435
+ # target resource that has an entity-tag matching a member of the list of
436
+ # entity-tags provided in the field-value.
437
+ #
438
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
439
+ # conditional on the selected representation's last modification date being
440
+ # earlier than or equal to the date provided in the field-value. This
441
+ # field accomplishes the same purpose as If-Match for cases where the user
442
+ # agent does not have an entity-tag for the representation.
443
+ #
444
+ # @return [Response] A Response object with data of type nil
445
+ def delete_steering_policy(steering_policy_id, opts = {})
446
+ logger.debug 'Calling operation DnsClient#delete_steering_policy.' if logger
447
+
448
+ raise "Missing the required parameter 'steering_policy_id' when calling delete_steering_policy." if steering_policy_id.nil?
449
+ raise "Parameter value for 'steering_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_id)
450
+
451
+ path = '/steeringPolicies/{steeringPolicyId}'.sub('{steeringPolicyId}', steering_policy_id.to_s)
452
+ operation_signing_strategy = :standard
453
+
454
+ # rubocop:disable Style/NegatedIf
455
+ # Query Params
456
+ query_params = {}
457
+
458
+ # Header Params
459
+ header_params = {}
460
+ header_params[:accept] = 'application/json'
461
+ header_params[:'content-type'] = 'application/json'
462
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
463
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
464
+ # rubocop:enable Style/NegatedIf
465
+
466
+ post_body = nil
467
+
468
+ # rubocop:disable Metrics/BlockLength
469
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#delete_steering_policy') do
470
+ @api_client.call_api(
471
+ :DELETE,
472
+ path,
473
+ endpoint,
474
+ header_params: header_params,
475
+ query_params: query_params,
476
+ operation_signing_strategy: operation_signing_strategy,
477
+ body: post_body
478
+ )
479
+ end
480
+ # rubocop:enable Metrics/BlockLength
481
+ end
482
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
483
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
484
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
485
+
486
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
487
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
488
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
489
+
490
+
491
+ # Deletes the specified steering policy attachment.
492
+ # A `204` response indicates that the delete has been successful.
493
+ #
494
+ # @param [String] steering_policy_attachment_id The OCID of the target steering policy attachment.
495
+ # @param [Hash] opts the optional parameters
496
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
497
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
498
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
499
+ # existence of at least one current representation of the target resource,
500
+ # when the field-value is `*`, or having a current representation of the
501
+ # target resource that has an entity-tag matching a member of the list of
502
+ # entity-tags provided in the field-value.
503
+ #
504
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
505
+ # conditional on the selected representation's last modification date being
506
+ # earlier than or equal to the date provided in the field-value. This
507
+ # field accomplishes the same purpose as If-Match for cases where the user
508
+ # agent does not have an entity-tag for the representation.
509
+ #
510
+ # @return [Response] A Response object with data of type nil
511
+ def delete_steering_policy_attachment(steering_policy_attachment_id, opts = {})
512
+ logger.debug 'Calling operation DnsClient#delete_steering_policy_attachment.' if logger
513
+
514
+ raise "Missing the required parameter 'steering_policy_attachment_id' when calling delete_steering_policy_attachment." if steering_policy_attachment_id.nil?
515
+ raise "Parameter value for 'steering_policy_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_attachment_id)
516
+
517
+ path = '/steeringPolicyAttachments/{steeringPolicyAttachmentId}'.sub('{steeringPolicyAttachmentId}', steering_policy_attachment_id.to_s)
518
+ operation_signing_strategy = :standard
519
+
520
+ # rubocop:disable Style/NegatedIf
521
+ # Query Params
522
+ query_params = {}
523
+
524
+ # Header Params
525
+ header_params = {}
526
+ header_params[:accept] = 'application/json'
527
+ header_params[:'content-type'] = 'application/json'
528
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
529
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
530
+ # rubocop:enable Style/NegatedIf
531
+
532
+ post_body = nil
533
+
534
+ # rubocop:disable Metrics/BlockLength
535
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#delete_steering_policy_attachment') do
536
+ @api_client.call_api(
537
+ :DELETE,
538
+ path,
539
+ endpoint,
540
+ header_params: header_params,
541
+ query_params: query_params,
542
+ operation_signing_strategy: operation_signing_strategy,
543
+ body: post_body
544
+ )
545
+ end
546
+ # rubocop:enable Metrics/BlockLength
547
+ end
548
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
549
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
550
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
551
+
552
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
553
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
554
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
555
+
556
+
557
+ # Deletes the specified zone and all its steering policy attachments.
558
+ # A `204` response indicates that zone has been successfully deleted.
304
559
  #
305
560
  # @param [String] zone_name_or_id The name or OCID of the target zone.
306
561
  # @param [Hash] opts the optional parameters
@@ -484,25 +739,318 @@ module OCI
484
739
  # recent than the date provided in the field-value. Transfer of the
485
740
  # selected representation's data is avoided if that data has not changed.
486
741
  #
487
- # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
488
- # (default to 50)
489
- # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
742
+ # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
743
+ # (default to 50)
744
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
745
+ #
746
+ # @option opts [String] :zone_version The version of the zone for which data is requested.
747
+ #
748
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
749
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::RRSet RRSet}
750
+ def get_rr_set(zone_name_or_id, domain, rtype, opts = {})
751
+ logger.debug 'Calling operation DnsClient#get_rr_set.' if logger
752
+
753
+ raise "Missing the required parameter 'zone_name_or_id' when calling get_rr_set." if zone_name_or_id.nil?
754
+ raise "Missing the required parameter 'domain' when calling get_rr_set." if domain.nil?
755
+ raise "Missing the required parameter 'rtype' when calling get_rr_set." if rtype.nil?
756
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
757
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
758
+ raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
759
+
760
+ path = '/zones/{zoneNameOrId}/records/{domain}/{rtype}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
761
+ operation_signing_strategy = :standard
762
+
763
+ # rubocop:disable Style/NegatedIf
764
+ # Query Params
765
+ query_params = {}
766
+ query_params[:limit] = opts[:limit] if opts[:limit]
767
+ query_params[:page] = opts[:page] if opts[:page]
768
+ query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
769
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
770
+
771
+ # Header Params
772
+ header_params = {}
773
+ header_params[:accept] = 'application/json'
774
+ header_params[:'content-type'] = 'application/json'
775
+ header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
776
+ header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
777
+ # rubocop:enable Style/NegatedIf
778
+
779
+ post_body = nil
780
+
781
+ # rubocop:disable Metrics/BlockLength
782
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_rr_set') do
783
+ @api_client.call_api(
784
+ :GET,
785
+ path,
786
+ endpoint,
787
+ header_params: header_params,
788
+ query_params: query_params,
789
+ operation_signing_strategy: operation_signing_strategy,
790
+ body: post_body,
791
+ return_type: 'OCI::Dns::Models::RRSet'
792
+ )
793
+ end
794
+ # rubocop:enable Metrics/BlockLength
795
+ end
796
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
797
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
798
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
799
+
800
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
801
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
802
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
803
+
804
+
805
+ # Gets information about the specified steering policy.
806
+ #
807
+ # @param [String] steering_policy_id The OCID of the target steering policy.
808
+ # @param [Hash] opts the optional parameters
809
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
810
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
811
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
812
+ # the absence of any current representation of the target resource, when
813
+ # the field-value is `*`, or having a selected representation with an
814
+ # entity-tag that does not match any of those listed in the field-value.
815
+ #
816
+ # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
817
+ # conditional on the selected representation's modification date being more
818
+ # recent than the date provided in the field-value. Transfer of the
819
+ # selected representation's data is avoided if that data has not changed.
820
+ #
821
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicy SteeringPolicy}
822
+ def get_steering_policy(steering_policy_id, opts = {})
823
+ logger.debug 'Calling operation DnsClient#get_steering_policy.' if logger
824
+
825
+ raise "Missing the required parameter 'steering_policy_id' when calling get_steering_policy." if steering_policy_id.nil?
826
+ raise "Parameter value for 'steering_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_id)
827
+
828
+ path = '/steeringPolicies/{steeringPolicyId}'.sub('{steeringPolicyId}', steering_policy_id.to_s)
829
+ operation_signing_strategy = :standard
830
+
831
+ # rubocop:disable Style/NegatedIf
832
+ # Query Params
833
+ query_params = {}
834
+
835
+ # Header Params
836
+ header_params = {}
837
+ header_params[:accept] = 'application/json'
838
+ header_params[:'content-type'] = 'application/json'
839
+ header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
840
+ header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
841
+ # rubocop:enable Style/NegatedIf
842
+
843
+ post_body = nil
844
+
845
+ # rubocop:disable Metrics/BlockLength
846
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_steering_policy') do
847
+ @api_client.call_api(
848
+ :GET,
849
+ path,
850
+ endpoint,
851
+ header_params: header_params,
852
+ query_params: query_params,
853
+ operation_signing_strategy: operation_signing_strategy,
854
+ body: post_body,
855
+ return_type: 'OCI::Dns::Models::SteeringPolicy'
856
+ )
857
+ end
858
+ # rubocop:enable Metrics/BlockLength
859
+ end
860
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
861
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
862
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
863
+
864
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
865
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
866
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
867
+
868
+
869
+ # Gets information about the specified steering policy attachment.
870
+ #
871
+ # @param [String] steering_policy_attachment_id The OCID of the target steering policy attachment.
872
+ # @param [Hash] opts the optional parameters
873
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
874
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
875
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
876
+ # the absence of any current representation of the target resource, when
877
+ # the field-value is `*`, or having a selected representation with an
878
+ # entity-tag that does not match any of those listed in the field-value.
879
+ #
880
+ # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
881
+ # conditional on the selected representation's modification date being more
882
+ # recent than the date provided in the field-value. Transfer of the
883
+ # selected representation's data is avoided if that data has not changed.
884
+ #
885
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicyAttachment SteeringPolicyAttachment}
886
+ def get_steering_policy_attachment(steering_policy_attachment_id, opts = {})
887
+ logger.debug 'Calling operation DnsClient#get_steering_policy_attachment.' if logger
888
+
889
+ raise "Missing the required parameter 'steering_policy_attachment_id' when calling get_steering_policy_attachment." if steering_policy_attachment_id.nil?
890
+ raise "Parameter value for 'steering_policy_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_attachment_id)
891
+
892
+ path = '/steeringPolicyAttachments/{steeringPolicyAttachmentId}'.sub('{steeringPolicyAttachmentId}', steering_policy_attachment_id.to_s)
893
+ operation_signing_strategy = :standard
894
+
895
+ # rubocop:disable Style/NegatedIf
896
+ # Query Params
897
+ query_params = {}
898
+
899
+ # Header Params
900
+ header_params = {}
901
+ header_params[:accept] = 'application/json'
902
+ header_params[:'content-type'] = 'application/json'
903
+ header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
904
+ header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
905
+ # rubocop:enable Style/NegatedIf
906
+
907
+ post_body = nil
908
+
909
+ # rubocop:disable Metrics/BlockLength
910
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_steering_policy_attachment') do
911
+ @api_client.call_api(
912
+ :GET,
913
+ path,
914
+ endpoint,
915
+ header_params: header_params,
916
+ query_params: query_params,
917
+ operation_signing_strategy: operation_signing_strategy,
918
+ body: post_body,
919
+ return_type: 'OCI::Dns::Models::SteeringPolicyAttachment'
920
+ )
921
+ end
922
+ # rubocop:enable Metrics/BlockLength
923
+ end
924
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
925
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
926
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
927
+
928
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
929
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
930
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
931
+
932
+
933
+ # Gets information about the specified zone, including its creation date,
934
+ # zone type, and serial.
935
+ #
936
+ # @param [String] zone_name_or_id The name or OCID of the target zone.
937
+ # @param [Hash] opts the optional parameters
938
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
939
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
940
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
941
+ # the absence of any current representation of the target resource, when
942
+ # the field-value is `*`, or having a selected representation with an
943
+ # entity-tag that does not match any of those listed in the field-value.
944
+ #
945
+ # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
946
+ # conditional on the selected representation's modification date being more
947
+ # recent than the date provided in the field-value. Transfer of the
948
+ # selected representation's data is avoided if that data has not changed.
949
+ #
950
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
951
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
952
+ def get_zone(zone_name_or_id, opts = {})
953
+ logger.debug 'Calling operation DnsClient#get_zone.' if logger
954
+
955
+ raise "Missing the required parameter 'zone_name_or_id' when calling get_zone." if zone_name_or_id.nil?
956
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
957
+
958
+ path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
959
+ operation_signing_strategy = :standard
960
+
961
+ # rubocop:disable Style/NegatedIf
962
+ # Query Params
963
+ query_params = {}
964
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
965
+
966
+ # Header Params
967
+ header_params = {}
968
+ header_params[:accept] = 'application/json'
969
+ header_params[:'content-type'] = 'application/json'
970
+ header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
971
+ header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
972
+ # rubocop:enable Style/NegatedIf
973
+
974
+ post_body = nil
975
+
976
+ # rubocop:disable Metrics/BlockLength
977
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_zone') do
978
+ @api_client.call_api(
979
+ :GET,
980
+ path,
981
+ endpoint,
982
+ header_params: header_params,
983
+ query_params: query_params,
984
+ operation_signing_strategy: operation_signing_strategy,
985
+ body: post_body,
986
+ return_type: 'OCI::Dns::Models::Zone'
987
+ )
988
+ end
989
+ # rubocop:enable Metrics/BlockLength
990
+ end
991
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
992
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
993
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
994
+
995
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
996
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
997
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
998
+
999
+
1000
+ # Gets all records in the specified zone. The results are
1001
+ # sorted by `domain` in alphabetical order by default. For more
1002
+ # information about records, see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
1003
+ #
1004
+ # @param [String] zone_name_or_id The name or OCID of the target zone.
1005
+ # @param [Hash] opts the optional parameters
1006
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1007
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1008
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
1009
+ # the absence of any current representation of the target resource, when
1010
+ # the field-value is `*`, or having a selected representation with an
1011
+ # entity-tag that does not match any of those listed in the field-value.
1012
+ #
1013
+ # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1014
+ # conditional on the selected representation's modification date being more
1015
+ # recent than the date provided in the field-value. Transfer of the
1016
+ # selected representation's data is avoided if that data has not changed.
1017
+ #
1018
+ # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1019
+ # (default to 50)
1020
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1021
+ #
1022
+ # @option opts [String] :zone_version The version of the zone for which data is requested.
1023
+ #
1024
+ # @option opts [String] :domain Search by domain.
1025
+ # Will match any record whose domain (case-insensitive) equals the provided value.
1026
+ #
1027
+ # @option opts [String] :domain_contains Search by domain.
1028
+ # Will match any record whose domain (case-insensitive) contains the provided value.
490
1029
  #
491
- # @option opts [String] :zone_version The version of the zone for which data is requested.
1030
+ # @option opts [String] :rtype Search by record type.
1031
+ # Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
1032
+ #
1033
+ # @option opts [String] :sort_by The field by which to sort records. (default to domain)
1034
+ # Allowed values are: domain, rtype, ttl
1035
+ # @option opts [String] :sort_order The order to sort the resources.
492
1036
  #
493
1037
  # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
494
- # @return [Response] A Response object with data of type {OCI::Dns::Models::RRSet RRSet}
495
- def get_rr_set(zone_name_or_id, domain, rtype, opts = {})
496
- logger.debug 'Calling operation DnsClient#get_rr_set.' if logger
1038
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
1039
+ def get_zone_records(zone_name_or_id, opts = {})
1040
+ logger.debug 'Calling operation DnsClient#get_zone_records.' if logger
497
1041
 
498
- raise "Missing the required parameter 'zone_name_or_id' when calling get_rr_set." if zone_name_or_id.nil?
499
- raise "Missing the required parameter 'domain' when calling get_rr_set." if domain.nil?
500
- raise "Missing the required parameter 'rtype' when calling get_rr_set." if rtype.nil?
1042
+ raise "Missing the required parameter 'zone_name_or_id' when calling get_zone_records." if zone_name_or_id.nil?
1043
+
1044
+ if opts[:sort_by] && !%w[domain rtype ttl].include?(opts[:sort_by])
1045
+ raise 'Invalid value for "sort_by", must be one of domain, rtype, ttl.'
1046
+ end
1047
+
1048
+ if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1049
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
1050
+ end
501
1051
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
502
- raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
503
- raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
504
1052
 
505
- path = '/zones/{zoneNameOrId}/records/{domain}/{rtype}'.sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
1053
+ path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
506
1054
  operation_signing_strategy = :standard
507
1055
 
508
1056
  # rubocop:disable Style/NegatedIf
@@ -511,6 +1059,11 @@ module OCI
511
1059
  query_params[:limit] = opts[:limit] if opts[:limit]
512
1060
  query_params[:page] = opts[:page] if opts[:page]
513
1061
  query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
1062
+ query_params[:domain] = opts[:domain] if opts[:domain]
1063
+ query_params[:domainContains] = opts[:domain_contains] if opts[:domain_contains]
1064
+ query_params[:rtype] = opts[:rtype] if opts[:rtype]
1065
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1066
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
514
1067
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
515
1068
 
516
1069
  # Header Params
@@ -524,7 +1077,7 @@ module OCI
524
1077
  post_body = nil
525
1078
 
526
1079
  # rubocop:disable Metrics/BlockLength
527
- OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_rr_set') do
1080
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_zone_records') do
528
1081
  @api_client.call_api(
529
1082
  :GET,
530
1083
  path,
@@ -533,7 +1086,7 @@ module OCI
533
1086
  query_params: query_params,
534
1087
  operation_signing_strategy: operation_signing_strategy,
535
1088
  body: post_body,
536
- return_type: 'OCI::Dns::Models::RRSet'
1089
+ return_type: 'OCI::Dns::Models::RecordCollection'
537
1090
  )
538
1091
  end
539
1092
  # rubocop:enable Metrics/BlockLength
@@ -547,51 +1100,86 @@ module OCI
547
1100
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
548
1101
 
549
1102
 
550
- # Gets information about the specified zone, including its creation date,
551
- # zone type, and serial.
1103
+ # Gets a list of all steering policies in the specified compartment.
552
1104
  #
553
- # @param [String] zone_name_or_id The name or OCID of the target zone.
1105
+ # @param [String] compartment_id The OCID of the compartment the resource belongs to.
554
1106
  # @param [Hash] opts the optional parameters
555
1107
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
556
1108
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
557
- # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
558
- # the absence of any current representation of the target resource, when
559
- # the field-value is `*`, or having a selected representation with an
560
- # entity-tag that does not match any of those listed in the field-value.
1109
+ # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1110
+ # (default to 50)
1111
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
561
1112
  #
562
- # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
563
- # conditional on the selected representation's modification date being more
564
- # recent than the date provided in the field-value. Transfer of the
565
- # selected representation's data is avoided if that data has not changed.
1113
+ # @option opts [String] :id The OCID of a resource.
1114
+ # @option opts [String] :display_name The displayName of a resource.
1115
+ # @option opts [String] :display_name_contains The partial displayName of a resource. Will match any resource whose name
1116
+ # (case-insensitive) contains the provided value.
566
1117
  #
567
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
568
- # @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
569
- def get_zone(zone_name_or_id, opts = {})
570
- logger.debug 'Calling operation DnsClient#get_zone.' if logger
1118
+ # @option opts [String] :health_check_monitor_id Search by health check monitor OCID.
1119
+ # Will match any resource whose health check monitor id matches the provided value.
1120
+ #
1121
+ # @option opts [DateTime] :time_created_greater_than_or_equal_to An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1122
+ # all returned resources were created on or after the indicated time.
1123
+ #
1124
+ # @option opts [DateTime] :time_created_less_than An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1125
+ # all returned resources were created before the indicated time.
1126
+ #
1127
+ # @option opts [String] :template Search by template type.
1128
+ # Will match any resource whose template type matches the provided value.
1129
+ #
1130
+ # @option opts [String] :lifecycle_state The state of a resource.
1131
+ # @option opts [String] :sort_by The field by which to sort steering policies. (default to timeCreated)
1132
+ # Allowed values are: displayName, timeCreated, template
1133
+ # @option opts [String] :sort_order The order to sort the resources.
1134
+ #
1135
+ # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::SteeringPolicySummary SteeringPolicySummary}>
1136
+ def list_steering_policies(compartment_id, opts = {})
1137
+ logger.debug 'Calling operation DnsClient#list_steering_policies.' if logger
571
1138
 
572
- raise "Missing the required parameter 'zone_name_or_id' when calling get_zone." if zone_name_or_id.nil?
573
- raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
1139
+ raise "Missing the required parameter 'compartment_id' when calling list_steering_policies." if compartment_id.nil?
574
1140
 
575
- path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
1141
+ if opts[:lifecycle_state] && !OCI::Dns::Models::SteeringPolicySummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1142
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Dns::Models::SteeringPolicySummary::LIFECYCLE_STATE_ENUM.'
1143
+ end
1144
+
1145
+ if opts[:sort_by] && !%w[displayName timeCreated template].include?(opts[:sort_by])
1146
+ raise 'Invalid value for "sort_by", must be one of displayName, timeCreated, template.'
1147
+ end
1148
+
1149
+ if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1150
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
1151
+ end
1152
+
1153
+ path = '/steeringPolicies'
576
1154
  operation_signing_strategy = :standard
577
1155
 
578
1156
  # rubocop:disable Style/NegatedIf
579
1157
  # Query Params
580
1158
  query_params = {}
581
- query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1159
+ query_params[:compartmentId] = compartment_id
1160
+ query_params[:limit] = opts[:limit] if opts[:limit]
1161
+ query_params[:page] = opts[:page] if opts[:page]
1162
+ query_params[:id] = opts[:id] if opts[:id]
1163
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1164
+ query_params[:displayNameContains] = opts[:display_name_contains] if opts[:display_name_contains]
1165
+ query_params[:healthCheckMonitorId] = opts[:health_check_monitor_id] if opts[:health_check_monitor_id]
1166
+ query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to]
1167
+ query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than]
1168
+ query_params[:template] = opts[:template] if opts[:template]
1169
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1170
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1171
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
582
1172
 
583
1173
  # Header Params
584
1174
  header_params = {}
585
1175
  header_params[:accept] = 'application/json'
586
1176
  header_params[:'content-type'] = 'application/json'
587
- header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
588
- header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
589
1177
  # rubocop:enable Style/NegatedIf
590
1178
 
591
1179
  post_body = nil
592
1180
 
593
1181
  # rubocop:disable Metrics/BlockLength
594
- OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_zone') do
1182
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#list_steering_policies') do
595
1183
  @api_client.call_api(
596
1184
  :GET,
597
1185
  path,
@@ -600,7 +1188,7 @@ module OCI
600
1188
  query_params: query_params,
601
1189
  operation_signing_strategy: operation_signing_strategy,
602
1190
  body: post_body,
603
- return_type: 'OCI::Dns::Models::Zone'
1191
+ return_type: 'Array<OCI::Dns::Models::SteeringPolicySummary>'
604
1192
  )
605
1193
  end
606
1194
  # rubocop:enable Metrics/BlockLength
@@ -614,29 +1202,23 @@ module OCI
614
1202
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
615
1203
 
616
1204
 
617
- # Gets all records in the specified zone. The results are
618
- # sorted by `domain` in alphabetical order by default. For more
619
- # information about records, see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
1205
+ # Lists the steering policy attachments in the specified compartment.
620
1206
  #
621
- # @param [String] zone_name_or_id The name or OCID of the target zone.
1207
+ # @param [String] compartment_id The OCID of the compartment the resource belongs to.
622
1208
  # @param [Hash] opts the optional parameters
623
1209
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
624
1210
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
625
- # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
626
- # the absence of any current representation of the target resource, when
627
- # the field-value is `*`, or having a selected representation with an
628
- # entity-tag that does not match any of those listed in the field-value.
629
- #
630
- # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
631
- # conditional on the selected representation's modification date being more
632
- # recent than the date provided in the field-value. Transfer of the
633
- # selected representation's data is avoided if that data has not changed.
634
- #
635
1211
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
636
1212
  # (default to 50)
637
1213
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
638
1214
  #
639
- # @option opts [String] :zone_version The version of the zone for which data is requested.
1215
+ # @option opts [String] :id The OCID of a resource.
1216
+ # @option opts [String] :display_name The displayName of a resource.
1217
+ # @option opts [String] :steering_policy_id Search by steering policy OCID.
1218
+ # Will match any resource whose steering policy id matches the provided value.
1219
+ #
1220
+ # @option opts [String] :zone_id Search by zone OCID.
1221
+ # Will match any resource whose zone id matches the provided value.
640
1222
  #
641
1223
  # @option opts [String] :domain Search by domain.
642
1224
  # Will match any record whose domain (case-insensitive) equals the provided value.
@@ -644,57 +1226,66 @@ module OCI
644
1226
  # @option opts [String] :domain_contains Search by domain.
645
1227
  # Will match any record whose domain (case-insensitive) contains the provided value.
646
1228
  #
647
- # @option opts [String] :rtype Search by record type.
648
- # Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
1229
+ # @option opts [DateTime] :time_created_greater_than_or_equal_to An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1230
+ # all returned resources were created on or after the indicated time.
649
1231
  #
650
- # @option opts [String] :sort_by The field by which to sort records. (default to domain)
651
- # Allowed values are: domain, rtype, ttl
1232
+ # @option opts [DateTime] :time_created_less_than An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1233
+ # all returned resources were created before the indicated time.
1234
+ #
1235
+ # @option opts [String] :lifecycle_state The state of a resource.
1236
+ # @option opts [String] :sort_by The field by which to sort steering policy attachments. (default to timeCreated)
1237
+ # Allowed values are: displayName, timeCreated, domainName
652
1238
  # @option opts [String] :sort_order The order to sort the resources.
653
1239
  #
654
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
655
- # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
656
- def get_zone_records(zone_name_or_id, opts = {})
657
- logger.debug 'Calling operation DnsClient#get_zone_records.' if logger
1240
+ # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::SteeringPolicyAttachmentSummary SteeringPolicyAttachmentSummary}>
1241
+ def list_steering_policy_attachments(compartment_id, opts = {})
1242
+ logger.debug 'Calling operation DnsClient#list_steering_policy_attachments.' if logger
658
1243
 
659
- raise "Missing the required parameter 'zone_name_or_id' when calling get_zone_records." if zone_name_or_id.nil?
1244
+ raise "Missing the required parameter 'compartment_id' when calling list_steering_policy_attachments." if compartment_id.nil?
660
1245
 
661
- if opts[:sort_by] && !%w[domain rtype ttl].include?(opts[:sort_by])
662
- raise 'Invalid value for "sort_by", must be one of domain, rtype, ttl.'
1246
+ if opts[:lifecycle_state] && !OCI::Dns::Models::SteeringPolicyAttachmentSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1247
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Dns::Models::SteeringPolicyAttachmentSummary::LIFECYCLE_STATE_ENUM.'
1248
+ end
1249
+
1250
+ if opts[:sort_by] && !%w[displayName timeCreated domainName].include?(opts[:sort_by])
1251
+ raise 'Invalid value for "sort_by", must be one of displayName, timeCreated, domainName.'
663
1252
  end
664
1253
 
665
1254
  if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
666
1255
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
667
1256
  end
668
- raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
669
1257
 
670
- path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
1258
+ path = '/steeringPolicyAttachments'
671
1259
  operation_signing_strategy = :standard
672
1260
 
673
1261
  # rubocop:disable Style/NegatedIf
674
1262
  # Query Params
675
1263
  query_params = {}
1264
+ query_params[:compartmentId] = compartment_id
676
1265
  query_params[:limit] = opts[:limit] if opts[:limit]
677
1266
  query_params[:page] = opts[:page] if opts[:page]
678
- query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
1267
+ query_params[:id] = opts[:id] if opts[:id]
1268
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1269
+ query_params[:steeringPolicyId] = opts[:steering_policy_id] if opts[:steering_policy_id]
1270
+ query_params[:zoneId] = opts[:zone_id] if opts[:zone_id]
679
1271
  query_params[:domain] = opts[:domain] if opts[:domain]
680
1272
  query_params[:domainContains] = opts[:domain_contains] if opts[:domain_contains]
681
- query_params[:rtype] = opts[:rtype] if opts[:rtype]
1273
+ query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to]
1274
+ query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than]
1275
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
682
1276
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
683
1277
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
684
- query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
685
1278
 
686
1279
  # Header Params
687
1280
  header_params = {}
688
1281
  header_params[:accept] = 'application/json'
689
1282
  header_params[:'content-type'] = 'application/json'
690
- header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
691
- header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
692
1283
  # rubocop:enable Style/NegatedIf
693
1284
 
694
1285
  post_body = nil
695
1286
 
696
1287
  # rubocop:disable Metrics/BlockLength
697
- OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_zone_records') do
1288
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#list_steering_policy_attachments') do
698
1289
  @api_client.call_api(
699
1290
  :GET,
700
1291
  path,
@@ -703,7 +1294,7 @@ module OCI
703
1294
  query_params: query_params,
704
1295
  operation_signing_strategy: operation_signing_strategy,
705
1296
  body: post_body,
706
- return_type: 'OCI::Dns::Models::RecordCollection'
1297
+ return_type: 'Array<OCI::Dns::Models::SteeringPolicyAttachmentSummary>'
707
1298
  )
708
1299
  end
709
1300
  # rubocop:enable Metrics/BlockLength
@@ -1196,6 +1787,142 @@ module OCI
1196
1787
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1197
1788
 
1198
1789
 
1790
+ # Updates the specified steering policy with your new information.
1791
+ #
1792
+ # @param [String] steering_policy_id The OCID of the target steering policy.
1793
+ # @param [OCI::Dns::Models::UpdateSteeringPolicyDetails] update_steering_policy_details New data for the steering policy.
1794
+ # @param [Hash] opts the optional parameters
1795
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1796
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1797
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
1798
+ # existence of at least one current representation of the target resource,
1799
+ # when the field-value is `*`, or having a current representation of the
1800
+ # target resource that has an entity-tag matching a member of the list of
1801
+ # entity-tags provided in the field-value.
1802
+ #
1803
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
1804
+ # conditional on the selected representation's last modification date being
1805
+ # earlier than or equal to the date provided in the field-value. This
1806
+ # field accomplishes the same purpose as If-Match for cases where the user
1807
+ # agent does not have an entity-tag for the representation.
1808
+ #
1809
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicy SteeringPolicy}
1810
+ def update_steering_policy(steering_policy_id, update_steering_policy_details, opts = {})
1811
+ logger.debug 'Calling operation DnsClient#update_steering_policy.' if logger
1812
+
1813
+ raise "Missing the required parameter 'steering_policy_id' when calling update_steering_policy." if steering_policy_id.nil?
1814
+ raise "Missing the required parameter 'update_steering_policy_details' when calling update_steering_policy." if update_steering_policy_details.nil?
1815
+ raise "Parameter value for 'steering_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_id)
1816
+
1817
+ path = '/steeringPolicies/{steeringPolicyId}'.sub('{steeringPolicyId}', steering_policy_id.to_s)
1818
+ operation_signing_strategy = :standard
1819
+
1820
+ # rubocop:disable Style/NegatedIf
1821
+ # Query Params
1822
+ query_params = {}
1823
+
1824
+ # Header Params
1825
+ header_params = {}
1826
+ header_params[:accept] = 'application/json'
1827
+ header_params[:'content-type'] = 'application/json'
1828
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1829
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
1830
+ # rubocop:enable Style/NegatedIf
1831
+
1832
+ post_body = @api_client.object_to_http_body(update_steering_policy_details)
1833
+
1834
+ # rubocop:disable Metrics/BlockLength
1835
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_steering_policy') do
1836
+ @api_client.call_api(
1837
+ :PUT,
1838
+ path,
1839
+ endpoint,
1840
+ header_params: header_params,
1841
+ query_params: query_params,
1842
+ operation_signing_strategy: operation_signing_strategy,
1843
+ body: post_body,
1844
+ return_type: 'OCI::Dns::Models::SteeringPolicy'
1845
+ )
1846
+ end
1847
+ # rubocop:enable Metrics/BlockLength
1848
+ end
1849
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1850
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1851
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1852
+
1853
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1854
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1855
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1856
+
1857
+
1858
+ # Updates the specified steering policy attachment with your new information.
1859
+ #
1860
+ # @param [String] steering_policy_attachment_id The OCID of the target steering policy attachment.
1861
+ # @param [OCI::Dns::Models::UpdateSteeringPolicyAttachmentDetails] update_steering_policy_attachment_details New data for the steering policy attachment.
1862
+ # @param [Hash] opts the optional parameters
1863
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1864
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1865
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
1866
+ # existence of at least one current representation of the target resource,
1867
+ # when the field-value is `*`, or having a current representation of the
1868
+ # target resource that has an entity-tag matching a member of the list of
1869
+ # entity-tags provided in the field-value.
1870
+ #
1871
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
1872
+ # conditional on the selected representation's last modification date being
1873
+ # earlier than or equal to the date provided in the field-value. This
1874
+ # field accomplishes the same purpose as If-Match for cases where the user
1875
+ # agent does not have an entity-tag for the representation.
1876
+ #
1877
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicyAttachment SteeringPolicyAttachment}
1878
+ def update_steering_policy_attachment(steering_policy_attachment_id, update_steering_policy_attachment_details, opts = {})
1879
+ logger.debug 'Calling operation DnsClient#update_steering_policy_attachment.' if logger
1880
+
1881
+ raise "Missing the required parameter 'steering_policy_attachment_id' when calling update_steering_policy_attachment." if steering_policy_attachment_id.nil?
1882
+ raise "Missing the required parameter 'update_steering_policy_attachment_details' when calling update_steering_policy_attachment." if update_steering_policy_attachment_details.nil?
1883
+ raise "Parameter value for 'steering_policy_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_attachment_id)
1884
+
1885
+ path = '/steeringPolicyAttachments/{steeringPolicyAttachmentId}'.sub('{steeringPolicyAttachmentId}', steering_policy_attachment_id.to_s)
1886
+ operation_signing_strategy = :standard
1887
+
1888
+ # rubocop:disable Style/NegatedIf
1889
+ # Query Params
1890
+ query_params = {}
1891
+
1892
+ # Header Params
1893
+ header_params = {}
1894
+ header_params[:accept] = 'application/json'
1895
+ header_params[:'content-type'] = 'application/json'
1896
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1897
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
1898
+ # rubocop:enable Style/NegatedIf
1899
+
1900
+ post_body = @api_client.object_to_http_body(update_steering_policy_attachment_details)
1901
+
1902
+ # rubocop:disable Metrics/BlockLength
1903
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_steering_policy_attachment') do
1904
+ @api_client.call_api(
1905
+ :PUT,
1906
+ path,
1907
+ endpoint,
1908
+ header_params: header_params,
1909
+ query_params: query_params,
1910
+ operation_signing_strategy: operation_signing_strategy,
1911
+ body: post_body,
1912
+ return_type: 'OCI::Dns::Models::SteeringPolicyAttachment'
1913
+ )
1914
+ end
1915
+ # rubocop:enable Metrics/BlockLength
1916
+ end
1917
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1918
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1919
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1920
+
1921
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1922
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1923
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1924
+
1925
+
1199
1926
  # Updates the specified secondary zone with your new external master
1200
1927
  # server information. For more information about secondary zone, see
1201
1928
  # [Manage DNS Service Zone](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/DNS/Tasks/managingdnszones.htm).