Skip to content

Commit 0e2e149

Browse files
1 parent e43a7ce commit 0e2e149

File tree

14 files changed

+358
-53
lines changed

14 files changed

+358
-53
lines changed

clients/google-api-services-pubsub/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-pubsub</artifactId>
25-
<version>v1-rev20231212-2.0.0</version>
25+
<version>v1-rev20240126-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-pubsub:v1-rev20231212-2.0.0'
38+
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20240126-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/Pubsub.java

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,10 +3124,10 @@ public List set(String parameterName, Object value) {
31243124
}
31253125
}
31263126
/**
3127-
* Updates an existing snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs
3128-
* /replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is,
3129-
* you can set the acknowledgment state of messages in an existing subscription to the state
3130-
* captured by a snapshot.
3127+
* Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are
3128+
* used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you
3129+
* to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of
3130+
* messages in an existing subscription to the state captured by a snapshot.
31313131
*
31323132
* Create a request for the method "snapshots.patch".
31333133
*
@@ -3152,10 +3152,10 @@ public class Patch extends PubsubRequest<com.google.api.services.pubsub.model.Sn
31523152
java.util.regex.Pattern.compile("^projects/[^/]+/snapshots/[^/]+$");
31533153

31543154
/**
3155-
* Updates an existing snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs
3156-
* /replay-overview) operations, which allow you to manage message acknowledgments in bulk. That
3157-
* is, you can set the acknowledgment state of messages in an existing subscription to the state
3158-
* captured by a snapshot.
3155+
* Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are
3156+
* used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow
3157+
* you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of
3158+
* messages in an existing subscription to the state captured by a snapshot.
31593159
*
31603160
* Create a request for the method "snapshots.patch".
31613161
*
@@ -4985,8 +4985,8 @@ public ModifyPushConfig set(String parameterName, Object value) {
49854985
}
49864986
}
49874987
/**
4988-
* Updates an existing subscription. Note that certain properties of a subscription, such as its
4989-
* topic, are not modifiable.
4988+
* Updates an existing subscription by updating the fields specified in the update mask. Note that
4989+
* certain properties of a subscription, such as its topic, are not modifiable.
49904990
*
49914991
* Create a request for the method "subscriptions.patch".
49924992
*
@@ -5015,8 +5015,8 @@ public class Patch extends PubsubRequest<com.google.api.services.pubsub.model.Su
50155015
java.util.regex.Pattern.compile("^projects/[^/]+/subscriptions/[^/]+$");
50165016

50175017
/**
5018-
* Updates an existing subscription. Note that certain properties of a subscription, such as its
5019-
* topic, are not modifiable.
5018+
* Updates an existing subscription by updating the fields specified in the update mask. Note that
5019+
* certain properties of a subscription, such as its topic, are not modifiable.
50205020
*
50215021
* Create a request for the method "subscriptions.patch".
50225022
*
@@ -6556,7 +6556,8 @@ public List set(String parameterName, Object value) {
65566556
}
65576557
}
65586558
/**
6559-
* Updates an existing topic. Note that certain properties of a topic are not modifiable.
6559+
* Updates an existing topic by updating the fields specified in the update mask. Note that certain
6560+
* properties of a topic are not modifiable.
65606561
*
65616562
* Create a request for the method "topics.patch".
65626563
*
@@ -6585,7 +6586,8 @@ public class Patch extends PubsubRequest<com.google.api.services.pubsub.model.To
65856586
java.util.regex.Pattern.compile("^projects/[^/]+/topics/[^/]+$");
65866587

65876588
/**
6588-
* Updates an existing topic. Note that certain properties of a topic are not modifiable.
6589+
* Updates an existing topic by updating the fields specified in the update mask. Note that
6590+
* certain properties of a topic are not modifiable.
65896591
*
65906592
* Create a request for the method "topics.patch".
65916593
*
Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
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.pubsub.model;
18+
19+
/**
20+
* Ingestion settings for Amazon Kinesis Data Streams.
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 Cloud Pub/Sub 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 AwsKinesis extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the
34+
* Pub/Sub docs for how to set up this role and the required permissions that need to be attached
35+
* to it.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String awsRoleArn;
40+
41+
/**
42+
* Required. The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer
43+
* must be already created and ready to be used.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String consumerArn;
48+
49+
/**
50+
* Required. The GCP service account to be used for Federated Identity authentication with Kinesis
51+
* (via a `AssumeRoleWithWebIdentity` call for the provided role). The `aws_role_arn` must be set
52+
* up with `accounts.google.com:sub` equals to this service account number.
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.String gcpServiceAccount;
57+
58+
/**
59+
* Output only. An output-only field that indicates the state of the Kinesis ingestion source.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private java.lang.String state;
64+
65+
/**
66+
* Required. The Kinesis stream ARN to ingest data from.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private java.lang.String streamArn;
71+
72+
/**
73+
* Required. AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the
74+
* Pub/Sub docs for how to set up this role and the required permissions that need to be attached
75+
* to it.
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.String getAwsRoleArn() {
79+
return awsRoleArn;
80+
}
81+
82+
/**
83+
* Required. AWS role ARN to be used for Federated Identity authentication with Kinesis. Check the
84+
* Pub/Sub docs for how to set up this role and the required permissions that need to be attached
85+
* to it.
86+
* @param awsRoleArn awsRoleArn or {@code null} for none
87+
*/
88+
public AwsKinesis setAwsRoleArn(java.lang.String awsRoleArn) {
89+
this.awsRoleArn = awsRoleArn;
90+
return this;
91+
}
92+
93+
/**
94+
* Required. The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer
95+
* must be already created and ready to be used.
96+
* @return value or {@code null} for none
97+
*/
98+
public java.lang.String getConsumerArn() {
99+
return consumerArn;
100+
}
101+
102+
/**
103+
* Required. The Kinesis consumer ARN to used for ingestion in Enhanced Fan-Out mode. The consumer
104+
* must be already created and ready to be used.
105+
* @param consumerArn consumerArn or {@code null} for none
106+
*/
107+
public AwsKinesis setConsumerArn(java.lang.String consumerArn) {
108+
this.consumerArn = consumerArn;
109+
return this;
110+
}
111+
112+
/**
113+
* Required. The GCP service account to be used for Federated Identity authentication with Kinesis
114+
* (via a `AssumeRoleWithWebIdentity` call for the provided role). The `aws_role_arn` must be set
115+
* up with `accounts.google.com:sub` equals to this service account number.
116+
* @return value or {@code null} for none
117+
*/
118+
public java.lang.String getGcpServiceAccount() {
119+
return gcpServiceAccount;
120+
}
121+
122+
/**
123+
* Required. The GCP service account to be used for Federated Identity authentication with Kinesis
124+
* (via a `AssumeRoleWithWebIdentity` call for the provided role). The `aws_role_arn` must be set
125+
* up with `accounts.google.com:sub` equals to this service account number.
126+
* @param gcpServiceAccount gcpServiceAccount or {@code null} for none
127+
*/
128+
public AwsKinesis setGcpServiceAccount(java.lang.String gcpServiceAccount) {
129+
this.gcpServiceAccount = gcpServiceAccount;
130+
return this;
131+
}
132+
133+
/**
134+
* Output only. An output-only field that indicates the state of the Kinesis ingestion source.
135+
* @return value or {@code null} for none
136+
*/
137+
public java.lang.String getState() {
138+
return state;
139+
}
140+
141+
/**
142+
* Output only. An output-only field that indicates the state of the Kinesis ingestion source.
143+
* @param state state or {@code null} for none
144+
*/
145+
public AwsKinesis setState(java.lang.String state) {
146+
this.state = state;
147+
return this;
148+
}
149+
150+
/**
151+
* Required. The Kinesis stream ARN to ingest data from.
152+
* @return value or {@code null} for none
153+
*/
154+
public java.lang.String getStreamArn() {
155+
return streamArn;
156+
}
157+
158+
/**
159+
* Required. The Kinesis stream ARN to ingest data from.
160+
* @param streamArn streamArn or {@code null} for none
161+
*/
162+
public AwsKinesis setStreamArn(java.lang.String streamArn) {
163+
this.streamArn = streamArn;
164+
return this;
165+
}
166+
167+
@Override
168+
public AwsKinesis set(String fieldName, Object value) {
169+
return (AwsKinesis) super.set(fieldName, value);
170+
}
171+
172+
@Override
173+
public AwsKinesis clone() {
174+
return (AwsKinesis) super.clone();
175+
}
176+
177+
}

clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/Binding.java

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

9595
/**
9696
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`,
97-
* `roles/editor`, or `roles/owner`.
97+
* `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the
98+
* [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the
99+
* available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
98100
* The value may be {@code null}.
99101
*/
100102
@com.google.api.client.util.Key
@@ -234,7 +236,9 @@ public Binding setMembers(java.util.List<java.lang.String> members) {
234236

235237
/**
236238
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`,
237-
* `roles/editor`, or `roles/owner`.
239+
* `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the
240+
* [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the
241+
* available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
238242
* @return value or {@code null} for none
239243
*/
240244
public java.lang.String getRole() {
@@ -243,7 +247,9 @@ public java.lang.String getRole() {
243247

244248
/**
245249
* Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`,
246-
* `roles/editor`, or `roles/owner`.
250+
* `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the
251+
* [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the
252+
* available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
247253
* @param role role or {@code null} for none
248254
*/
249255
public Binding setRole(java.lang.String role) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.pubsub.model;
18+
19+
/**
20+
* Settings for an ingestion data source on a topic.
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 Cloud Pub/Sub 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 IngestionDataSourceSettings extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Amazon Kinesis Data Streams.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private AwsKinesis awsKinesis;
38+
39+
/**
40+
* Optional. Amazon Kinesis Data Streams.
41+
* @return value or {@code null} for none
42+
*/
43+
public AwsKinesis getAwsKinesis() {
44+
return awsKinesis;
45+
}
46+
47+
/**
48+
* Optional. Amazon Kinesis Data Streams.
49+
* @param awsKinesis awsKinesis or {@code null} for none
50+
*/
51+
public IngestionDataSourceSettings setAwsKinesis(AwsKinesis awsKinesis) {
52+
this.awsKinesis = awsKinesis;
53+
return this;
54+
}
55+
56+
@Override
57+
public IngestionDataSourceSettings set(String fieldName, Object value) {
58+
return (IngestionDataSourceSettings) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public IngestionDataSourceSettings clone() {
63+
return (IngestionDataSourceSettings) super.clone();
64+
}
65+
66+
}

clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/ModifyAckDeadlineRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public final class ModifyAckDeadlineRequest extends com.google.api.client.json.G
3535
* `ModifyAckDeadline` call was made. Specifying zero might immediately make the message available
3636
* for delivery to another subscriber client. This typically results in an increase in the rate of
3737
* message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds.
38-
* The maximum deadline you can specify is 600 seconds (10 minutes).
38+
* The maximum deadline you can specify in a single request is 600 seconds (10 minutes).
3939
* The value may be {@code null}.
4040
*/
4141
@com.google.api.client.util.Key
@@ -54,7 +54,7 @@ public final class ModifyAckDeadlineRequest extends com.google.api.client.json.G
5454
* `ModifyAckDeadline` call was made. Specifying zero might immediately make the message available
5555
* for delivery to another subscriber client. This typically results in an increase in the rate of
5656
* message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds.
57-
* The maximum deadline you can specify is 600 seconds (10 minutes).
57+
* The maximum deadline you can specify in a single request is 600 seconds (10 minutes).
5858
* @return value or {@code null} for none
5959
*/
6060
public java.lang.Integer getAckDeadlineSeconds() {
@@ -67,7 +67,7 @@ public java.lang.Integer getAckDeadlineSeconds() {
6767
* `ModifyAckDeadline` call was made. Specifying zero might immediately make the message available
6868
* for delivery to another subscriber client. This typically results in an increase in the rate of
6969
* message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds.
70-
* The maximum deadline you can specify is 600 seconds (10 minutes).
70+
* The maximum deadline you can specify in a single request is 600 seconds (10 minutes).
7171
* @param ackDeadlineSeconds ackDeadlineSeconds or {@code null} for none
7272
*/
7373
public ModifyAckDeadlineRequest setAckDeadlineSeconds(java.lang.Integer ackDeadlineSeconds) {

0 commit comments

Comments
 (0)