-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(baremetalsolution): several new resources and RPCs
feat: add RPCs Enable/Disable InteractiveSerialConsole feat: add RPCs Rename/Evict Volume feat: add RPC EvictLune feat: add SSHKey resource and methods feat: add VolumeSnapshot resource and methods feat: add NFSShare resource and methods feat: add ProvisioningConfig resource and methods feat: add OsImage resource and methods feat: add new Instance state values PiperOrigin-RevId: 554849453 Source-Link: googleapis/googleapis@7245f35 Source-Link: googleapis/googleapis-gen@cdfdc93 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmFyZU1ldGFsU29sdXRpb24uVjIvLk93bEJvdC55YW1sIiwiaCI6ImNkZmRjOTMxMmRiNTFkNTc5ZDRiOTM4ODE4NWIyODU2NzA1ZGExMDgifQ==
- Loading branch information
1 parent
a1d57da
commit 5ef43e6
Showing
171 changed files
with
48,844 additions
and
5,374 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
...etalSolution.V2.GeneratedSnippets/BareMetalSolutionClient.CreateNfsShareAsyncSnippet.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,62 @@ | ||
// Copyright 2023 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 GoogleCSharpSnippets | ||
{ | ||
// [START baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_async_flattened] | ||
using Google.Cloud.BareMetalSolution.V2; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedBareMetalSolutionClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateNfsShareAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateNfsShareAsync() | ||
{ | ||
// Create client | ||
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]/locations/[LOCATION]"; | ||
NfsShare nfsShare = new NfsShare(); | ||
// Make the request | ||
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(parent, nfsShare); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
NfsShare result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
NfsShare retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_async_flattened] | ||
} |
66 changes: 66 additions & 0 deletions
66
...V2.GeneratedSnippets/BareMetalSolutionClient.CreateNfsShareRequestObjectAsyncSnippet.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,66 @@ | ||
// Copyright 2023 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 GoogleCSharpSnippets | ||
{ | ||
// [START baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_async] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.BareMetalSolution.V2; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedBareMetalSolutionClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateNfsShareAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateNfsShareRequestObjectAsync() | ||
{ | ||
// Create client | ||
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
CreateNfsShareRequest request = new CreateNfsShareRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
NfsShare = new NfsShare(), | ||
}; | ||
// Make the request | ||
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
NfsShare result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
NfsShare retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_async] | ||
} |
65 changes: 65 additions & 0 deletions
65
...tion.V2.GeneratedSnippets/BareMetalSolutionClient.CreateNfsShareRequestObjectSnippet.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,65 @@ | ||
// Copyright 2023 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 GoogleCSharpSnippets | ||
{ | ||
// [START baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_sync] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.BareMetalSolution.V2; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedBareMetalSolutionClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateNfsShare</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateNfsShareRequestObject() | ||
{ | ||
// Create client | ||
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create(); | ||
// Initialize request argument(s) | ||
CreateNfsShareRequest request = new CreateNfsShareRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
NfsShare = new NfsShare(), | ||
}; | ||
// Make the request | ||
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.CreateNfsShare(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
NfsShare result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceCreateNfsShare(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
NfsShare retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_sync] | ||
} |
63 changes: 63 additions & 0 deletions
63
...V2.GeneratedSnippets/BareMetalSolutionClient.CreateNfsShareResourceNamesAsyncSnippet.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,63 @@ | ||
// Copyright 2023 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 GoogleCSharpSnippets | ||
{ | ||
// [START baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_async_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.BareMetalSolution.V2; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedBareMetalSolutionClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateNfsShareAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateNfsShareResourceNamesAsync() | ||
{ | ||
// Create client | ||
BareMetalSolutionClient bareMetalSolutionClient = await BareMetalSolutionClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
NfsShare nfsShare = new NfsShare(); | ||
// Make the request | ||
Operation<NfsShare, OperationMetadata> response = await bareMetalSolutionClient.CreateNfsShareAsync(parent, nfsShare); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<NfsShare, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
NfsShare result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<NfsShare, OperationMetadata> retrievedResponse = await bareMetalSolutionClient.PollOnceCreateNfsShareAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
NfsShare retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_async_flattened_resourceNames] | ||
} |
62 changes: 62 additions & 0 deletions
62
...tion.V2.GeneratedSnippets/BareMetalSolutionClient.CreateNfsShareResourceNamesSnippet.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,62 @@ | ||
// Copyright 2023 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 GoogleCSharpSnippets | ||
{ | ||
// [START baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_sync_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.BareMetalSolution.V2; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedBareMetalSolutionClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateNfsShare</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateNfsShareResourceNames() | ||
{ | ||
// Create client | ||
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
NfsShare nfsShare = new NfsShare(); | ||
// Make the request | ||
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.CreateNfsShare(parent, nfsShare); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
NfsShare result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceCreateNfsShare(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
NfsShare retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_sync_flattened_resourceNames] | ||
} |
61 changes: 61 additions & 0 deletions
61
...BareMetalSolution.V2.GeneratedSnippets/BareMetalSolutionClient.CreateNfsShareSnippet.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,61 @@ | ||
// Copyright 2023 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 GoogleCSharpSnippets | ||
{ | ||
// [START baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_sync_flattened] | ||
using Google.Cloud.BareMetalSolution.V2; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedBareMetalSolutionClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateNfsShare</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateNfsShare() | ||
{ | ||
// Create client | ||
BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.Create(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]/locations/[LOCATION]"; | ||
NfsShare nfsShare = new NfsShare(); | ||
// Make the request | ||
Operation<NfsShare, OperationMetadata> response = bareMetalSolutionClient.CreateNfsShare(parent, nfsShare); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<NfsShare, OperationMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
NfsShare result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<NfsShare, OperationMetadata> retrievedResponse = bareMetalSolutionClient.PollOnceCreateNfsShare(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
NfsShare retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_sync_flattened] | ||
} |
Oops, something went wrong.