oci 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
  4. data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
  5. data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
  6. data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
  7. data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
  8. data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
  9. data/lib/oci/core/models/drg_attachment.rb +4 -1
  10. data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
  11. data/lib/oci/core/models/launch_instance_details.rb +18 -4
  12. data/lib/oci/core/models/launch_options.rb +18 -4
  13. data/lib/oci/core/models/local_peering_gateway.rb +4 -1
  14. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
  15. data/lib/oci/core/models/service.rb +1 -1
  16. data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
  17. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
  18. data/lib/oci/core/models/volume_attachment.rb +18 -4
  19. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  20. data/lib/oci/core/virtual_network_client.rb +1 -1
  21. data/lib/oci/database/database.rb +1 -0
  22. data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
  23. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
  24. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
  25. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
  26. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
  27. data/lib/oci/database/models/autonomous_database.rb +132 -137
  28. data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
  29. data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
  30. data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
  31. data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
  32. data/lib/oci/database/models/backup.rb +102 -109
  33. data/lib/oci/database/models/backup_summary.rb +101 -101
  34. data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
  35. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
  36. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
  37. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
  38. data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
  39. data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
  40. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
  41. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
  42. data/lib/oci/database/models/create_database_details.rb +62 -62
  43. data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
  44. data/lib/oci/database/models/create_db_home_details.rb +21 -21
  45. data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
  46. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
  47. data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
  48. data/lib/oci/database/models/data_guard_association.rb +132 -144
  49. data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
  50. data/lib/oci/database/models/database.rb +100 -108
  51. data/lib/oci/database/models/database_summary.rb +99 -99
  52. data/lib/oci/database/models/db_home.rb +39 -51
  53. data/lib/oci/database/models/db_home_summary.rb +39 -39
  54. data/lib/oci/database/models/db_node.rb +50 -58
  55. data/lib/oci/database/models/db_node_summary.rb +49 -49
  56. data/lib/oci/database/models/db_system.rb +295 -300
  57. data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
  58. data/lib/oci/database/models/db_system_summary.rb +295 -280
  59. data/lib/oci/database/models/db_version_summary.rb +28 -14
  60. data/lib/oci/database/models/external_backup_job.rb +34 -34
  61. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  62. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  63. data/lib/oci/database/models/launch_db_system_base.rb +160 -145
  64. data/lib/oci/database/models/launch_db_system_details.rb +59 -55
  65. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
  66. data/lib/oci/database/models/patch.rb +45 -53
  67. data/lib/oci/database/models/patch_details.rb +14 -14
  68. data/lib/oci/database/models/patch_history_entry.rb +48 -51
  69. data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
  70. data/lib/oci/database/models/patch_summary.rb +44 -44
  71. data/lib/oci/database/models/restore_database_details.rb +15 -15
  72. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
  73. data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
  74. data/lib/oci/database/models/update_database_details.rb +22 -22
  75. data/lib/oci/database/models/update_db_system_details.rb +38 -38
  76. data/lib/oci/dns/dns.rb +1 -0
  77. data/lib/oci/dns/dns_client.rb +14 -13
  78. data/lib/oci/dns/models/create_zone_details.rb +39 -2
  79. data/lib/oci/dns/models/external_master.rb +3 -1
  80. data/lib/oci/dns/models/nameserver.rb +149 -0
  81. data/lib/oci/dns/models/record.rb +3 -1
  82. data/lib/oci/dns/models/record_details.rb +3 -1
  83. data/lib/oci/dns/models/record_operation.rb +3 -1
  84. data/lib/oci/dns/models/tsig.rb +3 -2
  85. data/lib/oci/dns/models/update_zone_details.rb +40 -2
  86. data/lib/oci/dns/models/zone.rb +54 -6
  87. data/lib/oci/dns/models/zone_summary.rb +79 -5
  88. data/lib/oci/identity/identity.rb +4 -0
  89. data/lib/oci/identity/identity_client.rb +176 -0
  90. data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
  91. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
  92. data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
  93. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
  94. data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
  95. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
  96. data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
  97. data/lib/oci/identity/models/user.rb +42 -4
  98. data/lib/oci/identity/models/user_capabilities.rb +209 -0
  99. data/lib/oci/regions.rb +10 -9
  100. data/lib/oci/version.rb +1 -1
  101. metadata +8 -2
@@ -12,14 +12,6 @@ module OCI
12
12
  # @return [OCI::Database::Models::DbBackupConfig]
13
13
  attr_accessor :db_backup_config
14
14
 
15
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
16
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
17
- #
18
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
19
- #
20
- # @return [Hash<String, Hash<String, Object>>]
21
- attr_accessor :defined_tags
22
-
23
15
  # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
24
16
  # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
25
17
  #
@@ -28,13 +20,21 @@ module OCI
28
20
  # @return [Hash<String, String>]
29
21
  attr_accessor :freeform_tags
30
22
 
23
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
24
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
25
+ #
26
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
27
+ #
28
+ # @return [Hash<String, Hash<String, Object>>]
29
+ attr_accessor :defined_tags
30
+
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
34
  # rubocop:disable Style/SymbolLiteral
35
35
  'db_backup_config': :'dbBackupConfig',
36
- 'defined_tags': :'definedTags',
37
- 'freeform_tags': :'freeformTags'
36
+ 'freeform_tags': :'freeformTags',
37
+ 'defined_tags': :'definedTags'
38
38
  # rubocop:enable Style/SymbolLiteral
39
39
  }
40
40
  end
@@ -44,8 +44,8 @@ module OCI
44
44
  {
45
45
  # rubocop:disable Style/SymbolLiteral
46
46
  'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
47
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
48
- 'freeform_tags': :'Hash<String, String>'
47
+ 'freeform_tags': :'Hash<String, String>',
48
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
49
49
  # rubocop:enable Style/SymbolLiteral
50
50
  }
51
51
  end
@@ -57,8 +57,8 @@ module OCI
57
57
  # Initializes the object
58
58
  # @param [Hash] attributes Model attributes in the form of hash
59
59
  # @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
60
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
61
60
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
61
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
62
62
  def initialize(attributes = {})
63
63
  return unless attributes.is_a?(Hash)
64
64
 
@@ -71,17 +71,17 @@ module OCI
71
71
 
72
72
  self.db_backup_config = attributes[:'db_backup_config'] if attributes[:'db_backup_config']
73
73
 
74
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
75
-
76
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
77
-
78
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
79
-
80
74
  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
81
75
 
82
76
  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
83
77
 
84
78
  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
79
+
80
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
81
+
82
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
83
+
84
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
85
85
  end
86
86
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
87
87
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -96,8 +96,8 @@ module OCI
96
96
 
97
97
  self.class == other.class &&
98
98
  db_backup_config == other.db_backup_config &&
99
- defined_tags == other.defined_tags &&
100
- freeform_tags == other.freeform_tags
99
+ freeform_tags == other.freeform_tags &&
100
+ defined_tags == other.defined_tags
101
101
  end
102
102
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
103
103
 
@@ -113,7 +113,7 @@ module OCI
113
113
  # Calculates hash code according to all attributes.
114
114
  # @return [Fixnum] Hash code
115
115
  def hash
116
- [db_backup_config, defined_tags, freeform_tags].hash
116
+ [db_backup_config, freeform_tags, defined_tags].hash
117
117
  end
118
118
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
119
119
 
@@ -13,19 +13,18 @@ module OCI
13
13
  # @return [Integer]
14
14
  attr_accessor :cpu_core_count
15
15
 
16
+ # @return [OCI::Database::Models::PatchDetails]
17
+ attr_accessor :version
18
+
19
+ # The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters.
20
+ # @return [Array<String>]
21
+ attr_accessor :ssh_public_keys
22
+
16
23
  # The size, in gigabytes, to scale the attached storage up to for this virtual machine DB system. This value must be greater than current storage size. Note that the resulting total storage size attached will be greater than the amount requested to allow for REDO/RECO space and software volume. Applies only to virtual machine DB systems.
17
24
  #
18
25
  # @return [Integer]
19
26
  attr_accessor :data_storage_size_in_gbs
20
27
 
21
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
22
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
23
- #
24
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
25
- #
26
- # @return [Hash<String, Hash<String, Object>>]
27
- attr_accessor :defined_tags
28
-
29
28
  # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
30
29
  # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
31
30
  #
@@ -34,23 +33,24 @@ module OCI
34
33
  # @return [Hash<String, String>]
35
34
  attr_accessor :freeform_tags
36
35
 
37
- # The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters.
38
- # @return [Array<String>]
39
- attr_accessor :ssh_public_keys
40
-
41
- # @return [OCI::Database::Models::PatchDetails]
42
- attr_accessor :version
36
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
37
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
38
+ #
39
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
40
+ #
41
+ # @return [Hash<String, Hash<String, Object>>]
42
+ attr_accessor :defined_tags
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
47
  # rubocop:disable Style/SymbolLiteral
