# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
require 'oci'
# Create a default config using DEFAULT profile in default location
# Refer to https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File for more info
config = OCI::ConfigFileLoader.load_config
# Initialize service client with default config file
osp_gateway_client = OCI::OspGateway::AddressServiceClient.new(config: config)
# Send the request to service, some parameters are not required, see API doc for more info
verify_address_response =
osp_gateway_client.verify_address(
'EXAMPLE-ospHomeRegion-Value',
'ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value',
OCI::OspGateway::Models::VerifyAddressDetails.new(
address_key: 'EXAMPLE-addressKey-Value',
line1: 'EXAMPLE-line1-Value',
line2: 'EXAMPLE-line2-Value',
line3: 'EXAMPLE-line3-Value',
line4: 'EXAMPLE-line4-Value',
street_name: 'EXAMPLE-streetName-Value',
street_number: 'EXAMPLE-streetNumber-Value',
city: 'EXAMPLE-city-Value',
county: 'EXAMPLE-county-Value',
country: 'EXAMPLE-country-Value',
province: 'EXAMPLE-province-Value',
postal_code: 'EXAMPLE-postalCode-Value',
state: 'EXAMPLE-state-Value',
email_address: 'EXAMPLE-emailAddress-Value',
company_name: 'EXAMPLE-companyName-Value',
first_name: 'EXAMPLE-firstName-Value',
middle_name: 'EXAMPLE-middleName-Value',
last_name: 'EXAMPLE-lastName-Value',
phone_country_code: 'EXAMPLE-phoneCountryCode-Value',
phone_number: 'EXAMPLE-phoneNumber-Value',
job_title: 'EXAMPLE-jobTitle-Value',
department_name: 'EXAMPLE-departmentName-Value',
internal_number: 'EXAMPLE-internalNumber-Value',
contributor_class: 'EXAMPLE-contributorClass-Value',
state_inscription: 'EXAMPLE-stateInscription-Value',
municipal_inscription: 'EXAMPLE-municipalInscription-Value'
)
)
# Get the data from response
puts "#{verify_address_response.data}"