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 @@ -46,6 +46,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 (IDSClient iDSClient = IDSClient.create()) {
* EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
* Endpoint response = iDSClient.getEndpoint(name);
Expand Down Expand Up @@ -81,6 +83,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.
* IDSSettings iDSSettings =
* IDSSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -91,6 +95,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.
* IDSSettings iDSSettings = IDSSettings.newBuilder().setEndpoint(myEndpoint).build();
* IDSClient iDSClient = IDSClient.create(iDSSettings);
* }</pre>
Expand Down Expand Up @@ -166,6 +172,8 @@ public final OperationsClient getOperationsClient() {
* <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 (IDSClient iDSClient = IDSClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Endpoint element : iDSClient.listEndpoints(parent).iterateAll()) {
Expand All @@ -192,6 +200,8 @@ public final ListEndpointsPagedResponse listEndpoints(LocationName 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 (IDSClient iDSClient = IDSClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Endpoint element : iDSClient.listEndpoints(parent).iterateAll()) {
Expand All @@ -215,6 +225,8 @@ public final ListEndpointsPagedResponse listEndpoints(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 (IDSClient iDSClient = IDSClient.create()) {
* ListEndpointsRequest request =
* ListEndpointsRequest.newBuilder()
Expand Down Expand Up @@ -244,6 +256,8 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest 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 (IDSClient iDSClient = IDSClient.create()) {
* ListEndpointsRequest request =
* ListEndpointsRequest.newBuilder()
Expand Down Expand Up @@ -273,6 +287,8 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest 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 (IDSClient iDSClient = IDSClient.create()) {
* ListEndpointsRequest request =
* ListEndpointsRequest.newBuilder()
Expand Down Expand Up @@ -308,6 +324,8 @@ public final UnaryCallable<ListEndpointsRequest, ListEndpointsResponse> listEndp
* <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 (IDSClient iDSClient = IDSClient.create()) {
* EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
* Endpoint response = iDSClient.getEndpoint(name);
Expand All @@ -331,6 +349,8 @@ public final Endpoint getEndpoint(EndpointName 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 (IDSClient iDSClient = IDSClient.create()) {
* String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
* Endpoint response = iDSClient.getEndpoint(name);
Expand All @@ -353,6 +373,8 @@ public final Endpoint getEndpoint(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 (IDSClient iDSClient = IDSClient.create()) {
* GetEndpointRequest request =
* GetEndpointRequest.newBuilder()
Expand All @@ -376,6 +398,8 @@ public final Endpoint getEndpoint(GetEndpointRequest 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 (IDSClient iDSClient = IDSClient.create()) {
* GetEndpointRequest request =
* GetEndpointRequest.newBuilder()
Expand All @@ -398,6 +422,8 @@ public final UnaryCallable<GetEndpointRequest, Endpoint> getEndpointCallable() {
* <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 (IDSClient iDSClient = IDSClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Endpoint endpoint = Endpoint.newBuilder().build();
Expand Down Expand Up @@ -432,6 +458,8 @@ public final OperationFuture<Endpoint, OperationMetadata> createEndpointAsync(
* <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 (IDSClient iDSClient = IDSClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Endpoint endpoint = Endpoint.newBuilder().build();
Expand Down Expand Up @@ -466,6 +494,8 @@ public final OperationFuture<Endpoint, OperationMetadata> createEndpointAsync(
* <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 (IDSClient iDSClient = IDSClient.create()) {
* CreateEndpointRequest request =
* CreateEndpointRequest.newBuilder()
Expand Down Expand Up @@ -493,6 +523,8 @@ public final OperationFuture<Endpoint, OperationMetadata> createEndpointAsync(
* <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 (IDSClient iDSClient = IDSClient.create()) {
* CreateEndpointRequest request =
* CreateEndpointRequest.newBuilder()
Expand Down Expand Up @@ -520,6 +552,8 @@ public final OperationFuture<Endpoint, OperationMetadata> createEndpointAsync(
* <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 (IDSClient iDSClient = IDSClient.create()) {
* CreateEndpointRequest request =
* CreateEndpointRequest.newBuilder()
Expand All @@ -545,6 +579,8 @@ public final UnaryCallable<CreateEndpointRequest, Operation> createEndpointCalla
* <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 (IDSClient iDSClient = IDSClient.create()) {
* EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
* iDSClient.deleteEndpointAsync(name).get();
Expand All @@ -567,6 +603,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteEndpointAsync(Endpo
* <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 (IDSClient iDSClient = IDSClient.create()) {
* String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
* iDSClient.deleteEndpointAsync(name).get();
Expand All @@ -588,6 +626,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteEndpointAsync(Strin
* <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 (IDSClient iDSClient = IDSClient.create()) {
* DeleteEndpointRequest request =
* DeleteEndpointRequest.newBuilder()
Expand All @@ -613,6 +653,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteEndpointAsync(
* <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 (IDSClient iDSClient = IDSClient.create()) {
* DeleteEndpointRequest request =
* DeleteEndpointRequest.newBuilder()
Expand All @@ -638,6 +680,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteEndpointAsync(
* <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 (IDSClient iDSClient = IDSClient.create()) {
* DeleteEndpointRequest request =
* DeleteEndpointRequest.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 @@ -55,6 +55,8 @@
* <p>For example, to set the total timeout of getEndpoint to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* IDSSettings.Builder iDSSettingsBuilder = IDSSettings.newBuilder();
* iDSSettingsBuilder
* .getEndpointSettings()
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 All @@ -26,6 +26,8 @@
* <p>Sample for IDSClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (IDSClient iDSClient = IDSClient.create()) {
* EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
* Endpoint response = iDSClient.getEndpoint(name);
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
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
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
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 @@ -80,6 +80,8 @@
* <p>For example, to set the total timeout of getEndpoint to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* IDSStubSettings.Builder iDSSettingsBuilder = IDSStubSettings.newBuilder();
* iDSSettingsBuilder
* .getEndpointSettings()
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
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
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
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
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