oci 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,6 +58,78 @@ module OCI
58
58
  end
59
59
 
60
60
 
61
+ # Adds one or more customer public IP prefixes to the specified public virtual circuit.
62
+ # Use this operation (and not {#update_virtual_circuit update_virtual_circuit})
63
+ # to add prefixes to the virtual circuit. Oracle must verify the customer's ownership
64
+ # of each prefix before traffic for that prefix will flow across the virtual circuit.
65
+ #
66
+ # @param [String] virtual_circuit_id The OCID of the virtual circuit.
67
+ # @param [BulkAddVirtualCircuitPublicPrefixesDetails] bulk_add_virtual_circuit_public_prefixes_details Request with publix prefixes to be added to the virtual circuit
68
+ # @param [Hash] opts the optional parameters
69
+ # @return [Response] A Response object with data of type nil
70
+ def bulk_add_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_add_virtual_circuit_public_prefixes_details, opts = {})
71
+ logger.debug "Calling operation VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes." if logger
72
+
73
+ fail "Missing the required parameter 'virtual_circuit_id' when calling bulk_add_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
74
+ fail "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?
75
+
76
+ path = "/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
77
+
78
+ # Query Params
79
+ query_params = {}
80
+
81
+ # Header Params
82
+ header_params = {}
83
+ header_params['accept'] = 'application/json'
84
+ header_params['content-type'] = 'application/json'
85
+
86
+ post_body = @api_client.object_to_http_body(bulk_add_virtual_circuit_public_prefixes_details)
87
+
88
+ return @api_client.call_api(
89
+ :POST,
90
+ path,
91
+ endpoint,
92
+ :header_params => header_params,
93
+ :query_params => query_params,
94
+ :body => post_body)
95
+ end
96
+
97
+ # Removes one or more customer public IP prefixes from the specified public virtual circuit.
98
+ # Use this operation (and not {#update_virtual_circuit update_virtual_circuit})
99
+ # to remove prefixes from the virtual circuit. When the virtual circuit's state switches
100
+ # back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection.
101
+ #
102
+ # @param [String] virtual_circuit_id The OCID of the virtual circuit.
103
+ # @param [BulkDeleteVirtualCircuitPublicPrefixesDetails] bulk_delete_virtual_circuit_public_prefixes_details Request with publix prefixes to be deleted from the virtual circuit
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Response] A Response object with data of type nil
106
+ def bulk_delete_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_delete_virtual_circuit_public_prefixes_details, opts = {})
107
+ logger.debug "Calling operation VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes." if logger
108
+
109
+ fail "Missing the required parameter 'virtual_circuit_id' when calling bulk_delete_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
110
+ fail "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?
111
+
112
+ path = "/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
113
+
114
+ # Query Params
115
+ query_params = {}
116
+
117
+ # Header Params
118
+ header_params = {}
119
+ header_params['accept'] = 'application/json'
120
+ header_params['content-type'] = 'application/json'
121
+
122
+ post_body = @api_client.object_to_http_body(bulk_delete_virtual_circuit_public_prefixes_details)
123
+
124
+ return @api_client.call_api(
125
+ :POST,
126
+ path,
127
+ endpoint,
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :body => post_body)
131
+ end
132
+
61
133
  # Connects this local peering gateway (LPG) to another one in the same region.
62
134
  #
63
135
  # This operation must be called by the VCN administrator who is designated as
@@ -1756,6 +1828,39 @@ module OCI
1756
1828
  :return_type => 'OCI::Core::Models::DrgAttachment')
1757
1829
  end
1758
1830
 
1831
+ # Gets the specified provider service.
1832
+ # For more information, see [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
1833
+ #
1834
+ # @param [String] provider_service_id The OCID of the provider service.
1835
+ # @param [Hash] opts the optional parameters
1836
+ # @return [Response] A Response object with data of type OCI::Core::Models::FastConnectProviderService
1837
+ def get_fast_connect_provider_service(provider_service_id, opts = {})
1838
+ logger.debug "Calling operation VirtualNetworkClient#get_fast_connect_provider_service." if logger
1839
+
1840
+ fail "Missing the required parameter 'provider_service_id' when calling get_fast_connect_provider_service." if provider_service_id.nil?
1841
+
1842
+ path = "/fastConnectProviderServices/{providerServiceId}".sub('{providerServiceId}', provider_service_id.to_s)
1843
+
1844
+ # Query Params
1845
+ query_params = {}
1846
+
1847
+ # Header Params
1848
+ header_params = {}
1849
+ header_params['accept'] = 'application/json'
1850
+ header_params['content-type'] = 'application/json'
1851
+
1852
+ post_body = nil
1853
+
1854
+ return @api_client.call_api(
1855
+ :GET,
1856
+ path,
1857
+ endpoint,
1858
+ :header_params => header_params,
1859
+ :query_params => query_params,
1860
+ :body => post_body,
1861
+ :return_type => 'OCI::Core::Models::FastConnectProviderService')
1862
+ end
1863
+
1759
1864
  # Gets the specified Internet Gateway's information.
