Example #1
0
        /// <summary>Snippet for UpdateScanConfigAsync</summary>
        public async Task UpdateScanConfigAsync()
        {
            // Snippet: UpdateScanConfigAsync(ScanConfigName,ScanConfig,CallSettings)
            // Additional: UpdateScanConfigAsync(ScanConfigName,ScanConfig,CancellationToken)
            // Create client
            ContainerAnalysisV1Beta1Client containerAnalysisV1Beta1Client = await ContainerAnalysisV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            ScanConfigName name       = new ScanConfigName("[PROJECT]", "[SCAN_CONFIG]");
            ScanConfig     scanConfig = new ScanConfig();
            // Make the request
            ScanConfig response = await containerAnalysisV1Beta1Client.UpdateScanConfigAsync(name, scanConfig);

            // End snippet
        }
Example #2
0
        /// <summary>Snippet for UpdateScanConfigAsync</summary>
        public async Task UpdateScanConfigAsync_RequestObject()
        {
            // Snippet: UpdateScanConfigAsync(UpdateScanConfigRequest,CallSettings)
            // Additional: UpdateScanConfigAsync(UpdateScanConfigRequest,CancellationToken)
            // Create client
            ContainerAnalysisV1Beta1Client containerAnalysisV1Beta1Client = await ContainerAnalysisV1Beta1Client.CreateAsync();

            // Initialize request argument(s)
            UpdateScanConfigRequest request = new UpdateScanConfigRequest
            {
                ScanConfigName = new ScanConfigName("[PROJECT]", "[SCAN_CONFIG]"),
                ScanConfig     = new ScanConfig(),
            };
            // Make the request
            ScanConfig response = await containerAnalysisV1Beta1Client.UpdateScanConfigAsync(request);

            // End snippet
        }