oci 2.3.1 → 2.3.2
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/audit/models/audit_event.rb +34 -4
- data/lib/oci/file_storage/file_storage.rb +2 -0
- data/lib/oci/file_storage/file_storage_client.rb +60 -0
- data/lib/oci/file_storage/file_storage_client_composite_operations.rb +40 -0
- data/lib/oci/file_storage/models/client_options.rb +284 -0
- data/lib/oci/file_storage/models/create_export_details.rb +37 -1
- data/lib/oci/file_storage/models/create_snapshot_details.rb +1 -1
- data/lib/oci/file_storage/models/export.rb +43 -1
- data/lib/oci/file_storage/models/export_set.rb +1 -1
- data/lib/oci/file_storage/models/update_export_details.rb +155 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +37 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +37 -1
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +41 -5
- data/lib/oci/regions.rb +2 -0
- data/lib/oci/version.rb +1 -1
- metadata +44 -2
@@ -36,6 +36,14 @@ module OCI
|
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :compartment_id
|
38
38
|
|
39
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
40
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
41
|
+
#
|
42
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
43
|
+
#
|
44
|
+
# @return [Hash<String, Hash<String, Object>>]
|
45
|
+
attr_accessor :defined_tags
|
46
|
+
|
39
47
|
# **[Required]** A user-friendly name. It does not have to be unique, and it is changeable.
|
40
48
|
#
|
41
49
|
# Example: `example_load_balancer`
|
@@ -43,6 +51,14 @@ module OCI
|
|
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 predefined name, type, or namespace.
|
55
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
56
|
+
#
|
57
|
+
# Example: `{\"Department\": \"Finance\"}`
|
58
|
+
#
|
59
|
+
# @return [Hash<String, String>]
|
60
|
+
attr_accessor :freeform_tags
|
61
|
+
|
46
62
|
# @return [Hash<String, OCI::LoadBalancer::Models::Hostname>]
|
47
63
|
attr_accessor :hostnames
|
48
64
|
|
@@ -112,7 +128,9 @@ module OCI
|
|
112
128
|
'backend_sets': :'backendSets',
|
113
129
|
'certificates': :'certificates',
|
114
130
|
'compartment_id': :'compartmentId',
|
131
|
+
'defined_tags': :'definedTags',
|
115
132
|
'display_name': :'displayName',
|
133
|
+
'freeform_tags': :'freeformTags',
|
116
134
|
'hostnames': :'hostnames',
|
117
135
|
'id': :'id',
|
118
136
|
'ip_addresses': :'ipAddresses',
|
@@ -134,7 +152,9 @@ module OCI
|
|
134
152
|
'backend_sets': :'Hash<String, OCI::LoadBalancer::Models::BackendSet>',
|
135
153
|
'certificates': :'Hash<String, OCI::LoadBalancer::Models::Certificate>',
|
136
154
|
'compartment_id': :'String',
|
155
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
137
156
|
'display_name': :'String',
|
157
|
+
'freeform_tags': :'Hash<String, String>',
|
138
158
|
'hostnames': :'Hash<String, OCI::LoadBalancer::Models::Hostname>',
|
139
159
|
'id': :'String',
|
140
160
|
'ip_addresses': :'Array<OCI::LoadBalancer::Models::IpAddress>',
|
@@ -158,7 +178,9 @@ module OCI
|
|
158
178
|
# @option attributes [Hash<String, OCI::LoadBalancer::Models::BackendSet>] :backend_sets The value to assign to the {#backend_sets} property
|
159
179
|
# @option attributes [Hash<String, OCI::LoadBalancer::Models::Certificate>] :certificates The value to assign to the {#certificates} property
|
160
180
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
181
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
161
182
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
183
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
162
184
|
# @option attributes [Hash<String, OCI::LoadBalancer::Models::Hostname>] :hostnames The value to assign to the {#hostnames} property
|
163
185
|
# @option attributes [String] :id The value to assign to the {#id} property
|
164
186
|
# @option attributes [Array<OCI::LoadBalancer::Models::IpAddress>] :ip_addresses The value to assign to the {#ip_addresses} property
|
@@ -189,12 +211,24 @@ module OCI
|
|
189
211
|
|
190
212
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
191
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
|
+
|
192
220
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
193
221
|
|
194
222
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
195
223
|
|
196
224
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
197
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
|
+
|
198
232
|
self.hostnames = attributes[:'hostnames'] if attributes[:'hostnames']
|
199
233
|
|
200
234
|
self.id = attributes[:'id'] if attributes[:'id']
|
@@ -272,7 +306,9 @@ module OCI
|
|
272
306
|
backend_sets == other.backend_sets &&
|
273
307
|
certificates == other.certificates &&
|
274
308
|
compartment_id == other.compartment_id &&
|
309
|
+
defined_tags == other.defined_tags &&
|
275
310
|
display_name == other.display_name &&
|
311
|
+
freeform_tags == other.freeform_tags &&
|
276
312
|
hostnames == other.hostnames &&
|
277
313
|
id == other.id &&
|
278
314
|
ip_addresses == other.ip_addresses &&
|
@@ -298,7 +334,7 @@ module OCI
|
|
298
334
|
# Calculates hash code according to all attributes.
|
299
335
|
# @return [Fixnum] Hash code
|
300
336
|
def hash
|
301
|
-
[backend_sets, certificates, compartment_id, display_name, hostnames, id, ip_addresses, is_private, lifecycle_state, listeners, path_route_sets, shape_name, subnet_ids, time_created].hash
|
337
|
+
[backend_sets, certificates, compartment_id, defined_tags, display_name, freeform_tags, hostnames, id, ip_addresses, is_private, lifecycle_state, listeners, path_route_sets, shape_name, subnet_ids, time_created].hash
|
302
338
|
end
|
303
339
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
304
340
|
|
@@ -6,7 +6,15 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# Configuration details to update a load balancer.
|
8
8
|
class LoadBalancer::Models::UpdateLoadBalancerDetails # rubocop:disable Metrics/LineLength
|
9
|
-
#
|
9
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
10
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
11
|
+
#
|
12
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
13
|
+
#
|
14
|
+
# @return [Hash<String, Hash<String, Object>>]
|
15
|
+
attr_accessor :defined_tags
|
16
|
+
|
17
|
+
# The user-friendly display name for the load balancer. It does not have to be unique, and it is changeable.
|
10
18
|
# Avoid entering confidential information.
|
11
19
|
#
|
12
20
|
# Example: `example_load_balancer`
|
@@ -14,11 +22,21 @@ module OCI
|
|
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 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
|
+
#
|
28
|
+
# Example: `{\"Department\": \"Finance\"}`
|
29
|
+
#
|
30
|
+
# @return [Hash<String, String>]
|
31
|
+
attr_accessor :freeform_tags
|
32
|
+
|
17
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
34
|
def self.attribute_map
|
19
35
|
{
|
20
36
|
# rubocop:disable Style/SymbolLiteral
|
21
|
-
'
|
37
|
+
'defined_tags': :'definedTags',
|
38
|
+
'display_name': :'displayName',
|
39
|
+
'freeform_tags': :'freeformTags'
|
22
40
|
# rubocop:enable Style/SymbolLiteral
|
23
41
|
}
|
24
42
|
end
|
@@ -27,7 +45,9 @@ module OCI
|
|
27
45
|
def self.swagger_types
|
28
46
|
{
|
29
47
|
# rubocop:disable Style/SymbolLiteral
|
30
|
-
'
|
48
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
49
|
+
'display_name': :'String',
|
50
|
+
'freeform_tags': :'Hash<String, String>'
|
31
51
|
# rubocop:enable Style/SymbolLiteral
|
32
52
|
}
|
33
53
|
end
|
@@ -38,18 +58,32 @@ module OCI
|
|
38
58
|
|
39
59
|
# Initializes the object
|
40
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
41
62
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
63
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
42
64
|
def initialize(attributes = {})
|
43
65
|
return unless attributes.is_a?(Hash)
|
44
66
|
|
45
67
|
# convert string to symbol for hash key
|
46
68
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
47
69
|
|
70
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
71
|
+
|
72
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
73
|
+
|
74
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
75
|
+
|
48
76
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
49
77
|
|
50
78
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
51
79
|
|
52
80
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
81
|
+
|
82
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
83
|
+
|
84
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
85
|
+
|
86
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
53
87
|
end
|
54
88
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
55
89
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -62,7 +96,9 @@ module OCI
|
|
62
96
|
def ==(other)
|
63
97
|
return true if equal?(other)
|
64
98
|
self.class == other.class &&
|
65
|
-
|
99
|
+
defined_tags == other.defined_tags &&
|
100
|
+
display_name == other.display_name &&
|
101
|
+
freeform_tags == other.freeform_tags
|
66
102
|
end
|
67
103
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
68
104
|
|
@@ -78,7 +114,7 @@ module OCI
|
|
78
114
|
# Calculates hash code according to all attributes.
|
79
115
|
# @return [Fixnum] Hash code
|
80
116
|
def hash
|
81
|
-
[display_name].hash
|
117
|
+
[defined_tags, display_name, freeform_tags].hash
|
82
118
|
end
|
83
119
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
84
120
|
|
data/lib/oci/regions.rb
CHANGED
@@ -17,6 +17,7 @@ module OCI
|
|
17
17
|
'lhr': REGION_UK_LONDON_1
|
18
18
|
}.freeze
|
19
19
|
|
20
|
+
# --- Start of service prefixes ---
|
20
21
|
SERVICE_ENDPOINT_PREFIX_MAPPING = {
|
21
22
|
BlockstorageClient: 'iaas',
|
22
23
|
ComputeClient: 'iaas',
|
@@ -32,6 +33,7 @@ module OCI
|
|
32
33
|
EmailClient: 'email',
|
33
34
|
ContainerEngineClient: 'containerengine'
|
34
35
|
}.freeze
|
36
|
+
# --- End of service prefixes ---
|
35
37
|
|
36
38
|
# Returns an endpoint for the given region and service.
|
37
39
|
#
|
data/lib/oci/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oracle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -146,6 +146,46 @@ dependencies:
|
|
146
146
|
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: '0.55'
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: mocha
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - "~>"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '1.5'
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 1.5.0
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '1.5'
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 1.5.0
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: nokogiri
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '1.8'
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 1.8.3
|
179
|
+
type: :development
|
180
|
+
prerelease: false
|
181
|
+
version_requirements: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '1.8'
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 1.8.3
|
149
189
|
description: Ruby SDK for Oracle Cloud Infrastructure.
|
150
190
|
email:
|
151
191
|
- joe.levy@oracle.com
|
@@ -452,6 +492,7 @@ files:
|
|
452
492
|
- "./lib/oci/file_storage/file_storage.rb"
|
453
493
|
- "./lib/oci/file_storage/file_storage_client.rb"
|
454
494
|
- "./lib/oci/file_storage/file_storage_client_composite_operations.rb"
|
495
|
+
- "./lib/oci/file_storage/models/client_options.rb"
|
455
496
|
- "./lib/oci/file_storage/models/create_export_details.rb"
|
456
497
|
- "./lib/oci/file_storage/models/create_file_system_details.rb"
|
457
498
|
- "./lib/oci/file_storage/models/create_mount_target_details.rb"
|
@@ -466,6 +507,7 @@ files:
|
|
466
507
|
- "./lib/oci/file_storage/models/mount_target_summary.rb"
|
467
508
|
- "./lib/oci/file_storage/models/snapshot.rb"
|
468
509
|
- "./lib/oci/file_storage/models/snapshot_summary.rb"
|
510
|
+
- "./lib/oci/file_storage/models/update_export_details.rb"
|
469
511
|
- "./lib/oci/file_storage/models/update_export_set_details.rb"
|
470
512
|
- "./lib/oci/file_storage/models/update_file_system_details.rb"
|
471
513
|
- "./lib/oci/file_storage/models/update_mount_target_details.rb"
|