vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2018-06-17 17:59:12 +01:00
parent 3f0789e2db
commit 08021c4636
2474 changed files with 435818 additions and 282709 deletions

View File

@ -18,7 +18,7 @@
"description": "Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/sql/docs/reference/latest",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/JK0E1gVAzolIm-0oBe-45M8ICm0\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/dydRcA1ZbC7nkSRFII_LV6ikPbg\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@ -486,6 +486,37 @@
},
"instances": {
"methods": {
"addServerCa": {
"description": "Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There can not be more than one CA version waiting to be rotated in.",
"httpMethod": "POST",
"id": "sql.instances.addServerCa",
"parameterOrder": [
"project",
"instance"
],
"parameters": {
"instance": {
"description": "Cloud SQL instance ID. This does not include the project ID.",
"location": "path",
"required": true,
"type": "string"
},
"project": {
"description": "Project ID of the project that contains the instance.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "projects/{project}/instances/{instance}/addServerCa",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"clone": {
"description": "Creates a Cloud SQL instance as a clone of the source instance. The API is not ready for Second Generation instances yet.",
"httpMethod": "POST",
@ -783,6 +814,37 @@
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"listServerCas": {
"description": "Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.",
"httpMethod": "GET",
"id": "sql.instances.listServerCas",
"parameterOrder": [
"project",
"instance"
],
"parameters": {
"instance": {
"description": "Cloud SQL instance ID. This does not include the project ID.",
"location": "path",
"required": true,
"type": "string"
},
"project": {
"description": "Project ID of the project that contains the instance.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "projects/{project}/instances/{instance}/listServerCas",
"response": {
"$ref": "InstancesListServerCasResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"patch": {
"description": "Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.. This method supports patch semantics.",
"httpMethod": "PATCH",
@ -944,6 +1006,40 @@
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"rotateServerCa": {
"description": "Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.",
"httpMethod": "POST",
"id": "sql.instances.rotateServerCa",
"parameterOrder": [
"project",
"instance"
],
"parameters": {
"instance": {
"description": "Cloud SQL instance ID. This does not include the project ID.",
"location": "path",
"required": true,
"type": "string"
},
"project": {
"description": "Project ID of the project that contains the instance.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "projects/{project}/instances/{instance}/rotateServerCa",
"request": {
"$ref": "InstancesRotateServerCaRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"
]
},
"startReplica": {
"description": "Starts the replication in the read replica instance.",
"httpMethod": "POST",
@ -1524,7 +1620,7 @@
}
}
},
"revision": "20180314",
"revision": "20180507",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"AclEntry": {
@ -2272,6 +2368,28 @@
},
"type": "object"
},
"InstancesListServerCasResponse": {
"description": "Instances ListServerCas response.",
"id": "InstancesListServerCasResponse",
"properties": {
"activeVersion": {
"type": "string"
},
"certs": {
"description": "List of server CA certificates for the instance.",
"items": {
"$ref": "SslCert"
},
"type": "array"
},
"kind": {
"default": "sql#instancesListServerCas",
"description": "This is always sql#instancesListServerCas.",
"type": "string"
}
},
"type": "object"
},
"InstancesRestoreBackupRequest": {
"description": "Database instance restore backup request.",
"id": "InstancesRestoreBackupRequest",
@ -2283,6 +2401,17 @@
},
"type": "object"
},
"InstancesRotateServerCaRequest": {
"description": "Rotate Server CA request.",
"id": "InstancesRotateServerCaRequest",
"properties": {
"rotateServerCaContext": {
"$ref": "RotateServerCaContext",
"description": "Contains details about the rotate server CA operation."
}
},
"type": "object"
},
"InstancesTruncateLogRequest": {
"description": "Instance truncate log request.",
"id": "InstancesTruncateLogRequest",
@ -2630,6 +2759,22 @@
},
"type": "object"
},
"RotateServerCaContext": {
"description": "Instance rotate server CA context.",
"id": "RotateServerCaContext",
"properties": {
"kind": {
"default": "sql#rotateServerCaContext",
"description": "This is always sql#rotateServerCaContext.",
"type": "string"
},
"nextVersion": {
"description": "The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version.",
"type": "string"
}
},
"type": "object"
},
"Settings": {
"description": "Database instance settings.",
"id": "Settings",

View File

@ -1402,6 +1402,43 @@ func (s *InstancesListResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstancesListServerCasResponse: Instances ListServerCas response.
type InstancesListServerCasResponse struct {
ActiveVersion string `json:"activeVersion,omitempty"`
// Certs: List of server CA certificates for the instance.
Certs []*SslCert `json:"certs,omitempty"`
// Kind: This is always sql#instancesListServerCas.
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ActiveVersion") 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. "ActiveVersion") 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 *InstancesListServerCasResponse) MarshalJSON() ([]byte, error) {
type NoMethod InstancesListServerCasResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstancesRestoreBackupRequest: Database instance restore backup
// request.
type InstancesRestoreBackupRequest struct {
@ -1434,6 +1471,37 @@ func (s *InstancesRestoreBackupRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstancesRotateServerCaRequest: Rotate Server CA request.
type InstancesRotateServerCaRequest struct {
// RotateServerCaContext: Contains details about the rotate server CA
// operation.
RotateServerCaContext *RotateServerCaContext `json:"rotateServerCaContext,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "RotateServerCaContext") 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. "RotateServerCaContext") 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 *InstancesRotateServerCaRequest) MarshalJSON() ([]byte, error) {
type NoMethod InstancesRotateServerCaRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstancesTruncateLogRequest: Instance truncate log request.
type InstancesTruncateLogRequest struct {
// TruncateLogContext: Contains details about the truncate log
@ -2002,6 +2070,39 @@ func (s *RestoreBackupContext) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RotateServerCaContext: Instance rotate server CA context.
type RotateServerCaContext struct {
// Kind: This is always sql#rotateServerCaContext.
Kind string `json:"kind,omitempty"`
// NextVersion: The fingerprint of the next version to be rotated to. If
// left unspecified, will be rotated to the most recently added server
// CA version.
NextVersion string `json:"nextVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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 *RotateServerCaContext) MarshalJSON() ([]byte, error) {
type NoMethod RotateServerCaContext
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Settings: Database instance settings.
type Settings struct {
// ActivationPolicy: The activation policy specifies when the instance
@ -4259,6 +4360,144 @@ func (c *FlagsListCall) Do(opts ...googleapi.CallOption) (*FlagsListResponse, er
}
// method id "sql.instances.addServerCa":
type InstancesAddServerCaCall struct {
s *Service
project string
instance string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// AddServerCa: Add a new trusted Certificate Authority (CA) version for
// the specified instance. Required to prepare for a certificate
// rotation. If a CA version was previously added but never used in a
// certificate rotation, this operation replaces that version. There can
// not be more than one CA version waiting to be rotated in.
func (r *InstancesService) AddServerCa(project string, instance string) *InstancesAddServerCaCall {
c := &InstancesAddServerCaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.instance = instance
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 *InstancesAddServerCaCall) Fields(s ...googleapi.Field) *InstancesAddServerCaCall {
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 *InstancesAddServerCaCall) Context(ctx context.Context) *InstancesAddServerCaCall {
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 *InstancesAddServerCaCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *InstancesAddServerCaCall) 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
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/addServerCa")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"project": c.project,
"instance": c.instance,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "sql.instances.addServerCa" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.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 *InstancesAddServerCaCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{
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": "Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There can not be more than one CA version waiting to be rotated in.",
// "httpMethod": "POST",
// "id": "sql.instances.addServerCa",
// "parameterOrder": [
// "project",
// "instance"
// ],
// "parameters": {
// "instance": {
// "description": "Cloud SQL instance ID. This does not include the project ID.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "project": {
// "description": "Project ID of the project that contains the instance.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "projects/{project}/instances/{instance}/addServerCa",
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/sqlservice.admin"
// ]
// }
}
// method id "sql.instances.clone":
type InstancesCloneCall struct {
@ -5595,6 +5834,158 @@ func (c *InstancesListCall) Pages(ctx context.Context, f func(*InstancesListResp
}
}
// method id "sql.instances.listServerCas":
type InstancesListServerCasCall struct {
s *Service
project string
instance string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// ListServerCas: Lists all of the trusted Certificate Authorities (CAs)
// for the specified instance. There can be up to three CAs listed: the
// CA that was used to sign the certificate that is currently in use, a
// CA that has been added but not yet used to sign a certificate, and a
// CA used to sign a certificate that has previously rotated out.
func (r *InstancesService) ListServerCas(project string, instance string) *InstancesListServerCasCall {
c := &InstancesListServerCasCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.instance = instance
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 *InstancesListServerCasCall) Fields(s ...googleapi.Field) *InstancesListServerCasCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *InstancesListServerCasCall) IfNoneMatch(entityTag string) *InstancesListServerCasCall {
c.ifNoneMatch_ = entityTag
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 *InstancesListServerCasCall) Context(ctx context.Context) *InstancesListServerCasCall {
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 *InstancesListServerCasCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *InstancesListServerCasCall) 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())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/listServerCas")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"project": c.project,
"instance": c.instance,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "sql.instances.listServerCas" call.
// Exactly one of *InstancesListServerCasResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *InstancesListServerCasResponse.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 *InstancesListServerCasCall) Do(opts ...googleapi.CallOption) (*InstancesListServerCasResponse, 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 := &InstancesListServerCasResponse{
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": "Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.",
// "httpMethod": "GET",
// "id": "sql.instances.listServerCas",
// "parameterOrder": [
// "project",
// "instance"
// ],
// "parameters": {
// "instance": {
// "description": "Cloud SQL instance ID. This does not include the project ID.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "project": {
// "description": "Project ID of the project that contains the instance.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "projects/{project}/instances/{instance}/listServerCas",
// "response": {
// "$ref": "InstancesListServerCasResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/sqlservice.admin"
// ]
// }
}
// method id "sql.instances.patch":
type InstancesPatchCall struct {
@ -6293,6 +6684,152 @@ func (c *InstancesRestoreBackupCall) Do(opts ...googleapi.CallOption) (*Operatio
}
// method id "sql.instances.rotateServerCa":
type InstancesRotateServerCaCall struct {
s *Service
project string
instance string
instancesrotateservercarequest *InstancesRotateServerCaRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// RotateServerCa: Rotates the server certificate to one signed by the
// Certificate Authority (CA) version previously added with the
// addServerCA method.
func (r *InstancesService) RotateServerCa(project string, instance string, instancesrotateservercarequest *InstancesRotateServerCaRequest) *InstancesRotateServerCaCall {
c := &InstancesRotateServerCaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.instance = instance
c.instancesrotateservercarequest = instancesrotateservercarequest
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 *InstancesRotateServerCaCall) Fields(s ...googleapi.Field) *InstancesRotateServerCaCall {
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 *InstancesRotateServerCaCall) Context(ctx context.Context) *InstancesRotateServerCaCall {
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 *InstancesRotateServerCaCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *InstancesRotateServerCaCall) 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.instancesrotateservercarequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/instances/{instance}/rotateServerCa")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"project": c.project,
"instance": c.instance,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "sql.instances.rotateServerCa" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.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 *InstancesRotateServerCaCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{
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": "Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.",
// "httpMethod": "POST",
// "id": "sql.instances.rotateServerCa",
// "parameterOrder": [
// "project",
// "instance"
// ],
// "parameters": {
// "instance": {
// "description": "Cloud SQL instance ID. This does not include the project ID.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "project": {
// "description": "Project ID of the project that contains the instance.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "projects/{project}/instances/{instance}/rotateServerCa",
// "request": {
// "$ref": "InstancesRotateServerCaRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/sqlservice.admin"
// ]
// }
}
// method id "sql.instances.startReplica":
type InstancesStartReplicaCall struct {