oci 2.0.3 → 2.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5a955af9b080d6fe67e271c9905e2d28f0f19af
4
- data.tar.gz: 3926d554915916b11910539894df24de951243e3
3
+ metadata.gz: 0285d599f82db7c0ff1f993a9c991f4186e30578
4
+ data.tar.gz: 0ddfb5c0a3896a0d9d8115f6a3a1f4d1961f3fb3
5
5
  SHA512:
6
- metadata.gz: ff7db8b2df2f5be1e9d28783acb53cf49c4c303e3048783d10237df501aff4552e9739f1f9a466c06ccfaedf126f21b18f98e4ae63eda11738914c8303c0360d
7
- data.tar.gz: 91082800cbadb544bd5e13710af6984536a253f93fefdf5ac1646b795961856d67840948014e58efb7ded78976b54965bbb91f6df8d5cdb0f6eba7e5a919a828
6
+ metadata.gz: 4491603ab968608b2ac724e9794d28fb0dab38ecec5e25e10c3cf75a3b9b59f5a8d4766508ecc46bd2c1466be15260d76a9122d4ef9e8308c980d73c7598244b
7
+ data.tar.gz: 458303034633769be71ef0e3fedd9d7d9e5f84c9de7ea85f6ccec07f50e9f924d386a1bb0be5ff1209f581c0685ae1b0e9cd723478def689cf9521ae025caed0
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.0.3**
2
+ **Version 2.0.4**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -76,6 +76,10 @@ module OCI
76
76
  # @return [DateTime]
77
77
  attr_accessor :response_time
78
78
 
79
+ # Metadata of interest from the response payload. For example, the OCID of a resource.
80
+ # @return [Hash<String, Object>]
81
+ attr_accessor :response_payload
82
+
79
83
 
80
84
  # Initializes the object
81
85
  # @param [Hash] attributes Model attributes in the form of hash
@@ -157,6 +161,10 @@ module OCI
157
161
  self.response_time = attributes[:'responseTime']
158
162
  end
159
163
 
164
+ if attributes[:'responsePayload']
165
+ self.response_payload = attributes[:'responsePayload']
166
+ end
167
+
160
168
  end
161
169
 
162
170
  # Checks equality by comparing each attribute.
@@ -181,7 +189,8 @@ module OCI
181
189
  request_resource == other_object.request_resource &&
182
190
  response_headers == other_object.response_headers &&
183
191
  response_status == other_object.response_status &&
184
- response_time == other_object.response_time
192
+ response_time == other_object.response_time &&
193
+ response_payload == other_object.response_payload
185
194
  end
186
195
 
187
196
  # @see the `==` method
@@ -193,7 +202,7 @@ module OCI
193
202
  # Calculates hash code according to all attributes.
194
203
  # @return [Fixnum] Hash code
195
204
  def hash
196
- [tenant_id, compartment_id, event_id, event_source, event_type, event_time, principal_id, credential_id, request_action, request_id, request_agent, request_headers, request_origin, request_parameters, request_resource, response_headers, response_status, response_time].hash
205
+ [tenant_id, compartment_id, event_id, event_source, event_type, event_time, principal_id, credential_id, request_action, request_id, request_agent, request_headers, request_origin, request_parameters, request_resource, response_headers, response_status, response_time, response_payload].hash
197
206
  end
198
207
 
199
208
  # Builds the object from hash
@@ -276,7 +285,8 @@ module OCI
276
285
  :'request_resource' => :'requestResource',
277
286
  :'response_headers' => :'responseHeaders',
278
287
  :'response_status' => :'responseStatus',
279
- :'response_time' => :'responseTime'
288
+ :'response_time' => :'responseTime',
289
+ :'response_payload' => :'responsePayload'
280
290
  }
281
291
  end
282
292
 
@@ -300,7 +310,8 @@ module OCI
300
310
  :'request_resource' => :'String',
301
311
  :'response_headers' => :'Hash<String, Array<String>>',
302
312
  :'response_status' => :'String',
303
- :'response_time' => :'DateTime'
313
+ :'response_time' => :'DateTime',
314
+ :'response_payload' => :'Hash<String, Object>'
304
315
  }
305
316
  end
306
317
  end
@@ -1561,6 +1561,8 @@ module OCI
1561
1561
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1562
1562
  #
1563
1563
  # @option opts [BOOLEAN] :preserve_boot_volume Specifies whether to delete or preserve the boot volume when terminating an instance.
1564
+ # The default value is false.
1565
+ #
1564
1566
  # @return [Response] A Response object with data of type nil
1565
1567
  def terminate_instance(instance_id, opts = {})
1566
1568
  logger.debug "Calling operation ComputeClient#terminate_instance." if logger
@@ -14,6 +14,8 @@ require 'oci/core/models/attach_vnic_details'
14
14
  require 'oci/core/models/attach_volume_details'
15
15
  require 'oci/core/models/boot_volume'
16
16
  require 'oci/core/models/boot_volume_attachment'
17
+ require 'oci/core/models/bulk_add_virtual_circuit_public_prefixes_details'
18
+ require 'oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details'
17
19
  require 'oci/core/models/capture_console_history_details'
18
20
  require 'oci/core/models/connect_local_peering_gateways_details'
19
21
  require 'oci/core/models/console_history'
@@ -35,6 +37,7 @@ require 'oci/core/models/create_security_list_details'
35
37
  require 'oci/core/models/create_subnet_details'
36
38
  require 'oci/core/models/create_vcn_details'
37
39
  require 'oci/core/models/create_virtual_circuit_details'
40
+ require 'oci/core/models/create_virtual_circuit_public_prefix_details'
38
41
  require 'oci/core/models/create_vnic_details'
39
42
  require 'oci/core/models/create_volume_backup_details'
40
43
  require 'oci/core/models/create_volume_details'
@@ -44,6 +47,7 @@ require 'oci/core/models/cross_connect_location'
44
47
  require 'oci/core/models/cross_connect_mapping'
45
48
  require 'oci/core/models/cross_connect_port_speed_shape'
46
49
  require 'oci/core/models/cross_connect_status'
50
+ require 'oci/core/models/delete_virtual_circuit_public_prefix_details'
47
51
  require 'oci/core/models/dhcp_dns_option'
48
52
  require 'oci/core/models/dhcp_option'
49
53
  require 'oci/core/models/dhcp_options'
@@ -111,6 +115,7 @@ require 'oci/core/models/update_volume_details'
111
115
  require 'oci/core/models/vcn'
112
116
  require 'oci/core/models/virtual_circuit'
113
117
  require 'oci/core/models/virtual_circuit_bandwidth_shape'
118
+ require 'oci/core/models/virtual_circuit_public_prefix'
114
119
  require 'oci/core/models/vnic'
115
120
  require 'oci/core/models/vnic_attachment'
116
121
  require 'oci/core/models/volume'
