コード例 #1
0
        /// <summary>Snippet for CreateInspectTemplateAsync</summary>
        public async Task CreateInspectTemplateAsync_RequestObject()
        {
            // Snippet: CreateInspectTemplateAsync(CreateInspectTemplateRequest,CallSettings)
            // Additional: CreateInspectTemplateAsync(CreateInspectTemplateRequest,CancellationToken)
            // Create client
            DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateInspectTemplateRequest request = new CreateInspectTemplateRequest
            {
                ParentAsOrganizationName = new OrganizationName("[ORGANIZATION]"),
            };
            // Make the request
            InspectTemplate response = await dlpServiceClient.CreateInspectTemplateAsync(request);

            // End snippet
        }