Update osbuild/images to v0.79.0

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-08-20 13:56:53 +02:00 committed by Achilleas Koutsou
parent 9fcbcdb5dc
commit 62d8ad4efe
340 changed files with 15526 additions and 2999 deletions

46
go.mod
View file

@ -7,7 +7,7 @@ toolchain go1.21.11
exclude github.com/mattn/go-sqlite3 v2.0.3+incompatible
require (
cloud.google.com/go/compute v1.27.5
cloud.google.com/go/compute v1.28.0
cloud.google.com/go/storage v1.43.0
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0
@ -46,7 +46,7 @@ require (
github.com/labstack/gommon v0.4.2
github.com/openshift-online/ocm-sdk-go v0.1.432
github.com/oracle/oci-go-sdk/v54 v54.0.0
github.com/osbuild/images v0.77.0
github.com/osbuild/images v0.79.0
github.com/osbuild/osbuild-composer/pkg/splunk_logger v0.0.0-20231117174845-e969a9dc3cd1
github.com/osbuild/pulp-client v0.1.0
github.com/prometheus/client_golang v1.19.1
@ -55,18 +55,18 @@ require (
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
github.com/ubccr/kerby v0.0.0-20170626144437-201a958fc453
github.com/vmware/govmomi v0.39.0
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
github.com/vmware/govmomi v0.42.0
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
golang.org/x/oauth2 v0.22.0
golang.org/x/sync v0.8.0
golang.org/x/sys v0.24.0
google.golang.org/api v0.191.0
google.golang.org/api v0.193.0
)
require (
cloud.google.com/go v0.115.0 // indirect
cloud.google.com/go/auth v0.8.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.3 // indirect
cloud.google.com/go v0.115.1 // indirect
cloud.google.com/go/auth v0.9.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
cloud.google.com/go/compute/metadata v0.5.0 // indirect
cloud.google.com/go/iam v1.1.12 // indirect
dario.cat/mergo v1.0.0 // indirect
@ -101,12 +101,12 @@ require (
github.com/aymerick/douceur v0.2.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/containerd/cgroups/v3 v3.0.3 // indirect
github.com/containerd/errdefs v0.1.0 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
github.com/containers/common v0.60.0 // indirect
github.com/containers/image/v5 v5.32.0 // indirect
github.com/containers/common v0.60.2 // indirect
github.com/containers/image/v5 v5.32.2 // indirect
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 // indirect
github.com/containers/ocicrypt v1.2.0 // indirect
github.com/containers/storage v1.55.0 // indirect
@ -139,7 +139,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
github.com/golang/glog v1.2.0 // indirect
github.com/golang/glog v1.2.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-containerregistry v0.20.0 // indirect
@ -172,7 +172,7 @@ require (
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mattn/go-sqlite3 v1.14.22 // indirect
github.com/microcosm-cc/bluemonday v1.0.23 // indirect
github.com/miekg/pkcs11 v1.1.1 // indirect
@ -214,15 +214,15 @@ require (
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/vbatts/tar-split v0.11.5 // indirect
github.com/vbauerster/mpb/v8 v8.7.4 // indirect
github.com/vbauerster/mpb/v8 v8.7.5 // indirect
go.mongodb.org/mongo-driver v1.14.0 // indirect
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
go.opentelemetry.io/otel v1.24.0 // indirect
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.52.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
go.opentelemetry.io/otel/metric v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.28.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/mod v0.20.0 // indirect
golang.org/x/net v0.28.0 // indirect
@ -230,10 +230,10 @@ require (
golang.org/x/text v0.17.0 // indirect
golang.org/x/time v0.6.0 // indirect
golang.org/x/tools v0.24.0 // indirect
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect
google.golang.org/grpc v1.64.1 // indirect
google.golang.org/genproto v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect

108
go.sum
View file

@ -1,12 +1,12 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.115.0 h1:CnFSK6Xo3lDYRoBKEcAtia6VSC837/ZkJuRduSFnr14=
cloud.google.com/go v0.115.0/go.mod h1:8jIM5vVgoAEoiVxQ/O4BFTfHqulPZgs/ufEzMcFMdWU=
cloud.google.com/go/auth v0.8.0 h1:y8jUJLl/Fg+qNBWxP/Hox2ezJvjkrPb952PC1p0G6A4=
cloud.google.com/go/auth v0.8.0/go.mod h1:qGVp/Y3kDRSDZ5gFD/XPUfYQ9xW1iI7q8RIRoCyBbJc=
cloud.google.com/go/auth/oauth2adapt v0.2.3 h1:MlxF+Pd3OmSudg/b1yZ5lJwoXCEaeedAguodky1PcKI=
cloud.google.com/go/auth/oauth2adapt v0.2.3/go.mod h1:tMQXOfZzFuNuUxOypHlQEXgdfX5cuhwU+ffUuXRJE8I=
cloud.google.com/go/compute v1.27.5 h1:iii9Z+FhEeZ5cUkGOEqU+GM7MJSyxMgbE7H7j+JndYY=
cloud.google.com/go/compute v1.27.5/go.mod h1:DfwDGujFTdSeiE8b8ZqadF/uxHFBz+ekGsk8Zfi9dTA=
cloud.google.com/go v0.115.1 h1:Jo0SM9cQnSkYfp44+v+NQXHpcHqlnRJk2qxh6yvxxxQ=
cloud.google.com/go v0.115.1/go.mod h1:DuujITeaufu3gL68/lOFIirVNJwQeyf5UXyi+Wbgknc=
cloud.google.com/go/auth v0.9.0 h1:cYhKl1JUhynmxjXfrk4qdPc6Amw7i+GC9VLflgT0p5M=
cloud.google.com/go/auth v0.9.0/go.mod h1:2HsApZBr9zGZhC9QAXsYVYaWk8kNUt37uny+XVKi7wM=
cloud.google.com/go/auth/oauth2adapt v0.2.4 h1:0GWE/FUsXhf6C+jAkWgYm7X9tK8cuEIfy19DBn6B6bY=
cloud.google.com/go/auth/oauth2adapt v0.2.4/go.mod h1:jC/jOpwFP6JBxhB3P5Rr0a9HLMC/Pe3eaL4NmdvqPtc=
cloud.google.com/go/compute v1.28.0 h1:OPtBxMcheSS+DWfci803qvPly3d4w7Eu5ztKBcFfzwk=
cloud.google.com/go/compute v1.28.0/go.mod h1:DEqZBtYrDnD5PvjsKwb3onnhX+qjdCVM7eshj1XdjV4=
cloud.google.com/go/compute/metadata v0.5.0 h1:Zr0eK8JbFv6+Wi4ilXAR8FJ3wyNdpxHKJNPos6LTZOY=
cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY=
cloud.google.com/go/iam v1.1.12 h1:JixGLimRrNGcxvJEQ8+clfLxPlbeZA6MuRJ+qJNQ5Xw=
@ -133,8 +133,8 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r
github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM=
github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=
@ -147,10 +147,10 @@ github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I=
github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo=
github.com/containerd/stargz-snapshotter/estargz v0.15.1 h1:eXJjw9RbkLFgioVaTG+G/ZW/0kEe2oEKCdS/ZxIyoCU=
github.com/containerd/stargz-snapshotter/estargz v0.15.1/go.mod h1:gr2RNwukQ/S9Nv33Lt6UC7xEx58C+LHRdoqbEKjz1Kk=
github.com/containers/common v0.60.0 h1:QMNygqiiit9LU/yqee9Dv0N0oQ+rQq41ElfdOBQtw7w=
github.com/containers/common v0.60.0/go.mod h1:dtKVe11xkV89tqzRX9s/B0ORjeB2dy5UB46aGjunMn8=
github.com/containers/image/v5 v5.32.0 h1:yjbweazPfr8xOzQ2hkkYm1A2V0jN96/kES6Gwyxj7hQ=
github.com/containers/image/v5 v5.32.0/go.mod h1:x5e0RDfGaY6bnQ13gJ2LqbfHvzssfB/y5a8HduGFxJc=
github.com/containers/common v0.60.2 h1:utcwp2YkO8c0mNlwRxsxfOiqfj157FRrBjxgjR6f+7o=
github.com/containers/common v0.60.2/go.mod h1:I0upBi1qJX3QmzGbUOBN1LVP6RvkKhd3qQpZbQT+Q54=
github.com/containers/image/v5 v5.32.2 h1:SzNE2Y6sf9b1GJoC8qjCuMBXwQrACFp4p0RK15+4gmQ=
github.com/containers/image/v5 v5.32.2/go.mod h1:v1l73VeMugfj/QtKI+jhYbwnwFCFnNGckvbST3rQ5Hk=
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 h1:Qzk5C6cYglewc+UyGf6lc8Mj2UaPTHy/iF2De0/77CA=
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01/go.mod h1:9rfv8iPl1ZP7aqh9YA68wnZv2NUDbXdcdPHVz0pFbPY=
github.com/containers/ocicrypt v1.2.0 h1:X14EgRK3xNFvJEfI5O4Qn4T3E25ANudSOZz/sirVuPM=
@ -269,8 +269,8 @@ github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w
github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk=
github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68=
github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4=
github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
@ -303,8 +303,8 @@ github.com/google/go-intervals v0.0.2/go.mod h1:MkaR3LNRfeKLPmqgJYs4E66z5InYjmCj
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/martian/v3 v3.3.3 h1:DIhPTQrbPkgs2yJYdXU/eNACCG5DVQjySNRNlflZ9Fc=
github.com/google/martian/v3 v3.3.3/go.mod h1:iEPrYcgCF7jA9OtScMFQyAlZZ4YXTKEtJ1E6RWzmBA0=
github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 h1:k7nVchz72niMH6YLQNvHSdIE7iqsQxK1P41mySCvssg=
github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw=
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 h1:FKHo8hFI3A+7w0aUQuYXQ+6EN5stWmeY/AZqtM8xk9k=
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/s2a-go v0.1.8 h1:zZDs9gcbt9ZPLV0ndSyQk6Kacx2g/X+SKYovpnz3SMM=
github.com/google/s2a-go v0.1.8/go.mod h1:6iNWHTpQ+nfNRN5E00MSdfDwVesa8hhS32PhPO8deJA=
@ -461,8 +461,8 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
github.com/microcosm-cc/bluemonday v1.0.23 h1:SMZe2IGa0NuHvnVNAZ+6B38gsTbi5e4sViiWJyDDqFY=
@ -492,10 +492,10 @@ github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA=
github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To=
github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk=
github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0=
github.com/onsi/ginkgo/v2 v2.20.0 h1:PE84V2mHqoT1sglvHc8ZdQtPcwmvvt29WLEEO3xmdZw=
github.com/onsi/ginkgo/v2 v2.20.0/go.mod h1:lG9ey2Z29hR41WMVthyJBGUBcBhGOtoPF2VFMvBXFCI=
github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug=
@ -508,8 +508,8 @@ github.com/openshift-online/ocm-sdk-go v0.1.432 h1:XIlCJKxXXznMP5Usu9lVGZa+UTYVl
github.com/openshift-online/ocm-sdk-go v0.1.432/go.mod h1:CiAu2jwl3ITKOxkeV0Qnhzv4gs35AmpIzVABQLtcI2Y=
github.com/oracle/oci-go-sdk/v54 v54.0.0 h1:CDLjeSejv2aDpElAJrhKpi6zvT/zhZCZuXchUUZ+LS4=
github.com/oracle/oci-go-sdk/v54 v54.0.0/go.mod h1:+t+yvcFGVp+3ZnztnyxqXfQDsMlq8U25faBLa+mqCMc=
github.com/osbuild/images v0.77.0 h1:O0Nv07M7b3YuY+c83/NFjWFachO+aH714zu7r+QkdsU=
github.com/osbuild/images v0.77.0/go.mod h1:14LZWLSsQ02C/vZ+EzBkp+OcdjebnWDJ8moz8o/a0J4=
github.com/osbuild/images v0.79.0 h1:6kBRo0WzmyQTZ4ojX1oU9nIxBazZOO4I3FLsZaz8268=
github.com/osbuild/images v0.79.0/go.mod h1:Rzud9PFt0L9qFFlisL9I6OsZ2h0M6viMBdPhPtpwfwg=
github.com/osbuild/osbuild-composer/pkg/splunk_logger v0.0.0-20231117174845-e969a9dc3cd1 h1:UFEJIcPa46W8gtWgOYzriRKYyy1t6SWL0BI7fPTuVvc=
github.com/osbuild/osbuild-composer/pkg/splunk_logger v0.0.0-20231117174845-e969a9dc3cd1/go.mod h1:z+WA+dX6qMwc7fqY5jCzESDIlg4WR2sBQezxsoXv9Ik=
github.com/osbuild/pulp-client v0.1.0 h1:L0C4ezBJGTamN3BKdv+rKLuq/WxXJbsFwz/Hj7aEmJ8=
@ -617,10 +617,10 @@ github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQ
github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
github.com/vbatts/tar-split v0.11.5 h1:3bHCTIheBm1qFTcgh9oPu+nNBtX+XJIupG/vacinCts=
github.com/vbatts/tar-split v0.11.5/go.mod h1:yZbwRsSeGjusneWgA781EKej9HF8vme8okylkAeNKLk=
github.com/vbauerster/mpb/v8 v8.7.4 h1:p4f16iMfUt3PkAC73SCzAtgtSf8TYDqEbJUT3odPrPo=
github.com/vbauerster/mpb/v8 v8.7.4/go.mod h1:r1B5k2Ljj5KJFCekfihbiqyV4VaaRTANYmvWA2btufI=
github.com/vmware/govmomi v0.39.0 h1:soLZ08Q2zvjRSinNup8xVlw0KDDCJPPA1rIDmBhi7As=
github.com/vmware/govmomi v0.39.0/go.mod h1:oHzAQ1r6152zYDGcUqeK+EO8LhKo5wjtvWZBGHws2Hc=
github.com/vbauerster/mpb/v8 v8.7.5 h1:hUF3zaNsuaBBwzEFoCvfuX3cpesQXZC0Phm/JcHZQ+c=
github.com/vbauerster/mpb/v8 v8.7.5/go.mod h1:bRCnR7K+mj5WXKsy0NWB6Or+wctYGvVwKn6huwvxKa0=
github.com/vmware/govmomi v0.42.0 h1:MbvAlVfjNBE1mHMaQ7yOSop1KLB0/93x6VAGuCtjqtI=
github.com/vmware/govmomi v0.42.0/go.mod h1:1H5LWwsBif8HKZqbFp0FdoKTHyJE4FzL6ACequMKYQg=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=
@ -637,22 +637,22 @@ go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 h1:CCriYyAfq1Br1aIYettdH
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk=
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw=
go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo=
go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.52.0 h1:vS1Ao/R55RNV4O7TA2Qopok8yN+X0LIP6RVWLFkprck=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.52.0/go.mod h1:BMsdeOxN04K0L5FNUBfjFdvwWGNe/rkmSwH4Aelu/X0=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 h1:4K4tsIXefpVJtvA/8srF4V4y0akAoPHkIslgAkjixJA=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0/go.mod h1:jjdQuTGVsXV4vSs+CJ2qYDeDPf9yIJV23qlIzBm73Vg=
go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo=
go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.22.0 h1:9M3+rhx7kZCIQQhQRYaZCdNu1V73tm4TvXs2ntl98C4=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.22.0/go.mod h1:noq80iT8rrHP1SfybmPiRGc9dc5M8RPmGvtwo7Oo7tc=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0 h1:digkEZCJWobwBqMwC0cwCq8/wkkRy/OowZg5OArWZrM=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0/go.mod h1:/OpE/y70qVkndM0TrxT4KBoN3RsFZP0QaofcfYrj76I=
go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI=
go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco=
go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucgoDw=
go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg=
go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI=
go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU=
go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q=
go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s=
go.opentelemetry.io/otel/sdk v1.28.0 h1:b9d7hIry8yZsgtbmM0DKyPWMMUMlK9NEKuIG4aBqWyE=
go.opentelemetry.io/otel/sdk v1.28.0/go.mod h1:oYj7ClPUA7Iw3m+r7GeEjz0qckQRJK2B8zjcZEfu7Pg=
go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g=
go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI=
go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I=
go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM=
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
@ -687,8 +687,8 @@ golang.org/x/crypto v0.20.0/go.mod h1:Xwo95rrVNIoSMx9wa1JroENMToLWn3RNVrTBpLHgZP
golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw=
golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8=
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
@ -813,26 +813,26 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/api v0.191.0 h1:cJcF09Z+4HAB2t5qTQM1ZtfL/PemsLFkcFG67qq2afk=
google.golang.org/api v0.191.0/go.mod h1:tD5dsFGxFza0hnQveGfVk9QQYKcfp+VzgRqyXFxE0+E=
google.golang.org/api v0.193.0 h1:eOGDoJFsLU+HpCBaDJex2fWiYujAw9KbXgpOAMePoUs=
google.golang.org/api v0.193.0/go.mod h1:Po3YMV1XZx+mTku3cfJrlIYR03wiGrCOsdpC67hjZvw=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf h1:OqdXDEakZCVtDiZTjcxfwbHPCT11ycCEsTKesBVKvyY=
google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:mCr1K1c8kX+1iSBREvU3Juo11CB+QOEWxbRS01wWl5M=
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f h1:b1Ln/PG8orm0SsBbHZWke8dDp2lrCD4jSmfglFpTZbk=
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f/go.mod h1:AHT0dDg3SoMOgZGnZk29b5xTbPHMoEC8qthmBLJCpys=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf h1:liao9UHurZLtiEwBgT9LMOnKYsHze6eA6w1KQCMVN2Q=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY=
google.golang.org/genproto v0.0.0-20240814211410-ddb44dafa142 h1:oLiyxGgE+rt22duwci1+TG7bg2/L1LQsXwfjPlmuJA0=
google.golang.org/genproto v0.0.0-20240814211410-ddb44dafa142/go.mod h1:G11eXq53iI5Q+kyNOmCvnzBaxEA2Q/Ik5Tj7nqBE8j4=
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8=
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
google.golang.org/grpc v1.64.1 h1:LKtvyfbX3UGVPFcGqJ9ItpVWW6oN/2XqTxfAnwRRXiA=
google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0=
google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc=
google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=

View file

@ -1,5 +1,19 @@
# Changelog
## [0.9.0](https://github.com/googleapis/google-cloud-go/compare/auth/v0.8.1...auth/v0.9.0) (2024-08-16)
### Features
* **auth:** Auth library can talk to S2A over mTLS ([#10634](https://github.com/googleapis/google-cloud-go/issues/10634)) ([5250a13](https://github.com/googleapis/google-cloud-go/commit/5250a13ec95b8d4eefbe0158f82857ff2189cb45))
## [0.8.1](https://github.com/googleapis/google-cloud-go/compare/auth/v0.8.0...auth/v0.8.1) (2024-08-13)
### Bug Fixes
* **auth:** Make default client creation more lenient ([#10669](https://github.com/googleapis/google-cloud-go/issues/10669)) ([1afb9ee](https://github.com/googleapis/google-cloud-go/commit/1afb9ee1ee9de9810722800018133304a0ca34d1)), refs [#10638](https://github.com/googleapis/google-cloud-go/issues/10638)
## [0.8.0](https://github.com/googleapis/google-cloud-go/compare/auth/v0.7.3...auth/v0.8.0) (2024-08-07)

View file

@ -493,7 +493,7 @@ func (o *Options2LO) client() *http.Client {
if o.Client != nil {
return o.Client
}
return internal.CloneDefaultClient()
return internal.DefaultClient()
}
func (o *Options2LO) validate() error {

View file

@ -190,7 +190,7 @@ func (o *DetectOptions) client() *http.Client {
if o.Client != nil {
return o.Client
}
return internal.CloneDefaultClient()
return internal.DefaultClient()
}
func readCredentialsFile(filename string, opts *DetectOptions) (*auth.Credentials, error) {

View file

@ -46,10 +46,24 @@ const (
DefaultUniverseDomain = "googleapis.com"
)
// CloneDefaultClient returns a [http.Client] with some good defaults.
func CloneDefaultClient() *http.Client {
type clonableTransport interface {
Clone() *http.Transport
}
// DefaultClient returns an [http.Client] with some defaults set. If
// the current [http.DefaultTransport] is a [clonableTransport], as
// is the case for an [*http.Transport], the clone will be used.
// Otherwise the [http.DefaultTransport] is used directly.
func DefaultClient() *http.Client {
if transport, ok := http.DefaultTransport.(clonableTransport); ok {
return &http.Client{
Transport: transport.Clone(),
Timeout: 30 * time.Second,
}
}
return &http.Client{
Transport: http.DefaultTransport.(*http.Transport).Clone(),
Transport: http.DefaultTransport,
Timeout: 30 * time.Second,
}
}

View file

@ -17,7 +17,9 @@ package transport
import (
"context"
"crypto/tls"
"crypto/x509"
"errors"
"log"
"net"
"net/http"
"net/url"
@ -44,10 +46,12 @@ const (
googleAPIUseMTLSOld = "GOOGLE_API_USE_MTLS"
universeDomainPlaceholder = "UNIVERSE_DOMAIN"
mtlsMDSRoot = "/run/google-mds-mtls/root.crt"
mtlsMDSKey = "/run/google-mds-mtls/client.key"
)
var (
mdsMTLSAutoConfigSource mtlsConfigSource
errUniverseNotSupportedMTLS = errors.New("mTLS is not supported in any universe other than googleapis.com")
)
@ -120,7 +124,20 @@ func GetGRPCTransportCredsAndEndpoint(opts *Options) (credentials.TransportCrede
defaultTransportCreds := credentials.NewTLS(&tls.Config{
GetClientCertificate: config.clientCertSource,
})
if config.s2aAddress == "" {
var s2aAddr string
var transportCredsForS2A credentials.TransportCredentials
if config.mtlsS2AAddress != "" {
s2aAddr = config.mtlsS2AAddress
transportCredsForS2A, err = loadMTLSMDSTransportCreds(mtlsMDSRoot, mtlsMDSKey)
if err != nil {
log.Printf("Loading MTLS MDS credentials failed: %v", err)
return defaultTransportCreds, config.endpoint, nil
}
} else if config.s2aAddress != "" {
s2aAddr = config.s2aAddress
} else {
return defaultTransportCreds, config.endpoint, nil
}
@ -133,8 +150,9 @@ func GetGRPCTransportCredsAndEndpoint(opts *Options) (credentials.TransportCrede
}
s2aTransportCreds, err := s2a.NewClientCreds(&s2a.ClientOptions{
S2AAddress: config.s2aAddress,
FallbackOpts: fallbackOpts,
S2AAddress: s2aAddr,
TransportCreds: transportCredsForS2A,
FallbackOpts: fallbackOpts,
})
if err != nil {
// Use default if we cannot initialize S2A client transport credentials.
@ -151,7 +169,19 @@ func GetHTTPTransportConfig(opts *Options) (cert.Provider, func(context.Context,
return nil, nil, err
}
if config.s2aAddress == "" {
var s2aAddr string
var transportCredsForS2A credentials.TransportCredentials
if config.mtlsS2AAddress != "" {
s2aAddr = config.mtlsS2AAddress
transportCredsForS2A, err = loadMTLSMDSTransportCreds(mtlsMDSRoot, mtlsMDSKey)
if err != nil {
log.Printf("Loading MTLS MDS credentials failed: %v", err)
return config.clientCertSource, nil, nil
}
} else if config.s2aAddress != "" {
s2aAddr = config.s2aAddress
} else {
return config.clientCertSource, nil, nil
}
@ -169,12 +199,38 @@ func GetHTTPTransportConfig(opts *Options) (cert.Provider, func(context.Context,
}
dialTLSContextFunc := s2a.NewS2ADialTLSContextFunc(&s2a.ClientOptions{
S2AAddress: config.s2aAddress,
FallbackOpts: fallbackOpts,
S2AAddress: s2aAddr,
TransportCreds: transportCredsForS2A,
FallbackOpts: fallbackOpts,
})
return nil, dialTLSContextFunc, nil
}
func loadMTLSMDSTransportCreds(mtlsMDSRootFile, mtlsMDSKeyFile string) (credentials.TransportCredentials, error) {
rootPEM, err := os.ReadFile(mtlsMDSRootFile)
if err != nil {
return nil, err
}
caCertPool := x509.NewCertPool()
ok := caCertPool.AppendCertsFromPEM(rootPEM)
if !ok {
return nil, errors.New("failed to load MTLS MDS root certificate")
}
// The mTLS MDS credentials are formatted as the concatenation of a PEM-encoded certificate chain
// followed by a PEM-encoded private key. For this reason, the concatenation is passed in to the
// tls.X509KeyPair function as both the certificate chain and private key arguments.
cert, err := tls.LoadX509KeyPair(mtlsMDSKeyFile, mtlsMDSKeyFile)
if err != nil {
return nil, err
}
tlsConfig := tls.Config{
RootCAs: caCertPool,
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS13,
}
return credentials.NewTLS(&tlsConfig), nil
}
func getTransportConfig(opts *Options) (*transportConfig, error) {
clientCertSource, err := GetClientCertificateProvider(opts)
if err != nil {
@ -196,17 +252,17 @@ func getTransportConfig(opts *Options) (*transportConfig, error) {
return nil, errUniverseNotSupportedMTLS
}
s2aMTLSEndpoint := opts.DefaultMTLSEndpoint
s2aAddress := GetS2AAddress()
if s2aAddress == "" {
mtlsS2AAddress := GetMTLSS2AAddress()
if s2aAddress == "" && mtlsS2AAddress == "" {
return &defaultTransportConfig, nil
}
return &transportConfig{
clientCertSource: clientCertSource,
endpoint: endpoint,
s2aAddress: s2aAddress,
s2aMTLSEndpoint: s2aMTLSEndpoint,
mtlsS2AAddress: mtlsS2AAddress,
s2aMTLSEndpoint: opts.DefaultMTLSEndpoint,
}, nil
}
@ -241,8 +297,10 @@ type transportConfig struct {
clientCertSource cert.Provider
// The corresponding endpoint to use based on client certificate source.
endpoint string
// The S2A address if it can be used, otherwise an empty string.
// The plaintext S2A address if it can be used, otherwise an empty string.
s2aAddress string
// The MTLS S2A address if it can be used, otherwise an empty string.
mtlsS2AAddress string
// The MTLS endpoint to use with S2A.
s2aMTLSEndpoint string
}

View file

@ -16,11 +16,11 @@ package transport
import (
"encoding/json"
"fmt"
"log"
"os"
"strconv"
"sync"
"time"
"cloud.google.com/go/auth/internal/transport/cert"
"cloud.google.com/go/compute/metadata"
@ -31,41 +31,38 @@ const (
)
var (
// The period an MTLS config can be reused before needing refresh.
configExpiry = time.Hour
mtlsConfiguration *mtlsConfig
// mdsMTLSAutoConfigSource is an instance of reuseMTLSConfigSource, with metadataMTLSAutoConfig as its config source.
mtlsOnce sync.Once
)
// GetS2AAddress returns the S2A address to be reached via plaintext connection.
// Returns empty string if not set or invalid.
func GetS2AAddress() string {
c, err := getMetadataMTLSAutoConfig().Config()
if err != nil {
getMetadataMTLSAutoConfig()
if !mtlsConfiguration.valid() {
return ""
}
if !c.Valid() {
return ""
}
return c.S2A.PlaintextAddress
return mtlsConfiguration.S2A.PlaintextAddress
}
type mtlsConfigSource interface {
Config() (*mtlsConfig, error)
// GetMTLSS2AAddress returns the S2A address to be reached via MTLS connection.
// Returns empty string if not set or invalid.
func GetMTLSS2AAddress() string {
getMetadataMTLSAutoConfig()
if !mtlsConfiguration.valid() {
return ""
}
return mtlsConfiguration.S2A.MTLSAddress
}
// mtlsConfig contains the configuration for establishing MTLS connections with Google APIs.
type mtlsConfig struct {
S2A *s2aAddresses `json:"s2a"`
Expiry time.Time
S2A *s2aAddresses `json:"s2a"`
}
func (c *mtlsConfig) Valid() bool {
return c != nil && c.S2A != nil && !c.expired()
}
func (c *mtlsConfig) expired() bool {
return c.Expiry.Before(time.Now())
func (c *mtlsConfig) valid() bool {
return c != nil && c.S2A != nil
}
// s2aAddresses contains the plaintext and/or MTLS S2A addresses.
@ -76,80 +73,36 @@ type s2aAddresses struct {
MTLSAddress string `json:"mtls_address"`
}
// getMetadataMTLSAutoConfig returns mdsMTLSAutoConfigSource, which is backed by config from MDS with auto-refresh.
func getMetadataMTLSAutoConfig() mtlsConfigSource {
func getMetadataMTLSAutoConfig() {
var err error
mtlsOnce.Do(func() {
mdsMTLSAutoConfigSource = &reuseMTLSConfigSource{
src: &metadataMTLSAutoConfig{},
mtlsConfiguration, err = queryConfig()
if err != nil {
log.Printf("Getting MTLS config failed: %v", err)
}
})
return mdsMTLSAutoConfigSource
}
// reuseMTLSConfigSource caches a valid version of mtlsConfig, and uses `src` to refresh upon config expiry.
// It implements the mtlsConfigSource interface, so calling Config() on it returns an mtlsConfig.
type reuseMTLSConfigSource struct {
src mtlsConfigSource // src.Config() is called when config is expired
mu sync.Mutex // mutex guards config
config *mtlsConfig // cached config
}
func (cs *reuseMTLSConfigSource) Config() (*mtlsConfig, error) {
cs.mu.Lock()
defer cs.mu.Unlock()
if cs.config.Valid() {
return cs.config, nil
}
c, err := cs.src.Config()
if err != nil {
return nil, err
}
cs.config = c
return c, nil
}
// metadataMTLSAutoConfig is an implementation of the interface mtlsConfigSource
// It has the logic to query MDS and return an mtlsConfig
type metadataMTLSAutoConfig struct{}
var httpGetMetadataMTLSConfig = func() (string, error) {
return metadata.Get(configEndpointSuffix)
}
func (cs *metadataMTLSAutoConfig) Config() (*mtlsConfig, error) {
func queryConfig() (*mtlsConfig, error) {
resp, err := httpGetMetadataMTLSConfig()
if err != nil {
log.Printf("querying MTLS config from MDS endpoint failed: %v", err)
return defaultMTLSConfig(), nil
return nil, fmt.Errorf("querying MTLS config from MDS endpoint failed: %w", err)
}
var config mtlsConfig
err = json.Unmarshal([]byte(resp), &config)
if err != nil {
log.Printf("unmarshalling MTLS config from MDS endpoint failed: %v", err)
return defaultMTLSConfig(), nil
return nil, fmt.Errorf("unmarshalling MTLS config from MDS endpoint failed: %w", err)
}
if config.S2A == nil {
log.Printf("returned MTLS config from MDS endpoint is invalid: %v", config)
return defaultMTLSConfig(), nil
return nil, fmt.Errorf("returned MTLS config from MDS endpoint is invalid: %v", config)
}
// set new expiry
config.Expiry = time.Now().Add(configExpiry)
return &config, nil
}
func defaultMTLSConfig() *mtlsConfig {
return &mtlsConfig{
S2A: &s2aAddresses{
PlaintextAddress: "",
MTLSAddress: "",
},
Expiry: time.Now().Add(configExpiry),
}
}
func shouldUseS2A(clientCertSource cert.Provider, opts *Options) bool {
// If client cert is found, use that over S2A.
if clientCertSource != nil {

View file

@ -1,5 +1,12 @@
# Changelog
## [0.2.4](https://github.com/googleapis/google-cloud-go/compare/auth/oauth2adapt/v0.2.3...auth/oauth2adapt/v0.2.4) (2024-08-08)
### Bug Fixes
* **auth/oauth2adapt:** Update dependencies ([257c40b](https://github.com/googleapis/google-cloud-go/commit/257c40bd6d7e59730017cf32bda8823d7a232758))
## [0.2.3](https://github.com/googleapis/google-cloud-go/compare/auth/oauth2adapt/v0.2.2...auth/oauth2adapt/v0.2.3) (2024-07-10)

View file

@ -128,7 +128,7 @@ func (o *Options3LO) client() *http.Client {
if o.Client != nil {
return o.Client
}
return internal.CloneDefaultClient()
return internal.DefaultClient()
}
// authCodeURL returns a URL that points to a OAuth2 consent page.

View file

@ -237,7 +237,7 @@ func (c *acceleratorTypesRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -402,7 +402,7 @@ func (c *acceleratorTypesRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -290,7 +290,7 @@ func (c *addressesRESTClient) AggregatedList(ctx context.Context, req *computepb
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -602,7 +602,7 @@ func (c *addressesRESTClient) List(ctx context.Context, req *computepb.ListAddre
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -290,7 +290,7 @@ func (c *autoscalersRESTClient) AggregatedList(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -602,7 +602,7 @@ func (c *autoscalersRESTClient) List(ctx context.Context, req *computepb.ListAut
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -0,0 +1,752 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go_gapic. DO NOT EDIT.
//go:build go1.23
package compute
import (
"iter"
computepb "cloud.google.com/go/compute/apiv1/computepb"
"github.com/googleapis/gax-go/v2/iterator"
)
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *AcceleratorTypeIterator) All() iter.Seq2[*computepb.AcceleratorType, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *AcceleratorTypesScopedListPairIterator) All() iter.Seq2[AcceleratorTypesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *AddressIterator) All() iter.Seq2[*computepb.Address, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *AddressesScopedListPairIterator) All() iter.Seq2[AddressesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *AutoscalerIterator) All() iter.Seq2[*computepb.Autoscaler, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *AutoscalersScopedListPairIterator) All() iter.Seq2[AutoscalersScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *BackendBucketIterator) All() iter.Seq2[*computepb.BackendBucket, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *BackendServiceIterator) All() iter.Seq2[*computepb.BackendService, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *BackendServicesScopedListPairIterator) All() iter.Seq2[BackendServicesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *CommitmentIterator) All() iter.Seq2[*computepb.Commitment, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *CommitmentsScopedListPairIterator) All() iter.Seq2[CommitmentsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *DiskIterator) All() iter.Seq2[*computepb.Disk, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *DiskTypeIterator) All() iter.Seq2[*computepb.DiskType, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *DiskTypesScopedListPairIterator) All() iter.Seq2[DiskTypesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *DisksScopedListPairIterator) All() iter.Seq2[DisksScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ExchangedPeeringRouteIterator) All() iter.Seq2[*computepb.ExchangedPeeringRoute, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ExternalVpnGatewayIterator) All() iter.Seq2[*computepb.ExternalVpnGateway, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *FirewallIterator) All() iter.Seq2[*computepb.Firewall, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *FirewallPolicyIterator) All() iter.Seq2[*computepb.FirewallPolicy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ForwardingRuleIterator) All() iter.Seq2[*computepb.ForwardingRule, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ForwardingRulesScopedListPairIterator) All() iter.Seq2[ForwardingRulesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *HealthCheckIterator) All() iter.Seq2[*computepb.HealthCheck, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *HealthCheckServiceIterator) All() iter.Seq2[*computepb.HealthCheckService, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *HealthChecksScopedListPairIterator) All() iter.Seq2[HealthChecksScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ImageIterator) All() iter.Seq2[*computepb.Image, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceGroupIterator) All() iter.Seq2[*computepb.InstanceGroup, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceGroupManagerIterator) All() iter.Seq2[*computepb.InstanceGroupManager, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceGroupManagerResizeRequestIterator) All() iter.Seq2[*computepb.InstanceGroupManagerResizeRequest, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceGroupManagersScopedListPairIterator) All() iter.Seq2[InstanceGroupManagersScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceGroupsScopedListPairIterator) All() iter.Seq2[InstanceGroupsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceIterator) All() iter.Seq2[*computepb.Instance, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceManagedByIgmErrorIterator) All() iter.Seq2[*computepb.InstanceManagedByIgmError, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceTemplateIterator) All() iter.Seq2[*computepb.InstanceTemplate, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceTemplatesScopedListPairIterator) All() iter.Seq2[InstanceTemplatesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstanceWithNamedPortsIterator) All() iter.Seq2[*computepb.InstanceWithNamedPorts, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstancesScopedListPairIterator) All() iter.Seq2[InstancesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstantSnapshotIterator) All() iter.Seq2[*computepb.InstantSnapshot, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InstantSnapshotsScopedListPairIterator) All() iter.Seq2[InstantSnapshotsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InterconnectAttachmentIterator) All() iter.Seq2[*computepb.InterconnectAttachment, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InterconnectAttachmentsScopedListPairIterator) All() iter.Seq2[InterconnectAttachmentsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InterconnectIterator) All() iter.Seq2[*computepb.Interconnect, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InterconnectLocationIterator) All() iter.Seq2[*computepb.InterconnectLocation, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *InterconnectRemoteLocationIterator) All() iter.Seq2[*computepb.InterconnectRemoteLocation, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *LicenseIterator) All() iter.Seq2[*computepb.License, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *MachineImageIterator) All() iter.Seq2[*computepb.MachineImage, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *MachineTypeIterator) All() iter.Seq2[*computepb.MachineType, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *MachineTypesScopedListPairIterator) All() iter.Seq2[MachineTypesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ManagedInstanceIterator) All() iter.Seq2[*computepb.ManagedInstance, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NetworkAttachmentIterator) All() iter.Seq2[*computepb.NetworkAttachment, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NetworkAttachmentsScopedListPairIterator) All() iter.Seq2[NetworkAttachmentsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NetworkEdgeSecurityServicesScopedListPairIterator) All() iter.Seq2[NetworkEdgeSecurityServicesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NetworkEndpointGroupIterator) All() iter.Seq2[*computepb.NetworkEndpointGroup, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NetworkEndpointGroupsScopedListPairIterator) All() iter.Seq2[NetworkEndpointGroupsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NetworkEndpointWithHealthStatusIterator) All() iter.Seq2[*computepb.NetworkEndpointWithHealthStatus, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NetworkIterator) All() iter.Seq2[*computepb.Network, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NodeGroupIterator) All() iter.Seq2[*computepb.NodeGroup, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NodeGroupNodeIterator) All() iter.Seq2[*computepb.NodeGroupNode, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NodeGroupsScopedListPairIterator) All() iter.Seq2[NodeGroupsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NodeTemplateIterator) All() iter.Seq2[*computepb.NodeTemplate, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NodeTemplatesScopedListPairIterator) All() iter.Seq2[NodeTemplatesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NodeTypeIterator) All() iter.Seq2[*computepb.NodeType, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NodeTypesScopedListPairIterator) All() iter.Seq2[NodeTypesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *NotificationEndpointIterator) All() iter.Seq2[*computepb.NotificationEndpoint, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *OperationIterator) All() iter.Seq2[*computepb.Operation, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *OperationsScopedListPairIterator) All() iter.Seq2[OperationsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *PacketMirroringIterator) All() iter.Seq2[*computepb.PacketMirroring, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *PacketMirroringsScopedListPairIterator) All() iter.Seq2[PacketMirroringsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *PerInstanceConfigIterator) All() iter.Seq2[*computepb.PerInstanceConfig, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ProjectIterator) All() iter.Seq2[*computepb.Project, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *PublicAdvertisedPrefixIterator) All() iter.Seq2[*computepb.PublicAdvertisedPrefix, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *PublicDelegatedPrefixIterator) All() iter.Seq2[*computepb.PublicDelegatedPrefix, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *PublicDelegatedPrefixesScopedListPairIterator) All() iter.Seq2[PublicDelegatedPrefixesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ReferenceIterator) All() iter.Seq2[*computepb.Reference, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *RegionIterator) All() iter.Seq2[*computepb.Region, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ReservationIterator) All() iter.Seq2[*computepb.Reservation, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ReservationsScopedListPairIterator) All() iter.Seq2[ReservationsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ResourcePoliciesScopedListPairIterator) All() iter.Seq2[ResourcePoliciesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ResourcePolicyIterator) All() iter.Seq2[*computepb.ResourcePolicy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *RouteIterator) All() iter.Seq2[*computepb.Route, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *RouterIterator) All() iter.Seq2[*computepb.Router, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *RoutersScopedListPairIterator) All() iter.Seq2[RoutersScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SecurityPoliciesScopedListPairIterator) All() iter.Seq2[SecurityPoliciesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SecurityPolicyIterator) All() iter.Seq2[*computepb.SecurityPolicy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ServiceAttachmentIterator) All() iter.Seq2[*computepb.ServiceAttachment, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ServiceAttachmentsScopedListPairIterator) All() iter.Seq2[ServiceAttachmentsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SnapshotIterator) All() iter.Seq2[*computepb.Snapshot, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SslCertificateIterator) All() iter.Seq2[*computepb.SslCertificate, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SslCertificatesScopedListPairIterator) All() iter.Seq2[SslCertificatesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SslPoliciesScopedListPairIterator) All() iter.Seq2[SslPoliciesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SslPolicyIterator) All() iter.Seq2[*computepb.SslPolicy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *StoragePoolDiskIterator) All() iter.Seq2[*computepb.StoragePoolDisk, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *StoragePoolIterator) All() iter.Seq2[*computepb.StoragePool, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *StoragePoolTypeIterator) All() iter.Seq2[*computepb.StoragePoolType, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *StoragePoolTypesScopedListPairIterator) All() iter.Seq2[StoragePoolTypesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *StoragePoolsScopedListPairIterator) All() iter.Seq2[StoragePoolsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SubnetworkIterator) All() iter.Seq2[*computepb.Subnetwork, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *SubnetworksScopedListPairIterator) All() iter.Seq2[SubnetworksScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetGrpcProxyIterator) All() iter.Seq2[*computepb.TargetGrpcProxy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetHttpProxiesScopedListPairIterator) All() iter.Seq2[TargetHttpProxiesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetHttpProxyIterator) All() iter.Seq2[*computepb.TargetHttpProxy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetHttpsProxiesScopedListPairIterator) All() iter.Seq2[TargetHttpsProxiesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetHttpsProxyIterator) All() iter.Seq2[*computepb.TargetHttpsProxy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetInstanceIterator) All() iter.Seq2[*computepb.TargetInstance, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetInstancesScopedListPairIterator) All() iter.Seq2[TargetInstancesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetPoolIterator) All() iter.Seq2[*computepb.TargetPool, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetPoolsScopedListPairIterator) All() iter.Seq2[TargetPoolsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetSslProxyIterator) All() iter.Seq2[*computepb.TargetSslProxy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetTcpProxiesScopedListPairIterator) All() iter.Seq2[TargetTcpProxiesScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetTcpProxyIterator) All() iter.Seq2[*computepb.TargetTcpProxy, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetVpnGatewayIterator) All() iter.Seq2[*computepb.TargetVpnGateway, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *TargetVpnGatewaysScopedListPairIterator) All() iter.Seq2[TargetVpnGatewaysScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *UrlMapIterator) All() iter.Seq2[*computepb.UrlMap, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *UrlMapsScopedListPairIterator) All() iter.Seq2[UrlMapsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *UsableSubnetworkIterator) All() iter.Seq2[*computepb.UsableSubnetwork, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *VmEndpointNatMappingsIterator) All() iter.Seq2[*computepb.VmEndpointNatMappings, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *VpnGatewayIterator) All() iter.Seq2[*computepb.VpnGateway, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *VpnGatewaysScopedListPairIterator) All() iter.Seq2[VpnGatewaysScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *VpnTunnelIterator) All() iter.Seq2[*computepb.VpnTunnel, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *VpnTunnelsScopedListPairIterator) All() iter.Seq2[VpnTunnelsScopedListPair, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *XpnResourceIdIterator) All() iter.Seq2[*computepb.XpnResourceId, error] {
return iterator.RangeAdapter(it.Next)
}
// All returns an iterator. If an error is returned by the iterator, the
// iterator will stop after that iteration.
func (it *ZoneIterator) All() iter.Seq2[*computepb.Zone, error] {
return iterator.RangeAdapter(it.Next)
}

View file

@ -747,7 +747,7 @@ func (c *backendBucketsRESTClient) List(ctx context.Context, req *computepb.List
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -474,7 +474,7 @@ func (c *backendServicesRESTClient) AggregatedList(ctx context.Context, req *com
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -978,7 +978,7 @@ func (c *backendServicesRESTClient) List(ctx context.Context, req *computepb.Lis
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1075,7 +1075,7 @@ func (c *backendServicesRESTClient) ListUsable(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -233,7 +233,7 @@ func (c *diskTypesRESTClient) AggregatedList(ctx context.Context, req *computepb
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -398,7 +398,7 @@ func (c *diskTypesRESTClient) List(ctx context.Context, req *computepb.ListDiskT
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -486,7 +486,7 @@ func (c *disksRESTClient) AggregatedList(ctx context.Context, req *computepb.Agg
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1020,7 +1020,7 @@ func (c *disksRESTClient) List(ctx context.Context, req *computepb.ListDisksRequ
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -470,7 +470,7 @@ func (c *externalVpnGatewaysRESTClient) List(ctx context.Context, req *computepb
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -1032,7 +1032,7 @@ func (c *firewallPoliciesRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -470,7 +470,7 @@ func (c *firewallsRESTClient) List(ctx context.Context, req *computepb.ListFirew
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -300,7 +300,7 @@ func (c *forwardingRulesRESTClient) AggregatedList(ctx context.Context, req *com
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -612,7 +612,7 @@ func (c *forwardingRulesRESTClient) List(ctx context.Context, req *computepb.Lis
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -470,7 +470,7 @@ func (c *globalAddressesRESTClient) List(ctx context.Context, req *computepb.Lis
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -480,7 +480,7 @@ func (c *globalForwardingRulesRESTClient) List(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -632,7 +632,7 @@ func (c *globalNetworkEndpointGroupsRESTClient) List(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -729,7 +729,7 @@ func (c *globalNetworkEndpointGroupsRESTClient) ListNetworkEndpoints(ctx context
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -253,7 +253,7 @@ func (c *globalOperationsRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -473,7 +473,7 @@ func (c *globalOperationsRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -347,7 +347,7 @@ func (c *globalOrganizationOperationsRESTClient) List(ctx context.Context, req *
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -460,7 +460,7 @@ func (c *globalPublicDelegatedPrefixesRESTClient) List(ctx context.Context, req
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -290,7 +290,7 @@ func (c *healthChecksRESTClient) AggregatedList(ctx context.Context, req *comput
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -600,7 +600,7 @@ func (c *healthChecksRESTClient) List(ctx context.Context, req *computepb.ListHe
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -734,7 +734,7 @@ func (c *imagesRESTClient) List(ctx context.Context, req *computepb.ListImagesRe
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -532,7 +532,7 @@ func (c *instanceGroupManagerResizeRequestsRESTClient) List(ctx context.Context,
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -506,7 +506,7 @@ func (c *instanceGroupManagersRESTClient) AggregatedList(ctx context.Context, re
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1112,7 +1112,7 @@ func (c *instanceGroupManagersRESTClient) List(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1209,7 +1209,7 @@ func (c *instanceGroupManagersRESTClient) ListErrors(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1306,7 +1306,7 @@ func (c *instanceGroupManagersRESTClient) ListManagedInstances(ctx context.Conte
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1403,7 +1403,7 @@ func (c *instanceGroupManagersRESTClient) ListPerInstanceConfigs(ctx context.Con
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -387,7 +387,7 @@ func (c *instanceGroupsRESTClient) AggregatedList(ctx context.Context, req *comp
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -699,7 +699,7 @@ func (c *instanceGroupsRESTClient) List(ctx context.Context, req *computepb.List
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -797,7 +797,7 @@ func (c *instanceGroupsRESTClient) ListInstances(ctx context.Context, req *compu
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -309,7 +309,7 @@ func (c *instanceTemplatesRESTClient) AggregatedList(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -681,7 +681,7 @@ func (c *instanceTemplatesRESTClient) List(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -918,7 +918,7 @@ func (c *instancesRESTClient) AggregatedList(ctx context.Context, req *computepb
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1898,7 +1898,7 @@ func (c *instancesRESTClient) List(ctx context.Context, req *computepb.ListInsta
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1995,7 +1995,7 @@ func (c *instancesRESTClient) ListReferrers(ctx context.Context, req *computepb.
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -319,7 +319,7 @@ func (c *instantSnapshotsRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -693,7 +693,7 @@ func (c *instantSnapshotsRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -290,7 +290,7 @@ func (c *interconnectAttachmentsRESTClient) AggregatedList(ctx context.Context,
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -605,7 +605,7 @@ func (c *interconnectAttachmentsRESTClient) List(ctx context.Context, req *compu
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -268,7 +268,7 @@ func (c *interconnectLocationsRESTClient) List(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -268,7 +268,7 @@ func (c *interconnectRemoteLocationsRESTClient) List(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -618,7 +618,7 @@ func (c *interconnectsRESTClient) List(ctx context.Context, req *computepb.ListI
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -551,7 +551,7 @@ func (c *licensesRESTClient) List(ctx context.Context, req *computepb.ListLicens
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -554,7 +554,7 @@ func (c *machineImagesRESTClient) List(ctx context.Context, req *computepb.ListM
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -233,7 +233,7 @@ func (c *machineTypesRESTClient) AggregatedList(ctx context.Context, req *comput
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -398,7 +398,7 @@ func (c *machineTypesRESTClient) List(ctx context.Context, req *computepb.ListMa
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -319,7 +319,7 @@ func (c *networkAttachmentsRESTClient) AggregatedList(ctx context.Context, req *
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -693,7 +693,7 @@ func (c *networkAttachmentsRESTClient) List(ctx context.Context, req *computepb.
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -261,7 +261,7 @@ func (c *networkEdgeSecurityServicesRESTClient) AggregatedList(ctx context.Conte
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -310,7 +310,7 @@ func (c *networkEndpointGroupsRESTClient) AggregatedList(ctx context.Context, re
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -776,7 +776,7 @@ func (c *networkEndpointGroupsRESTClient) List(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -874,7 +874,7 @@ func (c *networkEndpointGroupsRESTClient) ListNetworkEndpoints(ctx context.Conte
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -1016,7 +1016,7 @@ func (c *networkFirewallPoliciesRESTClient) List(ctx context.Context, req *compu
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -669,7 +669,7 @@ func (c *networksRESTClient) List(ctx context.Context, req *computepb.ListNetwor
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -766,7 +766,7 @@ func (c *networksRESTClient) ListPeeringRoutes(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -456,7 +456,7 @@ func (c *nodeGroupsRESTClient) AggregatedList(ctx context.Context, req *computep
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -908,7 +908,7 @@ func (c *nodeGroupsRESTClient) List(ctx context.Context, req *computepb.ListNode
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1005,7 +1005,7 @@ func (c *nodeGroupsRESTClient) ListNodes(ctx context.Context, req *computepb.Lis
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -309,7 +309,7 @@ func (c *nodeTemplatesRESTClient) AggregatedList(ctx context.Context, req *compu
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -683,7 +683,7 @@ func (c *nodeTemplatesRESTClient) List(ctx context.Context, req *computepb.ListN
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -233,7 +233,7 @@ func (c *nodeTypesRESTClient) AggregatedList(ctx context.Context, req *computepb
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -398,7 +398,7 @@ func (c *nodeTypesRESTClient) List(ctx context.Context, req *computepb.ListNodeT
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -290,7 +290,7 @@ func (c *packetMirroringsRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -602,7 +602,7 @@ func (c *packetMirroringsRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -759,7 +759,7 @@ func (c *projectsRESTClient) GetXpnResources(ctx context.Context, req *computepb
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -857,7 +857,7 @@ func (c *projectsRESTClient) ListXpnHosts(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -549,7 +549,7 @@ func (c *publicAdvertisedPrefixesRESTClient) List(ctx context.Context, req *comp
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -300,7 +300,7 @@ func (c *publicDelegatedPrefixesRESTClient) AggregatedList(ctx context.Context,
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -682,7 +682,7 @@ func (c *publicDelegatedPrefixesRESTClient) List(ctx context.Context, req *compu
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -472,7 +472,7 @@ func (c *regionAutoscalersRESTClient) List(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -674,7 +674,7 @@ func (c *regionBackendServicesRESTClient) List(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -771,7 +771,7 @@ func (c *regionBackendServicesRESTClient) ListUsable(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -270,7 +270,7 @@ func (c *regionCommitmentsRESTClient) AggregatedList(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -512,7 +512,7 @@ func (c *regionCommitmentsRESTClient) List(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -268,7 +268,7 @@ func (c *regionDiskTypesRESTClient) List(ctx context.Context, req *computepb.Lis
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -887,7 +887,7 @@ func (c *regionDisksRESTClient) List(ctx context.Context, req *computepb.ListReg
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -462,7 +462,7 @@ func (c *regionHealthCheckServicesRESTClient) List(ctx context.Context, req *com
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -472,7 +472,7 @@ func (c *regionHealthChecksRESTClient) List(ctx context.Context, req *computepb.
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -982,7 +982,7 @@ func (c *regionInstanceGroupManagersRESTClient) List(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1079,7 +1079,7 @@ func (c *regionInstanceGroupManagersRESTClient) ListErrors(ctx context.Context,
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1176,7 +1176,7 @@ func (c *regionInstanceGroupManagersRESTClient) ListManagedInstances(ctx context
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -1273,7 +1273,7 @@ func (c *regionInstanceGroupManagersRESTClient) ListPerInstanceConfigs(ctx conte
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -305,7 +305,7 @@ func (c *regionInstanceGroupsRESTClient) List(ctx context.Context, req *computep
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -403,7 +403,7 @@ func (c *regionInstanceGroupsRESTClient) ListInstances(ctx context.Context, req
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -452,7 +452,7 @@ func (c *regionInstanceTemplatesRESTClient) List(ctx context.Context, req *compu
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -563,7 +563,7 @@ func (c *regionInstantSnapshotsRESTClient) List(ctx context.Context, req *comput
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -636,7 +636,7 @@ func (c *regionNetworkEndpointGroupsRESTClient) List(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -733,7 +733,7 @@ func (c *regionNetworkEndpointGroupsRESTClient) ListNetworkEndpoints(ctx context
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -1100,7 +1100,7 @@ func (c *regionNetworkFirewallPoliciesRESTClient) List(ctx context.Context, req
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -452,7 +452,7 @@ func (c *regionNotificationEndpointsRESTClient) List(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -343,7 +343,7 @@ func (c *regionOperationsRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -653,7 +653,7 @@ func (c *regionSecurityPoliciesRESTClient) List(ctx context.Context, req *comput
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -452,7 +452,7 @@ func (c *regionSslCertificatesRESTClient) List(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -481,7 +481,7 @@ func (c *regionSslPoliciesRESTClient) List(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -462,7 +462,7 @@ func (c *regionTargetHttpProxiesRESTClient) List(ctx context.Context, req *compu
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -482,7 +482,7 @@ func (c *regionTargetHttpsProxiesRESTClient) List(ctx context.Context, req *comp
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -452,7 +452,7 @@ func (c *regionTargetTcpProxiesRESTClient) List(ctx context.Context, req *comput
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -482,7 +482,7 @@ func (c *regionUrlMapsRESTClient) List(ctx context.Context, req *computepb.ListR
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -194,7 +194,7 @@ func (c *regionZonesRESTClient) List(ctx context.Context, req *computepb.ListReg
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -268,7 +268,7 @@ func (c *regionsRESTClient) List(ctx context.Context, req *computepb.ListRegions
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -329,7 +329,7 @@ func (c *reservationsRESTClient) AggregatedList(ctx context.Context, req *comput
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -703,7 +703,7 @@ func (c *reservationsRESTClient) List(ctx context.Context, req *computepb.ListRe
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -319,7 +319,7 @@ func (c *resourcePoliciesRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -693,7 +693,7 @@ func (c *resourcePoliciesRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -357,7 +357,7 @@ func (c *routersRESTClient) AggregatedList(ctx context.Context, req *computepb.A
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -654,7 +654,7 @@ func (c *routersRESTClient) GetNatMappingInfo(ctx context.Context, req *computep
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -886,7 +886,7 @@ func (c *routersRESTClient) List(ctx context.Context, req *computepb.ListRouters
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -450,7 +450,7 @@ func (c *routesRESTClient) List(ctx context.Context, req *computepb.ListRoutesRe
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -434,7 +434,7 @@ func (c *securityPoliciesRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -809,7 +809,7 @@ func (c *securityPoliciesRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -319,7 +319,7 @@ func (c *serviceAttachmentsRESTClient) AggregatedList(ctx context.Context, req *
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -693,7 +693,7 @@ func (c *serviceAttachmentsRESTClient) List(ctx context.Context, req *computepb.
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -561,7 +561,7 @@ func (c *snapshotsRESTClient) List(ctx context.Context, req *computepb.ListSnaps
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -270,7 +270,7 @@ func (c *sslCertificatesRESTClient) AggregatedList(ctx context.Context, req *com
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -580,7 +580,7 @@ func (c *sslCertificatesRESTClient) List(ctx context.Context, req *computepb.Lis
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -299,7 +299,7 @@ func (c *sslPoliciesRESTClient) AggregatedList(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -609,7 +609,7 @@ func (c *sslPoliciesRESTClient) List(ctx context.Context, req *computepb.ListSsl
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -233,7 +233,7 @@ func (c *storagePoolTypesRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -398,7 +398,7 @@ func (c *storagePoolTypesRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -338,7 +338,7 @@ func (c *storagePoolsRESTClient) AggregatedList(ctx context.Context, req *comput
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -712,7 +712,7 @@ func (c *storagePoolsRESTClient) List(ctx context.Context, req *computepb.ListSt
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -809,7 +809,7 @@ func (c *storagePoolsRESTClient) ListDisks(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -358,7 +358,7 @@ func (c *subnetworksRESTClient) AggregatedList(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -809,7 +809,7 @@ func (c *subnetworksRESTClient) List(ctx context.Context, req *computepb.ListSub
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -906,7 +906,7 @@ func (c *subnetworksRESTClient) ListUsable(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -460,7 +460,7 @@ func (c *targetGrpcProxiesRESTClient) List(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -290,7 +290,7 @@ func (c *targetHttpProxiesRESTClient) AggregatedList(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -600,7 +600,7 @@ func (c *targetHttpProxiesRESTClient) List(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -330,7 +330,7 @@ func (c *targetHttpsProxiesRESTClient) AggregatedList(ctx context.Context, req *
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -640,7 +640,7 @@ func (c *targetHttpsProxiesRESTClient) List(ctx context.Context, req *computepb.
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -280,7 +280,7 @@ func (c *targetInstancesRESTClient) AggregatedList(ctx context.Context, req *com
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -592,7 +592,7 @@ func (c *targetInstancesRESTClient) List(ctx context.Context, req *computepb.Lis
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -494,7 +494,7 @@ func (c *targetPoolsRESTClient) AggregatedList(ctx context.Context, req *compute
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -868,7 +868,7 @@ func (c *targetPoolsRESTClient) List(ctx context.Context, req *computepb.ListTar
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -500,7 +500,7 @@ func (c *targetSslProxiesRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -290,7 +290,7 @@ func (c *targetTcpProxiesRESTClient) AggregatedList(ctx context.Context, req *co
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -600,7 +600,7 @@ func (c *targetTcpProxiesRESTClient) List(ctx context.Context, req *computepb.Li
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -280,7 +280,7 @@ func (c *targetVpnGatewaysRESTClient) AggregatedList(ctx context.Context, req *c
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -592,7 +592,7 @@ func (c *targetVpnGatewaysRESTClient) List(ctx context.Context, req *computepb.L
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

View file

@ -310,7 +310,7 @@ func (c *urlMapsRESTClient) AggregatedList(ctx context.Context, req *computepb.A
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}
@ -696,7 +696,7 @@ func (c *urlMapsRESTClient) List(ctx context.Context, req *computepb.ListUrlMaps
req.PageToken = proto.String(pageToken)
}
if pageSize > math.MaxInt32 {
req.MaxResults = proto.Uint32(math.MaxInt32)
req.MaxResults = proto.Uint32(uint32(math.MaxInt32))
} else if pageSize != 0 {
req.MaxResults = proto.Uint32(uint32(pageSize))
}

Some files were not shown because too many files have changed in this diff Show more