oci 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
- data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
- data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
- data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
- data/lib/oci/core/models/drg_attachment.rb +4 -1
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
- data/lib/oci/core/models/launch_instance_details.rb +18 -4
- data/lib/oci/core/models/launch_options.rb +18 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -1
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
- data/lib/oci/core/models/service.rb +1 -1
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
- data/lib/oci/core/models/volume_attachment.rb +18 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -0
- data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
- data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
- data/lib/oci/database/models/autonomous_database.rb +132 -137
- data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
- data/lib/oci/database/models/backup.rb +102 -109
- data/lib/oci/database/models/backup_summary.rb +101 -101
- data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
- data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
- data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
- data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
- data/lib/oci/database/models/create_database_details.rb +62 -62
- data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
- data/lib/oci/database/models/create_db_home_details.rb +21 -21
- data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
- data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
- data/lib/oci/database/models/data_guard_association.rb +132 -144
- data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
- data/lib/oci/database/models/database.rb +100 -108
- data/lib/oci/database/models/database_summary.rb +99 -99
- data/lib/oci/database/models/db_home.rb +39 -51
- data/lib/oci/database/models/db_home_summary.rb +39 -39
- data/lib/oci/database/models/db_node.rb +50 -58
- data/lib/oci/database/models/db_node_summary.rb +49 -49
- data/lib/oci/database/models/db_system.rb +295 -300
- data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
- data/lib/oci/database/models/db_system_summary.rb +295 -280
- data/lib/oci/database/models/db_version_summary.rb +28 -14
- data/lib/oci/database/models/external_backup_job.rb +34 -34
- data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +160 -145
- data/lib/oci/database/models/launch_db_system_details.rb +59 -55
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
- data/lib/oci/database/models/patch.rb +45 -53
- data/lib/oci/database/models/patch_details.rb +14 -14
- data/lib/oci/database/models/patch_history_entry.rb +48 -51
- data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
- data/lib/oci/database/models/patch_summary.rb +44 -44
- data/lib/oci/database/models/restore_database_details.rb +15 -15
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
- data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
- data/lib/oci/database/models/update_database_details.rb +22 -22
- data/lib/oci/database/models/update_db_system_details.rb +38 -38
- data/lib/oci/dns/dns.rb +1 -0
- data/lib/oci/dns/dns_client.rb +14 -13
- data/lib/oci/dns/models/create_zone_details.rb +39 -2
- data/lib/oci/dns/models/external_master.rb +3 -1
- data/lib/oci/dns/models/nameserver.rb +149 -0
- data/lib/oci/dns/models/record.rb +3 -1
- data/lib/oci/dns/models/record_details.rb +3 -1
- data/lib/oci/dns/models/record_operation.rb +3 -1
- data/lib/oci/dns/models/tsig.rb +3 -2
- data/lib/oci/dns/models/update_zone_details.rb +40 -2
- data/lib/oci/dns/models/zone.rb +54 -6
- data/lib/oci/dns/models/zone_summary.rb +79 -5
- data/lib/oci/identity/identity.rb +4 -0
- data/lib/oci/identity/identity_client.rb +176 -0
- data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
- data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
- data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
- data/lib/oci/identity/models/user.rb +42 -4
- data/lib/oci/identity/models/user_capabilities.rb +209 -0
- data/lib/oci/regions.rb +10 -9
- data/lib/oci/version.rb +1 -1
- metadata +8 -2
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
6
|
+
module OCI
|
|
7
|
+
# A server that has been set up to answer DNS queries for a zone.
|
|
8
|
+
class Dns::Models::Nameserver # rubocop:disable Metrics/LineLength
|
|
9
|
+
# **[Required]** The hostname of the nameserver.
|
|
10
|
+
# @return [String]
|
|
11
|
+
attr_accessor :hostname
|
|
12
|
+
|
|
13
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
14
|
+
def self.attribute_map
|
|
15
|
+
{
|
|
16
|
+
# rubocop:disable Style/SymbolLiteral
|
|
17
|
+
'hostname': :'hostname'
|
|
18
|
+
# rubocop:enable Style/SymbolLiteral
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Attribute type mapping.
|
|
23
|
+
def self.swagger_types
|
|
24
|
+
{
|
|
25
|
+
# rubocop:disable Style/SymbolLiteral
|
|
26
|
+
'hostname': :'String'
|
|
27
|
+
# rubocop:enable Style/SymbolLiteral
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
32
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Initializes the object
|
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
37
|
+
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
|
38
|
+
def initialize(attributes = {})
|
|
39
|
+
return unless attributes.is_a?(Hash)
|
|
40
|
+
|
|
41
|
+
# convert string to symbol for hash key
|
|
42
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
43
|
+
|
|
44
|
+
self.hostname = attributes[:'hostname'] if attributes[:'hostname']
|
|
45
|
+
end
|
|
46
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
47
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
48
|
+
|
|
49
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# Checks equality by comparing each attribute.
|
|
53
|
+
# @param [Object] other the other object to be compared
|
|
54
|
+
def ==(other)
|
|
55
|
+
return true if equal?(other)
|
|
56
|
+
|
|
57
|
+
self.class == other.class &&
|
|
58
|
+
hostname == other.hostname
|
|
59
|
+
end
|
|
60
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
61
|
+
|
|
62
|
+
# @see the `==` method
|
|
63
|
+
# @param [Object] other the other object to be compared
|
|
64
|
+
def eql?(other)
|
|
65
|
+
self == other
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# Calculates hash code according to all attributes.
|
|
72
|
+
# @return [Fixnum] Hash code
|
|
73
|
+
def hash
|
|
74
|
+
[hostname].hash
|
|
75
|
+
end
|
|
76
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
77
|
+
|
|
78
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# Builds the object from hash
|
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
+
# @return [Object] Returns the model itself
|
|
84
|
+
def build_from_hash(attributes)
|
|
85
|
+
return nil unless attributes.is_a?(Hash)
|
|
86
|
+
|
|
87
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
88
|
+
if type =~ /^Array<(.*)>/i
|
|
89
|
+
# check to ensure the input is an array given that the the attribute
|
|
90
|
+
# is documented as an array but the input is not
|
|
91
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
92
|
+
public_method("#{key}=").call(
|
|
93
|
+
attributes[self.class.attribute_map[key]]
|
|
94
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
95
|
+
)
|
|
96
|
+
end
|
|
97
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
98
|
+
public_method("#{key}=").call(
|
|
99
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
self
|
|
106
|
+
end
|
|
107
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
108
|
+
|
|
109
|
+
# Returns the string representation of the object
|
|
110
|
+
# @return [String] String presentation of the object
|
|
111
|
+
def to_s
|
|
112
|
+
to_hash.to_s
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Returns the object in the form of hash
|
|
116
|
+
# @return [Hash] Returns the object in the form of hash
|
|
117
|
+
def to_hash
|
|
118
|
+
hash = {}
|
|
119
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
120
|
+
value = public_method(attr).call
|
|
121
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
122
|
+
|
|
123
|
+
hash[param] = _to_hash(value)
|
|
124
|
+
end
|
|
125
|
+
hash
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
private
|
|
129
|
+
|
|
130
|
+
# Outputs non-array value in the form of hash
|
|
131
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
132
|
+
# @param [Object] value Any valid value
|
|
133
|
+
# @return [Hash] Returns the value in the form of hash
|
|
134
|
+
def _to_hash(value)
|
|
135
|
+
if value.is_a?(Array)
|
|
136
|
+
value.compact.map { |v| _to_hash(v) }
|
|
137
|
+
elsif value.is_a?(Hash)
|
|
138
|
+
{}.tap do |hash|
|
|
139
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
140
|
+
end
|
|
141
|
+
elsif value.respond_to? :to_hash
|
|
142
|
+
value.to_hash
|
|
143
|
+
else
|
|
144
|
+
value
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
|
@@ -23,7 +23,9 @@ module OCI
|
|
|
23
23
|
attr_accessor :is_protected
|
|
24
24
|
|
|
25
25
|
# The record's data, as whitespace-delimited tokens in
|
|
26
|
-
# type-specific presentation format.
|
|
26
|
+
# type-specific presentation format. All RDATA is normalized and the
|
|
27
|
+
# returned presentation of your RDATA may differ from its initial input.
|
|
28
|
+
# For more information about RDATA, see [Supported DNS Resource Record Types](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/DNS/Reference/supporteddnsresource.htm)
|
|
27
29
|
#
|
|
28
30
|
# @return [String]
|
|
29
31
|
attr_accessor :rdata
|
|
@@ -23,7 +23,9 @@ module OCI
|
|
|
23
23
|
attr_accessor :is_protected
|
|
24
24
|
|
|
25
25
|
# **[Required]** The record's data, as whitespace-delimited tokens in
|
|
26
|
-
# type-specific presentation format.
|
|
26
|
+
# type-specific presentation format. All RDATA is normalized and the
|
|
27
|
+
# returned presentation of your RDATA may differ from its initial input.
|
|
28
|
+
# For more information about RDATA, see [Supported DNS Resource Record Types](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/DNS/Reference/supporteddnsresource.htm)
|
|
27
29
|
#
|
|
28
30
|
# @return [String]
|
|
29
31
|
attr_accessor :rdata
|
|
@@ -33,7 +33,9 @@ module OCI
|
|
|
33
33
|
attr_accessor :is_protected
|
|
34
34
|
|
|
35
35
|
# The record's data, as whitespace-delimited tokens in
|
|
36
|
-
# type-specific presentation format.
|
|
36
|
+
# type-specific presentation format. All RDATA is normalized and the
|
|
37
|
+
# returned presentation of your RDATA may differ from its initial input.
|
|
38
|
+
# For more information about RDATA, see [Supported DNS Resource Record Types](https://docs.us-phoenix-1.oraclecloud.com/iaas/Content/DNS/Reference/supporteddnsresource.htm)
|
|
37
39
|
#
|
|
38
40
|
# @return [String]
|
|
39
41
|
attr_accessor :rdata
|
data/lib/oci/dns/models/tsig.rb
CHANGED
|
@@ -15,8 +15,9 @@ module OCI
|
|
|
15
15
|
attr_accessor :secret
|
|
16
16
|
|
|
17
17
|
# **[Required]** TSIG Algorithms are encoded as domain names, but most consist of only one
|
|
18
|
-
# non-empty label, which is not required to be explicitly absolute.
|
|
19
|
-
#
|
|
18
|
+
# non-empty label, which is not required to be explicitly absolute.
|
|
19
|
+
# Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256,
|
|
20
|
+
# hmac-sha512. For more information on these algorithms, see [RFC 4635](https://tools.ietf.org/html/rfc4635#section-2).
|
|
20
21
|
#
|
|
21
22
|
# @return [String]
|
|
22
23
|
attr_accessor :algorithm
|
|
@@ -5,8 +5,26 @@ require 'date'
|
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
6
6
|
module OCI
|
|
7
7
|
# The body for updating a zone.
|
|
8
|
+
#
|
|
9
|
+
# *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
|
10
|
+
#
|
|
8
11
|
class Dns::Models::UpdateZoneDetails # rubocop:disable Metrics/LineLength
|
|
9
|
-
#
|
|
12
|
+
# Simple key-value pair that is applied without any predefined name, type, or scope.
|
|
13
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
14
|
+
# Example: `{\"bar-key\": \"value\"}`
|
|
15
|
+
#
|
|
16
|
+
# @return [Hash<String, String>]
|
|
17
|
+
attr_accessor :freeform_tags
|
|
18
|
+
|
|
19
|
+
# Usage of predefined tag keys. These predefined keys are scoped to a namespace.
|
|
20
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
|
|
21
|
+
#
|
|
22
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
23
|
+
attr_accessor :defined_tags
|
|
24
|
+
|
|
25
|
+
# External master servers for the zone. `externalMasters` becomes a
|
|
26
|
+
# required parameter when the `zoneType` value is `SECONDARY`.
|
|
27
|
+
#
|
|
10
28
|
# @return [Array<OCI::Dns::Models::ExternalMaster>]
|
|
11
29
|
attr_accessor :external_masters
|
|
12
30
|
|
|
@@ -14,6 +32,8 @@ module OCI
|
|
|
14
32
|
def self.attribute_map
|
|
15
33
|
{
|
|
16
34
|
# rubocop:disable Style/SymbolLiteral
|
|
35
|
+
'freeform_tags': :'freeformTags',
|
|
36
|
+
'defined_tags': :'definedTags',
|
|
17
37
|
'external_masters': :'externalMasters'
|
|
18
38
|
# rubocop:enable Style/SymbolLiteral
|
|
19
39
|
}
|
|
@@ -23,6 +43,8 @@ module OCI
|
|
|
23
43
|
def self.swagger_types
|
|
24
44
|
{
|
|
25
45
|
# rubocop:disable Style/SymbolLiteral
|
|
46
|
+
'freeform_tags': :'Hash<String, String>',
|
|
47
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
26
48
|
'external_masters': :'Array<OCI::Dns::Models::ExternalMaster>'
|
|
27
49
|
# rubocop:enable Style/SymbolLiteral
|
|
28
50
|
}
|
|
@@ -34,6 +56,8 @@ module OCI
|
|
|
34
56
|
|
|
35
57
|
# Initializes the object
|
|
36
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
60
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
37
61
|
# @option attributes [Array<OCI::Dns::Models::ExternalMaster>] :external_masters The value to assign to the {#external_masters} property
|
|
38
62
|
def initialize(attributes = {})
|
|
39
63
|
return unless attributes.is_a?(Hash)
|
|
@@ -41,6 +65,18 @@ module OCI
|
|
|
41
65
|
# convert string to symbol for hash key
|
|
42
66
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
43
67
|
|
|
68
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
69
|
+
|
|
70
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
71
|
+
|
|
72
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
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
|
+
|
|
44
80
|
self.external_masters = attributes[:'externalMasters'] if attributes[:'externalMasters']
|
|
45
81
|
|
|
46
82
|
raise 'You cannot provide both :externalMasters and :external_masters' if attributes.key?(:'externalMasters') && attributes.key?(:'external_masters')
|
|
@@ -59,6 +95,8 @@ module OCI
|
|
|
59
95
|
return true if equal?(other)
|
|
60
96
|
|
|
61
97
|
self.class == other.class &&
|
|
98
|
+
freeform_tags == other.freeform_tags &&
|
|
99
|
+
defined_tags == other.defined_tags &&
|
|
62
100
|
external_masters == other.external_masters
|
|
63
101
|
end
|
|
64
102
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
@@ -75,7 +113,7 @@ module OCI
|
|
|
75
113
|
# Calculates hash code according to all attributes.
|
|
76
114
|
# @return [Fixnum] Hash code
|
|
77
115
|
def hash
|
|
78
|
-
[external_masters].hash
|
|
116
|
+
[freeform_tags, defined_tags, external_masters].hash
|
|
79
117
|
end
|
|
80
118
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
81
119
|
|
data/lib/oci/dns/models/zone.rb
CHANGED
|
@@ -6,6 +6,9 @@ require 'logger'
|
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
|
7
7
|
module OCI
|
|
8
8
|
# A DNS zone.
|
|
9
|
+
#
|
|
10
|
+
# *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
|
11
|
+
#
|
|
9
12
|
class Dns::Models::Zone # rubocop:disable Metrics/LineLength
|
|
10
13
|
ZONE_TYPE_ENUM = [
|
|
11
14
|
ZONE_TYPE_PRIMARY = 'PRIMARY'.freeze,
|
|
@@ -35,7 +38,22 @@ module OCI
|
|
|
35
38
|
# @return [String]
|
|
36
39
|
attr_accessor :compartment_id
|
|
37
40
|
|
|
38
|
-
#
|
|
41
|
+
# Simple key-value pair that is applied without any predefined name, type, or scope.
|
|
42
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
43
|
+
# Example: `{\"bar-key\": \"value\"}`
|
|
44
|
+
#
|
|
45
|
+
# @return [Hash<String, String>]
|
|
46
|
+
attr_accessor :freeform_tags
|
|
47
|
+
|
|
48
|
+
# Usage of predefined tag keys. These predefined keys are scoped to a namespace.
|
|
49
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
|
|
50
|
+
#
|
|
51
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
52
|
+
attr_accessor :defined_tags
|
|
53
|
+
|
|
54
|
+
# External master servers for the zone. `externalMasters` becomes a
|
|
55
|
+
# required parameter when the `zoneType` value is `SECONDARY`.
|
|
56
|
+
#
|
|
39
57
|
# @return [Array<OCI::Dns::Models::ExternalMaster>]
|
|
40
58
|
attr_accessor :external_masters
|
|
41
59
|
|
|
@@ -47,7 +65,7 @@ module OCI
|
|
|
47
65
|
# @return [String]
|
|
48
66
|
attr_accessor :id
|
|
49
67
|
|
|
50
|
-
# The date and time the
|
|
68
|
+
# The date and time the resource was created in \"YYYY-MM-ddThh:mmZ\" format
|
|
51
69
|
# with a Z offset, as defined by RFC 3339.
|
|
52
70
|
#
|
|
53
71
|
# **Example:** `2016-07-22T17:23:59:60Z`
|
|
@@ -71,6 +89,10 @@ module OCI
|
|
|
71
89
|
# @return [String]
|
|
72
90
|
attr_reader :lifecycle_state
|
|
73
91
|
|
|
92
|
+
# The authoritative nameservers for the zone.
|
|
93
|
+
# @return [Array<OCI::Dns::Models::Nameserver>]
|
|
94
|
+
attr_accessor :nameservers
|
|
95
|
+
|
|
74
96
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
75
97
|
def self.attribute_map
|
|
76
98
|
{
|
|
@@ -78,13 +100,16 @@ module OCI
|
|
|
78
100
|
'name': :'name',
|
|
79
101
|
'zone_type': :'zoneType',
|
|
80
102
|
'compartment_id': :'compartmentId',
|
|
103
|
+
'freeform_tags': :'freeformTags',
|
|
104
|
+
'defined_tags': :'definedTags',
|
|
81
105
|
'external_masters': :'externalMasters',
|
|
82
106
|
'self_uri': :'self',
|
|
83
107
|
'id': :'id',
|
|
84
108
|
'time_created': :'timeCreated',
|
|
85
109
|
'version': :'version',
|
|
86
110
|
'serial': :'serial',
|
|
87
|
-
'lifecycle_state': :'lifecycleState'
|
|
111
|
+
'lifecycle_state': :'lifecycleState',
|
|
112
|
+
'nameservers': :'nameservers'
|
|
88
113
|
# rubocop:enable Style/SymbolLiteral
|
|
89
114
|
}
|
|
90
115
|
end
|
|
@@ -96,13 +121,16 @@ module OCI
|
|
|
96
121
|
'name': :'String',
|
|
97
122
|
'zone_type': :'String',
|
|
98
123
|
'compartment_id': :'String',
|
|
124
|
+
'freeform_tags': :'Hash<String, String>',
|
|
125
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
99
126
|
'external_masters': :'Array<OCI::Dns::Models::ExternalMaster>',
|
|
100
127
|
'self_uri': :'String',
|
|
101
128
|
'id': :'String',
|
|
102
129
|
'time_created': :'DateTime',
|
|
103
130
|
'version': :'String',
|
|
104
131
|
'serial': :'Integer',
|
|
105
|
-
'lifecycle_state': :'String'
|
|
132
|
+
'lifecycle_state': :'String',
|
|
133
|
+
'nameservers': :'Array<OCI::Dns::Models::Nameserver>'
|
|
106
134
|
# rubocop:enable Style/SymbolLiteral
|
|
107
135
|
}
|
|
108
136
|
end
|
|
@@ -116,6 +144,8 @@ module OCI
|
|
|
116
144
|
# @option attributes [String] :name The value to assign to the {#name} property
|
|
117
145
|
# @option attributes [String] :zone_type The value to assign to the {#zone_type} property
|
|
118
146
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
147
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
148
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
119
149
|
# @option attributes [Array<OCI::Dns::Models::ExternalMaster>] :external_masters The value to assign to the {#external_masters} property
|
|
120
150
|
# @option attributes [String] :self_uri The value to assign to the {#self_uri} property
|
|
121
151
|
# @option attributes [String] :id The value to assign to the {#id} property
|
|
@@ -123,6 +153,7 @@ module OCI
|
|
|
123
153
|
# @option attributes [String] :version The value to assign to the {#version} property
|
|
124
154
|
# @option attributes [Integer] :serial The value to assign to the {#serial} property
|
|
125
155
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
156
|
+
# @option attributes [Array<OCI::Dns::Models::Nameserver>] :nameservers The value to assign to the {#nameservers} property
|
|
126
157
|
def initialize(attributes = {})
|
|
127
158
|
return unless attributes.is_a?(Hash)
|
|
128
159
|
|
|
@@ -143,6 +174,18 @@ module OCI
|
|
|
143
174
|
|
|
144
175
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
145
176
|
|
|
177
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
178
|
+
|
|
179
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
180
|
+
|
|
181
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
182
|
+
|
|
183
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
184
|
+
|
|
185
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
186
|
+
|
|
187
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
188
|
+
|
|
146
189
|
self.external_masters = attributes[:'externalMasters'] if attributes[:'externalMasters']
|
|
147
190
|
|
|
148
191
|
raise 'You cannot provide both :externalMasters and :external_masters' if attributes.key?(:'externalMasters') && attributes.key?(:'external_masters')
|
|
@@ -172,6 +215,8 @@ module OCI
|
|
|
172
215
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
173
216
|
|
|
174
217
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
218
|
+
|
|
219
|
+
self.nameservers = attributes[:'nameservers'] if attributes[:'nameservers']
|
|
175
220
|
end
|
|
176
221
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
177
222
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -218,13 +263,16 @@ module OCI
|
|
|
218
263
|
name == other.name &&
|
|
219
264
|
zone_type == other.zone_type &&
|
|
220
265
|
compartment_id == other.compartment_id &&
|
|
266
|
+
freeform_tags == other.freeform_tags &&
|
|
267
|
+
defined_tags == other.defined_tags &&
|
|
221
268
|
external_masters == other.external_masters &&
|
|
222
269
|
self_uri == other.self_uri &&
|
|
223
270
|
id == other.id &&
|
|
224
271
|
time_created == other.time_created &&
|
|
225
272
|
version == other.version &&
|
|
226
273
|
serial == other.serial &&
|
|
227
|
-
lifecycle_state == other.lifecycle_state
|
|
274
|
+
lifecycle_state == other.lifecycle_state &&
|
|
275
|
+
nameservers == other.nameservers
|
|
228
276
|
end
|
|
229
277
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
230
278
|
|
|
@@ -240,7 +288,7 @@ module OCI
|
|
|
240
288
|
# Calculates hash code according to all attributes.
|
|
241
289
|
# @return [Fixnum] Hash code
|
|
242
290
|
def hash
|
|
243
|
-
[name, zone_type, compartment_id, external_masters, self_uri, id, time_created, version, serial, lifecycle_state].hash
|
|
291
|
+
[name, zone_type, compartment_id, freeform_tags, defined_tags, external_masters, self_uri, id, time_created, version, serial, lifecycle_state, nameservers].hash
|
|
244
292
|
end
|
|
245
293
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
246
294
|
|