Skip to content

Commit 693257a

Browse files
1 parent 1ca955b commit 693257a

7 files changed

Lines changed: 265 additions & 39 deletions

File tree

clients/google-api-services-sqladmin/v1/2.0.0/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cloud SQL Admin API Client Library for Java
22

3-
API for Cloud SQL database instance management
3+
Cloud SQL Admin API
44

55
This page contains information about getting started with the Cloud SQL Admin API
66
using the Google API Client Library for Java. In addition, you may be interested
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-sqladmin</artifactId>
25-
<version>v1-rev20260510-2.0.0</version>
25+
<version>v1-rev20260529-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-sqladmin:v1-rev20260510-2.0.0'
38+
implementation 'com.google.apis:google-api-services-sqladmin:v1-rev20260529-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/SQLAdmin.java

Lines changed: 146 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Service definition for SQLAdmin (v1).
2121
*
2222
* <p>
23-
* API for Cloud SQL database instance management
23+
* Cloud SQL Admin API
2424
* </p>
2525
*
2626
* <p>
@@ -1934,6 +1934,151 @@ public Get set(String parameterName, Object value) {
19341934
return (Get) super.set(parameterName, value);
19351935
}
19361936
}
1937+
/**
1938+
* Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
1939+
*
1940+
* Create a request for the method "connect.resolve".
1941+
*
1942+
* This request holds the parameters needed by the sqladmin server. After setting any optional
1943+
* parameters, call the {@link Resolve#execute()} method to invoke the remote operation.
1944+
*
1945+
* @param dnsName Required. Cloud SQL instance ID. This does not include the project ID.
1946+
* @param location Required. The region of the instance.
1947+
* @return the request
1948+
*/
1949+
public Resolve resolve(java.lang.String dnsName, java.lang.String location) throws java.io.IOException {
1950+
Resolve result = new Resolve(dnsName, location);
1951+
initialize(result);
1952+
return result;
1953+
}
1954+
1955+
public class Resolve extends SQLAdminRequest<com.google.api.services.sqladmin.model.ConnectSettings> {
1956+
1957+
private static final String REST_PATH = "v1/dns/{dnsName}/locations/{location}:resolveConnectSettings";
1958+
1959+
/**
1960+
* Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
1961+
*
1962+
* Create a request for the method "connect.resolve".
1963+
*
1964+
* This request holds the parameters needed by the the sqladmin server. After setting any
1965+
* optional parameters, call the {@link Resolve#execute()} method to invoke the remote operation.
1966+
* <p> {@link
1967+
* Resolve#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1968+
* be called to initialize this instance immediately after invoking the constructor. </p>
1969+
*
1970+
* @param dnsName Required. Cloud SQL instance ID. This does not include the project ID.
1971+
* @param location Required. The region of the instance.
1972+
* @since 1.13
1973+
*/
1974+
protected Resolve(java.lang.String dnsName, java.lang.String location) {
1975+
super(SQLAdmin.this, "GET", REST_PATH, null, com.google.api.services.sqladmin.model.ConnectSettings.class);
1976+
this.dnsName = com.google.api.client.util.Preconditions.checkNotNull(dnsName, "Required parameter dnsName must be specified.");
1977+
this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified.");
1978+
}
1979+
1980+
@Override
1981+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1982+
return super.executeUsingHead();
1983+
}
1984+
1985+
@Override
1986+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1987+
return super.buildHttpRequestUsingHead();
1988+
}
1989+
1990+
@Override
1991+
public Resolve set$Xgafv(java.lang.String $Xgafv) {
1992+
return (Resolve) super.set$Xgafv($Xgafv);
1993+
}
1994+
1995+
@Override
1996+
public Resolve setAccessToken(java.lang.String accessToken) {
1997+
return (Resolve) super.setAccessToken(accessToken);
1998+
}
1999+
2000+
@Override
2001+
public Resolve setAlt(java.lang.String alt) {
2002+
return (Resolve) super.setAlt(alt);
2003+
}
2004+
2005+
@Override
2006+
public Resolve setCallback(java.lang.String callback) {
2007+
return (Resolve) super.setCallback(callback);
2008+
}
2009+
2010+
@Override
2011+
public Resolve setFields(java.lang.String fields) {
2012+
return (Resolve) super.setFields(fields);
2013+
}
2014+
2015+
@Override
2016+
public Resolve setKey(java.lang.String key) {
2017+
return (Resolve) super.setKey(key);
2018+
}
2019+
2020+
@Override
2021+
public Resolve setOauthToken(java.lang.String oauthToken) {
2022+
return (Resolve) super.setOauthToken(oauthToken);
2023+
}
2024+
2025+
@Override
2026+
public Resolve setPrettyPrint(java.lang.Boolean prettyPrint) {
2027+
return (Resolve) super.setPrettyPrint(prettyPrint);
2028+
}
2029+
2030+
@Override
2031+
public Resolve setQuotaUser(java.lang.String quotaUser) {
2032+
return (Resolve) super.setQuotaUser(quotaUser);
2033+
}
2034+
2035+
@Override
2036+
public Resolve setUploadType(java.lang.String uploadType) {
2037+
return (Resolve) super.setUploadType(uploadType);
2038+
}
2039+
2040+
@Override
2041+
public Resolve setUploadProtocol(java.lang.String uploadProtocol) {
2042+
return (Resolve) super.setUploadProtocol(uploadProtocol);
2043+
}
2044+
2045+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
2046+
@com.google.api.client.util.Key
2047+
private java.lang.String dnsName;
2048+
2049+
/** Required. Cloud SQL instance ID. This does not include the project ID.
2050+
*/
2051+
public java.lang.String getDnsName() {
2052+
return dnsName;
2053+
}
2054+
2055+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
2056+
public Resolve setDnsName(java.lang.String dnsName) {
2057+
this.dnsName = dnsName;
2058+
return this;
2059+
}
2060+
2061+
/** Required. The region of the instance. */
2062+
@com.google.api.client.util.Key
2063+
private java.lang.String location;
2064+
2065+
/** Required. The region of the instance.
2066+
*/
2067+
public java.lang.String getLocation() {
2068+
return location;
2069+
}
2070+
2071+
/** Required. The region of the instance. */
2072+
public Resolve setLocation(java.lang.String location) {
2073+
this.location = location;
2074+
return this;
2075+
}
2076+
2077+
@Override
2078+
public Resolve set(String parameterName, Object value) {
2079+
return (Resolve) super.set(parameterName, value);
2080+
}
2081+
}
19372082

19382083
}
19392084

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/CloneContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public final class CloneContext extends com.google.api.client.json.GenericJson {
6666

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

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

224224
/**
225225
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be
226-
* connected via Private Services Access for private IP. For example:`projects/my-network-
226+
* connected via private services access for private IP. For example:`projects/my-network-
227227
* project/global/networks/my-network`. This field is only required for cross-project cloning.
228228
* @param destinationNetwork destinationNetwork or {@code null} for none
229229
*/

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PscAutoConnectionConfig.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,23 @@ public final class PscAutoConnectionConfig extends com.google.api.client.json.Ge
6262
@com.google.api.client.util.Key
6363
private java.lang.String ipAddress;
6464

65+
/**
66+
* Output only. The service connection policy created automatically for the consumer network when
67+
* `psc_auto_connection_policy_enabled` is true. It is in the format of:
68+
* `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is
69+
* in format of `$NETWORK-$RANDOM`.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private java.lang.String serviceConnectionPolicy;
74+
75+
/**
76+
* Output only. The status of service connection policy creation.
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.String serviceConnectionPolicyCreationResult;
81+
6582
/**
6683
* The connection status of the consumer endpoint.
6784
* The value may be {@code null}.
@@ -145,6 +162,46 @@ public PscAutoConnectionConfig setIpAddress(java.lang.String ipAddress) {
145162
return this;
146163
}
147164

165+
/**
166+
* Output only. The service connection policy created automatically for the consumer network when
167+
* `psc_auto_connection_policy_enabled` is true. It is in the format of:
168+
* `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is
169+
* in format of `$NETWORK-$RANDOM`.
170+
* @return value or {@code null} for none
171+
*/
172+
public java.lang.String getServiceConnectionPolicy() {
173+
return serviceConnectionPolicy;
174+
}
175+
176+
/**
177+
* Output only. The service connection policy created automatically for the consumer network when
178+
* `psc_auto_connection_policy_enabled` is true. It is in the format of:
179+
* `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is
180+
* in format of `$NETWORK-$RANDOM`.
181+
* @param serviceConnectionPolicy serviceConnectionPolicy or {@code null} for none
182+
*/
183+
public PscAutoConnectionConfig setServiceConnectionPolicy(java.lang.String serviceConnectionPolicy) {
184+
this.serviceConnectionPolicy = serviceConnectionPolicy;
185+
return this;
186+
}
187+
188+
/**
189+
* Output only. The status of service connection policy creation.
190+
* @return value or {@code null} for none
191+
*/
192+
public java.lang.String getServiceConnectionPolicyCreationResult() {
193+
return serviceConnectionPolicyCreationResult;
194+
}
195+
196+
/**
197+
* Output only. The status of service connection policy creation.
198+
* @param serviceConnectionPolicyCreationResult serviceConnectionPolicyCreationResult or {@code null} for none
199+
*/
200+
public PscAutoConnectionConfig setServiceConnectionPolicyCreationResult(java.lang.String serviceConnectionPolicyCreationResult) {
201+
this.serviceConnectionPolicyCreationResult = serviceConnectionPolicyCreationResult;
202+
return this;
203+
}
204+
148205
/**
149206
* The connection status of the consumer endpoint.
150207
* @return value or {@code null} for none

0 commit comments

Comments
 (0)