Class DirectLinkProvider
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.direct_link_provider.v2.DirectLinkProvider
 
 
- 
 public class DirectLinkProvider extends com.ibm.cloud.sdk.core.service.BaseServiceNo description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator). API Version: __VERSION__
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEDefault service name used when configuring the `DirectLinkProvider` client.static StringDEFAULT_SERVICE_URLDefault service endpoint URL.
 - 
Constructor SummaryConstructors Constructor Description DirectLinkProvider(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `DirectLinkProvider` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway>createProviderGateway(CreateProviderGatewayOptions createProviderGatewayOptions)Create gateway.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway>deleteProviderGateway(DeleteProviderGatewayOptions deleteProviderGatewayOptions)Delete gateway.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway>getProviderGateway(GetProviderGatewayOptions getProviderGatewayOptions)Get gateway.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPort>getProviderPort(GetProviderPortOptions getProviderPortOptions)Get port.StringgetVersion()Gets the version.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGatewayCollection>listProviderGateways()List gateways.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGatewayCollection>listProviderGateways(ListProviderGatewaysOptions listProviderGatewaysOptions)List gateways.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPortCollection>listProviderPorts()List ports.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPortCollection>listProviderPorts(ListProviderPortsOptions listProviderPortsOptions)List ports.static DirectLinkProvidernewInstance(String version)Class method which constructs an instance of the `DirectLinkProvider` client.static DirectLinkProvidernewInstance(String version, String serviceName)Class method which constructs an instance of the `DirectLinkProvider` client.voidsetVersion(String version)Sets the version.com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway>updateProviderGateway(UpdateProviderGatewayOptions updateProviderGatewayOptions)Update gateway.- 
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseServiceconfigureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_SERVICE_NAMEpublic static final String DEFAULT_SERVICE_NAME Default service name used when configuring the `DirectLinkProvider` client.- See Also:
- Constant Field Values
 
 - 
DEFAULT_SERVICE_URLpublic static final String DEFAULT_SERVICE_URL Default service endpoint URL.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
DirectLinkProviderpublic DirectLinkProvider(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `DirectLinkProvider` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- version- Requests the version of the API as a date in the format `YYYY-MM-DD`. Any date from 2020-04-28 up to the current date may be provided. Specify the current date to request the latest version.
- serviceName- the service name to be used when configuring the client instance
- authenticator- the- Authenticatorinstance to be configured for this client
 
 
- 
 - 
Method Detail- 
newInstancepublic static DirectLinkProvider newInstance(String version) Class method which constructs an instance of the `DirectLinkProvider` client. The default service name is used to configure the client instance.- Parameters:
- version- Requests the version of the API as a date in the format `YYYY-MM-DD`. Any date from 2020-04-28 up to the current date may be provided. Specify the current date to request the latest version.
- Returns:
- an instance of the `DirectLinkProvider` client using external configuration
 
 - 
newInstancepublic static DirectLinkProvider newInstance(String version, String serviceName) Class method which constructs an instance of the `DirectLinkProvider` client. The specified service name is used to configure the client instance.- Parameters:
- version- Requests the version of the API as a date in the format `YYYY-MM-DD`. Any date from 2020-04-28 up to the current date may be provided. Specify the current date to request the latest version.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `DirectLinkProvider` client using external configuration
 
 - 
getVersionpublic String getVersion() Gets the version. Requests the version of the API as a date in the format `YYYY-MM-DD`. Any date from 2020-04-28 up to the current date may be provided. Specify the current date to request the latest version.- Returns:
- the version
 
 - 
setVersionpublic void setVersion(String version) Sets the version.- Parameters:
- version- the new version
 
 - 
listProviderGatewayspublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGatewayCollection> listProviderGateways(ListProviderGatewaysOptions listProviderGatewaysOptions) List gateways. List all Direct Link Connect gateways created by this provider.- Parameters:
- listProviderGatewaysOptions- the- ListProviderGatewaysOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeProviderGatewayCollection
 
 - 
listProviderGatewayspublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGatewayCollection> listProviderGateways() List gateways. List all Direct Link Connect gateways created by this provider.- Returns:
- a ServiceCallwith a result of typeProviderGatewayCollection
 
 - 
createProviderGatewaypublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway> createProviderGateway(CreateProviderGatewayOptions createProviderGatewayOptions) Create gateway. Create a Direct Link Connect gateway based on the supplied template in the specified customer account. The gateway will be 'provider_api_managed=true'.- Parameters:
- createProviderGatewayOptions- the- CreateProviderGatewayOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeProviderGateway
 
 - 
deleteProviderGatewaypublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway> deleteProviderGateway(DeleteProviderGatewayOptions deleteProviderGatewayOptions) Delete gateway. Delete a Direct Link Connect provider managed gateway.- Parameters:
- deleteProviderGatewayOptions- the- DeleteProviderGatewayOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeProviderGateway
 
 - 
getProviderGatewaypublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway> getProviderGateway(GetProviderGatewayOptions getProviderGatewayOptions) Get gateway. Get a Direct Link Connect gateway. Gateways with either `provider_api_managed=true` or `provider_api_managed=false` can be retrieved.- Parameters:
- getProviderGatewayOptions- the- GetProviderGatewayOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeProviderGateway
 
 - 
updateProviderGatewaypublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway> updateProviderGateway(UpdateProviderGatewayOptions updateProviderGatewayOptions) Update gateway. Update a Direct Link Connect provider managed gateway. Name changes are applied immediately, other changes result in a gateway change_request and require approval from the client.- Parameters:
- updateProviderGatewayOptions- the- UpdateProviderGatewayOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeProviderGateway
 
 - 
listProviderPortspublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPortCollection> listProviderPorts(ListProviderPortsOptions listProviderPortsOptions) List ports. List all provider ports (associated with the caller).- Parameters:
- listProviderPortsOptions- the- ListProviderPortsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeProviderPortCollection
 
 - 
listProviderPortspublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPortCollection> listProviderPorts() List ports. List all provider ports (associated with the caller).- Returns:
- a ServiceCallwith a result of typeProviderPortCollection
 
 - 
getProviderPortpublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPort> getProviderPort(GetProviderPortOptions getProviderPortOptions) Get port. Get provider port information.- Parameters:
- getProviderPortOptions- the- GetProviderPortOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeProviderPort
 
 
- 
 
-