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
data/lib/oci/core/models/drg.rb
CHANGED
@@ -28,12 +28,29 @@ module OCI
|
|
28
28
|
# @return [String]
|
29
29
|
attr_accessor :compartment_id
|
30
30
|
|
31
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
32
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
33
|
+
#
|
34
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
35
|
+
#
|
36
|
+
# @return [Hash<String, Hash<String, Object>>]
|
37
|
+
attr_accessor :defined_tags
|
38
|
+
|
31
39
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
32
40
|
# Avoid entering confidential information.
|
33
41
|
#
|
34
42
|
# @return [String]
|
35
43
|
attr_accessor :display_name
|
36
44
|
|
45
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
46
|
+
# predefined name, type, or namespace. For more information, see
|
47
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
48
|
+
#
|
49
|
+
# Example: `{\"Department\": \"Finance\"}`
|
50
|
+
#
|
51
|
+
# @return [Hash<String, String>]
|
52
|
+
attr_accessor :freeform_tags
|
53
|
+
|
37
54
|
# **[Required]** The DRG's Oracle ID (OCID).
|
38
55
|
# @return [String]
|
39
56
|
attr_accessor :id
|
@@ -54,7 +71,9 @@ module OCI
|
|
54
71
|
{
|
55
72
|
# rubocop:disable Style/SymbolLiteral
|
56
73
|
'compartment_id': :'compartmentId',
|
74
|
+
'defined_tags': :'definedTags',
|
57
75
|
'display_name': :'displayName',
|
76
|
+
'freeform_tags': :'freeformTags',
|
58
77
|
'id': :'id',
|
59
78
|
'lifecycle_state': :'lifecycleState',
|
60
79
|
'time_created': :'timeCreated'
|
@@ -67,7 +86,9 @@ module OCI
|
|
67
86
|
{
|
68
87
|
# rubocop:disable Style/SymbolLiteral
|
69
88
|
'compartment_id': :'String',
|
89
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
70
90
|
'display_name': :'String',
|
91
|
+
'freeform_tags': :'Hash<String, String>',
|
71
92
|
'id': :'String',
|
72
93
|
'lifecycle_state': :'String',
|
73
94
|
'time_created': :'DateTime'
|
@@ -82,7 +103,9 @@ module OCI
|
|
82
103
|
# Initializes the object
|
83
104
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
105
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
106
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
85
107
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
108
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
86
109
|
# @option attributes [String] :id The value to assign to the {#id} property
|
87
110
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
88
111
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
@@ -98,12 +121,24 @@ module OCI
|
|
98
121
|
|
99
122
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
100
123
|
|
124
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
125
|
+
|
126
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
127
|
+
|
128
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
129
|
+
|
101
130
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
102
131
|
|
103
132
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
104
133
|
|
105
134
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
106
135
|
|
136
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
137
|
+
|
138
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
139
|
+
|
140
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
141
|
+
|
107
142
|
self.id = attributes[:'id'] if attributes[:'id']
|
108
143
|
|
109
144
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
@@ -145,7 +180,9 @@ module OCI
|
|
145
180
|
return true if equal?(other)
|
146
181
|
self.class == other.class &&
|
147
182
|
compartment_id == other.compartment_id &&
|
183
|
+
defined_tags == other.defined_tags &&
|
148
184
|
display_name == other.display_name &&
|
185
|
+
freeform_tags == other.freeform_tags &&
|
149
186
|
id == other.id &&
|
150
187
|
lifecycle_state == other.lifecycle_state &&
|
151
188
|
time_created == other.time_created
|
@@ -164,7 +201,7 @@ module OCI
|
|
164
201
|
# Calculates hash code according to all attributes.
|
165
202
|
# @return [Fixnum] Hash code
|
166
203
|
def hash
|
167
|
-
[compartment_id, display_name, id, lifecycle_state, time_created].hash
|
204
|
+
[compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, time_created].hash
|
168
205
|
end
|
169
206
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
170
207
|
|
@@ -26,12 +26,29 @@ module OCI
|
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :compartment_id
|
28
28
|
|
29
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
30
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
31
|
+
#
|
32
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
33
|
+
#
|
34
|
+
# @return [Hash<String, Hash<String, Object>>]
|
35
|
+
attr_accessor :defined_tags
|
36
|
+
|
29
37
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
30
38
|
# Avoid entering confidential information.
|
31
39
|
#
|
32
40
|
# @return [String]
|
33
41
|
attr_accessor :display_name
|
34
42
|
|
43
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
44
|
+
# predefined name, type, or namespace. For more information, see
|
45
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
46
|
+
#
|
47
|
+
# Example: `{\"Department\": \"Finance\"}`
|
48
|
+
#
|
49
|
+
# @return [Hash<String, String>]
|
50
|
+
attr_accessor :freeform_tags
|
51
|
+
|
35
52
|
# **[Required]** The Internet Gateway's Oracle ID (OCID).
|
36
53
|
# @return [String]
|
37
54
|
attr_accessor :id
|
@@ -62,7 +79,9 @@ module OCI
|
|
62
79
|
{
|
63
80
|
# rubocop:disable Style/SymbolLiteral
|
64
81
|
'compartment_id': :'compartmentId',
|
82
|
+
'defined_tags': :'definedTags',
|
65
83
|
'display_name': :'displayName',
|
84
|
+
'freeform_tags': :'freeformTags',
|
66
85
|
'id': :'id',
|
67
86
|
'is_enabled': :'isEnabled',
|
68
87
|
'lifecycle_state': :'lifecycleState',
|
@@ -77,7 +96,9 @@ module OCI
|
|
77
96
|
{
|
78
97
|
# rubocop:disable Style/SymbolLiteral
|
79
98
|
'compartment_id': :'String',
|
99
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
80
100
|
'display_name': :'String',
|
101
|
+
'freeform_tags': :'Hash<String, String>',
|
81
102
|
'id': :'String',
|
82
103
|
'is_enabled': :'BOOLEAN',
|
83
104
|
'lifecycle_state': :'String',
|
@@ -94,7 +115,9 @@ module OCI
|
|
94
115
|
# Initializes the object
|
95
116
|
# @param [Hash] attributes Model attributes in the form of hash
|
96
117
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
118
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
97
119
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
120
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
98
121
|
# @option attributes [String] :id The value to assign to the {#id} property
|
99
122
|
# @option attributes [BOOLEAN] :is_enabled The value to assign to the {#is_enabled} property
|
100
123
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
@@ -112,12 +135,24 @@ module OCI
|
|
112
135
|
|
113
136
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
114
137
|
|
138
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
139
|
+
|
140
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
141
|
+
|
142
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
143
|
+
|
115
144
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
116
145
|
|
117
146
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
118
147
|
|
119
148
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
120
149
|
|
150
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
151
|
+
|
152
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
153
|
+
|
154
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
155
|
+
|
121
156
|
self.id = attributes[:'id'] if attributes[:'id']
|
122
157
|
|
123
158
|
self.is_enabled = attributes[:'isEnabled'] unless attributes[:'isEnabled'].nil?
|
@@ -171,7 +206,9 @@ module OCI
|
|
171
206
|
return true if equal?(other)
|
172
207
|
self.class == other.class &&
|
173
208
|
compartment_id == other.compartment_id &&
|
209
|
+
defined_tags == other.defined_tags &&
|
174
210
|
display_name == other.display_name &&
|
211
|
+
freeform_tags == other.freeform_tags &&
|
175
212
|
id == other.id &&
|
176
213
|
is_enabled == other.is_enabled &&
|
177
214
|
lifecycle_state == other.lifecycle_state &&
|
@@ -192,7 +229,7 @@ module OCI
|
|
192
229
|
# Calculates hash code according to all attributes.
|
193
230
|
# @return [Fixnum] Hash code
|
194
231
|
def hash
|
195
|
-
[compartment_id, display_name, id, is_enabled, lifecycle_state, time_created, vcn_id].hash
|
232
|
+
[compartment_id, defined_tags, display_name, freeform_tags, id, is_enabled, lifecycle_state, time_created, vcn_id].hash
|
196
233
|
end
|
197
234
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
198
235
|
|
@@ -31,6 +31,14 @@ module OCI
|
|
31
31
|
# @return [String]
|
32
32
|
attr_accessor :cpe_id
|
33
33
|
|
34
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
35
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
36
|
+
#
|
37
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
38
|
+
#
|
39
|
+
# @return [Hash<String, Hash<String, Object>>]
|
40
|
+
attr_accessor :defined_tags
|
41
|
+
|
34
42
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
35
43
|
# Avoid entering confidential information.
|
36
44
|
#
|
@@ -41,6 +49,15 @@ module OCI
|
|
41
49
|
# @return [String]
|
42
50
|
attr_accessor :drg_id
|
43
51
|
|
52
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
53
|
+
# predefined name, type, or namespace. For more information, see
|
54
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
55
|
+
#
|
56
|
+
# Example: `{\"Department\": \"Finance\"}`
|
57
|
+
#
|
58
|
+
# @return [Hash<String, String>]
|
59
|
+
attr_accessor :freeform_tags
|
60
|
+
|
44
61
|
# **[Required]** The IPSec connection's Oracle ID (OCID).
|
45
62
|
# @return [String]
|
46
63
|
attr_accessor :id
|
@@ -70,8 +87,10 @@ module OCI
|
|
70
87
|
# rubocop:disable Style/SymbolLiteral
|
71
88
|
'compartment_id': :'compartmentId',
|
72
89
|
'cpe_id': :'cpeId',
|
90
|
+
'defined_tags': :'definedTags',
|
73
91
|
'display_name': :'displayName',
|
74
92
|
'drg_id': :'drgId',
|
93
|
+
'freeform_tags': :'freeformTags',
|
75
94
|
'id': :'id',
|
76
95
|
'lifecycle_state': :'lifecycleState',
|
77
96
|
'static_routes': :'staticRoutes',
|
@@ -86,8 +105,10 @@ module OCI
|
|
86
105
|
# rubocop:disable Style/SymbolLiteral
|
87
106
|
'compartment_id': :'String',
|
88
107
|
'cpe_id': :'String',
|
108
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
89
109
|
'display_name': :'String',
|
90
110
|
'drg_id': :'String',
|
111
|
+
'freeform_tags': :'Hash<String, String>',
|
91
112
|
'id': :'String',
|
92
113
|
'lifecycle_state': :'String',
|
93
114
|
'static_routes': :'Array<String>',
|
@@ -104,8 +125,10 @@ module OCI
|
|
104
125
|
# @param [Hash] attributes Model attributes in the form of hash
|
105
126
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
106
127
|
# @option attributes [String] :cpe_id The value to assign to the {#cpe_id} property
|
128
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
107
129
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
108
130
|
# @option attributes [String] :drg_id The value to assign to the {#drg_id} property
|
131
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
109
132
|
# @option attributes [String] :id The value to assign to the {#id} property
|
110
133
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
111
134
|
# @option attributes [Array<String>] :static_routes The value to assign to the {#static_routes} property
|
@@ -128,6 +151,12 @@ module OCI
|
|
128
151
|
|
129
152
|
self.cpe_id = attributes[:'cpe_id'] if attributes[:'cpe_id']
|
130
153
|
|
154
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
155
|
+
|
156
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
157
|
+
|
158
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
159
|
+
|
131
160
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
132
161
|
|
133
162
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
@@ -140,6 +169,12 @@ module OCI
|
|
140
169
|
|
141
170
|
self.drg_id = attributes[:'drg_id'] if attributes[:'drg_id']
|
142
171
|
|
172
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
173
|
+
|
174
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
175
|
+
|
176
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
177
|
+
|
143
178
|
self.id = attributes[:'id'] if attributes[:'id']
|
144
179
|
|
145
180
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
@@ -188,8 +223,10 @@ module OCI
|
|
188
223
|
self.class == other.class &&
|
189
224
|
compartment_id == other.compartment_id &&
|
190
225
|
cpe_id == other.cpe_id &&
|
226
|
+
defined_tags == other.defined_tags &&
|
191
227
|
display_name == other.display_name &&
|
192
228
|
drg_id == other.drg_id &&
|
229
|
+
freeform_tags == other.freeform_tags &&
|
193
230
|
id == other.id &&
|
194
231
|
lifecycle_state == other.lifecycle_state &&
|
195
232
|
static_routes == other.static_routes &&
|
@@ -209,7 +246,7 @@ module OCI
|
|
209
246
|
# Calculates hash code according to all attributes.
|
210
247
|
# @return [Fixnum] Hash code
|
211
248
|
def hash
|
212
|
-
[compartment_id, cpe_id, display_name, drg_id, id, lifecycle_state, static_routes, time_created].hash
|
249
|
+
[compartment_id, cpe_id, defined_tags, display_name, drg_id, freeform_tags, id, lifecycle_state, static_routes, time_created].hash
|
213
250
|
end
|
214
251
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
215
252
|
|
@@ -13,6 +13,7 @@ module OCI
|
|
13
13
|
BOOT_VOLUME_TYPE_SCSI = 'SCSI'.freeze,
|
14
14
|
BOOT_VOLUME_TYPE_IDE = 'IDE'.freeze,
|
15
15
|
BOOT_VOLUME_TYPE_VFIO = 'VFIO'.freeze,
|
16
|
+
BOOT_VOLUME_TYPE_PARAVIRTUALIZED = 'PARAVIRTUALIZED'.freeze,
|
16
17
|
BOOT_VOLUME_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
17
18
|
].freeze
|
18
19
|
|
@@ -33,6 +34,7 @@ module OCI
|
|
33
34
|
REMOTE_DATA_VOLUME_TYPE_SCSI = 'SCSI'.freeze,
|
34
35
|
REMOTE_DATA_VOLUME_TYPE_IDE = 'IDE'.freeze,
|
35
36
|
REMOTE_DATA_VOLUME_TYPE_VFIO = 'VFIO'.freeze,
|
37
|
+
REMOTE_DATA_VOLUME_TYPE_PARAVIRTUALIZED = 'PARAVIRTUALIZED'.freeze,
|
36
38
|
REMOTE_DATA_VOLUME_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
37
39
|
].freeze
|
38
40
|
|
@@ -43,6 +45,7 @@ module OCI
|
|
43
45
|
# * `IDE` - Emulated IDE disk.
|
44
46
|
# * `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data
|
45
47
|
# volumes on Oracle provided images.
|
48
|
+
# * `PARAVIRTUALIZED` - Paravirtualized disk.
|
46
49
|
#
|
47
50
|
# @return [String]
|
48
51
|
attr_reader :boot_volume_type
|
@@ -70,6 +73,7 @@ module OCI
|
|
70
73
|
# * `IDE` - Emulated IDE disk.
|
71
74
|
# * `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data
|
72
75
|
# volumes on Oracle provided images.
|
76
|
+
# * `PARAVIRTUALIZED` - Paravirtualized disk.
|
73
77
|
#
|
74
78
|
# @return [String]
|
75
79
|
attr_reader :remote_data_volume_type
|
@@ -37,12 +37,29 @@ module OCI
|
|
37
37
|
# @return [String]
|
38
38
|
attr_accessor :compartment_id
|
39
39
|
|
40
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
41
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
42
|
+
#
|
43
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
44
|
+
#
|
45
|
+
# @return [Hash<String, Hash<String, Object>>]
|
46
|
+
attr_accessor :defined_tags
|
47
|
+
|
40
48
|
# **[Required]** A user-friendly name. Does not have to be unique, and it's changeable. Avoid
|
41
49
|
# entering confidential information.
|
42
50
|
#
|
43
51
|
# @return [String]
|
44
52
|
attr_accessor :display_name
|
45
53
|
|
54
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
55
|
+
# predefined name, type, or namespace. For more information, see
|
56
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
57
|
+
#
|
58
|
+
# Example: `{\"Department\": \"Finance\"}`
|
59
|
+
#
|
60
|
+
# @return [Hash<String, String>]
|
61
|
+
attr_accessor :freeform_tags
|
62
|
+
|
46
63
|
# **[Required]** The LPG's Oracle ID (OCID).
|
47
64
|
# @return [String]
|
48
65
|
attr_accessor :id
|
@@ -95,7 +112,9 @@ module OCI
|
|
95
112
|
{
|
96
113
|
# rubocop:disable Style/SymbolLiteral
|
97
114
|
'compartment_id': :'compartmentId',
|
115
|
+
'defined_tags': :'definedTags',
|
98
116
|
'display_name': :'displayName',
|
117
|
+
'freeform_tags': :'freeformTags',
|
99
118
|
'id': :'id',
|
100
119
|
'is_cross_tenancy_peering': :'isCrossTenancyPeering',
|
101
120
|
'lifecycle_state': :'lifecycleState',
|
@@ -113,7 +132,9 @@ module OCI
|
|
113
132
|
{
|
114
133
|
# rubocop:disable Style/SymbolLiteral
|
115
134
|
'compartment_id': :'String',
|
135
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
116
136
|
'display_name': :'String',
|
137
|
+
'freeform_tags': :'Hash<String, String>',
|
117
138
|
'id': :'String',
|
118
139
|
'is_cross_tenancy_peering': :'BOOLEAN',
|
119
140
|
'lifecycle_state': :'String',
|
@@ -133,7 +154,9 @@ module OCI
|
|
133
154
|
# Initializes the object
|
134
155
|
# @param [Hash] attributes Model attributes in the form of hash
|
135
156
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
157
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
136
158
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
159
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
137
160
|
# @option attributes [String] :id The value to assign to the {#id} property
|
138
161
|
# @option attributes [BOOLEAN] :is_cross_tenancy_peering The value to assign to the {#is_cross_tenancy_peering} property
|
139
162
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
@@ -154,12 +177,24 @@ module OCI
|
|
154
177
|
|
155
178
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
156
179
|
|
180
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
181
|
+
|
182
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
183
|
+
|
184
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
185
|
+
|
157
186
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
158
187
|
|
159
188
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
160
189
|
|
161
190
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
162
191
|
|
192
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
193
|
+
|
194
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
195
|
+
|
196
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
197
|
+
|
163
198
|
self.id = attributes[:'id'] if attributes[:'id']
|
164
199
|
|
165
200
|
self.is_cross_tenancy_peering = attributes[:'isCrossTenancyPeering'] unless attributes[:'isCrossTenancyPeering'].nil?
|
@@ -246,7 +281,9 @@ module OCI
|
|
246
281
|
return true if equal?(other)
|
247
282
|
self.class == other.class &&
|
248
283
|
compartment_id == other.compartment_id &&
|
284
|
+
defined_tags == other.defined_tags &&
|
249
285
|
display_name == other.display_name &&
|
286
|
+
freeform_tags == other.freeform_tags &&
|
250
287
|
id == other.id &&
|
251
288
|
is_cross_tenancy_peering == other.is_cross_tenancy_peering &&
|
252
289
|
lifecycle_state == other.lifecycle_state &&
|
@@ -270,7 +307,7 @@ module OCI
|
|
270
307
|
# Calculates hash code according to all attributes.
|
271
308
|
# @return [Fixnum] Hash code
|
272
309
|
def hash
|
273
|
-
[compartment_id, display_name, id, is_cross_tenancy_peering, lifecycle_state, peer_advertised_cidr, peering_status, peering_status_details, time_created, vcn_id].hash
|
310
|
+
[compartment_id, defined_tags, display_name, freeform_tags, id, is_cross_tenancy_peering, lifecycle_state, peer_advertised_cidr, peering_status, peering_status_details, time_created, vcn_id].hash
|
274
311
|
end
|
275
312
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
276
313
|
|
@@ -56,12 +56,29 @@ module OCI
|
|
56
56
|
# @return [String]
|
57
57
|
attr_accessor :compartment_id
|
58
58
|
|
59
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
60
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
61
|
+
#
|
62
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
63
|
+
#
|
64
|
+
# @return [Hash<String, Hash<String, Object>>]
|
65
|
+
attr_accessor :defined_tags
|
66
|
+
|
59
67
|
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid
|
60
68
|
# entering confidential information.
|
61
69
|
#
|
62
70
|
# @return [String]
|
63
71
|
attr_accessor :display_name
|
64
72
|
|
73
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
74
|
+
# predefined name, type, or namespace. For more information, see
|
75
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
76
|
+
#
|
77
|
+
# Example: `{\"Department\": \"Finance\"}`
|
78
|
+
#
|
79
|
+
# @return [Hash<String, String>]
|
80
|
+
attr_accessor :freeform_tags
|
81
|
+
|
65
82
|
# The public IP's Oracle ID (OCID).
|
66
83
|
# @return [String]
|
67
84
|
attr_accessor :id
|
@@ -124,7 +141,9 @@ module OCI
|
|
124
141
|
# rubocop:disable Style/SymbolLiteral
|
125
142
|
'availability_domain': :'availabilityDomain',
|
126
143
|
'compartment_id': :'compartmentId',
|
144
|
+
'defined_tags': :'definedTags',
|
127
145
|
'display_name': :'displayName',
|
146
|
+
'freeform_tags': :'freeformTags',
|
128
147
|
'id': :'id',
|
129
148
|
'ip_address': :'ipAddress',
|
130
149
|
'lifecycle_state': :'lifecycleState',
|
@@ -142,7 +161,9 @@ module OCI
|
|
142
161
|
# rubocop:disable Style/SymbolLiteral
|
143
162
|
'availability_domain': :'String',
|
144
163
|
'compartment_id': :'String',
|
164
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
145
165
|
'display_name': :'String',
|
166
|
+
'freeform_tags': :'Hash<String, String>',
|
146
167
|
'id': :'String',
|
147
168
|
'ip_address': :'String',
|
148
169
|
'lifecycle_state': :'String',
|
@@ -162,7 +183,9 @@ module OCI
|
|
162
183
|
# @param [Hash] attributes Model attributes in the form of hash
|
163
184
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
164
185
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
186
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
165
187
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
188
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
166
189
|
# @option attributes [String] :id The value to assign to the {#id} property
|
167
190
|
# @option attributes [String] :ip_address The value to assign to the {#ip_address} property
|
168
191
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
@@ -188,12 +211,24 @@ module OCI
|
|
188
211
|
|
189
212
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
190
213
|
|
214
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
215
|
+
|
216
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
217
|
+
|
218
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
219
|
+
|
191
220
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
192
221
|
|
193
222
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
194
223
|
|
195
224
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
196
225
|
|
226
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
227
|
+
|
228
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
229
|
+
|
230
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
231
|
+
|
197
232
|
self.id = attributes[:'id'] if attributes[:'id']
|
198
233
|
|
199
234
|
self.ip_address = attributes[:'ipAddress'] if attributes[:'ipAddress']
|
@@ -282,7 +317,9 @@ module OCI
|
|
282
317
|
self.class == other.class &&
|
283
318
|
availability_domain == other.availability_domain &&
|
284
319
|
compartment_id == other.compartment_id &&
|
320
|
+
defined_tags == other.defined_tags &&
|
285
321
|
display_name == other.display_name &&
|
322
|
+
freeform_tags == other.freeform_tags &&
|
286
323
|
id == other.id &&
|
287
324
|
ip_address == other.ip_address &&
|
288
325
|
lifecycle_state == other.lifecycle_state &&
|
@@ -305,7 +342,7 @@ module OCI
|
|
305
342
|
# Calculates hash code according to all attributes.
|
306
343
|
# @return [Fixnum] Hash code
|
307
344
|
def hash
|
308
|
-
[availability_domain, compartment_id, display_name, id, ip_address, lifecycle_state, lifetime, private_ip_id, scope, time_created].hash
|
345
|
+
[availability_domain, compartment_id, defined_tags, display_name, freeform_tags, id, ip_address, lifecycle_state, lifetime, private_ip_id, scope, time_created].hash
|
309
346
|
end
|
310
347
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
311
348
|
|