/// <summary>Snippet for DeleteCompanyAsync</summary>
        public async Task DeleteCompanyAsync()
        {
            // Snippet: DeleteCompanyAsync(CompanyNameOneof,CallSettings)
            // Additional: DeleteCompanyAsync(CompanyNameOneof,CancellationToken)
            // Create client
            CompanyServiceClient companyServiceClient = await CompanyServiceClient.CreateAsync();

            // Initialize request argument(s)
            CompanyNameOneof name = CompanyNameOneof.From(new CompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"));
            // Make the request
            await companyServiceClient.DeleteCompanyAsync(name);

            // End snippet
        }
        /// <summary>Snippet for DeleteCompanyAsync</summary>
        public async Task DeleteCompanyAsync()
        {
            // Snippet: DeleteCompanyAsync(string, CallSettings)
            // Additional: DeleteCompanyAsync(string, CancellationToken)
            // Create client
            CompanyServiceClient companyServiceClient = await CompanyServiceClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/tenants/[TENANT]/companies/[COMPANY]";
            // Make the request
            await companyServiceClient.DeleteCompanyAsync(name);

            // End snippet
        }
Exemple #3
0
        /// <summary>Snippet for DeleteCompanyAsync</summary>
        public async Task DeleteCompanyResourceNamesAsync()
        {
            // Snippet: DeleteCompanyAsync(CompanyName, CallSettings)
            // Additional: DeleteCompanyAsync(CompanyName, CancellationToken)
            // Create client
            CompanyServiceClient companyServiceClient = await CompanyServiceClient.CreateAsync();

            // Initialize request argument(s)
            CompanyName name = CompanyName.FromProjectCompany("[PROJECT]", "[COMPANY]");
            // Make the request
            await companyServiceClient.DeleteCompanyAsync(name);

            // End snippet
        }
Exemple #4
0
        /// <summary>Snippet for DeleteCompanyAsync</summary>
        public async Task DeleteCompanyAsync()
        {
            // Snippet: DeleteCompanyAsync(string,CallSettings)
            // Additional: DeleteCompanyAsync(string,CancellationToken)
            // Create client
            CompanyServiceClient companyServiceClient = await CompanyServiceClient.CreateAsync();

            // Initialize request argument(s)
            string formattedName = new CompanyName("[PROJECT]", "[COMPANY]").ToString();
            // Make the request
            await companyServiceClient.DeleteCompanyAsync(formattedName);

            // End snippet
        }
        /// <summary>Snippet for DeleteCompanyAsync</summary>
        public async Task DeleteCompanyRequestObjectAsync()
        {
            // Snippet: DeleteCompanyAsync(DeleteCompanyRequest, CallSettings)
            // Additional: DeleteCompanyAsync(DeleteCompanyRequest, CancellationToken)
            // Create client
            CompanyServiceClient companyServiceClient = await CompanyServiceClient.CreateAsync();

            // Initialize request argument(s)
            DeleteCompanyRequest request = new DeleteCompanyRequest
            {
                CompanyName = CompanyName.FromProjectTenantCompany("[PROJECT]", "[TENANT]", "[COMPANY]"),
            };
            // Make the request
            await companyServiceClient.DeleteCompanyAsync(request);

            // End snippet
        }