/// <summary>Snippet for CreateDeploymentAsync</summary> public async Task CreateDeploymentAsync() { // Snippet: CreateDeploymentAsync(string, Deployment, string, CallSettings) // Additional: CreateDeploymentAsync(string, Deployment, string, CancellationToken) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = await GSuiteAddOnsClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Deployment deployment = new Deployment(); string deploymentId = ""; // Make the request Deployment response = await gSuiteAddOnsClient.CreateDeploymentAsync(parent, deployment, deploymentId); // End snippet }
/// <summary>Snippet for CreateDeploymentAsync</summary> public async Task CreateDeploymentResourceNamesAsync() { // Snippet: CreateDeploymentAsync(ProjectName, Deployment, string, CallSettings) // Additional: CreateDeploymentAsync(ProjectName, Deployment, string, CancellationToken) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = await GSuiteAddOnsClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Deployment deployment = new Deployment(); string deploymentId = ""; // Make the request Deployment response = await gSuiteAddOnsClient.CreateDeploymentAsync(parent, deployment, deploymentId); // End snippet }
/// <summary>Snippet for CreateDeploymentAsync</summary> public async Task CreateDeploymentRequestObjectAsync() { // Snippet: CreateDeploymentAsync(CreateDeploymentRequest, CallSettings) // Additional: CreateDeploymentAsync(CreateDeploymentRequest, CancellationToken) // Create client GSuiteAddOnsClient gSuiteAddOnsClient = await GSuiteAddOnsClient.CreateAsync(); // Initialize request argument(s) CreateDeploymentRequest request = new CreateDeploymentRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), DeploymentId = "", Deployment = new Deployment(), }; // Make the request Deployment response = await gSuiteAddOnsClient.CreateDeploymentAsync(request); // End snippet }