Update dependencies pre release
This commit is contained in:
parent
f7af730b50
commit
b83f7ac06b
126 changed files with 5782 additions and 19795 deletions
24
vendor/google.golang.org/api/drive/v2/drive-api.json
generated
vendored
24
vendor/google.golang.org/api/drive/v2/drive-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/neft8qaFpEH--ZoPk-8DTolbo7o\"",
|
||||
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/Bxo7TXXOxzhoC81JSCcKcp551FA\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "drive:v2",
|
||||
"name": "drive",
|
||||
"version": "v2",
|
||||
"revision": "20160721",
|
||||
"revision": "20161018",
|
||||
"title": "Drive API",
|
||||
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -1476,7 +1476,7 @@
|
|||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified."
|
||||
"description": "The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type anyone, in which case both id and value are ignored."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
|
@ -1515,7 +1515,7 @@
|
|||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"description": "The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified."
|
||||
"description": "The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type anyone, in which case both id and value are ignored."
|
||||
},
|
||||
"withLink": {
|
||||
"type": "boolean",
|
||||
|
@ -1732,6 +1732,10 @@
|
|||
"description": "This is always drive#revisionList.",
|
||||
"default": "drive#revisionList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "The page token for the next page of revisions. This field will be absent if the end of the revisions list has been reached. If the token is rejected for any reason, it should be discarded and pagination should be restarted from the first page of results."
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "A link back to this list."
|
||||
|
@ -4238,6 +4242,18 @@
|
|||
"description": "The ID of the file.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of revisions to return.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Page token for revisions. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
|
|
475
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
475
vendor/google.golang.org/api/drive/v2/drive-gen.go
generated
vendored
|
@ -357,12 +357,21 @@ type About struct {
|
|||
// 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. "AdditionalRoleInfo") 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 *About) MarshalJSON() ([]byte, error) {
|
||||
type noMethod About
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AboutAdditionalRoleInfo struct {
|
||||
|
@ -379,12 +388,20 @@ type AboutAdditionalRoleInfo struct {
|
|||
// 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. "RoleSets") 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 *AboutAdditionalRoleInfo) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutAdditionalRoleInfo
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AboutAdditionalRoleInfoRoleSets struct {
|
||||
|
@ -402,12 +419,21 @@ type AboutAdditionalRoleInfoRoleSets struct {
|
|||
// 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. "AdditionalRoles") 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 *AboutAdditionalRoleInfoRoleSets) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutAdditionalRoleInfoRoleSets
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AboutExportFormats struct {
|
||||
|
@ -424,12 +450,20 @@ type AboutExportFormats struct {
|
|||
// 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. "Source") 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 *AboutExportFormats) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutExportFormats
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AboutFeatures struct {
|
||||
|
@ -447,12 +481,20 @@ type AboutFeatures struct {
|
|||
// 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. "FeatureName") 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 *AboutFeatures) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutFeatures
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AboutImportFormats struct {
|
||||
|
@ -469,12 +511,20 @@ type AboutImportFormats struct {
|
|||
// 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. "Source") 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 *AboutImportFormats) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutImportFormats
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AboutMaxUploadSizes struct {
|
||||
|
@ -491,12 +541,20 @@ type AboutMaxUploadSizes struct {
|
|||
// 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. "Size") 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 *AboutMaxUploadSizes) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutMaxUploadSizes
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AboutQuotaBytesByService struct {
|
||||
|
@ -513,12 +571,20 @@ type AboutQuotaBytesByService struct {
|
|||
// 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. "BytesUsed") 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 *AboutQuotaBytesByService) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutQuotaBytesByService
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// App: The apps resource provides a list of the apps that a user has
|
||||
|
@ -618,12 +684,20 @@ type App struct {
|
|||
// 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. "Authorized") 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 *App) MarshalJSON() ([]byte, error) {
|
||||
type noMethod App
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type AppIcons struct {
|
||||
|
@ -647,12 +721,20 @@ type AppIcons struct {
|
|||
// 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. "Category") 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 *AppIcons) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AppIcons
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// AppList: A list of third-party applications which the user has
|
||||
|
@ -685,12 +767,20 @@ type AppList struct {
|
|||
// 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. "DefaultAppIds") 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 *AppList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AppList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Change: Representation of a change to a file.
|
||||
|
@ -728,12 +818,20 @@ type Change struct {
|
|||
// 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. "Deleted") 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 *Change) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Change
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ChangeList: A list of changes for a user.
|
||||
|
@ -770,12 +868,20 @@ type ChangeList struct {
|
|||
// 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. "Etag") 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 *ChangeList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ChangeList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Channel: An notification channel used to watch for resource changes.
|
||||
|
@ -828,12 +934,20 @@ type Channel struct {
|
|||
// 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. "Address") 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 *Channel) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Channel
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ChildList: A list of children of a file.
|
||||
|
@ -867,12 +981,20 @@ type ChildList struct {
|
|||
// 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. "Etag") 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 *ChildList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ChildList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ChildReference: A reference to a folder's child.
|
||||
|
@ -900,12 +1022,20 @@ type ChildReference struct {
|
|||
// 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. "ChildLink") 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 *ChildReference) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ChildReference
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Comment: A comment on a file in Google Drive.
|
||||
|
@ -976,12 +1106,20 @@ type Comment struct {
|
|||
// 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. "Anchor") 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 *Comment) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Comment
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CommentContext: The context of the file which is being commented on.
|
||||
|
@ -1001,12 +1139,20 @@ type CommentContext struct {
|
|||
// 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. "Type") 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 *CommentContext) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentContext
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CommentList: A list of comments on a file in Google Drive.
|
||||
|
@ -1037,12 +1183,20 @@ type CommentList struct {
|
|||
// 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 *CommentList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CommentReply: A comment on a file in Google Drive.
|
||||
|
@ -1094,12 +1248,20 @@ type CommentReply struct {
|
|||
// 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. "Author") 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 *CommentReply) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentReply
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// CommentReplyList: A list of replies to a comment on a file in Google
|
||||
|
@ -1131,12 +1293,20 @@ type CommentReplyList struct {
|
|||
// 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 *CommentReplyList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentReplyList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// File: The metadata for a file.
|
||||
|
@ -1385,12 +1555,20 @@ type File struct {
|
|||
// 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. "AlternateLink") 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 *File) MarshalJSON() ([]byte, error) {
|
||||
type noMethod File
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FileImageMediaMetadata: Metadata about image media. This will only be
|
||||
|
@ -1470,12 +1648,20 @@ type FileImageMediaMetadata struct {
|
|||
// 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. "Aperture") 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 *FileImageMediaMetadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileImageMediaMetadata
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FileImageMediaMetadataLocation: Geographic location information
|
||||
|
@ -1497,12 +1683,20 @@ type FileImageMediaMetadataLocation struct {
|
|||
// 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. "Altitude") 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 *FileImageMediaMetadataLocation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileImageMediaMetadataLocation
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FileIndexableText: Indexable text attributes for the file (can only
|
||||
|
@ -1518,12 +1712,20 @@ type FileIndexableText struct {
|
|||
// 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. "Text") 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 *FileIndexableText) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileIndexableText
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FileLabels: A group of labels for the file.
|
||||
|
@ -1553,12 +1755,20 @@ type FileLabels struct {
|
|||
// 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. "Hidden") 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 *FileLabels) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileLabels
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FileThumbnail: Thumbnail for the file. Only accepted on upload and
|
||||
|
@ -1578,12 +1788,20 @@ type FileThumbnail struct {
|
|||
// 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. "Image") 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 *FileThumbnail) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileThumbnail
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FileVideoMediaMetadata: Metadata about video media. This will only be
|
||||
|
@ -1605,12 +1823,21 @@ type FileVideoMediaMetadata struct {
|
|||
// 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. "DurationMillis") 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 *FileVideoMediaMetadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileVideoMediaMetadata
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// FileList: A list of files.
|
||||
|
@ -1644,12 +1871,20 @@ type FileList struct {
|
|||
// 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. "Etag") 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 *FileList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// GeneratedIds: A list of generated IDs which can be provided in insert
|
||||
|
@ -1676,12 +1911,20 @@ type GeneratedIds struct {
|
|||
// 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. "Ids") 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 *GeneratedIds) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GeneratedIds
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ParentList: A list of a file's parents.
|
||||
|
@ -1709,12 +1952,20 @@ type ParentList struct {
|
|||
// 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. "Etag") 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 *ParentList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ParentList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ParentReference: A reference to a file's parent.
|
||||
|
@ -1745,12 +1996,20 @@ type ParentReference struct {
|
|||
// 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. "Id") 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 *ParentReference) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ParentReference
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Permission: A permission for a file.
|
||||
|
@ -1782,7 +2041,8 @@ type Permission struct {
|
|||
// Id: The ID of the user this permission refers to, and identical to
|
||||
// the permissionId in the About and Files resources. When making a
|
||||
// drive.permissions.insert request, exactly one of the id or value
|
||||
// fields must be specified.
|
||||
// fields must be specified unless the permission type anyone, in which
|
||||
// case both id and value are ignored.
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
// Kind: This is always drive#permission.
|
||||
|
@ -1813,7 +2073,8 @@ type Permission struct {
|
|||
// Value: The email address or domain name for the entity. This is used
|
||||
// during inserts and is not populated in responses. When making a
|
||||
// drive.permissions.insert request, exactly one of the id or value
|
||||
// fields must be specified.
|
||||
// fields must be specified unless the permission type anyone, in which
|
||||
// case both id and value are ignored.
|
||||
Value string `json:"value,omitempty"`
|
||||
|
||||
// WithLink: Whether the link is required for this permission.
|
||||
|
@ -1830,12 +2091,21 @@ type Permission struct {
|
|||
// 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. "AdditionalRoles") 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 *Permission) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Permission
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// PermissionId: An ID for a user or group as seen in Permission items.
|
||||
|
@ -1857,12 +2127,20 @@ type PermissionId struct {
|
|||
// 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. "Id") 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 *PermissionId) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PermissionId
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// PermissionList: A list of permissions associated with a file.
|
||||
|
@ -1890,12 +2168,20 @@ type PermissionList struct {
|
|||
// 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. "Etag") 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 *PermissionList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PermissionList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Property: A key-value pair attached to a file that is either public
|
||||
|
@ -1936,12 +2222,20 @@ type Property struct {
|
|||
// 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. "Etag") 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 *Property) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Property
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// PropertyList: A collection of properties, key-value pairs that are
|
||||
|
@ -1970,12 +2264,20 @@ type PropertyList struct {
|
|||
// 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. "Etag") 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 *PropertyList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PropertyList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Revision: A revision of a file.
|
||||
|
@ -2060,12 +2362,20 @@ type Revision struct {
|
|||
// 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. "DownloadUrl") 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 *Revision) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Revision
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// RevisionList: A list of revisions of a file.
|
||||
|
@ -2079,6 +2389,13 @@ type RevisionList struct {
|
|||
// Kind: This is always drive#revisionList.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// NextPageToken: The page token for the next page of revisions. This
|
||||
// field will be absent if the end of the revisions list has been
|
||||
// reached. If the token is rejected for any reason, it should be
|
||||
// discarded and pagination should be restarted from the first page of
|
||||
// results.
|
||||
NextPageToken string `json:"nextPageToken,omitempty"`
|
||||
|
||||
// SelfLink: A link back to this list.
|
||||
SelfLink string `json:"selfLink,omitempty"`
|
||||
|
||||
|
@ -2093,12 +2410,20 @@ type RevisionList struct {
|
|||
// 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. "Etag") 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 *RevisionList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod RevisionList
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// User: Information about a Drive user.
|
||||
|
@ -2129,12 +2454,20 @@ type User struct {
|
|||
// 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. "DisplayName") 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 *User) MarshalJSON() ([]byte, error) {
|
||||
type noMethod User
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// UserPicture: The user's profile picture.
|
||||
|
@ -2149,12 +2482,20 @@ type UserPicture struct {
|
|||
// 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. "Url") 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 *UserPicture) MarshalJSON() ([]byte, error) {
|
||||
type noMethod UserPicture
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "drive.about.get":
|
||||
|
@ -11137,6 +11478,21 @@ func (r *RevisionsService) List(fileId string) *RevisionsListCall {
|
|||
return c
|
||||
}
|
||||
|
||||
// MaxResults sets the optional parameter "maxResults": Maximum number
|
||||
// of revisions to return.
|
||||
func (c *RevisionsListCall) MaxResults(maxResults int64) *RevisionsListCall {
|
||||
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": Page token for
|
||||
// revisions. To get the next page of results, set this parameter to the
|
||||
// value of "nextPageToken" from the previous response.
|
||||
func (c *RevisionsListCall) PageToken(pageToken string) *RevisionsListCall {
|
||||
c.urlParams_.Set("pageToken", pageToken)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
|
@ -11231,6 +11587,18 @@ func (c *RevisionsListCall) Do(opts ...googleapi.CallOption) (*RevisionList, err
|
|||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "maxResults": {
|
||||
// "description": "Maximum number of revisions to return.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "minimum": "1",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "Page token for revisions. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/revisions",
|
||||
|
@ -11250,6 +11618,27 @@ func (c *RevisionsListCall) Do(opts ...googleapi.CallOption) (*RevisionList, err
|
|||
|
||||
}
|
||||
|
||||
// Pages invokes f for each page of results.
|
||||
// A non-nil error returned from f will halt the iteration.
|
||||
// The provided context supersedes any context provided to the Context method.
|
||||
func (c *RevisionsListCall) Pages(ctx context.Context, f func(*RevisionList) error) error {
|
||||
c.ctx_ = ctx
|
||||
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
|
||||
for {
|
||||
x, err := c.Do()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := f(x); err != nil {
|
||||
return err
|
||||
}
|
||||
if x.NextPageToken == "" {
|
||||
return nil
|
||||
}
|
||||
c.PageToken(x.NextPageToken)
|
||||
}
|
||||
}
|
||||
|
||||
// method id "drive.revisions.patch":
|
||||
|
||||
type RevisionsPatchCall struct {
|
||||
|
|
28
vendor/google.golang.org/api/gensupport/json.go
generated
vendored
28
vendor/google.golang.org/api/gensupport/json.go
generated
vendored
|
@ -12,13 +12,13 @@ import (
|
|||
)
|
||||
|
||||
// MarshalJSON returns a JSON encoding of schema containing only selected fields.
|
||||
// A field is selected if:
|
||||
// * it has a non-empty value, or
|
||||
// * its field name is present in forceSendFields, and
|
||||
// * it is not a nil pointer or nil interface.
|
||||
// A field is selected if any of the following is true:
|
||||
// * it has a non-empty value
|
||||
// * its field name is present in forceSendFields and it is not a nil pointer or nil interface
|
||||
// * its field name is present in nullFields.
|
||||
// The JSON key for each selected field is taken from the field's json: struct tag.
|
||||
func MarshalJSON(schema interface{}, forceSendFields []string) ([]byte, error) {
|
||||
if len(forceSendFields) == 0 {
|
||||
func MarshalJSON(schema interface{}, forceSendFields, nullFields []string) ([]byte, error) {
|
||||
if len(forceSendFields) == 0 && len(nullFields) == 0 {
|
||||
return json.Marshal(schema)
|
||||
}
|
||||
|
||||
|
@ -26,15 +26,19 @@ func MarshalJSON(schema interface{}, forceSendFields []string) ([]byte, error) {
|
|||
for _, f := range forceSendFields {
|
||||
mustInclude[f] = struct{}{}
|
||||
}
|
||||
useNull := make(map[string]struct{})
|
||||
for _, f := range nullFields {
|
||||
useNull[f] = struct{}{}
|
||||
}
|
||||
|
||||
dataMap, err := schemaToMap(schema, mustInclude)
|
||||
dataMap, err := schemaToMap(schema, mustInclude, useNull)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return json.Marshal(dataMap)
|
||||
}
|
||||
|
||||
func schemaToMap(schema interface{}, mustInclude map[string]struct{}) (map[string]interface{}, error) {
|
||||
func schemaToMap(schema interface{}, mustInclude, useNull map[string]struct{}) (map[string]interface{}, error) {
|
||||
m := make(map[string]interface{})
|
||||
s := reflect.ValueOf(schema)
|
||||
st := s.Type()
|
||||
|
@ -54,6 +58,14 @@ func schemaToMap(schema interface{}, mustInclude map[string]struct{}) (map[strin
|
|||
|
||||
v := s.Field(i)
|
||||
f := st.Field(i)
|
||||
|
||||
if _, ok := useNull[f.Name]; ok {
|
||||
if !isEmptyValue(v) {
|
||||
return nil, fmt.Errorf("field %q in NullFields has non-empty value", f.Name)
|
||||
}
|
||||
m[tag.apiName] = nil
|
||||
continue
|
||||
}
|
||||
if !includeField(v, f, mustInclude) {
|
||||
continue
|
||||
}
|
||||
|
|
2
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
2
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
|
@ -50,7 +50,7 @@ const (
|
|||
// UserAgent is the header string used to identify this package.
|
||||
UserAgent = "google-api-go-client/" + Version
|
||||
|
||||
// The default chunk size to use for resumable uplods if not specified by the user.
|
||||
// The default chunk size to use for resumable uploads if not specified by the user.
|
||||
DefaultUploadChunkSize = 8 * 1024 * 1024
|
||||
|
||||
// The minimum chunk size that can be used for resumable uploads. All
|
||||
|
|
73
vendor/google.golang.org/api/storage/v1/storage-api.json
generated
vendored
73
vendor/google.golang.org/api/storage/v1/storage-api.json
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/gtcWNCypj7VTDxrk1rvvuniNHZo\"",
|
||||
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/G3kZz5Dv92Y-2NZwaNrcr5jwm4A\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "storage:v1",
|
||||
"name": "storage",
|
||||
"version": "v1",
|
||||
"revision": "20160802",
|
||||
"revision": "20161019",
|
||||
"title": "Cloud Storage JSON API",
|
||||
"description": "Stores and retrieves potentially large, immutable data objects.",
|
||||
"ownerDomain": "google.com",
|
||||
|
@ -150,15 +150,6 @@
|
|||
"$ref": "ObjectAccessControl"
|
||||
}
|
||||
},
|
||||
"encryption": {
|
||||
"type": "object",
|
||||
"description": "Encryption configuration used by default for newly inserted objects, when no encryption config is specified.",
|
||||
"properties": {
|
||||
"default_kms_key_name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "HTTP 1.1 Entity tag for the bucket."
|
||||
|
@ -186,9 +177,13 @@
|
|||
"type": "object",
|
||||
"description": "The action to take.",
|
||||
"properties": {
|
||||
"storageClass": {
|
||||
"type": "string",
|
||||
"description": "Target storage class. Required iff the type of the action is SetStorageClass."
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of the action. Currently, only Delete is supported."
|
||||
"description": "Type of the action. Currently, only Delete and SetStorageClass are supported."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -210,6 +205,13 @@
|
|||
"type": "boolean",
|
||||
"description": "Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects."
|
||||
},
|
||||
"matchesStorageClass": {
|
||||
"type": "array",
|
||||
"description": "Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"numNewerVersions": {
|
||||
"type": "integer",
|
||||
"description": "Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.",
|
||||
|
@ -279,7 +281,7 @@
|
|||
},
|
||||
"storageClass": {
|
||||
"type": "string",
|
||||
"description": "The bucket's storage class. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. For more information, see storage classes."
|
||||
"description": "The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes."
|
||||
},
|
||||
"timeCreated": {
|
||||
"type": "string",
|
||||
|
@ -621,10 +623,6 @@
|
|||
"description": "The kind of item this is. For objects, this is always storage#object.",
|
||||
"default": "storage#object"
|
||||
},
|
||||
"kmsKeyName": {
|
||||
"type": "string",
|
||||
"description": "Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key."
|
||||
},
|
||||
"md5Hash": {
|
||||
"type": "string",
|
||||
"description": "MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices."
|
||||
|
@ -713,7 +711,13 @@
|
|||
},
|
||||
"entity": {
|
||||
"type": "string",
|
||||
"description": "The entity holding the permission, in one of the following forms: \n- user-userId \n- user-email \n- group-groupId \n- group-email \n- domain-domain \n- project-team-projectId \n- allUsers \n- allAuthenticatedUsers Examples: \n- The user liz@example.com would be user-liz@example.com. \n- The group example@googlegroups.com would be group-example@googlegroups.com. \n- To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com."
|
||||
"description": "The entity holding the permission, in one of the following forms: \n- user-userId \n- user-email \n- group-groupId \n- group-email \n- domain-domain \n- project-team-projectId \n- allUsers \n- allAuthenticatedUsers Examples: \n- The user liz@example.com would be user-liz@example.com. \n- The group example@googlegroups.com would be group-example@googlegroups.com. \n- To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"storage.defaultObjectAccessControls.insert",
|
||||
"storage.objectAccessControls.insert"
|
||||
]
|
||||
}
|
||||
},
|
||||
"entityId": {
|
||||
"type": "string",
|
||||
|
@ -725,7 +729,7 @@
|
|||
},
|
||||
"generation": {
|
||||
"type": "string",
|
||||
"description": "The content generation of the object.",
|
||||
"description": "The content generation of the object, if applied to an object.",
|
||||
"format": "int64"
|
||||
},
|
||||
"id": {
|
||||
|
@ -739,7 +743,7 @@
|
|||
},
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "The name of the object."
|
||||
"description": "The name of the object, if applied to an object."
|
||||
},
|
||||
"projectTeam": {
|
||||
"type": "object",
|
||||
|
@ -757,7 +761,13 @@
|
|||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"description": "The access permission for the entity."
|
||||
"description": "The access permission for the entity.",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"storage.defaultObjectAccessControls.insert",
|
||||
"storage.objectAccessControls.insert"
|
||||
]
|
||||
}
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
|
@ -774,7 +784,7 @@
|
|||
"type": "array",
|
||||
"description": "The list of items.",
|
||||
"items": {
|
||||
"type": "any"
|
||||
"$ref": "ObjectAccessControl"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
|
@ -1262,7 +1272,7 @@
|
|||
"id": "storage.buckets.patch",
|
||||
"path": "b/{bucket}",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Updates a bucket. This method supports patch semantics.",
|
||||
"description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. This method supports patch semantics.",
|
||||
"parameters": {
|
||||
"bucket": {
|
||||
"type": "string",
|
||||
|
@ -1354,7 +1364,7 @@
|
|||
"id": "storage.buckets.update",
|
||||
"path": "b/{bucket}",
|
||||
"httpMethod": "PUT",
|
||||
"description": "Updates a bucket.",
|
||||
"description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.",
|
||||
"parameters": {
|
||||
"bucket": {
|
||||
"type": "string",
|
||||
|
@ -1971,11 +1981,6 @@
|
|||
"description": "Makes the operation conditional on whether the object's current metageneration matches the given value.",
|
||||
"format": "int64",
|
||||
"location": "query"
|
||||
},
|
||||
"kmsKeyName": {
|
||||
"type": "string",
|
||||
"description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
|
@ -2314,11 +2319,6 @@
|
|||
"format": "int64",
|
||||
"location": "query"
|
||||
},
|
||||
"kmsKeyName": {
|
||||
"type": "string",
|
||||
"description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
|
||||
"location": "query"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.",
|
||||
|
@ -2570,11 +2570,6 @@
|
|||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"destinationKmsKeyName": {
|
||||
"type": "string",
|
||||
"description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
|
||||
"location": "query"
|
||||
},
|
||||
"destinationObject": {
|
||||
"type": "string",
|
||||
"description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.",
|
||||
|
|
382
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
382
vendor/google.golang.org/api/storage/v1/storage-gen.go
generated
vendored
|
@ -169,10 +169,6 @@ type Bucket struct {
|
|||
// when no ACL is provided.
|
||||
DefaultObjectAcl []*ObjectAccessControl `json:"defaultObjectAcl,omitempty"`
|
||||
|
||||
// Encryption: Encryption configuration used by default for newly
|
||||
// inserted objects, when no encryption config is specified.
|
||||
Encryption *BucketEncryption `json:"encryption,omitempty"`
|
||||
|
||||
// Etag: HTTP 1.1 Entity tag for the bucket.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
|
@ -214,10 +210,13 @@ type Bucket struct {
|
|||
// SelfLink: The URI of this bucket.
|
||||
SelfLink string `json:"selfLink,omitempty"`
|
||||
|
||||
// StorageClass: The bucket's storage class. This defines how objects in
|
||||
// the bucket are stored and determines the SLA and the cost of storage.
|
||||
// Values include STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY.
|
||||
// Defaults to STANDARD. For more information, see storage classes.
|
||||
// StorageClass: The bucket's default storage class, used whenever no
|
||||
// storageClass is specified for a newly-created object. This defines
|
||||
// how objects in the bucket are stored and determines the SLA and the
|
||||
// cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD,
|
||||
// NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If this value
|
||||
// is not specified when the bucket is created, it will default to
|
||||
// STANDARD. For more information, see storage classes.
|
||||
StorageClass string `json:"storageClass,omitempty"`
|
||||
|
||||
// TimeCreated: The creation time of the bucket in RFC 3339 format.
|
||||
|
@ -245,12 +244,20 @@ type Bucket struct {
|
|||
// 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. "Acl") 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 *Bucket) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Bucket
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type BucketCors struct {
|
||||
|
@ -280,32 +287,20 @@ type BucketCors struct {
|
|||
// 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. "MaxAgeSeconds") 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 *BucketCors) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketCors
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
}
|
||||
|
||||
// BucketEncryption: Encryption configuration used by default for newly
|
||||
// inserted objects, when no encryption config is specified.
|
||||
type BucketEncryption struct {
|
||||
DefaultKmsKeyName string `json:"default_kms_key_name,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DefaultKmsKeyName")
|
||||
// to unconditionally include in API requests. By default, fields with
|
||||
// empty 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:"-"`
|
||||
}
|
||||
|
||||
func (s *BucketEncryption) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketEncryption
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketLifecycle: The bucket's lifecycle configuration. See lifecycle
|
||||
|
@ -322,12 +317,20 @@ type BucketLifecycle struct {
|
|||
// 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. "Rule") 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 *BucketLifecycle) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketLifecycle
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type BucketLifecycleRule struct {
|
||||
|
@ -344,32 +347,53 @@ type BucketLifecycleRule struct {
|
|||
// 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. "Action") 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 *BucketLifecycleRule) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketLifecycleRule
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketLifecycleRuleAction: The action to take.
|
||||
type BucketLifecycleRuleAction struct {
|
||||
// Type: Type of the action. Currently, only Delete is supported.
|
||||
// StorageClass: Target storage class. Required iff the type of the
|
||||
// action is SetStorageClass.
|
||||
StorageClass string `json:"storageClass,omitempty"`
|
||||
|
||||
// Type: Type of the action. Currently, only Delete and SetStorageClass
|
||||
// are supported.
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Type") to
|
||||
// ForceSendFields is a list of field names (e.g. "StorageClass") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty 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. "StorageClass") 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 *BucketLifecycleRuleAction) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketLifecycleRuleAction
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketLifecycleRuleCondition: The condition(s) under which the action
|
||||
|
@ -389,6 +413,12 @@ type BucketLifecycleRuleCondition struct {
|
|||
// matches archived objects.
|
||||
IsLive bool `json:"isLive,omitempty"`
|
||||
|
||||
// MatchesStorageClass: Objects having any of the storage classes
|
||||
// specified by this condition will be matched. Values include
|
||||
// MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and
|
||||
// DURABLE_REDUCED_AVAILABILITY.
|
||||
MatchesStorageClass []string `json:"matchesStorageClass,omitempty"`
|
||||
|
||||
// NumNewerVersions: Relevant only for versioned objects. If the value
|
||||
// is N, this condition is satisfied when there are at least N versions
|
||||
// (including the live version) newer than this version of the object.
|
||||
|
@ -401,12 +431,20 @@ type BucketLifecycleRuleCondition struct {
|
|||
// 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. "Age") 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 *BucketLifecycleRuleCondition) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketLifecycleRuleCondition
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketLogging: The bucket's logging configuration, which defines the
|
||||
|
@ -427,12 +465,20 @@ type BucketLogging struct {
|
|||
// 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. "LogBucket") 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 *BucketLogging) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketLogging
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketOwner: The owner of the bucket. This is always the project
|
||||
|
@ -451,12 +497,20 @@ type BucketOwner struct {
|
|||
// 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. "Entity") 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 *BucketOwner) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketOwner
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketVersioning: The bucket's versioning configuration.
|
||||
|
@ -472,12 +526,20 @@ type BucketVersioning struct {
|
|||
// 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. "Enabled") 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 *BucketVersioning) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketVersioning
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketWebsite: The bucket's website configuration, controlling how
|
||||
|
@ -503,12 +565,21 @@ type BucketWebsite struct {
|
|||
// 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. "MainPageSuffix") 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 *BucketWebsite) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketWebsite
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketAccessControl: An access-control entry.
|
||||
|
@ -572,12 +643,20 @@ type BucketAccessControl struct {
|
|||
// 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. "Bucket") 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 *BucketAccessControl) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketAccessControl
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketAccessControlProjectTeam: The project team associated with the
|
||||
|
@ -596,12 +675,20 @@ type BucketAccessControlProjectTeam struct {
|
|||
// 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. "ProjectNumber") 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 *BucketAccessControlProjectTeam) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketAccessControlProjectTeam
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BucketAccessControls: An access-control list.
|
||||
|
@ -624,12 +711,20 @@ type BucketAccessControls struct {
|
|||
// 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 *BucketAccessControls) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BucketAccessControls
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Buckets: A list of buckets.
|
||||
|
@ -657,12 +752,20 @@ type Buckets struct {
|
|||
// 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 *Buckets) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Buckets
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Channel: An notification channel used to watch for resource changes.
|
||||
|
@ -715,12 +818,20 @@ type Channel struct {
|
|||
// 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. "Address") 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 *Channel) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Channel
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ComposeRequest: A Compose request.
|
||||
|
@ -742,12 +853,20 @@ type ComposeRequest struct {
|
|||
// 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. "Destination") 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 *ComposeRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ComposeRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
type ComposeRequestSourceObjects struct {
|
||||
|
@ -769,12 +888,20 @@ type ComposeRequestSourceObjects struct {
|
|||
// 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. "Generation") 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 *ComposeRequestSourceObjects) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ComposeRequestSourceObjects
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ComposeRequestSourceObjectsObjectPreconditions: Conditions that must
|
||||
|
@ -793,12 +920,21 @@ type ComposeRequestSourceObjectsObjectPreconditions struct {
|
|||
// 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. "IfGenerationMatch") 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 *ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ComposeRequestSourceObjectsObjectPreconditions
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Object: An object.
|
||||
|
@ -856,10 +992,6 @@ type Object struct {
|
|||
// storage#object.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// KmsKeyName: Cloud KMS Key used to encrypt this object, if the object
|
||||
// is encrypted by such a key.
|
||||
KmsKeyName string `json:"kmsKeyName,omitempty"`
|
||||
|
||||
// Md5Hash: MD5 hash of the data; encoded using base64. For more
|
||||
// information about using the MD5 hash, see Hashes and ETags: Best
|
||||
// Practices.
|
||||
|
@ -917,12 +1049,20 @@ type Object struct {
|
|||
// 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. "Acl") 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 *Object) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Object
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ObjectCustomerEncryption: Metadata of customer-supplied encryption
|
||||
|
@ -941,12 +1081,21 @@ type ObjectCustomerEncryption struct {
|
|||
// 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. "EncryptionAlgorithm") 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 *ObjectCustomerEncryption) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ObjectCustomerEncryption
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ObjectOwner: The owner of the object. This will always be the
|
||||
|
@ -965,12 +1114,20 @@ type ObjectOwner struct {
|
|||
// 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. "Entity") 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 *ObjectOwner) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ObjectOwner
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ObjectAccessControl: An access-control entry.
|
||||
|
@ -1007,7 +1164,8 @@ type ObjectAccessControl struct {
|
|||
// Etag: HTTP 1.1 Entity tag for the access-control entry.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
// Generation: The content generation of the object.
|
||||
// Generation: The content generation of the object, if applied to an
|
||||
// object.
|
||||
Generation int64 `json:"generation,omitempty,string"`
|
||||
|
||||
// Id: The ID of the access-control entry.
|
||||
|
@ -1017,7 +1175,7 @@ type ObjectAccessControl struct {
|
|||
// this is always storage#objectAccessControl.
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// Object: The name of the object.
|
||||
// Object: The name of the object, if applied to an object.
|
||||
Object string `json:"object,omitempty"`
|
||||
|
||||
// ProjectTeam: The project team associated with the entity, if any.
|
||||
|
@ -1040,12 +1198,20 @@ type ObjectAccessControl struct {
|
|||
// 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. "Bucket") 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 *ObjectAccessControl) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ObjectAccessControl
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ObjectAccessControlProjectTeam: The project team associated with the
|
||||
|
@ -1064,18 +1230,26 @@ type ObjectAccessControlProjectTeam struct {
|
|||
// 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. "ProjectNumber") 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 *ObjectAccessControlProjectTeam) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ObjectAccessControlProjectTeam
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ObjectAccessControls: An access-control list.
|
||||
type ObjectAccessControls struct {
|
||||
// Items: The list of items.
|
||||
Items []interface{} `json:"items,omitempty"`
|
||||
Items []*ObjectAccessControl `json:"items,omitempty"`
|
||||
|
||||
// Kind: The kind of item this is. For lists of object access control
|
||||
// entries, this is always storage#objectAccessControls.
|
||||
|
@ -1092,12 +1266,20 @@ type ObjectAccessControls struct {
|
|||
// 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 *ObjectAccessControls) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ObjectAccessControls
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Objects: A list of objects.
|
||||
|
@ -1129,12 +1311,20 @@ type Objects struct {
|
|||
// 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 *Objects) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Objects
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// RewriteResponse: A rewrite response.
|
||||
|
@ -1176,12 +1366,20 @@ type RewriteResponse struct {
|
|||
// 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. "Done") 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 *RewriteResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod RewriteResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// method id "storage.bucketAccessControls.delete":
|
||||
|
@ -2658,7 +2856,9 @@ type BucketsPatchCall struct {
|
|||
ctx_ context.Context
|
||||
}
|
||||
|
||||
// Patch: Updates a bucket. This method supports patch semantics.
|
||||
// Patch: Updates a bucket. Changes to the bucket will be readable
|
||||
// immediately after writing, but configuration changes may take time to
|
||||
// propagate. This method supports patch semantics.
|
||||
func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall {
|
||||
c := &BucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
@ -2808,7 +3008,7 @@ func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error) {
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates a bucket. This method supports patch semantics.",
|
||||
// "description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. This method supports patch semantics.",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "storage.buckets.patch",
|
||||
// "parameterOrder": [
|
||||
|
@ -2912,7 +3112,9 @@ type BucketsUpdateCall struct {
|
|||
ctx_ context.Context
|
||||
}
|
||||
|
||||
// Update: Updates a bucket.
|
||||
// Update: Updates a bucket. Changes to the bucket will be readable
|
||||
// immediately after writing, but configuration changes may take time to
|
||||
// propagate.
|
||||
func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall {
|
||||
c := &BucketsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
@ -3062,7 +3264,7 @@ func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error) {
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates a bucket.",
|
||||
// "description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.",
|
||||
// "httpMethod": "PUT",
|
||||
// "id": "storage.buckets.update",
|
||||
// "parameterOrder": [
|
||||
|
@ -4947,16 +5149,6 @@ func (c *ObjectsComposeCall) IfMetagenerationMatch(ifMetagenerationMatch int64)
|
|||
return c
|
||||
}
|
||||
|
||||
// KmsKeyName sets the optional parameter "kmsKeyName": Resource name of
|
||||
// the Cloud KMS key, of the form
|
||||
// projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key,
|
||||
// that will be used to encrypt the object. Overrides the object
|
||||
// metadata's kms_key_name value, if any.
|
||||
func (c *ObjectsComposeCall) KmsKeyName(kmsKeyName string) *ObjectsComposeCall {
|
||||
c.urlParams_.Set("kmsKeyName", kmsKeyName)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
|
@ -5100,11 +5292,6 @@ func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error) {
|
|||
// "format": "int64",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "kmsKeyName": {
|
||||
// "description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "b/{destinationBucket}/o/{destinationObject}/compose",
|
||||
|
@ -5980,16 +6167,6 @@ func (c *ObjectsInsertCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch in
|
|||
return c
|
||||
}
|
||||
|
||||
// KmsKeyName sets the optional parameter "kmsKeyName": Resource name of
|
||||
// the Cloud KMS key, of the form
|
||||
// projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key,
|
||||
// that will be used to encrypt the object. Overrides the object
|
||||
// metadata's kms_key_name value, if any.
|
||||
func (c *ObjectsInsertCall) KmsKeyName(kmsKeyName string) *ObjectsInsertCall {
|
||||
c.urlParams_.Set("kmsKeyName", kmsKeyName)
|
||||
return c
|
||||
}
|
||||
|
||||
// Name sets the optional parameter "name": Name of the object. Required
|
||||
// when the object metadata is not otherwise provided. Overrides the
|
||||
// object metadata's name value, if any. For information about how to
|
||||
|
@ -6261,11 +6438,6 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) {
|
|||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "kmsKeyName": {
|
||||
// "description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "name": {
|
||||
// "description": "Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.",
|
||||
// "location": "query",
|
||||
|
@ -6862,17 +7034,6 @@ func (r *ObjectsService) Rewrite(sourceBucket string, sourceObject string, desti
|
|||
return c
|
||||
}
|
||||
|
||||
// DestinationKmsKeyName sets the optional parameter
|
||||
// "destinationKmsKeyName": Resource name of the Cloud KMS key, of the
|
||||
// form
|
||||
// projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key,
|
||||
// that will be used to encrypt the object. Overrides the object
|
||||
// metadata's kms_key_name value, if any.
|
||||
func (c *ObjectsRewriteCall) DestinationKmsKeyName(destinationKmsKeyName string) *ObjectsRewriteCall {
|
||||
c.urlParams_.Set("destinationKmsKeyName", destinationKmsKeyName)
|
||||
return c
|
||||
}
|
||||
|
||||
// DestinationPredefinedAcl sets the optional parameter
|
||||
// "destinationPredefinedAcl": Apply a predefined set of access controls
|
||||
// to the destination object.
|
||||
|
@ -7102,11 +7263,6 @@ func (c *ObjectsRewriteCall) Do(opts ...googleapi.CallOption) (*RewriteResponse,
|
|||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "destinationKmsKeyName": {
|
||||
// "description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "destinationObject": {
|
||||
// "description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.",
|
||||
// "location": "path",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue