aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-04-02 14:36:55 +0000
committerTaras Madan <tarasmadan@google.com>2024-04-03 07:15:00 +0000
commit3f34f6cdc22ff2c427b9d65786c56ceb13e98fa6 (patch)
treeb5b2917064dc4ce82758dc399d2ba96bb9fe20dd
parent7925100d31df9119974be319d00386194316fad9 (diff)
mod: bump google.golang.org/api from 0.167.0 to 0.172.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.167.0 to 0.172.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.167.0...v0.172.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-rw-r--r--go.mod4
-rw-r--r--go.sum8
-rw-r--r--vendor/google.golang.org/api/compute/v1/compute-api.json133
-rw-r--r--vendor/google.golang.org/api/compute/v1/compute-gen.go449
-rw-r--r--vendor/google.golang.org/api/internal/settings.go9
-rw-r--r--vendor/google.golang.org/api/internal/version.go2
-rw-r--r--vendor/google.golang.org/api/storage/v1/storage-api.json12
-rw-r--r--vendor/google.golang.org/api/storage/v1/storage-gen.go21
-rw-r--r--vendor/modules.txt4
9 files changed, 621 insertions, 21 deletions
diff --git a/go.mod b/go.mod
index f556e88fb..309de8182 100644
--- a/go.mod
+++ b/go.mod
@@ -23,7 +23,7 @@ require (
golang.org/x/sync v0.6.0
golang.org/x/sys v0.18.0
golang.org/x/tools v0.19.0
- google.golang.org/api v0.170.0
+ google.golang.org/api v0.172.0
google.golang.org/appengine/v2 v2.0.5
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9
gopkg.in/yaml.v3 v3.0.1
@@ -219,7 +219,7 @@ require (
golang.org/x/time v0.5.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240314234333-6e1732d8331c // indirect
- google.golang.org/genproto/googleapis/rpc v0.0.0-20240311132316-a219d84964c2 // indirect
+ google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
google.golang.org/grpc v1.62.1 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
diff --git a/go.sum b/go.sum
index 91d19d35f..3bdd02e12 100644
--- a/go.sum
+++ b/go.sum
@@ -981,8 +981,8 @@ google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0M
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
-google.golang.org/api v0.170.0 h1:zMaruDePM88zxZBG+NG8+reALO2rfLhe/JShitLyT48=
-google.golang.org/api v0.170.0/go.mod h1:/xql9M2btF85xac/VAm4PsLMTLVGUOpq4BE9R8jyNy8=
+google.golang.org/api v0.172.0 h1:/1OcMZGPmW1rX2LCu2CmGUD1KXK1+pfzxotxyRUCCdk=
+google.golang.org/api v0.172.0/go.mod h1:+fJZq6QXWfa9pXhnIzsjx4yI22d4aI9ZpLb58gvXjis=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@@ -1026,8 +1026,8 @@ google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 h1:9+tzLLstTlPTRyJ
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:mqHbVIp48Muh7Ywss/AD6I5kNVKZMmAa/QEW58Gxp2s=
google.golang.org/genproto/googleapis/api v0.0.0-20240314234333-6e1732d8331c h1:kaI7oewGK5YnVwj+Y+EJBO/YN1ht8iTL9XkFHtVZLsc=
google.golang.org/genproto/googleapis/api v0.0.0-20240314234333-6e1732d8331c/go.mod h1:VQW3tUculP/D4B+xVCo+VgSq8As6wA9ZjHl//pmk+6s=
-google.golang.org/genproto/googleapis/rpc v0.0.0-20240311132316-a219d84964c2 h1:9IZDv+/GcI6u+a4jRFRLxQs0RUCfavGfoOgEW6jpkI0=
-google.golang.org/genproto/googleapis/rpc v0.0.0-20240311132316-a219d84964c2/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY=
google.golang.org/grpc v0.0.0-20170208002647-2a6bf6142e96/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
diff --git a/vendor/google.golang.org/api/compute/v1/compute-api.json b/vendor/google.golang.org/api/compute/v1/compute-api.json
index cc3f5ae32..37484ebdc 100644
--- a/vendor/google.golang.org/api/compute/v1/compute-api.json
+++ b/vendor/google.golang.org/api/compute/v1/compute-api.json
@@ -9304,6 +9304,92 @@
}
}
},
+ "instanceSettings": {
+ "methods": {
+ "get": {
+ "description": "Get Instance settings.",
+ "flatPath": "projects/{project}/zones/{zone}/instanceSettings",
+ "httpMethod": "GET",
+ "id": "compute.instanceSettings.get",
+ "parameterOrder": [
+ "project",
+ "zone"
+ ],
+ "parameters": {
+ "project": {
+ "description": "Project ID for this request.",
+ "location": "path",
+ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
+ "required": true,
+ "type": "string"
+ },
+ "zone": {
+ "description": "Name of the zone for this request.",
+ "location": "path",
+ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "projects/{project}/zones/{zone}/instanceSettings",
+ "response": {
+ "$ref": "InstanceSettings"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/compute",
+ "https://www.googleapis.com/auth/compute.readonly"
+ ]
+ },
+ "patch": {
+ "description": "Patch Instance settings",
+ "flatPath": "projects/{project}/zones/{zone}/instanceSettings",
+ "httpMethod": "PATCH",
+ "id": "compute.instanceSettings.patch",
+ "parameterOrder": [
+ "project",
+ "zone"
+ ],
+ "parameters": {
+ "project": {
+ "description": "Project ID for this request.",
+ "location": "path",
+ "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
+ "required": true,
+ "type": "string"
+ },
+ "requestId": {
+ "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
+ "location": "query",
+ "type": "string"
+ },
+ "updateMask": {
+ "description": "update_mask indicates fields to be updated as part of this request.",
+ "format": "google-fieldmask",
+ "location": "query",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The zone scoping this request. It should conform to RFC1035.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "projects/{project}/zones/{zone}/instanceSettings",
+ "request": {
+ "$ref": "InstanceSettings"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/compute"
+ ]
+ }
+ }
+ },
"instanceTemplates": {
"methods": {
"aggregatedList": {
@@ -37285,7 +37371,7 @@
}
}
},
- "revision": "20240305",
+ "revision": "20240312",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AWSV4Signature": {
@@ -52326,6 +52412,49 @@
},
"type": "object"
},
+ "InstanceSettings": {
+ "description": "Represents a Instance Settings resource. You can use instance settings to configure default settings for Compute Engine VM instances. For example, you can use it to configure default machine type of Compute Engine VM instances.",
+ "id": "InstanceSettings",
+ "properties": {
+ "fingerprint": {
+ "description": "Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.",
+ "format": "byte",
+ "type": "string"
+ },
+ "kind": {
+ "default": "compute#instanceSettings",
+ "description": "[Output Only] Type of the resource. Always compute#instance_settings for instance settings.",
+ "type": "string"
+ },
+ "metadata": {
+ "$ref": "InstanceSettingsMetadata",
+ "description": "The metadata key/value pairs assigned to all the instances in the corresponding scope."
+ },
+ "zone": {
+ "description": "[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "InstanceSettingsMetadata": {
+ "id": "InstanceSettingsMetadata",
+ "properties": {
+ "items": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "A metadata key/value items map. The total size of all keys and values must be less than 512KB.",
+ "type": "object"
+ },
+ "kind": {
+ "default": "compute#metadata",
+ "description": "[Output Only] Type of the resource. Always compute#metadata for metadata.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"InstanceTemplate": {
"description": "Represents an Instance Template resource. Google Compute Engine has two Instance Template resources: * [Global](/compute/docs/reference/rest/v1/instanceTemplates) * [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a regional instance template. To create VMs, managed instance groups, and reservations, you can use either global or regional instance templates. For more information, read Instance Templates.",
"id": "InstanceTemplate",
@@ -52935,7 +53064,7 @@
"type": "string"
},
"type": {
- "description": "[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL.",
+ "description": "[Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.",
"enum": [
"HIERARCHY",
"NETWORK",
diff --git a/vendor/google.golang.org/api/compute/v1/compute-gen.go b/vendor/google.golang.org/api/compute/v1/compute-gen.go
index e7519e206..e575d96e6 100644
--- a/vendor/google.golang.org/api/compute/v1/compute-gen.go
+++ b/vendor/google.golang.org/api/compute/v1/compute-gen.go
@@ -188,6 +188,7 @@ func New(client *http.Client) (*Service, error) {
s.InstanceGroupManagerResizeRequests = NewInstanceGroupManagerResizeRequestsService(s)
s.InstanceGroupManagers = NewInstanceGroupManagersService(s)
s.InstanceGroups = NewInstanceGroupsService(s)
+ s.InstanceSettings = NewInstanceSettingsService(s)
s.InstanceTemplates = NewInstanceTemplatesService(s)
s.Instances = NewInstancesService(s)
s.InstantSnapshots = NewInstantSnapshotsService(s)
@@ -320,6 +321,8 @@ type Service struct {
InstanceGroups *InstanceGroupsService
+ InstanceSettings *InstanceSettingsService
+
InstanceTemplates *InstanceTemplatesService
Instances *InstancesService
@@ -701,6 +704,15 @@ type InstanceGroupsService struct {
s *Service
}
+func NewInstanceSettingsService(s *Service) *InstanceSettingsService {
+ rs := &InstanceSettingsService{s: s}
+ return rs
+}
+
+type InstanceSettingsService struct {
+ s *Service
+}
+
func NewInstanceTemplatesService(s *Service) *InstanceTemplatesService {
rs := &InstanceTemplatesService{s: s}
return rs
@@ -23422,6 +23434,93 @@ func (s *InstanceReference) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
+// InstanceSettings: Represents a Instance Settings resource. You can
+// use instance settings to configure default settings for Compute
+// Engine VM instances. For example, you can use it to configure default
+// machine type of Compute Engine VM instances.
+type InstanceSettings struct {
+ // Fingerprint: Specifies a fingerprint for instance settings, which is
+ // essentially a hash of the instance settings resource's contents and
+ // used for optimistic locking. The fingerprint is initially generated
+ // by Compute Engine and changes after every request to modify or update
+ // the instance settings resource. You must always provide an up-to-date
+ // fingerprint hash in order to update or change the resource, otherwise
+ // the request will fail with error 412 conditionNotMet. To see the
+ // latest fingerprint, make a get() request to retrieve the resource.
+ Fingerprint string `json:"fingerprint,omitempty"`
+
+ // Kind: [Output Only] Type of the resource. Always
+ // compute#instance_settings for instance settings.
+ Kind string `json:"kind,omitempty"`
+
+ // Metadata: The metadata key/value pairs assigned to all the instances
+ // in the corresponding scope.
+ Metadata *InstanceSettingsMetadata `json:"metadata,omitempty"`
+
+ // Zone: [Output Only] URL of the zone where the resource resides You
+ // must specify this field as part of the HTTP request URL. It is not
+ // settable as a field in the request body.
+ Zone string `json:"zone,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the
+ // server.
+ googleapi.ServerResponse `json:"-"`
+
+ // ForceSendFields is a list of field names (e.g. "Fingerprint") to
+ // unconditionally include in API requests. By default, fields with
+ // empty or default values are omitted from API requests. However, any
+ // non-pointer, non-interface field appearing in ForceSendFields will be
+ // sent to the server regardless of whether the field is empty or not.
+ // This may be used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Fingerprint") to include
+ // in API requests with the JSON null value. By default, fields with
+ // empty values are omitted from API requests. However, any field with
+ // an empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *InstanceSettings) MarshalJSON() ([]byte, error) {
+ type NoMethod InstanceSettings
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+type InstanceSettingsMetadata struct {
+ // Items: A metadata key/value items map. The total size of all keys and
+ // values must be less than 512KB.
+ Items map[string]string `json:"items,omitempty"`
+
+ // Kind: [Output Only] Type of the resource. Always compute#metadata for
+ // metadata.
+ Kind string `json:"kind,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Items") to
+ // unconditionally include in API requests. By default, fields with
+ // empty or default values are omitted from API requests. However, any
+ // non-pointer, non-interface field appearing in ForceSendFields will be
+ // sent to the server regardless of whether the field is empty or not.
+ // This may be used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Items") to include in API
+ // requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *InstanceSettingsMetadata) MarshalJSON() ([]byte, error) {
+ type NoMethod InstanceSettingsMetadata
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
// InstanceTemplate: Represents an Instance Template resource. Google
// Compute Engine has two Instance Template resources: * Global
// (/compute/docs/reference/rest/v1/instanceTemplates) * Regional
@@ -24225,7 +24324,7 @@ type InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct {
ShortName string `json:"shortName,omitempty"`
// Type: [Output Only] The type of the firewall policy. Can be one of
- // HIERARCHY, NETWORK, NETWORK_REGIONAL.
+ // HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.
//
// Possible values:
// "HIERARCHY"
@@ -106341,6 +106440,354 @@ func (c *InstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) (*Ope
}
+// method id "compute.instanceSettings.get":
+
+type InstanceSettingsGetCall struct {
+ s *Service
+ project string
+ zone string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Get Instance settings.
+//
+// - project: Project ID for this request.
+// - zone: Name of the zone for this request.
+func (r *InstanceSettingsService) Get(project string, zone string) *InstanceSettingsGetCall {
+ c := &InstanceSettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.project = project
+ c.zone = zone
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *InstanceSettingsGetCall) Fields(s ...googleapi.Field) *InstanceSettingsGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets the optional parameter which makes the operation
+// fail if the object's ETag matches the given value. This is useful for
+// getting updates only after the object has changed since the last
+// request. Use googleapi.IsNotModified to check whether the response
+// error from Do is the result of In-None-Match.
+func (c *InstanceSettingsGetCall) IfNoneMatch(entityTag string) *InstanceSettingsGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *InstanceSettingsGetCall) Context(ctx context.Context) *InstanceSettingsGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *InstanceSettingsGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *InstanceSettingsGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instanceSettings")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("GET", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "project": c.project,
+ "zone": c.zone,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "compute.instanceSettings.get" call.
+// Exactly one of *InstanceSettings or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *InstanceSettings.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was
+// because http.StatusNotModified was returned.
+func (c *InstanceSettingsGetCall) Do(opts ...googleapi.CallOption) (*InstanceSettings, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &InstanceSettings{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Get Instance settings.",
+ // "flatPath": "projects/{project}/zones/{zone}/instanceSettings",
+ // "httpMethod": "GET",
+ // "id": "compute.instanceSettings.get",
+ // "parameterOrder": [
+ // "project",
+ // "zone"
+ // ],
+ // "parameters": {
+ // "project": {
+ // "description": "Project ID for this request.",
+ // "location": "path",
+ // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "Name of the zone for this request.",
+ // "location": "path",
+ // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "projects/{project}/zones/{zone}/instanceSettings",
+ // "response": {
+ // "$ref": "InstanceSettings"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform",
+ // "https://www.googleapis.com/auth/compute",
+ // "https://www.googleapis.com/auth/compute.readonly"
+ // ]
+ // }
+
+}
+
+// method id "compute.instanceSettings.patch":
+
+type InstanceSettingsPatchCall struct {
+ s *Service
+ project string
+ zone string
+ instancesettings *InstanceSettings
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Patch: Patch Instance settings
+//
+// - project: Project ID for this request.
+// - zone: The zone scoping this request. It should conform to RFC1035.
+func (r *InstanceSettingsService) Patch(project string, zone string, instancesettings *InstanceSettings) *InstanceSettingsPatchCall {
+ c := &InstanceSettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.project = project
+ c.zone = zone
+ c.instancesettings = instancesettings
+ return c
+}
+
+// RequestId sets the optional parameter "requestId": An optional
+// request ID to identify requests. Specify a unique request ID so that
+// if you must retry your request, the server will know to ignore the
+// request if it has already been completed. For example, consider a
+// situation where you make an initial request and the request times
+// out. If you make the request again with the same request ID, the
+// server can check if original operation with the same request ID was
+// received, and if so, will ignore the second request. This prevents
+// clients from accidentally creating duplicate commitments. The request
+// ID must be a valid UUID with the exception that zero UUID is not
+// supported ( 00000000-0000-0000-0000-000000000000).
+func (c *InstanceSettingsPatchCall) RequestId(requestId string) *InstanceSettingsPatchCall {
+ c.urlParams_.Set("requestId", requestId)
+ return c
+}
+
+// UpdateMask sets the optional parameter "updateMask": update_mask
+// indicates fields to be updated as part of this request.
+func (c *InstanceSettingsPatchCall) UpdateMask(updateMask string) *InstanceSettingsPatchCall {
+ c.urlParams_.Set("updateMask", updateMask)
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *InstanceSettingsPatchCall) Fields(s ...googleapi.Field) *InstanceSettingsPatchCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *InstanceSettingsPatchCall) Context(ctx context.Context) *InstanceSettingsPatchCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *InstanceSettingsPatchCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *InstanceSettingsPatchCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesettings)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ c.urlParams_.Set("prettyPrint", "false")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instanceSettings")
+ urls += "?" + c.urlParams_.Encode()
+ req, err := http.NewRequest("PATCH", urls, body)
+ if err != nil {
+ return nil, err
+ }
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "project": c.project,
+ "zone": c.zone,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "compute.instanceSettings.patch" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *InstanceSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, gensupport.WrapError(&googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ })
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, gensupport.WrapError(err)
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Patch Instance settings",
+ // "flatPath": "projects/{project}/zones/{zone}/instanceSettings",
+ // "httpMethod": "PATCH",
+ // "id": "compute.instanceSettings.patch",
+ // "parameterOrder": [
+ // "project",
+ // "zone"
+ // ],
+ // "parameters": {
+ // "project": {
+ // "description": "Project ID for this request.",
+ // "location": "path",
+ // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "requestId": {
+ // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "updateMask": {
+ // "description": "update_mask indicates fields to be updated as part of this request.",
+ // "format": "google-fieldmask",
+ // "location": "query",
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The zone scoping this request. It should conform to RFC1035.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "projects/{project}/zones/{zone}/instanceSettings",
+ // "request": {
+ // "$ref": "InstanceSettings"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform",
+ // "https://www.googleapis.com/auth/compute"
+ // ]
+ // }
+
+}
+
// method id "compute.instanceTemplates.aggregatedList":
type InstanceTemplatesAggregatedListCall struct {
diff --git a/vendor/google.golang.org/api/internal/settings.go b/vendor/google.golang.org/api/internal/settings.go
index 6b709da70..af4a038d3 100644
--- a/vendor/google.golang.org/api/internal/settings.go
+++ b/vendor/google.golang.org/api/internal/settings.go
@@ -195,7 +195,7 @@ func (ds *DialSettings) IsUniverseDomainGDU() bool {
// GetUniverseDomain returns the default service domain for a given Cloud
// universe, from google.Credentials, for comparison with the value returned by
// (*DialSettings).GetUniverseDomain. This wrapper function should be removed
-// to close [TODO(chrisdsmith): issue link here]. See details below.
+// to close https://github.com/googleapis/google-api-go-client/issues/2399.
func GetUniverseDomain(creds *google.Credentials) (string, error) {
timer := time.NewTimer(time.Second)
defer timer.Stop()
@@ -212,9 +212,10 @@ func GetUniverseDomain(creds *google.Credentials) (string, error) {
}()
select {
- case err := <-errors:
- // An error that is returned before the timer expires is legitimate.
- return "", err
+ case <-errors:
+ // An error that is returned before the timer expires is likely to be
+ // connection refused. Temporarily (2024-03-21) return the GDU domain.
+ return universeDomainDefault, nil
case res := <-results:
return res, nil
case <-timer.C: // Timer is expired.
diff --git a/vendor/google.golang.org/api/internal/version.go b/vendor/google.golang.org/api/internal/version.go
index 16c81a586..9c5b996bb 100644
--- a/vendor/google.golang.org/api/internal/version.go
+++ b/vendor/google.golang.org/api/internal/version.go
@@ -5,4 +5,4 @@
package internal
// Version is the current tagged release of the library.
-const Version = "0.170.0"
+const Version = "0.172.0"
diff --git a/vendor/google.golang.org/api/storage/v1/storage-api.json b/vendor/google.golang.org/api/storage/v1/storage-api.json
index 0924de91e..1b4be6993 100644
--- a/vendor/google.golang.org/api/storage/v1/storage-api.json
+++ b/vendor/google.golang.org/api/storage/v1/storage-api.json
@@ -33,7 +33,7 @@
"location": "me-central2"
}
],
- "etag": "\"37303437343235343136323638383931333233\"",
+ "etag": "\"33303333323233383838323039393532373539\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
@@ -1632,6 +1632,11 @@
"managedFolder"
],
"parameters": {
+ "allowNonEmpty": {
+ "description": "Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.",
+ "location": "query",
+ "type": "boolean"
+ },
"bucket": {
"description": "Name of the bucket containing the managed folder.",
"location": "path",
@@ -3141,7 +3146,8 @@
"id": "storage.objects.restore",
"parameterOrder": [
"bucket",
- "object"
+ "object",
+ "generation"
],
"parameters": {
"bucket": {
@@ -4037,7 +4043,7 @@
}
}
},
- "revision": "20240307",
+ "revision": "20240319",
"rootUrl": "https://storage.googleapis.com/",
"schemas": {
"AnywhereCache": {
diff --git a/vendor/google.golang.org/api/storage/v1/storage-gen.go b/vendor/google.golang.org/api/storage/v1/storage-gen.go
index 6b74b813d..a3f17e5c6 100644
--- a/vendor/google.golang.org/api/storage/v1/storage-gen.go
+++ b/vendor/google.golang.org/api/storage/v1/storage-gen.go
@@ -9452,6 +9452,16 @@ func (r *ManagedFoldersService) Delete(bucket string, managedFolder string) *Man
return c
}
+// AllowNonEmpty sets the optional parameter "allowNonEmpty": Allows the
+// deletion of a managed folder even if it is not empty. A managed
+// folder is empty if there are no objects or managed folders that it
+// applies to. Callers must have storage.managedFolders.setIamPolicy
+// permission.
+func (c *ManagedFoldersDeleteCall) AllowNonEmpty(allowNonEmpty bool) *ManagedFoldersDeleteCall {
+ c.urlParams_.Set("allowNonEmpty", fmt.Sprint(allowNonEmpty))
+ return c
+}
+
// IfMetagenerationMatch sets the optional parameter
// "ifMetagenerationMatch": If set, only deletes the managed folder if
// its metageneration matches this value.
@@ -9538,6 +9548,11 @@ func (c *ManagedFoldersDeleteCall) Do(opts ...googleapi.CallOption) error {
// "managedFolder"
// ],
// "parameters": {
+ // "allowNonEmpty": {
+ // "description": "Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.",
+ // "location": "query",
+ // "type": "boolean"
+ // },
// "bucket": {
// "description": "Name of the bucket containing the managed folder.",
// "location": "path",
@@ -15063,10 +15078,11 @@ type ObjectsRestoreCall struct {
// - generation: Selects a specific revision of this object.
// - object: Name of the object. For information about how to URL encode
// object names to be path safe, see Encoding URI Path Parts.
-func (r *ObjectsService) Restore(bucket string, object string) *ObjectsRestoreCall {
+func (r *ObjectsService) Restore(bucket string, object string, generation int64) *ObjectsRestoreCall {
c := &ObjectsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
c.object = object
+ c.urlParams_.Set("generation", fmt.Sprint(generation))
return c
}
@@ -15225,7 +15241,8 @@ func (c *ObjectsRestoreCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "id": "storage.objects.restore",
// "parameterOrder": [
// "bucket",
- // "object"
+ // "object",
+ // "generation"
// ],
// "parameters": {
// "bucket": {
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 3b795fb39..0bd1c6db2 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -1007,7 +1007,7 @@ golang.org/x/tools/internal/typeparams
golang.org/x/tools/internal/typesinternal
golang.org/x/tools/internal/versions
golang.org/x/tools/txtar
-# google.golang.org/api v0.170.0
+# google.golang.org/api v0.172.0
## explicit; go 1.19
google.golang.org/api/compute/v1
google.golang.org/api/googleapi
@@ -1076,7 +1076,7 @@ google.golang.org/genproto/googleapis/api/distribution
google.golang.org/genproto/googleapis/api/label
google.golang.org/genproto/googleapis/api/metric
google.golang.org/genproto/googleapis/api/monitoredres
-# google.golang.org/genproto/googleapis/rpc v0.0.0-20240311132316-a219d84964c2
+# google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237
## explicit; go 1.19
google.golang.org/genproto/googleapis/rpc/code
google.golang.org/genproto/googleapis/rpc/context/attribute_context