oci 2.1.2 → 2.2.0
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 +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
@@ -10,10 +10,27 @@ module OCI
|
|
10
10
|
# @return [String]
|
11
11
|
attr_accessor :compartment_id
|
12
12
|
|
13
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
14
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
15
|
+
#
|
16
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
17
|
+
#
|
18
|
+
# @return [Hash<String, Hash<String, Object>>]
|
19
|
+
attr_accessor :defined_tags
|
20
|
+
|
13
21
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
14
22
|
# @return [String]
|
15
23
|
attr_accessor :display_name
|
16
24
|
|
25
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
26
|
+
# predefined name, type, or namespace. For more information, see
|
27
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
28
|
+
#
|
29
|
+
# Example: `{\"Department\": \"Finance\"}`
|
30
|
+
#
|
31
|
+
# @return [Hash<String, String>]
|
32
|
+
attr_accessor :freeform_tags
|
33
|
+
|
17
34
|
# **[Required]** The public IP address of the on-premises router.
|
18
35
|
#
|
19
36
|
# Example: `143.19.23.16`
|
@@ -26,7 +43,9 @@ module OCI
|
|
26
43
|
{
|
27
44
|
# rubocop:disable Style/SymbolLiteral
|
28
45
|
'compartment_id': :'compartmentId',
|
46
|
+
'defined_tags': :'definedTags',
|
29
47
|
'display_name': :'displayName',
|
48
|
+
'freeform_tags': :'freeformTags',
|
30
49
|
'ip_address': :'ipAddress'
|
31
50
|
# rubocop:enable Style/SymbolLiteral
|
32
51
|
}
|
@@ -37,7 +56,9 @@ module OCI
|
|
37
56
|
{
|
38
57
|
# rubocop:disable Style/SymbolLiteral
|
39
58
|
'compartment_id': :'String',
|
59
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
40
60
|
'display_name': :'String',
|
61
|
+
'freeform_tags': :'Hash<String, String>',
|
41
62
|
'ip_address': :'String'
|
42
63
|
# rubocop:enable Style/SymbolLiteral
|
43
64
|
}
|
@@ -50,7 +71,9 @@ module OCI
|
|
50
71
|
# Initializes the object
|
51
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
73
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
74
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
53
75
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
76
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
54
77
|
# @option attributes [String] :ip_address The value to assign to the {#ip_address} property
|
55
78
|
def initialize(attributes = {})
|
56
79
|
return unless attributes.is_a?(Hash)
|
@@ -64,12 +87,24 @@ module OCI
|
|
64
87
|
|
65
88
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
66
89
|
|
90
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
91
|
+
|
92
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
93
|
+
|
94
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
95
|
+
|
67
96
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
68
97
|
|
69
98
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
70
99
|
|
71
100
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
72
101
|
|
102
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
103
|
+
|
104
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
105
|
+
|
106
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
107
|
+
|
73
108
|
self.ip_address = attributes[:'ipAddress'] if attributes[:'ipAddress']
|
74
109
|
|
75
110
|
raise 'You cannot provide both :ipAddress and :ip_address' if attributes.key?(:'ipAddress') && attributes.key?(:'ip_address')
|
@@ -88,7 +123,9 @@ module OCI
|
|
88
123
|
return true if equal?(other)
|
89
124
|
self.class == other.class &&
|
90
125
|
compartment_id == other.compartment_id &&
|
126
|
+
defined_tags == other.defined_tags &&
|
91
127
|
display_name == other.display_name &&
|
128
|
+
freeform_tags == other.freeform_tags &&
|
92
129
|
ip_address == other.ip_address
|
93
130
|
end
|
94
131
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
@@ -105,7 +142,7 @@ module OCI
|
|
105
142
|
# Calculates hash code according to all attributes.
|
106
143
|
# @return [Fixnum] Hash code
|
107
144
|
def hash
|
108
|
-
[compartment_id, display_name, ip_address].hash
|
145
|
+
[compartment_id, defined_tags, display_name, freeform_tags, ip_address].hash
|
109
146
|
end
|
110
147
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
111
148
|
|
@@ -10,16 +10,35 @@ module OCI
|
|
10
10
|
# @return [String]
|
11
11
|
attr_accessor :compartment_id
|
12
12
|
|
13
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
14
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
15
|
+
#
|
16
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
17
|
+
#
|
18
|
+
# @return [Hash<String, Hash<String, Object>>]
|
19
|
+
attr_accessor :defined_tags
|
20
|
+
|
13
21
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
14
22
|
# @return [String]
|
15
23
|
attr_accessor :display_name
|
16
24
|
|
25
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
26
|
+
# predefined name, type, or namespace. For more information, see
|
27
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
28
|
+
#
|
29
|
+
# Example: `{\"Department\": \"Finance\"}`
|
30
|
+
#
|
31
|
+
# @return [Hash<String, String>]
|
32
|
+
attr_accessor :freeform_tags
|
33
|
+
|
17
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
35
|
def self.attribute_map
|
19
36
|
{
|
20
37
|
# rubocop:disable Style/SymbolLiteral
|
21
38
|
'compartment_id': :'compartmentId',
|
22
|
-
'
|
39
|
+
'defined_tags': :'definedTags',
|
40
|
+
'display_name': :'displayName',
|
41
|
+
'freeform_tags': :'freeformTags'
|
23
42
|
# rubocop:enable Style/SymbolLiteral
|
24
43
|
}
|
25
44
|
end
|
@@ -29,7 +48,9 @@ module OCI
|
|
29
48
|
{
|
30
49
|
# rubocop:disable Style/SymbolLiteral
|
31
50
|
'compartment_id': :'String',
|
32
|
-
'
|
51
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
52
|
+
'display_name': :'String',
|
53
|
+
'freeform_tags': :'Hash<String, String>'
|
33
54
|
# rubocop:enable Style/SymbolLiteral
|
34
55
|
}
|
35
56
|
end
|
@@ -41,7 +62,9 @@ module OCI
|
|
41
62
|
# Initializes the object
|
42
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
43
64
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
65
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
44
66
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
67
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
45
68
|
def initialize(attributes = {})
|
46
69
|
return unless attributes.is_a?(Hash)
|
47
70
|
|
@@ -54,11 +77,23 @@ module OCI
|
|
54
77
|
|
55
78
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
56
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
|
+
|
57
86
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
58
87
|
|
59
88
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
60
89
|
|
61
90
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
91
|
+
|
92
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
93
|
+
|
94
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
95
|
+
|
96
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
62
97
|
end
|
63
98
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
64
99
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -72,7 +107,9 @@ module OCI
|
|
72
107
|
return true if equal?(other)
|
73
108
|
self.class == other.class &&
|
74
109
|
compartment_id == other.compartment_id &&
|
75
|
-
|
110
|
+
defined_tags == other.defined_tags &&
|
111
|
+
display_name == other.display_name &&
|
112
|
+
freeform_tags == other.freeform_tags
|
76
113
|
end
|
77
114
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
78
115
|
|
@@ -88,7 +125,7 @@ module OCI
|
|
88
125
|
# Calculates hash code according to all attributes.
|
89
126
|
# @return [Fixnum] Hash code
|
90
127
|
def hash
|
91
|
-
[compartment_id, display_name].hash
|
128
|
+
[compartment_id, defined_tags, display_name, freeform_tags].hash
|
92
129
|
end
|
93
130
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
94
131
|
|
@@ -10,10 +10,27 @@ module OCI
|
|
10
10
|
# @return [String]
|
11
11
|
attr_accessor :compartment_id
|
12
12
|
|
13
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
14
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
15
|
+
#
|
16
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
17
|
+
#
|
18
|
+
# @return [Hash<String, Hash<String, Object>>]
|
19
|
+
attr_accessor :defined_tags
|
20
|
+
|
13
21
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
14
22
|
# @return [String]
|
15
23
|
attr_accessor :display_name
|
16
24
|
|
25
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
26
|
+
# predefined name, type, or namespace. For more information, see
|
27
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
28
|
+
#
|
29
|
+
# Example: `{\"Department\": \"Finance\"}`
|
30
|
+
#
|
31
|
+
# @return [Hash<String, String>]
|
32
|
+
attr_accessor :freeform_tags
|
33
|
+
|
17
34
|
# **[Required]** Whether the gateway is enabled upon creation.
|
18
35
|
# @return [BOOLEAN]
|
19
36
|
attr_accessor :is_enabled
|
@@ -27,7 +44,9 @@ module OCI
|
|
27
44
|
{
|
28
45
|
# rubocop:disable Style/SymbolLiteral
|
29
46
|
'compartment_id': :'compartmentId',
|
47
|
+
'defined_tags': :'definedTags',
|
30
48
|
'display_name': :'displayName',
|
49
|
+
'freeform_tags': :'freeformTags',
|
31
50
|
'is_enabled': :'isEnabled',
|
32
51
|
'vcn_id': :'vcnId'
|
33
52
|
# rubocop:enable Style/SymbolLiteral
|
@@ -39,7 +58,9 @@ module OCI
|
|
39
58
|
{
|
40
59
|
# rubocop:disable Style/SymbolLiteral
|
41
60
|
'compartment_id': :'String',
|
61
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
42
62
|
'display_name': :'String',
|
63
|
+
'freeform_tags': :'Hash<String, String>',
|
43
64
|
'is_enabled': :'BOOLEAN',
|
44
65
|
'vcn_id': :'String'
|
45
66
|
# rubocop:enable Style/SymbolLiteral
|
@@ -53,7 +74,9 @@ module OCI
|
|
53
74
|
# Initializes the object
|
54
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
76
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
77
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
56
78
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
79
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
57
80
|
# @option attributes [BOOLEAN] :is_enabled The value to assign to the {#is_enabled} property
|
58
81
|
# @option attributes [String] :vcn_id The value to assign to the {#vcn_id} property
|
59
82
|
def initialize(attributes = {})
|
@@ -68,12 +91,24 @@ module OCI
|
|
68
91
|
|
69
92
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
70
93
|
|
94
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
95
|
+
|
96
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
97
|
+
|
98
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
99
|
+
|
71
100
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
72
101
|
|
73
102
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
74
103
|
|
75
104
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
76
105
|
|
106
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
107
|
+
|
108
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
109
|
+
|
110
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
111
|
+
|
77
112
|
self.is_enabled = attributes[:'isEnabled'] unless attributes[:'isEnabled'].nil?
|
78
113
|
|
79
114
|
raise 'You cannot provide both :isEnabled and :is_enabled' if attributes.key?(:'isEnabled') && attributes.key?(:'is_enabled')
|
@@ -98,7 +133,9 @@ module OCI
|
|
98
133
|
return true if equal?(other)
|
99
134
|
self.class == other.class &&
|
100
135
|
compartment_id == other.compartment_id &&
|
136
|
+
defined_tags == other.defined_tags &&
|
101
137
|
display_name == other.display_name &&
|
138
|
+
freeform_tags == other.freeform_tags &&
|
102
139
|
is_enabled == other.is_enabled &&
|
103
140
|
vcn_id == other.vcn_id
|
104
141
|
end
|
@@ -116,7 +153,7 @@ module OCI
|
|
116
153
|
# Calculates hash code according to all attributes.
|
117
154
|
# @return [Fixnum] Hash code
|
118
155
|
def hash
|
119
|
-
[compartment_id, display_name, is_enabled, vcn_id].hash
|
156
|
+
[compartment_id, defined_tags, display_name, freeform_tags, is_enabled, vcn_id].hash
|
120
157
|
end
|
121
158
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
122
159
|
|
@@ -14,6 +14,14 @@ module OCI
|
|
14
14
|
# @return [String]
|
15
15
|
attr_accessor :cpe_id
|
16
16
|
|
17
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
18
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
19
|
+
#
|
20
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
21
|
+
#
|
22
|
+
# @return [Hash<String, Hash<String, Object>>]
|
23
|
+
attr_accessor :defined_tags
|
24
|
+
|
17
25
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
|
18
26
|
# @return [String]
|
19
27
|
attr_accessor :display_name
|
@@ -22,6 +30,15 @@ module OCI
|
|
22
30
|
# @return [String]
|
23
31
|
attr_accessor :drg_id
|
24
32
|
|
33
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
34
|
+
# predefined name, type, or namespace. For more information, see
|
35
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
36
|
+
#
|
37
|
+
# Example: `{\"Department\": \"Finance\"}`
|
38
|
+
#
|
39
|
+
# @return [Hash<String, String>]
|
40
|
+
attr_accessor :freeform_tags
|
41
|
+
|
25
42
|
# **[Required]** Static routes to the CPE. At least one route must be included. The CIDR must not be a
|
26
43
|
# multicast address or class E address.
|
27
44
|
#
|
@@ -36,8 +53,10 @@ module OCI
|
|
36
53
|
# rubocop:disable Style/SymbolLiteral
|
37
54
|
'compartment_id': :'compartmentId',
|
38
55
|
'cpe_id': :'cpeId',
|
56
|
+
'defined_tags': :'definedTags',
|
39
57
|
'display_name': :'displayName',
|
40
58
|
'drg_id': :'drgId',
|
59
|
+
'freeform_tags': :'freeformTags',
|
41
60
|
'static_routes': :'staticRoutes'
|
42
61
|
# rubocop:enable Style/SymbolLiteral
|
43
62
|
}
|
@@ -49,8 +68,10 @@ module OCI
|
|
49
68
|
# rubocop:disable Style/SymbolLiteral
|
50
69
|
'compartment_id': :'String',
|
51
70
|
'cpe_id': :'String',
|
71
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
52
72
|
'display_name': :'String',
|
53
73
|
'drg_id': :'String',
|
74
|
+
'freeform_tags': :'Hash<String, String>',
|
54
75
|
'static_routes': :'Array<String>'
|
55
76
|
# rubocop:enable Style/SymbolLiteral
|
56
77
|
}
|
@@ -64,8 +85,10 @@ module OCI
|
|
64
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
65
86
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
66
87
|
# @option attributes [String] :cpe_id The value to assign to the {#cpe_id} property
|
88
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
67
89
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
68
90
|
# @option attributes [String] :drg_id The value to assign to the {#drg_id} property
|
91
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
69
92
|
# @option attributes [Array<String>] :static_routes The value to assign to the {#static_routes} property
|
70
93
|
def initialize(attributes = {})
|
71
94
|
return unless attributes.is_a?(Hash)
|
@@ -85,6 +108,12 @@ module OCI
|
|
85
108
|
|
86
109
|
self.cpe_id = attributes[:'cpe_id'] if attributes[:'cpe_id']
|
87
110
|
|
111
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
112
|
+
|
113
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
114
|
+
|
115
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
116
|
+
|
88
117
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
89
118
|
|
90
119
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
@@ -97,6 +126,12 @@ module OCI
|
|
97
126
|
|
98
127
|
self.drg_id = attributes[:'drg_id'] if attributes[:'drg_id']
|
99
128
|
|
129
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
130
|
+
|
131
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
132
|
+
|
133
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
134
|
+
|
100
135
|
self.static_routes = attributes[:'staticRoutes'] if attributes[:'staticRoutes']
|
101
136
|
|
102
137
|
raise 'You cannot provide both :staticRoutes and :static_routes' if attributes.key?(:'staticRoutes') && attributes.key?(:'static_routes')
|
@@ -116,8 +151,10 @@ module OCI
|
|
116
151
|
self.class == other.class &&
|
117
152
|
compartment_id == other.compartment_id &&
|
118
153
|
cpe_id == other.cpe_id &&
|
154
|
+
defined_tags == other.defined_tags &&
|
119
155
|
display_name == other.display_name &&
|
120
156
|
drg_id == other.drg_id &&
|
157
|
+
freeform_tags == other.freeform_tags &&
|
121
158
|
static_routes == other.static_routes
|
122
159
|
end
|
123
160
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
@@ -134,7 +171,7 @@ module OCI
|
|
134
171
|
# Calculates hash code according to all attributes.
|
135
172
|
# @return [Fixnum] Hash code
|
136
173
|
def hash
|
137
|
-
[compartment_id, cpe_id, display_name, drg_id, static_routes].hash
|
174
|
+
[compartment_id, cpe_id, defined_tags, display_name, drg_id, freeform_tags, static_routes].hash
|
138
175
|
end
|
139
176
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
140
177
|
|
@@ -10,12 +10,29 @@ module OCI
|
|
10
10
|
# @return [String]
|
11
11
|
attr_accessor :compartment_id
|
12
12
|
|
13
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
14
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
15
|
+
#
|
16
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
17
|
+
#
|
18
|
+
# @return [Hash<String, Hash<String, Object>>]
|
19
|
+
attr_accessor :defined_tags
|
20
|
+
|
13
21
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid
|
14
22
|
# entering confidential information.
|
15
23
|
#
|
16
24
|
# @return [String]
|
17
25
|
attr_accessor :display_name
|
18
26
|
|
27
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
28
|
+
# predefined name, type, or namespace. For more information, see
|
29
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
30
|
+
#
|
31
|
+
# Example: `{\"Department\": \"Finance\"}`
|
32
|
+
#
|
33
|
+
# @return [Hash<String, String>]
|
34
|
+
attr_accessor :freeform_tags
|
35
|
+
|
19
36
|
# **[Required]** The OCID of the VCN the LPG belongs to.
|
20
37
|
# @return [String]
|
21
38
|
attr_accessor :vcn_id
|
@@ -25,7 +42,9 @@ module OCI
|
|
25
42
|
{
|
26
43
|
# rubocop:disable Style/SymbolLiteral
|
27
44
|
'compartment_id': :'compartmentId',
|
45
|
+
'defined_tags': :'definedTags',
|
28
46
|
'display_name': :'displayName',
|
47
|
+
'freeform_tags': :'freeformTags',
|
29
48
|
'vcn_id': :'vcnId'
|
30
49
|
# rubocop:enable Style/SymbolLiteral
|
31
50
|
}
|
@@ -36,7 +55,9 @@ module OCI
|
|
36
55
|
{
|
37
56
|
# rubocop:disable Style/SymbolLiteral
|
38
57
|
'compartment_id': :'String',
|
58
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
39
59
|
'display_name': :'String',
|
60
|
+
'freeform_tags': :'Hash<String, String>',
|
40
61
|
'vcn_id': :'String'
|
41
62
|
# rubocop:enable Style/SymbolLiteral
|
42
63
|
}
|
@@ -49,7 +70,9 @@ module OCI
|
|
49
70
|
# Initializes the object
|
50
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
72
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
73
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
52
74
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
75
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
53
76
|
# @option attributes [String] :vcn_id The value to assign to the {#vcn_id} property
|
54
77
|
def initialize(attributes = {})
|
55
78
|
return unless attributes.is_a?(Hash)
|
@@ -63,12 +86,24 @@ module OCI
|
|
63
86
|
|
64
87
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
65
88
|
|
89
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
90
|
+
|
91
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
92
|
+
|
93
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
94
|
+
|
66
95
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
67
96
|
|
68
97
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
69
98
|
|
70
99
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
71
100
|
|
101
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
102
|
+
|
103
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
104
|
+
|
105
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
106
|
+
|
72
107
|
self.vcn_id = attributes[:'vcnId'] if attributes[:'vcnId']
|
73
108
|
|
74
109
|
raise 'You cannot provide both :vcnId and :vcn_id' if attributes.key?(:'vcnId') && attributes.key?(:'vcn_id')
|
@@ -87,7 +122,9 @@ module OCI
|
|
87
122
|
return true if equal?(other)
|
88
123
|
self.class == other.class &&
|
89
124
|
compartment_id == other.compartment_id &&
|
125
|
+
defined_tags == other.defined_tags &&
|
90
126
|
display_name == other.display_name &&
|
127
|
+
freeform_tags == other.freeform_tags &&
|
91
128
|
vcn_id == other.vcn_id
|
92
129
|
end
|
93
130
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
@@ -104,7 +141,7 @@ module OCI
|
|
104
141
|
# Calculates hash code according to all attributes.
|
105
142
|
# @return [Fixnum] Hash code
|
106
143
|
def hash
|
107
|
-
[compartment_id, display_name, vcn_id].hash
|
144
|
+
[compartment_id, defined_tags, display_name, freeform_tags, vcn_id].hash
|
108
145
|
end
|
109
146
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
110
147
|
|