/** * * * <pre> * Returns the permissions that a caller has on the specified note or * occurrence. Requires list permission on the project (for example, * `containeranalysis.notes.list`). * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for * occurrences. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Gets the access control policy for a note or an occurrence resource. * Requires `containeranalysis.notes.setIamPolicy` or * `containeranalysis.occurrences.setIamPolicy` permission if the resource is * a note or occurrence, respectively. * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for * occurrences. * </pre> */ public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { return futureUnaryCall( getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Sets the access control policy on the specified note or occurrence. * Requires `containeranalysis.notes.setIamPolicy` or * `containeranalysis.occurrences.setIamPolicy` permission if the resource is * a note or an occurrence, respectively. * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for * occurrences. * </pre> */ public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { return futureUnaryCall( getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Returns the permissions that a caller has on the specified note or * occurrence. Requires list permission on the project (for example, * `containeranalysis.notes.list`). * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for * occurrences. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); }
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ContainerAnalysisV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) { return new ContainerAnalysisV1Beta1FutureStub(channel); }
/** * * * <pre> * Lists scan configurations for the specified project. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.containeranalysis.v1beta1.ListScanConfigsResponse> listScanConfigs(com.google.containeranalysis.v1beta1.ListScanConfigsRequest request) { return futureUnaryCall( getChannel().newCall(getListScanConfigsMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Gets the specified scan configuration. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.containeranalysis.v1beta1.ScanConfig> getScanConfig(com.google.containeranalysis.v1beta1.GetScanConfigRequest request) { return futureUnaryCall( getChannel().newCall(getGetScanConfigMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Updates the specified scan configuration. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.containeranalysis.v1beta1.ScanConfig> updateScanConfig(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest request) { return futureUnaryCall( getChannel().newCall(getUpdateScanConfigMethodHelper(), getCallOptions()), request); } }
@java.lang.Override protected ContainerAnalysisV1Beta1FutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ContainerAnalysisV1Beta1FutureStub(channel, callOptions); }
/** * * * <pre> * Sets the access control policy on the specified note or occurrence. * Requires `containeranalysis.notes.setIamPolicy` or * `containeranalysis.occurrences.setIamPolicy` permission if the resource is * a note or an occurrence, respectively. * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for * occurrences. * </pre> */ public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { return futureUnaryCall( getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Gets the access control policy for a note or an occurrence resource. * Requires `containeranalysis.notes.setIamPolicy` or * `containeranalysis.occurrences.setIamPolicy` permission if the resource is * a note or occurrence, respectively. * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for * occurrences. * </pre> */ public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { return futureUnaryCall( getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request); }
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ContainerAnalysisV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) { return new ContainerAnalysisV1Beta1FutureStub(channel); }
/** * * * <pre> * Lists scan configurations for the specified project. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.containeranalysis.v1beta1.ListScanConfigsResponse> listScanConfigs(com.google.containeranalysis.v1beta1.ListScanConfigsRequest request) { return futureUnaryCall( getChannel().newCall(getListScanConfigsMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Updates the specified scan configuration. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.containeranalysis.v1beta1.ScanConfig> updateScanConfig(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest request) { return futureUnaryCall( getChannel().newCall(getUpdateScanConfigMethodHelper(), getCallOptions()), request); } }
@java.lang.Override protected ContainerAnalysisV1Beta1FutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ContainerAnalysisV1Beta1FutureStub(channel, callOptions); }
/** * * * <pre> * Gets the specified scan configuration. * </pre> */ public com.google.common.util.concurrent.ListenableFuture< com.google.containeranalysis.v1beta1.ScanConfig> getScanConfig(com.google.containeranalysis.v1beta1.GetScanConfigRequest request) { return futureUnaryCall( getChannel().newCall(getGetScanConfigMethodHelper(), getCallOptions()), request); }