oci 2.3.9 → 2.4.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 +1 -1
- data/lib/oci/core/models/update_subnet_details.rb +52 -4
- data/lib/oci/database/models/backup.rb +9 -9
- data/lib/oci/database/models/backup_summary.rb +9 -9
- data/lib/oci/file_storage/file_storage.rb +1 -0
- data/lib/oci/file_storage/file_storage_client.rb +115 -10
- data/lib/oci/file_storage/file_storage_client_composite_operations.rb +40 -0
- data/lib/oci/file_storage/models/create_file_system_details.rb +39 -4
- data/lib/oci/file_storage/models/create_mount_target_details.rb +39 -4
- data/lib/oci/file_storage/models/create_snapshot_details.rb +39 -4
- data/lib/oci/file_storage/models/export.rb +2 -0
- data/lib/oci/file_storage/models/export_set.rb +2 -0
- data/lib/oci/file_storage/models/file_system.rb +41 -4
- data/lib/oci/file_storage/models/mount_target.rb +41 -4
- data/lib/oci/file_storage/models/snapshot.rb +41 -4
- data/lib/oci/file_storage/models/update_file_system_details.rb +39 -4
- data/lib/oci/file_storage/models/update_mount_target_details.rb +39 -4
- data/lib/oci/file_storage/models/update_snapshot_details.rb +174 -0
- data/lib/oci/version.rb +1 -1
- metadata +3 -2
@@ -495,6 +495,46 @@ module OCI
|
|
495
495
|
end
|
496
496
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
497
497
|
# rubocop:enable Layout/EmptyLines
|
498
|
+
|
499
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
500
|
+
# rubocop:disable Layout/EmptyLines
|
501
|
+
|
502
|
+
|
503
|
+
# Calls {OCI::FileStorage::FileStorageClient#update_snapshot} and then waits for the {OCI::FileStorage::Models::Snapshot} acted upon
|
504
|
+
# to enter the given state(s).
|
505
|
+
#
|
506
|
+
# @param [String] snapshot_id The OCID of the snapshot.
|
507
|
+
# @param [OCI::FileStorage::Models::UpdateSnapshotDetails] update_snapshot_details Details object for updating a snapshot.
|
508
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::FileStorage::Models::Snapshot#lifecycle_state}
|
509
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::FileStorage::FileStorageClient#update_snapshot}
|
510
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
511
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
512
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
513
|
+
#
|
514
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::FileStorage::Models::Snapshot}
|
515
|
+
def update_snapshot_and_wait_for_state(snapshot_id, update_snapshot_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
516
|
+
operation_result = @service_client.update_snapshot(snapshot_id, update_snapshot_details, base_operation_opts)
|
517
|
+
|
518
|
+
return operation_result if wait_for_states.empty?
|
519
|
+
|
520
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
521
|
+
wait_for_resource_id = operation_result.data.id
|
522
|
+
|
523
|
+
begin
|
524
|
+
waiter_result = @service_client.get_snapshot(wait_for_resource_id).wait_until(
|
525
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
526
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
527
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
528
|
+
)
|
529
|
+
result_to_return = waiter_result
|
530
|
+
|
531
|
+
return result_to_return
|
532
|
+
rescue StandardError
|
533
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
534
|
+
end
|
535
|
+
end
|
536
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
537
|
+
# rubocop:enable Layout/EmptyLines
|
498
538
|
end
|
499
539
|
end
|
500
540
|
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -25,13 +25,30 @@ module OCI
|
|
25
25
|
# @return [String]
|
26
26
|
attr_accessor :display_name
|
27
27
|
|
28
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair
|
29
|
+
# with no predefined name, type, or namespace.
|
30
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
31
|
+
# Example: `{\"Department\": \"Finance\"}`
|
32
|
+
#
|
33
|
+
# @return [Hash<String, String>]
|
34
|
+
attr_accessor :freeform_tags
|
35
|
+
|
36
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
37
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
38
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
39
|
+
#
|
40
|
+
# @return [Hash<String, Hash<String, Object>>]
|
41
|
+
attr_accessor :defined_tags
|
42
|
+
|
28
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
44
|
def self.attribute_map
|
30
45
|
{
|
31
46
|
# rubocop:disable Style/SymbolLiteral
|
32
47
|
'availability_domain': :'availabilityDomain',
|
33
48
|
'compartment_id': :'compartmentId',
|
34
|
-
'display_name': :'displayName'
|
49
|
+
'display_name': :'displayName',
|
50
|
+
'freeform_tags': :'freeformTags',
|
51
|
+
'defined_tags': :'definedTags'
|
35
52
|
# rubocop:enable Style/SymbolLiteral
|
36
53
|
}
|
37
54
|
end
|
@@ -42,7 +59,9 @@ module OCI
|
|
42
59
|
# rubocop:disable Style/SymbolLiteral
|
43
60
|
'availability_domain': :'String',
|
44
61
|
'compartment_id': :'String',
|
45
|
-
'display_name': :'String'
|
62
|
+
'display_name': :'String',
|
63
|
+
'freeform_tags': :'Hash<String, String>',
|
64
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
46
65
|
# rubocop:enable Style/SymbolLiteral
|
47
66
|
}
|
48
67
|
end
|
@@ -56,6 +75,8 @@ module OCI
|
|
56
75
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
57
76
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
58
77
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
78
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
79
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
59
80
|
def initialize(attributes = {})
|
60
81
|
return unless attributes.is_a?(Hash)
|
61
82
|
|
@@ -79,6 +100,18 @@ module OCI
|
|
79
100
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
80
101
|
|
81
102
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
103
|
+
|
104
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
105
|
+
|
106
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
107
|
+
|
108
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
109
|
+
|
110
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
111
|
+
|
112
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
113
|
+
|
114
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
82
115
|
end
|
83
116
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
84
117
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -94,7 +127,9 @@ module OCI
|
|
94
127
|
self.class == other.class &&
|
95
128
|
availability_domain == other.availability_domain &&
|
96
129
|
compartment_id == other.compartment_id &&
|
97
|
-
display_name == other.display_name
|
130
|
+
display_name == other.display_name &&
|
131
|
+
freeform_tags == other.freeform_tags &&
|
132
|
+
defined_tags == other.defined_tags
|
98
133
|
end
|
99
134
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
100
135
|
|
@@ -110,7 +145,7 @@ module OCI
|
|
110
145
|
# Calculates hash code according to all attributes.
|
111
146
|
# @return [Fixnum] Hash code
|
112
147
|
def hash
|
113
|
-
[availability_domain, compartment_id, display_name].hash
|
148
|
+
[availability_domain, compartment_id, display_name, freeform_tags, defined_tags].hash
|
114
149
|
end
|
115
150
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
116
151
|
|
@@ -55,6 +55,21 @@ module OCI
|
|
55
55
|
# @return [String]
|
56
56
|
attr_accessor :subnet_id
|
57
57
|
|
58
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair
|
59
|
+
# with no predefined name, type, or namespace.
|
60
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
61
|
+
# Example: `{\"Department\": \"Finance\"}`
|
62
|
+
#
|
63
|
+
# @return [Hash<String, String>]
|
64
|
+
attr_accessor :freeform_tags
|
65
|
+
|
66
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
67
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
68
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
69
|
+
#
|
70
|
+
# @return [Hash<String, Hash<String, Object>>]
|
71
|
+
attr_accessor :defined_tags
|
72
|
+
|
58
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
74
|
def self.attribute_map
|
60
75
|
{
|
@@ -64,7 +79,9 @@ module OCI
|
|
64
79
|
'display_name': :'displayName',
|
65
80
|
'hostname_label': :'hostnameLabel',
|
66
81
|
'ip_address': :'ipAddress',
|
67
|
-
'subnet_id': :'subnetId'
|
82
|
+
'subnet_id': :'subnetId',
|
83
|
+
'freeform_tags': :'freeformTags',
|
84
|
+
'defined_tags': :'definedTags'
|
68
85
|
# rubocop:enable Style/SymbolLiteral
|
69
86
|
}
|
70
87
|
end
|
@@ -78,7 +95,9 @@ module OCI
|
|
78
95
|
'display_name': :'String',
|
79
96
|
'hostname_label': :'String',
|
80
97
|
'ip_address': :'String',
|
81
|
-
'subnet_id': :'String'
|
98
|
+
'subnet_id': :'String',
|
99
|
+
'freeform_tags': :'Hash<String, String>',
|
100
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
82
101
|
# rubocop:enable Style/SymbolLiteral
|
83
102
|
}
|
84
103
|
end
|
@@ -95,6 +114,8 @@ module OCI
|
|
95
114
|
# @option attributes [String] :hostname_label The value to assign to the {#hostname_label} property
|
96
115
|
# @option attributes [String] :ip_address The value to assign to the {#ip_address} property
|
97
116
|
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
117
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
118
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
98
119
|
def initialize(attributes = {})
|
99
120
|
return unless attributes.is_a?(Hash)
|
100
121
|
|
@@ -136,6 +157,18 @@ module OCI
|
|
136
157
|
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
137
158
|
|
138
159
|
self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id']
|
160
|
+
|
161
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
162
|
+
|
163
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
164
|
+
|
165
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
166
|
+
|
167
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
168
|
+
|
169
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
170
|
+
|
171
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
139
172
|
end
|
140
173
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
141
174
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -154,7 +187,9 @@ module OCI
|
|
154
187
|
display_name == other.display_name &&
|
155
188
|
hostname_label == other.hostname_label &&
|
156
189
|
ip_address == other.ip_address &&
|
157
|
-
subnet_id == other.subnet_id
|
190
|
+
subnet_id == other.subnet_id &&
|
191
|
+
freeform_tags == other.freeform_tags &&
|
192
|
+
defined_tags == other.defined_tags
|
158
193
|
end
|
159
194
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
160
195
|
|
@@ -170,7 +205,7 @@ module OCI
|
|
170
205
|
# Calculates hash code according to all attributes.
|
171
206
|
# @return [Fixnum] Hash code
|
172
207
|
def hash
|
173
|
-
[availability_domain, compartment_id, display_name, hostname_label, ip_address, subnet_id].hash
|
208
|
+
[availability_domain, compartment_id, display_name, hostname_label, ip_address, subnet_id, freeform_tags, defined_tags].hash
|
174
209
|
end
|
175
210
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
176
211
|
|
@@ -21,12 +21,29 @@ module OCI
|
|
21
21
|
# @return [String]
|
22
22
|
attr_accessor :name
|
23
23
|
|
24
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair
|
25
|
+
# with no predefined name, type, or namespace.
|
26
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
27
|
+
# Example: `{\"Department\": \"Finance\"}`
|
28
|
+
#
|
29
|
+
# @return [Hash<String, String>]
|
30
|
+
attr_accessor :freeform_tags
|
31
|
+
|
32
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
33
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
34
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
35
|
+
#
|
36
|
+
# @return [Hash<String, Hash<String, Object>>]
|
37
|
+
attr_accessor :defined_tags
|
38
|
+
|
24
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
40
|
def self.attribute_map
|
26
41
|
{
|
27
42
|
# rubocop:disable Style/SymbolLiteral
|
28
43
|
'file_system_id': :'fileSystemId',
|
29
|
-
'name': :'name'
|
44
|
+
'name': :'name',
|
45
|
+
'freeform_tags': :'freeformTags',
|
46
|
+
'defined_tags': :'definedTags'
|
30
47
|
# rubocop:enable Style/SymbolLiteral
|
31
48
|
}
|
32
49
|
end
|
@@ -36,7 +53,9 @@ module OCI
|
|
36
53
|
{
|
37
54
|
# rubocop:disable Style/SymbolLiteral
|
38
55
|
'file_system_id': :'String',
|
39
|
-
'name': :'String'
|
56
|
+
'name': :'String',
|
57
|
+
'freeform_tags': :'Hash<String, String>',
|
58
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
40
59
|
# rubocop:enable Style/SymbolLiteral
|
41
60
|
}
|
42
61
|
end
|
@@ -49,6 +68,8 @@ module OCI
|
|
49
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
69
|
# @option attributes [String] :file_system_id The value to assign to the {#file_system_id} property
|
51
70
|
# @option attributes [String] :name The value to assign to the {#name} property
|
71
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
72
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
52
73
|
def initialize(attributes = {})
|
53
74
|
return unless attributes.is_a?(Hash)
|
54
75
|
|
@@ -62,6 +83,18 @@ module OCI
|
|
62
83
|
self.file_system_id = attributes[:'file_system_id'] if attributes[:'file_system_id']
|
63
84
|
|
64
85
|
self.name = attributes[:'name'] if attributes[:'name']
|
86
|
+
|
87
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
88
|
+
|
89
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
90
|
+
|
91
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
92
|
+
|
93
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
94
|
+
|
95
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
96
|
+
|
97
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
65
98
|
end
|
66
99
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
67
100
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -76,7 +109,9 @@ module OCI
|
|
76
109
|
|
77
110
|
self.class == other.class &&
|
78
111
|
file_system_id == other.file_system_id &&
|
79
|
-
name == other.name
|
112
|
+
name == other.name &&
|
113
|
+
freeform_tags == other.freeform_tags &&
|
114
|
+
defined_tags == other.defined_tags
|
80
115
|
end
|
81
116
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
82
117
|
|
@@ -92,7 +127,7 @@ module OCI
|
|
92
127
|
# Calculates hash code according to all attributes.
|
93
128
|
# @return [Fixnum] Hash code
|
94
129
|
def hash
|
95
|
-
[file_system_id, name].hash
|
130
|
+
[file_system_id, name, freeform_tags, defined_tags].hash
|
96
131
|
end
|
97
132
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
98
133
|
|
@@ -39,6 +39,8 @@ module OCI
|
|
39
39
|
# Use `exportOptions` to control access to an export. For more information, see
|
40
40
|
# [Export Options](https://docs.us-phoenix-1.oraclecloud.com/Content/File/Tasks/exportoptions.htm).
|
41
41
|
#
|
42
|
+
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
43
|
+
#
|
42
44
|
class FileStorage::Models::Export # rubocop:disable Metrics/LineLength
|
43
45
|
LIFECYCLE_STATE_ENUM = [
|
44
46
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
@@ -8,6 +8,8 @@ module OCI
|
|
8
8
|
# A set of file systems to export through one or more mount
|
9
9
|
# targets. Composed of zero or more export resources.
|
10
10
|
#
|
11
|
+
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
12
|
+
#
|
11
13
|
class FileStorage::Models::ExportSet # rubocop:disable Metrics/LineLength
|
12
14
|
LIFECYCLE_STATE_ENUM = [
|
13
15
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
@@ -16,6 +16,8 @@ module OCI
|
|
16
16
|
# policies to give users access, see [Getting Started with
|
17
17
|
# Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
18
18
|
#
|
19
|
+
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
20
|
+
#
|
19
21
|
class FileStorage::Models::FileSystem # rubocop:disable Metrics/LineLength
|
20
22
|
LIFECYCLE_STATE_ENUM = [
|
21
23
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
@@ -69,6 +71,21 @@ module OCI
|
|
69
71
|
# @return [DateTime]
|
70
72
|
attr_accessor :time_created
|
71
73
|
|
74
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair
|
75
|
+
# with no predefined name, type, or namespace.
|
76
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
77
|
+
# Example: `{\"Department\": \"Finance\"}`
|
78
|
+
#
|
79
|
+
# @return [Hash<String, String>]
|
80
|
+
attr_accessor :freeform_tags
|
81
|
+
|
82
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
83
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
84
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
85
|
+
#
|
86
|
+
# @return [Hash<String, Hash<String, Object>>]
|
87
|
+
attr_accessor :defined_tags
|
88
|
+
|
72
89
|
# Attribute mapping from ruby-style variable name to JSON key.
|
73
90
|
def self.attribute_map
|
74
91
|
{
|
@@ -79,7 +96,9 @@ module OCI
|
|
79
96
|
'display_name': :'displayName',
|
80
97
|
'id': :'id',
|
81
98
|
'lifecycle_state': :'lifecycleState',
|
82
|
-
'time_created': :'timeCreated'
|
99
|
+
'time_created': :'timeCreated',
|
100
|
+
'freeform_tags': :'freeformTags',
|
101
|
+
'defined_tags': :'definedTags'
|
83
102
|
# rubocop:enable Style/SymbolLiteral
|
84
103
|
}
|
85
104
|
end
|
@@ -94,7 +113,9 @@ module OCI
|
|
94
113
|
'display_name': :'String',
|
95
114
|
'id': :'String',
|
96
115
|
'lifecycle_state': :'String',
|
97
|
-
'time_created': :'DateTime'
|
116
|
+
'time_created': :'DateTime',
|
117
|
+
'freeform_tags': :'Hash<String, String>',
|
118
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
98
119
|
# rubocop:enable Style/SymbolLiteral
|
99
120
|
}
|
100
121
|
end
|
@@ -112,6 +133,8 @@ module OCI
|
|
112
133
|
# @option attributes [String] :id The value to assign to the {#id} property
|
113
134
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
114
135
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
136
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
137
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
115
138
|
def initialize(attributes = {})
|
116
139
|
return unless attributes.is_a?(Hash)
|
117
140
|
|
@@ -155,6 +178,18 @@ module OCI
|
|
155
178
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
156
179
|
|
157
180
|
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
181
|
+
|
182
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
183
|
+
|
184
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
185
|
+
|
186
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
187
|
+
|
188
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
189
|
+
|
190
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
191
|
+
|
192
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
158
193
|
end
|
159
194
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
160
195
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -189,7 +224,9 @@ module OCI
|
|
189
224
|
display_name == other.display_name &&
|
190
225
|
id == other.id &&
|
191
226
|
lifecycle_state == other.lifecycle_state &&
|
192
|
-
time_created == other.time_created
|
227
|
+
time_created == other.time_created &&
|
228
|
+
freeform_tags == other.freeform_tags &&
|
229
|
+
defined_tags == other.defined_tags
|
193
230
|
end
|
194
231
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
195
232
|
|
@@ -205,7 +242,7 @@ module OCI
|
|
205
242
|
# Calculates hash code according to all attributes.
|
206
243
|
# @return [Fixnum] Hash code
|
207
244
|
def hash
|
208
|
-
[availability_domain, metered_bytes, compartment_id, display_name, id, lifecycle_state, time_created].hash
|
245
|
+
[availability_domain, metered_bytes, compartment_id, display_name, id, lifecycle_state, time_created, freeform_tags, defined_tags].hash
|
209
246
|
end
|
210
247
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
211
248
|
|
@@ -9,6 +9,8 @@ module OCI
|
|
9
9
|
# specified subnet. The set of file systems is controlled through the
|
10
10
|
# referenced export set.
|
11
11
|
#
|
12
|
+
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
13
|
+
#
|
12
14
|
class FileStorage::Models::MountTarget # rubocop:disable Metrics/LineLength
|
13
15
|
LIFECYCLE_STATE_ENUM = [
|
14
16
|
LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
|
@@ -74,6 +76,21 @@ module OCI
|
|
74
76
|
# @return [DateTime]
|
75
77
|
attr_accessor :time_created
|
76
78
|
|
79
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair
|
80
|
+
# with no predefined name, type, or namespace.
|
81
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
82
|
+
# Example: `{\"Department\": \"Finance\"}`
|
83
|
+
#
|
84
|
+
# @return [Hash<String, String>]
|
85
|
+
attr_accessor :freeform_tags
|
86
|
+
|
87
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
88
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
89
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
90
|
+
#
|
91
|
+
# @return [Hash<String, Hash<String, Object>>]
|
92
|
+
attr_accessor :defined_tags
|
93
|
+
|
77
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
78
95
|
def self.attribute_map
|
79
96
|
{
|
@@ -87,7 +104,9 @@ module OCI
|
|
87
104
|
'lifecycle_state': :'lifecycleState',
|
88
105
|
'private_ip_ids': :'privateIpIds',
|
89
106
|
'subnet_id': :'subnetId',
|
90
|
-
'time_created': :'timeCreated'
|
107
|
+
'time_created': :'timeCreated',
|
108
|
+
'freeform_tags': :'freeformTags',
|
109
|
+
'defined_tags': :'definedTags'
|
91
110
|
# rubocop:enable Style/SymbolLiteral
|
92
111
|
}
|
93
112
|
end
|
@@ -105,7 +124,9 @@ module OCI
|
|
105
124
|
'lifecycle_state': :'String',
|
106
125
|
'private_ip_ids': :'Array<String>',
|
107
126
|
'subnet_id': :'String',
|
108
|
-
'time_created': :'DateTime'
|
127
|
+
'time_created': :'DateTime',
|
128
|
+
'freeform_tags': :'Hash<String, String>',
|
129
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
109
130
|
# rubocop:enable Style/SymbolLiteral
|
110
131
|
}
|
111
132
|
end
|
@@ -126,6 +147,8 @@ module OCI
|
|
126
147
|
# @option attributes [Array<String>] :private_ip_ids The value to assign to the {#private_ip_ids} property
|
127
148
|
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
128
149
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
150
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
151
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
129
152
|
def initialize(attributes = {})
|
130
153
|
return unless attributes.is_a?(Hash)
|
131
154
|
|
@@ -187,6 +210,18 @@ module OCI
|
|
187
210
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
188
211
|
|
189
212
|
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
213
|
+
|
214
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
215
|
+
|
216
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
217
|
+
|
218
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
219
|
+
|
220
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
221
|
+
|
222
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
223
|
+
|
224
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
190
225
|
end
|
191
226
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
192
227
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -224,7 +259,9 @@ module OCI
|
|
224
259
|
lifecycle_state == other.lifecycle_state &&
|
225
260
|
private_ip_ids == other.private_ip_ids &&
|
226
261
|
subnet_id == other.subnet_id &&
|
227
|
-
time_created == other.time_created
|
262
|
+
time_created == other.time_created &&
|
263
|
+
freeform_tags == other.freeform_tags &&
|
264
|
+
defined_tags == other.defined_tags
|
228
265
|
end
|
229
266
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
230
267
|
|
@@ -240,7 +277,7 @@ module OCI
|
|
240
277
|
# Calculates hash code according to all attributes.
|
241
278
|
# @return [Fixnum] Hash code
|
242
279
|
def hash
|
243
|
-
[availability_domain, compartment_id, display_name, export_set_id, id, lifecycle_details, lifecycle_state, private_ip_ids, subnet_id, time_created].hash
|
280
|
+
[availability_domain, compartment_id, display_name, export_set_id, id, lifecycle_details, lifecycle_state, private_ip_ids, subnet_id, time_created, freeform_tags, defined_tags].hash
|
244
281
|
end
|
245
282
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
246
283
|
|