Class: OCI::DataConnectivity::DataConnectivityManagementClient

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/data_connectivity/data_connectivity_management_client.rb

Overview

Use the DCMS APIs to perform Metadata/Data operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DataConnectivityManagementClient

Creates a new DataConnectivityManagementClient. Notes:

If a config is not specified, then the global OCI.config will be used.

This client is not thread-safe

Either a region or an endpoint must be specified.  If an endpoint is specified, it will be used instead of the
  region. A region may be specified in the config or via or the region parameter. If specified in both, then the
  region parameter will be used.

Parameters:

  • config (Config) (defaults to: nil)

    A Config object.

  • region (String) (defaults to: nil)

    A region used to determine the service endpoint. This will usually correspond to a value in Regions::REGION_ENUM, but may be an arbitrary string.

  • endpoint (String) (defaults to: nil)

    The fully qualified endpoint URL

  • signer (OCI::BaseSigner) (defaults to: nil)

    A signer implementation which can be used by this client. If this is not provided then a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication, so that the instance principals signer can be provided to the client

  • proxy_settings (OCI::ApiClientProxySettings) (defaults to: nil)

    If your environment requires you to use a proxy server for outgoing HTTP requests the details for the proxy can be provided in this parameter

  • retry_config (OCI::Retry::RetryConfig) (defaults to: nil)

    The retry configuration for this service client. This represents the default retry configuration to apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation will not perform any retries



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 53

def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
  # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
  # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
  # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
  # pass it to this constructor.
  #
  # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
  # so try and load the config from the default file.
  config = OCI::Config.validate_and_build_config_with_signer(config, signer)

  signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?

  @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
  @retry_config = retry_config

  if endpoint
    @endpoint = endpoint + '/20210217'
  else
    region ||= config.region
    region ||= signer.region if signer.respond_to?(:region)
    self.region = region
  end
  logger.info "DataConnectivityManagementClient endpoint set to '#{@endpoint}'." if logger
end

Instance Attribute Details

#api_clientOCI::ApiClient (readonly)

Client used to make HTTP requests.

Returns:



13
14
15
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 13

def api_client
  @api_client
end

#endpointString (readonly)

Fully qualified endpoint URL

Returns:

  • (String)


17
18
19
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 17

def endpoint
  @endpoint
end

#regionString

The region, which will usually correspond to a value in Regions::REGION_ENUM.

Returns:

  • (String)


27
28
29
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 27

def region
  @region
end

#retry_configOCI::Retry::RetryConfig (readonly)

The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation will not perform any retries



23
24
25
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 23

def retry_config
  @retry_config
end

Instance Method Details

#change_endpoint_compartment(endpoint_id, change_endpoint_compartment_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/change_endpoint_compartment.rb.html) to see an example of how to use change_endpoint_compartment API.

The Endpoint will be moved to the desired compartment.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :registry_id (String)

    DCMS registry id

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

Returns:

  • (Response)

    A Response object with data of type nil



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 121