@@ -0,0 +1,120 @@
1
+ # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+
5
+ module OCI
6
+ class Core::Models::BulkAddVirtualCircuitPublicPrefixesDetails
7
+ # The public IP prefixes (CIDRs) to add to the public virtual circuit.
8
+ # @return [Array<OCI::Core::Models::CreateVirtualCircuitPublicPrefixDetails>]
9
+ attr_accessor :public_prefixes
10
+
11
+
12
+ # Initializes the object
13
+ # @param [Hash] attributes Model attributes in the form of hash
14
+ def initialize(attributes = {})
15
+ return unless attributes.is_a?(Hash)
16
+
17
+ # convert string to symbol for hash key
18
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
19
+
20
+ if attributes[:'publicPrefixes']
21
+ self.public_prefixes = attributes[:'publicPrefixes']
22
+ end
23
+
24
+ end
25
+
26
+ # Checks equality by comparing each attribute.
27
+ # @param [Object] other_object to be compared
28
+ def ==(other_object)
29
+ return true if self.equal?(other_object)
30
+ self.class == other_object.class &&
31
+ public_prefixes == other_object.public_prefixes
32
+ end
33
+
34
+ # @see the `==` method
35
+ # @param [Object] other_object to be compared
36
+ def eql?(other_object)
37
+ self == other_object
38
+ end
39
+
40
+ # Calculates hash code according to all attributes.
41
+ # @return [Fixnum] Hash code
42
+ def hash
43
+ [public_prefixes].hash
44
+ end
45
+
46
+ # Builds the object from hash
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ # @return [Object] Returns the model itself
49
+ def build_from_hash(attributes)
50
+ return nil unless attributes.is_a?(Hash)
51
+ self.class.swagger_types.each_pair do |key, type|
52
+ if type =~ /^Array<(.*)>/i
53
+ # check to ensure the input is an array given that the the attribute
54
+ # is documented as an array but the input is not
55
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
56
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
57
+ end
58
+ elsif !attributes[self.class.attribute_map[key]].nil?
59
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
60
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
61
+ end
62
+
63
+ self
64
+ end
65
+
66
+ # Returns the string representation of the object
67
+ # @return [String] String presentation of the object
68
+ def to_s
69
+ to_hash.to_s
70
+ end
71
+
72
+ # Returns the object in the form of hash
73
+ # @return [Hash] Returns the object in the form of hash
74
+ def to_hash
75
+ hash = {}
76
+ self.class.attribute_map.each_pair do |attr, param|
77
+ value = public_send(attr)
78
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
79
+ hash[param] = _to_hash(value)
80
+ end
81
+ hash
82
+ end
83
+
84
+ private
85
+
86
+ # Outputs non-array value in the form of hash
87
+ # For object, use to_hash. Otherwise, just return the value
88
+ # @param [Object] value Any valid value
89
+ # @return [Hash] Returns the value in the form of hash
90
+ def _to_hash(value)
91
+ if value.is_a?(Array)
92
+ value.compact.map{ |v| _to_hash(v) }
93
+ elsif value.is_a?(Hash)
94
+ {}.tap do |hash|
95
+ value.each { |k, v| hash[k] = _to_hash(v) }
96
+ end
97
+ elsif value.respond_to? :to_hash
98
+ value.to_hash
99
+ else
100
+ value
101
+ end
102
+ end
103
+
104
+
105
+
106
+ # Attribute mapping from ruby-style variable name to JSON key.
107
+ def self.attribute_map
108
+ {
109
+ :'public_prefixes' => :'publicPrefixes'
110
+ }
111
+ end
112
+
113
+ # Attribute type mapping.
114
+ def self.swagger_types
115
+ {
116
+ :'public_prefixes' => :'Array<OCI::Core::Models::CreateVirtualCircuitPublicPrefixDetails>'
117
+ }
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,120 @@
1
+ # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+
5
+ module OCI
6
+ class Core::Models::BulkDeleteVirtualCircuitPublicPrefixesDetails
7
+ # The public IP prefixes (CIDRs) to remove from the public virtual circuit.
8
+ # @return [Array<OCI::Core::Models::DeleteVirtualCircuitPublicPrefixDetails>]
9
+ attr_accessor :public_prefixes
10
+
11
+
12
+ # Initializes the object
13
+ # @param [Hash] attributes Model attributes in the form of hash
14
+ def initialize(attributes = {})
15
+ return unless attributes.is_a?(Hash)
16
+
17
+ # convert string to symbol for hash key
18
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
19
+
20
+ if attributes[:'publicPrefixes']
21
+ self.public_prefixes = attributes[:'publicPrefixes']
22
+ end
23
+
24
+ end
25
+
26
+ # Checks equality by comparing each attribute.
27
+ # @param [Object] other_object to be compared
28
+ def ==(other_object)
29
+ return true if self.equal?(other_object)
30
+ self.class == other_object.class &&
31
+ public_prefixes == other_object.public_prefixes
32
+ end
33
+
34
+ # @see the `==` method
35
+ # @param [Object] other_object to be compared
36
+ def eql?(other_object)
37
+ self == other_object
38
+ end
39
+
40
+ # Calculates hash code according to all attributes.
41
+ # @return [Fixnum] Hash code
42
+ def hash
43
+ [public_prefixes].hash
44
+ end
45
+
46
+ # Builds the object from hash
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ # @return [Object] Returns the model itself
49
+ def build_from_hash(attributes)
50
+ return nil unless attributes.is_a?(Hash)
51
+ self.class.swagger_types.each_pair do |key, type|
52
+ if type =~ /^Array<(.*)>/i
53
+ # check to ensure the input is an array given that the the attribute
54
+ # is documented as an array but the input is not
55
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
56
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
57
+ end
58
+ elsif !attributes[self.class.attribute_map[key]].nil?
59
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
60
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
61
+ end
62
+
63
+ self
64
+ end
65
+
66
+ # Returns the string representation of the object
67
+ # @return [String] String presentation of the object
68
+ def to_s
69
+ to_hash.to_s
70
+ end
71
+
72
+ # Returns the object in the form of hash
73
+ # @return [Hash] Returns the object in the form of hash
74
+ def to_hash
75
+ hash = {}
76
+ self.class.attribute_map.each_pair do |attr, param|
77
+ value = public_send(attr)
78
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
79
+ hash[param] = _to_hash(value)
80
+ end
81
+ hash
82
+ end
83
+
84
+ private
85
+
86
+ # Outputs non-array value in the form of hash
87
+ # For object, use to_hash. Otherwise, just return the value
88
+ # @param [Object] value Any valid value
89
+ # @return [Hash] Returns the value in the form of hash
90
+ def _to_hash(value)
91
+ if value.is_a?(Array)
92
+ value.compact.map{ |v| _to_hash(v) }
93
+ elsif value.is_a?(Hash)
94
+ {}.tap do |hash|
95
+ value.each { |k, v| hash[k] = _to_hash(v) }
96
+ end
97
+ elsif value.respond_to? :to_hash
98
+ value.to_hash
99
+ else
100
+ value
101
+ end
102
+ end
103
+
104
+
105
+
106
+ # Attribute mapping from ruby-style variable name to JSON key.
107
+ def self.attribute_map
108
+ {
109
+ :'public_prefixes' => :'publicPrefixes'
110
+ }
111
+ end
112
+
113
+ # Attribute type mapping.
114
+ def self.swagger_types
115
+ {
116
+ :'public_prefixes' => :'Array<OCI::Core::Models::DeleteVirtualCircuitPublicPrefixDetails>'
117
+ }
118
+ end
119
+ end
120
+ end
@@ -10,7 +10,7 @@ module OCI
10
10
 
11
11
  # The provisioned data rate of the connection. To get a list of the
12
12
  # available bandwidth levels (that is, shapes), see
13
- # {#list_virtual_circuit_bandwidth_shapes list_virtual_circuit_bandwidth_shapes}.
13
+ # {#list_fast_connect_provider_virtual_circuit_bandwidth_shapes list_fast_connect_provider_virtual_circuit_bandwidth_shapes}.
14
14
  #
15
15
  # Example: `10 Gbps`
16
16
  #
@@ -40,26 +40,39 @@ module OCI
40
40
  # @return [String]
41
41
  attr_accessor :display_name
42
42
 
43
- # The OCID of the {Drg}
43
+ # For private virtual circuits only. The OCID of the {Drg}
44
44
  # that this virtual circuit uses.
45
45
  #
46
46
  # @return [String]
47
47
  attr_accessor :gateway_id
48
48
 
49
- # The name of the provider (if you're connecting via a provider).
49
+ # Deprecated. Instead use `providerServiceId`.
50
50
  # To get a list of the provider names, see
51
51
  # {#list_fast_connect_provider_services list_fast_connect_provider_services}.
52
52
  #
53
53
  # @return [String]
54
54
  attr_accessor :provider_name
55
55
 
56
- # The name of the provider (if you're connecting via a provider).
56
+ # The OCID of the service offered by the provider (if you're connecting
57
+ # via a provider). To get a list of the available service offerings, see
58
+ # {#list_fast_connect_provider_services list_fast_connect_provider_services}.
59
+ #
60
+ # @return [String]
61
+ attr_accessor :provider_service_id
62
+
63
+ # Deprecated. Instead use `providerServiceId`.
57
64
  # To get a list of the provider names, see
58
65
  # {#list_fast_connect_provider_services list_fast_connect_provider_services}.
59
66
  #
60
67
  # @return [String]
61
68
  attr_accessor :provider_service_name
62
69
 
70
+ # For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to
71
+ # advertise across the connection.
72
+ #
73
+ # @return [Array<OCI::Core::Models::CreateVirtualCircuitPublicPrefixDetails>]
74
+ attr_accessor :public_prefixes
75
+
63
76
  # The Oracle Cloud Infrastructure region where this virtual
64
77
  # circuit is located.
65
78
  # Example: `phx`
@@ -111,10 +124,18 @@ module OCI
111
124
  self.provider_name = attributes[:'providerName']
112
125
  end
113
126
 
127
+ if attributes[:'providerServiceId']
128
+ self.provider_service_id = attributes[:'providerServiceId']
129
+ end
130
+
114
131
  if attributes[:'providerServiceName']
115
132
  self.provider_service_name = attributes[:'providerServiceName']
116
133
  end
117
134
 
135
+ if attributes[:'publicPrefixes']
136
+ self.public_prefixes = attributes[:'publicPrefixes']
137
+ end
138
+
118
139
  if attributes[:'region']
119
140
  self.region = attributes[:'region']
120
141
  end
@@ -147,7 +168,9 @@ module OCI
147
168
  display_name == other_object.display_name &&
148
169
  gateway_id == other_object.gateway_id &&
149
170
  provider_name == other_object.provider_name &&
171
+ provider_service_id == other_object.provider_service_id &&
150
172
  provider_service_name == other_object.provider_service_name &&
173
+ public_prefixes == other_object.public_prefixes &&
151
174
  region == other_object.region &&
152
175
  type == other_object.type
153
176
  end
@@ -161,7 +184,7 @@ module OCI
161
184
  # Calculates hash code according to all attributes.
162
185
  # @return [Fixnum] Hash code
163
186
  def hash
164
- [bandwidth_shape_name, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, provider_name, provider_service_name, region, type].hash
187
+ [bandwidth_shape_name, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, provider_name, provider_service_id, provider_service_name, public_prefixes, region, type].hash
165
188
  end
166
189
 
167
190
  # Builds the object from hash
@@ -234,7 +257,9 @@ module OCI
234
257
  :'display_name' => :'displayName',
235
258
  :'gateway_id' => :'gatewayId',
236
259
  :'provider_name' => :'providerName',
260
+ :'provider_service_id' => :'providerServiceId',
237
261
  :'provider_service_name' => :'providerServiceName',
262
+ :'public_prefixes' => :'publicPrefixes',
238
263
  :'region' => :'region',
239
264
  :'type' => :'type'
240
265
  }
@@ -250,7 +275,9 @@ module OCI
250
275
  :'display_name' => :'String',
251
276
  :'gateway_id' => :'String',
252
277
  :'provider_name' => :'String',
278
+ :'provider_service_id' => :'String',
253
279
  :'provider_service_name' => :'String',
280
+ :'public_prefixes' => :'Array<OCI::Core::Models::CreateVirtualCircuitPublicPrefixDetails>',
254
281
  :'region' => :'String',
255
282
  :'type' => :'String'
256
283
  }