public void UpdateAccessApprovalSettings()
        {
            moq::Mock <AccessApproval.AccessApprovalClient> mockGrpcClient = new moq::Mock <AccessApproval.AccessApprovalClient>(moq::MockBehavior.Strict);
            UpdateAccessApprovalSettingsMessage             request        = new UpdateAccessApprovalSettingsMessage
            {
                Settings   = new AccessApprovalSettings(),
                UpdateMask = new wkt::FieldMask(),
            };
            AccessApprovalSettings expectedResponse = new AccessApprovalSettings
            {
                Name = "name1c9368b0",
                NotificationEmails =
                {
                    "notification_emails936d0793",
                },
                EnrolledServices =
                {
                    new EnrolledService(),
                },
                EnrolledAncestor = true,
            };

            mockGrpcClient.Setup(x => x.UpdateAccessApprovalSettings(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(expectedResponse);
            AccessApprovalClient   client   = new AccessApprovalClientImpl(mockGrpcClient.Object, null);
            AccessApprovalSettings response = client.UpdateAccessApprovalSettings(request.Settings, request.UpdateMask);

            xunit::Assert.Same(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
        public async stt::Task UpdateAccessApprovalSettingsAsync()
        {
            moq::Mock <AccessApproval.AccessApprovalClient> mockGrpcClient = new moq::Mock <AccessApproval.AccessApprovalClient>(moq::MockBehavior.Strict);
            UpdateAccessApprovalSettingsMessage             request        = new UpdateAccessApprovalSettingsMessage
            {
                Settings   = new AccessApprovalSettings(),
                UpdateMask = new wkt::FieldMask(),
            };
            AccessApprovalSettings expectedResponse = new AccessApprovalSettings
            {
                Name = "name1c9368b0",
                NotificationEmails =
                {
                    "notification_emails936d0793",
                },
                EnrolledServices =
                {
                    new EnrolledService(),
                },
                EnrolledAncestor = true,
            };

            mockGrpcClient.Setup(x => x.UpdateAccessApprovalSettingsAsync(request, moq::It.IsAny <grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall <AccessApprovalSettings>(stt::Task.FromResult(expectedResponse), null, null, null, null));
            AccessApprovalClient   client = new AccessApprovalClientImpl(mockGrpcClient.Object, null);
            AccessApprovalSettings responseCallSettings = await client.UpdateAccessApprovalSettingsAsync(request.Settings, request.UpdateMask, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

            xunit::Assert.Same(expectedResponse, responseCallSettings);
            AccessApprovalSettings responseCancellationToken = await client.UpdateAccessApprovalSettingsAsync(request.Settings, request.UpdateMask, st::CancellationToken.None);

            xunit::Assert.Same(expectedResponse, responseCancellationToken);
            mockGrpcClient.VerifyAll();
        }
 /// <summary>Snippet for UpdateAccessApprovalSettings</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateAccessApprovalSettingsRequestObject()
 {
     // Create client
     AccessApprovalClient accessApprovalClient = AccessApprovalClient.Create();
     // Initialize request argument(s)
     UpdateAccessApprovalSettingsMessage request = new UpdateAccessApprovalSettingsMessage
     {
         Settings   = new AccessApprovalSettings(),
         UpdateMask = new FieldMask(),
     };
     // Make the request
     AccessApprovalSettings response = accessApprovalClient.UpdateAccessApprovalSettings(request);
 }
        /// <summary>Snippet for UpdateAccessApprovalSettingsAsync</summary>
        public async Task UpdateAccessApprovalSettingsRequestObjectAsync()
        {
            // Snippet: UpdateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage, CallSettings)
            // Additional: UpdateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage, CancellationToken)
            // Create client
            AccessApprovalServiceClient accessApprovalServiceClient = await AccessApprovalServiceClient.CreateAsync();

            // Initialize request argument(s)
            UpdateAccessApprovalSettingsMessage request = new UpdateAccessApprovalSettingsMessage
            {
                Settings   = new AccessApprovalSettings(),
                UpdateMask = new FieldMask(),
            };
            // Make the request
            AccessApprovalSettings response = await accessApprovalServiceClient.UpdateAccessApprovalSettingsAsync(request);

            // End snippet
        }