Skip to content

Commit c12ae4a

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.31.0 (#10194)
* fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 PiperOrigin-RevId: 596645164 Source-Link: googleapis/googleapis@4a0e62e Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10ed6a77676c37e60799098d48d0afb16008613 Copy-Tag: eyJwIjoiLmdpdGh1Yi9yZWxlYXNlLW5vdGUtZ2VuZXJhdGlvbi90ZXN0ZGF0YS9qYXZhLWFuYWx5dGljcy1hZG1pbi8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiLmdpdGh1Yi9yZWxlYXNlLW5vdGUtZ2VuZXJhdGlvbi90ZXN0ZGF0YS9qYXZhLW1hcHMtbWFwc3BsYXRmb3JtZGF0YXNldHMvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1hY2Nlc3NhcHByb3ZhbC8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1hY2Nlc3Njb250ZXh0bWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1hZHZpc29yeW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgi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n0= Copy-Tag: eyJwIjoiamF2YS1hcHBlbmdpbmUtYWRtaW4vLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1hcmVhMTIwLXRhYmxlcy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1hcnRpZmFjdC1yZWdpc3RyeS8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1hc3NldC8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1hc3N1cmVkLXdvcmtsb2Fkcy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1hdXRvbWwvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 89c017e commit c12ae4a

191 files changed

Lines changed: 26539 additions & 1137 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java-accessapproval/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.31.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.33.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java

Lines changed: 170 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,176 @@
8686
* such as threads. In the example above, try-with-resources is used, which automatically calls
8787
* close().
8888
*
89-
* <p>The surface of this class includes several types of Java methods for each of the API's
90-
* methods:
91-
*
92-
* <ol>
93-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
94-
* converted into function parameters. It may be the case that not all fields are available as
95-
* parameters, and not every API method will have a flattened method entry point.
96-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
97-
* which must be constructed before the call. Not every API method will have a request object
98-
* method.
99-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
100-
* callable object, which can be used to initiate calls to the service.
101-
* </ol>
89+
* <table>
90+
* <tr>
91+
* <th>Method</th>
92+
* <th>Description</th>
93+
* <th>Method Variants</th>
94+
* <tr>
95+
* <td>ListApprovalRequests</td>
96+
* <td><p> Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.</td>
97+
* <td>
98+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
99+
* <ul>
100+
* <li>listApprovalRequests(ListApprovalRequestsMessage request)
101+
* </ul>
102+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
103+
* <ul>
104+
* <li>listApprovalRequests(FolderName parent)
105+
* <li>listApprovalRequests(OrganizationName parent)
106+
* <li>listApprovalRequests(ProjectName parent)
107+
* <li>listApprovalRequests(String parent)
108+
* </ul>
109+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
110+
* <ul>
111+
* <li>listApprovalRequestsPagedCallable()
112+
* <li>listApprovalRequestsCallable()
113+
* </ul>
114+
* </td>
115+
* </tr>
116+
* <tr>
117+
* <td>GetApprovalRequest</td>
118+
* <td><p> Gets an approval request. Returns NOT_FOUND if the request does not exist.</td>
119+
* <td>
120+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
121+
* <ul>
122+
* <li>getApprovalRequest(GetApprovalRequestMessage request)
123+
* </ul>
124+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
125+
* <ul>
126+
* <li>getApprovalRequest(ApprovalRequestName name)
127+
* <li>getApprovalRequest(String name)
128+
* </ul>
129+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
130+
* <ul>
131+
* <li>getApprovalRequestCallable()
132+
* </ul>
133+
* </td>
134+
* </tr>
135+
* <tr>
136+
* <td>ApproveApprovalRequest</td>
137+
* <td><p> Approves a request and returns the updated ApprovalRequest.
138+
* <p> Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.</td>
139+
* <td>
140+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
141+
* <ul>
142+
* <li>approveApprovalRequest(ApproveApprovalRequestMessage request)
143+
* </ul>
144+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
145+
* <ul>
146+
* <li>approveApprovalRequestCallable()
147+
* </ul>
148+
* </td>
149+
* </tr>
150+
* <tr>
151+
* <td>DismissApprovalRequest</td>
152+
* <td><p> Dismisses a request. Returns the updated ApprovalRequest.
153+
* <p> NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether.
154+
* <p> Returns NOT_FOUND if the request does not exist.
155+
* <p> Returns FAILED_PRECONDITION if the request exists but is not in a pending state.</td>
156+
* <td>
157+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
158+
* <ul>
159+
* <li>dismissApprovalRequest(DismissApprovalRequestMessage request)
160+
* </ul>
161+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
162+
* <ul>
163+
* <li>dismissApprovalRequestCallable()
164+
* </ul>
165+
* </td>
166+
* </tr>
167+
* <tr>
168+
* <td>InvalidateApprovalRequest</td>
169+
* <td><p> Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
170+
* <p> NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval.
171+
* <p> Returns FAILED_PRECONDITION if the request exists but is not in an approved state.</td>
172+
* <td>
173+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
174+
* <ul>
175+
* <li>invalidateApprovalRequest(InvalidateApprovalRequestMessage request)
176+
* </ul>
177+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
178+
* <ul>
179+
* <li>invalidateApprovalRequestCallable()
180+
* </ul>
181+
* </td>
182+
* </tr>
183+
* <tr>
184+
* <td>GetAccessApprovalSettings</td>
185+
* <td><p> Gets the settings associated with a project, folder, or organization.</td>
186+
* <td>
187+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
188+
* <ul>
189+
* <li>getAccessApprovalSettings(GetAccessApprovalSettingsMessage request)
190+
* </ul>
191+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
192+
* <ul>
193+
* <li>getAccessApprovalSettings(AccessApprovalSettingsName name)
194+
* <li>getAccessApprovalSettings(String name)
195+
* </ul>
196+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
197+
* <ul>
198+
* <li>getAccessApprovalSettingsCallable()
199+
* </ul>
200+
* </td>
201+
* </tr>
202+
* <tr>
203+
* <td>UpdateAccessApprovalSettings</td>
204+
* <td><p> Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.</td>
205+
* <td>
206+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
207+
* <ul>
208+
* <li>updateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request)
209+
* </ul>
210+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
211+
* <ul>
212+
* <li>updateAccessApprovalSettings(AccessApprovalSettings settings, FieldMask updateMask)
213+
* </ul>
214+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
215+
* <ul>
216+
* <li>updateAccessApprovalSettingsCallable()
217+
* </ul>
218+
* </td>
219+
* </tr>
220+
* <tr>
221+
* <td>DeleteAccessApprovalSettings</td>
222+
* <td><p> Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.</td>
223+
* <td>
224+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
225+
* <ul>
226+
* <li>deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request)
227+
* </ul>
228+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
229+
* <ul>
230+
* <li>deleteAccessApprovalSettings(AccessApprovalSettingsName name)
231+
* <li>deleteAccessApprovalSettings(String name)
232+
* </ul>
233+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
234+
* <ul>
235+
* <li>deleteAccessApprovalSettingsCallable()
236+
* </ul>
237+
* </td>
238+
* </tr>
239+
* <tr>
240+
* <td>GetAccessApprovalServiceAccount</td>
241+
* <td><p> Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.</td>
242+
* <td>
243+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
244+
* <ul>
245+
* <li>getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage request)
246+
* </ul>
247+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
248+
* <ul>
249+
* <li>getAccessApprovalServiceAccount(String name)
250+
* </ul>
251+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
252+
* <ul>
253+
* <li>getAccessApprovalServiceAccountCallable()
254+
* </ul>
255+
* </td>
256+
* </tr>
257+
* </tr>
258+
* </table>
102259
*
103260
* <p>See the individual methods for example code.
104261
*

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,12 @@ public AccessApprovalStub createStub() throws IOException {
272272
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
273273
}
274274

275+
/** Returns the default service name. */
276+
@Override
277+
public String getServiceName() {
278+
return "accessapproval";
279+
}
280+
275281
/** Returns a builder for the default ExecutorProvider for this service. */
276282
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
277283
return InstantiatingExecutorProvider.newBuilder();

java-accesscontextmanager/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.31.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.33.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

0 commit comments

Comments
 (0)