Skip to content

Commit

Permalink
feat: add soft_delete_time and hard_delete_time object metadata fields (
Browse files Browse the repository at this point in the history
#2415)

* feat: Add an API method for reordering firewall policies

PiperOrigin-RevId: 607015517

Source-Link: googleapis/googleapis@c43e216

Source-Link: googleapis/googleapis-gen@71c27ad
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzFjMjdhZGM5NmIwYzgwMDkzYjRhNDEzODE1YmQ5Mzk0MzE5NmJiMiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add soft_delete_time and hard_delete_time object metadata fields

PiperOrigin-RevId: 609782289

Source-Link: googleapis/googleapis@a8bcfb6

Source-Link: googleapis/googleapis-gen@6827329
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjgyNzMyOWMyYTViZDY4MzA1MDU3MWE0ZDcxYmI4NGRjZWYzOTFkOSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add clirr ignore

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Lovelace <jesselovelace@google.com>
  • Loading branch information
3 people committed Feb 26, 2024
1 parent 45837d3 commit 0b67e2d
Show file tree
Hide file tree
Showing 32 changed files with 981 additions and 183 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,6 @@
import static com.google.storage.v2.StorageClient.ListObjectsPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
Expand Down Expand Up @@ -293,7 +292,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return StorageStubSettings.defaultTransportChannelProvider();
}

@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return StorageStubSettings.defaultApiClientHeaderProviderBuilder();
}
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,7 +23,6 @@

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -678,7 +677,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return defaultGrpcTransportProviderBuilder().build();
}

@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return ApiClientHeaderProvider.newBuilder()
.setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(StorageStubSettings.class))
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1382,6 +1382,8 @@ public void composeObjectTest() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down Expand Up @@ -1636,6 +1638,8 @@ public void restoreObjectTest() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down Expand Up @@ -1708,6 +1712,8 @@ public void restoreObjectTest2() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down Expand Up @@ -1817,6 +1823,8 @@ public void getObjectTest() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down Expand Up @@ -1886,6 +1894,8 @@ public void getObjectTest2() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down Expand Up @@ -1955,6 +1965,8 @@ public void getObjectTest3() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down Expand Up @@ -2027,6 +2039,8 @@ public void getObjectTest4() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down Expand Up @@ -2170,6 +2184,8 @@ public void updateObjectTest() throws Exception {
.setOwner(Owner.newBuilder().build())
.setCustomerEncryption(CustomerEncryption.newBuilder().build())
.setCustomTime(Timestamp.newBuilder().build())
.setSoftDeleteTime(Timestamp.newBuilder().build())
.setHardDeleteTime(Timestamp.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);

Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,7 +19,6 @@
import static com.google.storage.control.v2.StorageControlClient.ListFoldersPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
Expand Down Expand Up @@ -148,7 +147,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return StorageControlStubSettings.defaultTransportChannelProvider();
}

@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return StorageControlStubSettings.defaultApiClientHeaderProviderBuilder();
}
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -277,7 +277,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() {
return defaultGrpcTransportProviderBuilder().build();
}

@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return ApiClientHeaderProvider.newBuilder()
.setGeneratedLibToken(
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
11 changes: 11 additions & 0 deletions proto-google-cloud-storage-v2/clirr-ignored-differences.xml
Expand Up @@ -55,4 +55,15 @@
<className>com/google/storage/v2/*</className>
<method>* *SoftDeleted*(*)</method>
</difference>

<difference>
<differenceType>7012</differenceType>
<className>com/google/storage/v2/*</className>
<method>* *SoftDeleteTime*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/storage/v2/*</className>
<method>* *HardDeleteTime*(*)</method>
</difference>
</differences>
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 0b67e2d

Please sign in to comment.