Binary Authorization v1beta1 API - Class BinauthzManagementServiceV1Beta1ClientImpl (2.0.0-beta06)

public sealed class BinauthzManagementServiceV1Beta1ClientImpl : BinauthzManagementServiceV1Beta1Client

Reference documentation and code samples for the Binary Authorization v1beta1 API class BinauthzManagementServiceV1Beta1ClientImpl.

BinauthzManagementServiceV1Beta1 client wrapper implementation, for convenient use.

Inheritance

object > BinauthzManagementServiceV1Beta1Client > BinauthzManagementServiceV1Beta1ClientImpl

Namespace

Google.Cloud.BinaryAuthorization.V1Beta1

Assembly

Google.Cloud.BinaryAuthorization.V1Beta1.dll

Remarks

Google Cloud Management Service for Binary Authorization admission policies and attestation authorities.

This API implements a REST model with the following objects:

  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy]
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]

Constructors

BinauthzManagementServiceV1Beta1ClientImpl(BinauthzManagementServiceV1Beta1Client, BinauthzManagementServiceV1Beta1Settings, ILogger)

public BinauthzManagementServiceV1Beta1ClientImpl(BinauthzManagementServiceV1Beta1.BinauthzManagementServiceV1Beta1Client grpcClient, BinauthzManagementServiceV1Beta1Settings settings, ILogger logger)

Constructs a client wrapper for the BinauthzManagementServiceV1Beta1 service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientBinauthzManagementServiceV1Beta1BinauthzManagementServiceV1Beta1Client

The underlying gRPC client.

settingsBinauthzManagementServiceV1Beta1Settings

The base BinauthzManagementServiceV1Beta1Settings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override BinauthzManagementServiceV1Beta1.BinauthzManagementServiceV1Beta1Client GrpcClient { get; }

The underlying gRPC BinauthzManagementServiceV1Beta1 client

Property Value
TypeDescription
BinauthzManagementServiceV1Beta1BinauthzManagementServiceV1Beta1Client
Overrides

Methods

CreateAttestor(CreateAttestorRequest, CallSettings)

public override Attestor CreateAttestor(CreateAttestorRequest request, CallSettings callSettings = null)

Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.

Parameters
NameDescription
requestCreateAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Attestor

The RPC response.

Overrides

CreateAttestorAsync(CreateAttestorRequest, CallSettings)

public override Task<Attestor> CreateAttestorAsync(CreateAttestorRequest request, CallSettings callSettings = null)

Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.

Parameters
NameDescription
requestCreateAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAttestor

A Task containing the RPC response.

Overrides

DeleteAttestor(DeleteAttestorRequest, CallSettings)

public override void DeleteAttestor(DeleteAttestorRequest request, CallSettings callSettings = null)

Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestDeleteAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteAttestorAsync(DeleteAttestorRequest, CallSettings)

public override Task DeleteAttestorAsync(DeleteAttestorRequest request, CallSettings callSettings = null)

Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestDeleteAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetAttestor(GetAttestorRequest, CallSettings)

public override Attestor GetAttestor(GetAttestorRequest request, CallSettings callSettings = null)

Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestGetAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Attestor

The RPC response.

Overrides

GetAttestorAsync(GetAttestorRequest, CallSettings)

public override Task<Attestor> GetAttestorAsync(GetAttestorRequest request, CallSettings callSettings = null)

Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestGetAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAttestor

A Task containing the RPC response.

Overrides

GetPolicy(GetPolicyRequest, CallSettings)

public override Policy GetPolicy(GetPolicyRequest request, CallSettings callSettings = null)

A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy.

Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.

Parameters
NameDescription
requestGetPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

GetPolicyAsync(GetPolicyRequest, CallSettings)

public override Task<Policy> GetPolicyAsync(GetPolicyRequest request, CallSettings callSettings = null)

A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy.

Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.

Parameters
NameDescription
requestGetPolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

ListAttestors(ListAttestorsRequest, CallSettings)

public override PagedEnumerable<ListAttestorsResponse, Attestor> ListAttestors(ListAttestorsRequest request, CallSettings callSettings = null)

Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist.

Parameters
NameDescription
requestListAttestorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListAttestorsResponseAttestor

A pageable sequence of Attestor resources.

Overrides

ListAttestorsAsync(ListAttestorsRequest, CallSettings)

public override PagedAsyncEnumerable<ListAttestorsResponse, Attestor> ListAttestorsAsync(ListAttestorsRequest request, CallSettings callSettings = null)

Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist.

Parameters
NameDescription
requestListAttestorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListAttestorsResponseAttestor

A pageable asynchronous sequence of Attestor resources.

Overrides

UpdateAttestor(UpdateAttestorRequest, CallSettings)

public override Attestor UpdateAttestor(UpdateAttestorRequest request, CallSettings callSettings = null)

Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestUpdateAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Attestor

The RPC response.

Overrides

UpdateAttestorAsync(UpdateAttestorRequest, CallSettings)

public override Task<Attestor> UpdateAttestorAsync(UpdateAttestorRequest request, CallSettings callSettings = null)

Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.

Parameters
NameDescription
requestUpdateAttestorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAttestor

A Task containing the RPC response.

Overrides

UpdatePolicy(UpdatePolicyRequest, CallSettings)

public override Policy UpdatePolicy(UpdatePolicyRequest request, CallSettings callSettings = null)

Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.

Parameters
NameDescription
requestUpdatePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

UpdatePolicyAsync(UpdatePolicyRequest, CallSettings)

public override Task<Policy> UpdatePolicyAsync(UpdatePolicyRequest request, CallSettings callSettings = null)

Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.

Parameters
NameDescription
requestUpdatePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides