oci 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/oci.rb +8 -0
- data/lib/oci/api_client.rb +11 -5
- data/lib/oci/config.rb +3 -2
- data/lib/oci/config_file_loader.rb +5 -5
- data/lib/oci/core/blockstorage_client.rb +1 -1
- data/lib/oci/core/compute_client.rb +58 -4
- data/lib/oci/core/core.rb +1 -0
- data/lib/oci/core/models/capture_console_history_details.rb +13 -1
- data/lib/oci/core/models/create_instance_console_connection_details.rb +2 -2
- data/lib/oci/core/models/create_vnic_details.rb +18 -1
- data/lib/oci/core/models/create_volume_details.rb +14 -1
- data/lib/oci/core/models/instance_console_connection.rb +6 -6
- data/lib/oci/core/models/route_rule.rb +4 -1
- data/lib/oci/core/models/update_console_history_details.rb +121 -0
- data/lib/oci/core/models/update_vnic_details.rb +21 -4
- data/lib/oci/core/models/vnic.rb +18 -1
- data/lib/oci/core/models/volume.rb +13 -2
- data/lib/oci/core/models/volume_backup.rb +29 -2
- data/lib/oci/core/virtual_network_client.rb +7 -1
- data/lib/oci/database/database.rb +43 -0
- data/lib/oci/database/database_client.rb +1246 -0
- data/lib/oci/database/models/create_data_guard_association_details.rb +225 -0
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +138 -0
- data/lib/oci/database/models/create_database_details.rb +194 -0
- data/lib/oci/database/models/create_db_home_details.rb +141 -0
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +152 -0
- data/lib/oci/database/models/data_guard_association.rb +374 -0
- data/lib/oci/database/models/database.rb +261 -0
- data/lib/oci/database/models/database_summary.rb +261 -0
- data/lib/oci/database/models/db_home.rb +216 -0
- data/lib/oci/database/models/db_home_summary.rb +216 -0
- data/lib/oci/database/models/db_node.rb +220 -0
- data/lib/oci/database/models/db_node_summary.rb +220 -0
- data/lib/oci/database/models/db_system.rb +518 -0
- data/lib/oci/database/models/db_system_shape_summary.rb +142 -0
- data/lib/oci/database/models/db_system_summary.rb +518 -0
- data/lib/oci/database/models/db_version_summary.rb +131 -0
- data/lib/oci/database/models/failover_data_guard_association_details.rb +120 -0
- data/lib/oci/database/models/launch_db_system_details.rb +394 -0
- data/lib/oci/database/models/patch.rb +247 -0
- data/lib/oci/database/models/patch_details.rb +144 -0
- data/lib/oci/database/models/patch_history_entry.rb +218 -0
- data/lib/oci/database/models/patch_history_entry_summary.rb +218 -0
- data/lib/oci/database/models/patch_summary.rb +247 -0
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +120 -0
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +120 -0
- data/lib/oci/database/models/update_db_home_details.rb +119 -0
- data/lib/oci/database/models/update_db_system_details.rb +153 -0
- data/lib/oci/database/util.rb +1 -0
- data/lib/oci/errors.rb +3 -4
- data/lib/oci/regions.rb +4 -2
- data/lib/oci/response_headers.rb +0 -1
- data/lib/oci/signer.rb +8 -7
- data/lib/oci/version.rb +1 -1
- data/lib/oraclebmc.rb +3 -1
- metadata +33 -2
@@ -0,0 +1 @@
|
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
data/lib/oci/errors.rb
CHANGED
@@ -24,7 +24,6 @@ module OCI
|
|
24
24
|
# @return [String]
|
25
25
|
attr_reader :message
|
26
26
|
|
27
|
-
|
28
27
|
def initialize(status_code, service_code, request_id, message)
|
29
28
|
# We need to mask the message attribute here as otherwise we use StandardError's
|
30
29
|
# implementation, which calls to_s and so referencing "message" in our to_s in
|
@@ -51,11 +50,11 @@ module OCI
|
|
51
50
|
|
52
51
|
# The base error for all network issues (that is, requests that do not reach the server)
|
53
52
|
class NetworkError < StandardError
|
54
|
-
# Error code, which is mapped to Net::HTTPResponse's
|
53
|
+
# Error code, which is mapped to Net::HTTPResponse's code.to_i or 0 if the issue was reported by an exception.
|
55
54
|
attr_reader :code
|
56
55
|
|
57
|
-
def initialize(code)
|
58
|
-
super
|
56
|
+
def initialize(message, code)
|
57
|
+
super message
|
59
58
|
@code = code
|
60
59
|
end
|
61
60
|
end
|
data/lib/oci/regions.rb
CHANGED
@@ -5,7 +5,8 @@ module OCI
|
|
5
5
|
module Regions
|
6
6
|
REGION_ENUM = [
|
7
7
|
REGION_US_PHOENIX_1 = 'us-phoenix-1'.freeze,
|
8
|
-
REGION_US_ASHBURN_1 = 'us-ashburn-1'.freeze
|
8
|
+
REGION_US_ASHBURN_1 = 'us-ashburn-1'.freeze,
|
9
|
+
REGION_EU_FRANKFURT_1 = 'eu-frankfurt-1'.freeze
|
9
10
|
].freeze
|
10
11
|
|
11
12
|
SERVICE_ENDPOINT_PREFIX_MAPPING = {
|
@@ -14,7 +15,8 @@ module OCI
|
|
14
15
|
VirtualNetworkClient: 'iaas',
|
15
16
|
IdentityClient: 'identity',
|
16
17
|
LoadBalancerClient: 'iaas',
|
17
|
-
ObjectStorageClient: 'objectstorage'
|
18
|
+
ObjectStorageClient: 'objectstorage',
|
19
|
+
DatabaseClient: 'database'
|
18
20
|
}.freeze
|
19
21
|
|
20
22
|
# Returns an endpoint for the given region and service.
|
data/lib/oci/response_headers.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
module OCI
|
4
4
|
# A readonly, case-insensitive http response header collection
|
5
5
|
class ResponseHeaders
|
6
|
-
|
7
6
|
# Initialize the readonly and case-insensitive http response headers with hash object.
|
8
7
|
#
|
9
8
|
# @param [Hash] headers the hash object contains http response headers.
|
data/lib/oci/signer.rb
CHANGED
@@ -65,13 +65,14 @@ module OCI
|
|
65
65
|
BODY_HEADERS = [:"content-length", :"content-type", :"x-content-sha256"]
|
66
66
|
|
67
67
|
OPERATION_HEADER_MAPPING = {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
68
|
+
options: [],
|
69
|
+
get: GENERIC_HEADERS,
|
70
|
+
head: GENERIC_HEADERS,
|
71
|
+
delete: GENERIC_HEADERS,
|
72
|
+
put: GENERIC_HEADERS + BODY_HEADERS,
|
73
|
+
post: GENERIC_HEADERS + BODY_HEADERS,
|
74
|
+
patch: GENERIC_HEADERS + BODY_HEADERS
|
75
|
+
}.freeze
|
75
76
|
|
76
77
|
def inject_missing_headers(method, headers, body, uri)
|
77
78
|
|
data/lib/oci/version.rb
CHANGED
data/lib/oraclebmc.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.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oracle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -207,6 +207,7 @@ files:
|
|
207
207
|
- "./lib/oci/core/models/tunnel_config.rb"
|
208
208
|
- "./lib/oci/core/models/tunnel_status.rb"
|
209
209
|
- "./lib/oci/core/models/udp_options.rb"
|
210
|
+
- "./lib/oci/core/models/update_console_history_details.rb"
|
210
211
|
- "./lib/oci/core/models/update_cpe_details.rb"
|
211
212
|
- "./lib/oci/core/models/update_cross_connect_details.rb"
|
212
213
|
- "./lib/oci/core/models/update_cross_connect_group_details.rb"
|
@@ -236,6 +237,36 @@ files:
|
|
236
237
|
- "./lib/oci/core/models/volume_backup.rb"
|
237
238
|
- "./lib/oci/core/util.rb"
|
238
239
|
- "./lib/oci/core/virtual_network_client.rb"
|
240
|
+
- "./lib/oci/database/database.rb"
|
241
|
+
- "./lib/oci/database/database_client.rb"
|
242
|
+
- "./lib/oci/database/models/create_data_guard_association_details.rb"
|
243
|
+
- "./lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb"
|
244
|
+
- "./lib/oci/database/models/create_database_details.rb"
|
245
|
+
- "./lib/oci/database/models/create_db_home_details.rb"
|
246
|
+
- "./lib/oci/database/models/create_db_home_with_db_system_id_details.rb"
|
247
|
+
- "./lib/oci/database/models/data_guard_association.rb"
|
248
|
+
- "./lib/oci/database/models/database.rb"
|
249
|
+
- "./lib/oci/database/models/database_summary.rb"
|
250
|
+
- "./lib/oci/database/models/db_home.rb"
|
251
|
+
- "./lib/oci/database/models/db_home_summary.rb"
|
252
|
+
- "./lib/oci/database/models/db_node.rb"
|
253
|
+
- "./lib/oci/database/models/db_node_summary.rb"
|
254
|
+
- "./lib/oci/database/models/db_system.rb"
|
255
|
+
- "./lib/oci/database/models/db_system_shape_summary.rb"
|
256
|
+
- "./lib/oci/database/models/db_system_summary.rb"
|
257
|
+
- "./lib/oci/database/models/db_version_summary.rb"
|
258
|
+
- "./lib/oci/database/models/failover_data_guard_association_details.rb"
|
259
|
+
- "./lib/oci/database/models/launch_db_system_details.rb"
|
260
|
+
- "./lib/oci/database/models/patch.rb"
|
261
|
+
- "./lib/oci/database/models/patch_details.rb"
|
262
|
+
- "./lib/oci/database/models/patch_history_entry.rb"
|
263
|
+
- "./lib/oci/database/models/patch_history_entry_summary.rb"
|
264
|
+
- "./lib/oci/database/models/patch_summary.rb"
|
265
|
+
- "./lib/oci/database/models/reinstate_data_guard_association_details.rb"
|
266
|
+
- "./lib/oci/database/models/switchover_data_guard_association_details.rb"
|
267
|
+
- "./lib/oci/database/models/update_db_home_details.rb"
|
268
|
+
- "./lib/oci/database/models/update_db_system_details.rb"
|
269
|
+
- "./lib/oci/database/util.rb"
|
239
270
|
- "./lib/oci/errors.rb"
|
240
271
|
- "./lib/oci/global_context.rb"
|
241
272
|
- "./lib/oci/identity/identity.rb"
|