build(deps): bump the go-deps group across 1 directory with 10 updates

Bumps the go-deps group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go) | `1.27.1` | `1.27.3` |
| [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) | `1.42.0` | `1.43.0` |
| [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) | `1.6.0` | `1.7.0` |
| [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage](https://github.com/Azure/azure-sdk-for-go) | `1.5.0` | `1.6.0` |
| [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) | `1.54.10` | `1.54.18` |
| [github.com/gophercloud/gophercloud](https://github.com/gophercloud/gophercloud) | `1.12.0` | `1.13.0` |
| [github.com/openshift-online/ocm-sdk-go](https://github.com/openshift-online/ocm-sdk-go) | `0.1.425` | `0.1.429` |
| [github.com/osbuild/images](https://github.com/osbuild/images) | `0.69.0` | `0.70.0` |



Updates `cloud.google.com/go/compute` from 1.27.1 to 1.27.3
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/pubsub/v1.27.1...compute/v1.27.3)

Updates `cloud.google.com/go/storage` from 1.42.0 to 1.43.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/spanner/v1.42.0...spanner/v1.43.0)

Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.6.0 to 1.7.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.6.0...sdk/azcore/v1.7.0)

Updates `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage` from 1.5.0 to 1.6.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.5.0...sdk/azcore/v1.6.0)

Updates `github.com/aws/aws-sdk-go` from 1.54.10 to 1.54.18
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.54.10...v1.54.18)

