forked from TrueCloudLab/restic
Update dependencies
This commit is contained in:
parent
f3b49987f8
commit
fda563d606
926 changed files with 189726 additions and 98666 deletions
425
vendor/google.golang.org/api/identitytoolkit/v3/identitytoolkit-gen.go
generated
vendored
425
vendor/google.golang.org/api/identitytoolkit/v3/identitytoolkit-gen.go
generated
vendored
|
@ -685,6 +685,78 @@ func (s *IdentitytoolkitRelyingpartyResetPasswordRequest) MarshalJSON() ([]byte,
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdentitytoolkitRelyingpartySendVerificationCodeRequest: Request for
|
||||
// Identitytoolkit-SendVerificationCode
|
||||
type IdentitytoolkitRelyingpartySendVerificationCodeRequest struct {
|
||||
// IosReceipt: Receipt of successful app token validation with APNS.
|
||||
IosReceipt string `json:"iosReceipt,omitempty"`
|
||||
|
||||
// IosSecret: Secret delivered to iOS app via APNS.
|
||||
IosSecret string `json:"iosSecret,omitempty"`
|
||||
|
||||
// PhoneNumber: The phone number to send the verification code to in
|
||||
// E.164 format.
|
||||
PhoneNumber string `json:"phoneNumber,omitempty"`
|
||||
|
||||
// RecaptchaToken: Recaptcha solution.
|
||||
RecaptchaToken string `json:"recaptchaToken,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "IosReceipt") 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. "IosReceipt") 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 *IdentitytoolkitRelyingpartySendVerificationCodeRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod IdentitytoolkitRelyingpartySendVerificationCodeRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdentitytoolkitRelyingpartySendVerificationCodeResponse: Response for
|
||||
// Identitytoolkit-SendVerificationCode
|
||||
type IdentitytoolkitRelyingpartySendVerificationCodeResponse struct {
|
||||
// SessionInfo: Encrypted session information
|
||||
SessionInfo string `json:"sessionInfo,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "SessionInfo") 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. "SessionInfo") 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 *IdentitytoolkitRelyingpartySendVerificationCodeResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod IdentitytoolkitRelyingpartySendVerificationCodeResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdentitytoolkitRelyingpartySetAccountInfoRequest: Request to set the
|
||||
// account information.
|
||||
type IdentitytoolkitRelyingpartySetAccountInfoRequest struct {
|
||||
|
@ -697,6 +769,10 @@ type IdentitytoolkitRelyingpartySetAccountInfoRequest struct {
|
|||
// CreatedAt: The timestamp when the account is created.
|
||||
CreatedAt int64 `json:"createdAt,omitempty,string"`
|
||||
|
||||
// CustomAttributes: The custom attributes to be set in the user's id
|
||||
// token.
|
||||
CustomAttributes string `json:"customAttributes,omitempty"`
|
||||
|
||||
// DelegatedProjectNumber: GCP project number of the requesting
|
||||
// delegated app. Currently only intended for Firebase V1 migration.
|
||||
DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"`
|
||||
|
@ -1013,10 +1089,17 @@ type IdentitytoolkitRelyingpartyUploadAccountRequest struct {
|
|||
// local_id exists.
|
||||
AllowOverwrite bool `json:"allowOverwrite,omitempty"`
|
||||
|
||||
BlockSize int64 `json:"blockSize,omitempty"`
|
||||
|
||||
// CpuMemCost: The following 4 fields are for standard scrypt algorithm.
|
||||
CpuMemCost int64 `json:"cpuMemCost,omitempty"`
|
||||
|
||||
// DelegatedProjectNumber: GCP project number of the requesting
|
||||
// delegated app. Currently only intended for Firebase V1 migration.
|
||||
DelegatedProjectNumber int64 `json:"delegatedProjectNumber,omitempty,string"`
|
||||
|
||||
DkLen int64 `json:"dkLen,omitempty"`
|
||||
|
||||
// HashAlgorithm: The password hash algorithm.
|
||||
HashAlgorithm string `json:"hashAlgorithm,omitempty"`
|
||||
|
||||
|
@ -1024,6 +1107,8 @@ type IdentitytoolkitRelyingpartyUploadAccountRequest struct {
|
|||
// algorithms.
|
||||
MemoryCost int64 `json:"memoryCost,omitempty"`
|
||||
|
||||
Parallelization int64 `json:"parallelization,omitempty"`
|
||||
|
||||
// Rounds: Rounds for hash calculation. Used by scrypt and similar
|
||||
// algorithms.
|
||||
Rounds int64 `json:"rounds,omitempty"`
|
||||
|
@ -1235,6 +1320,98 @@ func (s *IdentitytoolkitRelyingpartyVerifyPasswordRequest) MarshalJSON() ([]byte
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest: Request for
|
||||
// Identitytoolkit-VerifyPhoneNumber
|
||||
type IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
|
||||
IdToken string `json:"idToken,omitempty"`
|
||||
|
||||
Operation string `json:"operation,omitempty"`
|
||||
|
||||
PhoneNumber string `json:"phoneNumber,omitempty"`
|
||||
|
||||
// SessionInfo: The session info previously returned by
|
||||
// IdentityToolkit-SendVerificationCode.
|
||||
SessionInfo string `json:"sessionInfo,omitempty"`
|
||||
|
||||
TemporaryProof string `json:"temporaryProof,omitempty"`
|
||||
|
||||
VerificationProof string `json:"verificationProof,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 *IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse: Response for
|
||||
// Identitytoolkit-VerifyPhoneNumber
|
||||
type IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse struct {
|
||||
ExpiresIn int64 `json:"expiresIn,omitempty,string"`
|
||||
|
||||
IdToken string `json:"idToken,omitempty"`
|
||||
|
||||
IsNewUser bool `json:"isNewUser,omitempty"`
|
||||
|
||||
LocalId string `json:"localId,omitempty"`
|
||||
|
||||
PhoneNumber string `json:"phoneNumber,omitempty"`
|
||||
|
||||
RefreshToken string `json:"refreshToken,omitempty"`
|
||||
|
||||
TemporaryProof string `json:"temporaryProof,omitempty"`
|
||||
|
||||
TemporaryProofExpiresIn int64 `json:"temporaryProofExpiresIn,omitempty,string"`
|
||||
|
||||
VerificationProof string `json:"verificationProof,omitempty"`
|
||||
|
||||
VerificationProofExpiresIn int64 `json:"verificationProofExpiresIn,omitempty,string"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ExpiresIn") 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. "ExpiresIn") 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 *IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse
|
||||
raw := noMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// IdpConfig: Template for a single idp configuration.
|
||||
type IdpConfig struct {
|
||||
// ClientId: OAuth2 client ID.
|
||||
|
@ -1628,6 +1805,10 @@ type UserInfo struct {
|
|||
// CreatedAt: User creation timestamp.
|
||||
CreatedAt int64 `json:"createdAt,omitempty,string"`
|
||||
|
||||
// CustomAttributes: The custom attributes to be set in the user's id
|
||||
// token.
|
||||
CustomAttributes string `json:"customAttributes,omitempty"`
|
||||
|
||||
// CustomAuth: Whether the user is authenticated by the developer.
|
||||
CustomAuth bool `json:"customAuth,omitempty"`
|
||||
|
||||
|
@ -1941,6 +2122,10 @@ type VerifyCustomTokenResponse struct {
|
|||
// IdToken: The GITKit token for authenticated user.
|
||||
IdToken string `json:"idToken,omitempty"`
|
||||
|
||||
// IsNewUser: True if it's a new user sign-in, false if it's a returning
|
||||
// user.
|
||||
IsNewUser bool `json:"isNewUser,omitempty"`
|
||||
|
||||
// Kind: The fixed string "identitytoolkit#VerifyCustomTokenResponse".
|
||||
Kind string `json:"kind,omitempty"`
|
||||
|
||||
|
@ -3141,6 +3326,126 @@ func (c *RelyingpartyResetPasswordCall) Do(opts ...googleapi.CallOption) (*Reset
|
|||
|
||||
}
|
||||
|
||||
// method id "identitytoolkit.relyingparty.sendVerificationCode":
|
||||
|
||||
type RelyingpartySendVerificationCodeCall struct {
|
||||
s *Service
|
||||
identitytoolkitrelyingpartysendverificationcoderequest *IdentitytoolkitRelyingpartySendVerificationCodeRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// SendVerificationCode: Send SMS verification code.
|
||||
func (r *RelyingpartyService) SendVerificationCode(identitytoolkitrelyingpartysendverificationcoderequest *IdentitytoolkitRelyingpartySendVerificationCodeRequest) *RelyingpartySendVerificationCodeCall {
|
||||
c := &RelyingpartySendVerificationCodeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.identitytoolkitrelyingpartysendverificationcoderequest = identitytoolkitrelyingpartysendverificationcoderequest
|
||||
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 *RelyingpartySendVerificationCodeCall) Fields(s ...googleapi.Field) *RelyingpartySendVerificationCodeCall {
|
||||
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 *RelyingpartySendVerificationCodeCall) Context(ctx context.Context) *RelyingpartySendVerificationCodeCall {
|
||||
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 *RelyingpartySendVerificationCodeCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *RelyingpartySendVerificationCodeCall) 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.identitytoolkitrelyingpartysendverificationcoderequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "sendVerificationCode")
|
||||
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.sendVerificationCode" call.
|
||||
// Exactly one of
|
||||
// *IdentitytoolkitRelyingpartySendVerificationCodeResponse or error
|
||||
// will be non-nil. Any non-2xx status code is an error. Response
|
||||
// headers are in either
|
||||
// *IdentitytoolkitRelyingpartySendVerificationCodeResponse.ServerRespons
|
||||
// e.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 *RelyingpartySendVerificationCodeCall) Do(opts ...googleapi.CallOption) (*IdentitytoolkitRelyingpartySendVerificationCodeResponse, 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 := &IdentitytoolkitRelyingpartySendVerificationCodeResponse{
|
||||
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": "Send SMS verification code.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "identitytoolkit.relyingparty.sendVerificationCode",
|
||||
// "path": "sendVerificationCode",
|
||||
// "request": {
|
||||
// "$ref": "IdentitytoolkitRelyingpartySendVerificationCodeRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "IdentitytoolkitRelyingpartySendVerificationCodeResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "identitytoolkit.relyingparty.setAccountInfo":
|
||||
|
||||
type RelyingpartySetAccountInfoCall struct {
|
||||
|
@ -4081,3 +4386,123 @@ func (c *RelyingpartyVerifyPasswordCall) Do(opts ...googleapi.CallOption) (*Veri
|
|||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "identitytoolkit.relyingparty.verifyPhoneNumber":
|
||||
|
||||
type RelyingpartyVerifyPhoneNumberCall struct {
|
||||
s *Service
|
||||
identitytoolkitrelyingpartyverifyphonenumberrequest *IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// VerifyPhoneNumber: Verifies ownership of a phone number and
|
||||
// creates/updates the user account accordingly.
|
||||
func (r *RelyingpartyService) VerifyPhoneNumber(identitytoolkitrelyingpartyverifyphonenumberrequest *IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest) *RelyingpartyVerifyPhoneNumberCall {
|
||||
c := &RelyingpartyVerifyPhoneNumberCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.identitytoolkitrelyingpartyverifyphonenumberrequest = identitytoolkitrelyingpartyverifyphonenumberrequest
|
||||
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 *RelyingpartyVerifyPhoneNumberCall) Fields(s ...googleapi.Field) *RelyingpartyVerifyPhoneNumberCall {
|
||||
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 *RelyingpartyVerifyPhoneNumberCall) Context(ctx context.Context) *RelyingpartyVerifyPhoneNumberCall {
|
||||
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 *RelyingpartyVerifyPhoneNumberCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *RelyingpartyVerifyPhoneNumberCall) 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.identitytoolkitrelyingpartyverifyphonenumberrequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "verifyPhoneNumber")
|
||||
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.verifyPhoneNumber" call.
|
||||
// Exactly one of *IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse
|
||||
// or error will be non-nil. Any non-2xx status code is an error.
|
||||
// Response headers are in either
|
||||
// *IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse.ServerResponse.H
|
||||
// eader 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 *RelyingpartyVerifyPhoneNumberCall) Do(opts ...googleapi.CallOption) (*IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse, 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 := &IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse{
|
||||
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": "Verifies ownership of a phone number and creates/updates the user account accordingly.",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "identitytoolkit.relyingparty.verifyPhoneNumber",
|
||||
// "path": "verifyPhoneNumber",
|
||||
// "request": {
|
||||
// "$ref": "IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue