Skip to content

Commit 0ca8604

Browse files
1 parent f410f0d commit 0ca8604

File tree

7 files changed

+330
-6
lines changed

7 files changed

+330
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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-datastream</artifactId>
25-
<version>v1-rev20241204-2.0.0</version>
25+
<version>v1-rev20250101-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-datastream:v1-rev20241204-2.0.0'
38+
implementation 'com.google.apis:google-api-services-datastream:v1-rev20250101-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-datastream/v1/2.0.0/com/google/api/services/datastream/v1/model/PostgresqlProfile.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ public final class PostgresqlProfile extends com.google.api.client.json.GenericJ
5858
@com.google.api.client.util.Key
5959
private java.lang.Integer port;
6060

61+
/**
62+
* Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not
63+
* set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only
64+
* use encryption if enabled from database side, otherwise will use unencrypted communication)
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private PostgresqlSslConfig sslConfig;
69+
6170
/**
6271
* Required. Username for the PostgreSQL connection.
6372
* The value may be {@code null}.
@@ -135,6 +144,27 @@ public PostgresqlProfile setPort(java.lang.Integer port) {
135144
return this;
136145
}
137146

147+
/**
148+
* Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not
149+
* set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only
150+
* use encryption if enabled from database side, otherwise will use unencrypted communication)
151+
* @return value or {@code null} for none
152+
*/
153+
public PostgresqlSslConfig getSslConfig() {
154+
return sslConfig;
155+
}
156+
157+
/**
158+
* Optional. SSL configuration for the PostgreSQL connection. In case PostgresqlSslConfig is not
159+
* set, the connection will use the default SSL mode, which is `prefer` (i.e. this mode will only
160+
* use encryption if enabled from database side, otherwise will use unencrypted communication)
161+
* @param sslConfig sslConfig or {@code null} for none
162+
*/
163+
public PostgresqlProfile setSslConfig(PostgresqlSslConfig sslConfig) {
164+
this.sslConfig = sslConfig;
165+
return this;
166+
}
167+
138168
/**
139169
* Required. Username for the PostgreSQL connection.
140170
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.datastream.v1.model;
18+
19+
/**
20+
* PostgreSQL SSL configuration information.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Datastream API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class PostgresqlSslConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* If this field is set, the communication will be encrypted with TLS encryption and both the
34+
* server identity and the client identity will be authenticated.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private ServerAndClientVerification serverAndClientVerification;
39+
40+
/**
41+
* If this field is set, the communication will be encrypted with TLS encryption and the server
42+
* identity will be authenticated.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private ServerVerification serverVerification;
47+
48+
/**
49+
* If this field is set, the communication will be encrypted with TLS encryption and both the
50+
* server identity and the client identity will be authenticated.
51+
* @return value or {@code null} for none
52+
*/
53+
public ServerAndClientVerification getServerAndClientVerification() {
54+
return serverAndClientVerification;
55+
}
56+
57+
/**
58+
* If this field is set, the communication will be encrypted with TLS encryption and both the
59+
* server identity and the client identity will be authenticated.
60+
* @param serverAndClientVerification serverAndClientVerification or {@code null} for none
61+
*/
62+
public PostgresqlSslConfig setServerAndClientVerification(ServerAndClientVerification serverAndClientVerification) {
63+
this.serverAndClientVerification = serverAndClientVerification;
64+
return this;
65+
}
66+
67+
/**
68+
* If this field is set, the communication will be encrypted with TLS encryption and the server
69+
* identity will be authenticated.
70+
* @return value or {@code null} for none
71+
*/
72+
public ServerVerification getServerVerification() {
73+
return serverVerification;
74+
}
75+
76+
/**
77+
* If this field is set, the communication will be encrypted with TLS encryption and the server
78+
* identity will be authenticated.
79+
* @param serverVerification serverVerification or {@code null} for none
80+
*/
81+
public PostgresqlSslConfig setServerVerification(ServerVerification serverVerification) {
82+
this.serverVerification = serverVerification;
83+
return this;
84+
}
85+
86+
@Override
87+
public PostgresqlSslConfig set(String fieldName, Object value) {
88+
return (PostgresqlSslConfig) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public PostgresqlSslConfig clone() {
93+
return (PostgresqlSslConfig) super.clone();
94+
}
95+
96+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.datastream.v1.model;
18+
19+
/**
20+
* Message represents the option where Datastream will enforce the encryption and authenticate the
21+
* server identity as well as the client identity. ca_certificate, client_certificate and client_key
22+
* must be set if user selects this option.
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Datastream API. For a detailed explanation see:
26+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class ServerAndClientVerification extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. Input only. PEM-encoded server root CA certificate.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String caCertificate;
40+
41+
/**
42+
* Required. Input only. PEM-encoded certificate used by the source database to authenticate the
43+
* client identity (i.e., the Datastream's identity). This certificate is signed by either a root
44+
* certificate trusted by the server or one or more intermediate certificates (which is stored
45+
* with the leaf certificate) to link the this certificate to the trusted root certificate.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.lang.String clientCertificate;
50+
51+
/**
52+
* Required. Input only. PEM-encoded private key associated with the client certificate. This
53+
* value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate
54+
* the client's identity, i.e. identity of the Datastream.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String clientKey;
59+
60+
/**
61+
* Required. Input only. PEM-encoded server root CA certificate.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.String getCaCertificate() {
65+
return caCertificate;
66+
}
67+
68+
/**
69+
* Required. Input only. PEM-encoded server root CA certificate.
70+
* @param caCertificate caCertificate or {@code null} for none
71+
*/
72+
public ServerAndClientVerification setCaCertificate(java.lang.String caCertificate) {
73+
this.caCertificate = caCertificate;
74+
return this;
75+
}
76+
77+
/**
78+
* Required. Input only. PEM-encoded certificate used by the source database to authenticate the
79+
* client identity (i.e., the Datastream's identity). This certificate is signed by either a root
80+
* certificate trusted by the server or one or more intermediate certificates (which is stored
81+
* with the leaf certificate) to link the this certificate to the trusted root certificate.
82+
* @return value or {@code null} for none
83+
*/
84+
public java.lang.String getClientCertificate() {
85+
return clientCertificate;
86+
}
87+
88+
/**
89+
* Required. Input only. PEM-encoded certificate used by the source database to authenticate the
90+
* client identity (i.e., the Datastream's identity). This certificate is signed by either a root
91+
* certificate trusted by the server or one or more intermediate certificates (which is stored
92+
* with the leaf certificate) to link the this certificate to the trusted root certificate.
93+
* @param clientCertificate clientCertificate or {@code null} for none
94+
*/
95+
public ServerAndClientVerification setClientCertificate(java.lang.String clientCertificate) {
96+
this.clientCertificate = clientCertificate;
97+
return this;
98+
}
99+
100+
/**
101+
* Required. Input only. PEM-encoded private key associated with the client certificate. This
102+
* value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate
103+
* the client's identity, i.e. identity of the Datastream.
104+
* @return value or {@code null} for none
105+
*/
106+
public java.lang.String getClientKey() {
107+
return clientKey;
108+
}
109+
110+
/**
111+
* Required. Input only. PEM-encoded private key associated with the client certificate. This
112+
* value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate
113+
* the client's identity, i.e. identity of the Datastream.
114+
* @param clientKey clientKey or {@code null} for none
115+
*/
116+
public ServerAndClientVerification setClientKey(java.lang.String clientKey) {
117+
this.clientKey = clientKey;
118+
return this;
119+
}
120+
121+
@Override
122+
public ServerAndClientVerification set(String fieldName, Object value) {
123+
return (ServerAndClientVerification) super.set(fieldName, value);
124+
}
125+
126+
@Override
127+
public ServerAndClientVerification clone() {
128+
return (ServerAndClientVerification) super.clone();
129+
}
130+
131+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.datastream.v1.model;
18+
19+
/**
20+
* Message represents the option where Datastream will enforce the encryption and authenticate the
21+
* server identity. ca_certificate must be set if user selects this option.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Datastream API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class ServerVerification extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. Input only. PEM-encoded server root CA certificate.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String caCertificate;
39+
40+
/**
41+
* Required. Input only. PEM-encoded server root CA certificate.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getCaCertificate() {
45+
return caCertificate;
46+
}
47+
48+
/**
49+
* Required. Input only. PEM-encoded server root CA certificate.
50+
* @param caCertificate caCertificate or {@code null} for none
51+
*/
52+
public ServerVerification setCaCertificate(java.lang.String caCertificate) {
53+
this.caCertificate = caCertificate;
54+
return this;
55+
}
56+
57+
@Override
58+
public ServerVerification set(String fieldName, Object value) {
59+
return (ServerVerification) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public ServerVerification clone() {
64+
return (ServerVerification) super.clone();
65+
}
66+
67+
}

clients/google-api-services-datastream/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-datastream</artifactId>
11-
<version>v1-rev20241204-2.0.0</version>
12-
<name>Datastream API v1-rev20241204-2.0.0</name>
11+
<version>v1-rev20250101-2.0.0</version>
12+
<name>Datastream API v1-rev20250101-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-datastream/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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-datastream</artifactId>
25-
<version>v1-rev20241204-2.0.0</version>
25+
<version>v1-rev20250101-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-datastream:v1-rev20241204-2.0.0'
38+
implementation 'com.google.apis:google-api-services-datastream:v1-rev20250101-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)