/// <summary>Snippet for GetEnvironment</summary>
 public void GetEnvironmentRequestObject()
 {
     // Snippet: GetEnvironment(GetEnvironmentRequest, CallSettings)
     // Create client
     EnvironmentsClient environmentsClient = EnvironmentsClient.Create();
     // Initialize request argument(s)
     GetEnvironmentRequest request = new GetEnvironmentRequest
     {
         EnvironmentName = EnvironmentName.FromProjectEnvironment("[PROJECT]", "[ENVIRONMENT]"),
     };
     // Make the request
     gcdv::Environment response = environmentsClient.GetEnvironment(request);
     // End snippet
 }
 /// <summary>Snippet for UpdateEnvironment</summary>
 public void UpdateEnvironmentRequestObject()
 {
     // Snippet: UpdateEnvironment(UpdateEnvironmentRequest, CallSettings)
     // Create client
     EnvironmentsClient environmentsClient = EnvironmentsClient.Create();
     // Initialize request argument(s)
     UpdateEnvironmentRequest request = new UpdateEnvironmentRequest
     {
         Environment = new gcdv::Environment(),
         UpdateMask  = new FieldMask(),
         AllowLoadToDraftAndDiscardChanges = false,
     };
     // Make the request
     gcdv::Environment response = environmentsClient.UpdateEnvironment(request);
     // End snippet
 }
 /// <summary>Snippet for CreateEnvironment</summary>
 public void CreateEnvironmentRequestObject()
 {
     // Snippet: CreateEnvironment(CreateEnvironmentRequest, CallSettings)
     // Create client
     EnvironmentsClient environmentsClient = EnvironmentsClient.Create();
     // Initialize request argument(s)
     CreateEnvironmentRequest request = new CreateEnvironmentRequest
     {
         ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
         Environment       = new gcdv::Environment(),
         EnvironmentId     = "",
     };
     // Make the request
     gcdv::Environment response = environmentsClient.CreateEnvironment(request);
     // End snippet
 }
        /// <summary>Snippet for GetEnvironmentAsync</summary>
        public async Task GetEnvironmentRequestObjectAsync()
        {
            // Snippet: GetEnvironmentAsync(GetEnvironmentRequest, CallSettings)
            // Additional: GetEnvironmentAsync(GetEnvironmentRequest, CancellationToken)
            // Create client
            EnvironmentsClient environmentsClient = await EnvironmentsClient.CreateAsync();

            // Initialize request argument(s)
            GetEnvironmentRequest request = new GetEnvironmentRequest
            {
                EnvironmentName = EnvironmentName.FromProjectEnvironment("[PROJECT]", "[ENVIRONMENT]"),
            };
            // Make the request
            gcdv::Environment response = await environmentsClient.GetEnvironmentAsync(request);

            // End snippet
        }
        /// <summary>Snippet for UpdateEnvironmentAsync</summary>
        public async Task UpdateEnvironmentRequestObjectAsync()
        {
            // Snippet: UpdateEnvironmentAsync(UpdateEnvironmentRequest, CallSettings)
            // Additional: UpdateEnvironmentAsync(UpdateEnvironmentRequest, CancellationToken)
            // Create client
            EnvironmentsClient environmentsClient = await EnvironmentsClient.CreateAsync();

            // Initialize request argument(s)
            UpdateEnvironmentRequest request = new UpdateEnvironmentRequest
            {
                Environment = new gcdv::Environment(),
                UpdateMask  = new FieldMask(),
                AllowLoadToDraftAndDiscardChanges = false,
            };
            // Make the request
            gcdv::Environment response = await environmentsClient.UpdateEnvironmentAsync(request);

            // End snippet
        }
        /// <summary>Snippet for CreateEnvironmentAsync</summary>
        public async Task CreateEnvironmentRequestObjectAsync()
        {
            // Snippet: CreateEnvironmentAsync(CreateEnvironmentRequest, CallSettings)
            // Additional: CreateEnvironmentAsync(CreateEnvironmentRequest, CancellationToken)
            // Create client
            EnvironmentsClient environmentsClient = await EnvironmentsClient.CreateAsync();

            // Initialize request argument(s)
            CreateEnvironmentRequest request = new CreateEnvironmentRequest
            {
                ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
                Environment       = new gcdv::Environment(),
                EnvironmentId     = "",
            };
            // Make the request
            gcdv::Environment response = await environmentsClient.CreateEnvironmentAsync(request);

            // End snippet
        }