1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-05 18:13:17 +00:00

vendor: update all dependencies

* Update all dependencies
  * Remove all `[[constraint]]` from Gopkg.toml
  * Add in the minimum number of `[[override]]` to build
  * Remove go get of github.com/inconshreveable/mousetrap as it is vendored
  * Update docs with new policy on constraints
This commit is contained in:
Nick Craig-Wood
2018-05-02 17:09:45 +01:00
parent 21383877df
commit 6427029c4e
4902 changed files with 1443417 additions and 227283 deletions

View File

@@ -50,8 +50,6 @@ func New(client *http.Client) (*Service, error) {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Dms = NewDmsService(s)
s.Rooms = NewRoomsService(s)
s.Spaces = NewSpacesService(s)
return s, nil
}
@@ -61,10 +59,6 @@ type Service struct {
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Dms *DmsService
Rooms *RoomsService
Spaces *SpacesService
}
@@ -75,96 +69,6 @@ func (s *Service) userAgent() string {
return googleapi.UserAgent + " " + s.UserAgent
}
func NewDmsService(s *Service) *DmsService {
rs := &DmsService{s: s}
rs.Conversations = NewDmsConversationsService(s)
rs.Messages = NewDmsMessagesService(s)
return rs
}
type DmsService struct {
s *Service
Conversations *DmsConversationsService
Messages *DmsMessagesService
}
func NewDmsConversationsService(s *Service) *DmsConversationsService {
rs := &DmsConversationsService{s: s}
rs.Messages = NewDmsConversationsMessagesService(s)
return rs
}
type DmsConversationsService struct {
s *Service
Messages *DmsConversationsMessagesService
}
func NewDmsConversationsMessagesService(s *Service) *DmsConversationsMessagesService {
rs := &DmsConversationsMessagesService{s: s}
return rs
}
type DmsConversationsMessagesService struct {
s *Service
}
func NewDmsMessagesService(s *Service) *DmsMessagesService {
rs := &DmsMessagesService{s: s}
return rs
}
type DmsMessagesService struct {
s *Service
}
func NewRoomsService(s *Service) *RoomsService {
rs := &RoomsService{s: s}
rs.Conversations = NewRoomsConversationsService(s)
rs.Messages = NewRoomsMessagesService(s)
return rs
}
type RoomsService struct {
s *Service
Conversations *RoomsConversationsService
Messages *RoomsMessagesService
}
func NewRoomsConversationsService(s *Service) *RoomsConversationsService {
rs := &RoomsConversationsService{s: s}
rs.Messages = NewRoomsConversationsMessagesService(s)
return rs
}
type RoomsConversationsService struct {
s *Service
Messages *RoomsConversationsMessagesService
}
func NewRoomsConversationsMessagesService(s *Service) *RoomsConversationsMessagesService {
rs := &RoomsConversationsMessagesService{s: s}
return rs
}
type RoomsConversationsMessagesService struct {
s *Service
}
func NewRoomsMessagesService(s *Service) *RoomsMessagesService {
rs := &RoomsMessagesService{s: s}
return rs
}
type RoomsMessagesService struct {
s *Service
}
func NewSpacesService(s *Service) *SpacesService {
rs := &SpacesService{s: s}
rs.Members = NewSpacesMembersService(s)
@@ -903,6 +807,10 @@ type Message struct {
// this message.
Annotations []*Annotation `json:"annotations,omitempty"`
// ArgumentText: Plain-text body of the message with all bot mentions
// stripped out.
ArgumentText string `json:"argumentText,omitempty"`
// Cards: Rich, formatted and interactive cards that can be used to
// display UI
// elements such as: formatted texts, buttons, clickable images. Cards
@@ -1316,630 +1224,6 @@ func (s *WidgetMarkup) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "chat.dms.conversations.messages.create":
type DmsConversationsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *DmsConversationsMessagesService) Create(parent string, message *Message) *DmsConversationsMessagesCreateCall {
c := &DmsConversationsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *DmsConversationsMessagesCreateCall) ThreadKey(threadKey string) *DmsConversationsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
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 *DmsConversationsMessagesCreateCall) Fields(s ...googleapi.Field) *DmsConversationsMessagesCreateCall {
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 *DmsConversationsMessagesCreateCall) Context(ctx context.Context) *DmsConversationsMessagesCreateCall {
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 *DmsConversationsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DmsConversationsMessagesCreateCall) 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.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.dms.conversations.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *DmsConversationsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/dms/{dmsId}/conversations/{conversationsId}/messages",
// "httpMethod": "POST",
// "id": "chat.dms.conversations.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^dms/[^/]+/conversations/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.dms.messages.create":
type DmsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *DmsMessagesService) Create(parent string, message *Message) *DmsMessagesCreateCall {
c := &DmsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *DmsMessagesCreateCall) ThreadKey(threadKey string) *DmsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
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 *DmsMessagesCreateCall) Fields(s ...googleapi.Field) *DmsMessagesCreateCall {
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 *DmsMessagesCreateCall) Context(ctx context.Context) *DmsMessagesCreateCall {
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 *DmsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DmsMessagesCreateCall) 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.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.dms.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *DmsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/dms/{dmsId}/messages",
// "httpMethod": "POST",
// "id": "chat.dms.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^dms/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.rooms.conversations.messages.create":
type RoomsConversationsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *RoomsConversationsMessagesService) Create(parent string, message *Message) *RoomsConversationsMessagesCreateCall {
c := &RoomsConversationsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *RoomsConversationsMessagesCreateCall) ThreadKey(threadKey string) *RoomsConversationsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
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 *RoomsConversationsMessagesCreateCall) Fields(s ...googleapi.Field) *RoomsConversationsMessagesCreateCall {
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 *RoomsConversationsMessagesCreateCall) Context(ctx context.Context) *RoomsConversationsMessagesCreateCall {
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 *RoomsConversationsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *RoomsConversationsMessagesCreateCall) 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.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.rooms.conversations.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *RoomsConversationsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/rooms/{roomsId}/conversations/{conversationsId}/messages",
// "httpMethod": "POST",
// "id": "chat.rooms.conversations.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^rooms/[^/]+/conversations/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.rooms.messages.create":
type RoomsMessagesCreateCall struct {
s *Service
parent string
message *Message
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a message.
func (r *RoomsMessagesService) Create(parent string, message *Message) *RoomsMessagesCreateCall {
c := &RoomsMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.parent = parent
c.message = message
return c
}
// ThreadKey sets the optional parameter "threadKey": Opaque thread
// identifier string that can be specified to group messages
// into a single thread. If this is the first message with a given
// thread
// identifier, a new thread is created. Subsequent messages with the
// same
// thread identifier will be posted into the same thread. This relieves
// bots
// and webhooks from having to store the Hangouts Chat thread ID of a
// thread (created earlier by them) to post
// further updates to it.
//
// Has no effect if thread field,
// corresponding to an existing thread, is set in message.
func (c *RoomsMessagesCreateCall) ThreadKey(threadKey string) *RoomsMessagesCreateCall {
c.urlParams_.Set("threadKey", threadKey)
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 *RoomsMessagesCreateCall) Fields(s ...googleapi.Field) *RoomsMessagesCreateCall {
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 *RoomsMessagesCreateCall) Context(ctx context.Context) *RoomsMessagesCreateCall {
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 *RoomsMessagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *RoomsMessagesCreateCall) 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.message)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/messages")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"parent": c.parent,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "chat.rooms.messages.create" call.
// Exactly one of *Message or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Message.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *RoomsMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Message{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a message.",
// "flatPath": "v1/rooms/{roomsId}/messages",
// "httpMethod": "POST",
// "id": "chat.rooms.messages.create",
// "parameterOrder": [
// "parent"
// ],
// "parameters": {
// "parent": {
// "description": "Required. Space resource name, in the form \"spaces/*\".\nExample: spaces/AAAAMpdlehY",
// "location": "path",
// "pattern": "^rooms/[^/]+$",
// "required": true,
// "type": "string"
// },
// "threadKey": {
// "description": "Opaque thread identifier string that can be specified to group messages\ninto a single thread. If this is the first message with a given thread\nidentifier, a new thread is created. Subsequent messages with the same\nthread identifier will be posted into the same thread. This relieves bots\nand webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post\nfurther updates to it.\n\nHas no effect if thread field,\ncorresponding to an existing thread, is set in message.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/{+parent}/messages",
// "request": {
// "$ref": "Message"
// },
// "response": {
// "$ref": "Message"
// }
// }
}
// method id "chat.spaces.get":
type SpacesGetCall struct {