Exemplo n.º 1
0
        /// <summary>Snippet for CreateDlpJobAsync</summary>
        public async Task CreateDlpJobAsync_RequestObject()
        {
            // Snippet: CreateDlpJobAsync(CreateDlpJobRequest,CallSettings)
            // Additional: CreateDlpJobAsync(CreateDlpJobRequest,CancellationToken)
            // Create client
            DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateDlpJobRequest request = new CreateDlpJobRequest
            {
                ParentAsProjectName = new ProjectName("[PROJECT]"),
            };
            // Make the request
            DlpJob response = await dlpServiceClient.CreateDlpJobAsync(request);

            // End snippet
        }