mirror of https://github.com/knative/pkg.git
Bump google.golang.org/api from 0.149.0 to 0.150.0 (#2896)
* Bump google.golang.org/api from 0.149.0 to 0.150.0 Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.149.0 to 0.150.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.149.0...v0.150.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> * Run ./hack/update-codegen.sh --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
4e16990320
commit
b3e7ef5a80
4
go.mod
4
go.mod
|
@ -36,7 +36,7 @@ require (
|
|||
golang.org/x/sync v0.5.0
|
||||
golang.org/x/tools v0.14.0
|
||||
gomodules.xyz/jsonpatch/v2 v2.4.0
|
||||
google.golang.org/api v0.149.0
|
||||
google.golang.org/api v0.150.0
|
||||
google.golang.org/grpc v1.59.0
|
||||
google.golang.org/protobuf v1.31.0
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
|
@ -101,7 +101,7 @@ require (
|
|||
google.golang.org/appengine v1.6.7 // indirect
|
||||
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
|
||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
|
||||
|
|
8
go.sum
8
go.sum
|
@ -624,8 +624,8 @@ google.golang.org/api v0.25.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.149.0 h1:b2CqT6kG+zqJIVKRQ3ELJVLN1PwHZ6DJ3dW8yl82rgY=
|
||||
google.golang.org/api v0.149.0/go.mod h1:Mwn1B7JTXrzXtnvmzQE2BD6bYZQ8DShKZDZbeN9I7qI=
|
||||
google.golang.org/api v0.150.0 h1:Z9k22qD289SZ8gCJrk4DrWXkNjtfvKAUo/l1ma8eBYE=
|
||||
google.golang.org/api v0.150.0/go.mod h1:ccy+MJ6nrYFgE3WgRx/AMXOxOmU8Q4hSa+jjibzhxcg=
|
||||
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=
|
||||
|
@ -670,8 +670,8 @@ google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5
|
|||
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b h1:CIC2YMXmIhYw6evmhPxBKJ4fmLbOFtXQN/GV3XOZR8k=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1:ZlWIi1wSK56/8hn4QcBp/j9M7Gt3U/3hZw3mC7vDICo=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
|
||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||
|
|
|
@ -2565,7 +2565,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20231012",
|
||||
"revision": "20231024",
|
||||
"rootUrl": "https://container.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
|
@ -3247,6 +3247,10 @@
|
|||
"description": "[Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.",
|
||||
"type": "string"
|
||||
},
|
||||
"enterpriseConfig": {
|
||||
"$ref": "EnterpriseConfig",
|
||||
"description": "GKE Enterprise Configuration."
|
||||
},
|
||||
"etag": {
|
||||
"description": "This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.",
|
||||
"type": "string"
|
||||
|
@ -4151,6 +4155,28 @@
|
|||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"EnterpriseConfig": {
|
||||
"description": "EnterpriseConfig is the cluster enterprise configuration.",
|
||||
"id": "EnterpriseConfig",
|
||||
"properties": {
|
||||
"clusterTier": {
|
||||
"description": "Output only. [Output only] cluster_tier specifies the premium tier of the cluster.",
|
||||
"enum": [
|
||||
"CLUSTER_TIER_UNSPECIFIED",
|
||||
"STANDARD",
|
||||
"ENTERPRISE"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.",
|
||||
"STANDARD indicates a standard GKE cluster.",
|
||||
"ENTERPRISE indicates a GKE Enterprise cluster."
|
||||
],
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"EphemeralStorageConfig": {
|
||||
"description": "EphemeralStorageConfig contains configuration for the ephemeral storage filesystem.",
|
||||
"id": "EphemeralStorageConfig",
|
||||
|
|
|
@ -1395,6 +1395,9 @@ type Cluster struct {
|
|||
// of this resource for username and password information.
|
||||
Endpoint string `json:"endpoint,omitempty"`
|
||||
|
||||
// EnterpriseConfig: GKE Enterprise Configuration.
|
||||
EnterpriseConfig *EnterpriseConfig `json:"enterpriseConfig,omitempty"`
|
||||
|
||||
// Etag: This checksum is computed by the server based on the value of
|
||||
// cluster fields, and may be sent on update requests to ensure the
|
||||
// client has an up-to-date value before proceeding.
|
||||
|
@ -2694,6 +2697,42 @@ type Empty struct {
|
|||
googleapi.ServerResponse `json:"-"`
|
||||
}
|
||||
|
||||
// EnterpriseConfig: EnterpriseConfig is the cluster enterprise
|
||||
// configuration.
|
||||
type EnterpriseConfig struct {
|
||||
// ClusterTier: Output only. [Output only] cluster_tier specifies the
|
||||
// premium tier of the cluster.
|
||||
//
|
||||
// Possible values:
|
||||
// "CLUSTER_TIER_UNSPECIFIED" - CLUSTER_TIER_UNSPECIFIED is when
|
||||
// cluster_tier is not set.
|
||||
// "STANDARD" - STANDARD indicates a standard GKE cluster.
|
||||
// "ENTERPRISE" - ENTERPRISE indicates a GKE Enterprise cluster.
|
||||
ClusterTier string `json:"clusterTier,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ClusterTier") 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. "ClusterTier") 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 *EnterpriseConfig) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod EnterpriseConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// EphemeralStorageConfig: EphemeralStorageConfig contains configuration
|
||||
// for the ephemeral storage filesystem.
|
||||
type EphemeralStorageConfig struct {
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
package internal
|
||||
|
||||
// Version is the current tagged release of the library.
|
||||
const Version = "0.149.0"
|
||||
const Version = "0.150.0"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"description": "Stores and retrieves potentially large, immutable data objects.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/storage/docs/json_api/",
|
||||
"etag": "\"3133333835393639383131353638313238353437\"",
|
||||
"etag": "\"39383633393336373936373236333033393737\"",
|
||||
"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"
|
||||
|
@ -92,6 +92,242 @@
|
|||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"anywhereCache": {
|
||||
"methods": {
|
||||
"disable": {
|
||||
"description": "Disables an Anywhere Cache instance.",
|
||||
"httpMethod": "POST",
|
||||
"id": "storage.anywhereCaches.disable",
|
||||
"parameterOrder": [
|
||||
"bucket",
|
||||
"anywhereCacheId"
|
||||
],
|
||||
"parameters": {
|
||||
"anywhereCacheId": {
|
||||
"description": "The ID of requested Anywhere Cache instance.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"description": "Name of the partent bucket",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "b/{bucket}/anywhereCaches/{anywhereCacheId}/disable",
|
||||
"response": {
|
||||
"$ref": "AnywhereCache"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_write"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Returns the metadata of an Anywhere Cache instance.",
|
||||
"httpMethod": "GET",
|
||||
"id": "storage.anywhereCaches.get",
|
||||
"parameterOrder": [
|
||||
"bucket",
|
||||
"anywhereCacheId"
|
||||
],
|
||||
"parameters": {
|
||||
"anywhereCacheId": {
|
||||
"description": "The ID of requested Anywhere Cache instance.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"description": "Name of the partent bucket",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "b/{bucket}/anywhereCaches/{anywhereCacheId}",
|
||||
"response": {
|
||||
"$ref": "AnywhereCache"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_only",
|
||||
"https://www.googleapis.com/auth/devstorage.read_write"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"description": "Creates an Anywhere Cache instance.",
|
||||
"httpMethod": "POST",
|
||||
"id": "storage.anywhereCaches.insert",
|
||||
"parameterOrder": [
|
||||
"bucket"
|
||||
],
|
||||
"parameters": {
|
||||
"bucket": {
|
||||
"description": "Name of the partent bucket",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "b/{bucket}/anywhereCaches",
|
||||
"request": {
|
||||
"$ref": "AnywhereCache"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "GoogleLongrunningOperation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_write"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Returns a list of Anywhere Cache instances of the bucket matching the criteria.",
|
||||
"httpMethod": "GET",
|
||||
"id": "storage.anywhereCaches.list",
|
||||
"parameterOrder": [
|
||||
"bucket"
|
||||
],
|
||||
"parameters": {
|
||||
"bucket": {
|
||||
"description": "Name of the partent bucket",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"description": "Maximum number of items return in a single page of responses. Maximum 1000.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"minimum": "0",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A previously-returned page token representing part of the larger set of results to view.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "b/{bucket}/anywhereCache",
|
||||
"response": {
|
||||
"$ref": "AnywhereCaches"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_only",
|
||||
"https://www.googleapis.com/auth/devstorage.read_write"
|
||||
]
|
||||
},
|
||||
"pause": {
|
||||
"description": "Pauses an Anywhere Cache instance.",
|
||||
"httpMethod": "POST",
|
||||
"id": "storage.anywhereCaches.pause",
|
||||
"parameterOrder": [
|
||||
"bucket",
|
||||
"anywhereCacheId"
|
||||
],
|
||||
"parameters": {
|
||||
"anywhereCacheId": {
|
||||
"description": "The ID of requested Anywhere Cache instance.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"description": "Name of the partent bucket",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "b/{bucket}/anywhereCaches/{anywhereCacheId}/pause",
|
||||
"response": {
|
||||
"$ref": "AnywhereCache"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_write"
|
||||
]
|
||||
},
|
||||
"resume": {
|
||||
"description": "Resumes a paused or disabled Anywhere Cache instance.",
|
||||
"httpMethod": "POST",
|
||||
"id": "storage.anywhereCaches.resume",
|
||||
"parameterOrder": [
|
||||
"bucket",
|
||||
"anywhereCacheId"
|
||||
],
|
||||
"parameters": {
|
||||
"anywhereCacheId": {
|
||||
"description": "The ID of requested Anywhere Cache instance.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"description": "Name of the partent bucket",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "b/{bucket}/anywhereCaches/{anywhereCacheId}/resume",
|
||||
"response": {
|
||||
"$ref": "AnywhereCache"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_write"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"description": "Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "storage.anywhereCaches.update",
|
||||
"parameterOrder": [
|
||||
"bucket",
|
||||
"anywhereCacheId"
|
||||
],
|
||||
"parameters": {
|
||||
"anywhereCacheId": {
|
||||
"description": "The ID of requested Anywhere Cache instance.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"description": "Name of the partent bucket",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "b/{bucket}/anywhereCaches/{anywhereCacheId}",
|
||||
"request": {
|
||||
"$ref": "AnywhereCache"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "GoogleLongrunningOperation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control",
|
||||
"https://www.googleapis.com/auth/devstorage.read_write"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"bucketAccessControls": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
|
@ -3563,9 +3799,87 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20231012",
|
||||
"revision": "20231028",
|
||||
"rootUrl": "https://storage.googleapis.com/",
|
||||
"schemas": {
|
||||
"AnywhereCache": {
|
||||
"description": "An Anywhere Cache instance.",
|
||||
"id": "AnywhereCache",
|
||||
"properties": {
|
||||
"admissionPolicy": {
|
||||
"description": "The cache-level entry admission policy.",
|
||||
"type": "string"
|
||||
},
|
||||
"anywhereCacheId": {
|
||||
"description": "The ID of the Anywhere cache instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"bucket": {
|
||||
"description": "The name of the bucket containing this cache instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"createTime": {
|
||||
"description": "The creation time of the cache instance in RFC 3339 format.",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The ID of the resource, including the project number, bucket name and anywhere cache ID.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "storage#anywhereCache",
|
||||
"description": "The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.",
|
||||
"type": "string"
|
||||
},
|
||||
"pendingUpdate": {
|
||||
"description": "True if the cache instance has an active Update long-running operation.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"selfLink": {
|
||||
"description": "The link to this cache instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"description": "The current state of the cache instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"ttl": {
|
||||
"description": "The TTL of all cache entries in whole seconds. e.g., \"7200s\". ",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"updateTime": {
|
||||
"description": "The modification time of the cache instance metadata in RFC 3339 format.",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AnywhereCaches": {
|
||||
"description": "A list of Anywhere Caches.",
|
||||
"id": "AnywhereCaches",
|
||||
"properties": {
|
||||
"items": {
|
||||
"description": "The list of items.",
|
||||
"items": {
|
||||
"$ref": "AnywhereCache"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"kind": {
|
||||
"default": "storage#anywhereCaches",
|
||||
"description": "The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.",
|
||||
"type": "string"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Bucket": {
|
||||
"description": "A bucket.",
|
||||
"id": "Bucket",
|
||||
|
@ -3951,7 +4265,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"retentionDurationSeconds": {
|
||||
"description": "The period of time in seconds, that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.",
|
||||
"description": "The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -14,10 +14,12 @@ import (
|
|||
"net"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"cloud.google.com/go/compute/metadata"
|
||||
"go.opencensus.io/plugin/ocgrpc"
|
||||
"golang.org/x/oauth2"
|
||||
"golang.org/x/time/rate"
|
||||
"google.golang.org/api/internal"
|
||||
"google.golang.org/api/option"
|
||||
"google.golang.org/grpc"
|
||||
|
@ -38,6 +40,9 @@ const enableDirectPathXds = "GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS"
|
|||
// Set at init time by dial_socketopt.go. If nil, socketopt is not supported.
|
||||
var timeoutDialerOption grpc.DialOption
|
||||
|
||||
// Log rate limiter
|
||||
var logRateLimiter = rate.Sometimes{Interval: 1 * time.Second}
|
||||
|
||||
// Dial returns a GRPC connection for use communicating with a Google cloud
|
||||
// service, configured with the given ClientOptions.
|
||||
func Dial(ctx context.Context, opts ...option.ClientOption) (*grpc.ClientConn, error) {
|
||||
|
@ -153,6 +158,9 @@ func dial(ctx context.Context, insecure bool, o *internal.DialSettings) (*grpc.C
|
|||
)
|
||||
|
||||
// Attempt Direct Path:
|
||||
logRateLimiter.Do(func() {
|
||||
logDirectPathMisconfig(endpoint, creds.TokenSource, o)
|
||||
})
|
||||
if isDirectPathEnabled(endpoint, o) && isTokenSourceDirectPathCompatible(creds.TokenSource, o) && metadata.OnGCE() {
|
||||
// Overwrite all of the previously specific DialOptions, DirectPath uses its own set of credentials and certificates.
|
||||
grpcOpts = []grpc.DialOption{
|
||||
|
@ -296,6 +304,24 @@ func checkDirectPathEndPoint(endpoint string) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func logDirectPathMisconfig(endpoint string, ts oauth2.TokenSource, o *internal.DialSettings) {
|
||||
if isDirectPathXdsUsed(o) {
|
||||
// Case 1: does not enable DirectPath
|
||||
if !isDirectPathEnabled(endpoint, o) {
|
||||
log.Println("WARNING: DirectPath is misconfigured. Please set the EnableDirectPath option along with the EnableDirectPathXds option.")
|
||||
} else {
|
||||
// Case 2: credential is not correctly set
|
||||
if !isTokenSourceDirectPathCompatible(ts, o) {
|
||||
log.Println("WARNING: DirectPath is misconfigured. Please make sure the token source is fetched from GCE metadata server and the default service account is used.")
|
||||
}
|
||||
// Case 3: not running on GCE
|
||||
if !metadata.OnGCE() {
|
||||
log.Println("WARNING: DirectPath is misconfigured. DirectPath is only available in a GCE environment.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func processAndValidateOpts(opts []option.ClientOption) (*internal.DialSettings, error) {
|
||||
var o internal.DialSettings
|
||||
for _, opt := range opts {
|
||||
|
|
|
@ -410,7 +410,7 @@ golang.org/x/xerrors/internal
|
|||
# gomodules.xyz/jsonpatch/v2 v2.4.0
|
||||
## explicit; go 1.20
|
||||
gomodules.xyz/jsonpatch/v2
|
||||
# google.golang.org/api v0.149.0
|
||||
# google.golang.org/api v0.150.0
|
||||
## explicit; go 1.19
|
||||
google.golang.org/api/container/v1beta1
|
||||
google.golang.org/api/googleapi
|
||||
|
@ -453,7 +453,7 @@ google.golang.org/genproto/protobuf/field_mask
|
|||
google.golang.org/genproto/googleapis/api
|
||||
google.golang.org/genproto/googleapis/api/annotations
|
||||
google.golang.org/genproto/googleapis/api/httpbody
|
||||
# google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b
|
||||
# google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405
|
||||
## explicit; go 1.19
|
||||
google.golang.org/genproto/googleapis/rpc/code
|
||||
google.golang.org/genproto/googleapis/rpc/errdetails
|
||||
|
|
Loading…
Reference in New Issue