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

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))
}

View file

@ -309,7 +309,7 @@ func (c *vpnGatewaysRESTClient) 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))
}
@ -676,7 +676,7 @@ func (c *vpnGatewaysRESTClient) List(ctx context.Context, req *computepb.ListVpn
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 *vpnTunnelsRESTClient) 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))
}
@ -592,7 +592,7 @@ func (c *vpnTunnelsRESTClient) List(ctx context.Context, req *computepb.ListVpnT
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