|
20 | 20 | * Service definition for SQLAdmin (v1). |
21 | 21 | * |
22 | 22 | * <p> |
23 | | - * API for Cloud SQL database instance management |
| 23 | + * Cloud SQL Admin API |
24 | 24 | * </p> |
25 | 25 | * |
26 | 26 | * <p> |
@@ -1934,6 +1934,151 @@ public Get set(String parameterName, Object value) { |
1934 | 1934 | return (Get) super.set(parameterName, value); |
1935 | 1935 | } |
1936 | 1936 | } |
| 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 | + } |
1937 | 2082 |
|
1938 | 2083 | } |
1939 | 2084 |
|
|
0 commit comments