- 1.72.0 (latest)
- 1.71.0
- 1.69.0
- 1.67.0
- 1.66.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.0.6
com.google.cloud.binaryauthorization.v1beta1
The interfaces provided are listed below, along with usage samples.
BinauthzManagementServiceV1Beta1Client
Service Description: Google Cloud Management Service for Binary Authorization admission policies and attestation authorities.
This API implements a REST model with the following objects:
- Policy
- Attestor
Sample for BinauthzManagementServiceV1Beta1Client:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try
(
BinauthzManagementServiceV1Beta1Client
binauthzManagementServiceV1Beta1Client
=
BinauthzManagementServiceV1Beta1Client
.
create
())
{
PolicyName
name
=
PolicyName
.
ofProjectName
(
"[PROJECT]"
);
Policy
response
=
binauthzManagementServiceV1Beta1Client
.
getPolicy
(
name
);
}
SystemPolicyV1Beta1Client
Service Description: API for working with the system policy.
Sample for SystemPolicyV1Beta1Client:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try
(
SystemPolicyV1Beta1Client
systemPolicyV1Beta1Client
=
SystemPolicyV1Beta1Client
.
create
())
{
PolicyName
name
=
PolicyName
.
ofLocationName
(
"[LOCATION]"
);
Policy
response
=
systemPolicyV1Beta1Client
.
getSystemPolicy
(
name
);
}
com.google.cloud.binaryauthorization.v1beta1.stub
com.google.protos.google.cloud.binaryauthorization.v1
A client to Binary Authorization API
The interfaces provided are listed below, along with usage samples.
BinauthzManagementServiceV1Client
Service Description: Google Cloud Management Service for Binary Authorization admission policies and attestation authorities.
This API implements a REST model with the following objects:
- Policy
- Attestor
Sample for BinauthzManagementServiceV1Client:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try
(
BinauthzManagementServiceV1Client
binauthzManagementServiceV1Client
=
BinauthzManagementServiceV1Client
.
create
())
{
PolicyName
name
=
PolicyName
.
ofProjectName
(
"[PROJECT]"
);
Resources
.
Policy
response
=
binauthzManagementServiceV1Client
.
getPolicy
(
name
);
}
SystemPolicyV1Client
Service Description: API for working with the system policy.
Sample for SystemPolicyV1Client:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try
(
SystemPolicyV1Client
systemPolicyV1Client
=
SystemPolicyV1Client
.
create
())
{
PolicyName
name
=
PolicyName
.
ofLocationName
(
"[LOCATION]"
);
Resources
.
Policy
response
=
systemPolicyV1Client
.
getSystemPolicy
(
name
);
}
ValidationHelperV1Client
Service Description: BinAuthz Attestor verification
Sample for ValidationHelperV1Client:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try
(
ValidationHelperV1Client
validationHelperV1Client
=
ValidationHelperV1Client
.
create
())
{
Service
.
ValidateAttestationOccurrenceRequest
request
=
Service
.
ValidateAttestationOccurrenceRequest
.
newBuilder
()
.
setAttestor
(
"attestor542920680"
)
.
setAttestation
(
AttestationOccurrence
.
newBuilder
().
build
())
.
setOccurrenceNote
(
"occurrenceNote1722072419"
)
.
setOccurrenceResourceUri
(
"occurrenceResourceUri1001424877"
)
.
build
();
Service
.
ValidateAttestationOccurrenceResponse
response
=
validationHelperV1Client
.
validateAttestationOccurrence
(
request
);
}