Skip to content

Commit

Permalink
feat: add support for Agent Pools
Browse files Browse the repository at this point in the history
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
gcf-owl-bot[bot] authored and jskeet committed Apr 5, 2022
1 parent 5f679e6 commit 28de985
Show file tree
Hide file tree
Showing 29 changed files with 8,836 additions and 877 deletions.
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}

0 comments on commit 28de985

Please sign in to comment.