Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cloud SQL Admin API Client Library for Java

API for Cloud SQL database instance management
Cloud SQL Admin API

This page contains information about getting started with the Cloud SQL Admin API
using the Google API Client Library for Java. In addition, you may be interested
Expand All @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-sqladmin</artifactId>
<version>v1beta4-rev20260510-2.0.0</version>
<version>v1beta4-rev20260529-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-sqladmin:v1beta4-rev20260510-2.0.0'
implementation 'com.google.apis:google-api-services-sqladmin:v1beta4-rev20260529-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Service definition for SQLAdmin (v1beta4).
*
* <p>
* API for Cloud SQL database instance management
* Cloud SQL Admin API
* </p>
*
* <p>
Expand Down Expand Up @@ -1938,6 +1938,151 @@ public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}
/**
* Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
*
* Create a request for the method "connect.resolve".
*
* This request holds the parameters needed by the sqladmin server. After setting any optional
* parameters, call the {@link Resolve#execute()} method to invoke the remote operation.
*
* @param dnsName Required. Cloud SQL instance ID. This does not include the project ID.
* @param location Required. The region of the instance.
* @return the request
*/
public Resolve resolve(java.lang.String dnsName, java.lang.String location) throws java.io.IOException {
Resolve result = new Resolve(dnsName, location);
initialize(result);
return result;
}

public class Resolve extends SQLAdminRequest<com.google.api.services.sqladmin.model.ConnectSettings> {

private static final String REST_PATH = "sql/v1beta4/dns/{dnsName}/locations/{location}:resolveConnectSettings";

/**
* Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
*
* Create a request for the method "connect.resolve".
*
* This request holds the parameters needed by the the sqladmin server. After setting any
* optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation.
* <p> {@link
* Resolve#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param dnsName Required. Cloud SQL instance ID. This does not include the project ID.
* @param location Required. The region of the instance.
* @since 1.13
*/
protected Resolve(java.lang.String dnsName, java.lang.String location) {
super(SQLAdmin.this, "GET", REST_PATH, null, com.google.api.services.sqladmin.model.ConnectSettings.class);
this.dnsName = com.google.api.client.util.Preconditions.checkNotNull(dnsName, "Required parameter dnsName must be specified.");
this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified.");
}

@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}

@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}

@Override
public Resolve set$Xgafv(java.lang.String $Xgafv) {
return (Resolve) super.set$Xgafv($Xgafv);
}

@Override
public Resolve setAccessToken(java.lang.String accessToken) {
return (Resolve) super.setAccessToken(accessToken);
}

@Override
public Resolve setAlt(java.lang.String alt) {
return (Resolve) super.setAlt(alt);
}

@Override
public Resolve setCallback(java.lang.String callback) {
return (Resolve) super.setCallback(callback);
}

@Override
public Resolve setFields(java.lang.String fields) {
return (Resolve) super.setFields(fields);
}

@Override
public Resolve setKey(java.lang.String key) {
return (Resolve) super.setKey(key);
}

@Override
public Resolve setOauthToken(java.lang.String oauthToken) {
return (Resolve) super.setOauthToken(oauthToken);
}

@Override
public Resolve setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Resolve) super.setPrettyPrint(prettyPrint);
}

@Override
public Resolve setQuotaUser(java.lang.String quotaUser) {
return (Resolve) super.setQuotaUser(quotaUser);
}

@Override
public Resolve setUploadType(java.lang.String uploadType) {
return (Resolve) super.setUploadType(uploadType);
}

@Override
public Resolve setUploadProtocol(java.lang.String uploadProtocol) {
return (Resolve) super.setUploadProtocol(uploadProtocol);
}

/** Required. Cloud SQL instance ID. This does not include the project ID. */
@com.google.api.client.util.Key
private java.lang.String dnsName;

/** Required. Cloud SQL instance ID. This does not include the project ID.
*/
public java.lang.String getDnsName() {
return dnsName;
}

/** Required. Cloud SQL instance ID. This does not include the project ID. */
public Resolve setDnsName(java.lang.String dnsName) {
this.dnsName = dnsName;
return this;
}

/** Required. The region of the instance. */
@com.google.api.client.util.Key
private java.lang.String location;

/** Required. The region of the instance.
*/
public java.lang.String getLocation() {
return location;
}

/** Required. The region of the instance. */
public Resolve setLocation(java.lang.String location) {
this.location = location;
return this;
}

@Override
public Resolve set(String parameterName, Object value) {
return (Resolve) super.set(parameterName, value);
}
}

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public final class CloneContext extends com.google.api.client.json.GenericJson {

/**
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be
* connected via Private Services Access for private IP. For example:`projects/my-network-
* connected via private services access for private IP. For example:`projects/my-network-
* project/global/networks/my-network`. This field is only required for cross-project cloning.
* The value may be {@code null}.
*/
Expand Down Expand Up @@ -212,7 +212,7 @@ public CloneContext setDestinationInstanceName(java.lang.String destinationInsta

/**
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be
* connected via Private Services Access for private IP. For example:`projects/my-network-
* connected via private services access for private IP. For example:`projects/my-network-
* project/global/networks/my-network`. This field is only required for cross-project cloning.
* @return value or {@code null} for none
*/
Expand All @@ -222,7 +222,7 @@ public java.lang.String getDestinationNetwork() {

/**
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be
* connected via Private Services Access for private IP. For example:`projects/my-network-
* connected via private services access for private IP. For example:`projects/my-network-
* project/global/networks/my-network`. This field is only required for cross-project cloning.
* @param destinationNetwork destinationNetwork or {@code null} for none
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,23 @@ public final class PscAutoConnectionConfig extends com.google.api.client.json.Ge
@com.google.api.client.util.Key
private java.lang.String ipAddress;

/**
* Output only. The service connection policy created automatically for the consumer network when
* `psc_auto_connection_policy_enabled` is true. It is in the format of:
* `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is
* in format of `$NETWORK-$RANDOM`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String serviceConnectionPolicy;

/**
* Output only. The status of service connection policy creation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String serviceConnectionPolicyCreationResult;

/**
* The connection status of the consumer endpoint.
* The value may be {@code null}.
Expand Down Expand Up @@ -145,6 +162,46 @@ public PscAutoConnectionConfig setIpAddress(java.lang.String ipAddress) {
return this;
}

/**
* Output only. The service connection policy created automatically for the consumer network when
* `psc_auto_connection_policy_enabled` is true. It is in the format of:
* `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is
* in format of `$NETWORK-$RANDOM`.
* @return value or {@code null} for none
*/
public java.lang.String getServiceConnectionPolicy() {
return serviceConnectionPolicy;
}

/**
* Output only. The service connection policy created automatically for the consumer network when
* `psc_auto_connection_policy_enabled` is true. It is in the format of:
* `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is
* in format of `$NETWORK-$RANDOM`.
* @param serviceConnectionPolicy serviceConnectionPolicy or {@code null} for none
*/
public PscAutoConnectionConfig setServiceConnectionPolicy(java.lang.String serviceConnectionPolicy) {
this.serviceConnectionPolicy = serviceConnectionPolicy;
return this;
}

/**
* Output only. The status of service connection policy creation.
* @return value or {@code null} for none
*/
public java.lang.String getServiceConnectionPolicyCreationResult() {
return serviceConnectionPolicyCreationResult;
}

/**
* Output only. The status of service connection policy creation.
* @param serviceConnectionPolicyCreationResult serviceConnectionPolicyCreationResult or {@code null} for none
*/
public PscAutoConnectionConfig setServiceConnectionPolicyCreationResult(java.lang.String serviceConnectionPolicyCreationResult) {
this.serviceConnectionPolicyCreationResult = serviceConnectionPolicyCreationResult;
return this;
}

/**
* The connection status of the consumer endpoint.
* @return value or {@code null} for none
Expand Down
Loading