diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_repository.js index 6bd246765e5..b21e52ee61c 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_repository.js @@ -23,6 +23,9 @@ function main(parent) { // [START artifactregistry_v1_generated_ArtifactRegistry_CreateRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_tag.js index 4e7a3b02f4e..52009b55e7a 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.create_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_CreateTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_package.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_package.js index 35c121251ef..8102d023d4f 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_package.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_package.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1_generated_ArtifactRegistry_DeletePackage_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_repository.js index e53dd5f4afa..28feb656099 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1_generated_ArtifactRegistry_DeleteRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_tag.js index b7812ca99a1..f03f13bcc37 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_DeleteTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_version.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_version.js index 111aa6c3f64..f6d6b959a84 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_version.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.delete_version.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_DeleteVersion_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_docker_image.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_docker_image.js index 3ae6a346de2..077ba9f0ce1 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_docker_image.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_docker_image.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1_generated_ArtifactRegistry_GetDockerImage_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js index 60c2a1c0de8..c2c0d170991 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_file.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_GetFile_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_iam_policy.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_iam_policy.js index 14dfaa75b2b..560c3562ad5 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_iam_policy.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_iam_policy.js @@ -23,6 +23,9 @@ function main(resource) { // [START artifactregistry_v1_generated_ArtifactRegistry_GetIamPolicy_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_package.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_package.js index 3a38252504d..d31d0d29293 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_package.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_package.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1_generated_ArtifactRegistry_GetPackage_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_project_settings.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_project_settings.js index 20f73d07aeb..5d701ee64d2 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_project_settings.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_project_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1_generated_ArtifactRegistry_GetProjectSettings_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js index 63045a61449..0d1b36c0c43 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1_generated_ArtifactRegistry_GetRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_tag.js index 6b763186d38..183a026dd83 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_GetTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_version.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_version.js index 355438d44d7..a3aaa2ad83a 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_version.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.get_version.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_GetVersion_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_apt_artifacts.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_apt_artifacts.js index 6cb559551d0..93647627825 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_apt_artifacts.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_apt_artifacts.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_ImportAptArtifacts_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_yum_artifacts.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_yum_artifacts.js index 6bf44d19331..19f33ba3d25 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_yum_artifacts.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.import_yum_artifacts.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_ImportYumArtifacts_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js index a94b31c5624..c1770610836 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_docker_images.js @@ -23,6 +23,9 @@ function main(parent) { // [START artifactregistry_v1_generated_ArtifactRegistry_ListDockerImages_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js index 027e302fc9f..935926ba7b4 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_files.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_ListFiles_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_packages.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_packages.js index c8b0290414b..b605cad1b06 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_packages.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_packages.js @@ -23,6 +23,9 @@ function main(parent) { // [START artifactregistry_v1_generated_ArtifactRegistry_ListPackages_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js index da63139cb0b..149260a6474 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_repositories.js @@ -23,6 +23,9 @@ function main(parent) { // [START artifactregistry_v1_generated_ArtifactRegistry_ListRepositories_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_tags.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_tags.js index 8e071553330..00edd6f06fa 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_tags.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_tags.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_ListTags_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_versions.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_versions.js index e5caced3d6f..b4aaff1672b 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_versions.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.list_versions.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_ListVersions_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.set_iam_policy.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.set_iam_policy.js index 31a6b68a6b6..af915f200bc 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.set_iam_policy.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.set_iam_policy.js @@ -23,6 +23,9 @@ function main(resource, policy) { // [START artifactregistry_v1_generated_ArtifactRegistry_SetIamPolicy_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.test_iam_permissions.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.test_iam_permissions.js index f0ec1a0896d..d2e1afac7d1 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.test_iam_permissions.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(resource, permissions) { // [START artifactregistry_v1_generated_ArtifactRegistry_TestIamPermissions_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_project_settings.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_project_settings.js index 22289205431..dacae106949 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_project_settings.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_project_settings.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_UpdateProjectSettings_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_repository.js index 8a52d9ffdf2..c6a84f63013 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_repository.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_UpdateRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_tag.js index ea9599a92ed..5236b49655b 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/artifact_registry.update_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1_generated_ArtifactRegistry_UpdateTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json b/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json index 92eb99e222f..a930ceea37a 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json +++ b/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata.google.devtools.artifactregistry.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -70,7 +70,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -154,7 +154,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -198,7 +198,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -246,7 +246,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -286,7 +286,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -334,7 +334,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -378,7 +378,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -418,7 +418,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -466,7 +466,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -506,7 +506,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -546,7 +546,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -602,7 +602,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -646,7 +646,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -690,7 +690,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -746,7 +746,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -786,7 +786,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -838,7 +838,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -878,7 +878,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -926,7 +926,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -970,7 +970,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -1010,7 +1010,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1058,7 +1058,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1102,7 +1102,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1146,7 +1146,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1186,7 +1186,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js index 9a7a76bb8fd..825954eedc9 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_repository.js @@ -23,6 +23,9 @@ function main(parent) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_CreateRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_tag.js index aa9826a412f..638ca8c2952 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.create_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_CreateTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_package.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_package.js index f1d53a75acb..04267a342ae 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_package.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_package.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeletePackage_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_repository.js index e44ae53202d..95e3f67e636 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_tag.js index 5c4b0abb54c..78d713e5b1c 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_version.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_version.js index fccfa0cc0e7..11b6655382f 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_version.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.delete_version.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteVersion_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_file.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_file.js index 76c4a8c2cf0..2e915e6dbd1 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_file.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_file.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetFile_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_iam_policy.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_iam_policy.js index b1b2fa76e54..ff94e203ffd 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_iam_policy.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_iam_policy.js @@ -23,6 +23,9 @@ function main(resource) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetIamPolicy_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_package.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_package.js index 0796822533d..e3e97994d0d 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_package.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_package.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetPackage_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_project_settings.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_project_settings.js index 050e6159dba..cb53fc20317 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_project_settings.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_project_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetProjectSettings_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_repository.js index 7bf8908501e..557ce53fbc1 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_repository.js @@ -23,6 +23,9 @@ function main(name) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_tag.js index 3283f313c1d..9e4b6d4150d 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_version.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_version.js index f825b8164e8..99bb585933a 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_version.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.get_version.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_GetVersion_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_apt_artifacts.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_apt_artifacts.js index b19c0bc3a0c..c5fa1fc628c 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_apt_artifacts.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_apt_artifacts.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_ImportAptArtifacts_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_yum_artifacts.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_yum_artifacts.js index 338ba2df960..430f99782cf 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_yum_artifacts.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.import_yum_artifacts.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_ImportYumArtifacts_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_files.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_files.js index 86f4ada7054..d7ac00918da 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_files.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_files.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListFiles_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_packages.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_packages.js index cebb0e7b35a..ad87951ebde 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_packages.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_packages.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListPackages_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_repositories.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_repositories.js index 9616c4e437f..02f2f5a24f0 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_repositories.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_repositories.js @@ -23,6 +23,9 @@ function main(parent) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListRepositories_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_tags.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_tags.js index b7e76920ddd..075863a6cf1 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_tags.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_tags.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListTags_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_versions.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_versions.js index 16573585708..5694623a903 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_versions.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.list_versions.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_ListVersions_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.set_iam_policy.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.set_iam_policy.js index ec8c5663cc8..16c4224a980 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.set_iam_policy.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.set_iam_policy.js @@ -23,6 +23,9 @@ function main(resource, policy) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_SetIamPolicy_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.test_iam_permissions.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.test_iam_permissions.js index a023b812e60..913875826a9 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.test_iam_permissions.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.test_iam_permissions.js @@ -23,6 +23,9 @@ function main(resource, permissions) { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_TestIamPermissions_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_project_settings.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_project_settings.js index aa0102f11bd..70da02598f2 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_project_settings.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_project_settings.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateProjectSettings_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_repository.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_repository.js index 29c9b9b96c0..b16618ac210 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_repository.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_repository.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateRepository_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_tag.js b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_tag.js index 3acc540ff30..074f88b0ca0 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_tag.js +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/artifact_registry.update_tag.js @@ -23,6 +23,9 @@ function main() { // [START artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateTag_async] /** + * 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. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json index 3a12241058a..8506cd81d04 100644 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json +++ b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -66,7 +66,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -158,7 +158,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -198,7 +198,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -246,7 +246,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -290,7 +290,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -330,7 +330,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -378,7 +378,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -418,7 +418,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -458,7 +458,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -514,7 +514,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -558,7 +558,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -602,7 +602,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -654,7 +654,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -694,7 +694,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -746,7 +746,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -786,7 +786,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -834,7 +834,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -878,7 +878,7 @@ "segments": [ { "start": 25, - "end": 49, + "end": 52, "type": "FULL" } ], @@ -918,7 +918,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -966,7 +966,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1010,7 +1010,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1054,7 +1054,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1094,7 +1094,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], diff --git a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts index fe92d3b2c21..a7b32128f97 100644 --- a/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts +++ b/packages/google-devtools-artifactregistry/src/v1/artifact_registry_client.ts @@ -30,7 +30,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -439,7 +438,8 @@ export class ArtifactRegistryClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2049,7 +2049,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importAptArtifacts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.devtools.artifactregistry.v1.ImportAptArtifactsResponse, @@ -2191,7 +2191,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importYumArtifacts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.devtools.artifactregistry.v1.ImportYumArtifactsResponse, @@ -2333,7 +2333,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createRepository, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.devtools.artifactregistry.v1.Repository, @@ -2472,7 +2472,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteRepository, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2610,7 +2610,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deletePackage, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2751,7 +2751,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2895,7 +2895,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDockerImages.createStream( - this.innerApiCalls.listDockerImages as gax.GaxCall, + this.innerApiCalls.listDockerImages as GaxCall, request, callSettings ); @@ -2943,7 +2943,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listDockerImages.asyncIterate( this.innerApiCalls['listDockerImages'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3084,7 +3084,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listRepositories.createStream( - this.innerApiCalls.listRepositories as gax.GaxCall, + this.innerApiCalls.listRepositories as GaxCall, request, callSettings ); @@ -3132,7 +3132,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listRepositories.asyncIterate( this.innerApiCalls['listRepositories'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3273,7 +3273,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPackages.createStream( - this.innerApiCalls.listPackages as gax.GaxCall, + this.innerApiCalls.listPackages as GaxCall, request, callSettings ); @@ -3321,7 +3321,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listPackages.asyncIterate( this.innerApiCalls['listPackages'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3470,7 +3470,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listVersions.createStream( - this.innerApiCalls.listVersions as gax.GaxCall, + this.innerApiCalls.listVersions as GaxCall, request, callSettings ); @@ -3522,7 +3522,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listVersions.asyncIterate( this.innerApiCalls['listVersions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3695,7 +3695,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFiles.createStream( - this.innerApiCalls.listFiles as gax.GaxCall, + this.innerApiCalls.listFiles as GaxCall, request, callSettings ); @@ -3759,7 +3759,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listFiles.asyncIterate( this.innerApiCalls['listFiles'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3920,7 +3920,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTags.createStream( - this.innerApiCalls.listTags as gax.GaxCall, + this.innerApiCalls.listTags as GaxCall, request, callSettings ); @@ -3978,7 +3978,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listTags.asyncIterate( this.innerApiCalls['listTags'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts b/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts index 586ed9f6b9a..2c857f6289f 100644 --- a/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts +++ b/packages/google-devtools-artifactregistry/src/v1beta2/artifact_registry_client.ts @@ -30,7 +30,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -429,7 +428,8 @@ export class ArtifactRegistryClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1984,7 +1984,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importAptArtifacts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse, @@ -2126,7 +2126,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importYumArtifacts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.devtools.artifactregistry.v1beta2.ImportYumArtifactsResponse, @@ -2268,7 +2268,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createRepository, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.devtools.artifactregistry.v1beta2.Repository, @@ -2407,7 +2407,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteRepository, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2545,7 +2545,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deletePackage, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2686,7 +2686,7 @@ export class ArtifactRegistryClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2830,7 +2830,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listRepositories.createStream( - this.innerApiCalls.listRepositories as gax.GaxCall, + this.innerApiCalls.listRepositories as GaxCall, request, callSettings ); @@ -2878,7 +2878,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listRepositories.asyncIterate( this.innerApiCalls['listRepositories'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3021,7 +3021,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPackages.createStream( - this.innerApiCalls.listPackages as gax.GaxCall, + this.innerApiCalls.listPackages as GaxCall, request, callSettings ); @@ -3070,7 +3070,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listPackages.asyncIterate( this.innerApiCalls['listPackages'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3219,7 +3219,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listVersions.createStream( - this.innerApiCalls.listVersions as gax.GaxCall, + this.innerApiCalls.listVersions as GaxCall, request, callSettings ); @@ -3271,7 +3271,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listVersions.asyncIterate( this.innerApiCalls['listVersions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3440,7 +3440,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFiles.createStream( - this.innerApiCalls.listFiles as gax.GaxCall, + this.innerApiCalls.listFiles as GaxCall, request, callSettings ); @@ -3502,7 +3502,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listFiles.asyncIterate( this.innerApiCalls['listFiles'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3663,7 +3663,7 @@ export class ArtifactRegistryClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTags.createStream( - this.innerApiCalls.listTags as gax.GaxCall, + this.innerApiCalls.listTags as GaxCall, request, callSettings ); @@ -3721,7 +3721,7 @@ export class ArtifactRegistryClient { this.initialize(); return this.descriptors.page.listTags.asyncIterate( this.innerApiCalls['listTags'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts b/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts index 6058ee07abb..9084921a98b 100644 --- a/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts +++ b/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1.ts @@ -145,101 +145,103 @@ function stubAsyncIterationCall( } describe('v1.ArtifactRegistryClient', () => { - it('has servicePath', () => { - const servicePath = - artifactregistryModule.v1.ArtifactRegistryClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - artifactregistryModule.v1.ArtifactRegistryClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = artifactregistryModule.v1.ArtifactRegistryClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + artifactregistryModule.v1.ArtifactRegistryClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + artifactregistryModule.v1.ArtifactRegistryClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - fallback: true, + it('has port', () => { + const port = artifactregistryModule.v1.ArtifactRegistryClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient(); + assert(client); }); - assert.strictEqual(client.artifactRegistryStub, undefined); - await client.initialize(); - assert(client.artifactRegistryStub); - }); - it('has close method for the initialized client', done => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.artifactRegistryStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.artifactRegistryStub, undefined); + await client.initialize(); + assert(client.artifactRegistryStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.artifactRegistryStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.artifactRegistryStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.artifactRegistryStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new artifactregistryModule.v1.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new artifactregistryModule.v1.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getDockerImage', () => { diff --git a/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1beta2.ts b/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1beta2.ts index 22caf8903b8..f465452295a 100644 --- a/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1beta2.ts +++ b/packages/google-devtools-artifactregistry/test/gapic_artifact_registry_v1beta2.ts @@ -145,101 +145,104 @@ function stubAsyncIterationCall( } describe('v1beta2.ArtifactRegistryClient', () => { - it('has servicePath', () => { - const servicePath = - artifactregistryModule.v1beta2.ArtifactRegistryClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - artifactregistryModule.v1beta2.ArtifactRegistryClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = artifactregistryModule.v1beta2.ArtifactRegistryClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + artifactregistryModule.v1beta2.ArtifactRegistryClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + artifactregistryModule.v1beta2.ArtifactRegistryClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ - fallback: true, + it('has port', () => { + const port = artifactregistryModule.v1beta2.ArtifactRegistryClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = + new artifactregistryModule.v1beta2.ArtifactRegistryClient(); + assert(client); }); - assert.strictEqual(client.artifactRegistryStub, undefined); - await client.initialize(); - assert(client.artifactRegistryStub); - }); - it('has close method for the initialized client', done => { - const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.artifactRegistryStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.artifactRegistryStub, undefined); + await client.initialize(); + assert(client.artifactRegistryStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.artifactRegistryStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.artifactRegistryStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.artifactRegistryStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new artifactregistryModule.v1beta2.ArtifactRegistryClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getRepository', () => {