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 Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
-
Constructor Summary
Constructors Constructor Description DirectLinkProvider(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `DirectLinkProvider` client.
-
Method Summary
All 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.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final String DEFAULT_SERVICE_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DirectLinkProvider
public 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 instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public 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
-
newInstance
public 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
-
getVersion
public 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
-
setVersion
public void setVersion(String version)
Sets the version.- Parameters:
version- the new version
-
listProviderGateways
public 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- theListProviderGatewaysOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeProviderGatewayCollection
-
listProviderGateways
public 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
-
createProviderGateway
public 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- theCreateProviderGatewayOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeProviderGateway
-
deleteProviderGateway
public com.ibm.cloud.sdk.core.http.ServiceCall<ProviderGateway> deleteProviderGateway(DeleteProviderGatewayOptions deleteProviderGatewayOptions)
Delete gateway. Delete a Direct Link Connect provider managed gateway.- Parameters:
deleteProviderGatewayOptions- theDeleteProviderGatewayOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeProviderGateway
-
getProviderGateway
public 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- theGetProviderGatewayOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeProviderGateway
-
updateProviderGateway
public 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- theUpdateProviderGatewayOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeProviderGateway
-
listProviderPorts
public com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPortCollection> listProviderPorts(ListProviderPortsOptions listProviderPortsOptions)
List ports. List all provider ports (associated with the caller).- Parameters:
listProviderPortsOptions- theListProviderPortsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeProviderPortCollection
-
listProviderPorts
public 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
-
getProviderPort
public com.ibm.cloud.sdk.core.http.ServiceCall<ProviderPort> getProviderPort(GetProviderPortOptions getProviderPortOptions)
Get port. Get provider port information.- Parameters:
getProviderPortOptions- theGetProviderPortOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeProviderPort
-
-