deps: update osbuild/images to 246b718310ea

Current main.
246b718310
This commit is contained in:
Achilleas Koutsou 2023-07-19 17:22:28 +02:00 committed by Ondřej Budai
parent 326f0cfa2f
commit 5c292c61c6
1437 changed files with 208886 additions and 87131 deletions

View file

@ -20,7 +20,7 @@ import (
"bytes"
"context"
"fmt"
"io/ioutil"
"io"
"math"
"net/http"
"net/url"
@ -56,6 +56,7 @@ type AutoscalersCallOptions struct {
func defaultAutoscalersRESTCallOptions() *AutoscalersCallOptions {
return &AutoscalersCallOptions{
AggregatedList: []gax.CallOption{
gax.WithTimeout(600000 * time.Millisecond),
gax.WithRetry(func() gax.Retryer {
return gax.OnHTTPCodes(gax.Backoff{
Initial: 100 * time.Millisecond,
@ -66,8 +67,11 @@ func defaultAutoscalersRESTCallOptions() *AutoscalersCallOptions {
http.StatusServiceUnavailable)
}),
},
Delete: []gax.CallOption{},
Delete: []gax.CallOption{
gax.WithTimeout(600000 * time.Millisecond),
},
Get: []gax.CallOption{
gax.WithTimeout(600000 * time.Millisecond),
gax.WithRetry(func() gax.Retryer {
return gax.OnHTTPCodes(gax.Backoff{
Initial: 100 * time.Millisecond,
@ -78,8 +82,11 @@ func defaultAutoscalersRESTCallOptions() *AutoscalersCallOptions {
http.StatusServiceUnavailable)
}),
},
Insert: []gax.CallOption{},
Insert: []gax.CallOption{
gax.WithTimeout(600000 * time.Millisecond),
},
List: []gax.CallOption{
gax.WithTimeout(600000 * time.Millisecond),
gax.WithRetry(func() gax.Retryer {
return gax.OnHTTPCodes(gax.Backoff{
Initial: 100 * time.Millisecond,
@ -90,8 +97,12 @@ func defaultAutoscalersRESTCallOptions() *AutoscalersCallOptions {
http.StatusServiceUnavailable)
}),
},
Patch: []gax.CallOption{},
Update: []gax.CallOption{},
Patch: []gax.CallOption{
gax.WithTimeout(600000 * time.Millisecond),
},
Update: []gax.CallOption{
gax.WithTimeout(600000 * time.Millisecond),
},
}
}
@ -241,7 +252,7 @@ func defaultAutoscalersRESTClientOptions() []option.ClientOption {
// the `x-goog-api-client` header passed on each request. Intended for
// use by Google-written clients.
func (c *autoscalersRESTClient) setGoogleClientInfo(keyval ...string) {
kv := append([]string{"gl-go", versionGo()}, keyval...)
kv := append([]string{"gl-go", gax.GoVersion}, keyval...)
kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN")
c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...))
}
@ -329,13 +340,13 @@ func (c *autoscalersRESTClient) AggregatedList(ctx context.Context, req *compute
return err
}
buf, err := ioutil.ReadAll(httpRsp.Body)
buf, err := io.ReadAll(httpRsp.Body)
if err != nil {
return err
}
if err := unm.Unmarshal(buf, resp); err != nil {
return maybeUnknownEnum(err)
return err
}
return nil
@ -413,13 +424,13 @@ func (c *autoscalersRESTClient) Delete(ctx context.Context, req *computepb.Delet
return err
}
buf, err := ioutil.ReadAll(httpRsp.Body)
buf, err := io.ReadAll(httpRsp.Body)
if err != nil {
return err
}
if err := unm.Unmarshal(buf, resp); err != nil {
return maybeUnknownEnum(err)
return err
}
return nil
@ -474,13 +485,13 @@ func (c *autoscalersRESTClient) Get(ctx context.Context, req *computepb.GetAutos
return err
}
buf, err := ioutil.ReadAll(httpRsp.Body)
buf, err := io.ReadAll(httpRsp.Body)
if err != nil {
return err
}
if err := unm.Unmarshal(buf, resp); err != nil {
return maybeUnknownEnum(err)
return err
}
return nil
@ -541,13 +552,13 @@ func (c *autoscalersRESTClient) Insert(ctx context.Context, req *computepb.Inser
return err
}
buf, err := ioutil.ReadAll(httpRsp.Body)
buf, err := io.ReadAll(httpRsp.Body)
if err != nil {
return err
}
if err := unm.Unmarshal(buf, resp); err != nil {
return maybeUnknownEnum(err)
return err
}
return nil
@ -628,13 +639,13 @@ func (c *autoscalersRESTClient) List(ctx context.Context, req *computepb.ListAut
return err
}
buf, err := ioutil.ReadAll(httpRsp.Body)
buf, err := io.ReadAll(httpRsp.Body)
if err != nil {
return err
}
if err := unm.Unmarshal(buf, resp); err != nil {
return maybeUnknownEnum(err)
return err
}
return nil
@ -715,13 +726,13 @@ func (c *autoscalersRESTClient) Patch(ctx context.Context, req *computepb.PatchA
return err
}
buf, err := ioutil.ReadAll(httpRsp.Body)
buf, err := io.ReadAll(httpRsp.Body)
if err != nil {
return err
}
if err := unm.Unmarshal(buf, resp); err != nil {
return maybeUnknownEnum(err)
return err
}
return nil
@ -793,13 +804,13 @@ func (c *autoscalersRESTClient) Update(ctx context.Context, req *computepb.Updat
return err
}
buf, err := ioutil.ReadAll(httpRsp.Body)
buf, err := io.ReadAll(httpRsp.Body)
if err != nil {
return err
}
if err := unm.Unmarshal(buf, resp); err != nil {
return maybeUnknownEnum(err)
return err
}
return nil