1760
1865
  # @param [String] ig_id The OCID of the Internet Gateway.
1761
1866
  # @param [Hash] opts the optional parameters
@@ -2635,6 +2740,49 @@ module OCI
2635
2740
  :return_type => 'Array<OCI::Core::Models::FastConnectProviderService>')
2636
2741
  end
2637
2742
 
2743
+ # Gets the list of available virtual circuit bandwidth levels for a provider.
2744
+ # You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit.
2745
+ #
2746
+ # For more information about virtual circuits, see [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
2747
+ #
2748
+ # @param [String] provider_service_id The OCID of the provider service.
2749
+ # @param [Hash] opts the optional parameters
2750
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
2751
+ #
2752
+ # Example: `500`
2753
+ #
2754
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
2755
+ #
2756
+ # @return [Response] A Response object with data of type Array<OCI::Core::Models::VirtualCircuitBandwidthShape>
2757
+ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(provider_service_id, opts = {})
2758
+ logger.debug "Calling operation VirtualNetworkClient#list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if logger
2759
+
2760
+ fail "Missing the required parameter 'provider_service_id' when calling list_fast_connect_provider_virtual_circuit_bandwidth_shapes." if provider_service_id.nil?
2761
+
2762
+ path = "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes".sub('{providerServiceId}', provider_service_id.to_s)
2763
+
2764
+ # Query Params
2765
+ query_params = {}
2766
+ query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
2767
+ query_params[:'page'] = opts[:'page'] if opts[:'page']
2768
+
2769
+ # Header Params
2770
+ header_params = {}
2771
+ header_params['accept'] = 'application/json'
2772
+ header_params['content-type'] = 'application/json'
2773
+
2774
+ post_body = nil
2775
+
2776
+ return @api_client.call_api(
2777
+ :GET,
2778
+ path,
2779
+ endpoint,
2780
+ :header_params => header_params,
2781
+ :query_params => query_params,
2782
+ :body => post_body,
2783
+ :return_type => 'Array<OCI::Core::Models::VirtualCircuitBandwidthShape>')
2784
+ end
2785
+
2638
2786
  # Lists the Internet Gateways in the specified VCN and the specified compartment.
2639
2787
  #
2640
2788
  # @param [String] compartment_id The OCID of the compartment.
@@ -3174,10 +3322,7 @@ module OCI
3174
3322
  :return_type => 'Array<OCI::Core::Models::Vcn>')
3175
3323
  end
3176
3324
 
3177
- # Lists the available bandwidth levels for virtual circuits. You need this
3178
- # information so you can specify your desired bandwidth level (that is, shape)
3179
- # when you create a virtual circuit.
3180
- # For the compartment ID, provide the OCID of your tenancy (the root compartment).
3325
+ # The deprecated operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID of your tenancy (the root compartment).
3181
3326
  #
3182
3327
  # @param [String] compartment_id The OCID of the compartment.
3183
3328
  # @param [Hash] opts the optional parameters
@@ -3218,6 +3363,47 @@ module OCI
3218
3363
  :return_type => 'Array<OCI::Core::Models::VirtualCircuitBandwidthShape>')
3219
3364
  end
3220
3365
 
3366
+ # Lists the public IP prefixes and their details for the specified
3367
+ # public virtual circuit.
3368
+ #
3369
+ # @param [String] virtual_circuit_id The OCID of the virtual circuit.
3370
+ # @param [Hash] opts the optional parameters
3371
+ # @option opts [String] :verification_state A filter to only return resources that match the given verification state.
3372
+ # The state value is case-insensitive.
3373
+ #
3374
+ # @return [Response] A Response object with data of type Array<OCI::Core::Models::VirtualCircuitPublicPrefix>
3375
+ def list_virtual_circuit_public_prefixes(virtual_circuit_id, opts = {})
3376
+ logger.debug "Calling operation VirtualNetworkClient#list_virtual_circuit_public_prefixes." if logger
3377
+
3378
+ fail "Missing the required parameter 'virtual_circuit_id' when calling list_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
3379
+
3380
+ if opts[:'verification_state'] && !OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.include?(opts[:'verification_state'])
3381
+ fail 'Invalid value for "verification_state", must be one of the values in OCI::Core::Models::VirtualCircuitPublicPrefix::VERIFICATION_STATE_ENUM.'
3382
+ end
3383
+
3384
+ path = "/virtualCircuits/{virtualCircuitId}/publicPrefixes".sub('{virtualCircuitId}', virtual_circuit_id.to_s)
3385
+
3386
+ # Query Params
3387
+ query_params = {}
3388
+ query_params[:'verificationState'] = opts[:'verification_state'] if opts[:'verification_state']
3389
+
3390
+ # Header Params
3391
+ header_params = {}
3392
+ header_params['accept'] = 'application/json'
3393
+ header_params['content-type'] = 'application/json'
3394
+
3395
+ post_body = nil
3396
+
3397
+ return @api_client.call_api(
3398
+ :GET,
3399
+ path,
3400
+ endpoint,
3401
+ :header_params => header_params,
3402
+ :query_params => query_params,
3403
+ :body => post_body,
3404
+ :return_type => 'Array<OCI::Core::Models::VirtualCircuitPublicPrefix>')
3405
+ end
3406
+
3221
3407
  # Lists the virtual circuits in the specified compartment.
