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

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

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

            mockGrpcClient.Setup(x => x.GetAccessApprovalSettingsAsync(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.GetAccessApprovalSettingsAsync(request.Name, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));

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

            xunit::Assert.Same(expectedResponse, responseCancellationToken);
            mockGrpcClient.VerifyAll();
        }
 /// <summary>Snippet for GetAccessApprovalSettings</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetAccessApprovalSettingsRequestObject()
 {
     // Create client
     AccessApprovalClient accessApprovalClient = AccessApprovalClient.Create();
     // Initialize request argument(s)
     GetAccessApprovalSettingsMessage request = new GetAccessApprovalSettingsMessage {
         Name = "",
     };
     // Make the request
     AccessApprovalSettings response = accessApprovalClient.GetAccessApprovalSettings(request);
 }
        /// <summary>Snippet for GetAccessApprovalSettingsAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetAccessApprovalSettingsRequestObjectAsync()
        {
            // Create client
            AccessApprovalClient accessApprovalClient = await AccessApprovalClient.CreateAsync();

            // Initialize request argument(s)
            GetAccessApprovalSettingsMessage request = new GetAccessApprovalSettingsMessage {
                Name = "",
            };
            // Make the request
            AccessApprovalSettings response = await accessApprovalClient.GetAccessApprovalSettingsAsync(request);
        }
        /// <summary>Snippet for GetAccessApprovalSettingsAsync</summary>
        public async Task GetAccessApprovalSettingsRequestObjectAsync()
        {
            // Snippet: GetAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage, CallSettings)
            // Additional: GetAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage, CancellationToken)
            // Create client
            AccessApprovalServiceClient accessApprovalServiceClient = await AccessApprovalServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetAccessApprovalSettingsMessage request = new GetAccessApprovalSettingsMessage {
                Name = "",
            };
            // Make the request
            AccessApprovalSettings response = await accessApprovalServiceClient.GetAccessApprovalSettingsAsync(request);

            // End snippet
        }