Package com.strongdm.api
Class GoogleSpanner
java.lang.Object
com.strongdm.api.GoogleSpanner
- All Implemented Interfaces:
Resource
GoogleSpanner is currently unstable, and its API may change, or it may be removed,
without a major version bump.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1).The initial database to connect to.A filter applied to the routing logic to pin datasource to nodes.The endpoint to dial e.g.booleanTrue if the datasource is reachable and the credentials are valid.getId()Unique identifier of the Resource.The Spanner instance ID within the GCP project.getName()Unique human-readable name of the Resource.intgetPort()The port to dial to initiate a connection from the egress node to this resource.intThe local port used by clients to connect to this resource.The GCP project ID containing the Spanner database.ID of the proxy cluster for this resource, if any.ID of the secret store containing credentials for this resource, if any.Optional service account email to impersonate.DNS subdomain through which this resource may be accessed on clients.getTags()Tags is a map of key, value pairs.voidThe bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1).voidsetDatabase(String in) The initial database to connect to.voidA filter applied to the routing logic to pin datasource to nodes.voidsetEndpoint(String in) The endpoint to dial e.g.voidsetHealthy(boolean in) True if the datasource is reachable and the credentials are valid.voidUnique identifier of the Resource.voidsetInstance(String in) The Spanner instance ID within the GCP project.voidUnique human-readable name of the Resource.voidsetPort(int in) The port to dial to initiate a connection from the egress node to this resource.voidsetPortOverride(int in) The local port used by clients to connect to this resource.voidsetProject(String in) The GCP project ID containing the Spanner database.voidID of the proxy cluster for this resource, if any.voidID of the secret store containing credentials for this resource, if any.voidOptional service account email to impersonate.voidsetSubdomain(String in) DNS subdomain through which this resource may be accessed on clients.voidTags is a map of key, value pairs.
-
Constructor Details
-
GoogleSpanner
public GoogleSpanner()
-
-
Method Details
-
getBindInterface
The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided and may also be set to one of the ResourceIPAllocationMode constants to select between VNM, loopback, or default allocation.- Specified by:
getBindInterfacein interfaceResource
-
setBindInterface
The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided and may also be set to one of the ResourceIPAllocationMode constants to select between VNM, loopback, or default allocation.- Specified by:
setBindInterfacein interfaceResource
-
getDatabase
The initial database to connect to. This setting does not by itself prevent switching to another database after connecting. -
setDatabase
The initial database to connect to. This setting does not by itself prevent switching to another database after connecting. -
getEgressFilter
A filter applied to the routing logic to pin datasource to nodes.- Specified by:
getEgressFilterin interfaceResource
-
setEgressFilter
A filter applied to the routing logic to pin datasource to nodes.- Specified by:
setEgressFilterin interfaceResource
-
getEndpoint
The endpoint to dial e.g. spanner.googleapis.com -
setEndpoint
The endpoint to dial e.g. spanner.googleapis.com -
getHealthy
public boolean getHealthy()True if the datasource is reachable and the credentials are valid. -
setHealthy
public void setHealthy(boolean in) True if the datasource is reachable and the credentials are valid. -
getId
Unique identifier of the Resource. -
setId
Unique identifier of the Resource. -
getInstance
The Spanner instance ID within the GCP project. -
setInstance
The Spanner instance ID within the GCP project. -
getName
Unique human-readable name of the Resource. -
setName
Unique human-readable name of the Resource. -
getPort
public int getPort()The port to dial to initiate a connection from the egress node to this resource. -
setPort
public void setPort(int in) The port to dial to initiate a connection from the egress node to this resource. -
getPortOverride
public int getPortOverride()The local port used by clients to connect to this resource. It is automatically generated if not provided on create and may be re-generated on update by specifying a value of -1. -
setPortOverride
public void setPortOverride(int in) The local port used by clients to connect to this resource. It is automatically generated if not provided on create and may be re-generated on update by specifying a value of -1. -
getProject
The GCP project ID containing the Spanner database. -
setProject
The GCP project ID containing the Spanner database. -
getProxyClusterId
ID of the proxy cluster for this resource, if any. -
setProxyClusterId
ID of the proxy cluster for this resource, if any. -
getSecretStoreId
ID of the secret store containing credentials for this resource, if any.- Specified by:
getSecretStoreIdin interfaceResource
-
setSecretStoreId
ID of the secret store containing credentials for this resource, if any.- Specified by:
setSecretStoreIdin interfaceResource
-
getServiceAccountToImpersonate
Optional service account email to impersonate. When set, the relay's Application Default Credentials will impersonate this service account to access Spanner. This allows role separation where the relay uses one service account but operates as another. -
setServiceAccountToImpersonate
Optional service account email to impersonate. When set, the relay's Application Default Credentials will impersonate this service account to access Spanner. This allows role separation where the relay uses one service account but operates as another. -
getSubdomain
DNS subdomain through which this resource may be accessed on clients. (e.g. "app-prod1" allows the resource to be accessed at "app-prod1.your-org-name.sdm-proxy-domain"). Only applicable to HTTP-based resources or resources using virtual networking mode. -
setSubdomain
DNS subdomain through which this resource may be accessed on clients. (e.g. "app-prod1" allows the resource to be accessed at "app-prod1.your-org-name.sdm-proxy-domain"). Only applicable to HTTP-based resources or resources using virtual networking mode. -
getTags
Tags is a map of key, value pairs. -
setTags
Tags is a map of key, value pairs.
-