From 47b0d4844de9047a0bcf40ba5e52277644d005f5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:30:22 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#832) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../resourcemanager/v3/FoldersClient.java | 378 +++++++++++++----- .../resourcemanager/v3/FoldersSettings.java | 12 +- .../v3/OrganizationsClient.java | 168 +++++--- .../v3/OrganizationsSettings.java | 12 +- .../resourcemanager/v3/ProjectsClient.java | 378 +++++++++++++----- .../resourcemanager/v3/ProjectsSettings.java | 12 +- .../resourcemanager/v3/TagBindingsClient.java | 126 ++++-- .../v3/TagBindingsSettings.java | 12 +- .../resourcemanager/v3/TagKeysClient.java | 266 ++++++++---- .../resourcemanager/v3/TagKeysSettings.java | 12 +- .../resourcemanager/v3/TagValuesClient.java | 266 ++++++++---- .../resourcemanager/v3/TagValuesSettings.java | 12 +- .../resourcemanager/v3/package-info.java | 42 +- .../v3/stub/FoldersStubSettings.java | 12 +- .../v3/stub/HttpJsonFoldersStub.java | 16 +- .../v3/stub/HttpJsonOrganizationsStub.java | 6 +- .../v3/stub/HttpJsonProjectsStub.java | 16 +- .../v3/stub/HttpJsonTagBindingsStub.java | 2 +- .../v3/stub/HttpJsonTagKeysStub.java | 12 +- .../v3/stub/HttpJsonTagValuesStub.java | 10 +- .../v3/stub/OrganizationsStubSettings.java | 12 +- .../v3/stub/ProjectsStubSettings.java | 12 +- .../v3/stub/TagBindingsStubSettings.java | 12 +- .../v3/stub/TagKeysStubSettings.java | 12 +- .../v3/stub/TagValuesStubSettings.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createfolder/AsyncCreateFolder.java | 7 +- .../createfolder/AsyncCreateFolderLRO.java | 7 +- .../createfolder/SyncCreateFolder.java | 7 +- .../createfolder/SyncCreateFolderFolder.java | 7 +- .../deletefolder/AsyncDeleteFolder.java | 7 +- .../deletefolder/AsyncDeleteFolderLRO.java | 7 +- .../deletefolder/SyncDeleteFolder.java | 7 +- .../SyncDeleteFolderFoldername.java | 7 +- .../deletefolder/SyncDeleteFolderString.java | 7 +- .../getfolder/AsyncGetFolder.java | 7 +- .../getfolder/SyncGetFolder.java | 7 +- .../getfolder/SyncGetFolderFoldername.java | 7 +- .../getfolder/SyncGetFolderString.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../listfolders/AsyncListFolders.java | 7 +- .../listfolders/AsyncListFoldersPaged.java | 7 +- .../listfolders/SyncListFolders.java | 7 +- .../SyncListFoldersResourcename.java | 7 +- .../listfolders/SyncListFoldersString.java | 7 +- .../movefolder/AsyncMoveFolder.java | 7 +- .../movefolder/AsyncMoveFolderLRO.java | 7 +- .../movefolder/SyncMoveFolder.java | 7 +- .../SyncMoveFolderFoldernameResourcename.java | 7 +- .../SyncMoveFolderFoldernameString.java | 7 +- .../SyncMoveFolderStringResourcename.java | 7 +- .../SyncMoveFolderStringString.java | 7 +- .../searchfolders/AsyncSearchFolders.java | 7 +- .../AsyncSearchFoldersPaged.java | 7 +- .../searchfolders/SyncSearchFolders.java | 7 +- .../SyncSearchFoldersString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../undeletefolder/AsyncUndeleteFolder.java | 7 +- .../AsyncUndeleteFolderLRO.java | 7 +- .../undeletefolder/SyncUndeleteFolder.java | 7 +- .../SyncUndeleteFolderFoldername.java | 7 +- .../SyncUndeleteFolderString.java | 7 +- .../updatefolder/AsyncUpdateFolder.java | 7 +- .../updatefolder/AsyncUpdateFolderLRO.java | 7 +- .../updatefolder/SyncUpdateFolder.java | 7 +- .../SyncUpdateFolderFolderFieldmask.java | 7 +- .../getfolder/SyncGetFolder.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getorganization/AsyncGetOrganization.java | 7 +- .../getorganization/SyncGetOrganization.java | 7 +- .../SyncGetOrganizationOrganizationname.java | 7 +- .../SyncGetOrganizationString.java | 7 +- .../AsyncSearchOrganizations.java | 7 +- .../AsyncSearchOrganizationsPaged.java | 7 +- .../SyncSearchOrganizations.java | 7 +- .../SyncSearchOrganizationsString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcename.java | 7 +- .../setiampolicy/SyncSetIamPolicyString.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../getorganization/SyncGetOrganization.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createproject/AsyncCreateProject.java | 7 +- .../createproject/AsyncCreateProjectLRO.java | 7 +- .../createproject/SyncCreateProject.java | 7 +- .../SyncCreateProjectProject.java | 7 +- .../deleteproject/AsyncDeleteProject.java | 7 +- .../deleteproject/AsyncDeleteProjectLRO.java | 7 +- .../deleteproject/SyncDeleteProject.java | 7 +- .../SyncDeleteProjectProjectname.java | 7 +- .../SyncDeleteProjectString.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getproject/AsyncGetProject.java | 7 +- .../getproject/SyncGetProject.java | 7 +- .../getproject/SyncGetProjectProjectname.java | 7 +- .../getproject/SyncGetProjectString.java | 7 +- .../listprojects/AsyncListProjects.java | 7 +- .../listprojects/AsyncListProjectsPaged.java | 7 +- .../listprojects/SyncListProjects.java | 7 +- .../SyncListProjectsResourcename.java | 7 +- .../listprojects/SyncListProjectsString.java | 7 +- .../moveproject/AsyncMoveProject.java | 7 +- .../moveproject/AsyncMoveProjectLRO.java | 7 +- .../moveproject/SyncMoveProject.java | 7 +- ...yncMoveProjectProjectnameResourcename.java | 7 +- .../SyncMoveProjectProjectnameString.java | 7 +- .../SyncMoveProjectStringResourcename.java | 7 +- .../SyncMoveProjectStringString.java | 7 +- .../searchprojects/AsyncSearchProjects.java | 7 +- .../AsyncSearchProjectsPaged.java | 7 +- .../searchprojects/SyncSearchProjects.java | 7 +- .../SyncSearchProjectsString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../undeleteproject/AsyncUndeleteProject.java | 7 +- .../AsyncUndeleteProjectLRO.java | 7 +- .../undeleteproject/SyncUndeleteProject.java | 7 +- .../SyncUndeleteProjectProjectname.java | 7 +- .../SyncUndeleteProjectString.java | 7 +- .../updateproject/AsyncUpdateProject.java | 7 +- .../updateproject/AsyncUpdateProjectLRO.java | 7 +- .../updateproject/SyncUpdateProject.java | 7 +- .../SyncUpdateProjectProjectFieldmask.java | 7 +- .../getproject/SyncGetProject.java | 12 +- .../getfolder/SyncGetFolder.java | 12 +- .../getorganization/SyncGetOrganization.java | 12 +- .../getproject/SyncGetProject.java | 12 +- .../listtagbindings/SyncListTagBindings.java | 12 +- .../gettagkey/SyncGetTagKey.java | 12 +- .../gettagvalue/SyncGetTagValue.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateTagBinding.java | 7 +- .../AsyncCreateTagBindingLRO.java | 7 +- .../SyncCreateTagBinding.java | 7 +- .../SyncCreateTagBindingTagbinding.java | 7 +- .../AsyncDeleteTagBinding.java | 7 +- .../AsyncDeleteTagBindingLRO.java | 7 +- .../SyncDeleteTagBinding.java | 7 +- .../SyncDeleteTagBindingString.java | 7 +- .../SyncDeleteTagBindingTagbindingname.java | 7 +- .../listtagbindings/AsyncListTagBindings.java | 7 +- .../AsyncListTagBindingsPaged.java | 7 +- .../listtagbindings/SyncListTagBindings.java | 7 +- .../SyncListTagBindingsResourcename.java | 7 +- .../SyncListTagBindingsString.java | 7 +- .../listtagbindings/SyncListTagBindings.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createtagkey/AsyncCreateTagKey.java | 7 +- .../createtagkey/AsyncCreateTagKeyLRO.java | 7 +- .../createtagkey/SyncCreateTagKey.java | 7 +- .../createtagkey/SyncCreateTagKeyTagkey.java | 7 +- .../deletetagkey/AsyncDeleteTagKey.java | 7 +- .../deletetagkey/AsyncDeleteTagKeyLRO.java | 7 +- .../deletetagkey/SyncDeleteTagKey.java | 7 +- .../deletetagkey/SyncDeleteTagKeyString.java | 7 +- .../SyncDeleteTagKeyTagkeyname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../gettagkey/AsyncGetTagKey.java | 7 +- .../gettagkey/SyncGetTagKey.java | 7 +- .../gettagkey/SyncGetTagKeyString.java | 7 +- .../gettagkey/SyncGetTagKeyTagkeyname.java | 7 +- .../listtagkeys/AsyncListTagKeys.java | 7 +- .../listtagkeys/AsyncListTagKeysPaged.java | 7 +- .../listtagkeys/SyncListTagKeys.java | 7 +- .../SyncListTagKeysResourcename.java | 7 +- .../listtagkeys/SyncListTagKeysString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatetagkey/AsyncUpdateTagKey.java | 7 +- .../updatetagkey/AsyncUpdateTagKeyLRO.java | 7 +- .../updatetagkey/SyncUpdateTagKey.java | 7 +- .../SyncUpdateTagKeyTagkeyFieldmask.java | 7 +- .../gettagkey/SyncGetTagKey.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createtagvalue/AsyncCreateTagValue.java | 7 +- .../AsyncCreateTagValueLRO.java | 7 +- .../createtagvalue/SyncCreateTagValue.java | 7 +- .../SyncCreateTagValueTagvalue.java | 7 +- .../deletetagvalue/AsyncDeleteTagValue.java | 7 +- .../AsyncDeleteTagValueLRO.java | 7 +- .../deletetagvalue/SyncDeleteTagValue.java | 7 +- .../SyncDeleteTagValueString.java | 7 +- .../SyncDeleteTagValueTagvaluename.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../gettagvalue/AsyncGetTagValue.java | 7 +- .../gettagvalue/SyncGetTagValue.java | 7 +- .../gettagvalue/SyncGetTagValueString.java | 7 +- .../SyncGetTagValueTagvaluename.java | 7 +- .../listtagvalues/AsyncListTagValues.java | 7 +- .../AsyncListTagValuesPaged.java | 7 +- .../listtagvalues/SyncListTagValues.java | 7 +- .../SyncListTagValuesResourcename.java | 7 +- .../SyncListTagValuesString.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatetagvalue/AsyncUpdateTagValue.java | 7 +- .../AsyncUpdateTagValueLRO.java | 7 +- .../updatetagvalue/SyncUpdateTagValue.java | 7 +- .../SyncUpdateTagValueTagvalueFieldmask.java | 7 +- .../gettagvalue/SyncGetTagValue.java | 12 +- 257 files changed, 2438 insertions(+), 1076 deletions(-) diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java index f60a8dc9..34dcfa8a 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java @@ -53,8 +53,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.getFolder(name); @@ -90,8 +93,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * FoldersSettings foldersSettings = * FoldersSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -102,8 +108,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * FoldersSettings foldersSettings = FoldersSettings.newBuilder().setEndpoint(myEndpoint).build(); * FoldersClient foldersClient = FoldersClient.create(foldersSettings); * }@@ -112,8 +121,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * FoldersSettings foldersSettings = * FoldersSettings.newBuilder() * .setTransportChannelProvider( @@ -206,8 +218,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.getFolder(name); @@ -233,8 +248,11 @@ public final Folder getFolder(FolderName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.getFolder(name); @@ -259,8 +277,11 @@ public final Folder getFolder(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * GetFolderRequest request = * GetFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -284,8 +305,11 @@ public final Folder getFolder(GetFolderRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * GetFolderRequest request = * GetFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -309,8 +333,11 @@ public final UnaryCallablegetFolderCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName parent = FolderName.of("[FOLDER]"); * for (Folder element : foldersClient.listFolders(parent).iterateAll()) { @@ -343,8 +370,11 @@ public final ListFoldersPagedResponse listFolders(ResourceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String parent = FolderName.of("[FOLDER]").toString(); * for (Folder element : foldersClient.listFolders(parent).iterateAll()) { @@ -374,8 +404,11 @@ public final ListFoldersPagedResponse listFolders(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * ListFoldersRequest request = * ListFoldersRequest.newBuilder() @@ -407,8 +440,11 @@ public final ListFoldersPagedResponse listFolders(ListFoldersRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * ListFoldersRequest request = * ListFoldersRequest.newBuilder() @@ -440,8 +476,11 @@ public final ListFoldersPagedResponse listFolders(ListFoldersRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * ListFoldersRequest request = * ListFoldersRequest.newBuilder() @@ -480,8 +519,11 @@ public final UnaryCallablelistFoldersC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String query = "query107944136"; * for (Folder element : foldersClient.searchFolders(query).iterateAll()) { @@ -532,8 +574,11 @@ public final SearchFoldersPagedResponse searchFolders(String query) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * SearchFoldersRequest request = * SearchFoldersRequest.newBuilder() @@ -565,8 +610,11 @@ public final SearchFoldersPagedResponse searchFolders(SearchFoldersRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * SearchFoldersRequest request = * SearchFoldersRequest.newBuilder() @@ -598,8 +646,11 @@ public final SearchFoldersPagedResponse searchFolders(SearchFoldersRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * SearchFoldersRequest request = * SearchFoldersRequest.newBuilder() @@ -651,8 +702,11 @@ public final UnaryCallablesearchFo * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * Folder folder = Folder.newBuilder().build(); * Folder response = foldersClient.createFolderAsync(folder).get(); @@ -693,8 +747,11 @@ public final OperationFuturecreateFolderAsync(Fol * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * CreateFolderRequest request = * CreateFolderRequest.newBuilder().setFolder(Folder.newBuilder().build()).build(); @@ -735,8 +792,11 @@ public final OperationFuturecreateFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * CreateFolderRequest request = * CreateFolderRequest.newBuilder().setFolder(Folder.newBuilder().build()).build(); @@ -777,8 +837,11 @@ public final OperationFuturecreateFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * CreateFolderRequest request = * CreateFolderRequest.newBuilder().setFolder(Folder.newBuilder().build()).build(); @@ -810,8 +873,11 @@ public final UnaryCallablecreateFolderCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * Folder folder = Folder.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -849,8 +915,11 @@ public final OperationFutureupdateFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * UpdateFolderRequest request = * UpdateFolderRequest.newBuilder() @@ -887,8 +956,11 @@ public final OperationFutureupdateFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * UpdateFolderRequest request = * UpdateFolderRequest.newBuilder() @@ -925,8 +997,11 @@ public final OperationFutureupdateFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * UpdateFolderRequest request = * UpdateFolderRequest.newBuilder() @@ -961,8 +1036,11 @@ public final UnaryCallableupdateFolderCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * ResourceName destinationParent = FolderName.of("[FOLDER]"); @@ -1005,8 +1083,11 @@ public final OperationFuturemoveFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * String destinationParent = FolderName.of("[FOLDER]").toString(); @@ -1049,8 +1130,11 @@ public final OperationFuturemoveFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * ResourceName destinationParent = FolderName.of("[FOLDER]"); @@ -1093,8 +1177,11 @@ public final OperationFuturemoveFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * String destinationParent = FolderName.of("[FOLDER]").toString(); @@ -1137,8 +1224,11 @@ public final OperationFuturemoveFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * MoveFolderRequest request = * MoveFolderRequest.newBuilder() @@ -1175,8 +1265,11 @@ public final OperationFuturemoveFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * MoveFolderRequest request = * MoveFolderRequest.newBuilder() @@ -1213,8 +1306,11 @@ public final OperationFuturemoveFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * MoveFolderRequest request = * MoveFolderRequest.newBuilder() @@ -1245,8 +1341,11 @@ public final UnaryCallablemoveFolderCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.deleteFolderAsync(name).get(); @@ -1277,8 +1376,11 @@ public final OperationFuturedeleteFolderAsync(Fol * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.deleteFolderAsync(name).get(); @@ -1308,8 +1410,11 @@ public final OperationFuturedeleteFolderAsync(Str * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * DeleteFolderRequest request = * DeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -1339,8 +1444,11 @@ public final OperationFuturedeleteFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * DeleteFolderRequest request = * DeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -1370,8 +1478,11 @@ public final OperationFuturedeleteFolderAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * DeleteFolderRequest request = * DeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -1399,8 +1510,11 @@ public final UnaryCallabledeleteFolderCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * FolderName name = FolderName.of("[FOLDER]"); * Folder response = foldersClient.undeleteFolderAsync(name).get(); @@ -1432,8 +1546,11 @@ public final OperationFutureundeleteFolderAsync * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String name = FolderName.of("[FOLDER]").toString(); * Folder response = foldersClient.undeleteFolderAsync(name).get(); @@ -1463,8 +1580,11 @@ public final OperationFutureundeleteFolderAsync * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * UndeleteFolderRequest request = * UndeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -1494,8 +1614,11 @@ public final OperationFutureundeleteFolderAsync * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * UndeleteFolderRequest request = * UndeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -1525,8 +1648,11 @@ public final OperationFutureundeleteFolderAsync * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * UndeleteFolderRequest request = * UndeleteFolderRequest.newBuilder().setName(FolderName.of("[FOLDER]").toString()).build(); @@ -1550,8 +1676,11 @@ public final UnaryCallableundeleteFolderCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName resource = FolderName.of("[FOLDER]"); * Policy response = foldersClient.getIamPolicy(resource); @@ -1580,8 +1709,11 @@ public final Policy getIamPolicy(ResourceName resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy response = foldersClient.getIamPolicy(resource); @@ -1607,8 +1739,11 @@ public final Policy getIamPolicy(String resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1636,8 +1771,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1663,8 +1801,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName resource = FolderName.of("[FOLDER]"); * Policy policy = Policy.newBuilder().build(); @@ -1697,8 +1838,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy policy = Policy.newBuilder().build(); @@ -1728,8 +1872,11 @@ public final Policy setIamPolicy(String resource, Policy policy) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1757,8 +1904,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1786,8 +1936,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * ResourceName resource = FolderName.of("[FOLDER]"); * Listpermissions = new ArrayList<>(); @@ -1822,8 +1975,11 @@ public final TestIamPermissionsResponse testIamPermissions( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Listpermissions = new ArrayList<>(); @@ -1858,8 +2014,11 @@ public final TestIamPermissionsResponse testIamPermissions( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -1887,8 +2046,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (FoldersClient foldersClient = FoldersClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java index 29ae9503..249d7fc9 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java @@ -62,16 +62,16 @@ *For example, to set the total timeout of getFolder to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * FoldersSettings.Builder foldersSettingsBuilder = FoldersSettings.newBuilder(); * foldersSettingsBuilder * .getFolderSettings() * .setRetrySettings( - * foldersSettingsBuilder - * .getFolderSettings() - * .getRetrySettings() - * .toBuilder() + * foldersSettingsBuilder.getFolderSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * FoldersSettings foldersSettings = foldersSettingsBuilder.build(); diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java index 81f1939e..fa7a6a2b 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java @@ -46,8 +46,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * Organization response = organizationsClient.getOrganization(name); @@ -83,8 +86,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * OrganizationsSettings organizationsSettings = * OrganizationsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -95,8 +101,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * OrganizationsSettings organizationsSettings = * OrganizationsSettings.newBuilder().setEndpoint(myEndpoint).build(); * OrganizationsClient organizationsClient = OrganizationsClient.create(organizationsSettings); @@ -106,8 +115,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * OrganizationsSettings organizationsSettings = * OrganizationsSettings.newBuilder() * .setTransportChannelProvider( @@ -175,8 +187,11 @@ public OrganizationsStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * Organization response = organizationsClient.getOrganization(name); @@ -201,8 +216,11 @@ public final Organization getOrganization(OrganizationName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * String name = OrganizationName.of("[ORGANIZATION]").toString(); * Organization response = organizationsClient.getOrganization(name); @@ -226,8 +244,11 @@ public final Organization getOrganization(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * GetOrganizationRequest request = * GetOrganizationRequest.newBuilder() @@ -251,8 +272,11 @@ public final Organization getOrganization(GetOrganizationRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * GetOrganizationRequest request = * GetOrganizationRequest.newBuilder() @@ -281,8 +305,11 @@ public final UnaryCallablegetOrganization * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * String query = "query107944136"; * for (Organization element : organizationsClient.searchOrganizations(query).iterateAll()) { @@ -326,8 +353,11 @@ public final SearchOrganizationsPagedResponse searchOrganizations(String query) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * SearchOrganizationsRequest request = * SearchOrganizationsRequest.newBuilder() @@ -361,8 +391,11 @@ public final SearchOrganizationsPagedResponse searchOrganizations( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * SearchOrganizationsRequest request = * SearchOrganizationsRequest.newBuilder() @@ -396,8 +429,11 @@ public final SearchOrganizationsPagedResponse searchOrganizations( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * SearchOrganizationsRequest request = * SearchOrganizationsRequest.newBuilder() @@ -438,8 +474,11 @@ public final SearchOrganizationsPagedResponse searchOrganizations( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * ResourceName resource = OrganizationName.of("[ORGANIZATION]"); * Policy response = organizationsClient.getIamPolicy(resource); @@ -470,8 +509,11 @@ public final Policy getIamPolicy(ResourceName resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy response = organizationsClient.getIamPolicy(resource); @@ -499,8 +541,11 @@ public final Policy getIamPolicy(String resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -530,8 +575,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -559,8 +607,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * ResourceName resource = OrganizationName.of("[ORGANIZATION]"); * Policy response = organizationsClient.setIamPolicy(resource); @@ -590,8 +641,11 @@ public final Policy setIamPolicy(ResourceName resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy response = organizationsClient.setIamPolicy(resource); @@ -618,8 +672,11 @@ public final Policy setIamPolicy(String resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -649,8 +706,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -678,8 +738,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * ResourceName resource = OrganizationName.of("[ORGANIZATION]"); * Listpermissions = new ArrayList<>(); @@ -715,8 +778,11 @@ public final TestIamPermissionsResponse testIamPermissions( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Listpermissions = new ArrayList<>(); @@ -752,8 +818,11 @@ public final TestIamPermissionsResponse testIamPermissions( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -781,8 +850,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (OrganizationsClient organizationsClient = OrganizationsClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java index 661eeb0e..0ad46992 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java @@ -59,16 +59,16 @@ *For example, to set the total timeout of getOrganization to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * OrganizationsSettings.Builder organizationsSettingsBuilder = OrganizationsSettings.newBuilder(); * organizationsSettingsBuilder * .getOrganizationSettings() * .setRetrySettings( - * organizationsSettingsBuilder - * .getOrganizationSettings() - * .getRetrySettings() - * .toBuilder() + * organizationsSettingsBuilder.getOrganizationSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * OrganizationsSettings organizationsSettings = organizationsSettingsBuilder.build(); diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java index fba402a2..c6d51fde 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java @@ -52,8 +52,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * Project response = projectsClient.getProject(name); @@ -89,8 +92,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ProjectsSettings projectsSettings = * ProjectsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -101,8 +107,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ProjectsSettings projectsSettings = * ProjectsSettings.newBuilder().setEndpoint(myEndpoint).build(); * ProjectsClient projectsClient = ProjectsClient.create(projectsSettings); @@ -112,8 +121,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ProjectsSettings projectsSettings = * ProjectsSettings.newBuilder() * .setTransportChannelProvider( @@ -207,8 +219,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * Project response = projectsClient.getProject(name); @@ -234,8 +249,11 @@ public final Project getProject(ProjectName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * Project response = projectsClient.getProject(name); @@ -260,8 +278,11 @@ public final Project getProject(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * GetProjectRequest request = * GetProjectRequest.newBuilder().setName(ProjectName.of("[PROJECT]").toString()).build(); @@ -286,8 +307,11 @@ public final Project getProject(GetProjectRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * GetProjectRequest request = * GetProjectRequest.newBuilder().setName(ProjectName.of("[PROJECT]").toString()).build(); @@ -312,8 +336,11 @@ public final UnaryCallablegetProjectCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ResourceName parent = FolderName.of("[FOLDER]"); * for (Project element : projectsClient.listProjects(parent).iterateAll()) { @@ -346,8 +373,11 @@ public final ListProjectsPagedResponse listProjects(ResourceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String parent = FolderName.of("[FOLDER]").toString(); * for (Project element : projectsClient.listProjects(parent).iterateAll()) { @@ -377,8 +407,11 @@ public final ListProjectsPagedResponse listProjects(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ListProjectsRequest request = * ListProjectsRequest.newBuilder() @@ -411,8 +444,11 @@ public final ListProjectsPagedResponse listProjects(ListProjectsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ListProjectsRequest request = * ListProjectsRequest.newBuilder() @@ -445,8 +481,11 @@ public final ListProjectsPagedResponse listProjects(ListProjectsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ListProjectsRequest request = * ListProjectsRequest.newBuilder() @@ -489,8 +528,11 @@ public final UnaryCallablelistProjec * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String query = "query107944136"; * for (Project element : projectsClient.searchProjects(query).iterateAll()) { @@ -544,8 +586,11 @@ public final SearchProjectsPagedResponse searchProjects(String query) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * SearchProjectsRequest request = * SearchProjectsRequest.newBuilder() @@ -581,8 +626,11 @@ public final SearchProjectsPagedResponse searchProjects(SearchProjectsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * SearchProjectsRequest request = * SearchProjectsRequest.newBuilder() @@ -618,8 +666,11 @@ public final SearchProjectsPagedResponse searchProjects(SearchProjectsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * SearchProjectsRequest request = * SearchProjectsRequest.newBuilder() @@ -657,8 +708,11 @@ public final SearchProjectsPagedResponse searchProjects(SearchProjectsRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * Project project = Project.newBuilder().build(); * Project response = projectsClient.createProjectAsync(project).get(); @@ -687,8 +741,11 @@ public final OperationFuturecreateProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * CreateProjectRequest request = * CreateProjectRequest.newBuilder().setProject(Project.newBuilder().build()).build(); @@ -714,8 +771,11 @@ public final OperationFuturecreateProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * CreateProjectRequest request = * CreateProjectRequest.newBuilder().setProject(Project.newBuilder().build()).build(); @@ -741,8 +801,11 @@ public final OperationFuturecreateProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * CreateProjectRequest request = * CreateProjectRequest.newBuilder().setProject(Project.newBuilder().build()).build(); @@ -767,8 +830,11 @@ public final UnaryCallablecreateProjectCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * Project project = Project.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -798,8 +864,11 @@ public final OperationFutureupdateProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * UpdateProjectRequest request = * UpdateProjectRequest.newBuilder() @@ -829,8 +898,11 @@ public final OperationFutureupdateProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * UpdateProjectRequest request = * UpdateProjectRequest.newBuilder() @@ -860,8 +932,11 @@ public final OperationFutureupdateProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * UpdateProjectRequest request = * UpdateProjectRequest.newBuilder() @@ -891,8 +966,11 @@ public final UnaryCallableupdateProjectCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * ResourceName destinationParent = ProjectName.of("[PROJECT]"); @@ -927,8 +1005,11 @@ public final OperationFuturemoveProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * String destinationParent = FolderName.of("[FOLDER]").toString(); @@ -963,8 +1044,11 @@ public final OperationFuturemoveProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * ResourceName destinationParent = ProjectName.of("[PROJECT]"); @@ -999,8 +1083,11 @@ public final OperationFuturemoveProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * String destinationParent = FolderName.of("[FOLDER]").toString(); @@ -1035,8 +1122,11 @@ public final OperationFuturemoveProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * MoveProjectRequest request = * MoveProjectRequest.newBuilder() @@ -1068,8 +1158,11 @@ public final OperationFuturemoveProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * MoveProjectRequest request = * MoveProjectRequest.newBuilder() @@ -1101,8 +1194,11 @@ public final OperationFuturemoveProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * MoveProjectRequest request = * MoveProjectRequest.newBuilder() @@ -1151,8 +1247,11 @@ public final UnaryCallablemoveProjectCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * Project response = projectsClient.deleteProjectAsync(name).get(); @@ -1201,8 +1300,11 @@ public final OperationFuturedeleteProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * Project response = projectsClient.deleteProjectAsync(name).get(); @@ -1249,8 +1351,11 @@ public final OperationFuturedeleteProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * DeleteProjectRequest request = * DeleteProjectRequest.newBuilder().setName(ProjectName.of("[PROJECT]").toString()).build(); @@ -1298,8 +1403,11 @@ public final OperationFuturedeleteProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * DeleteProjectRequest request = * DeleteProjectRequest.newBuilder().setName(ProjectName.of("[PROJECT]").toString()).build(); @@ -1347,8 +1455,11 @@ public final OperationFuturedeleteProjectAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * DeleteProjectRequest request = * DeleteProjectRequest.newBuilder().setName(ProjectName.of("[PROJECT]").toString()).build(); @@ -1373,8 +1484,11 @@ public final UnaryCallabledeleteProjectCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * Project response = projectsClient.undeleteProjectAsync(name).get(); @@ -1403,8 +1517,11 @@ public final OperationFutureundeleteProjectAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * Project response = projectsClient.undeleteProjectAsync(name).get(); @@ -1431,8 +1548,11 @@ public final OperationFutureundeleteProjectAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * UndeleteProjectRequest request = * UndeleteProjectRequest.newBuilder() @@ -1461,8 +1581,11 @@ public final OperationFutureundeleteProjectAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * UndeleteProjectRequest request = * UndeleteProjectRequest.newBuilder() @@ -1491,8 +1614,11 @@ public final OperationFutureundeleteProjectAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * UndeleteProjectRequest request = * UndeleteProjectRequest.newBuilder() @@ -1516,8 +1642,11 @@ public final UnaryCallableundeleteProjectCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ResourceName resource = ProjectName.of("[PROJECT]"); * Policy response = projectsClient.getIamPolicy(resource); @@ -1544,8 +1673,11 @@ public final Policy getIamPolicy(ResourceName resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy response = projectsClient.getIamPolicy(resource); @@ -1569,8 +1701,11 @@ public final Policy getIamPolicy(String resource) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1596,8 +1731,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1659,8 +1797,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ResourceName resource = ProjectName.of("[PROJECT]"); * Policy policy = Policy.newBuilder().build(); @@ -1729,8 +1870,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Policy policy = Policy.newBuilder().build(); @@ -1796,8 +1940,11 @@ public final Policy setIamPolicy(String resource, Policy policy) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1861,8 +2008,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1887,8 +2037,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * ResourceName resource = ProjectName.of("[PROJECT]"); * Listpermissions = new ArrayList<>(); @@ -1921,8 +2074,11 @@ public final TestIamPermissionsResponse testIamPermissions( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * String resource = FolderName.of("[FOLDER]").toString(); * Listpermissions = new ArrayList<>(); @@ -1955,8 +2111,11 @@ public final TestIamPermissionsResponse testIamPermissions( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -1981,8 +2140,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (ProjectsClient projectsClient = ProjectsClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java index 962721d3..fc190826 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java @@ -62,16 +62,16 @@ *For example, to set the total timeout of getProject to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * ProjectsSettings.Builder projectsSettingsBuilder = ProjectsSettings.newBuilder(); * projectsSettingsBuilder * .getProjectSettings() * .setRetrySettings( - * projectsSettingsBuilder - * .getProjectSettings() - * .getRetrySettings() - * .toBuilder() + * projectsSettingsBuilder.getProjectSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * ProjectsSettings projectsSettings = projectsSettingsBuilder.build(); diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java index 51072f0b..cf99c42c 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java @@ -48,8 +48,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * ResourceName parent = FolderName.of("[FOLDER]"); * for (TagBinding element : tagBindingsClient.listTagBindings(parent).iterateAll()) { @@ -87,8 +90,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * TagBindingsSettings tagBindingsSettings = * TagBindingsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -99,8 +105,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * TagBindingsSettings tagBindingsSettings = * TagBindingsSettings.newBuilder().setEndpoint(myEndpoint).build(); * TagBindingsClient tagBindingsClient = TagBindingsClient.create(tagBindingsSettings); @@ -110,8 +119,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * TagBindingsSettings tagBindingsSettings = * TagBindingsSettings.newBuilder() * .setTransportChannelProvider( @@ -206,8 +218,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * ResourceName parent = FolderName.of("[FOLDER]"); * for (TagBinding element : tagBindingsClient.listTagBindings(parent).iterateAll()) { @@ -238,8 +253,11 @@ public final ListTagBindingsPagedResponse listTagBindings(ResourceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * String parent = FolderName.of("[FOLDER]").toString(); * for (TagBinding element : tagBindingsClient.listTagBindings(parent).iterateAll()) { @@ -267,8 +285,11 @@ public final ListTagBindingsPagedResponse listTagBindings(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * ListTagBindingsRequest request = * ListTagBindingsRequest.newBuilder() @@ -299,8 +320,11 @@ public final ListTagBindingsPagedResponse listTagBindings(ListTagBindingsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * ListTagBindingsRequest request = * ListTagBindingsRequest.newBuilder() @@ -332,8 +356,11 @@ public final ListTagBindingsPagedResponse listTagBindings(ListTagBindingsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * ListTagBindingsRequest request = * ListTagBindingsRequest.newBuilder() @@ -370,8 +397,11 @@ public final ListTagBindingsPagedResponse listTagBindings(ListTagBindingsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * TagBinding tagBinding = TagBinding.newBuilder().build(); * TagBinding response = tagBindingsClient.createTagBindingAsync(tagBinding).get(); @@ -396,8 +426,11 @@ public final OperationFuturecreateTagBind * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * CreateTagBindingRequest request = * CreateTagBindingRequest.newBuilder() @@ -424,8 +457,11 @@ public final OperationFuturecreateTagBind * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * CreateTagBindingRequest request = * CreateTagBindingRequest.newBuilder() @@ -452,8 +488,11 @@ public final OperationFuturecreateTagBind * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * CreateTagBindingRequest request = * CreateTagBindingRequest.newBuilder() @@ -478,8 +517,11 @@ public final UnaryCallablecreateTagBindingC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * TagBindingName name = TagBindingName.of("[TAG_BINDING]"); * tagBindingsClient.deleteTagBindingAsync(name).get(); @@ -505,8 +547,11 @@ public final OperationFuturedeleteTagBindingAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * String name = TagBindingName.of("[TAG_BINDING]").toString(); * tagBindingsClient.deleteTagBindingAsync(name).get(); @@ -530,8 +575,11 @@ public final OperationFuturedeleteTagBindingAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * DeleteTagBindingRequest request = * DeleteTagBindingRequest.newBuilder() @@ -556,8 +604,11 @@ public final OperationFuturedeleteTagBindingAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * DeleteTagBindingRequest request = * DeleteTagBindingRequest.newBuilder() @@ -582,8 +633,11 @@ public final OperationFuturedeleteTagBindingAs * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagBindingsClient tagBindingsClient = TagBindingsClient.create()) { * DeleteTagBindingRequest request = * DeleteTagBindingRequest.newBuilder() diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java index 08dceb6f..25d3e99d 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java @@ -57,16 +57,16 @@ *For example, to set the total timeout of listTagBindings to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * TagBindingsSettings.Builder tagBindingsSettingsBuilder = TagBindingsSettings.newBuilder(); * tagBindingsSettingsBuilder * .listTagBindingsSettings() * .setRetrySettings( - * tagBindingsSettingsBuilder - * .listTagBindingsSettings() - * .getRetrySettings() - * .toBuilder() + * tagBindingsSettingsBuilder.listTagBindingsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * TagBindingsSettings tagBindingsSettings = tagBindingsSettingsBuilder.build(); diff --git a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java index a9d03663..863686b5 100644 --- a/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java +++ b/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java @@ -52,8 +52,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * TagKeyName name = TagKeyName.of("[TAG_KEY]"); * TagKey response = tagKeysClient.getTagKey(name); @@ -89,8 +92,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * TagKeysSettings tagKeysSettings = * TagKeysSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -101,8 +107,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * TagKeysSettings tagKeysSettings = TagKeysSettings.newBuilder().setEndpoint(myEndpoint).build(); * TagKeysClient tagKeysClient = TagKeysClient.create(tagKeysSettings); * }@@ -111,8 +120,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 * TagKeysSettings tagKeysSettings = * TagKeysSettings.newBuilder() * .setTransportChannelProvider( @@ -203,8 +215,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * ResourceName parent = FolderName.of("[FOLDER]"); * for (TagKey element : tagKeysClient.listTagKeys(parent).iterateAll()) { @@ -232,8 +247,11 @@ public final ListTagKeysPagedResponse listTagKeys(ResourceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * String parent = FolderName.of("[FOLDER]").toString(); * for (TagKey element : tagKeysClient.listTagKeys(parent).iterateAll()) { @@ -258,8 +276,11 @@ public final ListTagKeysPagedResponse listTagKeys(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * ListTagKeysRequest request = * ListTagKeysRequest.newBuilder() @@ -287,8 +308,11 @@ public final ListTagKeysPagedResponse listTagKeys(ListTagKeysRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * ListTagKeysRequest request = * ListTagKeysRequest.newBuilder() @@ -316,8 +340,11 @@ public final ListTagKeysPagedResponse listTagKeys(ListTagKeysRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * ListTagKeysRequest request = * ListTagKeysRequest.newBuilder() @@ -352,8 +379,11 @@ public final UnaryCallablelistTagKeysC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * TagKeyName name = TagKeyName.of("[TAG_KEY]"); * TagKey response = tagKeysClient.getTagKey(name); @@ -377,8 +407,11 @@ public final TagKey getTagKey(TagKeyName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * String name = TagKeyName.of("[TAG_KEY]").toString(); * TagKey response = tagKeysClient.getTagKey(name); @@ -401,8 +434,11 @@ public final TagKey getTagKey(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * GetTagKeyRequest request = * GetTagKeyRequest.newBuilder().setName(TagKeyName.of("[TAG_KEY]").toString()).build(); @@ -425,8 +461,11 @@ public final TagKey getTagKey(GetTagKeyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * GetTagKeyRequest request = * GetTagKeyRequest.newBuilder().setName(TagKeyName.of("[TAG_KEY]").toString()).build(); @@ -449,8 +488,11 @@ public final UnaryCallablegetTagKeyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * TagKey tagKey = TagKey.newBuilder().build(); * TagKey response = tagKeysClient.createTagKeyAsync(tagKey).get(); @@ -475,8 +517,11 @@ public final OperationFuturecreateTagKeyAsync(Tag * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * CreateTagKeyRequest request = * CreateTagKeyRequest.newBuilder() @@ -504,8 +549,11 @@ public final OperationFuturecreateTagKeyAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * CreateTagKeyRequest request = * CreateTagKeyRequest.newBuilder() @@ -533,8 +581,11 @@ public final OperationFuturecreateTagKeyAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * CreateTagKeyRequest request = * CreateTagKeyRequest.newBuilder() @@ -558,8 +609,11 @@ public final UnaryCallablecreateTagKeyCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * TagKey tagKey = TagKey.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -588,8 +642,11 @@ public final OperationFutureupdateTagKeyAsync( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // 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 (TagKeysClient tagKeysClient = TagKeysClient.create()) { * UpdateTagKeyRequest request = * UpdateTagKeyRequest.newBuilder() @@ -616,8 +673,11 @@ public final OperationFutureupdateTagKeyAsync( *