oci 2.0.9 → 2.1.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 +179 -10
- data/lib/oci.rb +1 -0
- data/lib/oci/api_client.rb +186 -64
- data/lib/oci/api_client_proxy_settings.rb +71 -0
- data/lib/oci/audit/audit_client.rb +6 -4
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +1 -1
- data/lib/oci/core/blockstorage_client.rb +18 -4
- data/lib/oci/core/compute_client.rb +27 -4
- data/lib/oci/core/core.rb +5 -0
- data/lib/oci/core/models/connect_remote_peering_connections_details.rb +149 -0
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +165 -0
- data/lib/oci/core/models/peer_region_for_remote_peering.rb +125 -0
- data/lib/oci/core/models/remote_peering_connection.rb +362 -0
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +129 -0
- data/lib/oci/core/virtual_network_client.rb +334 -4
- data/lib/oci/database/database_client.rb +41 -4
- data/lib/oci/database/models/db_system.rb +1 -1
- data/lib/oci/database/models/db_system_shape_summary.rb +74 -2
- data/lib/oci/database/models/db_system_summary.rb +1 -1
- data/lib/oci/dns/dns_client.rb +32 -4
- data/lib/oci/email/email_client.rb +10 -4
- data/lib/oci/errors.rb +115 -19
- data/lib/oci/file_storage/file_storage_client.rb +18 -4
- data/lib/oci/global_context.rb +2 -2
- data/lib/oci/identity/identity_client.rb +68 -4
- data/lib/oci/identity/models/create_region_subscription_details.rb +1 -0
- data/lib/oci/identity/models/region.rb +2 -0
- data/lib/oci/identity/models/region_subscription.rb +2 -0
- data/lib/oci/identity/models/tenancy.rb +3 -1
- data/lib/oci/internal/util.rb +5 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +59 -4
- data/lib/oci/object_storage/object_storage_client.rb +62 -4
- data/lib/oci/regions.rb +4 -2
- data/lib/oci/version.rb +1 -1
- metadata +8 -2
@@ -0,0 +1,71 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
module OCI
|
4
|
+
# This class contains proxy configuration information that can be provided to {ApiClient}. If
|
5
|
+
# {ApiClient} is provided a proxy settings object then it will send requests via the specified
|
6
|
+
# proxy.
|
7
|
+
#
|
8
|
+
# If no object of this class is provided to {ApiClient} then it will use the proxy settings from
|
9
|
+
# the `http_proxy` environment variable, if present.
|
10
|
+
#
|
11
|
+
# To make {ApiClient} bypass proxies completely, pass it an object of this class with a nil
|
12
|
+
# {#proxy_address}
|
13
|
+
class ApiClientProxySettings
|
14
|
+
# The address of the proxy. This should be a DNS hostname or an IP address, but may be
|
15
|
+
# nil to indicate that proxies should be bypassed
|
16
|
+
#
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :proxy_address
|
19
|
+
|
20
|
+
# The proxy port
|
21
|
+
#
|
22
|
+
# @return [Integer]
|
23
|
+
attr_reader :proxy_port
|
24
|
+
|
25
|
+
# The username used for the proxy if it supports username/password authentication
|
26
|
+
#
|
27
|
+
# @return [String]
|
28
|
+
attr_reader :proxy_user
|
29
|
+
|
30
|
+
# The password used for the proxy if it supports username/password authentication
|
31
|
+
#
|
32
|
+
# @return [String]
|
33
|
+
attr_reader :proxy_password
|
34
|
+
|
35
|
+
# Creates a new ApiClientProxySettings object that can be provided to an {ApiClient}
|
36
|
+
#
|
37
|
+
# @param [String] proxy_address The address of the proxy. This should be a DNS hostname or an IP address. nil can be provided to indicate that proxies should be bypassed
|
38
|
+
# @param [Integer] proxy_port The proxy port
|
39
|
+
# @param [String] proxy_user Optional the username used for the proxy if it supports username/password authentication
|
40
|
+
# @param [String] proxy_password Optional the password used for the proxy if it supports username/password authentication
|
41
|
+
def initialize(proxy_address, proxy_port = nil, proxy_user = nil, proxy_password = nil)
|
42
|
+
validate_proxy_address_port(proxy_address, proxy_port)
|
43
|
+
validate_proxy_user_password(proxy_user, proxy_password)
|
44
|
+
|
45
|
+
@proxy_address = proxy_address
|
46
|
+
@proxy_port = proxy_port
|
47
|
+
@proxy_user = proxy_user
|
48
|
+
@proxy_password = proxy_password
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
def validate_proxy_address_port(proxy_address, proxy_port)
|
54
|
+
raise 'If the proxy address is not nil, it cannot be blank' if !proxy_address.nil? && proxy_address.strip.empty?
|
55
|
+
raise 'A proxy port must be provided if a proxy address is provided' if proxy_port.nil? && !proxy_address.nil?
|
56
|
+
end
|
57
|
+
|
58
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
59
|
+
def validate_proxy_user_password(proxy_user, proxy_password)
|
60
|
+
proxy_user_blank = proxy_user.nil? || proxy_user.strip.empty?
|
61
|
+
proxy_password_blank = proxy_password.nil? || proxy_password.strip.empty?
|
62
|
+
|
63
|
+
raise 'If the proxy user is not nil, it cannot be blank' if !proxy_user.nil? && proxy_user_blank
|
64
|
+
raise 'If the proxy password is not nil, it cannot be blank' if !proxy_password.nil? && proxy_password_blank
|
65
|
+
|
66
|
+
raise 'If either a proxy user or proxy password is provided, then both must be provided' \
|
67
|
+
if (!proxy_user_blank && proxy_password_blank) || (proxy_user_blank && !proxy_password_blank)
|
68
|
+
end
|
69
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
70
|
+
end
|
71
|
+
end
|
@@ -31,7 +31,9 @@ module OCI
|
|
31
31
|
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
32
32
|
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
33
33
|
# so that the instance principals signer can be provided to the client
|
34
|
-
|
34
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
35
|
+
# the details for the proxy can be provided in this parameter
|
36
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil)
|
35
37
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
36
38
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
37
39
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -47,7 +49,7 @@ module OCI
|
|
47
49
|
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
|
48
50
|
end
|
49
51
|
|
50
|
-
@api_client = ApiClient.new(config, signer)
|
52
|
+
@api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
51
53
|
|
52
54
|
region ||= config.region
|
53
55
|
region ||= signer.region if signer.respond_to?(:region)
|
@@ -57,8 +59,8 @@ module OCI
|
|
57
59
|
# Set the region that will be used to determine the service endpoint.
|
58
60
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
59
61
|
# but may be an arbitrary string.
|
60
|
-
def region=(
|
61
|
-
@region =
|
62
|
+
def region=(new_region)
|
63
|
+
@region = new_region
|
62
64
|
|
63
65
|
raise 'A region must be specified.' unless @region
|
64
66
|
|
@@ -60,7 +60,7 @@ module OCI
|
|
60
60
|
@leaf_certificate_retriever.certificate
|
61
61
|
)
|
62
62
|
|
63
|
-
raw_region = Net::HTTP.get(URI(GET_REGION_URL)).strip
|
63
|
+
raw_region = Net::HTTP.get(URI(GET_REGION_URL)).strip.downcase
|
64
64
|
symbolised_raw_region = raw_region.to_sym
|
65
65
|
@region = if OCI::Regions::REGION_SHORT_NAMES_TO_LONG_NAMES.key?(symbolised_raw_region)
|
66
66
|
OCI::Regions::REGION_SHORT_NAMES_TO_LONG_NAMES[symbolised_raw_region]
|
@@ -31,7 +31,9 @@ module OCI
|
|
31
31
|
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
32
32
|
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
33
33
|
# so that the instance principals signer can be provided to the client
|
34
|
-
|
34
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
35
|
+
# the details for the proxy can be provided in this parameter
|
36
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil)
|
35
37
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
36
38
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
37
39
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -47,7 +49,7 @@ module OCI
|
|
47
49
|
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
|
48
50
|
end
|
49
51
|
|
50
|
-
@api_client = ApiClient.new(config, signer)
|
52
|
+
@api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
51
53
|
|
52
54
|
region ||= config.region
|
53
55
|
region ||= signer.region if signer.respond_to?(:region)
|
@@ -57,8 +59,8 @@ module OCI
|
|
57
59
|
# Set the region that will be used to determine the service endpoint.
|
58
60
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
59
61
|
# but may be an arbitrary string.
|
60
|
-
def region=(
|
61
|
-
@region =
|
62
|
+
def region=(new_region)
|
63
|
+
@region = new_region
|
62
64
|
|
63
65
|
raise 'A region must be specified.' unless @region
|
64
66
|
|
@@ -218,6 +220,7 @@ module OCI
|
|
218
220
|
logger.debug "Calling operation BlockstorageClient#delete_boot_volume." if logger
|
219
221
|
|
220
222
|
raise "Missing the required parameter 'boot_volume_id' when calling delete_boot_volume." if boot_volume_id.nil?
|
223
|
+
raise "Parameter value for 'boot_volume_id' must not be blank" if OCI::Internal::Util::blank_string?(boot_volume_id)
|
221
224
|
|
222
225
|
path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
|
223
226
|
|
@@ -257,6 +260,7 @@ module OCI
|
|
257
260
|
logger.debug "Calling operation BlockstorageClient#delete_volume." if logger
|
258
261
|
|
259
262
|
raise "Missing the required parameter 'volume_id' when calling delete_volume." if volume_id.nil?
|
263
|
+
raise "Parameter value for 'volume_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_id)
|
260
264
|
|
261
265
|
path = "/volumes/{volumeId}".sub('{volumeId}', volume_id.to_s)
|
262
266
|
|
@@ -292,6 +296,7 @@ module OCI
|
|
292
296
|
logger.debug "Calling operation BlockstorageClient#delete_volume_backup." if logger
|
293
297
|
|
294
298
|
raise "Missing the required parameter 'volume_backup_id' when calling delete_volume_backup." if volume_backup_id.nil?
|
299
|
+
raise "Parameter value for 'volume_backup_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_backup_id)
|
295
300
|
|
296
301
|
path = "/volumeBackups/{volumeBackupId}".sub('{volumeBackupId}', volume_backup_id.to_s)
|
297
302
|
|
@@ -327,6 +332,7 @@ module OCI
|
|
327
332
|
logger.debug "Calling operation BlockstorageClient#delete_volume_backup_policy_assignment." if logger
|
328
333
|
|
329
334
|
raise "Missing the required parameter 'policy_assignment_id' when calling delete_volume_backup_policy_assignment." if policy_assignment_id.nil?
|
335
|
+
raise "Parameter value for 'policy_assignment_id' must not be blank" if OCI::Internal::Util::blank_string?(policy_assignment_id)
|
330
336
|
|
331
337
|
path = "/volumeBackupPolicyAssignments/{policyAssignmentId}".sub('{policyAssignmentId}', policy_assignment_id.to_s)
|
332
338
|
|
@@ -358,6 +364,7 @@ module OCI
|
|
358
364
|
logger.debug "Calling operation BlockstorageClient#get_boot_volume." if logger
|
359
365
|
|
360
366
|
raise "Missing the required parameter 'boot_volume_id' when calling get_boot_volume." if boot_volume_id.nil?
|
367
|
+
raise "Parameter value for 'boot_volume_id' must not be blank" if OCI::Internal::Util::blank_string?(boot_volume_id)
|
361
368
|
|
362
369
|
path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
|
363
370
|
|
@@ -389,6 +396,7 @@ module OCI
|
|
389
396
|
logger.debug "Calling operation BlockstorageClient#get_volume." if logger
|
390
397
|
|
391
398
|
raise "Missing the required parameter 'volume_id' when calling get_volume." if volume_id.nil?
|
399
|
+
raise "Parameter value for 'volume_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_id)
|
392
400
|
|
393
401
|
path = "/volumes/{volumeId}".sub('{volumeId}', volume_id.to_s)
|
394
402
|
|
@@ -420,6 +428,7 @@ module OCI
|
|
420
428
|
logger.debug "Calling operation BlockstorageClient#get_volume_backup." if logger
|
421
429
|
|
422
430
|
raise "Missing the required parameter 'volume_backup_id' when calling get_volume_backup." if volume_backup_id.nil?
|
431
|
+
raise "Parameter value for 'volume_backup_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_backup_id)
|
423
432
|
|
424
433
|
path = "/volumeBackups/{volumeBackupId}".sub('{volumeBackupId}', volume_backup_id.to_s)
|
425
434
|
|
@@ -451,6 +460,7 @@ module OCI
|
|
451
460
|
logger.debug "Calling operation BlockstorageClient#get_volume_backup_policy." if logger
|
452
461
|
|
453
462
|
raise "Missing the required parameter 'policy_id' when calling get_volume_backup_policy." if policy_id.nil?
|
463
|
+
raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util::blank_string?(policy_id)
|
454
464
|
|
455
465
|
path = "/volumeBackupPolicies/{policyId}".sub('{policyId}', policy_id.to_s)
|
456
466
|
|
@@ -525,6 +535,7 @@ module OCI
|
|
525
535
|
logger.debug "Calling operation BlockstorageClient#get_volume_backup_policy_assignment." if logger
|
526
536
|
|
527
537
|
raise "Missing the required parameter 'policy_assignment_id' when calling get_volume_backup_policy_assignment." if policy_assignment_id.nil?
|
538
|
+
raise "Parameter value for 'policy_assignment_id' must not be blank" if OCI::Internal::Util::blank_string?(policy_assignment_id)
|
528
539
|
|
529
540
|
path = "/volumeBackupPolicyAssignments/{policyAssignmentId}".sub('{policyAssignmentId}', policy_assignment_id.to_s)
|
530
541
|
|
@@ -803,6 +814,7 @@ module OCI
|
|
803
814
|
|
804
815
|
raise "Missing the required parameter 'boot_volume_id' when calling update_boot_volume." if boot_volume_id.nil?
|
805
816
|
raise "Missing the required parameter 'update_boot_volume_details' when calling update_boot_volume." if update_boot_volume_details.nil?
|
817
|
+
raise "Parameter value for 'boot_volume_id' must not be blank" if OCI::Internal::Util::blank_string?(boot_volume_id)
|
806
818
|
|
807
819
|
path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
|
808
820
|
|
@@ -843,6 +855,7 @@ module OCI
|
|
843
855
|
|
844
856
|
raise "Missing the required parameter 'volume_id' when calling update_volume." if volume_id.nil?
|
845
857
|
raise "Missing the required parameter 'update_volume_details' when calling update_volume." if update_volume_details.nil?
|
858
|
+
raise "Parameter value for 'volume_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_id)
|
846
859
|
|
847
860
|
path = "/volumes/{volumeId}".sub('{volumeId}', volume_id.to_s)
|
848
861
|
|
@@ -883,6 +896,7 @@ module OCI
|
|
883
896
|
|
884
897
|
raise "Missing the required parameter 'volume_backup_id' when calling update_volume_backup." if volume_backup_id.nil?
|
885
898
|
raise "Missing the required parameter 'update_volume_backup_details' when calling update_volume_backup." if update_volume_backup_details.nil?
|
899
|
+
raise "Parameter value for 'volume_backup_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_backup_id)
|
886
900
|
|
887
901
|
path = "/volumeBackups/{volumeBackupId}".sub('{volumeBackupId}', volume_backup_id.to_s)
|
888
902
|
|
@@ -31,7 +31,9 @@ module OCI
|
|
31
31
|
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
32
32
|
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
33
33
|
# so that the instance principals signer can be provided to the client
|
34
|
-
|
34
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
35
|
+
# the details for the proxy can be provided in this parameter
|
36
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil)
|
35
37
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
36
38
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
37
39
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -47,7 +49,7 @@ module OCI
|
|
47
49
|
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
|
48
50
|
end
|
49
51
|
|
50
|
-
@api_client = ApiClient.new(config, signer)
|
52
|
+
@api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
51
53
|
|
52
54
|
region ||= config.region
|
53
55
|
region ||= signer.region if signer.respond_to?(:region)
|
@@ -57,8 +59,8 @@ module OCI
|
|
57
59
|
# Set the region that will be used to determine the service endpoint.
|
58
60
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
59
61
|
# but may be an arbitrary string.
|
60
|
-
def region=(
|
61
|
-
@region =
|
62
|
+
def region=(new_region)
|
63
|
+
@region = new_region
|
62
64
|
|
63
65
|
raise 'A region must be specified.' unless @region
|
64
66
|
|
@@ -362,6 +364,7 @@ module OCI
|
|
362
364
|
logger.debug "Calling operation ComputeClient#delete_console_history." if logger
|
363
365
|
|
364
366
|
raise "Missing the required parameter 'instance_console_history_id' when calling delete_console_history." if instance_console_history_id.nil?
|
367
|
+
raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
|
365
368
|
|
366
369
|
path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
|
367
370
|
|
@@ -397,6 +400,7 @@ module OCI
|
|
397
400
|
logger.debug "Calling operation ComputeClient#delete_image." if logger
|
398
401
|
|
399
402
|
raise "Missing the required parameter 'image_id' when calling delete_image." if image_id.nil?
|
403
|
+
raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
|
400
404
|
|
401
405
|
path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
|
402
406
|
|
@@ -432,6 +436,7 @@ module OCI
|
|
432
436
|
logger.debug "Calling operation ComputeClient#delete_instance_console_connection." if logger
|
433
437
|
|
434
438
|
raise "Missing the required parameter 'instance_console_connection_id' when calling delete_instance_console_connection." if instance_console_connection_id.nil?
|
439
|
+
raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_connection_id)
|
435
440
|
|
436
441
|
path = "/instanceConsoleConnections/{instanceConsoleConnectionId}".sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
|
437
442
|
|
@@ -471,6 +476,7 @@ module OCI
|
|
471
476
|
logger.debug "Calling operation ComputeClient#detach_boot_volume." if logger
|
472
477
|
|
473
478
|
raise "Missing the required parameter 'boot_volume_attachment_id' when calling detach_boot_volume." if boot_volume_attachment_id.nil?
|
479
|
+
raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(boot_volume_attachment_id)
|
474
480
|
|
475
481
|
path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
|
476
482
|
|
@@ -516,6 +522,7 @@ module OCI
|
|
516
522
|
logger.debug "Calling operation ComputeClient#detach_vnic." if logger
|
517
523
|
|
518
524
|
raise "Missing the required parameter 'vnic_attachment_id' when calling detach_vnic." if vnic_attachment_id.nil?
|
525
|
+
raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_attachment_id)
|
519
526
|
|
520
527
|
path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
|
521
528
|
|
@@ -555,6 +562,7 @@ module OCI
|
|
555
562
|
logger.debug "Calling operation ComputeClient#detach_volume." if logger
|
556
563
|
|
557
564
|
raise "Missing the required parameter 'volume_attachment_id' when calling detach_volume." if volume_attachment_id.nil?
|
565
|
+
raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_attachment_id)
|
558
566
|
|
559
567
|
path = "/volumeAttachments/{volumeAttachmentId}".sub('{volumeAttachmentId}', volume_attachment_id.to_s)
|
560
568
|
|
@@ -608,6 +616,7 @@ module OCI
|
|
608
616
|
|
609
617
|
raise "Missing the required parameter 'image_id' when calling export_image." if image_id.nil?
|
610
618
|
raise "Missing the required parameter 'export_image_details' when calling export_image." if export_image_details.nil?
|
619
|
+
raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
|
611
620
|
|
612
621
|
path = "/images/{imageId}/actions/export".sub('{imageId}', image_id.to_s)
|
613
622
|
|
@@ -641,6 +650,7 @@ module OCI
|
|
641
650
|
logger.debug "Calling operation ComputeClient#get_boot_volume_attachment." if logger
|
642
651
|
|
643
652
|
raise "Missing the required parameter 'boot_volume_attachment_id' when calling get_boot_volume_attachment." if boot_volume_attachment_id.nil?
|
653
|
+
raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(boot_volume_attachment_id)
|
644
654
|
|
645
655
|
path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
|
646
656
|
|
@@ -675,6 +685,7 @@ module OCI
|
|
675
685
|
logger.debug "Calling operation ComputeClient#get_console_history." if logger
|
676
686
|
|
677
687
|
raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history." if instance_console_history_id.nil?
|
688
|
+
raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
|
678
689
|
|
679
690
|
path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
|
680
691
|
|
@@ -711,6 +722,7 @@ module OCI
|
|
711
722
|
logger.debug "Calling operation ComputeClient#get_console_history_content." if logger
|
712
723
|
|
713
724
|
raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history_content." if instance_console_history_id.nil?
|
725
|
+
raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
|
714
726
|
|
715
727
|
path = "/instanceConsoleHistories/{instanceConsoleHistoryId}/data".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
|
716
728
|
|
@@ -744,6 +756,7 @@ module OCI
|
|
744
756
|
logger.debug "Calling operation ComputeClient#get_image." if logger
|
745
757
|
|
746
758
|
raise "Missing the required parameter 'image_id' when calling get_image." if image_id.nil?
|
759
|
+
raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
|
747
760
|
|
748
761
|
path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
|
749
762
|
|
@@ -775,6 +788,7 @@ module OCI
|
|
775
788
|
logger.debug "Calling operation ComputeClient#get_instance." if logger
|
776
789
|
|
777
790
|
raise "Missing the required parameter 'instance_id' when calling get_instance." if instance_id.nil?
|
791
|
+
raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
|
778
792
|
|
779
793
|
path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
|
780
794
|
|
@@ -806,6 +820,7 @@ module OCI
|
|
806
820
|
logger.debug "Calling operation ComputeClient#get_instance_console_connection." if logger
|
807
821
|
|
808
822
|
raise "Missing the required parameter 'instance_console_connection_id' when calling get_instance_console_connection." if instance_console_connection_id.nil?
|
823
|
+
raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_connection_id)
|
809
824
|
|
810
825
|
path = "/instanceConsoleConnections/{instanceConsoleConnectionId}".sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
|
811
826
|
|
@@ -838,6 +853,7 @@ module OCI
|
|
838
853
|
logger.debug "Calling operation ComputeClient#get_vnic_attachment." if logger
|
839
854
|
|
840
855
|
raise "Missing the required parameter 'vnic_attachment_id' when calling get_vnic_attachment." if vnic_attachment_id.nil?
|
856
|
+
raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_attachment_id)
|
841
857
|
|
842
858
|
path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
|
843
859
|
|
@@ -869,6 +885,7 @@ module OCI
|
|
869
885
|
logger.debug "Calling operation ComputeClient#get_volume_attachment." if logger
|
870
886
|
|
871
887
|
raise "Missing the required parameter 'volume_attachment_id' when calling get_volume_attachment." if volume_attachment_id.nil?
|
888
|
+
raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_attachment_id)
|
872
889
|
|
873
890
|
path = "/volumeAttachments/{volumeAttachmentId}".sub('{volumeAttachmentId}', volume_attachment_id.to_s)
|
874
891
|
|
@@ -902,6 +919,7 @@ module OCI
|
|
902
919
|
logger.debug "Calling operation ComputeClient#get_windows_instance_initial_credentials." if logger
|
903
920
|
|
904
921
|
raise "Missing the required parameter 'instance_id' when calling get_windows_instance_initial_credentials." if instance_id.nil?
|
922
|
+
raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
|
905
923
|
|
906
924
|
path = "/instances/{instanceId}/initialCredentials".sub('{instanceId}', instance_id.to_s)
|
907
925
|
|
@@ -965,6 +983,7 @@ module OCI
|
|
965
983
|
unless ['STOP', 'START', 'SOFTRESET', 'RESET'].include?(action)
|
966
984
|
raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
|
967
985
|
end
|
986
|
+
raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
|
968
987
|
|
969
988
|
path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
|
970
989
|
|
@@ -1587,6 +1606,7 @@ module OCI
|
|
1587
1606
|
logger.debug "Calling operation ComputeClient#terminate_instance." if logger
|
1588
1607
|
|
1589
1608
|
raise "Missing the required parameter 'instance_id' when calling terminate_instance." if instance_id.nil?
|
1609
|
+
raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
|
1590
1610
|
|
1591
1611
|
path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
|
1592
1612
|
|
@@ -1625,6 +1645,7 @@ module OCI
|
|
1625
1645
|
|
1626
1646
|
raise "Missing the required parameter 'instance_console_history_id' when calling update_console_history." if instance_console_history_id.nil?
|
1627
1647
|
raise "Missing the required parameter 'update_console_history_details' when calling update_console_history." if update_console_history_details.nil?
|
1648
|
+
raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
|
1628
1649
|
|
1629
1650
|
path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
|
1630
1651
|
|
@@ -1669,6 +1690,7 @@ module OCI
|
|
1669
1690
|
|
1670
1691
|
raise "Missing the required parameter 'image_id' when calling update_image." if image_id.nil?
|
1671
1692
|
raise "Missing the required parameter 'update_image_details' when calling update_image." if update_image_details.nil?
|
1693
|
+
raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
|
1672
1694
|
|
1673
1695
|
path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
|
1674
1696
|
|
@@ -1716,6 +1738,7 @@ module OCI
|
|
1716
1738
|
|
1717
1739
|
raise "Missing the required parameter 'instance_id' when calling update_instance." if instance_id.nil?
|
1718
1740
|
raise "Missing the required parameter 'update_instance_details' when calling update_instance." if update_instance_details.nil?
|
1741
|
+
raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
|
1719
1742
|
|
1720
1743
|
path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
|
1721
1744
|
|
data/lib/oci/core/core.rb
CHANGED
@@ -19,6 +19,7 @@ require 'oci/core/models/bulk_add_virtual_circuit_public_prefixes_details'
|
|
19
19
|
require 'oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details'
|
20
20
|
require 'oci/core/models/capture_console_history_details'
|
21
21
|
require 'oci/core/models/connect_local_peering_gateways_details'
|
22
|
+
require 'oci/core/models/connect_remote_peering_connections_details'
|
22
23
|
require 'oci/core/models/console_history'
|
23
24
|
require 'oci/core/models/cpe'
|
24
25
|
require 'oci/core/models/create_cpe_details'
|
@@ -34,6 +35,7 @@ require 'oci/core/models/create_internet_gateway_details'
|
|
34
35
|
require 'oci/core/models/create_local_peering_gateway_details'
|
35
36
|
require 'oci/core/models/create_private_ip_details'
|
36
37
|
require 'oci/core/models/create_public_ip_details'
|
38
|
+
require 'oci/core/models/create_remote_peering_connection_details'
|
37
39
|
require 'oci/core/models/create_route_table_details'
|
38
40
|
require 'oci/core/models/create_security_list_details'
|
39
41
|
require 'oci/core/models/create_subnet_details'
|
@@ -86,9 +88,11 @@ require 'oci/core/models/launch_options'
|
|
86
88
|
require 'oci/core/models/letter_of_authority'
|
87
89
|
require 'oci/core/models/local_peering_gateway'
|
88
90
|
require 'oci/core/models/paravirtualized_volume_attachment'
|
91
|
+
require 'oci/core/models/peer_region_for_remote_peering'
|
89
92
|
require 'oci/core/models/port_range'
|
90
93
|
require 'oci/core/models/private_ip'
|
91
94
|
require 'oci/core/models/public_ip'
|
95
|
+
require 'oci/core/models/remote_peering_connection'
|
92
96
|
require 'oci/core/models/route_rule'
|
93
97
|
require 'oci/core/models/route_table'
|
94
98
|
require 'oci/core/models/security_list'
|
@@ -113,6 +117,7 @@ require 'oci/core/models/update_internet_gateway_details'
|
|
113
117
|
require 'oci/core/models/update_local_peering_gateway_details'
|
114
118
|
require 'oci/core/models/update_private_ip_details'
|
115
119
|
require 'oci/core/models/update_public_ip_details'
|
120
|
+
require 'oci/core/models/update_remote_peering_connection_details'
|
116
121
|
require 'oci/core/models/update_route_table_details'
|
117
122
|
require 'oci/core/models/update_security_list_details'
|
118
123
|
require 'oci/core/models/update_subnet_details'
|