Skip to content

Commit 08e83d9

Browse files
regen: Regenerate Google.Cloud.NetApp.V1 at API commit a90dc55
feat: Add ONTAP passthrough APIs Adds the following new methods for direct ONTAP API interaction: - ExecuteOntapPost - ExecuteOntapGet - ExecuteOntapDelete - ExecuteOntapPatch `StoragePoolType` docs: A comment for field `source_volume` in message `.google.cloud.netapp.v1.Backup` is changed docs: A comment for field `type` in message `.google.cloud.netapp.v1.StoragePool` is changed docs: A comment for field `source_backup` in message `.google.cloud.netapp.v1.RestoreParameters` is changed fix!: An existing value `UNIFIED_LARGE_CAPACITY` is removed from enum `StoragePoolType` PiperOrigin-RevId: 889585893 Source-Link: googleapis/googleapis@a90dc55
1 parent 45c0956 commit 08e83d9

24 files changed

Lines changed: 5218 additions & 519 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START netapp_v1_generated_NetApp_EstablishVolumePeering_async]
20+
using Google.Cloud.NetApp.V1;
21+
using Google.LongRunning;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedNetAppClientSnippets
25+
{
26+
/// <summary>Snippet for EstablishVolumePeeringAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task EstablishVolumePeeringRequestObjectAsync()
35+
{
36+
// Create client
37+
NetAppClient netAppClient = await NetAppClient.CreateAsync();
38+
// Initialize request argument(s)
39+
EstablishVolumePeeringRequest request = new EstablishVolumePeeringRequest
40+
{
41+
VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
42+
PeerClusterName = "",
43+
PeerSvmName = "",
44+
PeerIpAddresses = { "", },
45+
PeerVolumeName = "",
46+
};
47+
// Make the request
48+
Operation<Volume, OperationMetadata> response = await netAppClient.EstablishVolumePeeringAsync(request);
49+
50+
// Poll until the returned long-running operation is complete
51+
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
52+
// Retrieve the operation result
53+
Volume result = completedResponse.Result;
54+
55+
// Or get the name of the operation
56+
string operationName = response.Name;
57+
// This name can be stored, then the long-running operation retrieved later by name
58+
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceEstablishVolumePeeringAsync(operationName);
59+
// Check if the retrieved long-running operation has completed
60+
if (retrievedResponse.IsCompleted)
61+
{
62+
// If it has completed, then access the result
63+
Volume retrievedResult = retrievedResponse.Result;
64+
}
65+
}
66+
}
67+
// [END netapp_v1_generated_NetApp_EstablishVolumePeering_async]
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START netapp_v1_generated_NetApp_EstablishVolumePeering_sync]
20+
using Google.Cloud.NetApp.V1;
21+
using Google.LongRunning;
22+
23+
public sealed partial class GeneratedNetAppClientSnippets
24+
{
25+
/// <summary>Snippet for EstablishVolumePeering</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void EstablishVolumePeeringRequestObject()
34+
{
35+
// Create client
36+
NetAppClient netAppClient = NetAppClient.Create();
37+
// Initialize request argument(s)
38+
EstablishVolumePeeringRequest request = new EstablishVolumePeeringRequest
39+
{
40+
VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
41+
PeerClusterName = "",
42+
PeerSvmName = "",
43+
PeerIpAddresses = { "", },
44+
PeerVolumeName = "",
45+
};
46+
// Make the request
47+
Operation<Volume, OperationMetadata> response = netAppClient.EstablishVolumePeering(request);
48+
49+
// Poll until the returned long-running operation is complete
50+
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
51+
// Retrieve the operation result
52+
Volume result = completedResponse.Result;
53+
54+
// Or get the name of the operation
55+
string operationName = response.Name;
56+
// This name can be stored, then the long-running operation retrieved later by name
57+
Operation<Volume, OperationMetadata> retrievedResponse = netAppClient.PollOnceEstablishVolumePeering(operationName);
58+
// Check if the retrieved long-running operation has completed
59+
if (retrievedResponse.IsCompleted)
60+
{
61+
// If it has completed, then access the result
62+
Volume retrievedResult = retrievedResponse.Result;
63+
}
64+
}
65+
}
66+
// [END netapp_v1_generated_NetApp_EstablishVolumePeering_sync]
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START netapp_v1_generated_NetApp_ExecuteOntapDelete_async]
20+
using Google.Cloud.NetApp.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedNetAppClientSnippets
24+
{
25+
/// <summary>Snippet for ExecuteOntapDeleteAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task ExecuteOntapDeleteRequestObjectAsync()
34+
{
35+
// Create client
36+
NetAppClient netAppClient = await NetAppClient.CreateAsync();
37+
// Initialize request argument(s)
38+
ExecuteOntapDeleteRequest request = new ExecuteOntapDeleteRequest { OntapPath = "", };
39+
// Make the request
40+
ExecuteOntapDeleteResponse response = await netAppClient.ExecuteOntapDeleteAsync(request);
41+
}
42+
}
43+
// [END netapp_v1_generated_NetApp_ExecuteOntapDelete_async]
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START netapp_v1_generated_NetApp_ExecuteOntapDelete_sync]
20+
using Google.Cloud.NetApp.V1;
21+
22+
public sealed partial class GeneratedNetAppClientSnippets
23+
{
24+
/// <summary>Snippet for ExecuteOntapDelete</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void ExecuteOntapDeleteRequestObject()
33+
{
34+
// Create client
35+
NetAppClient netAppClient = NetAppClient.Create();
36+
// Initialize request argument(s)
37+
ExecuteOntapDeleteRequest request = new ExecuteOntapDeleteRequest { OntapPath = "", };
38+
// Make the request
39+
ExecuteOntapDeleteResponse response = netAppClient.ExecuteOntapDelete(request);
40+
}
41+
}
42+
// [END netapp_v1_generated_NetApp_ExecuteOntapDelete_sync]
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START netapp_v1_generated_NetApp_ExecuteOntapGet_async]
20+
using Google.Cloud.NetApp.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedNetAppClientSnippets
24+
{
25+
/// <summary>Snippet for ExecuteOntapGetAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task ExecuteOntapGetRequestObjectAsync()
34+
{
35+
// Create client
36+
NetAppClient netAppClient = await NetAppClient.CreateAsync();
37+
// Initialize request argument(s)
38+
ExecuteOntapGetRequest request = new ExecuteOntapGetRequest { OntapPath = "", };
39+
// Make the request
40+
ExecuteOntapGetResponse response = await netAppClient.ExecuteOntapGetAsync(request);
41+
}
42+
}
43+
// [END netapp_v1_generated_NetApp_ExecuteOntapGet_async]
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START netapp_v1_generated_NetApp_ExecuteOntapGet_sync]
20+
using Google.Cloud.NetApp.V1;
21+
22+
public sealed partial class GeneratedNetAppClientSnippets
23+
{
24+
/// <summary>Snippet for ExecuteOntapGet</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void ExecuteOntapGetRequestObject()
33+
{
34+
// Create client
35+
NetAppClient netAppClient = NetAppClient.Create();
36+
// Initialize request argument(s)
37+
ExecuteOntapGetRequest request = new ExecuteOntapGetRequest { OntapPath = "", };
38+
// Make the request
39+
ExecuteOntapGetResponse response = netAppClient.ExecuteOntapGet(request);
40+
}
41+
}
42+
// [END netapp_v1_generated_NetApp_ExecuteOntapGet_sync]
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START netapp_v1_generated_NetApp_ExecuteOntapPatch_async]
20+
using Google.Cloud.NetApp.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedNetAppClientSnippets
25+
{
26+
/// <summary>Snippet for ExecuteOntapPatchAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task ExecuteOntapPatchRequestObjectAsync()
35+
{
36+
// Create client
37+
NetAppClient netAppClient = await NetAppClient.CreateAsync();
38+
// Initialize request argument(s)
39+
ExecuteOntapPatchRequest request = new ExecuteOntapPatchRequest
40+
{
41+
Body = new Struct(),
42+
OntapPath = "",
43+
};
44+
// Make the request
45+
ExecuteOntapPatchResponse response = await netAppClient.ExecuteOntapPatchAsync(request);
46+
}
47+
}
48+
// [END netapp_v1_generated_NetApp_ExecuteOntapPatch_async]
49+
}

0 commit comments

Comments
 (0)