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,129 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
class Core::Models::UpdateRemotePeeringConnectionDetails
|
7
|
+
# A user-friendly name. Does not have to be unique, and it's changeable.
|
8
|
+
# Avoid entering confidential information.
|
9
|
+
#
|
10
|
+
# @return [String]
|
11
|
+
attr_accessor :display_name
|
12
|
+
|
13
|
+
|
14
|
+
# Initializes the object
|
15
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
16
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
17
|
+
def initialize(attributes = {})
|
18
|
+
return unless attributes.is_a?(Hash)
|
19
|
+
|
20
|
+
# convert string to symbol for hash key
|
21
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
22
|
+
|
23
|
+
if attributes[:'displayName']
|
24
|
+
self.display_name = attributes[:'displayName']
|
25
|
+
end
|
26
|
+
|
27
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
28
|
+
|
29
|
+
if attributes[:'display_name']
|
30
|
+
self.display_name = attributes[:'display_name']
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
# Checks equality by comparing each attribute.
|
36
|
+
# @param [Object] other_object to be compared
|
37
|
+
def ==(other_object)
|
38
|
+
return true if self.equal?(other_object)
|
39
|
+
self.class == other_object.class &&
|
40
|
+
display_name == other_object.display_name
|
41
|
+
end
|
42
|
+
|
43
|
+
# @see the `==` method
|
44
|
+
# @param [Object] other_object to be compared
|
45
|
+
def eql?(other_object)
|
46
|
+
self == other_object
|
47
|
+
end
|
48
|
+
|
49
|
+
# Calculates hash code according to all attributes.
|
50
|
+
# @return [Fixnum] Hash code
|
51
|
+
def hash
|
52
|
+
[display_name].hash
|
53
|
+
end
|
54
|
+
|
55
|
+
# Builds the object from hash
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
# @return [Object] Returns the model itself
|
58
|
+
def build_from_hash(attributes)
|
59
|
+
return nil unless attributes.is_a?(Hash)
|
60
|
+
self.class.swagger_types.each_pair do |key, type|
|
61
|
+
if type =~ /^Array<(.*)>/i
|
62
|
+
# check to ensure the input is an array given that the the attribute
|
63
|
+
# is documented as an array but the input is not
|
64
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
65
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
66
|
+
end
|
67
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
68
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
69
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
70
|
+
end
|
71
|
+
|
72
|
+
self
|
73
|
+
end
|
74
|
+
|
75
|
+
# Returns the string representation of the object
|
76
|
+
# @return [String] String presentation of the object
|
77
|
+
def to_s
|
78
|
+
to_hash.to_s
|
79
|
+
end
|
80
|
+
|
81
|
+
# Returns the object in the form of hash
|
82
|
+
# @return [Hash] Returns the object in the form of hash
|
83
|
+
def to_hash
|
84
|
+
hash = {}
|
85
|
+
self.class.attribute_map.each_pair do |attr, param|
|
86
|
+
value = public_method(attr).call
|
87
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
88
|
+
hash[param] = _to_hash(value)
|
89
|
+
end
|
90
|
+
hash
|
91
|
+
end
|
92
|
+
|
93
|
+
private
|
94
|
+
|
95
|
+
# Outputs non-array value in the form of hash
|
96
|
+
# For object, use to_hash. Otherwise, just return the value
|
97
|
+
# @param [Object] value Any valid value
|
98
|
+
# @return [Hash] Returns the value in the form of hash
|
99
|
+
def _to_hash(value)
|
100
|
+
if value.is_a?(Array)
|
101
|
+
value.compact.map{ |v| _to_hash(v) }
|
102
|
+
elsif value.is_a?(Hash)
|
103
|
+
{}.tap do |hash|
|
104
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
105
|
+
end
|
106
|
+
elsif value.respond_to? :to_hash
|
107
|
+
value.to_hash
|
108
|
+
else
|
109
|
+
value
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
116
|
+
def self.attribute_map
|
117
|
+
{
|
118
|
+
:'display_name' => :'displayName'
|
119
|
+
}
|
120
|
+
end
|
121
|
+
|
122
|
+
# Attribute type mapping.
|
123
|
+
def self.swagger_types
|
124
|
+
{
|
125
|
+
:'display_name' => :'String'
|
126
|
+
}
|
127
|
+
end
|
128
|
+
end
|
129
|
+
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
|
|
@@ -86,6 +88,7 @@ module OCI
|
|
86
88
|
|
87
89
|
raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_add_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
|
88
90
|
raise "Missing the required parameter 'bulk_add_virtual_circuit_public_prefixes_details' when calling bulk_add_virtual_circuit_public_prefixes." if bulk_add_virtual_circuit_public_prefixes_details.nil?
|
91
|
+
raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id)
|
89
92
|
|
90
93
|
path = "/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
|
91
94
|
|
@@ -122,6 +125,7 @@ module OCI
|
|
122
125
|
|
123
126
|
raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_delete_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
|
124
127
|
raise "Missing the required parameter 'bulk_delete_virtual_circuit_public_prefixes_details' when calling bulk_delete_virtual_circuit_public_prefixes." if bulk_delete_virtual_circuit_public_prefixes_details.nil?
|
128
|
+
raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id)
|
125
129
|
|
126
130
|
path = "/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
|
127
131
|
|
@@ -162,6 +166,7 @@ module OCI
|
|
162
166
|
|
163
167
|
raise "Missing the required parameter 'local_peering_gateway_id' when calling connect_local_peering_gateways." if local_peering_gateway_id.nil?
|
164
168
|
raise "Missing the required parameter 'connect_local_peering_gateways_details' when calling connect_local_peering_gateways." if connect_local_peering_gateways_details.nil?
|
169
|
+
raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id)
|
165
170
|
|
166
171
|
path = "/localPeeringGateways/{localPeeringGatewayId}/actions/connect".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
|
167
172
|
|
@@ -184,6 +189,47 @@ module OCI
|
|
184
189
|
:body => post_body)
|
185
190
|
end
|
186
191
|
|
192
|
+
# Connects this RPC to another one in a different region.
|
193
|
+
#
|
194
|
+
# This operation must be called by the VCN administrator who is designated as
|
195
|
+
# the *requestor* in the peering relationship. The *acceptor* must implement
|
196
|
+
# an Identity and Access Management (IAM) policy that gives the requestor permission
|
197
|
+
# to connect to RPCs in the acceptor's compartment. Without that permission, this
|
198
|
+
# operation will fail. For more information, see
|
199
|
+
# [VCN Peering](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm).
|
200
|
+
#
|
201
|
+
# @param [String] remote_peering_connection_id The OCID of the remote peering connection (RPC).
|
202
|
+
# @param [ConnectRemotePeeringConnectionsDetails] connect_remote_peering_connections_details Details to connect peering connection with peering connection from remote region
|
203
|
+
# @param [Hash] opts the optional parameters
|
204
|
+
# @return [Response] A Response object with data of type nil
|
205
|
+
def connect_remote_peering_connections(remote_peering_connection_id, connect_remote_peering_connections_details, opts = {})
|
206
|
+
logger.debug "Calling operation VirtualNetworkClient#connect_remote_peering_connections." if logger
|
207
|
+
|
208
|
+
raise "Missing the required parameter 'remote_peering_connection_id' when calling connect_remote_peering_connections." if remote_peering_connection_id.nil?
|
209
|
+
raise "Missing the required parameter 'connect_remote_peering_connections_details' when calling connect_remote_peering_connections." if connect_remote_peering_connections_details.nil?
|
210
|
+
raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id)
|
211
|
+
|
212
|
+
path = "/remotePeeringConnections/{remotePeeringConnectionId}/actions/connect".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s)
|
213
|
+
|
214
|
+
# Query Params
|
215
|
+
query_params = {}
|
216
|
+
|
217
|
+
# Header Params
|
218
|
+
header_params = {}
|
219
|
+
header_params['accept'] = 'application/json'
|
220
|
+
header_params['content-type'] = 'application/json'
|
221
|
+
|
222
|
+
post_body = @api_client.object_to_http_body(connect_remote_peering_connections_details)
|
223
|
+
|
224
|
+
return @api_client.call_api(
|
225
|
+
:POST,
|
226
|
+
path,
|
227
|
+
endpoint,
|
228
|
+
:header_params => header_params,
|
229
|
+
:query_params => query_params,
|
230
|
+
:body => post_body)
|
231
|
+
end
|
232
|
+
|
187
233
|
# Creates a new virtual Customer-Premises Equipment (CPE) object in the specified compartment. For
|
188
234
|
# more information, see [IPSec VPNs](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPsec.htm).
|
189
235
|
#
|
@@ -757,6 +803,45 @@ module OCI
|
|
757
803
|
:return_type => 'OCI::Core::Models::PublicIp')
|
758
804
|
end
|
759
805
|
|
806
|
+
# Creates a new remote peering connection (RPC) for the specified DRG.
|
807
|
+
#
|
808
|
+
# @param [CreateRemotePeeringConnectionDetails] create_remote_peering_connection_details Request to create peering connection to remote region
|
809
|
+
# @param [Hash] opts the optional parameters
|
810
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
811
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
812
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
813
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
814
|
+
# may be rejected).
|
815
|
+
#
|
816
|
+
# @return [Response] A Response object with data of type OCI::Core::Models::RemotePeeringConnection
|
817
|
+
def create_remote_peering_connection(create_remote_peering_connection_details, opts = {})
|
818
|
+
logger.debug "Calling operation VirtualNetworkClient#create_remote_peering_connection." if logger
|
819
|
+
|
820
|
+
raise "Missing the required parameter 'create_remote_peering_connection_details' when calling create_remote_peering_connection." if create_remote_peering_connection_details.nil?
|
821
|
+
|
822
|
+
path = "/remotePeeringConnections"
|
823
|
+
|
824
|
+
# Query Params
|
825
|
+
query_params = {}
|
826
|
+
|
827
|
+
# Header Params
|
828
|
+
header_params = {}
|
829
|
+
header_params['accept'] = 'application/json'
|
830
|
+
header_params['content-type'] = 'application/json'
|
831
|
+
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
832
|
+
|
833
|
+
post_body = @api_client.object_to_http_body(create_remote_peering_connection_details)
|
834
|
+
|
835
|
+
return @api_client.call_api(
|
836
|
+
:POST,
|
837
|
+
path,
|
838
|
+
endpoint,
|
839
|
+
:header_params => header_params,
|
840
|
+
:query_params => query_params,
|
841
|
+
:body => post_body,
|
842
|
+
:return_type => 'OCI::Core::Models::RemotePeeringConnection')
|
843
|
+
end
|
844
|
+
|
760
845
|
# Creates a new route table for the specified VCN. In the request you must also include at least one route
|
761
846
|
# rule for the new route table. For information on the number of rules you can have in a route table, see
|
762
847
|
# [Service Limits](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/servicelimits.htm). For general information about route
|
@@ -1072,6 +1157,7 @@ module OCI
|
|
1072
1157
|
logger.debug "Calling operation VirtualNetworkClient#delete_cpe." if logger
|
1073
1158
|
|
1074
1159
|
raise "Missing the required parameter 'cpe_id' when calling delete_cpe." if cpe_id.nil?
|
1160
|
+
raise "Parameter value for 'cpe_id' must not be blank" if OCI::Internal::Util::blank_string?(cpe_id)
|
1075
1161
|
|
1076
1162
|
path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s)
|
1077
1163
|
|
@@ -1109,6 +1195,7 @@ module OCI
|
|
1109
1195
|
logger.debug "Calling operation VirtualNetworkClient#delete_cross_connect." if logger
|
1110
1196
|
|
1111
1197
|
raise "Missing the required parameter 'cross_connect_id' when calling delete_cross_connect." if cross_connect_id.nil?
|
1198
|
+
raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id)
|
1112
1199
|
|
1113
1200
|
path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s)
|
1114
1201
|
|
@@ -1147,6 +1234,7 @@ module OCI
|
|
1147
1234
|
logger.debug "Calling operation VirtualNetworkClient#delete_cross_connect_group." if logger
|
1148
1235
|
|
1149
1236
|
raise "Missing the required parameter 'cross_connect_group_id' when calling delete_cross_connect_group." if cross_connect_group_id.nil?
|
1237
|
+
raise "Parameter value for 'cross_connect_group_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_group_id)
|
1150
1238
|
|
1151
1239
|
path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s)
|
1152
1240
|
|
@@ -1187,6 +1275,7 @@ module OCI
|
|
1187
1275
|
logger.debug "Calling operation VirtualNetworkClient#delete_dhcp_options." if logger
|
1188
1276
|
|
1189
1277
|
raise "Missing the required parameter 'dhcp_id' when calling delete_dhcp_options." if dhcp_id.nil?
|
1278
|
+
raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util::blank_string?(dhcp_id)
|
1190
1279
|
|
1191
1280
|
path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s)
|
1192
1281
|
|
@@ -1226,6 +1315,7 @@ module OCI
|
|
1226
1315
|
logger.debug "Calling operation VirtualNetworkClient#delete_drg." if logger
|
1227
1316
|
|
1228
1317
|
raise "Missing the required parameter 'drg_id' when calling delete_drg." if drg_id.nil?
|
1318
|
+
raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_id)
|
1229
1319
|
|
1230
1320
|
path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s)
|
1231
1321
|
|
@@ -1264,6 +1354,7 @@ module OCI
|
|
1264
1354
|
logger.debug "Calling operation VirtualNetworkClient#delete_drg_attachment." if logger
|
1265
1355
|
|
1266
1356
|
raise "Missing the required parameter 'drg_attachment_id' when calling delete_drg_attachment." if drg_attachment_id.nil?
|
1357
|
+
raise "Parameter value for 'drg_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_attachment_id)
|
1267
1358
|
|
1268
1359
|
path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', drg_attachment_id.to_s)
|
1269
1360
|
|
@@ -1304,6 +1395,7 @@ module OCI
|
|
1304
1395
|
logger.debug "Calling operation VirtualNetworkClient#delete_internet_gateway." if logger
|
1305
1396
|
|
1306
1397
|
raise "Missing the required parameter 'ig_id' when calling delete_internet_gateway." if ig_id.nil?
|
1398
|
+
raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util::blank_string?(ig_id)
|
1307
1399
|
|
1308
1400
|
path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s)
|
1309
1401
|
|
@@ -1347,6 +1439,7 @@ module OCI
|
|
1347
1439
|
logger.debug "Calling operation VirtualNetworkClient#delete_ip_sec_connection." if logger
|
1348
1440
|
|
1349
1441
|
raise "Missing the required parameter 'ipsc_id' when calling delete_ip_sec_connection." if ipsc_id.nil?
|
1442
|
+
raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id)
|
1350
1443
|
|
1351
1444
|
path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s)
|
1352
1445
|
|
@@ -1386,6 +1479,7 @@ module OCI
|
|
1386
1479
|
logger.debug "Calling operation VirtualNetworkClient#delete_local_peering_gateway." if logger
|
1387
1480
|
|
1388
1481
|
raise "Missing the required parameter 'local_peering_gateway_id' when calling delete_local_peering_gateway." if local_peering_gateway_id.nil?
|
1482
|
+
raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id)
|
1389
1483
|
|
1390
1484
|
path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
|
1391
1485
|
|
@@ -1432,6 +1526,7 @@ module OCI
|
|
1432
1526
|
logger.debug "Calling operation VirtualNetworkClient#delete_private_ip." if logger
|
1433
1527
|
|
1434
1528
|
raise "Missing the required parameter 'private_ip_id' when calling delete_private_ip." if private_ip_id.nil?
|
1529
|
+
raise "Parameter value for 'private_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(private_ip_id)
|
1435
1530
|
|
1436
1531
|
path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s)
|
1437
1532
|
|
@@ -1478,6 +1573,7 @@ module OCI
|
|
1478
1573
|
logger.debug "Calling operation VirtualNetworkClient#delete_public_ip." if logger
|
1479
1574
|
|
1480
1575
|
raise "Missing the required parameter 'public_ip_id' when calling delete_public_ip." if public_ip_id.nil?
|
1576
|
+
raise "Parameter value for 'public_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(public_ip_id)
|
1481
1577
|
|
1482
1578
|
path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s)
|
1483
1579
|
|
@@ -1501,6 +1597,46 @@ module OCI
|
|
1501
1597
|
:body => post_body)
|
1502
1598
|
end
|
1503
1599
|
|
1600
|
+
# Deletes the remote peering connection (RPC).
|
1601
|
+
#
|
1602
|
+
# This is an asynchronous operation; the RPC's `lifecycleState` changes to TERMINATING temporarily
|
1603
|
+
# until the RPC is completely removed.
|
1604
|
+
#
|
1605
|
+
# @param [String] remote_peering_connection_id The OCID of the remote peering connection (RPC).
|
1606
|
+
# @param [Hash] opts the optional parameters
|
1607
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1608
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1609
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1610
|
+
#
|
1611
|
+
# @return [Response] A Response object with data of type nil
|
1612
|
+
def delete_remote_peering_connection(remote_peering_connection_id, opts = {})
|
1613
|
+
logger.debug "Calling operation VirtualNetworkClient#delete_remote_peering_connection." if logger
|
1614
|
+
|
1615
|
+
raise "Missing the required parameter 'remote_peering_connection_id' when calling delete_remote_peering_connection." if remote_peering_connection_id.nil?
|
1616
|
+
raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id)
|
1617
|
+
|
1618
|
+
path = "/remotePeeringConnections/{remotePeeringConnectionId}".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s)
|
1619
|
+
|
1620
|
+
# Query Params
|
1621
|
+
query_params = {}
|
1622
|
+
|
1623
|
+
# Header Params
|
1624
|
+
header_params = {}
|
1625
|
+
header_params['accept'] = 'application/json'
|
1626
|
+
header_params['content-type'] = 'application/json'
|
1627
|
+
header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
|
1628
|
+
|
1629
|
+
post_body = nil
|
1630
|
+
|
1631
|
+
return @api_client.call_api(
|
1632
|
+
:DELETE,
|
1633
|
+
path,
|
1634
|
+
endpoint,
|
1635
|
+
:header_params => header_params,
|
1636
|
+
:query_params => query_params,
|
1637
|
+
:body => post_body)
|
1638
|
+
end
|
1639
|
+
|
1504
1640
|
# Deletes the specified route table, but only if it's not associated with a subnet. You can't delete a
|
1505
1641
|
# VCN's default route table.
|
1506
1642
|
#
|
@@ -1518,6 +1654,7 @@ module OCI
|
|
1518
1654
|
logger.debug "Calling operation VirtualNetworkClient#delete_route_table." if logger
|
1519
1655
|
|
1520
1656
|
raise "Missing the required parameter 'rt_id' when calling delete_route_table." if rt_id.nil?
|
1657
|
+
raise "Parameter value for 'rt_id' must not be blank" if OCI::Internal::Util::blank_string?(rt_id)
|
1521
1658
|
|
1522
1659
|
path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s)
|
1523
1660
|
|
@@ -1558,6 +1695,7 @@ module OCI
|
|
1558
1695
|
logger.debug "Calling operation VirtualNetworkClient#delete_security_list." if logger
|
1559
1696
|
|
1560
1697
|
raise "Missing the required parameter 'security_list_id' when calling delete_security_list." if security_list_id.nil?
|
1698
|
+
raise "Parameter value for 'security_list_id' must not be blank" if OCI::Internal::Util::blank_string?(security_list_id)
|
1561
1699
|
|
1562
1700
|
path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s)
|
1563
1701
|
|
@@ -1596,6 +1734,7 @@ module OCI
|
|
1596
1734
|
logger.debug "Calling operation VirtualNetworkClient#delete_subnet." if logger
|
1597
1735
|
|
1598
1736
|
raise "Missing the required parameter 'subnet_id' when calling delete_subnet." if subnet_id.nil?
|
1737
|
+
raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util::blank_string?(subnet_id)
|
1599
1738
|
|
1600
1739
|
path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s)
|
1601
1740
|
|
@@ -1634,6 +1773,7 @@ module OCI
|
|
1634
1773
|
logger.debug "Calling operation VirtualNetworkClient#delete_vcn." if logger
|
1635
1774
|
|
1636
1775
|
raise "Missing the required parameter 'vcn_id' when calling delete_vcn." if vcn_id.nil?
|
1776
|
+
raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util::blank_string?(vcn_id)
|
1637
1777
|
|
1638
1778
|
path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s)
|
1639
1779
|
|
@@ -1674,6 +1814,7 @@ module OCI
|
|
1674
1814
|
logger.debug "Calling operation VirtualNetworkClient#delete_virtual_circuit." if logger
|
1675
1815
|
|
1676
1816
|
raise "Missing the required parameter 'virtual_circuit_id' when calling delete_virtual_circuit." if virtual_circuit_id.nil?
|
1817
|
+
raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id)
|
1677
1818
|
|
1678
1819
|
path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
|
1679
1820
|
|
@@ -1705,6 +1846,7 @@ module OCI
|
|
1705
1846
|
logger.debug "Calling operation VirtualNetworkClient#get_cpe." if logger
|
1706
1847
|
|
1707
1848
|
raise "Missing the required parameter 'cpe_id' when calling get_cpe." if cpe_id.nil?
|
1849
|
+
raise "Parameter value for 'cpe_id' must not be blank" if OCI::Internal::Util::blank_string?(cpe_id)
|
1708
1850
|
|
1709
1851
|
path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s)
|
1710
1852
|
|
@@ -1736,6 +1878,7 @@ module OCI
|
|
1736
1878
|
logger.debug "Calling operation VirtualNetworkClient#get_cross_connect." if logger
|
1737
1879
|
|
1738
1880
|
raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect." if cross_connect_id.nil?
|
1881
|
+
raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id)
|
1739
1882
|
|
1740
1883
|
path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s)
|
1741
1884
|
|
@@ -1767,6 +1910,7 @@ module OCI
|
|
1767
1910
|
logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_group." if logger
|
1768
1911
|
|
1769
1912
|
raise "Missing the required parameter 'cross_connect_group_id' when calling get_cross_connect_group." if cross_connect_group_id.nil?
|
1913
|
+
raise "Parameter value for 'cross_connect_group_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_group_id)
|
1770
1914
|
|
1771
1915
|
path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s)
|
1772
1916
|
|
@@ -1798,6 +1942,7 @@ module OCI
|
|
1798
1942
|
logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_letter_of_authority." if logger
|
1799
1943
|
|
1800
1944
|
raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_letter_of_authority." if cross_connect_id.nil?
|
1945
|
+
raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id)
|
1801
1946
|
|
1802
1947
|
path = "/crossConnects/{crossConnectId}/letterOfAuthority".sub('{crossConnectId}', cross_connect_id.to_s)
|
1803
1948
|
|
@@ -1830,6 +1975,7 @@ module OCI
|
|
1830
1975
|
logger.debug "Calling operation VirtualNetworkClient#get_cross_connect_status." if logger
|
1831
1976
|
|
1832
1977
|
raise "Missing the required parameter 'cross_connect_id' when calling get_cross_connect_status." if cross_connect_id.nil?
|
1978
|
+
raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id)
|
1833
1979
|
|
1834
1980
|
path = "/crossConnects/{crossConnectId}/status".sub('{crossConnectId}', cross_connect_id.to_s)
|
1835
1981
|
|
@@ -1861,6 +2007,7 @@ module OCI
|
|
1861
2007
|
logger.debug "Calling operation VirtualNetworkClient#get_dhcp_options." if logger
|
1862
2008
|
|
1863
2009
|
raise "Missing the required parameter 'dhcp_id' when calling get_dhcp_options." if dhcp_id.nil?
|
2010
|
+
raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util::blank_string?(dhcp_id)
|
1864
2011
|
|
1865
2012
|
path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s)
|
1866
2013
|
|
@@ -1892,6 +2039,7 @@ module OCI
|
|
1892
2039
|
logger.debug "Calling operation VirtualNetworkClient#get_drg." if logger
|
1893
2040
|
|
1894
2041
|
raise "Missing the required parameter 'drg_id' when calling get_drg." if drg_id.nil?
|
2042
|
+
raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_id)
|
1895
2043
|
|
1896
2044
|
path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s)
|
1897
2045
|
|
@@ -1923,6 +2071,7 @@ module OCI
|
|
1923
2071
|
logger.debug "Calling operation VirtualNetworkClient#get_drg_attachment." if logger
|
1924
2072
|
|
1925
2073
|
raise "Missing the required parameter 'drg_attachment_id' when calling get_drg_attachment." if drg_attachment_id.nil?
|
2074
|
+
raise "Parameter value for 'drg_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_attachment_id)
|
1926
2075
|
|
1927
2076
|
path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', drg_attachment_id.to_s)
|
1928
2077
|
|
@@ -1956,6 +2105,7 @@ module OCI
|
|
1956
2105
|
logger.debug "Calling operation VirtualNetworkClient#get_fast_connect_provider_service." if logger
|
1957
2106
|
|
1958
2107
|
raise "Missing the required parameter 'provider_service_id' when calling get_fast_connect_provider_service." if provider_service_id.nil?
|
2108
|
+
raise "Parameter value for 'provider_service_id' must not be blank" if OCI::Internal::Util::blank_string?(provider_service_id)
|
1959
2109
|
|
1960
2110
|
path = "/fastConnectProviderServices/{providerServiceId}".sub('{providerServiceId}', provider_service_id.to_s)
|
1961
2111
|
|
@@ -1987,6 +2137,7 @@ module OCI
|
|
1987
2137
|
logger.debug "Calling operation VirtualNetworkClient#get_internet_gateway." if logger
|
1988
2138
|
|
1989
2139
|
raise "Missing the required parameter 'ig_id' when calling get_internet_gateway." if ig_id.nil?
|
2140
|
+
raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util::blank_string?(ig_id)
|
1990
2141
|
|
1991
2142
|
path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s)
|
1992
2143
|
|
@@ -2021,6 +2172,7 @@ module OCI
|
|
2021
2172
|
logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection." if logger
|
2022
2173
|
|
2023
2174
|
raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection." if ipsc_id.nil?
|
2175
|
+
raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id)
|
2024
2176
|
|
2025
2177
|
path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s)
|
2026
2178
|
|
@@ -2054,6 +2206,7 @@ module OCI
|
|
2054
2206
|
logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection_device_config." if logger
|
2055
2207
|
|
2056
2208
|
raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_config." if ipsc_id.nil?
|
2209
|
+
raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id)
|
2057
2210
|
|
2058
2211
|
path = "/ipsecConnections/{ipscId}/deviceConfig".sub('{ipscId}', ipsc_id.to_s)
|
2059
2212
|
|
@@ -2086,6 +2239,7 @@ module OCI
|
|
2086
2239
|
logger.debug "Calling operation VirtualNetworkClient#get_ip_sec_connection_device_status." if logger
|
2087
2240
|
|
2088
2241
|
raise "Missing the required parameter 'ipsc_id' when calling get_ip_sec_connection_device_status." if ipsc_id.nil?
|
2242
|
+
raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id)
|
2089
2243
|
|
2090
2244
|
path = "/ipsecConnections/{ipscId}/deviceStatus".sub('{ipscId}', ipsc_id.to_s)
|
2091
2245
|
|
@@ -2117,6 +2271,7 @@ module OCI
|
|
2117
2271
|
logger.debug "Calling operation VirtualNetworkClient#get_local_peering_gateway." if logger
|
2118
2272
|
|
2119
2273
|
raise "Missing the required parameter 'local_peering_gateway_id' when calling get_local_peering_gateway." if local_peering_gateway_id.nil?
|
2274
|
+
raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id)
|
2120
2275
|
|
2121
2276
|
path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
|
2122
2277
|
|
@@ -2152,6 +2307,7 @@ module OCI
|
|
2152
2307
|
logger.debug "Calling operation VirtualNetworkClient#get_private_ip." if logger
|
2153
2308
|
|
2154
2309
|
raise "Missing the required parameter 'private_ip_id' when calling get_private_ip." if private_ip_id.nil?
|
2310
|
+
raise "Parameter value for 'private_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(private_ip_id)
|
2155
2311
|
|
2156
2312
|
path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s)
|
2157
2313
|
|
@@ -2194,6 +2350,7 @@ module OCI
|
|
2194
2350
|
logger.debug "Calling operation VirtualNetworkClient#get_public_ip." if logger
|
2195
2351
|
|
2196
2352
|
raise "Missing the required parameter 'public_ip_id' when calling get_public_ip." if public_ip_id.nil?
|
2353
|
+
raise "Parameter value for 'public_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(public_ip_id)
|
2197
2354
|
|
2198
2355
|
path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s)
|
2199
2356
|
|
@@ -2295,6 +2452,39 @@ module OCI
|
|
2295
2452
|
:return_type => 'OCI::Core::Models::PublicIp')
|
2296
2453
|
end
|
2297
2454
|
|
2455
|
+
# Get the specified remote peering connection's information.
|
2456
|
+
#
|
2457
|
+
# @param [String] remote_peering_connection_id The OCID of the remote peering connection (RPC).
|
2458
|
+
# @param [Hash] opts the optional parameters
|
2459
|
+
# @return [Response] A Response object with data of type OCI::Core::Models::RemotePeeringConnection
|
2460
|
+
def get_remote_peering_connection(remote_peering_connection_id, opts = {})
|
2461
|
+
logger.debug "Calling operation VirtualNetworkClient#get_remote_peering_connection." if logger
|
2462
|
+
|
2463
|
+
raise "Missing the required parameter 'remote_peering_connection_id' when calling get_remote_peering_connection." if remote_peering_connection_id.nil?
|
2464
|
+
raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id)
|
2465
|
+
|
2466
|
+
path = "/remotePeeringConnections/{remotePeeringConnectionId}".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s)
|
2467
|
+
|
2468
|
+
# Query Params
|
2469
|
+
query_params = {}
|
2470
|
+
|
2471
|
+
# Header Params
|
2472
|
+
header_params = {}
|
2473
|
+
header_params['accept'] = 'application/json'
|
2474
|
+
header_params['content-type'] = 'application/json'
|
2475
|
+
|
2476
|
+
post_body = nil
|
2477
|
+
|
2478
|
+
return @api_client.call_api(
|
2479
|
+
:GET,
|
2480
|
+
path,
|
2481
|
+
endpoint,
|
2482
|
+
:header_params => header_params,
|
2483
|
+
:query_params => query_params,
|
2484
|
+
:body => post_body,
|
2485
|
+
:return_type => 'OCI::Core::Models::RemotePeeringConnection')
|
2486
|
+
end
|
2487
|
+
|
2298
2488
|
# Gets the specified route table's information.
|
2299
2489
|
# @param [String] rt_id The OCID of the route table.
|
2300
2490
|
# @param [Hash] opts the optional parameters
|
@@ -2303,6 +2493,7 @@ module OCI
|
|
2303
2493
|
logger.debug "Calling operation VirtualNetworkClient#get_route_table." if logger
|
2304
2494
|
|
2305
2495
|
raise "Missing the required parameter 'rt_id' when calling get_route_table." if rt_id.nil?
|
2496
|
+
raise "Parameter value for 'rt_id' must not be blank" if OCI::Internal::Util::blank_string?(rt_id)
|
2306
2497
|
|
2307
2498
|
path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s)
|
2308
2499
|
|
@@ -2334,6 +2525,7 @@ module OCI
|
|
2334
2525
|
logger.debug "Calling operation VirtualNetworkClient#get_security_list." if logger
|
2335
2526
|
|
2336
2527
|
raise "Missing the required parameter 'security_list_id' when calling get_security_list." if security_list_id.nil?
|
2528
|
+
raise "Parameter value for 'security_list_id' must not be blank" if OCI::Internal::Util::blank_string?(security_list_id)
|
2337
2529
|
|
2338
2530
|
path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s)
|
2339
2531
|
|
@@ -2365,6 +2557,7 @@ module OCI
|
|
2365
2557
|
logger.debug "Calling operation VirtualNetworkClient#get_subnet." if logger
|
2366
2558
|
|
2367
2559
|
raise "Missing the required parameter 'subnet_id' when calling get_subnet." if subnet_id.nil?
|
2560
|
+
raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util::blank_string?(subnet_id)
|
2368
2561
|
|
2369
2562
|
path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s)
|
2370
2563
|
|
@@ -2396,6 +2589,7 @@ module OCI
|
|
2396
2589
|
logger.debug "Calling operation VirtualNetworkClient#get_vcn." if logger
|
2397
2590
|
|
2398
2591
|
raise "Missing the required parameter 'vcn_id' when calling get_vcn." if vcn_id.nil?
|
2592
|
+
raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util::blank_string?(vcn_id)
|
2399
2593
|
|
2400
2594
|
path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s)
|
2401
2595
|
|
@@ -2427,6 +2621,7 @@ module OCI
|
|
2427
2621
|
logger.debug "Calling operation VirtualNetworkClient#get_virtual_circuit." if logger
|
2428
2622
|
|
2429
2623
|
raise "Missing the required parameter 'virtual_circuit_id' when calling get_virtual_circuit." if virtual_circuit_id.nil?
|
2624
|
+
raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id)
|
2430
2625
|
|
2431
2626
|
path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
|
2432
2627
|
|
@@ -2462,6 +2657,7 @@ module OCI
|
|
2462
2657
|
logger.debug "Calling operation VirtualNetworkClient#get_vnic." if logger
|
2463
2658
|
|
2464
2659
|
raise "Missing the required parameter 'vnic_id' when calling get_vnic." if vnic_id.nil?
|
2660
|
+
raise "Parameter value for 'vnic_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_id)
|
2465
2661
|
|
2466
2662
|
path = "/vnics/{vnicId}".sub('{vnicId}', vnic_id.to_s)
|
2467
2663
|
|
@@ -2485,6 +2681,37 @@ module OCI
|
|
2485
2681
|
:return_type => 'OCI::Core::Models::Vnic')
|
2486
2682
|
end
|
2487
2683
|
|
2684
|
+
# Lists the regions that support remote VCN peering (which is peering across regions).
|
2685
|
+
# For more information, see [VCN Peering](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm).
|
2686
|
+
#
|
2687
|
+
# @param [Hash] opts the optional parameters
|
2688
|
+
# @return [Response] A Response object with data of type Array<OCI::Core::Models::PeerRegionForRemotePeering>
|
2689
|
+
def list_allowed_peer_regions_for_remote_peering(opts = {})
|
2690
|
+
logger.debug "Calling operation VirtualNetworkClient#list_allowed_peer_regions_for_remote_peering." if logger
|
2691
|
+
|
2692
|
+
|
2693
|
+
path = "/allowedPeerRegionsForRemotePeering"
|
2694
|
+
|
2695
|
+
# Query Params
|
2696
|
+
query_params = {}
|
2697
|
+
|
2698
|
+
# Header Params
|
2699
|
+
header_params = {}
|
2700
|
+
header_params['accept'] = 'application/json'
|
2701
|
+
header_params['content-type'] = 'application/json'
|
2702
|
+
|
2703
|
+
post_body = nil
|
2704
|
+
|
2705
|
+
return @api_client.call_api(
|
2706
|
+
:GET,
|
2707
|
+
path,
|
2708
|
+
endpoint,
|
2709
|
+
:header_params => header_params,
|
2710
|
+
:query_params => query_params,
|
2711
|
+
:body => post_body,
|
2712
|
+
:return_type => 'Array<OCI::Core::Models::PeerRegionForRemotePeering>')
|
2713
|
+
end
|
2714
|
+
|
2488
2715
|
# Lists the Customer-Premises Equipment objects (CPEs) in the specified compartment.
|
2489
2716
|
#
|
2490
2717
|
# @param [String] compartment_id The OCID of the compartment.
|
@@ -2996,6 +3223,7 @@ module OCI
|
|
2996
3223
|
logger.debug "Calling operation VirtualNetworkClient#list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if logger
|
2997
3224
|
|
2998
3225
|
raise "Missing the required parameter 'provider_service_id' when calling list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if provider_service_id.nil?
|
3226
|
+
raise "Parameter value for 'provider_service_id' must not be blank" if OCI::Internal::Util::blank_string?(provider_service_id)
|
2999
3227
|
|
3000
3228
|
path = "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes".sub('{providerServiceId}', provider_service_id.to_s)
|
3001
3229
|
|
@@ -3318,6 +3546,50 @@ module OCI
|
|
3318
3546
|
:return_type => 'Array<OCI::Core::Models::PublicIp>')
|
3319
3547
|
end
|
3320
3548
|
|
3549
|
+
# Lists the remote peering connections (RPCs) for the specified DRG and compartment
|
3550
|
+
# (the RPC's compartment).
|
3551
|
+
#
|
3552
|
+
# @param [String] compartment_id The OCID of the compartment.
|
3553
|
+
# @param [Hash] opts the optional parameters
|
3554
|
+
# @option opts [String] :drg_id The OCID of the DRG.
|
3555
|
+
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
3556
|
+
#
|
3557
|
+
# Example: `500`
|
3558
|
+
#
|
3559
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
3560
|
+
#
|
3561
|
+
# @return [Response] A Response object with data of type Array<OCI::Core::Models::RemotePeeringConnection>
|
3562
|
+
def list_remote_peering_connections(compartment_id, opts = {})
|
3563
|
+
logger.debug "Calling operation VirtualNetworkClient#list_remote_peering_connections." if logger
|
3564
|
+
|
3565
|
+
raise "Missing the required parameter 'compartment_id' when calling list_remote_peering_connections." if compartment_id.nil?
|
3566
|
+
|
3567
|
+
path = "/remotePeeringConnections"
|
3568
|
+
|
3569
|
+
# Query Params
|
3570
|
+
query_params = {}
|
3571
|
+
query_params[:'compartmentId'] = compartment_id
|
3572
|
+
query_params[:'drgId'] = opts[:'drg_id'] if opts[:'drg_id']
|
3573
|
+
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
3574
|
+
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
3575
|
+
|
3576
|
+
# Header Params
|
3577
|
+
header_params = {}
|
3578
|
+
header_params['accept'] = 'application/json'
|
3579
|
+
header_params['content-type'] = 'application/json'
|
3580
|
+
|
3581
|
+
post_body = nil
|
3582
|
+
|
3583
|
+
return @api_client.call_api(
|
3584
|
+
:GET,
|
3585
|
+
path,
|
3586
|
+
endpoint,
|
3587
|
+
:header_params => header_params,
|
3588
|
+
:query_params => query_params,
|
3589
|
+
:body => post_body,
|
3590
|
+
:return_type => 'Array<OCI::Core::Models::RemotePeeringConnection>')
|
3591
|
+
end
|
3592
|
+
|
3321
3593
|
# Lists the route tables in the specified VCN and specified compartment. The response
|
3322
3594
|
# includes the default route table that automatically comes with each VCN, plus any route tables
|
3323
3595
|
# you've created.
|
@@ -3687,6 +3959,7 @@ module OCI
|
|
3687
3959
|
if opts[:'verification_state'] && !OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.include?(opts[:'verification_state'])
|
3688
3960
|
raise 'Invalid value for "verification_state", must be one of the values in OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.'
|
3689
3961
|
end
|
3962
|
+
raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id)
|
3690
3963
|
|
3691
3964
|
path = "/virtualCircuits/{virtualCircuitId}/publicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
|
3692
3965
|
|
@@ -3802,6 +4075,7 @@ module OCI
|
|
3802
4075
|
|
3803
4076
|
raise "Missing the required parameter 'cpe_id' when calling update_cpe." if cpe_id.nil?
|
3804
4077
|
raise "Missing the required parameter 'update_cpe_details' when calling update_cpe." if update_cpe_details.nil?
|
4078
|
+
raise "Parameter value for 'cpe_id' must not be blank" if OCI::Internal::Util::blank_string?(cpe_id)
|
3805
4079
|
|
3806
4080
|
path = "/cpes/{cpeId}".sub('{cpeId}', cpe_id.to_s)
|
3807
4081
|
|
@@ -3840,6 +4114,7 @@ module OCI
|
|
3840
4114
|
|
3841
4115
|
raise "Missing the required parameter 'cross_connect_id' when calling update_cross_connect." if cross_connect_id.nil?
|
3842
4116
|
raise "Missing the required parameter 'update_cross_connect_details' when calling update_cross_connect." if update_cross_connect_details.nil?
|
4117
|
+
raise "Parameter value for 'cross_connect_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_id)
|
3843
4118
|
|
3844
4119
|
path = "/crossConnects/{crossConnectId}".sub('{crossConnectId}', cross_connect_id.to_s)
|
3845
4120
|
|
@@ -3880,6 +4155,7 @@ module OCI
|
|
3880
4155
|
|
3881
4156
|
raise "Missing the required parameter 'cross_connect_group_id' when calling update_cross_connect_group." if cross_connect_group_id.nil?
|
3882
4157
|
raise "Missing the required parameter 'update_cross_connect_group_details' when calling update_cross_connect_group." if update_cross_connect_group_details.nil?
|
4158
|
+
raise "Parameter value for 'cross_connect_group_id' must not be blank" if OCI::Internal::Util::blank_string?(cross_connect_group_id)
|
3883
4159
|
|
3884
4160
|
path = "/crossConnectGroups/{crossConnectGroupId}".sub('{crossConnectGroupId}', cross_connect_group_id.to_s)
|
3885
4161
|
|
@@ -3922,6 +4198,7 @@ module OCI
|
|
3922
4198
|
|
3923
4199
|
raise "Missing the required parameter 'dhcp_id' when calling update_dhcp_options." if dhcp_id.nil?
|
3924
4200
|
raise "Missing the required parameter 'update_dhcp_details' when calling update_dhcp_options." if update_dhcp_details.nil?
|
4201
|
+
raise "Parameter value for 'dhcp_id' must not be blank" if OCI::Internal::Util::blank_string?(dhcp_id)
|
3925
4202
|
|
3926
4203
|
path = "/dhcps/{dhcpId}".sub('{dhcpId}', dhcp_id.to_s)
|
3927
4204
|
|
@@ -3961,6 +4238,7 @@ module OCI
|
|
3961
4238
|
|
3962
4239
|
raise "Missing the required parameter 'drg_id' when calling update_drg." if drg_id.nil?
|
3963
4240
|
raise "Missing the required parameter 'update_drg_details' when calling update_drg." if update_drg_details.nil?
|
4241
|
+
raise "Parameter value for 'drg_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_id)
|
3964
4242
|
|
3965
4243
|
path = "/drgs/{drgId}".sub('{drgId}', drg_id.to_s)
|
3966
4244
|
|
@@ -4001,6 +4279,7 @@ module OCI
|
|
4001
4279
|
|
4002
4280
|
raise "Missing the required parameter 'drg_attachment_id' when calling update_drg_attachment." if drg_attachment_id.nil?
|
4003
4281
|
raise "Missing the required parameter 'update_drg_attachment_details' when calling update_drg_attachment." if update_drg_attachment_details.nil?
|
4282
|
+
raise "Parameter value for 'drg_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(drg_attachment_id)
|
4004
4283
|
|
4005
4284
|
path = "/drgAttachments/{drgAttachmentId}".sub('{drgAttachmentId}', drg_attachment_id.to_s)
|
4006
4285
|
|
@@ -4044,6 +4323,7 @@ module OCI
|
|
4044
4323
|
|
4045
4324
|
raise "Missing the required parameter 'ig_id' when calling update_internet_gateway." if ig_id.nil?
|
4046
4325
|
raise "Missing the required parameter 'update_internet_gateway_details' when calling update_internet_gateway." if update_internet_gateway_details.nil?
|
4326
|
+
raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util::blank_string?(ig_id)
|
4047
4327
|
|
4048
4328
|
path = "/internetGateways/{igId}".sub('{igId}', ig_id.to_s)
|
4049
4329
|
|
@@ -4084,6 +4364,7 @@ module OCI
|
|
4084
4364
|
|
4085
4365
|
raise "Missing the required parameter 'ipsc_id' when calling update_ip_sec_connection." if ipsc_id.nil?
|
4086
4366
|
raise "Missing the required parameter 'update_ip_sec_connection_details' when calling update_ip_sec_connection." if update_ip_sec_connection_details.nil?
|
4367
|
+
raise "Parameter value for 'ipsc_id' must not be blank" if OCI::Internal::Util::blank_string?(ipsc_id)
|
4087
4368
|
|
4088
4369
|
path = "/ipsecConnections/{ipscId}".sub('{ipscId}', ipsc_id.to_s)
|
4089
4370
|
|
@@ -4123,6 +4404,7 @@ module OCI
|
|
4123
4404
|
|
4124
4405
|
raise "Missing the required parameter 'local_peering_gateway_id' when calling update_local_peering_gateway." if local_peering_gateway_id.nil?
|
4125
4406
|
raise "Missing the required parameter 'update_local_peering_gateway_details' when calling update_local_peering_gateway." if update_local_peering_gateway_details.nil?
|
4407
|
+
raise "Parameter value for 'local_peering_gateway_id' must not be blank" if OCI::Internal::Util::blank_string?(local_peering_gateway_id)
|
4126
4408
|
|
4127
4409
|
path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
|
4128
4410
|
|
@@ -4171,6 +4453,7 @@ module OCI
|
|
4171
4453
|
|
4172
4454
|
raise "Missing the required parameter 'private_ip_id' when calling update_private_ip." if private_ip_id.nil?
|
4173
4455
|
raise "Missing the required parameter 'update_private_ip_details' when calling update_private_ip." if update_private_ip_details.nil?
|
4456
|
+
raise "Parameter value for 'private_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(private_ip_id)
|
4174
4457
|
|
4175
4458
|
path = "/privateIps/{privateIpId}".sub('{privateIpId}', private_ip_id.to_s)
|
4176
4459
|
|
@@ -4248,6 +4531,7 @@ module OCI
|
|
4248
4531
|
|
4249
4532
|
raise "Missing the required parameter 'public_ip_id' when calling update_public_ip." if public_ip_id.nil?
|
4250
4533
|
raise "Missing the required parameter 'update_public_ip_details' when calling update_public_ip." if update_public_ip_details.nil?
|
4534
|
+
raise "Parameter value for 'public_ip_id' must not be blank" if OCI::Internal::Util::blank_string?(public_ip_id)
|
4251
4535
|
|
4252
4536
|
path = "/publicIps/{publicIpId}".sub('{publicIpId}', public_ip_id.to_s)
|
4253
4537
|
|
@@ -4272,6 +4556,46 @@ module OCI
|
|
4272
4556
|
:return_type => 'OCI::Core::Models::PublicIp')
|
4273
4557
|
end
|
4274
4558
|
|
4559
|
+
# Updates the specified remote peering connection (RPC).
|
4560
|
+
#
|
4561
|
+
# @param [String] remote_peering_connection_id The OCID of the remote peering connection (RPC).
|
4562
|
+
# @param [UpdateRemotePeeringConnectionDetails] update_remote_peering_connection_details Request to the update the peering connection to remote region
|
4563
|
+
# @param [Hash] opts the optional parameters
|
4564
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
4565
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
4566
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
4567
|
+
#
|
4568
|
+
# @return [Response] A Response object with data of type OCI::Core::Models::RemotePeeringConnection
|
4569
|
+
def update_remote_peering_connection(remote_peering_connection_id, update_remote_peering_connection_details, opts = {})
|
4570
|
+
logger.debug "Calling operation VirtualNetworkClient#update_remote_peering_connection." if logger
|
4571
|
+
|
4572
|
+
raise "Missing the required parameter 'remote_peering_connection_id' when calling update_remote_peering_connection." if remote_peering_connection_id.nil?
|
4573
|
+
raise "Missing the required parameter 'update_remote_peering_connection_details' when calling update_remote_peering_connection." if update_remote_peering_connection_details.nil?
|
4574
|
+
raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(remote_peering_connection_id)
|
4575
|
+
|
4576
|
+
path = "/remotePeeringConnections/{remotePeeringConnectionId}".sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s)
|
4577
|
+
|
4578
|
+
# Query Params
|
4579
|
+
query_params = {}
|
4580
|
+
|
4581
|
+
# Header Params
|
4582
|
+
header_params = {}
|
4583
|
+
header_params['accept'] = 'application/json'
|
4584
|
+
header_params['content-type'] = 'application/json'
|
4585
|
+
header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
|
4586
|
+
|
4587
|
+
post_body = @api_client.object_to_http_body(update_remote_peering_connection_details)
|
4588
|
+
|
4589
|
+
return @api_client.call_api(
|
4590
|
+
:PUT,
|
4591
|
+
path,
|
4592
|
+
endpoint,
|
4593
|
+
:header_params => header_params,
|
4594
|
+
:query_params => query_params,
|
4595
|
+
:body => post_body,
|
4596
|
+
:return_type => 'OCI::Core::Models::RemotePeeringConnection')
|
4597
|
+
end
|
4598
|
+
|
4275
4599
|
# Updates the specified route table's display name or route rules.
|
4276
4600
|
# Avoid entering confidential information.
|
4277
4601
|
#
|
@@ -4290,6 +4614,7 @@ module OCI
|
|
4290
4614
|
|
4291
4615
|
raise "Missing the required parameter 'rt_id' when calling update_route_table." if rt_id.nil?
|
4292
4616
|
raise "Missing the required parameter 'update_route_table_details' when calling update_route_table." if update_route_table_details.nil?
|
4617
|
+
raise "Parameter value for 'rt_id' must not be blank" if OCI::Internal::Util::blank_string?(rt_id)
|
4293
4618
|
|
4294
4619
|
path = "/routeTables/{rtId}".sub('{rtId}', rt_id.to_s)
|
4295
4620
|
|
@@ -4333,6 +4658,7 @@ module OCI
|
|
4333
4658
|
|
4334
4659
|
raise "Missing the required parameter 'security_list_id' when calling update_security_list." if security_list_id.nil?
|
4335
4660
|
raise "Missing the required parameter 'update_security_list_details' when calling update_security_list." if update_security_list_details.nil?
|
4661
|
+
raise "Parameter value for 'security_list_id' must not be blank" if OCI::Internal::Util::blank_string?(security_list_id)
|
4336
4662
|
|
4337
4663
|
path = "/securityLists/{securityListId}".sub('{securityListId}', security_list_id.to_s)
|
4338
4664
|
|
@@ -4372,6 +4698,7 @@ module OCI
|
|
4372
4698
|
|
4373
4699
|
raise "Missing the required parameter 'subnet_id' when calling update_subnet." if subnet_id.nil?
|
4374
4700
|
raise "Missing the required parameter 'update_subnet_details' when calling update_subnet." if update_subnet_details.nil?
|
4701
|
+
raise "Parameter value for 'subnet_id' must not be blank" if OCI::Internal::Util::blank_string?(subnet_id)
|
4375
4702
|
|
4376
4703
|
path = "/subnets/{subnetId}".sub('{subnetId}', subnet_id.to_s)
|
4377
4704
|
|
@@ -4412,6 +4739,7 @@ module OCI
|
|
4412
4739
|
|
4413
4740
|
raise "Missing the required parameter 'vcn_id' when calling update_vcn." if vcn_id.nil?
|
4414
4741
|
raise "Missing the required parameter 'update_vcn_details' when calling update_vcn." if update_vcn_details.nil?
|
4742
|
+
raise "Parameter value for 'vcn_id' must not be blank" if OCI::Internal::Util::blank_string?(vcn_id)
|
4415
4743
|
|
4416
4744
|
path = "/vcns/{vcnId}".sub('{vcnId}', vcn_id.to_s)
|
4417
4745
|
|
@@ -4474,6 +4802,7 @@ module OCI
|
|
4474
4802
|
|
4475
4803
|
raise "Missing the required parameter 'virtual_circuit_id' when calling update_virtual_circuit." if virtual_circuit_id.nil?
|
4476
4804
|
raise "Missing the required parameter 'update_virtual_circuit_details' when calling update_virtual_circuit." if update_virtual_circuit_details.nil?
|
4805
|
+
raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util::blank_string?(virtual_circuit_id)
|
4477
4806
|
|
4478
4807
|
path = "/virtualCircuits/{virtualCircuitId}".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
|
4479
4808
|
|
@@ -4513,6 +4842,7 @@ module OCI
|
|
4513
4842
|
|
4514
4843
|
raise "Missing the required parameter 'vnic_id' when calling update_vnic." if vnic_id.nil?
|
4515
4844
|
raise "Missing the required parameter 'update_vnic_details' when calling update_vnic." if update_vnic_details.nil?
|
4845
|
+
raise "Parameter value for 'vnic_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_id)
|
4516
4846
|
|
4517
4847
|
path = "/vnics/{vnicId}".sub('{vnicId}', vnic_id.to_s)
|
4518
4848
|
|