mirror of
https://github.com/restic/restic.git
synced 2025-12-14 02:57:04 +00:00
Upadte vendored dependencies
This commit is contained in:
82
vendor/google.golang.org/api/identitytoolkit/v3/identitytoolkit-api.json
generated
vendored
82
vendor/google.golang.org/api/identitytoolkit/v3/identitytoolkit-api.json
generated
vendored
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/YDuUtEWk-s4RoFmU1uyfiL_piZ0\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/-CIGDhyktArHgwyopFUaXBy_0sc\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "identitytoolkit:v3",
|
||||
"name": "identitytoolkit",
|
||||
"canonicalName": "Identity Toolkit",
|
||||
"version": "v3",
|
||||
"revision": "20170828",
|
||||
"revision": "20170927",
|
||||
"title": "Google Identity Toolkit API",
|
||||
"description": "Help the third party sites to implement federated login.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -120,6 +120,13 @@
|
||||
"sessionId": {
|
||||
"type": "string",
|
||||
"description": "Session ID which should be passed in the following verifyAssertion request."
|
||||
},
|
||||
"signinMethods": {
|
||||
"type": "array",
|
||||
"description": "All sign-in methods this user has used.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -158,6 +165,43 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EmailLinkSigninResponse": {
|
||||
"id": "EmailLinkSigninResponse",
|
||||
"type": "object",
|
||||
"description": "Response of email signIn.",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": "The user's email."
|
||||
},
|
||||
"expiresIn": {
|
||||
"type": "string",
|
||||
"description": "Expiration time of STS id token in seconds.",
|
||||
"format": "int64"
|
||||
},
|
||||
"idToken": {
|
||||
"type": "string",
|
||||
"description": "The STS id token to login the newly signed in user."
|
||||
},
|
||||
"isNewUser": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the user is new."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The fixed string \"identitytoolkit#EmailLinkSigninResponse\".",
|
||||
"default": "identitytoolkit#EmailLinkSigninResponse"
|
||||
},
|
||||
"localId": {
|
||||
"type": "string",
|
||||
"description": "The RP local ID of the user."
|
||||
},
|
||||
"refreshToken": {
|
||||
"type": "string",
|
||||
"description": "The refresh token for the signed in user."
|
||||
}
|
||||
}
|
||||
},
|
||||
"EmailTemplate": {
|
||||
"id": "EmailTemplate",
|
||||
"type": "object",
|
||||
@@ -360,6 +404,25 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"IdentitytoolkitRelyingpartyEmailLinkSigninRequest": {
|
||||
"id": "IdentitytoolkitRelyingpartyEmailLinkSigninRequest",
|
||||
"type": "object",
|
||||
"description": "Request to sign in with email.",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": "The email address of the user."
|
||||
},
|
||||
"idToken": {
|
||||
"type": "string",
|
||||
"description": "Token for linking flow."
|
||||
},
|
||||
"oobCode": {
|
||||
"type": "string",
|
||||
"description": "The confirmation code."
|
||||
}
|
||||
}
|
||||
},
|
||||
"IdentitytoolkitRelyingpartyGetAccountInfoRequest": {
|
||||
"id": "IdentitytoolkitRelyingpartyGetAccountInfoRequest",
|
||||
"type": "object",
|
||||
@@ -1751,6 +1814,21 @@
|
||||
"https://www.googleapis.com/auth/firebase"
|
||||
]
|
||||
},
|
||||
"emailLinkSignin": {
|
||||
"id": "identitytoolkit.relyingparty.emailLinkSignin",
|
||||
"path": "emailLinkSignin",
|
||||
"httpMethod": "POST",
|
||||
"description": "Reset password for a user.",
|
||||
"request": {
|
||||
"$ref": "IdentitytoolkitRelyingpartyEmailLinkSigninRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "EmailLinkSigninResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"getAccountInfo": {
|
||||
"id": "identitytoolkit.relyingparty.getAccountInfo",
|
||||
"path": "getAccountInfo",
|
||||
|
||||
205
vendor/google.golang.org/api/identitytoolkit/v3/identitytoolkit-gen.go
generated
vendored
205
vendor/google.golang.org/api/identitytoolkit/v3/identitytoolkit-gen.go
generated
vendored
@@ -118,6 +118,9 @@ type CreateAuthUriResponse struct {
|
||||
// verifyAssertion request.
|
||||
SessionId string `json:"sessionId,omitempty"`
|
||||
|
||||
// SigninMethods: All sign-in methods this user has used.
|
||||
SigninMethods []string `json:"signinMethods,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
@@ -216,6 +219,56 @@ func (s *DownloadAccountResponse) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// EmailLinkSigninResponse: Response of email signIn.
|
||||
type EmailLinkSigninResponse struct {
|
||||
// Email: The user's email.
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// ExpiresIn: Expiration time of STS id token in seconds.
|
||||
ExpiresIn int64 `json:"expiresIn,omitempty,string"`
|
||||
|
||||
// IdToken: The STS id token to login the newly signed in user.
|
||||
IdToken string `json:"idToken,omitempty"`
|
||||
|
||||
// IsNewUser: Whether the user is new.
|
||||
IsNewUser bool `json:"isNewUser,omitempty"`
|
||||
|
||||
// Kind: The fixed string "identitytoolkit#EmailLinkSigninResponse".
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
// LocalId: The RP local ID of the user.
|
||||
LocalId string `json:"localId,omitempty"`
|
||||
|
||||
// RefreshToken: The refresh token for the signed in user.
|
||||
RefreshToken string `json:"refreshToken,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *EmailLinkSigninResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod EmailLinkSigninResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// EmailTemplate: Template for an email template.
|
||||
type EmailTemplate struct {
|
||||
// Body: Email body.
|
||||
@@ -536,6 +589,41 @@ func (s *IdentitytoolkitRelyingpartyDownloadAccountRequest) MarshalJSON() ([]byt
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdentitytoolkitRelyingpartyEmailLinkSigninRequest: Request to sign in
|
||||
// with email.
|
||||
type IdentitytoolkitRelyingpartyEmailLinkSigninRequest struct {
|
||||
// Email: The email address of the user.
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// IdToken: Token for linking flow.
|
||||
IdToken string `json:"idToken,omitempty"`
|
||||
|
||||
// OobCode: The confirmation code.
|
||||
OobCode string `json:"oobCode,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 *IdentitytoolkitRelyingpartyEmailLinkSigninRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod IdentitytoolkitRelyingpartyEmailLinkSigninRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdentitytoolkitRelyingpartyGetAccountInfoRequest: Request to get the
|
||||
// account information.
|
||||
type IdentitytoolkitRelyingpartyGetAccountInfoRequest struct {
|
||||
@@ -2603,6 +2691,123 @@ func (c *RelyingpartyDownloadAccountCall) Pages(ctx context.Context, f func(*Dow
|
||||
}
|
||||
}
|
||||
|
||||
// method id "identitytoolkit.relyingparty.emailLinkSignin":
|
||||
|
||||
type RelyingpartyEmailLinkSigninCall struct {
|
||||
s *Service
|
||||
identitytoolkitrelyingpartyemaillinksigninrequest *IdentitytoolkitRelyingpartyEmailLinkSigninRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// EmailLinkSignin: Reset password for a user.
|
||||
func (r *RelyingpartyService) EmailLinkSignin(identitytoolkitrelyingpartyemaillinksigninrequest *IdentitytoolkitRelyingpartyEmailLinkSigninRequest) *RelyingpartyEmailLinkSigninCall {
|
||||
c := &RelyingpartyEmailLinkSigninCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.identitytoolkitrelyingpartyemaillinksigninrequest = identitytoolkitrelyingpartyemaillinksigninrequest
|
||||
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 *RelyingpartyEmailLinkSigninCall) Fields(s ...googleapi.Field) *RelyingpartyEmailLinkSigninCall {
|
||||
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 *RelyingpartyEmailLinkSigninCall) Context(ctx context.Context) *RelyingpartyEmailLinkSigninCall {
|
||||
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 *RelyingpartyEmailLinkSigninCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *RelyingpartyEmailLinkSigninCall) 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.identitytoolkitrelyingpartyemaillinksigninrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "emailLinkSignin")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "identitytoolkit.relyingparty.emailLinkSignin" call.
|
||||
// Exactly one of *EmailLinkSigninResponse or error will be non-nil. Any
|
||||
// non-2xx status code is an error. Response headers are in either
|
||||
// *EmailLinkSigninResponse.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 *RelyingpartyEmailLinkSigninCall) Do(opts ...googleapi.CallOption) (*EmailLinkSigninResponse, 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 := &EmailLinkSigninResponse{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Reset password for a user.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "identitytoolkit.relyingparty.emailLinkSignin",
|
||||
// "path": "emailLinkSignin",
|
||||
// "request": {
|
||||
// "$ref": "IdentitytoolkitRelyingpartyEmailLinkSigninRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "EmailLinkSigninResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "identitytoolkit.relyingparty.getAccountInfo":
|
||||
|
||||
type RelyingpartyGetAccountInfoCall struct {
|
||||
|
||||
Reference in New Issue
Block a user