48
48
  'cpu_core_count': :'cpuCoreCount',
49
+ 'version': :'version',
50
+ 'ssh_public_keys': :'sshPublicKeys',
49
51
  'data_storage_size_in_gbs': :'dataStorageSizeInGBs',
50
- 'defined_tags': :'definedTags',
51
52
  'freeform_tags': :'freeformTags',
52
- 'ssh_public_keys': :'sshPublicKeys',
53
- 'version': :'version'
53
+ 'defined_tags': :'definedTags'
54
54
  # rubocop:enable Style/SymbolLiteral
55
55
  }
56
56
  end
@@ -60,11 +60,11 @@ module OCI
60
60
  {
61
61
  # rubocop:disable Style/SymbolLiteral
62
62
  'cpu_core_count': :'Integer',
63
+ 'version': :'OCI::Database::Models::PatchDetails',
64
+ 'ssh_public_keys': :'Array<String>',
63
65
  'data_storage_size_in_gbs': :'Integer',
64
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
65
66
  'freeform_tags': :'Hash<String, String>',
66
- 'ssh_public_keys': :'Array<String>',
67
- 'version': :'OCI::Database::Models::PatchDetails'
67
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
68
68
  # rubocop:enable Style/SymbolLiteral
69
69
  }
70
70
  end
@@ -76,11 +76,11 @@ module OCI
76
76
  # Initializes the object
77
77
  # @param [Hash] attributes Model attributes in the form of hash
78
78
  # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
79
+ # @option attributes [OCI::Database::Models::PatchDetails] :version The value to assign to the {#version} property
80
+ # @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
79
81
  # @option attributes [Integer] :data_storage_size_in_gbs The value to assign to the {#data_storage_size_in_gbs} property
80
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
81
82
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
82
- # @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
83
- # @option attributes [OCI::Database::Models::PatchDetails] :version The value to assign to the {#version} property
83
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
84
84
  def initialize(attributes = {})
85
85
  return unless attributes.is_a?(Hash)
86
86
 
@@ -93,17 +93,19 @@ module OCI
93
93
 
94
94
  self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
95
95
 
96
- self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs']
96
+ self.version = attributes[:'version'] if attributes[:'version']
97
97
 
98
- raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs')
98
+ self.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys']
99
99
 
100
- self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs']
100
+ raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys')
101
101
 
102
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
102
+ self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys']
103
103
 
104
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
104
+ self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs']
105
105
 
106
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
106
+ raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs')
107
+
108
+ self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs']
107
109
 
108
110
  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
109
111
 
@@ -111,13 +113,11 @@ module OCI
111
113
 
112
114
  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
113
115
 
114
- self.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys']
115
-
116
- raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys')
116
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
117
117
 
118
- self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys']
118
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
119
119
 
120
- self.version = attributes[:'version'] if attributes[:'version']
120
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
121
121
  end
122
122
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
123
123
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -132,11 +132,11 @@ module OCI
132
132
 
133
133
  self.class == other.class &&
134
134
  cpu_core_count == other.cpu_core_count &&
135
+ version == other.version &&
136
+ ssh_public_keys == other.ssh_public_keys &&
135
137
  data_storage_size_in_gbs == other.data_storage_size_in_gbs &&
136
- defined_tags == other.defined_tags &&
137
138
  freeform_tags == other.freeform_tags &&
138
- ssh_public_keys == other.ssh_public_keys &&
139
- version == other.version
139
+ defined_tags == other.defined_tags
140
140
  end
141
141
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
142
142
 
@@ -152,7 +152,7 @@ module OCI
152
152
  # Calculates hash code according to all attributes.
153
153
  # @return [Fixnum] Hash code
154
154
  def hash
155
- [cpu_core_count, data_storage_size_in_gbs, defined_tags, freeform_tags, ssh_public_keys, version].hash
155
+ [cpu_core_count, version, ssh_public_keys, data_storage_size_in_gbs, freeform_tags, defined_tags].hash
156
156
  end
157
157
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
158
158
 
@@ -12,6 +12,7 @@ end
12
12
  # Require models
13
13
  require 'oci/dns/models/create_zone_details'
14
14
  require 'oci/dns/models/external_master'
15
+ require 'oci/dns/models/nameserver'
15
16
  require 'oci/dns/models/patch_domain_records_details'
16
17
  require 'oci/dns/models/patch_rr_set_details'
17
18
  require 'oci/dns/models/patch_zone_records_details'
@@ -5,7 +5,8 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
7
7
  module OCI
8
- # API for managing DNS zones, records, and policies.
8
+ # API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
9
+ # For more information, see [Overview of the DNS Service](/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
9
10
  class Dns::DnsClient
10
11
  # Client used to make HTTP requests.
11
12
  # @return [OCI::ApiClient]
@@ -298,8 +299,8 @@ module OCI
298
299
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
299
300
 
300
301
 
301
- # Deletes the specified zone. A `204` response indicates that zone has been
302
- # successfully deleted.
302
+ # Deletes the specified zone. A `204` response indicates that zone has been successfully
303
+ # deleted.
303
304
  #
304
305
  # @param [String] zone_name_or_id The name or OCID of the target zone.
305
306
  # @param [Hash] opts the optional parameters
@@ -615,7 +616,7 @@ module OCI
615
616
 
616
617
  # Gets all records in the specified zone. The results are
617
618
  # sorted by `domain` in alphabetical order by default. For more
618
- # information about records, please see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
619
+ # information about records, see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
619
620
  #
620
621
  # @param [String] zone_name_or_id The name or OCID of the target zone.
621
622
  # @param [Hash] opts the optional parameters
@@ -743,12 +744,12 @@ module OCI
743
744
  # @option opts [DateTime] :time_created_less_than An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
744
745
  # all returned resources were created before the indicated time.
745
746
  #
747
+ # @option opts [String] :lifecycle_state The state of a resource.
748
+ # Allowed values are: ACTIVE, CREATING, DELETED, DELETING, FAILED
746
749
  # @option opts [String] :sort_by The field by which to sort zones. (default to timeCreated)
747
750
  # Allowed values are: name, zoneType, timeCreated
748
751
  # @option opts [String] :sort_order The order to sort the resources.
749
752
  #
750
- # @option opts [String] :lifecycle_state The state of a resource.
751
- # Allowed values are: ACTIVE, CREATING, DELETED, DELETING, FAILED
752
753
  # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::ZoneSummary ZoneSummary}>
753
754
  def list_zones(compartment_id, opts = {})
754
755
  logger.debug 'Calling operation DnsClient#list_zones.' if logger
@@ -759,6 +760,10 @@ module OCI
759
760
  raise 'Invalid value for "zone_type", must be one of PRIMARY, SECONDARY.'
760
761
  end
761
762
 
763
+ if opts[:lifecycle_state] && !%w[ACTIVE CREATING DELETED DELETING FAILED].include?(opts[:lifecycle_state])
764
+ raise 'Invalid value for "lifecycle_state", must be one of ACTIVE, CREATING, DELETED, DELETING, FAILED.'
765
+ end
766
+
762
767
  if opts[:sort_by] && !%w[name zoneType timeCreated].include?(opts[:sort_by])
763
768
  raise 'Invalid value for "sort_by", must be one of name, zoneType, timeCreated.'
764
769
  end
@@ -767,10 +772,6 @@ module OCI
767
772
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
768
773
  end
769
774
 
770
- if opts[:lifecycle_state] && !%w[ACTIVE CREATING DELETED DELETING FAILED].include?(opts[:lifecycle_state])
771
- raise 'Invalid value for "lifecycle_state", must be one of ACTIVE, CREATING, DELETED, DELETING, FAILED.'
772
- end
773
-
774
775
  path = '/zones'
775
776
  operation_signing_strategy = :standard
776
777
 
@@ -785,9 +786,9 @@ module OCI
785
786
  query_params[:zoneType] = opts[:zone_type] if opts[:zone_type]
786
787
  query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to]
787
788
  query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than]
789
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
788
790
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
789
791
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
790
- query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
791
792
 
792
793
  # Header Params
793
794
  header_params = {}
@@ -821,7 +822,7 @@ module OCI
821
822
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
822
823
 
823
824
 
824
- # Replaces records in the specified zone at a domain. You can update one record or all records for the specified zone depending on the changes provided in the request body. You can also add or remove records using this function.
825
+ # Updates records in the specified zone at a domain. You can update one record or all records for the specified zone depending on the changes provided in the request body. You can also add or remove records using this function.
825
826
  # @param [String] zone_name_or_id The name or OCID of the target zone.
826
827
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
827
828
  # @param [OCI::Dns::Models::PatchDomainRecordsDetails] patch_domain_records_details Operations describing how to modify the collection of records.
@@ -1197,7 +1198,7 @@ module OCI
1197
1198
 
1198
1199
  # Updates the specified secondary zone with your new external master
