/// <summary>Snippet for AddInstance</summary> public void AddInstanceRequestObject() { // Snippet: AddInstance(AddInstanceTargetPoolRequest, CallSettings) // Create client TargetPoolsClient targetPoolsClient = TargetPoolsClient.Create(); // Initialize request argument(s) AddInstanceTargetPoolRequest request = new AddInstanceTargetPoolRequest { RequestId = "", TargetPool = "", Region = "", Project = "", TargetPoolsAddInstanceRequestResource = new TargetPoolsAddInstanceRequest(), }; // Make the request Operation response = targetPoolsClient.AddInstance(request); // End snippet }
/// <summary>Snippet for AddInstanceAsync</summary> public async Task AddInstanceRequestObjectAsync() { // Snippet: AddInstanceAsync(AddInstanceTargetPoolRequest, CallSettings) // Additional: AddInstanceAsync(AddInstanceTargetPoolRequest, CancellationToken) // Create client TargetPoolsClient targetPoolsClient = await TargetPoolsClient.CreateAsync(); // Initialize request argument(s) AddInstanceTargetPoolRequest request = new AddInstanceTargetPoolRequest { RequestId = "", TargetPool = "", Region = "", Project = "", TargetPoolsAddInstanceRequestResource = new TargetPoolsAddInstanceRequest(), }; // Make the request Operation response = await targetPoolsClient.AddInstanceAsync(request); // End snippet }