Class HttpJsonSecurityCenterStub
- java.lang.Object
-
- com.google.cloud.securitycenter.v1beta1.stub.SecurityCenterStub
-
- com.google.cloud.securitycenter.v1beta1.stub.HttpJsonSecurityCenterStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonSecurityCenterStub extends SecurityCenterStub
REST stub implementation for the SecurityCenter service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonSecurityCenterStub, using the given settings.protectedHttpJsonSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonSecurityCenterStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonSecurityCenterStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonSecurityCenterStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonSecurityCenterStubcreate(SecurityCenterStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateFindingRequest,Finding>createFindingCallable()com.google.api.gax.rpc.UnaryCallable<CreateSourceRequest,Source>createSourceCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetOrganizationSettingsRequest,OrganizationSettings>getOrganizationSettingsCallable()com.google.api.gax.rpc.UnaryCallable<GetSourceRequest,Source>getSourceCallable()com.google.api.gax.rpc.UnaryCallable<GroupAssetsRequest,GroupAssetsResponse>groupAssetsCallable()com.google.api.gax.rpc.UnaryCallable<GroupAssetsRequest,SecurityCenterClient.GroupAssetsPagedResponse>groupAssetsPagedCallable()com.google.api.gax.rpc.UnaryCallable<GroupFindingsRequest,GroupFindingsResponse>groupFindingsCallable()com.google.api.gax.rpc.UnaryCallable<GroupFindingsRequest,SecurityCenterClient.GroupFindingsPagedResponse>groupFindingsPagedCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListAssetsRequest,ListAssetsResponse>listAssetsCallable()com.google.api.gax.rpc.UnaryCallable<ListAssetsRequest,SecurityCenterClient.ListAssetsPagedResponse>listAssetsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListFindingsRequest,ListFindingsResponse>listFindingsCallable()com.google.api.gax.rpc.UnaryCallable<ListFindingsRequest,SecurityCenterClient.ListFindingsPagedResponse>listFindingsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListSourcesRequest,ListSourcesResponse>listSourcesCallable()com.google.api.gax.rpc.UnaryCallable<ListSourcesRequest,SecurityCenterClient.ListSourcesPagedResponse>listSourcesPagedCallable()com.google.api.gax.rpc.UnaryCallable<RunAssetDiscoveryRequest,com.google.longrunning.Operation>runAssetDiscoveryCallable()com.google.api.gax.rpc.OperationCallable<RunAssetDiscoveryRequest,com.google.protobuf.Empty,com.google.protobuf.Empty>runAssetDiscoveryOperationCallable()com.google.api.gax.rpc.UnaryCallable<SetFindingStateRequest,Finding>setFindingStateCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateFindingRequest,Finding>updateFindingCallable()com.google.api.gax.rpc.UnaryCallable<UpdateOrganizationSettingsRequest,OrganizationSettings>updateOrganizationSettingsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateSecurityMarksRequest,SecurityMarks>updateSecurityMarksCallable()com.google.api.gax.rpc.UnaryCallable<UpdateSourceRequest,Source>updateSourceCallable()-
Methods inherited from class com.google.cloud.securitycenter.v1beta1.stub.SecurityCenterStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonSecurityCenterStub
protected HttpJsonSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonSecurityCenterStub
protected HttpJsonSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonSecurityCenterStub create(SecurityCenterStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSecurityCenterStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSecurityCenterStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classSecurityCenterStub
-
createSourceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSourceRequest,Source> createSourceCallable()
- Overrides:
createSourceCallablein classSecurityCenterStub
-
createFindingCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFindingRequest,Finding> createFindingCallable()
- Overrides:
createFindingCallablein classSecurityCenterStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classSecurityCenterStub
-
getOrganizationSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<GetOrganizationSettingsRequest,OrganizationSettings> getOrganizationSettingsCallable()
- Overrides:
getOrganizationSettingsCallablein classSecurityCenterStub
-
getSourceCallable
public com.google.api.gax.rpc.UnaryCallable<GetSourceRequest,Source> getSourceCallable()
- Overrides:
getSourceCallablein classSecurityCenterStub
-
groupAssetsCallable
public com.google.api.gax.rpc.UnaryCallable<GroupAssetsRequest,GroupAssetsResponse> groupAssetsCallable()
- Overrides:
groupAssetsCallablein classSecurityCenterStub
-
groupAssetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GroupAssetsRequest,SecurityCenterClient.GroupAssetsPagedResponse> groupAssetsPagedCallable()
- Overrides:
groupAssetsPagedCallablein classSecurityCenterStub
-
groupFindingsCallable
public com.google.api.gax.rpc.UnaryCallable<GroupFindingsRequest,GroupFindingsResponse> groupFindingsCallable()
- Overrides:
groupFindingsCallablein classSecurityCenterStub
-
groupFindingsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GroupFindingsRequest,SecurityCenterClient.GroupFindingsPagedResponse> groupFindingsPagedCallable()
- Overrides:
groupFindingsPagedCallablein classSecurityCenterStub
-
listAssetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAssetsRequest,ListAssetsResponse> listAssetsCallable()
- Overrides:
listAssetsCallablein classSecurityCenterStub
-
listAssetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAssetsRequest,SecurityCenterClient.ListAssetsPagedResponse> listAssetsPagedCallable()
- Overrides:
listAssetsPagedCallablein classSecurityCenterStub
-
listFindingsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFindingsRequest,ListFindingsResponse> listFindingsCallable()
- Overrides:
listFindingsCallablein classSecurityCenterStub
-
listFindingsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFindingsRequest,SecurityCenterClient.ListFindingsPagedResponse> listFindingsPagedCallable()
- Overrides:
listFindingsPagedCallablein classSecurityCenterStub
-
listSourcesCallable
public com.google.api.gax.rpc.UnaryCallable<ListSourcesRequest,ListSourcesResponse> listSourcesCallable()
- Overrides:
listSourcesCallablein classSecurityCenterStub
-
listSourcesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSourcesRequest,SecurityCenterClient.ListSourcesPagedResponse> listSourcesPagedCallable()
- Overrides:
listSourcesPagedCallablein classSecurityCenterStub
-
runAssetDiscoveryCallable
public com.google.api.gax.rpc.UnaryCallable<RunAssetDiscoveryRequest,com.google.longrunning.Operation> runAssetDiscoveryCallable()
- Overrides:
runAssetDiscoveryCallablein classSecurityCenterStub
-
runAssetDiscoveryOperationCallable
public com.google.api.gax.rpc.OperationCallable<RunAssetDiscoveryRequest,com.google.protobuf.Empty,com.google.protobuf.Empty> runAssetDiscoveryOperationCallable()
- Overrides:
runAssetDiscoveryOperationCallablein classSecurityCenterStub
-
setFindingStateCallable
public com.google.api.gax.rpc.UnaryCallable<SetFindingStateRequest,Finding> setFindingStateCallable()
- Overrides:
setFindingStateCallablein classSecurityCenterStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classSecurityCenterStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classSecurityCenterStub
-
updateFindingCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFindingRequest,Finding> updateFindingCallable()
- Overrides:
updateFindingCallablein classSecurityCenterStub
-
updateOrganizationSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateOrganizationSettingsRequest,OrganizationSettings> updateOrganizationSettingsCallable()
- Overrides:
updateOrganizationSettingsCallablein classSecurityCenterStub
-
updateSourceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSourceRequest,Source> updateSourceCallable()
- Overrides:
updateSourceCallablein classSecurityCenterStub
-
updateSecurityMarksCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSecurityMarksRequest,SecurityMarks> updateSecurityMarksCallable()
- Overrides:
updateSecurityMarksCallablein classSecurityCenterStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSecurityCenterStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-