mirror of
https://github.com/restic/restic.git
synced 2025-12-24 07:17:32 +00:00
Update vendored dependencies
This commit is contained in:
25
vendor/google.golang.org/api/storage/v1/storage-api.json
generated
vendored
25
vendor/google.golang.org/api/storage/v1/storage-api.json
generated
vendored
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/dkoYxqfGO2jaG60VA5h0K8BOG4k\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/aAU6-GJtzQTwC546w_DsCPIRIUA\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "storage:v1",
|
||||
"name": "storage",
|
||||
"version": "v1",
|
||||
"revision": "20170824",
|
||||
"revision": "20170915",
|
||||
"title": "Cloud Storage JSON API",
|
||||
"description": "Stores and retrieves potentially large, immutable data objects.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -1474,6 +1474,11 @@
|
||||
"Omit owner, acl and defaultObjectAcl properties."
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"userProject": {
|
||||
"type": "string",
|
||||
"description": "The project to be billed for this request, for Requester Pays buckets.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -1533,6 +1538,11 @@
|
||||
"Omit owner, acl and defaultObjectAcl properties."
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"userProject": {
|
||||
"type": "string",
|
||||
"description": "The project to be billed for this request, for Requester Pays buckets.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -3116,7 +3126,7 @@
|
||||
"id": "storage.objects.patch",
|
||||
"path": "b/{bucket}/o/{object}",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Patches an object's metadata.",
|
||||
"description": "Updates an object's metadata. This method supports patch semantics.",
|
||||
"parameters": {
|
||||
"bucket": {
|
||||
"type": "string",
|
||||
@@ -3213,9 +3223,7 @@
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/devstorage.full_control"
|
||||
],
|
||||
"supportsMediaDownload": true,
|
||||
"useMediaDownloadService": true
|
||||
]
|
||||
},
|
||||
"rewrite": {
|
||||
"id": "storage.objects.rewrite",
|
||||
@@ -3674,6 +3682,11 @@
|
||||
"description": "Project ID",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"userProject": {
|
||||
"type": "string",
|
||||
"description": "The project to be billed for this request, for Requester Pays buckets.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
|
||||
67
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
67
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
@@ -3274,6 +3274,13 @@ func (c *BucketsInsertCall) Projection(projection string) *BucketsInsertCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// UserProject sets the optional parameter "userProject": The project to
|
||||
// be billed for this request, for Requester Pays buckets.
|
||||
func (c *BucketsInsertCall) UserProject(userProject string) *BucketsInsertCall {
|
||||
c.urlParams_.Set("userProject", userProject)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -3422,6 +3429,11 @@ func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error) {
|
||||
// ],
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "userProject": {
|
||||
// "description": "The project to be billed for this request, for Requester Pays buckets.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "b",
|
||||
@@ -3491,6 +3503,13 @@ func (c *BucketsListCall) Projection(projection string) *BucketsListCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// UserProject sets the optional parameter "userProject": The project to
|
||||
// be billed for this request, for Requester Pays buckets.
|
||||
func (c *BucketsListCall) UserProject(userProject string) *BucketsListCall {
|
||||
c.urlParams_.Set("userProject", userProject)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -3625,6 +3644,11 @@ func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error) {
|
||||
// ],
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "userProject": {
|
||||
// "description": "The project to be billed for this request, for Requester Pays buckets.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "b",
|
||||
@@ -9164,7 +9188,8 @@ type ObjectsPatchCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Patch: Patches an object's metadata.
|
||||
// Patch: Updates an object's metadata. This method supports patch
|
||||
// semantics.
|
||||
func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall {
|
||||
c := &ObjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
@@ -9263,9 +9288,9 @@ func (c *ObjectsPatchCall) Fields(s ...googleapi.Field) *ObjectsPatchCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do and Download
|
||||
// methods. Any pending HTTP request will be aborted if the provided
|
||||
// context is canceled.
|
||||
// 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 *ObjectsPatchCall) Context(ctx context.Context) *ObjectsPatchCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
@@ -9304,22 +9329,6 @@ func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Download fetches the API endpoint's "media" value, instead of the normal
|
||||
// API response value. If the returned error is nil, the Response is guaranteed to
|
||||
// have a 2xx status code. Callers must close the Response.Body as usual.
|
||||
func (c *ObjectsPatchCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("media")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := googleapi.CheckMediaResponse(res); err != nil {
|
||||
res.Body.Close()
|
||||
return nil, err
|
||||
}
|
||||
return res, nil
|
||||
}
|
||||
|
||||
// Do executes the "storage.objects.patch" call.
|
||||
// Exactly one of *Object or error will be non-nil. Any non-2xx status
|
||||
// code is an error. Response headers are in either
|
||||
@@ -9358,7 +9367,7 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) {
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Patches an object's metadata.",
|
||||
// "description": "Updates an object's metadata. This method supports patch semantics.",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "storage.objects.patch",
|
||||
// "parameterOrder": [
|
||||
@@ -9458,9 +9467,7 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) {
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/devstorage.full_control"
|
||||
// ],
|
||||
// "supportsMediaDownload": true,
|
||||
// "useMediaDownloadService": true
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
@@ -10833,6 +10840,13 @@ func (r *ProjectsServiceAccountService) Get(projectId string) *ProjectsServiceAc
|
||||
return c
|
||||
}
|
||||
|
||||
// UserProject sets the optional parameter "userProject": The project to
|
||||
// be billed for this request, for Requester Pays buckets.
|
||||
func (c *ProjectsServiceAccountGetCall) UserProject(userProject string) *ProjectsServiceAccountGetCall {
|
||||
c.urlParams_.Set("userProject", userProject)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -10939,6 +10953,11 @@ func (c *ProjectsServiceAccountGetCall) Do(opts ...googleapi.CallOption) (*Servi
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "userProject": {
|
||||
// "description": "The project to be billed for this request, for Requester Pays buckets.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "projects/{projectId}/serviceAccount",
|
||||
|
||||
Reference in New Issue
Block a user