Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -50,6 +50,8 @@
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
Expand Down Expand Up @@ -87,6 +89,8 @@
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
* BinauthzManagementServiceV1Beta1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -98,6 +102,8 @@
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
* BinauthzManagementServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
* BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
Expand Down Expand Up @@ -179,6 +185,8 @@ public BinauthzManagementServiceV1Beta1Stub getStub() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
Expand Down Expand Up @@ -211,6 +219,8 @@ public final Policy getPolicy(PolicyName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
Expand Down Expand Up @@ -242,6 +252,8 @@ public final Policy getPolicy(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetPolicyRequest request =
Expand Down Expand Up @@ -273,6 +285,8 @@ public final Policy getPolicy(GetPolicyRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetPolicyRequest request =
Expand Down Expand Up @@ -301,6 +315,8 @@ public final UnaryCallable<GetPolicyRequest, Policy> getPolicyCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* Policy policy = Policy.newBuilder().build();
Expand Down Expand Up @@ -330,6 +346,8 @@ public final Policy updatePolicy(Policy policy) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdatePolicyRequest request =
Expand All @@ -356,6 +374,8 @@ public final Policy updatePolicy(UpdatePolicyRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdatePolicyRequest request =
Expand All @@ -381,6 +401,8 @@ public final UnaryCallable<UpdatePolicyRequest, Policy> updatePolicyCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
Expand Down Expand Up @@ -421,6 +443,8 @@ public final Attestor createAttestor(ProjectName parent, String attestorId, Atte
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
Expand Down Expand Up @@ -461,6 +485,8 @@ public final Attestor createAttestor(String parent, String attestorId, Attestor
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* CreateAttestorRequest request =
Expand Down Expand Up @@ -490,6 +516,8 @@ public final Attestor createAttestor(CreateAttestorRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* CreateAttestorRequest request =
Expand Down Expand Up @@ -517,6 +545,8 @@ public final UnaryCallable<CreateAttestorRequest, Attestor> createAttestorCallab
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
Expand All @@ -543,6 +573,8 @@ public final Attestor getAttestor(AttestorName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
Expand All @@ -568,6 +600,8 @@ public final Attestor getAttestor(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetAttestorRequest request =
Expand All @@ -593,6 +627,8 @@ public final Attestor getAttestor(GetAttestorRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetAttestorRequest request =
Expand All @@ -618,6 +654,8 @@ public final UnaryCallable<GetAttestorRequest, Attestor> getAttestorCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* Attestor attestor = Attestor.newBuilder().build();
Expand Down Expand Up @@ -645,6 +683,8 @@ public final Attestor updateAttestor(Attestor attestor) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdateAttestorRequest request =
Expand All @@ -668,6 +708,8 @@ public final Attestor updateAttestor(UpdateAttestorRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdateAttestorRequest request =
Expand All @@ -691,6 +733,8 @@ public final UnaryCallable<UpdateAttestorRequest, Attestor> updateAttestorCallab
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
Expand Down Expand Up @@ -722,6 +766,8 @@ public final ListAttestorsPagedResponse listAttestors(ProjectName parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
Expand Down Expand Up @@ -750,6 +796,8 @@ public final ListAttestorsPagedResponse listAttestors(String parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ListAttestorsRequest request =
Expand Down Expand Up @@ -780,6 +828,8 @@ public final ListAttestorsPagedResponse listAttestors(ListAttestorsRequest reque
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ListAttestorsRequest request =
Expand Down Expand Up @@ -810,6 +860,8 @@ public final ListAttestorsPagedResponse listAttestors(ListAttestorsRequest reque
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ListAttestorsRequest request =
Expand Down Expand Up @@ -846,6 +898,8 @@ public final UnaryCallable<ListAttestorsRequest, ListAttestorsResponse> listAtte
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
Expand All @@ -872,6 +926,8 @@ public final void deleteAttestor(AttestorName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
Expand All @@ -897,6 +953,8 @@ public final void deleteAttestor(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* DeleteAttestorRequest request =
Expand All @@ -922,6 +980,8 @@ public final void deleteAttestor(DeleteAttestorRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* DeleteAttestorRequest request =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -54,6 +54,8 @@
* <p>For example, to set the total timeout of getPolicy to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Beta1Settings.Builder
* binauthzManagementServiceV1Beta1SettingsBuilder =
* BinauthzManagementServiceV1Beta1Settings.newBuilder();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,6 +33,8 @@
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
Expand Down Expand Up @@ -69,6 +71,8 @@
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -80,6 +84,8 @@
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
* SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
Expand Down Expand Up @@ -149,6 +155,8 @@ public SystemPolicyV1Beta1Stub getStub() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
Expand All @@ -172,6 +180,8 @@ public final Policy getSystemPolicy(PolicyName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
Expand All @@ -194,6 +204,8 @@ public final Policy getSystemPolicy(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* GetSystemPolicyRequest request =
* GetSystemPolicyRequest.newBuilder()
Expand All @@ -217,6 +229,8 @@ public final Policy getSystemPolicy(GetSystemPolicyRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* GetSystemPolicyRequest request =
* GetSystemPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -50,6 +50,8 @@
* <p>For example, to set the total timeout of getSystemPolicy to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* SystemPolicyV1Beta1Settings.Builder systemPolicyV1Beta1SettingsBuilder =
* SystemPolicyV1Beta1Settings.newBuilder();
* systemPolicyV1Beta1SettingsBuilder
Expand Down
Loading