1199
1200
  # server information. For more information about secondary zone, see
1200
- # [Manage DNS Service Zone](https://docs.cloud.oracle.com/Content/DNS/Tasks/managingdnszones.htm).
1201
+ # [Manage DNS Service Zone](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/DNS/Tasks/managingdnszones.htm).
1201
1202
  #
1202
1203
  # @param [String] zone_name_or_id The name or OCID of the target zone.
1203
1204
  # @param [OCI::Dns::Models::UpdateZoneDetails] update_zone_details New data for the zone.
@@ -6,6 +6,8 @@ require 'date'
6
6
  module OCI
7
7
  # The body for defining a new zone.
8
8
  #
9
+ # *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
10
+ #
9
11
  class Dns::Models::CreateZoneDetails # rubocop:disable Metrics/LineLength
10
12
  ZONE_TYPE_ENUM = [
11
13
  ZONE_TYPE_PRIMARY = 'PRIMARY'.freeze,
@@ -25,7 +27,22 @@ module OCI
25
27
  # @return [String]
26
28
  attr_accessor :compartment_id
27
29
 
28
- # External master servers for the zone.
30
+ # Simple key-value pair that is applied without any predefined name, type, or scope.
31
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
32
+ # Example: `{\"bar-key\": \"value\"}`
33
+ #
34
+ # @return [Hash<String, String>]
35
+ attr_accessor :freeform_tags
36
+
37
+ # Usage of predefined tag keys. These predefined keys are scoped to a namespace.
38
+ # Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
39
+ #
40
+ # @return [Hash<String, Hash<String, Object>>]
41
+ attr_accessor :defined_tags
42
+
43
+ # External master servers for the zone. `externalMasters` becomes a
44
+ # required parameter when the `zoneType` value is `SECONDARY`.
45
+ #
29
46
  # @return [Array<OCI::Dns::Models::ExternalMaster>]
30
47
  attr_accessor :external_masters
31
48
 
@@ -36,6 +53,8 @@ module OCI
36
53
  'name': :'name',
37
54
  'zone_type': :'zoneType',
38
55
  'compartment_id': :'compartmentId',
56
+ 'freeform_tags': :'freeformTags',
57
+ 'defined_tags': :'definedTags',
39
58
  'external_masters': :'externalMasters'
40
59
  # rubocop:enable Style/SymbolLiteral
41
60
  }
@@ -48,6 +67,8 @@ module OCI
48
67
  'name': :'String',
49
68
  'zone_type': :'String',
50
69
  'compartment_id': :'String',
70
+ 'freeform_tags': :'Hash<String, String>',
71
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
51
72
  'external_masters': :'Array<OCI::Dns::Models::ExternalMaster>'
52
73
  # rubocop:enable Style/SymbolLiteral
53
74
  }
@@ -62,6 +83,8 @@ module OCI
62
83
  # @option attributes [String] :name The value to assign to the {#name} property
63
84
  # @option attributes [String] :zone_type The value to assign to the {#zone_type} property
64
85
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
86
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
87
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
65
88
  # @option attributes [Array<OCI::Dns::Models::ExternalMaster>] :external_masters The value to assign to the {#external_masters} property
66
89
  def initialize(attributes = {})
67
90
  return unless attributes.is_a?(Hash)
@@ -83,6 +106,18 @@ module OCI
83
106
 
84
107
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
85
108
 
109
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
110
+
111
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
112
+
113
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
114
+
115
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
116
+
117
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
118
+
119
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
120
+
86
121
  self.external_masters = attributes[:'externalMasters'] if attributes[:'externalMasters']
87
122
 
88
123
  raise 'You cannot provide both :externalMasters and :external_masters' if attributes.key?(:'externalMasters') && attributes.key?(:'external_masters')
@@ -114,6 +149,8 @@ module OCI
114
149
  name == other.name &&
115
150
  zone_type == other.zone_type &&
116
151
  compartment_id == other.compartment_id &&
152
+ freeform_tags == other.freeform_tags &&
153
+ defined_tags == other.defined_tags &&
117
154
  external_masters == other.external_masters
118
155
  end
119
156
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
@@ -130,7 +167,7 @@ module OCI
130
167
  # Calculates hash code according to all attributes.
131
168
  # @return [Fixnum] Hash code
132
169
  def hash
133
- [name, zone_type, compartment_id, external_masters].hash
170
+ [name, zone_type, compartment_id, freeform_tags, defined_tags, external_masters].hash
134
171
  end
135
172
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
136
173