Cloud Security Compliance v1 API - Class Config.ConfigClient (1.0.0-beta01)

public class Config.ConfigClient : ClientBase<Config.ConfigClient>

Reference documentation and code samples for the Cloud Security Compliance v1 API class Config.ConfigClient.

Client for Config

Inheritance

object > ClientBase > ClientBaseConfigConfigClient > Config.ConfigClient

Namespace

Google.Cloud.CloudSecurityCompliance.V1

Assembly

Google.Cloud.CloudSecurityCompliance.V1.dll

Constructors

ConfigClient()

protected ConfigClient()

Protected parameterless constructor to allow creation of test doubles.

ConfigClient(CallInvoker)

public ConfigClient(CallInvoker callInvoker)

Creates a new client for Config that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ConfigClient(ChannelBase)

public ConfigClient(ChannelBase channel)

Creates a new client for Config

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ConfigClient(ClientBaseConfiguration)

protected ConfigClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateCloudControl(CreateCloudControlRequest, CallOptions)

public virtual CloudControl CreateCloudControl(CreateCloudControlRequest request, CallOptions options)

Creates a single CloudControl for a given resource.

Parameters
Name Description
request CreateCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CloudControl

The response received from the server.

CreateCloudControl(CreateCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual CloudControl CreateCloudControl(CreateCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a single CloudControl for a given resource.

Parameters
Name Description
request CreateCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
CloudControl

The response received from the server.

CreateCloudControlAsync(CreateCloudControlRequest, CallOptions)

public virtual AsyncUnaryCall<CloudControl> CreateCloudControlAsync(CreateCloudControlRequest request, CallOptions options)

Creates a single CloudControl for a given resource.

Parameters
Name Description
request CreateCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCloudControl

The call object.

CreateCloudControlAsync(CreateCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<CloudControl> CreateCloudControlAsync(CreateCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a single CloudControl for a given resource.

Parameters
Name Description
request CreateCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCloudControl

The call object.

CreateFramework(CreateFrameworkRequest, CallOptions)

public virtual Framework CreateFramework(CreateFrameworkRequest request, CallOptions options)

Creates a single framework for a given resource.

Parameters
Name Description
request CreateFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Framework

The response received from the server.

CreateFramework(CreateFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Framework CreateFramework(CreateFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a single framework for a given resource.

Parameters
Name Description
request CreateFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Framework

The response received from the server.

CreateFrameworkAsync(CreateFrameworkRequest, CallOptions)

public virtual AsyncUnaryCall<Framework> CreateFrameworkAsync(CreateFrameworkRequest request, CallOptions options)

Creates a single framework for a given resource.

Parameters
Name Description
request CreateFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallFramework

The call object.

CreateFrameworkAsync(CreateFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Framework> CreateFrameworkAsync(CreateFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a single framework for a given resource.

Parameters
Name Description
request CreateFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallFramework

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

DeleteCloudControl(DeleteCloudControlRequest, CallOptions)

public virtual Empty DeleteCloudControl(DeleteCloudControlRequest request, CallOptions options)

Deletes a single CloudControl.

Parameters
Name Description
request DeleteCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteCloudControl(DeleteCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteCloudControl(DeleteCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single CloudControl.

Parameters
Name Description
request DeleteCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteCloudControlAsync(DeleteCloudControlRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteCloudControlAsync(DeleteCloudControlRequest request, CallOptions options)

Deletes a single CloudControl.

Parameters
Name Description
request DeleteCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteCloudControlAsync(DeleteCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteCloudControlAsync(DeleteCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single CloudControl.

Parameters
Name Description
request DeleteCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteFramework(DeleteFrameworkRequest, CallOptions)

public virtual Empty DeleteFramework(DeleteFrameworkRequest request, CallOptions options)

Deletes a single Framework.

Parameters
Name Description
request DeleteFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteFramework(DeleteFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteFramework(DeleteFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single Framework.

Parameters
Name Description
request DeleteFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteFrameworkAsync(DeleteFrameworkRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteFrameworkAsync(DeleteFrameworkRequest request, CallOptions options)

Deletes a single Framework.

Parameters
Name Description
request DeleteFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteFrameworkAsync(DeleteFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteFrameworkAsync(DeleteFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single Framework.

Parameters
Name Description
request DeleteFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetCloudControl(GetCloudControlRequest, CallOptions)

public virtual CloudControl GetCloudControl(GetCloudControlRequest request, CallOptions options)

Gets details of a single CloudControl.

Parameters
Name Description
request GetCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CloudControl

The response received from the server.

GetCloudControl(GetCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual CloudControl GetCloudControl(GetCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single CloudControl.

Parameters
Name Description
request GetCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
CloudControl

The response received from the server.

GetCloudControlAsync(GetCloudControlRequest, CallOptions)

public virtual AsyncUnaryCall<CloudControl> GetCloudControlAsync(GetCloudControlRequest request, CallOptions options)

Gets details of a single CloudControl.

Parameters
Name Description
request GetCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCloudControl

The call object.

GetCloudControlAsync(GetCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<CloudControl> GetCloudControlAsync(GetCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single CloudControl.

Parameters
Name Description
request GetCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCloudControl

The call object.

GetFramework(GetFrameworkRequest, CallOptions)

public virtual Framework GetFramework(GetFrameworkRequest request, CallOptions options)

Gets details of a single Framework.

Parameters
Name Description
request GetFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Framework

The response received from the server.

GetFramework(GetFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Framework GetFramework(GetFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single Framework.

Parameters
Name Description
request GetFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Framework

The response received from the server.

GetFrameworkAsync(GetFrameworkRequest, CallOptions)

public virtual AsyncUnaryCall<Framework> GetFrameworkAsync(GetFrameworkRequest request, CallOptions options)

Gets details of a single Framework.

Parameters
Name Description
request GetFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallFramework

The call object.

GetFrameworkAsync(GetFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Framework> GetFrameworkAsync(GetFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single Framework.

Parameters
Name Description
request GetFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallFramework

The call object.

ListCloudControls(ListCloudControlsRequest, CallOptions)

public virtual ListCloudControlsResponse ListCloudControls(ListCloudControlsRequest request, CallOptions options)

Lists CloudControls in a given organization.

Parameters
Name Description
request ListCloudControlsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListCloudControlsResponse

The response received from the server.

ListCloudControls(ListCloudControlsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListCloudControlsResponse ListCloudControls(ListCloudControlsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists CloudControls in a given organization.

Parameters
Name Description
request ListCloudControlsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListCloudControlsResponse

The response received from the server.

ListCloudControlsAsync(ListCloudControlsRequest, CallOptions)

public virtual AsyncUnaryCall<ListCloudControlsResponse> ListCloudControlsAsync(ListCloudControlsRequest request, CallOptions options)

Lists CloudControls in a given organization.

Parameters
Name Description
request ListCloudControlsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListCloudControlsResponse

The call object.

ListCloudControlsAsync(ListCloudControlsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListCloudControlsResponse> ListCloudControlsAsync(ListCloudControlsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists CloudControls in a given organization.

Parameters
Name Description
request ListCloudControlsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListCloudControlsResponse

The call object.

ListFrameworks(ListFrameworksRequest, CallOptions)

public virtual ListFrameworksResponse ListFrameworks(ListFrameworksRequest request, CallOptions options)

Lists Frameworks in a given organization.

Parameters
Name Description
request ListFrameworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListFrameworksResponse

The response received from the server.

ListFrameworks(ListFrameworksRequest, Metadata, DateTime?, CancellationToken)

public virtual ListFrameworksResponse ListFrameworks(ListFrameworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Frameworks in a given organization.

Parameters
Name Description
request ListFrameworksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListFrameworksResponse

The response received from the server.

ListFrameworksAsync(ListFrameworksRequest, CallOptions)

public virtual AsyncUnaryCall<ListFrameworksResponse> ListFrameworksAsync(ListFrameworksRequest request, CallOptions options)

Lists Frameworks in a given organization.

Parameters
Name Description
request ListFrameworksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListFrameworksResponse

The call object.

ListFrameworksAsync(ListFrameworksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListFrameworksResponse> ListFrameworksAsync(ListFrameworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Frameworks in a given organization.

Parameters
Name Description
request ListFrameworksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListFrameworksResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Config.ConfigClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ConfigConfigClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.CloudSecurityCompliance.V1.Config.ConfigClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateCloudControl(UpdateCloudControlRequest, CallOptions)

public virtual CloudControl UpdateCloudControl(UpdateCloudControlRequest request, CallOptions options)

Updates a single CloudControl.

Parameters
Name Description
request UpdateCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
CloudControl

The response received from the server.

UpdateCloudControl(UpdateCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual CloudControl UpdateCloudControl(UpdateCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a single CloudControl.

Parameters
Name Description
request UpdateCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
CloudControl

The response received from the server.

UpdateCloudControlAsync(UpdateCloudControlRequest, CallOptions)

public virtual AsyncUnaryCall<CloudControl> UpdateCloudControlAsync(UpdateCloudControlRequest request, CallOptions options)

Updates a single CloudControl.

Parameters
Name Description
request UpdateCloudControlRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCloudControl

The call object.

UpdateCloudControlAsync(UpdateCloudControlRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<CloudControl> UpdateCloudControlAsync(UpdateCloudControlRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a single CloudControl.

Parameters
Name Description
request UpdateCloudControlRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCloudControl

The call object.

UpdateFramework(UpdateFrameworkRequest, CallOptions)

public virtual Framework UpdateFramework(UpdateFrameworkRequest request, CallOptions options)

Updates a single Framework.

Parameters
Name Description
request UpdateFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Framework

The response received from the server.

UpdateFramework(UpdateFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual Framework UpdateFramework(UpdateFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a single Framework.

Parameters
Name Description
request UpdateFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Framework

The response received from the server.

UpdateFrameworkAsync(UpdateFrameworkRequest, CallOptions)

public virtual AsyncUnaryCall<Framework> UpdateFrameworkAsync(UpdateFrameworkRequest request, CallOptions options)

Updates a single Framework.

Parameters
Name Description
request UpdateFrameworkRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallFramework

The call object.

UpdateFrameworkAsync(UpdateFrameworkRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Framework> UpdateFrameworkAsync(UpdateFrameworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a single Framework.

Parameters
Name Description
request UpdateFrameworkRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallFramework

The call object.