@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * Gets the specified scan configuration. * * <p>Sample code: * * <pre><code> * try (ContainerAnalysisV1Beta1Client containerAnalysisV1Beta1Client = ContainerAnalysisV1Beta1Client.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * ScanConfig response = containerAnalysisV1Beta1Client.getScanConfig(name.toString()); * } * </code></pre> * * @param name The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanConfig getScanConfig(String name) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName(name).build(); return getScanConfig(request); }
/** * Gets the specified scan configuration. * * <p>Sample code: * * <pre><code> * try (ContainerAnalysisV1Beta1Client containerAnalysisV1Beta1Client = ContainerAnalysisV1Beta1Client.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * ScanConfig response = containerAnalysisV1Beta1Client.getScanConfig(name); * } * </code></pre> * * @param name The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScanConfig getScanConfig(ScanConfigName name) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getScanConfig(request); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }