Skip to content

Commit 581120f

Browse files
feat: Update routing annotation for CreateBucketRequest (#1892)
* feat: Update routing annotation for CreateBucketRequest * docs: Add support for end-to-end checksumming in the gRPC WriteObject flow * feat!: rename Notification to NotificationConfig PiperOrigin-RevId: 507867795 Source-Link: googleapis/googleapis@604534e Source-Link: https://github.com/googleapis/googleapis-gen/commit/fad2c06a87b9109850f3e8320a0ed27e14b2a065 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmFkMmMwNmE4N2I5MTA5ODUwZjNlODMyMGEwZWQyN2UxNGIyYTA2NSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update clirr config * chore: update usages of Notification to NotificationConfig --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: BenWhitehead <[email protected]>
1 parent ca8510e commit 581120f

29 files changed

+2460
-2251
lines changed

gapic-google-cloud-storage-v2/clirr-ignored-differences.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,20 @@
2727
<className>com/google/storage/v2/stub/HttpJsonStorageStub</className>
2828
</difference>
2929

30+
<!-- Allow rename from Notification to NotificationConfig-->
31+
<difference>
32+
<differenceType>7002</differenceType>
33+
<className>com/google/storage/v2/*</className>
34+
<method>* *Notification*(*)</method>
35+
</difference>
36+
<difference>
37+
<differenceType>7002</differenceType>
38+
<className>com/google/storage/v2/stub/*</className>
39+
<method>* *Notification*(*)</method>
40+
</difference>
41+
<difference>
42+
<differenceType>8001</differenceType>
43+
<className>com/google/storage/v2/StorageClient$ListNotification*</className>
44+
</difference>
45+
3046
</differences>

gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java

Lines changed: 211 additions & 179 deletions
Large diffs are not rendered by default.

gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import static com.google.storage.v2.StorageClient.ListBucketsPagedResponse;
2020
import static com.google.storage.v2.StorageClient.ListHmacKeysPagedResponse;
21-
import static com.google.storage.v2.StorageClient.ListNotificationsPagedResponse;
21+
import static com.google.storage.v2.StorageClient.ListNotificationConfigsPagedResponse;
2222
import static com.google.storage.v2.StorageClient.ListObjectsPagedResponse;
2323

2424
import com.google.api.core.ApiFunction;
@@ -132,26 +132,31 @@ public UnaryCallSettings<UpdateBucketRequest, Bucket> updateBucketSettings() {
132132
return ((StorageStubSettings) getStubSettings()).updateBucketSettings();
133133
}
134134

135-
/** Returns the object with the settings used for calls to deleteNotification. */
136-
public UnaryCallSettings<DeleteNotificationRequest, Empty> deleteNotificationSettings() {
137-
return ((StorageStubSettings) getStubSettings()).deleteNotificationSettings();
135+
/** Returns the object with the settings used for calls to deleteNotificationConfig. */
136+
public UnaryCallSettings<DeleteNotificationConfigRequest, Empty>
137+
deleteNotificationConfigSettings() {
138+
return ((StorageStubSettings) getStubSettings()).deleteNotificationConfigSettings();
138139
}
139140

140-
/** Returns the object with the settings used for calls to getNotification. */
141-
public UnaryCallSettings<GetNotificationRequest, Notification> getNotificationSettings() {
142-
return ((StorageStubSettings) getStubSettings()).getNotificationSettings();
141+
/** Returns the object with the settings used for calls to getNotificationConfig. */
142+
public UnaryCallSettings<GetNotificationConfigRequest, NotificationConfig>
143+
getNotificationConfigSettings() {
144+
return ((StorageStubSettings) getStubSettings()).getNotificationConfigSettings();
143145
}
144146

145-
/** Returns the object with the settings used for calls to createNotification. */
146-
public UnaryCallSettings<CreateNotificationRequest, Notification> createNotificationSettings() {
147-
return ((StorageStubSettings) getStubSettings()).createNotificationSettings();
147+
/** Returns the object with the settings used for calls to createNotificationConfig. */
148+
public UnaryCallSettings<CreateNotificationConfigRequest, NotificationConfig>
149+
createNotificationConfigSettings() {
150+
return ((StorageStubSettings) getStubSettings()).createNotificationConfigSettings();
148151
}
149152

150-
/** Returns the object with the settings used for calls to listNotifications. */
153+
/** Returns the object with the settings used for calls to listNotificationConfigs. */
151154
public PagedCallSettings<
152-
ListNotificationsRequest, ListNotificationsResponse, ListNotificationsPagedResponse>
153-
listNotificationsSettings() {
154-
return ((StorageStubSettings) getStubSettings()).listNotificationsSettings();
155+
ListNotificationConfigsRequest,
156+
ListNotificationConfigsResponse,
157+
ListNotificationConfigsPagedResponse>
158+
listNotificationConfigsSettings() {
159+
return ((StorageStubSettings) getStubSettings()).listNotificationConfigsSettings();
155160
}
156161

157162
/** Returns the object with the settings used for calls to composeObject. */
@@ -389,29 +394,31 @@ public UnaryCallSettings.Builder<UpdateBucketRequest, Bucket> updateBucketSettin
389394
return getStubSettingsBuilder().updateBucketSettings();
390395
}
391396

392-
/** Returns the builder for the settings used for calls to deleteNotification. */
393-
public UnaryCallSettings.Builder<DeleteNotificationRequest, Empty>
394-
deleteNotificationSettings() {
395-
return getStubSettingsBuilder().deleteNotificationSettings();
397+
/** Returns the builder for the settings used for calls to deleteNotificationConfig. */
398+
public UnaryCallSettings.Builder<DeleteNotificationConfigRequest, Empty>
399+
deleteNotificationConfigSettings() {
400+
return getStubSettingsBuilder().deleteNotificationConfigSettings();
396401
}
397402

398-
/** Returns the builder for the settings used for calls to getNotification. */
399-
public UnaryCallSettings.Builder<GetNotificationRequest, Notification>
400-
getNotificationSettings() {
401-
return getStubSettingsBuilder().getNotificationSettings();
403+
/** Returns the builder for the settings used for calls to getNotificationConfig. */
404+
public UnaryCallSettings.Builder<GetNotificationConfigRequest, NotificationConfig>
405+
getNotificationConfigSettings() {
406+
return getStubSettingsBuilder().getNotificationConfigSettings();
402407
}
403408

404-
/** Returns the builder for the settings used for calls to createNotification. */
405-
public UnaryCallSettings.Builder<CreateNotificationRequest, Notification>
406-
createNotificationSettings() {
407-
return getStubSettingsBuilder().createNotificationSettings();
409+
/** Returns the builder for the settings used for calls to createNotificationConfig. */
410+
public UnaryCallSettings.Builder<CreateNotificationConfigRequest, NotificationConfig>
411+
createNotificationConfigSettings() {
412+
return getStubSettingsBuilder().createNotificationConfigSettings();
408413
}
409414

410-
/** Returns the builder for the settings used for calls to listNotifications. */
415+
/** Returns the builder for the settings used for calls to listNotificationConfigs. */
411416
public PagedCallSettings.Builder<
412-
ListNotificationsRequest, ListNotificationsResponse, ListNotificationsPagedResponse>
413-
listNotificationsSettings() {
414-
return getStubSettingsBuilder().listNotificationsSettings();
417+
ListNotificationConfigsRequest,
418+
ListNotificationConfigsResponse,
419+
ListNotificationConfigsPagedResponse>
420+
listNotificationConfigsSettings() {
421+
return getStubSettingsBuilder().listNotificationConfigsSettings();
415422
}
416423

417424
/** Returns the builder for the settings used for calls to composeObject. */

0 commit comments

Comments
 (0)