vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537057 additions and 189681 deletions

View File

@@ -22,7 +22,7 @@
"basePath": "/admin/datatransfer/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/datatransfer/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/datatransfer_v1",
"parameters": {
"alt": {
"type": "string",

View File

@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/976YNPTJkb16sYg_Lp8esJdwsGQ\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/JB19efQGH5f-JRT49yZz7BTyNQU\"",
"discoveryVersion": "v1",
"id": "admin:directory_v1",
"name": "admin",
"canonicalName": "directory",
"version": "directory_v1",
"revision": "20170530",
"revision": "20170830",
"title": "Admin Directory API",
"description": "The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.",
"ownerDomain": "google.com",
@@ -22,7 +22,7 @@
"basePath": "/admin/directory/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/directory/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/directory_v1",
"parameters": {
"alt": {
"type": "string",
@@ -277,6 +277,10 @@
"type": "string",
"description": "ETag of the resource."
},
"generatedResourceName": {
"type": "string",
"description": "The auto-generated name of the calendar resource which includes metadata about the resource such as building name, floor, capacity, etc. For example, NYC-2-Training Room 1A (16)"
},
"kind": {
"type": "string",
"description": "The type of the resource. For calendar resources, the value is admin#directory#resources#calendars#CalendarResource.",
@@ -292,21 +296,11 @@
},
"resourceId": {
"type": "string",
"description": "The unique ID for the calendar resource.",
"annotations": {
"required": [
"directory.resources.calendars.insert"
]
}
"description": "The unique ID for the calendar resource."
},
"resourceName": {
"type": "string",
"description": "The name of the calendar resource. For example, Training Room 1A",
"annotations": {
"required": [
"directory.resources.calendars.insert"
]
}
"description": "The name of the calendar resource. For example, Training Room 1A"
},
"resourceType": {
"type": "string",
@@ -579,6 +573,25 @@
}
}
},
"ChromeOsMoveDevicesToOu": {
"id": "ChromeOsMoveDevicesToOu",
"type": "object",
"description": "JSON request template for moving ChromeOs Device to given OU in Directory Devices API.",
"properties": {
"deviceIds": {
"type": "array",
"description": "ChromeOs Devices to be moved to OU",
"items": {
"type": "string"
},
"annotations": {
"required": [
"directory.chromeosdevices.moveDevicesToOu"
]
}
}
}
},
"Customer": {
"id": "Customer",
"type": "object",
@@ -1824,6 +1837,9 @@
"externalIds": {
"type": "any"
},
"gender": {
"type": "any"
},
"hashFunction": {
"type": "string",
"description": "Hash function name for password. Supported are MD5, SHA-1 and crypt"
@@ -1868,6 +1884,9 @@
"description": "Is mailbox setup (Read-only)",
"readOnly": true
},
"keywords": {
"type": "any"
},
"kind": {
"type": "string",
"description": "Kind of resource this is.",
@@ -2091,6 +2110,24 @@
}
}
},
"UserGender": {
"id": "UserGender",
"type": "object",
"properties": {
"addressMeAs": {
"type": "string",
"description": "AddressMeAs. A human-readable string containing the proper way to refer to the profile owner by humans, for example \"he/him/his\" or \"they/them/their\"."
},
"customGender": {
"type": "string",
"description": "Custom gender."
},
"type": {
"type": "string",
"description": "Gender."
}
}
},
"UserIm": {
"id": "UserIm",
"type": "object",
@@ -2122,6 +2159,25 @@
}
}
},
"UserKeyword": {
"id": "UserKeyword",
"type": "object",
"description": "JSON template for a keyword entry.",
"properties": {
"customType": {
"type": "string",
"description": "Custom Type."
},
"type": {
"type": "string",
"description": "Each entry can have a type which indicates standard type of that entry. For example, keyword could be of type occupation or outlook. In addition to the standard type, an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a customType value."
},
"value": {
"type": "string",
"description": "Keyword."
}
}
},
"UserLanguage": {
"id": "UserLanguage",
"type": "object",
@@ -2354,9 +2410,9 @@
"description": "The GECOS (user information) for this account."
},
"gid": {
"type": "integer",
"type": "string",
"description": "The default group ID.",
"format": "int32"
"format": "uint64"
},
"homeDirectory": {
"type": "string",
@@ -2375,9 +2431,9 @@
"description": "System identifier for which account Username or Uid apply to."
},
"uid": {
"type": "integer",
"type": "string",
"description": "The POSIX compliant user ID.",
"format": "int32"
"format": "uint64"
},
"username": {
"type": "string",
@@ -2816,6 +2872,36 @@
"https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"
]
},
"moveDevicesToOu": {
"id": "directory.chromeosdevices.moveDevicesToOu",
"path": "customer/{customerId}/devices/chromeos/moveDevicesToOu",
"httpMethod": "POST",
"description": "Move or insert multiple Chrome OS Devices to Organization Unit",
"parameters": {
"customerId": {
"type": "string",
"description": "Immutable ID of the G Suite account",
"required": true,
"location": "path"
},
"orgUnitPath": {
"type": "string",
"description": "Full path of the target organization unit or its Id",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"customerId",
"orgUnitPath"
],
"request": {
"$ref": "ChromeOsMoveDevicesToOu"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.device.chromeos"
]
},
"patch": {
"id": "directory.chromeosdevices.patch",
"path": "customer/{customerId}/devices/chromeos/{deviceId}",

View File

@@ -608,6 +608,11 @@ type CalendarResource struct {
// Etags: ETag of the resource.
Etags string `json:"etags,omitempty"`
// GeneratedResourceName: The auto-generated name of the calendar
// resource which includes metadata about the resource such as building
// name, floor, capacity, etc. For example, NYC-2-Training Room 1A (16)
GeneratedResourceName string `json:"generatedResourceName,omitempty"`
// Kind: The type of the resource. For calendar resources, the value is
// admin#directory#resources#calendars#CalendarResource.
Kind string `json:"kind,omitempty"`
@@ -1019,6 +1024,35 @@ func (s *ChromeOsDevices) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsMoveDevicesToOu: JSON request template for moving ChromeOs
// Device to given OU in Directory Devices API.
type ChromeOsMoveDevicesToOu struct {
// DeviceIds: ChromeOs Devices to be moved to OU
DeviceIds []string `json:"deviceIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceIds") 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. "DeviceIds") 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 *ChromeOsMoveDevicesToOu) MarshalJSON() ([]byte, error) {
type noMethod ChromeOsMoveDevicesToOu
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Customer: JSON template for Customer Resource object in Directory
// API.
type Customer struct {
@@ -2620,6 +2654,8 @@ type User struct {
ExternalIds interface{} `json:"externalIds,omitempty"`
Gender interface{} `json:"gender,omitempty"`
// HashFunction: Hash function name for password. Supported are MD5,
// SHA-1 and crypt
HashFunction string `json:"hashFunction,omitempty"`
@@ -2652,6 +2688,8 @@ type User struct {
// IsMailboxSetup: Is mailbox setup (Read-only)
IsMailboxSetup bool `json:"isMailboxSetup,omitempty"`
Keywords interface{} `json:"keywords,omitempty"`
// Kind: Kind of resource this is.
Kind string `json:"kind,omitempty"`
@@ -2911,6 +2949,41 @@ func (s *UserExternalId) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UserGender struct {
// AddressMeAs: AddressMeAs. A human-readable string containing the
// proper way to refer to the profile owner by humans, for example
// "he/him/his" or "they/them/their".
AddressMeAs string `json:"addressMeAs,omitempty"`
// CustomGender: Custom gender.
CustomGender string `json:"customGender,omitempty"`
// Type: Gender.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "AddressMeAs") 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. "AddressMeAs") 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 *UserGender) MarshalJSON() ([]byte, error) {
type noMethod UserGender
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserIm: JSON template for instant messenger of an user.
type UserIm struct {
// CustomProtocol: Custom protocol.
@@ -2962,6 +3035,44 @@ func (s *UserIm) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserKeyword: JSON template for a keyword entry.
type UserKeyword struct {
// CustomType: Custom Type.
CustomType string `json:"customType,omitempty"`
// Type: Each entry can have a type which indicates standard type of
// that entry. For example, keyword could be of type occupation or
// outlook. In addition to the standard type, an entry can have a custom
// type and can give it any name. Such types should have the CUSTOM
// value as type and also have a customType value.
Type string `json:"type,omitempty"`
// Value: Keyword.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "CustomType") 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. "CustomType") 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 *UserKeyword) MarshalJSON() ([]byte, error) {
type noMethod UserKeyword
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserLanguage: JSON template for a language entry.
type UserLanguage struct {
// CustomLanguage: Other language. User can provide own language name if
@@ -3283,7 +3394,7 @@ type UserPosixAccount struct {
Gecos string `json:"gecos,omitempty"`
// Gid: The default group ID.
Gid int64 `json:"gid,omitempty"`
Gid uint64 `json:"gid,omitempty,string"`
// HomeDirectory: The path to the home directory for this account.
HomeDirectory string `json:"homeDirectory,omitempty"`
@@ -3299,7 +3410,7 @@ type UserPosixAccount struct {
SystemId string `json:"systemId,omitempty"`
// Uid: The POSIX compliant user ID.
Uid int64 `json:"uid,omitempty"`
Uid uint64 `json:"uid,omitempty,string"`
// Username: The username of the account.
Username string `json:"username,omitempty"`
@@ -4666,6 +4777,120 @@ func (c *ChromeosdevicesListCall) Pages(ctx context.Context, f func(*ChromeOsDev
}
}
// method id "directory.chromeosdevices.moveDevicesToOu":
type ChromeosdevicesMoveDevicesToOuCall struct {
s *Service
customerId string
chromeosmovedevicestoou *ChromeOsMoveDevicesToOu
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// MoveDevicesToOu: Move or insert multiple Chrome OS Devices to
// Organization Unit
func (r *ChromeosdevicesService) MoveDevicesToOu(customerId string, orgUnitPath string, chromeosmovedevicestoou *ChromeOsMoveDevicesToOu) *ChromeosdevicesMoveDevicesToOuCall {
c := &ChromeosdevicesMoveDevicesToOuCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.customerId = customerId
c.urlParams_.Set("orgUnitPath", orgUnitPath)
c.chromeosmovedevicestoou = chromeosmovedevicestoou
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChromeosdevicesMoveDevicesToOuCall) Fields(s ...googleapi.Field) *ChromeosdevicesMoveDevicesToOuCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ChromeosdevicesMoveDevicesToOuCall) Context(ctx context.Context) *ChromeosdevicesMoveDevicesToOuCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ChromeosdevicesMoveDevicesToOuCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChromeosdevicesMoveDevicesToOuCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.chromeosmovedevicestoou)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "customer/{customerId}/devices/chromeos/moveDevicesToOu")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"customerId": c.customerId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "directory.chromeosdevices.moveDevicesToOu" call.
func (c *ChromeosdevicesMoveDevicesToOuCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "description": "Move or insert multiple Chrome OS Devices to Organization Unit",
// "httpMethod": "POST",
// "id": "directory.chromeosdevices.moveDevicesToOu",
// "parameterOrder": [
// "customerId",
// "orgUnitPath"
// ],
// "parameters": {
// "customerId": {
// "description": "Immutable ID of the G Suite account",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "orgUnitPath": {
// "description": "Full path of the target organization unit or its Id",
// "location": "query",
// "required": true,
// "type": "string"
// }
// },
// "path": "customer/{customerId}/devices/chromeos/moveDevicesToOu",
// "request": {
// "$ref": "ChromeOsMoveDevicesToOu"
// },
// "scopes": [
// "https://www.googleapis.com/auth/admin.directory.device.chromeos"
// ]
// }
}
// method id "directory.chromeosdevices.patch":
type ChromeosdevicesPatchCall struct {

View File

@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/-tkaOVzArVVhbxGreMOY21mRaV8\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/YvMEbSpUd5h8xmSpskCE_HPECco\"",
"discoveryVersion": "v1",
"id": "admin:reports_v1",
"name": "admin",
"canonicalName": "reports",
"version": "reports_v1",
"revision": "20170320",
"revision": "20170622",
"title": "Admin Reports API",
"description": "Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.",
"ownerDomain": "google.com",
@@ -22,7 +22,7 @@
"basePath": "/admin/reports/v1/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "admin/reports/v1/",
"batchPath": "batch",
"batchPath": "batch/admin/reports_v1",
"parameters": {
"alt": {
"type": "string",
@@ -464,7 +464,7 @@
"type": "string",
"description": "Application name for which the events are to be retrieved.",
"required": true,
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
"location": "path"
},
"customerId": {
@@ -543,7 +543,7 @@
"type": "string",
"description": "Application name for which the events are to be retrieved.",
"required": true,
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
"location": "path"
},
"customerId": {
@@ -659,7 +659,7 @@
"parameters": {
"type": "string",
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
"pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
"pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
"location": "query"
}
},

View File

@@ -845,7 +845,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*Activities, erro
// "applicationName": {
// "description": "Application name for which the events are to be retrieved.",
// "location": "path",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
// "required": true,
// "type": "string"
// },
@@ -1113,7 +1113,7 @@ func (c *ActivitiesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error)
// "applicationName": {
// "description": "Application name for which the events are to be retrieved.",
// "location": "path",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)",
// "pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)",
// "required": true,
// "type": "string"
// },
@@ -1435,7 +1435,7 @@ func (c *CustomerUsageReportsGetCall) Do(opts ...googleapi.CallOption) (*UsageRe
// "parameters": {
// "description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
// "location": "query",
// "pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
// "pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
// "type": "string"
// }
// },