Updates `github.com/gophercloud/gophercloud` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/gophercloud/gophercloud/releases)
- [Changelog](https://github.com/gophercloud/gophercloud/blob/v1.13.0/CHANGELOG.md)
- [Commits](https://github.com/gophercloud/gophercloud/compare/v1.12.0...v1.13.0)

Updates `github.com/openshift-online/ocm-sdk-go` from 0.1.425 to 0.1.429
- [Release notes](https://github.com/openshift-online/ocm-sdk-go/releases)
- [Changelog](https://github.com/openshift-online/ocm-sdk-go/blob/main/CHANGES.md)
- [Commits](https://github.com/openshift-online/ocm-sdk-go/compare/v0.1.425...v0.1.429)

Updates `github.com/osbuild/images` from 0.69.0 to 0.70.0
- [Release notes](https://github.com/osbuild/images/releases)
- [Commits](https://github.com/osbuild/images/compare/v0.69.0...v0.70.0)

Updates `golang.org/x/sys` from 0.21.0 to 0.22.0
- [Commits](https://github.com/golang/sys/compare/v0.21.0...v0.22.0)

Updates `google.golang.org/api` from 0.186.0 to 0.188.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.186.0...v0.188.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/compute
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: cloud.google.com/go/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: github.com/gophercloud/gophercloud
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/openshift-online/ocm-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: github.com/osbuild/images
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2024-07-11 04:55:34 +00:00 committed by Tomáš Hozza
parent c6d669f2cc
commit 4ba7085068
153 changed files with 6445 additions and 1316 deletions

View file

@ -217,9 +217,9 @@ type GenerateAccessTokenRequest struct {
NullFields []string `json:"-"`
}
func (s *GenerateAccessTokenRequest) MarshalJSON() ([]byte, error) {
func (s GenerateAccessTokenRequest) MarshalJSON() ([]byte, error) {
type NoMethod GenerateAccessTokenRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type GenerateAccessTokenResponse struct {
@ -243,9 +243,9 @@ type GenerateAccessTokenResponse struct {
NullFields []string `json:"-"`
}
func (s *GenerateAccessTokenResponse) MarshalJSON() ([]byte, error) {
func (s GenerateAccessTokenResponse) MarshalJSON() ([]byte, error) {
type NoMethod GenerateAccessTokenResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type GenerateIdTokenRequest struct {
@ -277,9 +277,9 @@ type GenerateIdTokenRequest struct {
NullFields []string `json:"-"`
}
func (s *GenerateIdTokenRequest) MarshalJSON() ([]byte, error) {
func (s GenerateIdTokenRequest) MarshalJSON() ([]byte, error) {
type NoMethod GenerateIdTokenRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type GenerateIdTokenResponse struct {
@ -301,9 +301,9 @@ type GenerateIdTokenResponse struct {
NullFields []string `json:"-"`
}
func (s *GenerateIdTokenResponse) MarshalJSON() ([]byte, error) {
func (s GenerateIdTokenResponse) MarshalJSON() ([]byte, error) {
type NoMethod GenerateIdTokenResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type SignBlobRequest struct {
@ -331,9 +331,9 @@ type SignBlobRequest struct {
NullFields []string `json:"-"`
}
func (s *SignBlobRequest) MarshalJSON() ([]byte, error) {
func (s SignBlobRequest) MarshalJSON() ([]byte, error) {
type NoMethod SignBlobRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type SignBlobResponse struct {
@ -368,9 +368,9 @@ type SignBlobResponse struct {
NullFields []string `json:"-"`
}
func (s *SignBlobResponse) MarshalJSON() ([]byte, error) {
func (s SignBlobResponse) MarshalJSON() ([]byte, error) {
type NoMethod SignBlobResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type SignJwtRequest struct {
@ -402,9 +402,9 @@ type SignJwtRequest struct {
NullFields []string `json:"-"`
}
func (s *SignJwtRequest) MarshalJSON() ([]byte, error) {
func (s SignJwtRequest) MarshalJSON() ([]byte, error) {
type NoMethod SignJwtRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type SignJwtResponse struct {
@ -441,9 +441,9 @@ type SignJwtResponse struct {
NullFields []string `json:"-"`
}
func (s *SignJwtResponse) MarshalJSON() ([]byte, error) {
func (s SignJwtResponse) MarshalJSON() ([]byte, error) {
type NoMethod SignJwtResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type ProjectsServiceAccountsGenerateAccessTokenCall struct {

View file

@ -127,7 +127,7 @@ func baseCreds(ctx context.Context, ds *DialSettings) (*google.Credentials, erro
if ds.Credentials != nil {
return ds.Credentials, nil
}
if ds.CredentialsJSON != nil {
if len(ds.CredentialsJSON) > 0 {
return credentialsFromJSON(ctx, ds.CredentialsJSON, ds)
}
if ds.CredentialsFile != "" {

View file

@ -171,6 +171,10 @@ func (rx *ResumableUpload) Upload(ctx context.Context) (resp *http.Response, err
if resp != nil && resp.Body != nil {
resp.Body.Close()
}
// If there were retries, indicate this in the error message and wrap the final error.
if rx.attempts > 1 {
return nil, fmt.Errorf("chunk upload failed after %d attempts;, final error: %w", rx.attempts, err)
}
return nil, err
}
// This case is very unlikely but possible only if rx.ChunkRetryDeadline is

View file

@ -126,7 +126,7 @@ func (ds *DialSettings) Validate() error {
if ds.Credentials != nil {
nCreds++
}
if ds.CredentialsJSON != nil {
if len(ds.CredentialsJSON) > 0 {
nCreds++
}
if ds.CredentialsFile != "" {

View file

@ -5,4 +5,4 @@
package internal
// Version is the current tagged release of the library.
const Version = "0.186.0"
const Version = "0.188.0"

View file

@ -27,13 +27,23 @@
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/storage/docs/json_api/",
"endpoints": [
{
"description": "Regional Endpoint",
"endpointUrl": "https://storage.europe-west3.rep.googleapis.com/",
"location": "europe-west3"
},
{
"description": "Regional Endpoint",
"endpointUrl": "https://storage.europe-west9.rep.googleapis.com/",
"location": "europe-west9"
},
{
"description": "Regional Endpoint",
"endpointUrl": "https://storage.me-central2.rep.googleapis.com/",
"location": "me-central2"
}
],
"etag": "\"39393431363637393939313737343036323439\"",
"etag": "\"39393931363036383932333134343736343437\"",
"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"
@ -4075,7 +4085,7 @@
}
}
},
"revision": "20240621",
"revision": "20240625",
"rootUrl": "https://storage.googleapis.com/",
"schemas": {
"AnywhereCache": {

View file

@ -388,9 +388,9 @@ type AnywhereCache struct {
NullFields []string `json:"-"`
}
func (s *AnywhereCache) MarshalJSON() ([]byte, error) {
func (s AnywhereCache) MarshalJSON() ([]byte, error) {
type NoMethod AnywhereCache
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// AnywhereCaches: A list of Anywhere Caches.
@ -420,9 +420,9 @@ type AnywhereCaches struct {
NullFields []string `json:"-"`
}
func (s *AnywhereCaches) MarshalJSON() ([]byte, error) {
func (s AnywhereCaches) MarshalJSON() ([]byte, error) {
type NoMethod AnywhereCaches
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Bucket: A bucket.
@ -548,9 +548,9 @@ type Bucket struct {
NullFields []string `json:"-"`
}
func (s *Bucket) MarshalJSON() ([]byte, error) {
func (s Bucket) MarshalJSON() ([]byte, error) {
type NoMethod Bucket
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketAutoclass: The bucket's Autoclass configuration.
@ -580,9 +580,9 @@ type BucketAutoclass struct {
NullFields []string `json:"-"`
}
func (s *BucketAutoclass) MarshalJSON() ([]byte, error) {
func (s BucketAutoclass) MarshalJSON() ([]byte, error) {
type NoMethod BucketAutoclass
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketBilling: The bucket's billing configuration.
@ -602,9 +602,9 @@ type BucketBilling struct {
NullFields []string `json:"-"`
}
func (s *BucketBilling) MarshalJSON() ([]byte, error) {
func (s BucketBilling) MarshalJSON() ([]byte, error) {
type NoMethod BucketBilling
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type BucketCors struct {
@ -634,9 +634,9 @@ type BucketCors struct {
NullFields []string `json:"-"`
}
func (s *BucketCors) MarshalJSON() ([]byte, error) {
func (s BucketCors) MarshalJSON() ([]byte, error) {
type NoMethod BucketCors
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketCustomPlacementConfig: The bucket's custom placement configuration for
@ -657,9 +657,9 @@ type BucketCustomPlacementConfig struct {
NullFields []string `json:"-"`
}
func (s *BucketCustomPlacementConfig) MarshalJSON() ([]byte, error) {
func (s BucketCustomPlacementConfig) MarshalJSON() ([]byte, error) {
type NoMethod BucketCustomPlacementConfig
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketEncryption: Encryption configuration for a bucket.
@ -680,9 +680,9 @@ type BucketEncryption struct {
NullFields []string `json:"-"`
}
func (s *BucketEncryption) MarshalJSON() ([]byte, error) {
func (s BucketEncryption) MarshalJSON() ([]byte, error) {
type NoMethod BucketEncryption
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketHierarchicalNamespace: The bucket's hierarchical namespace
@ -704,9 +704,9 @@ type BucketHierarchicalNamespace struct {
NullFields []string `json:"-"`
}
func (s *BucketHierarchicalNamespace) MarshalJSON() ([]byte, error) {
func (s BucketHierarchicalNamespace) MarshalJSON() ([]byte, error) {
type NoMethod BucketHierarchicalNamespace
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketIamConfiguration: The bucket's IAM configuration.
@ -736,9 +736,9 @@ type BucketIamConfiguration struct {
NullFields []string `json:"-"`
}
func (s *BucketIamConfiguration) MarshalJSON() ([]byte, error) {
func (s BucketIamConfiguration) MarshalJSON() ([]byte, error) {
type NoMethod BucketIamConfiguration
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketIamConfigurationBucketPolicyOnly: The bucket's uniform bucket-level
@ -768,9 +768,9 @@ type BucketIamConfigurationBucketPolicyOnly struct {
NullFields []string `json:"-"`
}
func (s *BucketIamConfigurationBucketPolicyOnly) MarshalJSON() ([]byte, error) {
func (s BucketIamConfigurationBucketPolicyOnly) MarshalJSON() ([]byte, error) {
type NoMethod BucketIamConfigurationBucketPolicyOnly
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketIamConfigurationUniformBucketLevelAccess: The bucket's uniform
@ -798,9 +798,9 @@ type BucketIamConfigurationUniformBucketLevelAccess struct {
NullFields []string `json:"-"`
}
func (s *BucketIamConfigurationUniformBucketLevelAccess) MarshalJSON() ([]byte, error) {
func (s BucketIamConfigurationUniformBucketLevelAccess) MarshalJSON() ([]byte, error) {
type NoMethod BucketIamConfigurationUniformBucketLevelAccess
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketLifecycle: The bucket's lifecycle configuration. See lifecycle
@ -822,9 +822,9 @@ type BucketLifecycle struct {
NullFields []string `json:"-"`
}
func (s *BucketLifecycle) MarshalJSON() ([]byte, error) {
func (s BucketLifecycle) MarshalJSON() ([]byte, error) {
type NoMethod BucketLifecycle
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type BucketLifecycleRule struct {
@ -845,9 +845,9 @@ type BucketLifecycleRule struct {
NullFields []string `json:"-"`
}
func (s *BucketLifecycleRule) MarshalJSON() ([]byte, error) {
func (s BucketLifecycleRule) MarshalJSON() ([]byte, error) {
type NoMethod BucketLifecycleRule
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketLifecycleRuleAction: The action to take.
@ -871,9 +871,9 @@ type BucketLifecycleRuleAction struct {
NullFields []string `json:"-"`
}
func (s *BucketLifecycleRuleAction) MarshalJSON() ([]byte, error) {
func (s BucketLifecycleRuleAction) MarshalJSON() ([]byte, error) {
type NoMethod BucketLifecycleRuleAction
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketLifecycleRuleCondition: The condition(s) under which the action will
@ -947,9 +947,9 @@ type BucketLifecycleRuleCondition struct {
NullFields []string `json:"-"`
}
func (s *BucketLifecycleRuleCondition) MarshalJSON() ([]byte, error) {
func (s BucketLifecycleRuleCondition) MarshalJSON() ([]byte, error) {
type NoMethod BucketLifecycleRuleCondition
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketLogging: The bucket's logging configuration, which defines the
@ -973,9 +973,9 @@ type BucketLogging struct {
NullFields []string `json:"-"`
}
func (s *BucketLogging) MarshalJSON() ([]byte, error) {
func (s BucketLogging) MarshalJSON() ([]byte, error) {
type NoMethod BucketLogging
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketObjectRetention: The bucket's object retention config.
@ -995,9 +995,9 @@ type BucketObjectRetention struct {
NullFields []string `json:"-"`
}
func (s *BucketObjectRetention) MarshalJSON() ([]byte, error) {
func (s BucketObjectRetention) MarshalJSON() ([]byte, error) {
type NoMethod BucketObjectRetention
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketOwner: The owner of the bucket. This is always the project team's
@ -1020,9 +1020,9 @@ type BucketOwner struct {
NullFields []string `json:"-"`
}
func (s *BucketOwner) MarshalJSON() ([]byte, error) {
func (s BucketOwner) MarshalJSON() ([]byte, error) {
type NoMethod BucketOwner
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketRetentionPolicy: The bucket's retention policy. The retention policy
@ -1058,9 +1058,9 @@ type BucketRetentionPolicy struct {
NullFields []string `json:"-"`
}
func (s *BucketRetentionPolicy) MarshalJSON() ([]byte, error) {
func (s BucketRetentionPolicy) MarshalJSON() ([]byte, error) {
type NoMethod BucketRetentionPolicy
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketSoftDeletePolicy: The bucket's soft delete policy, which defines the
@ -1087,9 +1087,9 @@ type BucketSoftDeletePolicy struct {
NullFields []string `json:"-"`
}
func (s *BucketSoftDeletePolicy) MarshalJSON() ([]byte, error) {
func (s BucketSoftDeletePolicy) MarshalJSON() ([]byte, error) {
type NoMethod BucketSoftDeletePolicy
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketVersioning: The bucket's versioning configuration.
@ -1109,9 +1109,9 @@ type BucketVersioning struct {
NullFields []string `json:"-"`
}
func (s *BucketVersioning) MarshalJSON() ([]byte, error) {
func (s BucketVersioning) MarshalJSON() ([]byte, error) {
type NoMethod BucketVersioning
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketWebsite: The bucket's website configuration, controlling how the
@ -1140,9 +1140,9 @@ type BucketWebsite struct {
NullFields []string `json:"-"`
}
func (s *BucketWebsite) MarshalJSON() ([]byte, error) {
func (s BucketWebsite) MarshalJSON() ([]byte, error) {
type NoMethod BucketWebsite
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketAccessControl: An access-control entry.
@ -1199,9 +1199,9 @@ type BucketAccessControl struct {
NullFields []string `json:"-"`
}
func (s *BucketAccessControl) MarshalJSON() ([]byte, error) {
func (s BucketAccessControl) MarshalJSON() ([]byte, error) {
type NoMethod BucketAccessControl
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketAccessControlProjectTeam: The project team associated with the entity,
@ -1224,9 +1224,9 @@ type BucketAccessControlProjectTeam struct {
NullFields []string `json:"-"`
}
func (s *BucketAccessControlProjectTeam) MarshalJSON() ([]byte, error) {
func (s BucketAccessControlProjectTeam) MarshalJSON() ([]byte, error) {
type NoMethod BucketAccessControlProjectTeam
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketAccessControls: An access-control list.
@ -1252,9 +1252,9 @@ type BucketAccessControls struct {
NullFields []string `json:"-"`
}
func (s *BucketAccessControls) MarshalJSON() ([]byte, error) {
func (s BucketAccessControls) MarshalJSON() ([]byte, error) {
type NoMethod BucketAccessControls
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketStorageLayout: The storage layout configuration of a bucket.
@ -1289,9 +1289,9 @@ type BucketStorageLayout struct {
NullFields []string `json:"-"`
}
func (s *BucketStorageLayout) MarshalJSON() ([]byte, error) {
func (s BucketStorageLayout) MarshalJSON() ([]byte, error) {
type NoMethod BucketStorageLayout
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketStorageLayoutCustomPlacementConfig: The bucket's custom placement
@ -1312,9 +1312,9 @@ type BucketStorageLayoutCustomPlacementConfig struct {
NullFields []string `json:"-"`
}
func (s *BucketStorageLayoutCustomPlacementConfig) MarshalJSON() ([]byte, error) {
func (s BucketStorageLayoutCustomPlacementConfig) MarshalJSON() ([]byte, error) {
type NoMethod BucketStorageLayoutCustomPlacementConfig
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BucketStorageLayoutHierarchicalNamespace: The bucket's hierarchical
@ -1336,9 +1336,9 @@ type BucketStorageLayoutHierarchicalNamespace struct {
NullFields []string `json:"-"`
}
func (s *BucketStorageLayoutHierarchicalNamespace) MarshalJSON() ([]byte, error) {
func (s BucketStorageLayoutHierarchicalNamespace) MarshalJSON() ([]byte, error) {
type NoMethod BucketStorageLayoutHierarchicalNamespace
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Buckets: A list of buckets.
@ -1368,9 +1368,9 @@ type Buckets struct {
NullFields []string `json:"-"`
}
func (s *Buckets) MarshalJSON() ([]byte, error) {
func (s Buckets) MarshalJSON() ([]byte, error) {
type NoMethod Buckets
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BulkRestoreObjectsRequest: A bulk restore objects request.
@ -1409,9 +1409,9 @@ type BulkRestoreObjectsRequest struct {
NullFields []string `json:"-"`
}
func (s *BulkRestoreObjectsRequest) MarshalJSON() ([]byte, error) {
func (s BulkRestoreObjectsRequest) MarshalJSON() ([]byte, error) {
type NoMethod BulkRestoreObjectsRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Channel: An notification channel used to watch for resource changes.
@ -1457,9 +1457,9 @@ type Channel struct {
NullFields []string `json:"-"`
}
func (s *Channel) MarshalJSON() ([]byte, error) {
func (s Channel) MarshalJSON() ([]byte, error) {
type NoMethod Channel
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ComposeRequest: A Compose request.
@ -1484,9 +1484,9 @@ type ComposeRequest struct {
NullFields []string `json:"-"`
}
func (s *ComposeRequest) MarshalJSON() ([]byte, error) {
func (s ComposeRequest) MarshalJSON() ([]byte, error) {
type NoMethod ComposeRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type ComposeRequestSourceObjects struct {
@ -1511,9 +1511,9 @@ type ComposeRequestSourceObjects struct {
NullFields []string `json:"-"`
}
func (s *ComposeRequestSourceObjects) MarshalJSON() ([]byte, error) {
func (s ComposeRequestSourceObjects) MarshalJSON() ([]byte, error) {
type NoMethod ComposeRequestSourceObjects
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ComposeRequestSourceObjectsObjectPreconditions: Conditions that must be met
@ -1537,9 +1537,9 @@ type ComposeRequestSourceObjectsObjectPreconditions struct {
NullFields []string `json:"-"`
}
func (s *ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON() ([]byte, error) {
func (s ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON() ([]byte, error) {
type NoMethod ComposeRequestSourceObjectsObjectPreconditions
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Expr: Represents an expression text. Example: title: "User account presence"
@ -1573,9 +1573,9 @@ type Expr struct {
NullFields []string `json:"-"`
}
func (s *Expr) MarshalJSON() ([]byte, error) {
func (s Expr) MarshalJSON() ([]byte, error) {
type NoMethod Expr
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Folder: A folder. Only available in buckets with hierarchical namespace
@ -1618,9 +1618,9 @@ type Folder struct {
NullFields []string `json:"-"`
}
func (s *Folder) MarshalJSON() ([]byte, error) {
func (s Folder) MarshalJSON() ([]byte, error) {
type NoMethod Folder
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// FolderPendingRenameInfo: Only present if the folder is part of an ongoing
@ -1642,9 +1642,9 @@ type FolderPendingRenameInfo struct {
NullFields []string `json:"-"`
}
func (s *FolderPendingRenameInfo) MarshalJSON() ([]byte, error) {
func (s FolderPendingRenameInfo) MarshalJSON() ([]byte, error) {
type NoMethod FolderPendingRenameInfo
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Folders: A list of folders.
@ -1674,9 +1674,9 @@ type Folders struct {
NullFields []string `json:"-"`
}
func (s *Folders) MarshalJSON() ([]byte, error) {
func (s Folders) MarshalJSON() ([]byte, error) {
type NoMethod Folders
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// GoogleLongrunningListOperationsResponse: The response message for
@ -1708,9 +1708,9 @@ type GoogleLongrunningListOperationsResponse struct {
NullFields []string `json:"-"`
}
func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
func (s GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleLongrunningListOperationsResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// GoogleLongrunningOperation: This resource represents a long-running
@ -1760,9 +1760,9 @@ type GoogleLongrunningOperation struct {
NullFields []string `json:"-"`
}
func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
func (s GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
type NoMethod GoogleLongrunningOperation
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// GoogleRpcStatus: The "Status" type defines a logical error model that is
@ -1792,9 +1792,9 @@ type GoogleRpcStatus struct {
NullFields []string `json:"-"`
}
func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) {
type NoMethod GoogleRpcStatus
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// HmacKey: JSON template to produce a JSON-style HMAC Key resource for Create
@ -1823,9 +1823,9 @@ type HmacKey struct {
NullFields []string `json:"-"`
}
func (s *HmacKey) MarshalJSON() ([]byte, error) {
func (s HmacKey) MarshalJSON() ([]byte, error) {
type NoMethod HmacKey
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// HmacKeyMetadata: JSON template to produce a JSON-style HMAC Key metadata
@ -1871,9 +1871,9 @@ type HmacKeyMetadata struct {
NullFields []string `json:"-"`
}
func (s *HmacKeyMetadata) MarshalJSON() ([]byte, error) {
func (s HmacKeyMetadata) MarshalJSON() ([]byte, error) {
type NoMethod HmacKeyMetadata
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// HmacKeysMetadata: A list of hmacKeys.
@ -1903,9 +1903,9 @@ type HmacKeysMetadata struct {
NullFields []string `json:"-"`
}
func (s *HmacKeysMetadata) MarshalJSON() ([]byte, error) {
func (s HmacKeysMetadata) MarshalJSON() ([]byte, error) {
type NoMethod HmacKeysMetadata
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ManagedFolder: A managed folder.
@ -1947,9 +1947,9 @@ type ManagedFolder struct {
NullFields []string `json:"-"`
}
func (s *ManagedFolder) MarshalJSON() ([]byte, error) {
func (s ManagedFolder) MarshalJSON() ([]byte, error) {
type NoMethod ManagedFolder
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ManagedFolders: A list of managed folders.
@ -1979,9 +1979,9 @@ type ManagedFolders struct {
NullFields []string `json:"-"`
}
func (s *ManagedFolders) MarshalJSON() ([]byte, error) {
func (s ManagedFolders) MarshalJSON() ([]byte, error) {
type NoMethod ManagedFolders
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Notification: A subscription to receive Google PubSub notifications.
@ -2026,9 +2026,9 @@ type Notification struct {
NullFields []string `json:"-"`
}
func (s *Notification) MarshalJSON() ([]byte, error) {
func (s Notification) MarshalJSON() ([]byte, error) {
type NoMethod Notification
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Notifications: A list of notification subscriptions.
@ -2054,9 +2054,9 @@ type Notifications struct {
NullFields []string `json:"-"`
}
func (s *Notifications) MarshalJSON() ([]byte, error) {
func (s Notifications) MarshalJSON() ([]byte, error) {
type NoMethod Notifications
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Object: An object.
@ -2196,9 +2196,9 @@ type Object struct {
NullFields []string `json:"-"`
}
func (s *Object) MarshalJSON() ([]byte, error) {
func (s Object) MarshalJSON() ([]byte, error) {
type NoMethod Object
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ObjectCustomerEncryption: Metadata of customer-supplied encryption key, if
@ -2221,9 +2221,9 @@ type ObjectCustomerEncryption struct {
NullFields []string `json:"-"`
}
func (s *ObjectCustomerEncryption) MarshalJSON() ([]byte, error) {
func (s ObjectCustomerEncryption) MarshalJSON() ([]byte, error) {
type NoMethod ObjectCustomerEncryption
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ObjectOwner: The owner of the object. This will always be the uploader of
@ -2246,9 +2246,9 @@ type ObjectOwner struct {
NullFields []string `json:"-"`
}
func (s *ObjectOwner) MarshalJSON() ([]byte, error) {
func (s ObjectOwner) MarshalJSON() ([]byte, error) {
type NoMethod ObjectOwner
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ObjectRetention: A collection of object level retention parameters.
@ -2271,9 +2271,9 @@ type ObjectRetention struct {
NullFields []string `json:"-"`
}
func (s *ObjectRetention) MarshalJSON() ([]byte, error) {
func (s ObjectRetention) MarshalJSON() ([]byte, error) {
type NoMethod ObjectRetention
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ObjectAccessControl: An access-control entry.
@ -2334,9 +2334,9 @@ type ObjectAccessControl struct {
NullFields []string `json:"-"`
}
func (s *ObjectAccessControl) MarshalJSON() ([]byte, error) {
func (s ObjectAccessControl) MarshalJSON() ([]byte, error) {
type NoMethod ObjectAccessControl
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ObjectAccessControlProjectTeam: The project team associated with the entity,
@ -2359,9 +2359,9 @@ type ObjectAccessControlProjectTeam struct {
NullFields []string `json:"-"`
}
func (s *ObjectAccessControlProjectTeam) MarshalJSON() ([]byte, error) {
func (s ObjectAccessControlProjectTeam) MarshalJSON() ([]byte, error) {
type NoMethod ObjectAccessControlProjectTeam
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ObjectAccessControls: An access-control list.
@ -2387,9 +2387,9 @@ type ObjectAccessControls struct {
NullFields []string `json:"-"`
}
func (s *ObjectAccessControls) MarshalJSON() ([]byte, error) {
func (s ObjectAccessControls) MarshalJSON() ([]byte, error) {
type NoMethod ObjectAccessControls
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Objects: A list of objects.
@ -2422,9 +2422,9 @@ type Objects struct {
NullFields []string `json:"-"`
}
func (s *Objects) MarshalJSON() ([]byte, error) {
func (s Objects) MarshalJSON() ([]byte, error) {
type NoMethod Objects
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Policy: A bucket/object/managedFolder IAM policy.
@ -2463,9 +2463,9 @@ type Policy struct {
NullFields []string `json:"-"`
}
func (s *Policy) MarshalJSON() ([]byte, error) {
func (s Policy) MarshalJSON() ([]byte, error) {
type NoMethod Policy
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type PolicyBindings struct {
@ -2535,9 +2535,9 @@ type PolicyBindings struct {
NullFields []string `json:"-"`
}
func (s *PolicyBindings) MarshalJSON() ([]byte, error) {
func (s PolicyBindings) MarshalJSON() ([]byte, error) {
type NoMethod PolicyBindings
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// RewriteResponse: A rewrite response.
@ -2577,9 +2577,9 @@ type RewriteResponse struct {
NullFields []string `json:"-"`
}
func (s *RewriteResponse) MarshalJSON() ([]byte, error) {
func (s RewriteResponse) MarshalJSON() ([]byte, error) {
type NoMethod RewriteResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ServiceAccount: A subscription to receive Google PubSub notifications.
@ -2605,9 +2605,9 @@ type ServiceAccount struct {
NullFields []string `json:"-"`
}
func (s *ServiceAccount) MarshalJSON() ([]byte, error) {
func (s ServiceAccount) MarshalJSON() ([]byte, error) {
type NoMethod ServiceAccount
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// TestIamPermissionsResponse: A
@ -2656,9 +2656,9 @@ type TestIamPermissionsResponse struct {
NullFields []string `json:"-"`
}
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
type NoMethod TestIamPermissionsResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
type AnywhereCachesDisableCall struct {

View file

@ -231,6 +231,7 @@ func dialPoolNewAuth(ctx context.Context, secure bool, poolSize int, ds *interna
GRPCDialOpts: ds.GRPCDialOpts,
PoolSize: poolSize,
Credentials: creds,
APIKey: ds.APIKey,
DetectOpts: &credentials.DetectOptions{
Scopes: ds.Scopes,
Audience: aud,

View file

@ -90,21 +90,6 @@ func Pairs(kv ...string) MD {
return md
}
// String implements the Stringer interface for pretty-printing a MD.
// Ordering of the values is non-deterministic as it ranges over a map.
func (md MD) String() string {
var sb strings.Builder
fmt.Fprintf(&sb, "MD{")
for k, v := range md {
if sb.Len() > 3 {
fmt.Fprintf(&sb, ", ")
}
fmt.Fprintf(&sb, "%s=[%s]", k, strings.Join(v, ", "))
}
fmt.Fprintf(&sb, "}")
return sb.String()
}
// Len returns the number of items in md.
func (md MD) Len() int {
return len(md)

View file

@ -19,4 +19,4 @@
package grpc
// Version is the current grpc version.
const Version = "1.64.0"
const Version = "1.64.1"