-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for transfers between file systems feat: add support for metadata preservation feat: add support for transferring a specific list of objects (manifest) feat: add support for Cloud Logging PiperOrigin-RevId: 439424192 Source-Link: googleapis/googleapis@bf69826 Source-Link: googleapis/googleapis-gen@eae2013 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU3RvcmFnZVRyYW5zZmVyLlYxLy5Pd2xCb3QueWFtbCIsImgiOiJlYWUyMDEzYmYwMDg2NDc1ZGYyNWY5NjM3MWE0Y2E3ZTc1ZjIwZmFiIn0=
- Loading branch information
1 parent
5f679e6
commit 28de985
Showing
29 changed files
with
8,836 additions
and
877 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...ansfer.V1.GeneratedSnippets/StorageTransferServiceClient.CreateAgentPoolAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_async_flattened] | ||
using Google.Cloud.StorageTransfer.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateAgentPoolAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task CreateAgentPoolAsync() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = await StorageTransferServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string projectId = ""; | ||
AgentPool agentPool = new AgentPool(); | ||
string agentPoolId = ""; | ||
// Make the request | ||
AgentPool response = await storageTransferServiceClient.CreateAgentPoolAsync(projectId, agentPool, agentPoolId); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_async_flattened] | ||
} |
46 changes: 46 additions & 0 deletions
46
...eratedSnippets/StorageTransferServiceClient.CreateAgentPoolRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_async] | ||
using Google.Cloud.StorageTransfer.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateAgentPoolAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task CreateAgentPoolRequestObjectAsync() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = await StorageTransferServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
CreateAgentPoolRequest request = new CreateAgentPoolRequest | ||
{ | ||
ProjectId = "", | ||
AgentPool = new AgentPool(), | ||
AgentPoolId = "", | ||
}; | ||
// Make the request | ||
AgentPool response = await storageTransferServiceClient.CreateAgentPoolAsync(request); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_async] | ||
} |
45 changes: 45 additions & 0 deletions
45
...1.GeneratedSnippets/StorageTransferServiceClient.CreateAgentPoolRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_sync] | ||
using Google.Cloud.StorageTransfer.V1; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateAgentPool</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void CreateAgentPoolRequestObject() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = StorageTransferServiceClient.Create(); | ||
// Initialize request argument(s) | ||
CreateAgentPoolRequest request = new CreateAgentPoolRequest | ||
{ | ||
ProjectId = "", | ||
AgentPool = new AgentPool(), | ||
AgentPoolId = "", | ||
}; | ||
// Make the request | ||
AgentPool response = storageTransferServiceClient.CreateAgentPool(request); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_sync] | ||
} |
42 changes: 42 additions & 0 deletions
42
...ageTransfer.V1.GeneratedSnippets/StorageTransferServiceClient.CreateAgentPoolSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_sync_flattened] | ||
using Google.Cloud.StorageTransfer.V1; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateAgentPool</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void CreateAgentPool() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = StorageTransferServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string projectId = ""; | ||
AgentPool agentPool = new AgentPool(); | ||
string agentPoolId = ""; | ||
// Make the request | ||
AgentPool response = storageTransferServiceClient.CreateAgentPool(projectId, agentPool, agentPoolId); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_sync_flattened] | ||
} |
41 changes: 41 additions & 0 deletions
41
...ansfer.V1.GeneratedSnippets/StorageTransferServiceClient.DeleteAgentPoolAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_async_flattened] | ||
using Google.Cloud.StorageTransfer.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentPoolAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task DeleteAgentPoolAsync() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = await StorageTransferServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = ""; | ||
// Make the request | ||
await storageTransferServiceClient.DeleteAgentPoolAsync(name); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_async_flattened] | ||
} |
41 changes: 41 additions & 0 deletions
41
...eratedSnippets/StorageTransferServiceClient.DeleteAgentPoolRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_async] | ||
using Google.Cloud.StorageTransfer.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentPoolAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task DeleteAgentPoolRequestObjectAsync() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = await StorageTransferServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
DeleteAgentPoolRequest request = new DeleteAgentPoolRequest { Name = "", }; | ||
// Make the request | ||
await storageTransferServiceClient.DeleteAgentPoolAsync(request); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_async] | ||
} |
40 changes: 40 additions & 0 deletions
40
...1.GeneratedSnippets/StorageTransferServiceClient.DeleteAgentPoolRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_sync] | ||
using Google.Cloud.StorageTransfer.V1; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentPool</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void DeleteAgentPoolRequestObject() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = StorageTransferServiceClient.Create(); | ||
// Initialize request argument(s) | ||
DeleteAgentPoolRequest request = new DeleteAgentPoolRequest { Name = "", }; | ||
// Make the request | ||
storageTransferServiceClient.DeleteAgentPool(request); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_sync] | ||
} |
40 changes: 40 additions & 0 deletions
40
...ageTransfer.V1.GeneratedSnippets/StorageTransferServiceClient.DeleteAgentPoolSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_sync_flattened] | ||
using Google.Cloud.StorageTransfer.V1; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentPool</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void DeleteAgentPool() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = StorageTransferServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string name = ""; | ||
// Make the request | ||
storageTransferServiceClient.DeleteAgentPool(name); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_sync_flattened] | ||
} |
41 changes: 41 additions & 0 deletions
41
...eTransfer.V1.GeneratedSnippets/StorageTransferServiceClient.GetAgentPoolAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.StorageTransfer.V1.Snippets | ||
{ | ||
// [START storagetransfer_v1_generated_StorageTransferService_GetAgentPool_async_flattened] | ||
using Google.Cloud.StorageTransfer.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedStorageTransferServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetAgentPoolAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task GetAgentPoolAsync() | ||
{ | ||
// Create client | ||
StorageTransferServiceClient storageTransferServiceClient = await StorageTransferServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = ""; | ||
// Make the request | ||
AgentPool response = await storageTransferServiceClient.GetAgentPoolAsync(name); | ||
} | ||
} | ||
// [END storagetransfer_v1_generated_StorageTransferService_GetAgentPool_async_flattened] | ||
} |
Oops, something went wrong.