Documentation
¶
Overview ¶
Package generatedfcm provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- Constants
- func NewCheckInFCMClientRequestWithBody(server string, params *CheckInFCMClientParams, contentType string, ...) (*http.Request, error)
- func NewCreateFCMInstallationRequest(server string, params *CreateFCMInstallationParams, ...) (*http.Request, error)
- func NewCreateFCMInstallationRequestWithBody(server string, params *CreateFCMInstallationParams, contentType string, ...) (*http.Request, error)
- func NewRegisterFCMClientRequestWithBody(server string, params *RegisterFCMClientParams, contentType string, ...) (*http.Request, error)
- func NewRegisterFCMClientRequestWithFormdataBody(server string, params *RegisterFCMClientParams, ...) (*http.Request, error)
- func NewRegisterFCMInstallationRequest(server string, params *RegisterFCMInstallationParams, ...) (*http.Request, error)
- func NewRegisterFCMInstallationRequestWithBody(server string, params *RegisterFCMInstallationParams, contentType string, ...) (*http.Request, error)
- type AndroidCheckinRequestWire
- type AndroidCheckinResponseWire
- type CheckInFCMClientParams
- type CheckInFCMClientParamsContentType
- type CheckInFCMClientResponse
- type Client
- func (c *Client) CheckInFCMClientWithBody(ctx context.Context, params *CheckInFCMClientParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateFCMInstallation(ctx context.Context, params *CreateFCMInstallationParams, ...) (*http.Response, error)
- func (c *Client) CreateFCMInstallationWithBody(ctx context.Context, params *CreateFCMInstallationParams, contentType string, ...) (*http.Response, error)
- func (c *Client) RegisterFCMClientWithBody(ctx context.Context, params *RegisterFCMClientParams, contentType string, ...) (*http.Response, error)
- func (c *Client) RegisterFCMClientWithFormdataBody(ctx context.Context, params *RegisterFCMClientParams, ...) (*http.Response, error)
- func (c *Client) RegisterFCMInstallation(ctx context.Context, params *RegisterFCMInstallationParams, ...) (*http.Response, error)
- func (c *Client) RegisterFCMInstallationWithBody(ctx context.Context, params *RegisterFCMInstallationParams, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CheckInFCMClientWithBodyWithResponse(ctx context.Context, params *CheckInFCMClientParams, contentType string, ...) (*CheckInFCMClientResponse, error)
- func (c *ClientWithResponses) CreateFCMInstallationWithBodyWithResponse(ctx context.Context, params *CreateFCMInstallationParams, contentType string, ...) (*CreateFCMInstallationResponse, error)
- func (c *ClientWithResponses) CreateFCMInstallationWithResponse(ctx context.Context, params *CreateFCMInstallationParams, ...) (*CreateFCMInstallationResponse, error)
- func (c *ClientWithResponses) RegisterFCMClientWithBodyWithResponse(ctx context.Context, params *RegisterFCMClientParams, contentType string, ...) (*RegisterFCMClientResponse, error)
- func (c *ClientWithResponses) RegisterFCMClientWithFormdataBodyWithResponse(ctx context.Context, params *RegisterFCMClientParams, ...) (*RegisterFCMClientResponse, error)
- func (c *ClientWithResponses) RegisterFCMInstallationWithBodyWithResponse(ctx context.Context, params *RegisterFCMInstallationParams, contentType string, ...) (*RegisterFCMInstallationResponse, error)
- func (c *ClientWithResponses) RegisterFCMInstallationWithResponse(ctx context.Context, params *RegisterFCMInstallationParams, ...) (*RegisterFCMInstallationResponse, error)
- type ClientWithResponsesInterface
- type CreateFCMInstallationJSONRequestBody
- type CreateFCMInstallationParams
- type CreateFCMInstallationParamsAccept
- type CreateFCMInstallationParamsContentType
- type CreateFCMInstallationParamsXGoogApiKey
- type CreateFCMInstallationResponse
- func (r CreateFCMInstallationResponse) ContentType() string
- func (r CreateFCMInstallationResponse) GetBody() []byte
- func (r CreateFCMInstallationResponse) GetJSON200() *InstallationResponse
- func (r CreateFCMInstallationResponse) GetJSON201() *InstallationResponse
- func (r CreateFCMInstallationResponse) Status() string
- func (r CreateFCMInstallationResponse) StatusCode() int
- type FCMRegistrationRequest
- type FCMRegistrationResponse
- type FCMWebRegistration
- type GoogleAPIKey
- type HttpRequestDoer
- type InstallationAuthToken
- type InstallationRequest
- type InstallationRequestAppId
- type InstallationRequestAuthVersion
- type InstallationRequestSdkVersion
- type InstallationResponse
- type JSONAccept
- type JSONContentType
- type LegacyRegistrationRequest
- type LegacyRegistrationRequestApp
- type LegacyRegistrationRequestSender
- type LegacyRegistrationRequestXSubtype
- type LegacyRegistrationResponse
- type ProtobufContentType
- type RegisterFCMClientFormdataRequestBody
- type RegisterFCMClientParams
- type RegisterFCMClientParamsContentType
- type RegisterFCMClientResponse
- type RegisterFCMInstallationJSONRequestBody
- type RegisterFCMInstallationParams
- type RegisterFCMInstallationParamsContentType
- type RegisterFCMInstallationParamsXGoogApiKey
- type RegisterFCMInstallationResponse
- func (r RegisterFCMInstallationResponse) ContentType() string
- func (r RegisterFCMInstallationResponse) GetBody() []byte
- func (r RegisterFCMInstallationResponse) GetJSON200() *FCMRegistrationResponse
- func (r RegisterFCMInstallationResponse) GetJSON201() *FCMRegistrationResponse
- func (r RegisterFCMInstallationResponse) Status() string
- func (r RegisterFCMInstallationResponse) StatusCode() int
- type RequestEditorFn
- type RingPushNotificationConfig
- type RingPushNotificationDevice
- type RingPushNotificationEnvelope
- type RingPushNotificationEnvelopeAndroidConfig0
- type RingPushNotificationEnvelopeData0
- type RingPushNotificationEnvelope_AndroidConfig
- type RingPushNotificationEnvelope_Data
- type RingPushNotificationGCMData
- type RingPushNotificationPayload
Constants ¶
const ( ApplicationxWwwFormUrlencoded = fcmmodels.ApplicationxWwwFormUrlencoded BDOU99H67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv4L2LxQcYwhqby2xGpWwzjfAnG4 = fcmmodels.BDOU99H67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv4L2LxQcYwhqby2xGpWwzjfAnG4 CheckInFCMClientParamsContentTypeApplicationxProtobuf = fcmmodels.CheckInFCMClientParamsContentTypeApplicationxProtobuf CreateFCMInstallationParamsAcceptApplicationjson = fcmmodels.CreateFCMInstallationParamsAcceptApplicationjson CreateFCMInstallationParamsContentTypeApplicationjson = fcmmodels.CreateFCMInstallationParamsContentTypeApplicationjson CreateFCMInstallationParamsXGoogApiKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 = fcmmodels.CreateFCMInstallationParamsXGoogApiKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 FISV2 = fcmmodels.FISV2 GoogleAPIKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 = fcmmodels.GoogleAPIKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 InstallationRequestAppIdN1876313859327AndroidE10ec6ddb3c81f39 = fcmmodels.InstallationRequestAppIdN1876313859327AndroidE10ec6ddb3c81f39 JSONAcceptApplicationjson = fcmmodels.JSONAcceptApplicationjson JSONContentTypeApplicationjson = fcmmodels.JSONContentTypeApplicationjson LegacyRegistrationRequestXSubtypeN1876313859327AndroidE10ec6ddb3c81f39 = fcmmodels.LegacyRegistrationRequestXSubtypeN1876313859327AndroidE10ec6ddb3c81f39 OrgChromiumLinux = fcmmodels.OrgChromiumLinux ProtobufContentTypeApplicationxProtobuf = fcmmodels.ProtobufContentTypeApplicationxProtobuf RegisterFCMInstallationParamsContentTypeApplicationjson = fcmmodels.RegisterFCMInstallationParamsContentTypeApplicationjson RegisterFCMInstallationParamsXGoogApiKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 = fcmmodels.RegisterFCMInstallationParamsXGoogApiKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 W0617 = fcmmodels.W0617 )
Variables ¶
This section is empty.
Functions ¶
func NewCheckInFCMClientRequestWithBody ¶
func NewCheckInFCMClientRequestWithBody(server string, params *CheckInFCMClientParams, contentType string, body io.Reader) (*http.Request, error)
NewCheckInFCMClientRequestWithBody constructs an http.Request for the CheckInFCMClient method, with any body, and a specified content type
func NewCreateFCMInstallationRequest ¶
func NewCreateFCMInstallationRequest(server string, params *CreateFCMInstallationParams, body CreateFCMInstallationJSONRequestBody) (*http.Request, error)
NewCreateFCMInstallationRequest calls the generic CreateFCMInstallation builder with application/json body
func NewCreateFCMInstallationRequestWithBody ¶
func NewCreateFCMInstallationRequestWithBody(server string, params *CreateFCMInstallationParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateFCMInstallationRequestWithBody constructs an http.Request for the CreateFCMInstallation method, with any body, and a specified content type
func NewRegisterFCMClientRequestWithBody ¶
func NewRegisterFCMClientRequestWithBody(server string, params *RegisterFCMClientParams, contentType string, body io.Reader) (*http.Request, error)
NewRegisterFCMClientRequestWithBody constructs an http.Request for the RegisterFCMClient method, with any body, and a specified content type
func NewRegisterFCMClientRequestWithFormdataBody ¶
func NewRegisterFCMClientRequestWithFormdataBody(server string, params *RegisterFCMClientParams, body RegisterFCMClientFormdataRequestBody) (*http.Request, error)
NewRegisterFCMClientRequestWithFormdataBody calls the generic RegisterFCMClient builder with application/x-www-form-urlencoded body
func NewRegisterFCMInstallationRequest ¶
func NewRegisterFCMInstallationRequest(server string, params *RegisterFCMInstallationParams, body RegisterFCMInstallationJSONRequestBody) (*http.Request, error)
NewRegisterFCMInstallationRequest calls the generic RegisterFCMInstallation builder with application/json body
func NewRegisterFCMInstallationRequestWithBody ¶
func NewRegisterFCMInstallationRequestWithBody(server string, params *RegisterFCMInstallationParams, contentType string, body io.Reader) (*http.Request, error)
NewRegisterFCMInstallationRequestWithBody constructs an http.Request for the RegisterFCMInstallation method, with any body, and a specified content type
Types ¶
type AndroidCheckinRequestWire ¶
type AndroidCheckinRequestWire = fcmmodels.AndroidCheckinRequestWire
type AndroidCheckinResponseWire ¶
type AndroidCheckinResponseWire = fcmmodels.AndroidCheckinResponseWire
type CheckInFCMClientParams ¶
type CheckInFCMClientParams = fcmmodels.CheckInFCMClientParams
type CheckInFCMClientParamsContentType ¶
type CheckInFCMClientParamsContentType = fcmmodels.CheckInFCMClientParamsContentType
type CheckInFCMClientResponse ¶
func ParseCheckInFCMClientResponse ¶
func ParseCheckInFCMClientResponse(rsp *http.Response) (*CheckInFCMClientResponse, error)
ParseCheckInFCMClientResponse parses an HTTP response from a CheckInFCMClientWithResponse call
func (CheckInFCMClientResponse) ContentType ¶
func (r CheckInFCMClientResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CheckInFCMClientResponse) GetBody ¶
func (r CheckInFCMClientResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CheckInFCMClientResponse) Status ¶
func (r CheckInFCMClientResponse) Status() string
Status returns HTTPResponse.Status
func (CheckInFCMClientResponse) StatusCode ¶
func (r CheckInFCMClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CheckInFCMClientWithBody ¶
func (c *Client) CheckInFCMClientWithBody(ctx context.Context, params *CheckInFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckInFCMClientWithBody Check in an Android or Chrome client
Sends an Android check-in protobuf and receives assigned device credentials.
Takes any type of body and a specified content type.
Corresponds with POST /checkin (the `CheckInFCMClient` operationId).
func (*Client) CreateFCMInstallation ¶
func (c *Client) CreateFCMInstallation(ctx context.Context, params *CreateFCMInstallationParams, body CreateFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFCMInstallation Create a Firebase installation
Creates an installation identity used to authorize FCM registration.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
func (*Client) CreateFCMInstallationWithBody ¶
func (c *Client) CreateFCMInstallationWithBody(ctx context.Context, params *CreateFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFCMInstallationWithBody Create a Firebase installation
Creates an installation identity used to authorize FCM registration.
Takes any type of body and a specified content type.
Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
func (*Client) RegisterFCMClientWithBody ¶
func (c *Client) RegisterFCMClientWithBody(ctx context.Context, params *RegisterFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterFCMClientWithBody Register a client with legacy C2DM
Exchanges the check-in device ID and security token for a registration token.
Takes any type of body and a specified content type.
Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
func (*Client) RegisterFCMClientWithFormdataBody ¶
func (c *Client) RegisterFCMClientWithFormdataBody(ctx context.Context, params *RegisterFCMClientParams, body RegisterFCMClientFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterFCMClientWithFormdataBody Register a client with legacy C2DM
Exchanges the check-in device ID and security token for a registration token.
Takes a body of the `application/x-www-form-urlencoded` content type.
Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
func (*Client) RegisterFCMInstallation ¶
func (c *Client) RegisterFCMInstallation(ctx context.Context, params *RegisterFCMInstallationParams, body RegisterFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterFCMInstallation Register a Firebase installation for FCM
Registers Web Push encryption material and returns an FCM token.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
func (*Client) RegisterFCMInstallationWithBody ¶
func (c *Client) RegisterFCMInstallationWithBody(ctx context.Context, params *RegisterFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterFCMInstallationWithBody Register a Firebase installation for FCM
Registers Web Push encryption material and returns an FCM token.
Takes any type of body and a specified content type.
Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
type ClientInterface ¶
type ClientInterface interface {
// RegisterFCMClientWithBody Register a client with legacy C2DM
//
// Exchanges the check-in device ID and security token for a registration token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
RegisterFCMClientWithBody(ctx context.Context, params *RegisterFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterFCMClientWithFormdataBody Register a client with legacy C2DM
//
// Exchanges the check-in device ID and security token for a registration token.
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
RegisterFCMClientWithFormdataBody(ctx context.Context, params *RegisterFCMClientParams, body RegisterFCMClientFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckInFCMClientWithBody Check in an Android or Chrome client
//
// Sends an Android check-in protobuf and receives assigned device credentials.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /checkin (the `CheckInFCMClient` operationId).
CheckInFCMClientWithBody(ctx context.Context, params *CheckInFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFCMInstallationWithBody Create a Firebase installation
//
// Creates an installation identity used to authorize FCM registration.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
CreateFCMInstallationWithBody(ctx context.Context, params *CreateFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFCMInstallation Create a Firebase installation
//
// Creates an installation identity used to authorize FCM registration.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
CreateFCMInstallation(ctx context.Context, params *CreateFCMInstallationParams, body CreateFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterFCMInstallationWithBody Register a Firebase installation for FCM
//
// Registers Web Push encryption material and returns an FCM token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
RegisterFCMInstallationWithBody(ctx context.Context, params *RegisterFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterFCMInstallation Register a Firebase installation for FCM
//
// Registers Web Push encryption material and returns an FCM token.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
RegisterFCMInstallation(ctx context.Context, params *RegisterFCMInstallationParams, body RegisterFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CheckInFCMClientWithBodyWithResponse ¶
func (c *ClientWithResponses) CheckInFCMClientWithBodyWithResponse(ctx context.Context, params *CheckInFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckInFCMClientResponse, error)
CheckInFCMClientWithBodyWithResponse Check in an Android or Chrome client
Sends an Android check-in protobuf and receives assigned device credentials.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /checkin (the `CheckInFCMClient` operationId).
func (*ClientWithResponses) CreateFCMInstallationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFCMInstallationWithBodyWithResponse(ctx context.Context, params *CreateFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFCMInstallationResponse, error)
CreateFCMInstallationWithBodyWithResponse Create a Firebase installation
Creates an installation identity used to authorize FCM registration.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
func (*ClientWithResponses) CreateFCMInstallationWithResponse ¶
func (c *ClientWithResponses) CreateFCMInstallationWithResponse(ctx context.Context, params *CreateFCMInstallationParams, body CreateFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFCMInstallationResponse, error)
CreateFCMInstallationWithResponse Create a Firebase installation
Creates an installation identity used to authorize FCM registration.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
func (*ClientWithResponses) RegisterFCMClientWithBodyWithResponse ¶
func (c *ClientWithResponses) RegisterFCMClientWithBodyWithResponse(ctx context.Context, params *RegisterFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterFCMClientResponse, error)
RegisterFCMClientWithBodyWithResponse Register a client with legacy C2DM
Exchanges the check-in device ID and security token for a registration token.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
func (*ClientWithResponses) RegisterFCMClientWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) RegisterFCMClientWithFormdataBodyWithResponse(ctx context.Context, params *RegisterFCMClientParams, body RegisterFCMClientFormdataRequestBody, reqEditors ...RequestEditorFn) (*RegisterFCMClientResponse, error)
RegisterFCMClientWithFormdataBodyWithResponse Register a client with legacy C2DM
Exchanges the check-in device ID and security token for a registration token.
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
func (*ClientWithResponses) RegisterFCMInstallationWithBodyWithResponse ¶
func (c *ClientWithResponses) RegisterFCMInstallationWithBodyWithResponse(ctx context.Context, params *RegisterFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterFCMInstallationResponse, error)
RegisterFCMInstallationWithBodyWithResponse Register a Firebase installation for FCM
Registers Web Push encryption material and returns an FCM token.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
func (*ClientWithResponses) RegisterFCMInstallationWithResponse ¶
func (c *ClientWithResponses) RegisterFCMInstallationWithResponse(ctx context.Context, params *RegisterFCMInstallationParams, body RegisterFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterFCMInstallationResponse, error)
RegisterFCMInstallationWithResponse Register a Firebase installation for FCM
Registers Web Push encryption material and returns an FCM token.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// RegisterFCMClientWithBodyWithResponse Register a client with legacy C2DM
//
// Exchanges the check-in device ID and security token for a registration token.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
RegisterFCMClientWithBodyWithResponse(ctx context.Context, params *RegisterFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterFCMClientResponse, error)
// RegisterFCMClientWithFormdataBodyWithResponse Register a client with legacy C2DM
//
// Exchanges the check-in device ID and security token for a registration token.
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /c2dm/register3 (the `RegisterFCMClient` operationId).
RegisterFCMClientWithFormdataBodyWithResponse(ctx context.Context, params *RegisterFCMClientParams, body RegisterFCMClientFormdataRequestBody, reqEditors ...RequestEditorFn) (*RegisterFCMClientResponse, error)
// CheckInFCMClientWithBodyWithResponse Check in an Android or Chrome client
//
// Sends an Android check-in protobuf and receives assigned device credentials.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /checkin (the `CheckInFCMClient` operationId).
CheckInFCMClientWithBodyWithResponse(ctx context.Context, params *CheckInFCMClientParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckInFCMClientResponse, error)
// CreateFCMInstallationWithBodyWithResponse Create a Firebase installation
//
// Creates an installation identity used to authorize FCM registration.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
CreateFCMInstallationWithBodyWithResponse(ctx context.Context, params *CreateFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFCMInstallationResponse, error)
// CreateFCMInstallationWithResponse Create a Firebase installation
//
// Creates an installation identity used to authorize FCM registration.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/projects/ring-17770/installations (the `CreateFCMInstallation` operationId).
CreateFCMInstallationWithResponse(ctx context.Context, params *CreateFCMInstallationParams, body CreateFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFCMInstallationResponse, error)
// RegisterFCMInstallationWithBodyWithResponse Register a Firebase installation for FCM
//
// Registers Web Push encryption material and returns an FCM token.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
RegisterFCMInstallationWithBodyWithResponse(ctx context.Context, params *RegisterFCMInstallationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterFCMInstallationResponse, error)
// RegisterFCMInstallationWithResponse Register a Firebase installation for FCM
//
// Registers Web Push encryption material and returns an FCM token.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/projects/ring-17770/registrations (the `RegisterFCMInstallation` operationId).
RegisterFCMInstallationWithResponse(ctx context.Context, params *RegisterFCMInstallationParams, body RegisterFCMInstallationJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterFCMInstallationResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateFCMInstallationJSONRequestBody ¶
type CreateFCMInstallationJSONRequestBody = fcmmodels.CreateFCMInstallationJSONRequestBody
type CreateFCMInstallationParams ¶
type CreateFCMInstallationParams = fcmmodels.CreateFCMInstallationParams
type CreateFCMInstallationParamsAccept ¶
type CreateFCMInstallationParamsAccept = fcmmodels.CreateFCMInstallationParamsAccept
type CreateFCMInstallationParamsContentType ¶
type CreateFCMInstallationParamsContentType = fcmmodels.CreateFCMInstallationParamsContentType
type CreateFCMInstallationParamsXGoogApiKey ¶
type CreateFCMInstallationParamsXGoogApiKey = fcmmodels.CreateFCMInstallationParamsXGoogApiKey
type CreateFCMInstallationResponse ¶
type CreateFCMInstallationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *InstallationResponse
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *InstallationResponse
}
func ParseCreateFCMInstallationResponse ¶
func ParseCreateFCMInstallationResponse(rsp *http.Response) (*CreateFCMInstallationResponse, error)
ParseCreateFCMInstallationResponse parses an HTTP response from a CreateFCMInstallationWithResponse call
func (CreateFCMInstallationResponse) ContentType ¶
func (r CreateFCMInstallationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateFCMInstallationResponse) GetBody ¶
func (r CreateFCMInstallationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateFCMInstallationResponse) GetJSON200 ¶
func (r CreateFCMInstallationResponse) GetJSON200() *InstallationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateFCMInstallationResponse) GetJSON201 ¶
func (r CreateFCMInstallationResponse) GetJSON201() *InstallationResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateFCMInstallationResponse) Status ¶
func (r CreateFCMInstallationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFCMInstallationResponse) StatusCode ¶
func (r CreateFCMInstallationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FCMRegistrationRequest ¶
type FCMRegistrationRequest = fcmmodels.FCMRegistrationRequest
type FCMRegistrationResponse ¶
type FCMRegistrationResponse = fcmmodels.FCMRegistrationResponse
type FCMWebRegistration ¶
type FCMWebRegistration = fcmmodels.FCMWebRegistration
type GoogleAPIKey ¶
type GoogleAPIKey = fcmmodels.GoogleAPIKey
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InstallationAuthToken ¶
type InstallationAuthToken = fcmmodels.InstallationAuthToken
type InstallationRequest ¶
type InstallationRequest = fcmmodels.InstallationRequest
type InstallationRequestAppId ¶
type InstallationRequestAppId = fcmmodels.InstallationRequestAppId
type InstallationRequestAuthVersion ¶
type InstallationRequestAuthVersion = fcmmodels.InstallationRequestAuthVersion
type InstallationRequestSdkVersion ¶
type InstallationRequestSdkVersion = fcmmodels.InstallationRequestSdkVersion
type InstallationResponse ¶
type InstallationResponse = fcmmodels.InstallationResponse
type JSONAccept ¶
type JSONAccept = fcmmodels.JSONAccept
type JSONContentType ¶
type JSONContentType = fcmmodels.JSONContentType
type LegacyRegistrationRequest ¶
type LegacyRegistrationRequest = fcmmodels.LegacyRegistrationRequest
type LegacyRegistrationRequestApp ¶
type LegacyRegistrationRequestApp = fcmmodels.LegacyRegistrationRequestApp
type LegacyRegistrationRequestSender ¶
type LegacyRegistrationRequestSender = fcmmodels.LegacyRegistrationRequestSender
type LegacyRegistrationRequestXSubtype ¶
type LegacyRegistrationRequestXSubtype = fcmmodels.LegacyRegistrationRequestXSubtype
type LegacyRegistrationResponse ¶
type LegacyRegistrationResponse = fcmmodels.LegacyRegistrationResponse
type ProtobufContentType ¶
type ProtobufContentType = fcmmodels.ProtobufContentType
type RegisterFCMClientFormdataRequestBody ¶
type RegisterFCMClientFormdataRequestBody = fcmmodels.RegisterFCMClientFormdataRequestBody
type RegisterFCMClientParams ¶
type RegisterFCMClientParams = fcmmodels.RegisterFCMClientParams
type RegisterFCMClientParamsContentType ¶
type RegisterFCMClientParamsContentType = fcmmodels.RegisterFCMClientParamsContentType
type RegisterFCMClientResponse ¶
func ParseRegisterFCMClientResponse ¶
func ParseRegisterFCMClientResponse(rsp *http.Response) (*RegisterFCMClientResponse, error)
ParseRegisterFCMClientResponse parses an HTTP response from a RegisterFCMClientWithResponse call
func (RegisterFCMClientResponse) ContentType ¶
func (r RegisterFCMClientResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RegisterFCMClientResponse) GetBody ¶
func (r RegisterFCMClientResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RegisterFCMClientResponse) Status ¶
func (r RegisterFCMClientResponse) Status() string
Status returns HTTPResponse.Status
func (RegisterFCMClientResponse) StatusCode ¶
func (r RegisterFCMClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegisterFCMInstallationJSONRequestBody ¶
type RegisterFCMInstallationJSONRequestBody = fcmmodels.RegisterFCMInstallationJSONRequestBody
type RegisterFCMInstallationParams ¶
type RegisterFCMInstallationParams = fcmmodels.RegisterFCMInstallationParams
type RegisterFCMInstallationParamsContentType ¶
type RegisterFCMInstallationParamsContentType = fcmmodels.RegisterFCMInstallationParamsContentType
type RegisterFCMInstallationParamsXGoogApiKey ¶
type RegisterFCMInstallationParamsXGoogApiKey = fcmmodels.RegisterFCMInstallationParamsXGoogApiKey
type RegisterFCMInstallationResponse ¶
type RegisterFCMInstallationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *FCMRegistrationResponse
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *FCMRegistrationResponse
}
func ParseRegisterFCMInstallationResponse ¶
func ParseRegisterFCMInstallationResponse(rsp *http.Response) (*RegisterFCMInstallationResponse, error)
ParseRegisterFCMInstallationResponse parses an HTTP response from a RegisterFCMInstallationWithResponse call
func (RegisterFCMInstallationResponse) ContentType ¶
func (r RegisterFCMInstallationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RegisterFCMInstallationResponse) GetBody ¶
func (r RegisterFCMInstallationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RegisterFCMInstallationResponse) GetJSON200 ¶
func (r RegisterFCMInstallationResponse) GetJSON200() *FCMRegistrationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RegisterFCMInstallationResponse) GetJSON201 ¶
func (r RegisterFCMInstallationResponse) GetJSON201() *FCMRegistrationResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (RegisterFCMInstallationResponse) Status ¶
func (r RegisterFCMInstallationResponse) Status() string
Status returns HTTPResponse.Status
func (RegisterFCMInstallationResponse) StatusCode ¶
func (r RegisterFCMInstallationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RingPushNotificationConfig ¶
type RingPushNotificationConfig = fcmmodels.RingPushNotificationConfig
type RingPushNotificationDevice ¶
type RingPushNotificationDevice = fcmmodels.RingPushNotificationDevice
type RingPushNotificationEnvelope ¶ added in v0.7.0
type RingPushNotificationEnvelope = fcmmodels.RingPushNotificationEnvelope
type RingPushNotificationEnvelopeAndroidConfig0 ¶ added in v0.7.0
type RingPushNotificationEnvelopeAndroidConfig0 = fcmmodels.RingPushNotificationEnvelopeAndroidConfig0
type RingPushNotificationEnvelopeData0 ¶ added in v0.7.0
type RingPushNotificationEnvelopeData0 = fcmmodels.RingPushNotificationEnvelopeData0
type RingPushNotificationEnvelope_AndroidConfig ¶ added in v0.7.0
type RingPushNotificationEnvelope_AndroidConfig = fcmmodels.RingPushNotificationEnvelope_AndroidConfig
type RingPushNotificationEnvelope_Data ¶ added in v0.7.0
type RingPushNotificationEnvelope_Data = fcmmodels.RingPushNotificationEnvelope_Data
type RingPushNotificationGCMData ¶
type RingPushNotificationGCMData = fcmmodels.RingPushNotificationGCMData
type RingPushNotificationPayload ¶
type RingPushNotificationPayload = fcmmodels.RingPushNotificationPayload