/// <summary>Snippet for Delete</summary> public void Delete() { // Snippet: Delete(string, string, string, CallSettings) // Create client TargetVpnGatewaysClient targetVpnGatewaysClient = TargetVpnGatewaysClient.Create(); // Initialize request argument(s) string project = ""; string region = ""; string targetVpnGateway = ""; // Make the request lro::Operation <Operation, Operation> response = targetVpnGatewaysClient.Delete(project, region, targetVpnGateway); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = targetVpnGatewaysClient.PollOnceDelete(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Insert</summary> public void InsertRequestObject() { // Snippet: Insert(InsertTargetVpnGatewayRequest, CallSettings) // Create client TargetVpnGatewaysClient targetVpnGatewaysClient = TargetVpnGatewaysClient.Create(); // Initialize request argument(s) InsertTargetVpnGatewayRequest request = new InsertTargetVpnGatewayRequest { TargetVpnGatewayResource = new TargetVpnGateway(), RequestId = "", Region = "", Project = "", }; // Make the request lro::Operation <Operation, Operation> response = targetVpnGatewaysClient.Insert(request); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = targetVpnGatewaysClient.PollOnceInsert(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Update</summary> public void UpdateRequestObject() { // Snippet: Update(UpdateRegionBackendServiceRequest, CallSettings) // Create client RegionBackendServicesClient regionBackendServicesClient = RegionBackendServicesClient.Create(); // Initialize request argument(s) UpdateRegionBackendServiceRequest request = new UpdateRegionBackendServiceRequest { RequestId = "", Region = "", Project = "", BackendService = "", BackendServiceResource = new BackendService(), }; // Make the request lro::Operation <Operation, Operation> response = regionBackendServicesClient.Update(request); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = regionBackendServicesClient.PollOnceUpdate(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Insert</summary> public void Insert() { // Snippet: Insert(string, string, Commitment, CallSettings) // Create client RegionCommitmentsClient regionCommitmentsClient = RegionCommitmentsClient.Create(); // Initialize request argument(s) string project = ""; string region = ""; Commitment commitmentResource = new Commitment(); // Make the request lro::Operation <Operation, Operation> response = regionCommitmentsClient.Insert(project, region, commitmentResource); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = regionCommitmentsClient.PollOnceInsert(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for SetUrlMap</summary> public void SetUrlMapRequestObject() { // Snippet: SetUrlMap(SetUrlMapTargetHttpProxyRequest, CallSettings) // Create client TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.Create(); // Initialize request argument(s) SetUrlMapTargetHttpProxyRequest request = new SetUrlMapTargetHttpProxyRequest { RequestId = "", TargetHttpProxy = "", Project = "", UrlMapReferenceResource = new UrlMapReference(), }; // Make the request lro::Operation <Operation, Operation> response = targetHttpProxiesClient.SetUrlMap(request); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = targetHttpProxiesClient.PollOnceSetUrlMap(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Patch</summary> public void Patch() { // Snippet: Patch(string, string, TargetGrpcProxy, CallSettings) // Create client TargetGrpcProxiesClient targetGrpcProxiesClient = TargetGrpcProxiesClient.Create(); // Initialize request argument(s) string project = ""; string targetGrpcProxy = ""; TargetGrpcProxy targetGrpcProxyResource = new TargetGrpcProxy(); // Make the request lro::Operation <Operation, Operation> response = targetGrpcProxiesClient.Patch(project, targetGrpcProxy, targetGrpcProxyResource); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = targetGrpcProxiesClient.PollOncePatch(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Delete</summary> public void DeleteRequestObject() { // Snippet: Delete(DeleteGlobalPublicDelegatedPrefixeRequest, CallSettings) // Create client GlobalPublicDelegatedPrefixesClient globalPublicDelegatedPrefixesClient = GlobalPublicDelegatedPrefixesClient.Create(); // Initialize request argument(s) DeleteGlobalPublicDelegatedPrefixeRequest request = new DeleteGlobalPublicDelegatedPrefixeRequest { RequestId = "", PublicDelegatedPrefix = "", Project = "", }; // Make the request lro::Operation <Operation, Operation> response = globalPublicDelegatedPrefixesClient.Delete(request); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = globalPublicDelegatedPrefixesClient.PollOnceDelete(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Patch</summary> public void Patch() { // Snippet: Patch(string, string, PublicDelegatedPrefix, CallSettings) // Create client GlobalPublicDelegatedPrefixesClient globalPublicDelegatedPrefixesClient = GlobalPublicDelegatedPrefixesClient.Create(); // Initialize request argument(s) string project = ""; string publicDelegatedPrefix = ""; PublicDelegatedPrefix publicDelegatedPrefixResource = new PublicDelegatedPrefix(); // Make the request lro::Operation <Operation, Operation> response = globalPublicDelegatedPrefixesClient.Patch(project, publicDelegatedPrefix, publicDelegatedPrefixResource); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = globalPublicDelegatedPrefixesClient.PollOncePatch(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Update</summary> public void Update() { // Snippet: Update(string, string, HealthCheck, CallSettings) // Create client HealthChecksClient healthChecksClient = HealthChecksClient.Create(); // Initialize request argument(s) string project = ""; string healthCheck = ""; HealthCheck healthCheckResource = new HealthCheck(); // Make the request lro::Operation <Operation, Operation> response = healthChecksClient.Update(project, healthCheck, healthCheckResource); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = healthChecksClient.PollOnceUpdate(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for SetLabels</summary> public void SetLabels() { // Snippet: SetLabels(string, string, GlobalSetLabelsRequest, CallSettings) // Create client SnapshotsClient snapshotsClient = SnapshotsClient.Create(); // Initialize request argument(s) string project = ""; string resource = ""; GlobalSetLabelsRequest globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); // Make the request lro::Operation <Operation, Operation> response = snapshotsClient.SetLabels(project, resource, globalSetLabelsRequestResource); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = snapshotsClient.PollOnceSetLabels(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for Patch</summary> public void PatchRequestObject() { // Snippet: Patch(PatchHealthCheckRequest, CallSettings) // Create client HealthChecksClient healthChecksClient = HealthChecksClient.Create(); // Initialize request argument(s) PatchHealthCheckRequest request = new PatchHealthCheckRequest { RequestId = "", HealthCheckResource = new HealthCheck(), Project = "", HealthCheck = "", }; // Make the request lro::Operation <Operation, Operation> response = healthChecksClient.Patch(request); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = healthChecksClient.PollOncePatch(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for SetNamedPorts</summary> public void SetNamedPortsRequestObject() { // Snippet: SetNamedPorts(SetNamedPortsRegionInstanceGroupRequest, CallSettings) // Create client RegionInstanceGroupsClient regionInstanceGroupsClient = RegionInstanceGroupsClient.Create(); // Initialize request argument(s) SetNamedPortsRegionInstanceGroupRequest request = new SetNamedPortsRegionInstanceGroupRequest { RegionInstanceGroupsSetNamedPortsRequestResource = new RegionInstanceGroupsSetNamedPortsRequest(), RequestId = "", InstanceGroup = "", Region = "", Project = "", }; // Make the request lro::Operation <Operation, Operation> response = regionInstanceGroupsClient.SetNamedPorts(request); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = regionInstanceGroupsClient.PollOnceSetNamedPorts(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for SetUrlMap</summary> public void SetUrlMap() { // Snippet: SetUrlMap(string, string, string, UrlMapReference, CallSettings) // Create client RegionTargetHttpProxiesClient regionTargetHttpProxiesClient = RegionTargetHttpProxiesClient.Create(); // Initialize request argument(s) string project = ""; string region = ""; string targetHttpProxy = ""; UrlMapReference urlMapReferenceResource = new UrlMapReference(); // Make the request lro::Operation <Operation, Operation> response = regionTargetHttpProxiesClient.SetUrlMap(project, region, targetHttpProxy, urlMapReferenceResource); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = regionTargetHttpProxiesClient.PollOnceSetUrlMap(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for SetTarget</summary> public void SetTarget() { // Snippet: SetTarget(string, string, TargetReference, CallSettings) // Create client GlobalForwardingRulesClient globalForwardingRulesClient = GlobalForwardingRulesClient.Create(); // Initialize request argument(s) string project = ""; string forwardingRule = ""; TargetReference targetReferenceResource = new TargetReference(); // Make the request lro::Operation <Operation, Operation> response = globalForwardingRulesClient.SetTarget(project, forwardingRule, targetReferenceResource); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = globalForwardingRulesClient.PollOnceSetTarget(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for SetLabels</summary> public void SetLabelsRequestObject() { // Snippet: SetLabels(SetLabelsGlobalForwardingRuleRequest, CallSettings) // Create client GlobalForwardingRulesClient globalForwardingRulesClient = GlobalForwardingRulesClient.Create(); // Initialize request argument(s) SetLabelsGlobalForwardingRuleRequest request = new SetLabelsGlobalForwardingRuleRequest { Resource = "", Project = "", GlobalSetLabelsRequestResource = new GlobalSetLabelsRequest(), }; // Make the request lro::Operation <Operation, Operation> response = globalForwardingRulesClient.SetLabels(request); // Poll until the returned long-running operation is complete lro::Operation <Operation, Operation> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Operation 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 lro::Operation <Operation, Operation> retrievedResponse = globalForwardingRulesClient.PollOnceSetLabels(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Operation retrievedResult = retrievedResponse.Result; } // End snippet }