From 3fbb4793ee22c514a567cb2384ce52d825490890 Mon Sep 17 00:00:00 2001 From: justinsb Date: Tue, 5 Nov 2024 18:07:03 -0500 Subject: [PATCH] mockgcp: more fidelity for compute address --- mockgcp/mockcompute/globaladdress.go | 3 +++ mockgcp/mockcompute/regionaladdress.go | 3 +++ .../alloydbcluster/basicalloydbsecondarycluster/_http.log | 4 ++-- .../alloydbinstance/basicalloydbinstance/_http.log | 4 ++-- .../basicalloydbsecondaryinstance/_http.log | 4 ++-- .../v1beta1/alloydbinstance/fullalloydbinstance/_http.log | 4 ++-- .../v1beta1/alloydbinstance/readalloydbinstance/_http.log | 4 ++-- .../alloydbinstance/zonalalloydbinstance/_http.log | 4 ++-- .../cloudbuild/v1beta1/cloudbuildworkerpool/_http.log | 4 ++-- .../basic/cloudids/v1beta1/cloudidsendpoint/_http.log | 4 ++-- .../v1beta1/computeaddress/globalcomputeaddress/_http.log | 4 ++-- .../computeaddress/regionalcomputeaddress/_http.log | 4 ++-- .../globalcomputeforwardingrulehttps/_http.log | 4 ++-- .../globalcomputeforwardingrulessl/_http.log | 4 ++-- .../globalcomputeforwardingruletcp-direct/_http.log | 4 ++-- .../globalcomputeforwardingruletcp/_http.log | 4 ++-- .../globalforwardingrulepscgoogleapis/_http.log | 4 ++-- .../regionalcomputeforwardingrule/_http.log | 4 ++-- .../regionalforwardingrulepsc/_http.log | 4 ++-- .../computeinstance/computeinstancebasicexample/_http.log | 8 ++++---- .../v1beta1/servicenetworkingconnection/_http.log | 8 ++++---- .../sqlinstance-encryptionkey-direct/_http.log | 4 ++-- .../sqlinstance/sqlinstance-encryptionkey/_http.log | 4 ++-- .../sqlinstance/sqlinstance-postgres-direct/_http.log | 4 ++-- .../v1beta1/sqlinstance/sqlinstance-postgres/_http.log | 4 ++-- .../sqlinstance-privatenetwork-direct/_http.log | 8 ++++---- .../sqlinstance-privatenetwork-legacyref-direct/_http.log | 8 ++++---- .../sqlinstance-privatenetwork-legacyref/_http.log | 8 ++++---- .../sqlinstance/sqlinstance-privatenetwork/_http.log | 8 ++++---- .../vertexaiendpoint/vertexaiendpointnetwork/_http.log | 4 ++-- 30 files changed, 74 insertions(+), 68 deletions(-) diff --git a/mockgcp/mockcompute/globaladdress.go b/mockgcp/mockcompute/globaladdress.go index 210efee888..79d522736e 100644 --- a/mockgcp/mockcompute/globaladdress.go +++ b/mockgcp/mockcompute/globaladdress.go @@ -42,6 +42,9 @@ func (s *GlobalAddressesV1) Get(ctx context.Context, req *pb.GetGlobalAddressReq obj := &pb.Address{} if err := s.storage.Get(ctx, fqn, obj); err != nil { + if status.Code(err) == codes.NotFound { + return nil, status.Errorf(codes.NotFound, "The resource '%s' was not found", fqn) + } return nil, err } diff --git a/mockgcp/mockcompute/regionaladdress.go b/mockgcp/mockcompute/regionaladdress.go index 0f990bbd67..35cd829bfa 100644 --- a/mockgcp/mockcompute/regionaladdress.go +++ b/mockgcp/mockcompute/regionaladdress.go @@ -42,6 +42,9 @@ func (s *RegionalAddressesV1) Get(ctx context.Context, req *pb.GetAddressRequest obj := &pb.Address{} if err := s.storage.Get(ctx, fqn, obj); err != nil { + if status.Code(err) == codes.NotFound { + return nil, status.Errorf(codes.NotFound, "The resource '%s' was not found", fqn) + } return nil, err } diff --git a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbcluster/basicalloydbsecondarycluster/_http.log b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbcluster/basicalloydbsecondarycluster/_http.log index d75e2ab456..52f58c5b9a 100644 --- a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbcluster/basicalloydbsecondarycluster/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbcluster/basicalloydbsecondarycluster/_http.log @@ -243,11 +243,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbinstance/_http.log b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbinstance/_http.log index 304b63ef23..863f0e4210 100644 --- a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbinstance/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbinstance/_http.log @@ -243,11 +243,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbsecondaryinstance/_http.log b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbsecondaryinstance/_http.log index b7750229bc..f976dc1ace 100644 --- a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbsecondaryinstance/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/basicalloydbsecondaryinstance/_http.log @@ -243,11 +243,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/fullalloydbinstance/_http.log b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/fullalloydbinstance/_http.log index c95447f0a3..a6e3e40005 100644 --- a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/fullalloydbinstance/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/fullalloydbinstance/_http.log @@ -238,11 +238,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/readalloydbinstance/_http.log b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/readalloydbinstance/_http.log index 619c287319..8add9ad076 100644 --- a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/readalloydbinstance/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/readalloydbinstance/_http.log @@ -238,11 +238,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/zonalalloydbinstance/_http.log b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/zonalalloydbinstance/_http.log index 8ef47dc9ab..e80adf41e9 100644 --- a/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/zonalalloydbinstance/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/alloydb/v1beta1/alloydbinstance/zonalalloydbinstance/_http.log @@ -243,11 +243,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/cloudbuild/v1beta1/cloudbuildworkerpool/_http.log b/pkg/test/resourcefixture/testdata/basic/cloudbuild/v1beta1/cloudbuildworkerpool/_http.log index 28890891a7..e8148f8569 100644 --- a/pkg/test/resourcefixture/testdata/basic/cloudbuild/v1beta1/cloudbuildworkerpool/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/cloudbuild/v1beta1/cloudbuildworkerpool/_http.log @@ -216,11 +216,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/cloudids/v1beta1/cloudidsendpoint/_http.log b/pkg/test/resourcefixture/testdata/basic/cloudids/v1beta1/cloudidsendpoint/_http.log index a64d465953..923512085f 100644 --- a/pkg/test/resourcefixture/testdata/basic/cloudids/v1beta1/cloudidsendpoint/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/cloudids/v1beta1/cloudidsendpoint/_http.log @@ -148,11 +148,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/globalcomputeaddress/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/globalcomputeaddress/_http.log index f789ef0efa..43d6511e89 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/globalcomputeaddress/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/globalcomputeaddress/_http.log @@ -236,11 +236,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/regionalcomputeaddress/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/regionalcomputeaddress/_http.log index 99748ec1a5..29297ed498 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/regionalcomputeaddress/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeaddress/regionalcomputeaddress/_http.log @@ -381,11 +381,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulehttps/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulehttps/_http.log index b56ff39ccb..befbe2fa34 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulehttps/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulehttps/_http.log @@ -19,11 +19,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulessl/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulessl/_http.log index 6feadd9fe7..fb79adb410 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulessl/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingrulessl/_http.log @@ -19,11 +19,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp-direct/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp-direct/_http.log index d6d4c97ffd..85a765690b 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp-direct/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp-direct/_http.log @@ -19,11 +19,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp/_http.log index 084d3be248..a099b5230a 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalcomputeforwardingruletcp/_http.log @@ -19,11 +19,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalforwardingrulepscgoogleapis/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalforwardingrulepscgoogleapis/_http.log index fd8e94a2bd..577936c79a 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalforwardingrulepscgoogleapis/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/globalforwardingrulepscgoogleapis/_http.log @@ -236,11 +236,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/${addressID}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/${addressID}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/${addressID}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/${addressID}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalcomputeforwardingrule/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalcomputeforwardingrule/_http.log index d6c35407a2..7de77f6817 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalcomputeforwardingrule/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalcomputeforwardingrule/_http.log @@ -19,11 +19,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/regions/us-central1/addresses/computeraddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/regions/us-central1/addresses/computeraddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/regions/us-central1/addresses/computeraddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/regions/us-central1/addresses/computeraddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalforwardingrulepsc/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalforwardingrulepsc/_http.log index 2e9922736d..54ff241d5f 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalforwardingrulepsc/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeforwardingrule/regionalforwardingrulepsc/_http.log @@ -527,11 +527,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/regions/us-central1/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeinstance/computeinstancebasicexample/_http.log b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeinstance/computeinstancebasicexample/_http.log index fe797af892..45fb21ea33 100644 --- a/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeinstance/computeinstancebasicexample/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/compute/v1beta1/computeinstance/computeinstancebasicexample/_http.log @@ -587,11 +587,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/regions/us-west1/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/regions/us-west1/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/regions/us-west1/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/regions/us-west1/addresses/computeaddress-${uniqueId}' was not found" } } @@ -797,11 +797,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/regions/us-west1/addresses/computeaddress-2-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/regions/us-west1/addresses/computeaddress-2-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/regions/us-west1/addresses/computeaddress-2-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/regions/us-west1/addresses/computeaddress-2-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/servicenetworking/v1beta1/servicenetworkingconnection/_http.log b/pkg/test/resourcefixture/testdata/basic/servicenetworking/v1beta1/servicenetworkingconnection/_http.log index 732cf7210b..00ebf9c19e 100644 --- a/pkg/test/resourcefixture/testdata/basic/servicenetworking/v1beta1/servicenetworkingconnection/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/servicenetworking/v1beta1/servicenetworkingconnection/_http.log @@ -148,11 +148,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress1-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress1-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress1-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress1-${uniqueId}' was not found" } } @@ -361,11 +361,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey-direct/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey-direct/_http.log index a6efe53aeb..c2b2629c2a 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey-direct/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey-direct/_http.log @@ -630,11 +630,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey/_http.log index f52eebd5b0..3d02f1a368 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-encryptionkey/_http.log @@ -630,11 +630,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres-direct/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres-direct/_http.log index 23877030d8..1c6c0e2188 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres-direct/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres-direct/_http.log @@ -148,11 +148,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres/_http.log index 793c4f143d..8437b44a64 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-postgres/_http.log @@ -148,11 +148,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-direct/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-direct/_http.log index 5d309f2e63..5b1f4d5f3a 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-direct/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-direct/_http.log @@ -299,11 +299,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } @@ -967,11 +967,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref-direct/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref-direct/_http.log index e1809b9b27..48320c81bf 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref-direct/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref-direct/_http.log @@ -299,11 +299,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } @@ -967,11 +967,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref/_http.log index 68404e50ad..f946014320 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork-legacyref/_http.log @@ -299,11 +299,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } @@ -967,11 +967,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork/_http.log b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork/_http.log index 116090a9c4..b0644c5d22 100644 --- a/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-privatenetwork/_http.log @@ -299,11 +299,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } } @@ -967,11 +967,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress2-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress2-${uniqueId}' was not found" } } diff --git a/pkg/test/resourcefixture/testdata/basic/vertexai/v1beta1/vertexaiendpoint/vertexaiendpointnetwork/_http.log b/pkg/test/resourcefixture/testdata/basic/vertexai/v1beta1/vertexaiendpoint/vertexaiendpointnetwork/_http.log index 7e61578e57..902db221cb 100644 --- a/pkg/test/resourcefixture/testdata/basic/vertexai/v1beta1/vertexaiendpoint/vertexaiendpointnetwork/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/vertexai/v1beta1/vertexaiendpoint/vertexaiendpointnetwork/_http.log @@ -148,11 +148,11 @@ X-Xss-Protection: 0 "errors": [ { "domain": "global", - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found", + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found", "reason": "notFound" } ], - "message": "address \"projects/${projectId}/global/addresses/computeaddress-${uniqueId}\" not found" + "message": "The resource 'projects/${projectId}/global/addresses/computeaddress-${uniqueId}' was not found" } }