/// <summary>Snippet for GetInstallStatus</summary>
 public void GetInstallStatus()
 {
     // Snippet: GetInstallStatus(string, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/deployments/[DEPLOYMENT]/installStatus";
     // Make the request
     InstallStatus response = gSuiteAddOnsClient.GetInstallStatus(name);
     // End snippet
 }
 /// <summary>Snippet for GetAuthorization</summary>
 public void GetAuthorizationResourceNames()
 {
     // Snippet: GetAuthorization(AuthorizationName, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     AuthorizationName name = AuthorizationName.FromProject("[PROJECT]");
     // Make the request
     Authorization response = gSuiteAddOnsClient.GetAuthorization(name);
     // End snippet
 }
 /// <summary>Snippet for ReplaceDeployment</summary>
 public void ReplaceDeployment()
 {
     // Snippet: ReplaceDeployment(Deployment, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     Deployment deployment = new Deployment();
     // Make the request
     Deployment response = gSuiteAddOnsClient.ReplaceDeployment(deployment);
     // End snippet
 }
 /// <summary>Snippet for GetAuthorization</summary>
 public void GetAuthorization()
 {
     // Snippet: GetAuthorization(string, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/authorization";
     // Make the request
     Authorization response = gSuiteAddOnsClient.GetAuthorization(name);
     // End snippet
 }
 /// <summary>Snippet for GetDeployment</summary>
 public void GetDeploymentResourceNames()
 {
     // Snippet: GetDeployment(DeploymentName, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     DeploymentName name = DeploymentName.FromProjectDeployment("[PROJECT]", "[DEPLOYMENT]");
     // Make the request
     Deployment response = gSuiteAddOnsClient.GetDeployment(name);
     // End snippet
 }
        /// <summary>Snippet for UninstallDeployment</summary>
        public void UninstallDeployment()
        {
            // Snippet: UninstallDeployment(string, CallSettings)
            // Create client
            GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/deployments/[DEPLOYMENT]";

            // Make the request
            gSuiteAddOnsClient.UninstallDeployment(name);
            // End snippet
        }
 /// <summary>Snippet for CreateDeployment</summary>
 public void CreateDeploymentResourceNames()
 {
     // Snippet: CreateDeployment(ProjectName, Deployment, string, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     ProjectName parent       = ProjectName.FromProject("[PROJECT]");
     Deployment  deployment   = new Deployment();
     string      deploymentId = "";
     // Make the request
     Deployment response = gSuiteAddOnsClient.CreateDeployment(parent, deployment, deploymentId);
     // End snippet
 }
 /// <summary>Snippet for CreateDeployment</summary>
 public void CreateDeployment()
 {
     // Snippet: CreateDeployment(string, Deployment, string, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     string     parent       = "projects/[PROJECT]";
     Deployment deployment   = new Deployment();
     string     deploymentId = "";
     // Make the request
     Deployment response = gSuiteAddOnsClient.CreateDeployment(parent, deployment, deploymentId);
     // End snippet
 }
 /// <summary>Snippet for GetInstallStatus</summary>
 public void GetInstallStatusRequestObject()
 {
     // Snippet: GetInstallStatus(GetInstallStatusRequest, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     GetInstallStatusRequest request = new GetInstallStatusRequest
     {
         InstallStatusName = InstallStatusName.FromProjectDeployment("[PROJECT]", "[DEPLOYMENT]"),
     };
     // Make the request
     InstallStatus response = gSuiteAddOnsClient.GetInstallStatus(request);
     // End snippet
 }
 /// <summary>Snippet for GetAuthorization</summary>
 public void GetAuthorizationRequestObject()
 {
     // Snippet: GetAuthorization(GetAuthorizationRequest, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     GetAuthorizationRequest request = new GetAuthorizationRequest
     {
         AuthorizationName = AuthorizationName.FromProject("[PROJECT]"),
     };
     // Make the request
     Authorization response = gSuiteAddOnsClient.GetAuthorization(request);
     // End snippet
 }
 /// <summary>Snippet for ReplaceDeployment</summary>
 public void ReplaceDeploymentRequestObject()
 {
     // Snippet: ReplaceDeployment(ReplaceDeploymentRequest, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     ReplaceDeploymentRequest request = new ReplaceDeploymentRequest
     {
         Deployment = new Deployment(),
     };
     // Make the request
     Deployment response = gSuiteAddOnsClient.ReplaceDeployment(request);
     // End snippet
 }
        /// <summary>Snippet for UninstallDeployment</summary>
        public void UninstallDeploymentRequestObject()
        {
            // Snippet: UninstallDeployment(UninstallDeploymentRequest, CallSettings)
            // Create client
            GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
            // Initialize request argument(s)
            UninstallDeploymentRequest request = new UninstallDeploymentRequest
            {
                DeploymentName = DeploymentName.FromProjectDeployment("[PROJECT]", "[DEPLOYMENT]"),
            };

            // Make the request
            gSuiteAddOnsClient.UninstallDeployment(request);
            // End snippet
        }
 /// <summary>Snippet for CreateDeployment</summary>
 public void CreateDeploymentRequestObject()
 {
     // Snippet: CreateDeployment(CreateDeploymentRequest, CallSettings)
     // Create client
     GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
     // Initialize request argument(s)
     CreateDeploymentRequest request = new CreateDeploymentRequest
     {
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         DeploymentId        = "",
         Deployment          = new Deployment(),
     };
     // Make the request
     Deployment response = gSuiteAddOnsClient.CreateDeployment(request);
     // End snippet
 }
        /// <summary>Snippet for ListDeployments</summary>
        public void ListDeploymentsRequestObject()
        {
            // Snippet: ListDeployments(ListDeploymentsRequest, CallSettings)
            // Create client
            GSuiteAddOnsClient gSuiteAddOnsClient = GSuiteAddOnsClient.Create();
            // Initialize request argument(s)
            ListDeploymentsRequest request = new ListDeploymentsRequest
            {
                ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
            };
            // Make the request
            PagedEnumerable <ListDeploymentsResponse, Deployment> response = gSuiteAddOnsClient.ListDeployments(request);

            // Iterate over all response items, lazily performing RPCs as required
            foreach (Deployment item in response)
            {
                // Do something with each item
                Console.WriteLine(item);
            }

            // Or iterate over pages (of server-defined size), performing one RPC per page
            foreach (ListDeploymentsResponse page in response.AsRawResponses())
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Deployment item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            }

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int pageSize = 10;
            Page <Deployment> singlePage = response.ReadPage(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (Deployment item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }