oci 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -13
- data/lib/oci/core/blockstorage_client.rb +690 -61
- data/lib/oci/core/blockstorage_client_composite_operations.rb +238 -0
- data/lib/oci/core/compute_client.rb +1 -5
- data/lib/oci/core/core.rb +10 -0
- data/lib/oci/core/models/boot_volume.rb +18 -4
- data/lib/oci/core/models/cpe.rb +38 -1
- data/lib/oci/core/models/create_cpe_details.rb +38 -1
- data/lib/oci/core/models/create_drg_details.rb +41 -4
- data/lib/oci/core/models/create_internet_gateway_details.rb +38 -1
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +38 -1
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +38 -1
- data/lib/oci/core/models/create_public_ip_details.rb +38 -1
- data/lib/oci/core/models/create_vnic_details.rb +38 -1
- data/lib/oci/core/models/create_volume_group_backup_details.rb +239 -0
- data/lib/oci/core/models/create_volume_group_details.rb +231 -0
- data/lib/oci/core/models/drg.rb +38 -1
- data/lib/oci/core/models/internet_gateway.rb +38 -1
- data/lib/oci/core/models/ip_sec_connection.rb +38 -1
- data/lib/oci/core/models/launch_options.rb +4 -0
- data/lib/oci/core/models/local_peering_gateway.rb +38 -1
- data/lib/oci/core/models/public_ip.rb +38 -1
- data/lib/oci/core/models/update_cpe_details.rb +41 -4
- data/lib/oci/core/models/update_drg_details.rb +41 -4
- data/lib/oci/core/models/update_internet_gateway_details.rb +38 -1
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +41 -4
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +41 -4
- data/lib/oci/core/models/update_public_ip_details.rb +38 -1
- data/lib/oci/core/models/update_vnic_details.rb +38 -1
- data/lib/oci/core/models/update_volume_group_backup_details.rb +187 -0
- data/lib/oci/core/models/update_volume_group_details.rb +201 -0
- data/lib/oci/core/models/vnic.rb +38 -1
- data/lib/oci/core/models/volume.rb +18 -4
- data/lib/oci/core/models/volume_group.rb +322 -0
- data/lib/oci/core/models/volume_group_backup.rb +380 -0
- data/lib/oci/core/models/volume_group_source_details.rb +164 -0
- data/lib/oci/core/models/volume_group_source_from_volume_group_backup_details.rb +158 -0
- data/lib/oci/core/models/volume_group_source_from_volume_group_details.rb +158 -0
- data/lib/oci/core/models/volume_group_source_from_volumes_details.rb +158 -0
- data/lib/oci/core/virtual_network_client.rb +6 -6
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/database_client_composite_operations.rb +1 -1
- data/lib/oci/database/models/backup.rb +31 -1
- data/lib/oci/database/models/backup_summary.rb +31 -1
- data/lib/oci/database/models/create_db_home_from_backup_details.rb +160 -0
- data/lib/oci/database/models/launch_db_system_base.rb +438 -0
- data/lib/oci/database/models/launch_db_system_details.rb +41 -227
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +314 -0
- data/lib/oci/file_storage/file_storage_client.rb +9 -8
- data/lib/oci/file_storage/models/export.rb +6 -5
- data/lib/oci/file_storage/models/file_system_summary.rb +1 -2
- data/lib/oci/version.rb +1 -1
- metadata +15 -2
@@ -6,17 +6,36 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# UpdateCpeDetails model.
|
8
8
|
class Core::Models::UpdateCpeDetails # rubocop:disable Metrics/LineLength
|
9
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
10
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
11
|
+
#
|
12
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
13
|
+
#
|
14
|
+
# @return [Hash<String, Hash<String, Object>>]
|
15
|
+
attr_accessor :defined_tags
|
16
|
+
|
9
17
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
10
18
|
# Avoid entering confidential information.
|
11
19
|
#
|
12
20
|
# @return [String]
|
13
21
|
attr_accessor :display_name
|
14
22
|
|
23
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
24
|
+
# predefined name, type, or namespace. For more information, see
|
25
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
26
|
+
#
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
28
|
+
#
|
29
|
+
# @return [Hash<String, String>]
|
30
|
+
attr_accessor :freeform_tags
|
31
|
+
|
15
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
33
|
def self.attribute_map
|
17
34
|
{
|
18
35
|
# rubocop:disable Style/SymbolLiteral
|
19
|
-
'
|
36
|
+
'defined_tags': :'definedTags',
|
37
|
+
'display_name': :'displayName',
|
38
|
+
'freeform_tags': :'freeformTags'
|
20
39
|
# rubocop:enable Style/SymbolLiteral
|
21
40
|
}
|
22
41
|
end
|
@@ -25,7 +44,9 @@ module OCI
|
|
25
44
|
def self.swagger_types
|
26
45
|
{
|
27
46
|
# rubocop:disable Style/SymbolLiteral
|
28
|
-
'
|
47
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
48
|
+
'display_name': :'String',
|
49
|
+
'freeform_tags': :'Hash<String, String>'
|
29
50
|
# rubocop:enable Style/SymbolLiteral
|
30
51
|
}
|
31
52
|
end
|
@@ -36,18 +57,32 @@ module OCI
|
|
36
57
|
|
37
58
|
# Initializes the object
|
38
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
39
61
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
62
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
40
63
|
def initialize(attributes = {})
|
41
64
|
return unless attributes.is_a?(Hash)
|
42
65
|
|
43
66
|
# convert string to symbol for hash key
|
44
67
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
68
|
|
69
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
70
|
+
|
71
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
72
|
+
|
73
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
74
|
+
|
46
75
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
47
76
|
|
48
77
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
49
78
|
|
50
79
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
80
|
+
|
81
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
82
|
+
|
83
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
84
|
+
|
85
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
51
86
|
end
|
52
87
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
53
88
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -60,7 +95,9 @@ module OCI
|
|
60
95
|
def ==(other)
|
61
96
|
return true if equal?(other)
|
62
97
|
self.class == other.class &&
|
63
|
-
|
98
|
+
defined_tags == other.defined_tags &&
|
99
|
+
display_name == other.display_name &&
|
100
|
+
freeform_tags == other.freeform_tags
|
64
101
|
end
|
65
102
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
66
103
|
|
@@ -76,7 +113,7 @@ module OCI
|
|
76
113
|
# Calculates hash code according to all attributes.
|
77
114
|
# @return [Fixnum] Hash code
|
78
115
|
def hash
|
79
|
-
[display_name].hash
|
116
|
+
[defined_tags, display_name, freeform_tags].hash
|
80
117
|
end
|
81
118
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
82
119
|
|
@@ -6,17 +6,36 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# UpdateDrgDetails model.
|
8
8
|
class Core::Models::UpdateDrgDetails # rubocop:disable Metrics/LineLength
|
9
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
10
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
11
|
+
#
|
12
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
13
|
+
#
|
14
|
+
# @return [Hash<String, Hash<String, Object>>]
|
15
|
+
attr_accessor :defined_tags
|
16
|
+
|
9
17
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
10
18
|
# Avoid entering confidential information.
|
11
19
|
#
|
12
20
|
# @return [String]
|
13
21
|
attr_accessor :display_name
|
14
22
|
|
23
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
24
|
+
# predefined name, type, or namespace. For more information, see
|
25
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
26
|
+
#
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
28
|
+
#
|
29
|
+
# @return [Hash<String, String>]
|
30
|
+
attr_accessor :freeform_tags
|
31
|
+
|
15
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
33
|
def self.attribute_map
|
17
34
|
{
|
18
35
|
# rubocop:disable Style/SymbolLiteral
|
19
|
-
'
|
36
|
+
'defined_tags': :'definedTags',
|
37
|
+
'display_name': :'displayName',
|
38
|
+
'freeform_tags': :'freeformTags'
|
20
39
|
# rubocop:enable Style/SymbolLiteral
|
21
40
|
}
|
22
41
|
end
|
@@ -25,7 +44,9 @@ module OCI
|
|
25
44
|
def self.swagger_types
|
26
45
|
{
|
27
46
|
# rubocop:disable Style/SymbolLiteral
|
28
|
-
'
|
47
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
48
|
+
'display_name': :'String',
|
49
|
+
'freeform_tags': :'Hash<String, String>'
|
29
50
|
# rubocop:enable Style/SymbolLiteral
|
30
51
|
}
|
31
52
|
end
|
@@ -36,18 +57,32 @@ module OCI
|
|
36
57
|
|
37
58
|
# Initializes the object
|
38
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
39
61
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
62
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
40
63
|
def initialize(attributes = {})
|
41
64
|
return unless attributes.is_a?(Hash)
|
42
65
|
|
43
66
|
# convert string to symbol for hash key
|
44
67
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
68
|
|
69
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
70
|
+
|
71
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
72
|
+
|
73
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
74
|
+
|
46
75
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
47
76
|
|
48
77
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
49
78
|
|
50
79
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
80
|
+
|
81
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
82
|
+
|
83
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
84
|
+
|
85
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
51
86
|
end
|
52
87
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
53
88
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -60,7 +95,9 @@ module OCI
|
|
60
95
|
def ==(other)
|
61
96
|
return true if equal?(other)
|
62
97
|
self.class == other.class &&
|
63
|
-
|
98
|
+
defined_tags == other.defined_tags &&
|
99
|
+
display_name == other.display_name &&
|
100
|
+
freeform_tags == other.freeform_tags
|
64
101
|
end
|
65
102
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
66
103
|
|
@@ -76,7 +113,7 @@ module OCI
|
|
76
113
|
# Calculates hash code according to all attributes.
|
77
114
|
# @return [Fixnum] Hash code
|
78
115
|
def hash
|
79
|
-
[display_name].hash
|
116
|
+
[defined_tags, display_name, freeform_tags].hash
|
80
117
|
end
|
81
118
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
82
119
|
|
@@ -6,12 +6,29 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# UpdateInternetGatewayDetails model.
|
8
8
|
class Core::Models::UpdateInternetGatewayDetails # rubocop:disable Metrics/LineLength
|
9
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
10
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
11
|
+
#
|
12
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
13
|
+
#
|
14
|
+
# @return [Hash<String, Hash<String, Object>>]
|
15
|
+
attr_accessor :defined_tags
|
16
|
+
|
9
17
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
10
18
|
# Avoid entering confidential information.
|
11
19
|
#
|
12
20
|
# @return [String]
|
13
21
|
attr_accessor :display_name
|
14
22
|
|
23
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
24
|
+
# predefined name, type, or namespace. For more information, see
|
25
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
26
|
+
#
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
28
|
+
#
|
29
|
+
# @return [Hash<String, String>]
|
30
|
+
attr_accessor :freeform_tags
|
31
|
+
|
15
32
|
# Whether the gateway is enabled.
|
16
33
|
# @return [BOOLEAN]
|
17
34
|
attr_accessor :is_enabled
|
@@ -20,7 +37,9 @@ module OCI
|
|
20
37
|
def self.attribute_map
|
21
38
|
{
|
22
39
|
# rubocop:disable Style/SymbolLiteral
|
40
|
+
'defined_tags': :'definedTags',
|
23
41
|
'display_name': :'displayName',
|
42
|
+
'freeform_tags': :'freeformTags',
|
24
43
|
'is_enabled': :'isEnabled'
|
25
44
|
# rubocop:enable Style/SymbolLiteral
|
26
45
|
}
|
@@ -30,7 +49,9 @@ module OCI
|
|
30
49
|
def self.swagger_types
|
31
50
|
{
|
32
51
|
# rubocop:disable Style/SymbolLiteral
|
52
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
33
53
|
'display_name': :'String',
|
54
|
+
'freeform_tags': :'Hash<String, String>',
|
34
55
|
'is_enabled': :'BOOLEAN'
|
35
56
|
# rubocop:enable Style/SymbolLiteral
|
36
57
|
}
|
@@ -42,7 +63,9 @@ module OCI
|
|
42
63
|
|
43
64
|
# Initializes the object
|
44
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
66
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
45
67
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
68
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
46
69
|
# @option attributes [BOOLEAN] :is_enabled The value to assign to the {#is_enabled} property
|
47
70
|
def initialize(attributes = {})
|
48
71
|
return unless attributes.is_a?(Hash)
|
@@ -50,12 +73,24 @@ module OCI
|
|
50
73
|
# convert string to symbol for hash key
|
51
74
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
75
|
|
76
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
77
|
+
|
78
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
79
|
+
|
80
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
81
|
+
|
53
82
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
54
83
|
|
55
84
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
56
85
|
|
57
86
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
58
87
|
|
88
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
89
|
+
|
90
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
91
|
+
|
92
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
93
|
+
|
59
94
|
self.is_enabled = attributes[:'isEnabled'] unless attributes[:'isEnabled'].nil?
|
60
95
|
|
61
96
|
raise 'You cannot provide both :isEnabled and :is_enabled' if attributes.key?(:'isEnabled') && attributes.key?(:'is_enabled')
|
@@ -73,7 +108,9 @@ module OCI
|
|
73
108
|
def ==(other)
|
74
109
|
return true if equal?(other)
|
75
110
|
self.class == other.class &&
|
111
|
+
defined_tags == other.defined_tags &&
|
76
112
|
display_name == other.display_name &&
|
113
|
+
freeform_tags == other.freeform_tags &&
|
77
114
|
is_enabled == other.is_enabled
|
78
115
|
end
|
79
116
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
@@ -90,7 +127,7 @@ module OCI
|
|
90
127
|
# Calculates hash code according to all attributes.
|
91
128
|
# @return [Fixnum] Hash code
|
92
129
|
def hash
|
93
|
-
[display_name, is_enabled].hash
|
130
|
+
[defined_tags, display_name, freeform_tags, is_enabled].hash
|
94
131
|
end
|
95
132
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
96
133
|
|
@@ -6,17 +6,36 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# UpdateIPSecConnectionDetails model.
|
8
8
|
class Core::Models::UpdateIPSecConnectionDetails # rubocop:disable Metrics/LineLength
|
9
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
10
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
11
|
+
#
|
12
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
13
|
+
#
|
14
|
+
# @return [Hash<String, Hash<String, Object>>]
|
15
|
+
attr_accessor :defined_tags
|
16
|
+
|
9
17
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
10
18
|
# Avoid entering confidential information.
|
11
19
|
#
|
12
20
|
# @return [String]
|
13
21
|
attr_accessor :display_name
|
14
22
|
|
23
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
24
|
+
# predefined name, type, or namespace. For more information, see
|
25
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
26
|
+
#
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
28
|
+
#
|
29
|
+
# @return [Hash<String, String>]
|
30
|
+
attr_accessor :freeform_tags
|
31
|
+
|
15
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
33
|
def self.attribute_map
|
17
34
|
{
|
18
35
|
# rubocop:disable Style/SymbolLiteral
|
19
|
-
'
|
36
|
+
'defined_tags': :'definedTags',
|
37
|
+
'display_name': :'displayName',
|
38
|
+
'freeform_tags': :'freeformTags'
|
20
39
|
# rubocop:enable Style/SymbolLiteral
|
21
40
|
}
|
22
41
|
end
|
@@ -25,7 +44,9 @@ module OCI
|
|
25
44
|
def self.swagger_types
|
26
45
|
{
|
27
46
|
# rubocop:disable Style/SymbolLiteral
|
28
|
-
'
|
47
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
48
|
+
'display_name': :'String',
|
49
|
+
'freeform_tags': :'Hash<String, String>'
|
29
50
|
# rubocop:enable Style/SymbolLiteral
|
30
51
|
}
|
31
52
|
end
|
@@ -36,18 +57,32 @@ module OCI
|
|
36
57
|
|
37
58
|
# Initializes the object
|
38
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
39
61
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
62
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
40
63
|
def initialize(attributes = {})
|
41
64
|
return unless attributes.is_a?(Hash)
|
42
65
|
|
43
66
|
# convert string to symbol for hash key
|
44
67
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
68
|
|
69
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
70
|
+
|
71
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
72
|
+
|
73
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
74
|
+
|
46
75
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
47
76
|
|
48
77
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
49
78
|
|
50
79
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
80
|
+
|
81
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
82
|
+
|
83
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
84
|
+
|
85
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
51
86
|
end
|
52
87
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
53
88
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -60,7 +95,9 @@ module OCI
|
|
60
95
|
def ==(other)
|
61
96
|
return true if equal?(other)
|
62
97
|
self.class == other.class &&
|
63
|
-
|
98
|
+
defined_tags == other.defined_tags &&
|
99
|
+
display_name == other.display_name &&
|
100
|
+
freeform_tags == other.freeform_tags
|
64
101
|
end
|
65
102
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
66
103
|
|
@@ -76,7 +113,7 @@ module OCI
|
|
76
113
|
# Calculates hash code according to all attributes.
|
77
114
|
# @return [Fixnum] Hash code
|
78
115
|
def hash
|
79
|
-
[display_name].hash
|
116
|
+
[defined_tags, display_name, freeform_tags].hash
|
80
117
|
end
|
81
118
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
82
119
|
|
@@ -6,17 +6,36 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# UpdateLocalPeeringGatewayDetails model.
|
8
8
|
class Core::Models::UpdateLocalPeeringGatewayDetails # rubocop:disable Metrics/LineLength
|
9
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
10
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
11
|
+
#
|
12
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
13
|
+
#
|
14
|
+
# @return [Hash<String, Hash<String, Object>>]
|
15
|
+
attr_accessor :defined_tags
|
16
|
+
|
9
17
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid
|
10
18
|
# entering confidential information.
|
11
19
|
#
|
12
20
|
# @return [String]
|
13
21
|
attr_accessor :display_name
|
14
22
|
|
23
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
24
|
+
# predefined name, type, or namespace. For more information, see
|
25
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
26
|
+
#
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
28
|
+
#
|
29
|
+
# @return [Hash<String, String>]
|
30
|
+
attr_accessor :freeform_tags
|
31
|
+
|
15
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
33
|
def self.attribute_map
|
17
34
|
{
|
18
35
|
# rubocop:disable Style/SymbolLiteral
|
19
|
-
'
|
36
|
+
'defined_tags': :'definedTags',
|
37
|
+
'display_name': :'displayName',
|
38
|
+
'freeform_tags': :'freeformTags'
|
20
39
|
# rubocop:enable Style/SymbolLiteral
|
21
40
|
}
|
22
41
|
end
|
@@ -25,7 +44,9 @@ module OCI
|
|
25
44
|
def self.swagger_types
|
26
45
|
{
|
27
46
|
# rubocop:disable Style/SymbolLiteral
|
28
|
-
'
|
47
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
48
|
+
'display_name': :'String',
|
49
|
+
'freeform_tags': :'Hash<String, String>'
|
29
50
|
# rubocop:enable Style/SymbolLiteral
|
30
51
|
}
|
31
52
|
end
|
@@ -36,18 +57,32 @@ module OCI
|
|
36
57
|
|
37
58
|
# Initializes the object
|
38
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
39
61
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
62
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
40
63
|
def initialize(attributes = {})
|
41
64
|
return unless attributes.is_a?(Hash)
|
42
65
|
|
43
66
|
# convert string to symbol for hash key
|
44
67
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
68
|
|
69
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
70
|
+
|
71
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
72
|
+
|
73
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
74
|
+
|
46
75
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
47
76
|
|
48
77
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
49
78
|
|
50
79
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
80
|
+
|
81
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
82
|
+
|
83
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
84
|
+
|
85
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
51
86
|
end
|
52
87
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
53
88
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -60,7 +95,9 @@ module OCI
|
|
60
95
|
def ==(other)
|
61
96
|
return true if equal?(other)
|
62
97
|
self.class == other.class &&
|
63
|
-
|
98
|
+
defined_tags == other.defined_tags &&
|
99
|
+
display_name == other.display_name &&
|
100
|
+
freeform_tags == other.freeform_tags
|
64
101
|
end
|
65
102
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
66
103
|
|
@@ -76,7 +113,7 @@ module OCI
|
|
76
113
|
# Calculates hash code according to all attributes.
|
77
114
|
# @return [Fixnum] Hash code
|
78
115
|
def hash
|
79
|
-
[display_name].hash
|
116
|
+
[defined_tags, display_name, freeform_tags].hash
|
80
117
|
end
|
81
118
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
82
119
|
|