3222
3408
  #
3223
3409
  # @param [String] compartment_id The OCID of the compartment.
@@ -3883,6 +4069,14 @@ module OCI
3883
4069
  # about the various states and how to test connectivity, see
3884
4070
  # [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
3885
4071
  #
4072
+ # To change the list of public IP prefixes for a public virtual circuit,
4073
+ # use {#bulk_add_virtual_circuit_public_prefixes bulk_add_virtual_circuit_public_prefixes}
4074
+ # and
4075
+ # {#bulk_delete_virtual_circuit_public_prefixes bulk_delete_virtual_circuit_public_prefixes}.
4076
+ # Updating the list of prefixes does NOT cause the BGP session to go down. However,
4077
+ # Oracle must verify the customer's ownership of each added prefix before
4078
+ # traffic for that prefix will flow across the virtual circuit.
4079
+ #
3886
4080
  # @param [String] virtual_circuit_id The OCID of the virtual circuit.
3887
4081
  # @param [UpdateVirtualCircuitDetails] update_virtual_circuit_details Update VirtualCircuit fields.
3888
4082
  # @param [Hash] opts the optional parameters
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  module OCI
4
- VERSION = '2.0.3'.freeze
4
+ VERSION = '2.0.4'.freeze
5
5
  end
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.3
4
+ version: 2.0.4
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-27 00:00:00.000000000 Z
11
+ date: 2017-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -150,6 +150,8 @@ files:
150
150
  - "./lib/oci/core/models/attach_volume_details.rb"
151
151
  - "./lib/oci/core/models/boot_volume.rb"
152
152
  - "./lib/oci/core/models/boot_volume_attachment.rb"
153
+ - "./lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb"
154
+ - "./lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb"
153
155
  - "./lib/oci/core/models/capture_console_history_details.rb"
154
156
  - "./lib/oci/core/models/connect_local_peering_gateways_details.rb"
155
157
  - "./lib/oci/core/models/console_history.rb"
@@ -171,6 +173,7 @@ files:
171
173
  - "./lib/oci/core/models/create_subnet_details.rb"
172
174
  - "./lib/oci/core/models/create_vcn_details.rb"
173
175
  - "./lib/oci/core/models/create_virtual_circuit_details.rb"
176
+ - "./lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb"
174
177
  - "./lib/oci/core/models/create_vnic_details.rb"
175
178
  - "./lib/oci/core/models/create_volume_backup_details.rb"
176
179
  - "./lib/oci/core/models/create_volume_details.rb"
@@ -180,6 +183,7 @@ files:
180
183
  - "./lib/oci/core/models/cross_connect_mapping.rb"
181
184
  - "./lib/oci/core/models/cross_connect_port_speed_shape.rb"
182
185
  - "./lib/oci/core/models/cross_connect_status.rb"
186
+ - "./lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb"
183
187
  - "./lib/oci/core/models/dhcp_dns_option.rb"
184
188
  - "./lib/oci/core/models/dhcp_option.rb"
185
189
  - "./lib/oci/core/models/dhcp_options.rb"
@@ -247,6 +251,7 @@ files:
247
251
  - "./lib/oci/core/models/vcn.rb"
248
252
  - "./lib/oci/core/models/virtual_circuit.rb"
249
253
  - "./lib/oci/core/models/virtual_circuit_bandwidth_shape.rb"
254
+ - "./lib/oci/core/models/virtual_circuit_public_prefix.rb"
250
255
  - "./lib/oci/core/models/vnic.rb"
251
256
  - "./lib/oci/core/models/vnic_attachment.rb"
252
257
  - "./lib/oci/core/models/volume.rb"