/** * Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ import { Region } from "./region"; export declare class EndpointBuilder { static createEndpointFromRegion(template: string, region: Region, endpointServiceName?: string, serviceEndpointTemplatePerRealm?: any, useRealmSpecificEndpointTemplate?: boolean): string; private static checkAndGetEndpointTemplateToUse; private static getEndpointTemplateToUse; static createEndpointFromRegionId(template: string, regionId: string, endpointServiceName?: string, serviceEndpointTemplatePerRealm?: any, useRealmSpecificEndpointTemplate?: boolean): string; static createEndpointFromRegionIdAndSecondLevelDomain(template: string, regionId: string, secondLevelDomain: string): string; static createEndpointForDottedRegion(template: string, // https://identity.{region}.oci.{secondLevelDomain} regionId: string, endpointServiceName?: string): string; static populateServiceParamsInEndpoint(endpoint: string, pathParams: any, queryParams: any, requiredParams: Set): string; private static getParameterValueFromPathAndQueryParams; /** * Validates that an endpoint template parameter is safe to include in a domain name. * Domain-safe endpoint parameters may be a single label or multiple dot-separated labels. * Each label may contain only letters, digits, underscores, and internal hyphens, and * must not begin or end with a hyphen. */ private static validateDomainSafeParameter; private static isRealmSpecificEndpointTemplateEnabledViaEnv; private static get isDualStackEnabledViaEnv(); static updateEndpointTemplateForOptions(endpointTemplate: string, dualStackEnabledOnClient: boolean | undefined, serviceUsesDualStackByDefault: boolean): string; }