def change_endpoint_compartment(endpoint_id, change_endpoint_compartment_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#change_endpoint_compartment.' if logger

  raise "Missing the required parameter 'endpoint_id' when calling change_endpoint_compartment." if endpoint_id.nil?
  raise "Missing the required parameter 'change_endpoint_compartment_details' when calling change_endpoint_compartment." if change_endpoint_compartment_details.nil?
  raise "Parameter value for 'endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(endpoint_id)

  path = '/endpoints/{endpointId}/actions/changeCompartment'.sub('{endpointId}', endpoint_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:registryId] = opts[:registry_id] if opts[:registry_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(change_endpoint_compartment_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#change_endpoint_compartment') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#change_registry_compartment(registry_id, change_registry_compartment_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/change_registry_compartment.rb.html) to see an example of how to use change_registry_compartment API.

The registry will be moved to the desired compartment.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

Returns:

  • (Response)

    A Response object with data of type nil



190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 190

def change_registry_compartment(registry_id, change_registry_compartment_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#change_registry_compartment.' if logger

  raise "Missing the required parameter 'registry_id' when calling change_registry_compartment." if registry_id.nil?
  raise "Missing the required parameter 'change_registry_compartment_details' when calling change_registry_compartment." if change_registry_compartment_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/actions/changeCompartment'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(change_registry_compartment_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#change_registry_compartment') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_attach_data_asset(registry_id, endpoint_id, create_attach_data_asset_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_attach_data_asset.rb.html) to see an example of how to use create_attach_data_asset API.

Attaches list of DataAssets to the given endpoint

Parameters:

  • registry_id (String)

    The registry Ocid.

  • endpoint_id (String)

    DCMS Endpoint id

  • create_attach_data_asset_details (OCI::DataConnectivity::Models::CreateAttachDataAssetDetails)

    Request body parameters to attach data asset to an private endpoint

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 258

def create_attach_data_asset(registry_id, endpoint_id, create_attach_data_asset_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_attach_data_asset.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_attach_data_asset." if registry_id.nil?
  raise "Missing the required parameter 'endpoint_id' when calling create_attach_data_asset." if endpoint_id.nil?
  raise "Missing the required parameter 'create_attach_data_asset_details' when calling create_attach_data_asset." if create_attach_data_asset_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(endpoint_id)

  path = '/registries/{registryId}/endpoints/{endpointId}/actions/attachDataAssets'.sub('{registryId}', registry_id.to_s).sub('{endpointId}', endpoint_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_attach_data_asset_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_attach_data_asset') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::AttachDataAssetInfo'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_connection(registry_id, create_connection_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_connection.rb.html) to see an example of how to use create_connection API.

Creates a connection under an existing data asset.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

Returns:



324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 324

def create_connection(registry_id, create_connection_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_connection.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_connection." if registry_id.nil?
  raise "Missing the required parameter 'create_connection_details' when calling create_connection." if create_connection_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/connections'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_connection_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_connection') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Connection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_connection_validation(registry_id, create_connection_validation_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_connection_validation.rb.html) to see an example of how to use create_connection_validation API.

Creates a connection validation.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 388

def create_connection_validation(registry_id, create_connection_validation_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_connection_validation.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_connection_validation." if registry_id.nil?
  raise "Missing the required parameter 'create_connection_validation_details' when calling create_connection_validation." if create_connection_validation_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/connectionValidations'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_connection_validation_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_connection_validation') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ConnectionValidation'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_connectivity_validation(registry_id, create_connectivity_validation_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_connectivity_validation.rb.html) to see an example of how to use create_connectivity_validation API.

This endpoint is used to trigger validation of dataAsset, connection, schema, entity, dataOperationConfig

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 453

def create_connectivity_validation(registry_id, create_connectivity_validation_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_connectivity_validation.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_connectivity_validation." if registry_id.nil?
  raise "Missing the required parameter 'create_connectivity_validation_details' when calling create_connectivity_validation." if create_connectivity_validation_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/actions/connectivityValidation'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_connectivity_validation_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_connectivity_validation') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ConnectivityValidation'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_data_asset(registry_id, create_data_asset_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_data_asset.rb.html) to see an example of how to use create_data_asset API.

Creates a data asset with default connection.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

Returns:



517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 517

def create_data_asset(registry_id, create_data_asset_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_data_asset.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_data_asset." if registry_id.nil?
  raise "Missing the required parameter 'create_data_asset_details' when calling create_data_asset." if create_data_asset_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/dataAssets'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_data_asset_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_data_asset') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataAsset'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_data_preview(registry_id, create_data_preview_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_data_preview.rb.html) to see an example of how to use create_data_preview API.

Provide data preview on live schema

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 585

def create_data_preview(registry_id, create_data_preview_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_data_preview.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_data_preview." if registry_id.nil?
  raise "Missing the required parameter 'create_data_preview_details' when calling create_data_preview." if create_data_preview_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/actions/dataPreview'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_data_preview_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_data_preview') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataPreview'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_data_profile(registry_id, create_data_profile_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_data_profile.rb.html) to see an example of how to use create_data_profile API.

Execute data profiling on live schema

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 655

def create_data_profile(registry_id, create_data_profile_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_data_profile.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_data_profile." if registry_id.nil?
  raise "Missing the required parameter 'create_data_profile_details' when calling create_data_profile." if create_data_profile_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/actions/dataProfile'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_data_profile_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_data_profile') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataProfile'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_de_reference_artifact(registry_id, dcms_artifact_id, create_de_reference_artifact_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_de_reference_artifact.rb.html) to see an example of how to use create_de_reference_artifact API.

DeRereferenced a dcms artifact.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • dcms_artifact_id (String)

    The ID of a dcms artifact (DataAsset or Endpoint).

  • create_de_reference_artifact_details (OCI::DataConnectivity::Models::CreateDeReferenceArtifactDetails)

    The information needed to delete a dcms artifact reference.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 725

def create_de_reference_artifact(registry_id, dcms_artifact_id, create_de_reference_artifact_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_de_reference_artifact.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_de_reference_artifact." if registry_id.nil?
  raise "Missing the required parameter 'dcms_artifact_id' when calling create_de_reference_artifact." if dcms_artifact_id.nil?
  raise "Missing the required parameter 'create_de_reference_artifact_details' when calling create_de_reference_artifact." if create_de_reference_artifact_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'dcms_artifact_id' must not be blank" if OCI::Internal::Util.blank_string?(dcms_artifact_id)

  path = '/registries/{registryId}/dcmsArtifacts/{dcmsArtifactId}/actions/deReferenceArtifact'.sub('{registryId}', registry_id.to_s).sub('{dcmsArtifactId}', dcms_artifact_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_de_reference_artifact_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_de_reference_artifact') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DeReferenceInfo'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_detach_data_asset(registry_id, endpoint_id, create_detach_data_asset_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_detach_data_asset.rb.html) to see an example of how to use create_detach_data_asset API.

Detaches list of DataAssets to the given endpoint

Parameters:

  • registry_id (String)

    The registry Ocid.

  • endpoint_id (String)

    DCMS Endpoint id

  • create_detach_data_asset_details (OCI::DataConnectivity::Models::CreateDetachDataAssetDetails)

    Request body parameters to detach data asset to an private endpoint

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 796

def create_detach_data_asset(registry_id, endpoint_id, create_detach_data_asset_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_detach_data_asset.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_detach_data_asset." if registry_id.nil?
  raise "Missing the required parameter 'endpoint_id' when calling create_detach_data_asset." if endpoint_id.nil?
  raise "Missing the required parameter 'create_detach_data_asset_details' when calling create_detach_data_asset." if create_detach_data_asset_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(endpoint_id)

  path = '/registries/{registryId}/endpoints/{endpointId}/actions/detachDataAssets'.sub('{registryId}', registry_id.to_s).sub('{endpointId}', endpoint_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_detach_data_asset_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_detach_data_asset') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DetachDataAssetInfo'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_endpoint(create_endpoint_details, opts = {}) ⇒ Response

Note:

Creates a new Data Connectivity Management Endpoint ready for performing data Connectivity.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :registry_id (String)

    DCMS registry id

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type nil



863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 863

def create_endpoint(create_endpoint_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_endpoint.' if logger

  raise "Missing the required parameter 'create_endpoint_details' when calling create_endpoint." if create_endpoint_details.nil?

  path = '/endpoints'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:registryId] = opts[:registry_id] if opts[:registry_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_endpoint_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_endpoint') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_entity_shape(registry_id, connection_key, schema_resource_name, create_entity_shape_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_entity_shape.rb.html) to see an example of how to use create_entity_shape API.

Creates the data entity shape using the shape from the data asset.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • create_entity_shape_details (OCI::DataConnectivity::Models::CreateEntityShapeDetails)

    The details needed to create the data entity shape.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :authorization_mode (String)

    Authorization mode for communicating with another OCI service relevant for the API. (default to UNDEFINED) Allowed values are: OBO, USER_PRINCIPAL, RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, UNDEFINED

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 933

def create_entity_shape(registry_id, connection_key, schema_resource_name, create_entity_shape_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_entity_shape.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_entity_shape." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling create_entity_shape." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling create_entity_shape." if schema_resource_name.nil?
  raise "Missing the required parameter 'create_entity_shape_details' when calling create_entity_shape." if create_entity_shape_details.nil?

  if opts[:authorization_mode] && !%w[OBO USER_PRINCIPAL RESOURCE_PRINCIPAL INSTANCE_PRINCIPAL UNDEFINED].include?(opts[:authorization_mode])
    raise 'Invalid value for "authorization_mode", must be one of OBO, USER_PRINCIPAL, RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, UNDEFINED.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}/actions/entityShapes'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:authorizationMode] = opts[:authorization_mode] if opts[:authorization_mode]
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_entity_shape_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_entity_shape') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::EntityShape'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_execute_operation_job(registry_id, connection_key, schema_resource_name, create_execute_operation_job_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_execute_operation_job.rb.html) to see an example of how to use create_execute_operation_job API.

Call the operation to execute

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • create_execute_operation_job_details (OCI::DataConnectivity::Models::CreateExecuteOperationJobDetails)

    Request body parameter for execute operation job input.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

Returns:



1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1010

def create_execute_operation_job(registry_id, connection_key, schema_resource_name, create_execute_operation_job_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_execute_operation_job.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_execute_operation_job." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling create_execute_operation_job." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling create_execute_operation_job." if schema_resource_name.nil?
  raise "Missing the required parameter 'create_execute_operation_job_details' when calling create_execute_operation_job." if create_execute_operation_job_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}/actions/executeOperationJobs'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_execute_operation_job_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_execute_operation_job') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ExecuteOperationJobDetails'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_folder(registry_id, create_folder_details, opts = {}) ⇒ Response

Note:

Creates a folder under a specefied registry.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

Returns:

  • (Response)

    A Response object with data of type Folder



1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1078

def create_folder(registry_id, create_folder_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_folder.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_folder." if registry_id.nil?
  raise "Missing the required parameter 'create_folder_details' when calling create_folder." if create_folder_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/folders'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_folder_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_folder') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Folder'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_full_push_down_task(registry_id, create_full_push_down_task_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_full_push_down_task.rb.html) to see an example of how to use create_full_push_down_task API.

This endpoint is used to create a connectivity task (like PushdownTask).

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1146

def create_full_push_down_task(registry_id, create_full_push_down_task_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_full_push_down_task.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_full_push_down_task." if registry_id.nil?
  raise "Missing the required parameter 'create_full_push_down_task_details' when calling create_full_push_down_task." if create_full_push_down_task_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/actions/fullPushDownTask'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_full_push_down_task_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_full_push_down_task') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::FullPushDownTaskResponse'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_reference_artifact(registry_id, dcms_artifact_id, create_reference_artifact_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_reference_artifact.rb.html) to see an example of how to use create_reference_artifact API.

Reference a data asset.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • dcms_artifact_id (String)

    The ID of a dcms artifact (DataAsset or Endpoint).

  • create_reference_artifact_details (OCI::DataConnectivity::Models::CreateReferenceArtifactDetails)

    The information needed to reference a dcms artifact

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1216

def create_reference_artifact(registry_id, dcms_artifact_id, create_reference_artifact_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_reference_artifact.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_reference_artifact." if registry_id.nil?
  raise "Missing the required parameter 'dcms_artifact_id' when calling create_reference_artifact." if dcms_artifact_id.nil?
  raise "Missing the required parameter 'create_reference_artifact_details' when calling create_reference_artifact." if create_reference_artifact_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'dcms_artifact_id' must not be blank" if OCI::Internal::Util.blank_string?(dcms_artifact_id)

  path = '/registries/{registryId}/dcmsArtifacts/{dcmsArtifactId}/actions/referenceArtifact'.sub('{registryId}', registry_id.to_s).sub('{dcmsArtifactId}', dcms_artifact_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_reference_artifact_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_reference_artifact') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ReferenceInfo'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_registry(create_registry_details, opts = {}) ⇒ Response

Note:

Creates a new Data Connectivity Management Registry ready for performing data Connectivity Management.

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type nil



1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1282

def create_registry(create_registry_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_registry.' if logger

  raise "Missing the required parameter 'create_registry_details' when calling create_registry." if create_registry_details.nil?

  path = '/registries'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_registry_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_registry') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#create_test_network_connectivity(registry_id, create_test_network_connectivity_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/create_test_network_connectivity.rb.html) to see an example of how to use create_test_network_connectivity API.

Execute network validation on selected data assets associated with the provided private endpoint

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1347

def create_test_network_connectivity(registry_id, create_test_network_connectivity_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#create_test_network_connectivity.' if logger

  raise "Missing the required parameter 'registry_id' when calling create_test_network_connectivity." if registry_id.nil?
  raise "Missing the required parameter 'create_test_network_connectivity_details' when calling create_test_network_connectivity." if create_test_network_connectivity_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/actions/testNetworkConnectivity'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = @api_client.object_to_http_body(create_test_network_connectivity_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#create_test_network_connectivity') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::TestNetworkConnectivity'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_connection(registry_id, connection_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/delete_connection.rb.html) to see an example of how to use delete_connection API.

Removes a connection using the specified identifier.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type nil



1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1414

def delete_connection(registry_id, connection_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#delete_connection.' if logger

  raise "Missing the required parameter 'registry_id' when calling delete_connection." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling delete_connection." if connection_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)

  path = '/registries/{registryId}/connections/{connectionKey}'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#delete_connection') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_connection_validation(registry_id, connection_validation_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/delete_connection_validation.rb.html) to see an example of how to use delete_connection_validation API.

Deletes a connection validation.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_validation_key (String)

    The key of the connection validation.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:

  • (Response)

    A Response object with data of type nil



1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1479

def delete_connection_validation(registry_id, connection_validation_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#delete_connection_validation.' if logger

  raise "Missing the required parameter 'registry_id' when calling delete_connection_validation." if registry_id.nil?
  raise "Missing the required parameter 'connection_validation_key' when calling delete_connection_validation." if connection_validation_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_validation_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_validation_key)

  path = '/registries/{registryId}/connectionValidations/{connectionValidationKey}'.sub('{registryId}', registry_id.to_s).sub('{connectionValidationKey}', connection_validation_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#delete_connection_validation') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_data_asset(registry_id, data_asset_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/delete_data_asset.rb.html) to see an example of how to use delete_data_asset API.

Removes a data asset using the specified identifier.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • data_asset_key (String)

    The data asset key.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type nil



1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1544

def delete_data_asset(registry_id, data_asset_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#delete_data_asset.' if logger

  raise "Missing the required parameter 'registry_id' when calling delete_data_asset." if registry_id.nil?
  raise "Missing the required parameter 'data_asset_key' when calling delete_data_asset." if data_asset_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'data_asset_key' must not be blank" if OCI::Internal::Util.blank_string?(data_asset_key)

  path = '/registries/{registryId}/dataAssets/{dataAssetKey}'.sub('{registryId}', registry_id.to_s).sub('{dataAssetKey}', data_asset_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#delete_data_asset') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_endpoint(endpoint_id, opts = {}) ⇒ Response

Note:

Deletes a Data Connectivity Management Endpoint resource by identifier

Parameters:

  • endpoint_id (String)

    DCMS Endpoint id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :registry_id (String)

    DCMS registry id

  • :is_force_operation (BOOLEAN)

    Try to delete forcefully after drain timeout. (default to false)

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type nil



1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1609

def delete_endpoint(endpoint_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#delete_endpoint.' if logger

  raise "Missing the required parameter 'endpoint_id' when calling delete_endpoint." if endpoint_id.nil?
  raise "Parameter value for 'endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(endpoint_id)

  path = '/endpoints/{endpointId}'.sub('{endpointId}', endpoint_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:registryId] = opts[:registry_id] if opts[:registry_id]
  query_params[:isForceOperation] = opts[:is_force_operation] if !opts[:is_force_operation].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#delete_endpoint') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_folder(registry_id, folder_key, opts = {}) ⇒ Response

Note:

Removes a folder using the specified identifier.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • folder_key (String)

    The folder ID.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type nil



1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1673

def delete_folder(registry_id, folder_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#delete_folder.' if logger

  raise "Missing the required parameter 'registry_id' when calling delete_folder." if registry_id.nil?
  raise "Missing the required parameter 'folder_key' when calling delete_folder." if folder_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'folder_key' must not be blank" if OCI::Internal::Util.blank_string?(folder_key)

  path = '/registries/{registryId}/folders/{folderKey}'.sub('{registryId}', registry_id.to_s).sub('{folderKey}', folder_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#delete_folder') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_network_connectivity_status(registry_id, network_validation_status_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/delete_network_connectivity_status.rb.html) to see an example of how to use delete_network_connectivity_status API.

This api is used to delete a persisted NetworkValidationStatus by its key

Parameters:

  • registry_id (String)

    The registry Ocid.

  • network_validation_status_key (String)

    NetworkValidationStatus key.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:

  • (Response)

    A Response object with data of type nil



1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1737

def delete_network_connectivity_status(registry_id, network_validation_status_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#delete_network_connectivity_status.' if logger

  raise "Missing the required parameter 'registry_id' when calling delete_network_connectivity_status." if registry_id.nil?
  raise "Missing the required parameter 'network_validation_status_key' when calling delete_network_connectivity_status." if network_validation_status_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'network_validation_status_key' must not be blank" if OCI::Internal::Util.blank_string?(network_validation_status_key)

  path = '/registries/{registryId}/networkConnectivityStatus/{networkValidationStatusKey}'.sub('{registryId}', registry_id.to_s).sub('{networkValidationStatusKey}', network_validation_status_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#delete_network_connectivity_status') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#delete_registry(registry_id, opts = {}) ⇒ Response

Note:

Deletes a Data Connectivity Management Registry resource by identifier

Parameters:

  • registry_id (String)

    The registry Ocid.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :is_force_operation (BOOLEAN)

    Try to delete forcefully after drain timeout. (default to false)

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type nil



1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1801

def delete_registry(registry_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#delete_registry.' if logger

  raise "Missing the required parameter 'registry_id' when calling delete_registry." if registry_id.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:isForceOperation] = opts[:is_force_operation] if !opts[:is_force_operation].nil?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#delete_registry') do
    @api_client.call_api(
      :DELETE,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_connection(registry_id, connection_key, opts = {}) ⇒ Response

Note:

Retrieves the connection details using the specified identifier.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:



1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1860

def get_connection(registry_id, connection_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_connection.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_connection." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling get_connection." if connection_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)

  path = '/registries/{registryId}/connections/{connectionKey}'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_connection') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Connection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_connection_validation(registry_id, connection_validation_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/get_connection_validation.rb.html) to see an example of how to use get_connection_validation API.

Retrieves a connection validation using the specified identifier.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_validation_key (String)

    The key of the connection validation.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1921

def get_connection_validation(registry_id, connection_validation_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_connection_validation.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_connection_validation." if registry_id.nil?
  raise "Missing the required parameter 'connection_validation_key' when calling get_connection_validation." if connection_validation_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_validation_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_validation_key)

  path = '/registries/{registryId}/connectionValidations/{connectionValidationKey}'.sub('{registryId}', registry_id.to_s).sub('{connectionValidationKey}', connection_validation_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_connection_validation') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ConnectionValidation'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_data_asset(registry_id, data_asset_key, opts = {}) ⇒ Response

Note:

Retrieves details of a data asset using the specified identifier.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • data_asset_key (String)

    The data asset key.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:



1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 1982

def get_data_asset(registry_id, data_asset_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_data_asset.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_data_asset." if registry_id.nil?
  raise "Missing the required parameter 'data_asset_key' when calling get_data_asset." if data_asset_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'data_asset_key' must not be blank" if OCI::Internal::Util.blank_string?(data_asset_key)

  path = '/registries/{registryId}/dataAssets/{dataAssetKey}'.sub('{registryId}', registry_id.to_s).sub('{dataAssetKey}', data_asset_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_data_asset') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataAsset'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_data_entity(registry_id, connection_key, schema_resource_name, data_entity_key, opts = {}) ⇒ Response

Note:

Retrieves the data entity details with the given name from live schema.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • data_entity_key (String)

    The key of the data entity.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2045

def get_data_entity(registry_id, connection_key, schema_resource_name, data_entity_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_data_entity.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_data_entity." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling get_data_entity." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling get_data_entity." if schema_resource_name.nil?
  raise "Missing the required parameter 'data_entity_key' when calling get_data_entity." if data_entity_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)
  raise "Parameter value for 'data_entity_key' must not be blank" if OCI::Internal::Util.blank_string?(data_entity_key)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}/dataEntities/{dataEntityKey}'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s).sub('{dataEntityKey}', data_entity_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_data_entity') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataEntity'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_endpoint(endpoint_id, opts = {}) ⇒ Response

Note:

Gets a Data Connectivity Management Endpoint by identifier

Parameters:

  • endpoint_id (String)

    DCMS Endpoint id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :registry_id (String)

    DCMS registry id

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type Endpoint



2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2110

def get_endpoint(endpoint_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_endpoint.' if logger

  raise "Missing the required parameter 'endpoint_id' when calling get_endpoint." if endpoint_id.nil?
  raise "Parameter value for 'endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(endpoint_id)

  path = '/endpoints/{endpointId}'.sub('{endpointId}', endpoint_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:registryId] = opts[:registry_id] if opts[:registry_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_endpoint') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Endpoint'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_execute_operation_job(registry_id, connection_key, schema_resource_name, execute_operation_job_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/get_execute_operation_job.rb.html) to see an example of how to use get_execute_operation_job API.

Get the operation status or operation execution result

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • execute_operation_job_key (String)

    Job id returned by execute operation job api

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2172

def get_execute_operation_job(registry_id, connection_key, schema_resource_name, execute_operation_job_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_execute_operation_job.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_execute_operation_job." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling get_execute_operation_job." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling get_execute_operation_job." if schema_resource_name.nil?
  raise "Missing the required parameter 'execute_operation_job_key' when calling get_execute_operation_job." if execute_operation_job_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)
  raise "Parameter value for 'execute_operation_job_key' must not be blank" if OCI::Internal::Util.blank_string?(execute_operation_job_key)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}/executeOperationJobs/{executeOperationJobKey}'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s).sub('{executeOperationJobKey}', execute_operation_job_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_execute_operation_job') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ExecuteOperationJob'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_folder(registry_id, folder_key, opts = {}) ⇒ Response

Note:

Retrieves the folder details using the specified identifier.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • folder_key (String)

    The folder ID.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type Folder



2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2237

def get_folder(registry_id, folder_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_folder.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_folder." if registry_id.nil?
  raise "Missing the required parameter 'folder_key' when calling get_folder." if folder_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'folder_key' must not be blank" if OCI::Internal::Util.blank_string?(folder_key)

  path = '/registries/{registryId}/folders/{folderKey}'.sub('{registryId}', registry_id.to_s).sub('{folderKey}', folder_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_folder') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Folder'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_network_connectivity_status(registry_id, data_asset_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/get_network_connectivity_status.rb.html) to see an example of how to use get_network_connectivity_status API.

Get Status of network reachability check, with the timestamp when the status was last checked, for a given PrivateEndpoint-DataAsset pair

Parameters:

  • registry_id (String)

    The registry Ocid.

  • data_asset_key (String)

    The data asset key.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2304

def get_network_connectivity_status(registry_id, data_asset_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_network_connectivity_status.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_network_connectivity_status." if registry_id.nil?
  raise "Missing the required parameter 'data_asset_key' when calling get_network_connectivity_status." if data_asset_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'data_asset_key' must not be blank" if OCI::Internal::Util.blank_string?(data_asset_key)

  path = '/registries/{registryId}/dataAssets/{dataAssetKey}/networkConnectivityStatus'.sub('{registryId}', registry_id.to_s).sub('{dataAssetKey}', data_asset_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_network_connectivity_status') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::NetworkConnectivityStatus'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_operation(registry_id, connection_key, schema_resource_name, operation_resource_name, opts = {}) ⇒ Response

Note:

Retrieves the details of operation with given resource name.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • operation_resource_name (String)

    The opeartion resource name used for retrieving the details of operation.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:

  • (Response)

    A Response object with data of type Operation



2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2371

def get_operation(registry_id, connection_key, schema_resource_name, operation_resource_name, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_operation.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_operation." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling get_operation." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling get_operation." if schema_resource_name.nil?
  raise "Missing the required parameter 'operation_resource_name' when calling get_operation." if operation_resource_name.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)
  raise "Parameter value for 'operation_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(operation_resource_name)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}/operations/{operationResourceName}'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s).sub('{operationResourceName}', operation_resource_name.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_operation') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Operation'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_registry(registry_id, opts = {}) ⇒ Response

Note:

Gets a Data Connectivity Management Registry by identifier

Parameters:

  • registry_id (String)

    The registry Ocid.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type Registry



2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2435

def get_registry(registry_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_registry.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_registry." if registry_id.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_registry') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Registry'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_schema(registry_id, connection_key, schema_resource_name, opts = {}) ⇒ Response

Note:

Retrieves a schema that can be accessed using the specified connection.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:

  • (Response)

    A Response object with data of type Schema



2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2495

def get_schema(registry_id, connection_key, schema_resource_name, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_schema.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_schema." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling get_schema." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling get_schema." if schema_resource_name.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_schema') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Schema'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_type(registry_id, type_key, opts = {}) ⇒ Response

Note:

This endpoint retrieves dataAsset and connection attributes from DataAssetRegistry

Parameters:

  • registry_id (String)

    The registry Ocid.

  • type_key (String)

    key of the a specefic Type.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

Returns:

  • (Response)

    A Response object with data of type Type



2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2560

def get_type(registry_id, type_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_type.' if logger

  raise "Missing the required parameter 'registry_id' when calling get_type." if registry_id.nil?
  raise "Missing the required parameter 'type_key' when calling get_type." if type_key.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'type_key' must not be blank" if OCI::Internal::Util.blank_string?(type_key)

  path = '/registries/{registryId}/types/{typeKey}'.sub('{registryId}', registry_id.to_s).sub('{typeKey}', type_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_type') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Type'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#get_work_request(work_request_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/get_work_request.rb.html) to see an example of how to use get_work_request API.

Gets the status of the work request with the given ID.

Parameters:

  • work_request_id (String)

    The ID of the asynchronous request.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:



2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2620

def get_work_request(work_request_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#get_work_request.' if logger

  raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
  raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)

  path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#get_work_request') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::WorkRequest'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_connection_validations(registry_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_connection_validations.rb.html) to see an example of how to use list_connection_validations API.

Retrieves a list of connection validations within the specified registry.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :key (String)

    Used to filter by the key of the object.

  • :name (String)

    Used to filter by the name of the object.

  • :identifier (String)

    Used to filter by the identifier of the object.

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2688

def list_connection_validations(registry_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_connection_validations.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_connection_validations." if registry_id.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/connectionValidations'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:key] = opts[:key] if opts[:key]
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:identifier] = opts[:identifier] if opts[:identifier]
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_connection_validations') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ConnectionValidationSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_connections(registry_id, data_asset_key, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_connections.rb.html) to see an example of how to use list_connections API.

Retrieves a list of all connections.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • data_asset_key (String)

    Used to filter by the data asset key of the object.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :name (String)

    Used to filter by the name of the object.

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

  • :type (String)

    Type of the object to filter the results with.

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :favorites_query_param (String)

    If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL. (default to ALL) Allowed values are: FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL

Returns:



2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2774

def list_connections(registry_id, data_asset_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_connections.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_connections." if registry_id.nil?
  raise "Missing the required parameter 'data_asset_key' when calling list_connections." if data_asset_key.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end

  if opts[:favorites_query_param] && !%w[FAVORITES_ONLY NON_FAVORITES_ONLY ALL].include?(opts[:favorites_query_param])
    raise 'Invalid value for "favorites_query_param", must be one of FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/connections'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:dataAssetKey] = data_asset_key
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
  query_params[:type] = opts[:type] if opts[:type]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:favoritesQueryParam] = opts[:favorites_query_param] if opts[:favorites_query_param]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_connections') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ConnectionSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_data_assets(registry_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_data_assets.rb.html) to see an example of how to use list_data_assets API.

Retrieves a list of all data asset summaries.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

  • :include_types (Array<String>)

    DataAsset type which needs to be listed while listing dataAssets

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :name (String)

    Used to filter by the name of the object.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :exclude_types (Array<String>)

    Types which wont be listed while listing dataAsset/Connection

  • :favorites_query_param (String)

    If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL. (default to ALL) Allowed values are: FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL

  • :folder_id (String)

    Unique key of the folder.

  • :endpoint_ids (Array<String>)

    Endpoint Ids used for data-plane APIs to filter or prefer specific endpoint.

  • :exclude_endpoint_ids (Array<String>)

    Endpoints which will be excluded while listing dataAssets

Returns:



2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2869

def list_data_assets(registry_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_data_assets.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_data_assets." if registry_id.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end

  if opts[:favorites_query_param] && !%w[FAVORITES_ONLY NON_FAVORITES_ONLY ALL].include?(opts[:favorites_query_param])
    raise 'Invalid value for "favorites_query_param", must be one of FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/dataAssets'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
  query_params[:includeTypes] = OCI::ApiClient.build_collection_params(opts[:include_types], :multi) if opts[:include_types] && !opts[:include_types].empty?
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:excludeTypes] = OCI::ApiClient.build_collection_params(opts[:exclude_types], :multi) if opts[:exclude_types] && !opts[:exclude_types].empty?
  query_params[:favoritesQueryParam] = opts[:favorites_query_param] if opts[:favorites_query_param]
  query_params[:folderId] = opts[:folder_id] if opts[:folder_id]
  query_params[:endpointIds] = OCI::ApiClient.build_collection_params(opts[:endpoint_ids], :multi) if opts[:endpoint_ids] && !opts[:endpoint_ids].empty?
  query_params[:excludeEndpointIds] = OCI::ApiClient.build_collection_params(opts[:exclude_endpoint_ids], :multi) if opts[:exclude_endpoint_ids] && !opts[:exclude_endpoint_ids].empty?

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_data_assets') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataAssetSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_data_entities(registry_id, connection_key, schema_resource_name, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_data_entities.rb.html) to see an example of how to use list_data_entities API.

Lists a summary of data entities from the data asset using the specified connection.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :name (String)

    Used to filter by the name of the object.

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :type (String)

    Type of the object to filter the results with.

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :api_mode (String)

    This parameter can be used to set the api response type to preview. (default to ALL) Allowed values are: PREVIEW, ALL

  • :name_list (Array<String>)

    Used to filter by the name of the object. (default to [])

  • :is_pattern (BOOLEAN)

    This parameter can be used to specify whether entity search type is pattern search or not. (default to false)

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 2967

def list_data_entities(registry_id, connection_key, schema_resource_name, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_data_entities.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_data_entities." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling list_data_entities." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling list_data_entities." if schema_resource_name.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end

  if opts[:api_mode] && !%w[PREVIEW ALL].include?(opts[:api_mode])
    raise 'Invalid value for "api_mode", must be one of PREVIEW, ALL.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}/dataEntities'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:type] = opts[:type] if opts[:type]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:apiMode] = opts[:api_mode] if opts[:api_mode]
  query_params[:nameList] = OCI::ApiClient.build_collection_params(opts[:name_list], :multi) if opts[:name_list] && !opts[:name_list].empty?
  query_params[:isPattern] = opts[:is_pattern] if !opts[:is_pattern].nil?
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_data_entities') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataEntitySummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_endpoints(compartment_id, opts = {}) ⇒ Response

Note:

Returns a list of Data Connectivity Management Endpoints.

Parameters:

  • compartment_id (String)

    The OCID of the compartment containing the resources you want to list.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :registry_id (String)

    DCMS registry id

  • :name (String)

    Used to filter by the name of the object.

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :lifecycle_state (String)

    Lifecycle state of the resource.

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :sort_by (String)

    This parameter allows users to specify a sort field. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to TIMECREATED) Allowed values are: TIMECREATED, DISPLAYNAME, TIMEUPDATED

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:



3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3061

def list_endpoints(compartment_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_endpoints.' if logger

  raise "Missing the required parameter 'compartment_id' when calling list_endpoints." if compartment_id.nil?

  if opts[:lifecycle_state] && !OCI::DataConnectivity::Models::Registry::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
    raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataConnectivity::Models::Registry::LIFECYCLE_STATE_ENUM.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end

  if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME TIMEUPDATED].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME, TIMEUPDATED.'
  end

  path = '/endpoints'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:compartmentId] = compartment_id
  query_params[:registryId] = opts[:registry_id] if opts[:registry_id]
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_endpoints') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::EndpointSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_folders(registry_id, opts = {}) ⇒ Response

Note:

Retrieves a list of all folders.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :name (String)

    Used to filter by the name of the object.

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

  • :type (String)

    Type of the object to filter the results with.

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :favorites_query_param (String)

    If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL. (default to ALL) Allowed values are: FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL

Returns:



3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3148

def list_folders(registry_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_folders.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_folders." if registry_id.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end

  if opts[:favorites_query_param] && !%w[FAVORITES_ONLY NON_FAVORITES_ONLY ALL].include?(opts[:favorites_query_param])
    raise 'Invalid value for "favorites_query_param", must be one of FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/folders'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
  query_params[:type] = opts[:type] if opts[:type]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:favoritesQueryParam] = opts[:favorites_query_param] if opts[:favorites_query_param]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_folders') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::FolderSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_operations(registry_id, connection_key, schema_resource_name, opts = {}) ⇒ Response

Note:

Lists the summary of operations present in the schema identified by schema name.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • schema_resource_name (String)

    The schema resource name used for retrieving schemas.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :name (String)

    Used to filter by the name of the object.

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3236

def list_operations(registry_id, connection_key, schema_resource_name, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_operations.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_operations." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling list_operations." if connection_key.nil?
  raise "Missing the required parameter 'schema_resource_name' when calling list_operations." if schema_resource_name.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)
  raise "Parameter value for 'schema_resource_name' must not be blank" if OCI::Internal::Util.blank_string?(schema_resource_name)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas/{schemaResourceName}/operations'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s).sub('{schemaResourceName}', schema_resource_name.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_operations') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::OperationSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_reference_artifacts(registry_id, dcms_artifact_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_reference_artifacts.rb.html) to see an example of how to use list_reference_artifacts API.

Retrieves a list of all reference info of a dcms artifact.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • dcms_artifact_id (String)

    The ID of a dcms artifact (DataAsset or Endpoint).

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

  • :type (String)

    Type of the object to filter the results with.

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :name (String)

    Used to filter by the name of the object.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :exclude_types (Array<String>)

    Types which wont be listed while listing dataAsset/Connection

  • :favorites_query_param (String)

    If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL. (default to ALL) Allowed values are: FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL

  • :service_artifact_id (String)

    Unique key of the service.

Returns:



3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3326

def list_reference_artifacts(registry_id, dcms_artifact_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_reference_artifacts.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_reference_artifacts." if registry_id.nil?
  raise "Missing the required parameter 'dcms_artifact_id' when calling list_reference_artifacts." if dcms_artifact_id.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end

  if opts[:favorites_query_param] && !%w[FAVORITES_ONLY NON_FAVORITES_ONLY ALL].include?(opts[:favorites_query_param])
    raise 'Invalid value for "favorites_query_param", must be one of FAVORITES_ONLY, NON_FAVORITES_ONLY, ALL.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'dcms_artifact_id' must not be blank" if OCI::Internal::Util.blank_string?(dcms_artifact_id)

  path = '/registries/{registryId}/dcmsArtifacts/{dcmsArtifactId}/referenceArtifacts'.sub('{registryId}', registry_id.to_s).sub('{dcmsArtifactId}', dcms_artifact_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
  query_params[:type] = opts[:type] if opts[:type]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:excludeTypes] = OCI::ApiClient.build_collection_params(opts[:exclude_types], :multi) if opts[:exclude_types] && !opts[:exclude_types].empty?
  query_params[:favoritesQueryParam] = opts[:favorites_query_param] if opts[:favorites_query_param]
  query_params[:serviceArtifactId] = opts[:service_artifact_id] if opts[:service_artifact_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_reference_artifacts') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::ReferenceArtifactSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_registries(compartment_id, opts = {}) ⇒ Response

Note:

Returns a list of Data Connectivity Management Registries.

Parameters:

  • compartment_id (String)

    The OCID of the compartment containing the resources you want to list.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :name (String)

    Used to filter by the name of the object.

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :is_deep_lookup (BOOLEAN)

    This parameter allows list registries to deep look at whole tenancy. (default to true)

  • :lifecycle_state (String)

    Lifecycle state of the resource.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:



3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3413

def list_registries(compartment_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_registries.' if logger

  raise "Missing the required parameter 'compartment_id' when calling list_registries." if compartment_id.nil?

  if opts[:lifecycle_state] && !OCI::DataConnectivity::Models::Registry::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
    raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DataConnectivity::Models::Registry::LIFECYCLE_STATE_ENUM.'
  end

  path = '/registries'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:compartmentId] = compartment_id
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:isDeepLookup] = opts[:is_deep_lookup] if !opts[:is_deep_lookup].nil?
  query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_registries') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::RegistrySummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_schemas(registry_id, connection_key, opts = {}) ⇒ Response

Note:

Retrieves a list of all the schemas that can be accessed using the specified connection.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :fields (Array<String>)

    Specifies the fields to get for an object. (default to [])

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :schema_resource_key (String)

    Schema resource name used for retrieving schemas.

  • :name (String)

    Used to filter by the name of the object.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :name_list (Array<String>)

    Used to filter by the name of the object. (default to [])

  • :endpoint_id (String)

    Endpoint Id used for getDataAssetFullDetails.

Returns:



3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3491

def list_schemas(registry_id, connection_key, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_schemas.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_schemas." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling list_schemas." if connection_key.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)

  path = '/registries/{registryId}/connections/{connectionKey}/schemas'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:schemaResourceKey] = opts[:schema_resource_key] if opts[:schema_resource_key]
  query_params[:name] = opts[:name] if opts[:name]
  query_params[:nameList] = OCI::ApiClient.build_collection_params(opts[:name_list], :multi) if opts[:name_list] && !opts[:name_list].empty?
  query_params[:endpointId] = opts[:endpoint_id] if opts[:endpoint_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_schemas') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::SchemaSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_types(registry_id, opts = {}) ⇒ Response

Note:

This endpoint retrieves list of all the supported connector types

Parameters:

  • registry_id (String)

    The registry Ocid.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

  • :type (String)

    Type of the object to filter the results with.

  • :sort_by (String)

    Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). (default to timeCreated) Allowed values are: id, timeCreated, displayName

  • :sort_order (String)

    Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending). (default to DESC) Allowed values are: ASC, DESC

  • :name (String)

    Used to filter by the name of the object.

Returns:



3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3576

def list_types(registry_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_types.' if logger

  raise "Missing the required parameter 'registry_id' when calling list_types." if registry_id.nil?

  if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by])
    raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.'
  end

  if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
    raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
  end
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}/types'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]
  query_params[:type] = opts[:type] if opts[:type]
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
  query_params[:name] = opts[:name] if opts[:name]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_types') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::TypesSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_work_request_errors(work_request_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.

Return a (paginated) list of errors for a given work request.

Parameters:

  • work_request_id (String)

    The ID of the asynchronous request.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

Returns:



3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3650

def list_work_request_errors(work_request_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_work_request_errors.' if logger

  raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
  raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)

  path = '/workRequests/{workRequestId}/workRequestErrors'.sub('{workRequestId}', work_request_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_work_request_errors') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::WorkRequestErrorCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_work_request_logs(work_request_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.

Return a (paginated) list of logs for a given work request.

Parameters:

  • work_request_id (String)

    The ID of the asynchronous request.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

Returns:



3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3712

def list_work_request_logs(work_request_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_work_request_logs.' if logger

  raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
  raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)

  path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_work_request_logs') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::WorkRequestLogCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#list_work_requests(compartment_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/list_work_requests.rb.html) to see an example of how to use list_work_requests API.

Lists the work requests in a compartment.

Parameters:

  • compartment_id (String)

    The OCID of the compartment containing the resources you want to list.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :resource_id (String)

    DCMS registry or endpoint id

  • :work_request_status (String)

    Work Request status. Allowed values are: ACCEPTED, IN_PROGRESS, FAILED, SUCCEEDED, CANCELING, CANCELED

  • :page (String)

    For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).

  • :limit (Integer)

    Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). (default to 100)

Returns:



3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3777

def list_work_requests(compartment_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#list_work_requests.' if logger

  raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?

  if opts[:work_request_status] && !%w[ACCEPTED IN_PROGRESS FAILED SUCCEEDED CANCELING CANCELED].include?(opts[:work_request_status])
    raise 'Invalid value for "work_request_status", must be one of ACCEPTED, IN_PROGRESS, FAILED, SUCCEEDED, CANCELING, CANCELED.'
  end

  path = '/workRequests'
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:compartmentId] = compartment_id
  query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
  query_params[:workRequestStatus] = opts[:work_request_status] if opts[:work_request_status]
  query_params[:page] = opts[:page] if opts[:page]
  query_params[:limit] = opts[:limit] if opts[:limit]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#list_work_requests') do
    @api_client.call_api(
      :GET,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::WorkRequestSummaryCollection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#loggerLogger

Returns The logger for this client. May be nil.

Returns:

  • (Logger)

    The logger for this client. May be nil.



92
93
94
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 92

def logger
  @api_client.config.logger
end

#update_connection(registry_id, connection_key, update_connection_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/update_connection.rb.html) to see an example of how to use update_connection API.

Updates a connection under a data asset.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • connection_key (String)

    The connection key.

  • update_connection_details (OCI::DataConnectivity::Models::UpdateConnectionDetails)

    The information needed to update a connection.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3848

def update_connection(registry_id, connection_key, update_connection_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#update_connection.' if logger

  raise "Missing the required parameter 'registry_id' when calling update_connection." if registry_id.nil?
  raise "Missing the required parameter 'connection_key' when calling update_connection." if connection_key.nil?
  raise "Missing the required parameter 'update_connection_details' when calling update_connection." if update_connection_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'connection_key' must not be blank" if OCI::Internal::Util.blank_string?(connection_key)

  path = '/registries/{registryId}/connections/{connectionKey}'.sub('{registryId}', registry_id.to_s).sub('{connectionKey}', connection_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf

  post_body = @api_client.object_to_http_body(update_connection_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#update_connection') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Connection'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#update_data_asset(registry_id, data_asset_key, update_data_asset_details, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/update_data_asset.rb.html) to see an example of how to use update_data_asset API.

Updates a specific data asset with default connection.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • data_asset_key (String)

    The data asset key.

  • update_data_asset_details (OCI::DataConnectivity::Models::UpdateDataAssetDetails)

    The information needed to update a data asset.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:



3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3915

def update_data_asset(registry_id, data_asset_key, update_data_asset_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#update_data_asset.' if logger

  raise "Missing the required parameter 'registry_id' when calling update_data_asset." if registry_id.nil?
  raise "Missing the required parameter 'data_asset_key' when calling update_data_asset." if data_asset_key.nil?
  raise "Missing the required parameter 'update_data_asset_details' when calling update_data_asset." if update_data_asset_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'data_asset_key' must not be blank" if OCI::Internal::Util.blank_string?(data_asset_key)

  path = '/registries/{registryId}/dataAssets/{dataAssetKey}'.sub('{registryId}', registry_id.to_s).sub('{dataAssetKey}', data_asset_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf

  post_body = @api_client.object_to_http_body(update_data_asset_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#update_data_asset') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::DataAsset'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#update_endpoint(endpoint_id, update_endpoint_details, opts = {}) ⇒ Response

Note:

Updates the Data Connectivity Management Endpoint

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :registry_id (String)

    DCMS registry id

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type Endpoint



3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 3982

def update_endpoint(endpoint_id, update_endpoint_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#update_endpoint.' if logger

  raise "Missing the required parameter 'endpoint_id' when calling update_endpoint." if endpoint_id.nil?
  raise "Missing the required parameter 'update_endpoint_details' when calling update_endpoint." if update_endpoint_details.nil?
  raise "Parameter value for 'endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(endpoint_id)

  path = '/endpoints/{endpointId}'.sub('{endpointId}', endpoint_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:registryId] = opts[:registry_id] if opts[:registry_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = @api_client.object_to_http_body(update_endpoint_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#update_endpoint') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Endpoint'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#update_folder(registry_id, folder_key, update_folder_details, opts = {}) ⇒ Response

Note:

Updates a folder under a specefied registry.

Parameters:

  • registry_id (String)

    The registry Ocid.

  • folder_key (String)

    The folder ID.

  • update_folder_details (OCI::DataConnectivity::Models::UpdateFolderDetails)

    The information needed to update a folder.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

Returns:

  • (Response)

    A Response object with data of type Folder



4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 4048

def update_folder(registry_id, folder_key, update_folder_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#update_folder.' if logger

  raise "Missing the required parameter 'registry_id' when calling update_folder." if registry_id.nil?
  raise "Missing the required parameter 'folder_key' when calling update_folder." if folder_key.nil?
  raise "Missing the required parameter 'update_folder_details' when calling update_folder." if update_folder_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)
  raise "Parameter value for 'folder_key' must not be blank" if OCI::Internal::Util.blank_string?(folder_key)

  path = '/registries/{registryId}/folders/{folderKey}'.sub('{registryId}', registry_id.to_s).sub('{folderKey}', folder_key.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  # rubocop:enable Style/NegatedIf

  post_body = @api_client.object_to_http_body(update_folder_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#update_folder') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Folder'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#update_registry(registry_id, update_registry_details, opts = {}) ⇒ Response

Note:

Updates the Data Connectivity Management Registry

Parameters:

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

Returns:

  • (Response)

    A Response object with data of type Registry



4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 4114

def update_registry(registry_id, update_registry_details, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#update_registry.' if logger

  raise "Missing the required parameter 'registry_id' when calling update_registry." if registry_id.nil?
  raise "Missing the required parameter 'update_registry_details' when calling update_registry." if update_registry_details.nil?
  raise "Parameter value for 'registry_id' must not be blank" if OCI::Internal::Util.blank_string?(registry_id)

  path = '/registries/{registryId}'.sub('{registryId}', registry_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  # rubocop:enable Style/NegatedIf

  post_body = @api_client.object_to_http_body(update_registry_details)

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#update_registry') do
    @api_client.call_api(
      :PUT,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body,
      return_type: 'OCI::DataConnectivity::Models::Registry'
    )
  end
  # rubocop:enable Metrics/BlockLength
end

#validate_data_asset_network_reachablity(endpoint_id, opts = {}) ⇒ Response

Note:

Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/dataconnectivity/validate_data_asset_network_reachablity.rb.html) to see an example of how to use validate_data_asset_network_reachablity API.

Validates the dataAsset network Reachability.

Parameters:

  • endpoint_id (String)

    DCMS Endpoint id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :retry_config (OCI::Retry::RetryConfig)

    The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by #retry_config will be used. If an explicit `nil` value is provided then the operation will not retry

  • :if_match (String)

    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.

  • :opc_request_id (String)

    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

  • :opc_retry_token (String)

    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.

  • :registry_id (String)

    DCMS registry id

Returns:

  • (Response)

    A Response object with data of type nil



4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
# File 'lib/oci/data_connectivity/data_connectivity_management_client.rb', line 4181

def validate_data_asset_network_reachablity(endpoint_id, opts = {})
  logger.debug 'Calling operation DataConnectivityManagementClient#validate_data_asset_network_reachablity.' if logger

  raise "Missing the required parameter 'endpoint_id' when calling validate_data_asset_network_reachablity." if endpoint_id.nil?
  raise "Parameter value for 'endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(endpoint_id)

  path = '/endpoints/{endpointId}/actions/validateDataAssetNetworkReachablity'.sub('{endpointId}', endpoint_id.to_s)
  operation_signing_strategy = :standard

  # rubocop:disable Style/NegatedIf
  # Query Params
  query_params = {}
  query_params[:registryId] = opts[:registry_id] if opts[:registry_id]

  # Header Params
  header_params = {}
  header_params[:accept] = 'application/json'
  header_params[:'content-type'] = 'application/json'
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
  header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
  # rubocop:enable Style/NegatedIf
  header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

  post_body = nil

  # rubocop:disable Metrics/BlockLength
  OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataConnectivityManagementClient#validate_data_asset_network_reachablity') do
    @api_client.call_api(
      :POST,
      path,
      endpoint,
      header_params: header_params,
      query_params: query_params,
      operation_signing_strategy: operation_signing_strategy,
      body: post_body
    )
  end
  # rubocop:enable Metrics/BlockLength
end