public sealed class ConfigClientImpl : ConfigClientReference documentation and code samples for the Cloud Security Compliance v1 API class ConfigClientImpl.
Config client wrapper implementation, for convenient use.
Namespace
Google.Cloud.CloudSecurityCompliance.V1Assembly
Google.Cloud.CloudSecurityCompliance.V1.dll
Remarks
Config Service manages compliance frameworks, cloud controls, and their configurations.
Constructors
ConfigClientImpl(ConfigClient, ConfigSettings, ILogger)
public ConfigClientImpl(Config.ConfigClient grpcClient, ConfigSettings settings, ILogger logger)Constructs a client wrapper for the Config service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
ConfigConfigClientThe underlying gRPC client. |
settings |
ConfigSettingsThe base ConfigSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override Config.ConfigClient GrpcClient { get; }The underlying gRPC Config client
| Property Value | |
|---|---|
| Type | Description |
ConfigConfigClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateCloudControl(CreateCloudControlRequest, CallSettings)
public override CloudControl CreateCloudControl(CreateCloudControlRequest request, CallSettings callSettings = null)Creates a custom cloud control in a given parent resource. You can't create built-in cloud controls because those are managed by Google.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CloudControl |
The RPC response. |
CreateCloudControlAsync(CreateCloudControlRequest, CallSettings)
public override Task<CloudControl> CreateCloudControlAsync(CreateCloudControlRequest request, CallSettings callSettings = null)Creates a custom cloud control in a given parent resource. You can't create built-in cloud controls because those are managed by Google.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCloudControl |
A Task containing the RPC response. |
CreateFramework(CreateFrameworkRequest, CallSettings)
public override Framework CreateFramework(CreateFrameworkRequest request, CallSettings callSettings = null)Creates a custom framework in a given parent resource. You can't create built-in frameworks because those are managed by Google.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Framework |
The RPC response. |
CreateFrameworkAsync(CreateFrameworkRequest, CallSettings)
public override Task<Framework> CreateFrameworkAsync(CreateFrameworkRequest request, CallSettings callSettings = null)Creates a custom framework in a given parent resource. You can't create built-in frameworks because those are managed by Google.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFramework |
A Task containing the RPC response. |
DeleteCloudControl(DeleteCloudControlRequest, CallSettings)
public override void DeleteCloudControl(DeleteCloudControlRequest request, CallSettings callSettings = null)Deletes a custom cloud control, including all its major and minor revisions. Consider the following:
- You can't delete built-in cloud controls. You can only delete cloud
controls with type
CUSTOM. - You can't delete cloud controls if any of the versions are referenced by a framework.
- You can't restore a deleted cloud control. This action is permanent.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteCloudControlAsync(DeleteCloudControlRequest, CallSettings)
public override Task DeleteCloudControlAsync(DeleteCloudControlRequest request, CallSettings callSettings = null)Deletes a custom cloud control, including all its major and minor revisions. Consider the following:
- You can't delete built-in cloud controls. You can only delete cloud
controls with type
CUSTOM. - You can't delete cloud controls if any of the versions are referenced by a framework.
- You can't restore a deleted cloud control. This action is permanent.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
DeleteFramework(DeleteFrameworkRequest, CallSettings)
public override void DeleteFramework(DeleteFrameworkRequest request, CallSettings callSettings = null)Deletes a custom framework, including all its major and minor revisions. Consider the following:
- You can't delete built-in frameworks. You can only delete frameworks
with type
CUSTOM. - You can't delete frameworks that are deployed to a resource.
- You can't restore a deleted framework. This action is permanent.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteFrameworkAsync(DeleteFrameworkRequest, CallSettings)
public override Task DeleteFrameworkAsync(DeleteFrameworkRequest request, CallSettings callSettings = null)Deletes a custom framework, including all its major and minor revisions. Consider the following:
- You can't delete built-in frameworks. You can only delete frameworks
with type
CUSTOM. - You can't delete frameworks that are deployed to a resource.
- You can't restore a deleted framework. This action is permanent.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetCloudControl(GetCloudControlRequest, CallSettings)
public override CloudControl GetCloudControl(GetCloudControlRequest request, CallSettings callSettings = null)Gets details about a cloud control. This method retrieves the latest major version of a cloud control that you identify by name.
By default, the latest major version of the cloud control is returned.
To retrieve a specific major version, include major_revision_id in
the request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CloudControl |
The RPC response. |
GetCloudControlAsync(GetCloudControlRequest, CallSettings)
public override Task<CloudControl> GetCloudControlAsync(GetCloudControlRequest request, CallSettings callSettings = null)Gets details about a cloud control. This method retrieves the latest major version of a cloud control that you identify by name.
By default, the latest major version of the cloud control is returned.
To retrieve a specific major version, include major_revision_id in
the request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCloudControl |
A Task containing the RPC response. |
GetFramework(GetFrameworkRequest, CallSettings)
public override Framework GetFramework(GetFrameworkRequest request, CallSettings callSettings = null)Gets details about a framework. This method retrieves the latest major version of the framework.
To retrieve a specific major version, include major_revision_id in
the request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Framework |
The RPC response. |
GetFrameworkAsync(GetFrameworkRequest, CallSettings)
public override Task<Framework> GetFrameworkAsync(GetFrameworkRequest request, CallSettings callSettings = null)Gets details about a framework. This method retrieves the latest major version of the framework.
To retrieve a specific major version, include major_revision_id in
the request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFramework |
A Task containing the RPC response. |
ListCloudControls(ListCloudControlsRequest, CallSettings)
public override PagedEnumerable<ListCloudControlsResponse, CloudControl> ListCloudControls(ListCloudControlsRequest request, CallSettings callSettings = null)Lists the cloud controls (both built-in and custom) that are available in a given parent resource. The latest major version of each cloud control is returned. This method supports pagination.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCloudControlsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListCloudControlsResponseCloudControl |
A pageable sequence of CloudControl resources. |
ListCloudControlsAsync(ListCloudControlsRequest, CallSettings)
public override PagedAsyncEnumerable<ListCloudControlsResponse, CloudControl> ListCloudControlsAsync(ListCloudControlsRequest request, CallSettings callSettings = null)Lists the cloud controls (both built-in and custom) that are available in a given parent resource. The latest major version of each cloud control is returned. This method supports pagination.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCloudControlsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListCloudControlsResponseCloudControl |
A pageable asynchronous sequence of CloudControl resources. |
ListFrameworks(ListFrameworksRequest, CallSettings)
public override PagedEnumerable<ListFrameworksResponse, Framework> ListFrameworks(ListFrameworksRequest request, CallSettings callSettings = null)Lists the frameworks (both built-in and custom) that are available within the parent resource. The latest major version of each framework is returned. This method supports pagination.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFrameworksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFrameworksResponseFramework |
A pageable sequence of Framework resources. |
ListFrameworksAsync(ListFrameworksRequest, CallSettings)
public override PagedAsyncEnumerable<ListFrameworksResponse, Framework> ListFrameworksAsync(ListFrameworksRequest request, CallSettings callSettings = null)Lists the frameworks (both built-in and custom) that are available within the parent resource. The latest major version of each framework is returned. This method supports pagination.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFrameworksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFrameworksResponseFramework |
A pageable asynchronous sequence of Framework resources. |
UpdateCloudControl(UpdateCloudControlRequest, CallSettings)
public override CloudControl UpdateCloudControl(UpdateCloudControlRequest request, CallSettings callSettings = null)Updates a custom cloud control.
This method allows for partial updates of a cloud control. Use the
update_mask to specify which fields to update. Consider the following:
- If you provide an
update_mask, only the fields that are specified in the mask are updated. - If you don't provide an
update_mask, all the fields that are present in the request'scloud_controlbody are used to overwrite the existing resource.
You can only update cloud controls with the CUSTOM type.
A successful update creates a new version of the cloud control.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CloudControl |
The RPC response. |
UpdateCloudControlAsync(UpdateCloudControlRequest, CallSettings)
public override Task<CloudControl> UpdateCloudControlAsync(UpdateCloudControlRequest request, CallSettings callSettings = null)Updates a custom cloud control.
This method allows for partial updates of a cloud control. Use the
update_mask to specify which fields to update. Consider the following:
- If you provide an
update_mask, only the fields that are specified in the mask are updated. - If you don't provide an
update_mask, all the fields that are present in the request'scloud_controlbody are used to overwrite the existing resource.
You can only update cloud controls with the CUSTOM type.
A successful update creates a new version of the cloud control.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateCloudControlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCloudControl |
A Task containing the RPC response. |
UpdateFramework(UpdateFrameworkRequest, CallSettings)
public override Framework UpdateFramework(UpdateFrameworkRequest request, CallSettings callSettings = null)Updates a custom framework.
This method allows for partial updates of a framework. Use the
update_mask to specify which fields to update. Consider the following:
- If you provide an
update_mask, only the fields that are specified in the mask are updated. - If you don't provide an
update_mask, all the fields that are present in the request'sframeworkbody are used to overwrite the existing resource.
You can only update frameworks with the CUSTOM type.
A successful update creates a new version of the framework.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Framework |
The RPC response. |
UpdateFrameworkAsync(UpdateFrameworkRequest, CallSettings)
public override Task<Framework> UpdateFrameworkAsync(UpdateFrameworkRequest request, CallSettings callSettings = null)Updates a custom framework.
This method allows for partial updates of a framework. Use the
update_mask to specify which fields to update. Consider the following:
- If you provide an
update_mask, only the fields that are specified in the mask are updated. - If you don't provide an
update_mask, all the fields that are present in the request'sframeworkbody are used to overwrite the existing resource.
You can only update frameworks with the CUSTOM type.
A successful update creates a new version of the framework.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFrameworkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFramework |
A Task containing the RPC response. |