serviceaccounts

package
v1.29.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package serviceaccounts provides primitives to interact with the openapi HTTP API.

Code generated by github.com/do87/stackit-client-generator version v0.0.2 DO NOT EDIT.

Index

Constants

View Source
const (
	AuthorizationScopes = "Authorization.Scopes"
)

Variables

View Source
var BaseURLs = baseurl.New(
	"service_accounts",
	"https://api.stackit.cloud/service-account/",
)

Functions

func NewCreateAccessTokensRequest

func NewCreateAccessTokensRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, body CreateAccessTokensJSONRequestBody) (*http.Request, error)

NewCreateAccessTokensRequest calls the generic CreateAccessTokens builder with application/json body

func NewCreateAccessTokensRequestWithBody

func NewCreateAccessTokensRequestWithBody(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader) (*http.Request, error)

NewCreateAccessTokensRequestWithBody generates requests for CreateAccessTokens with any type of body

func NewCreateKeysRequest

func NewCreateKeysRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, body CreateKeysJSONRequestBody) (*http.Request, error)

NewCreateKeysRequest calls the generic CreateKeys builder with application/json body

func NewCreateKeysRequestWithBody

func NewCreateKeysRequestWithBody(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader) (*http.Request, error)

NewCreateKeysRequestWithBody generates requests for CreateKeys with any type of body

func NewCreateRequest

func NewCreateRequest(ctx context.Context, server string, projectId string, body CreateJSONRequestBody) (*http.Request, error)

NewCreateRequest calls the generic Create builder with application/json body

func NewCreateRequestWithBody

func NewCreateRequestWithBody(ctx context.Context, server string, projectId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRequestWithBody generates requests for Create with any type of body

func NewCreateTokenRequestWithBody

func NewCreateTokenRequestWithBody(ctx context.Context, server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateTokenRequestWithBody generates requests for CreateToken with any type of body

func NewCreateTokenRequestWithFormdataBody

func NewCreateTokenRequestWithFormdataBody(ctx context.Context, server string, body CreateTokenFormdataRequestBody) (*http.Request, error)

NewCreateTokenRequestWithFormdataBody calls the generic CreateToken builder with application/x-www-form-urlencoded body

func NewDeleteAccessTokensRequest

func NewDeleteAccessTokensRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, accessTokenId openapiTypes.UUID) (*http.Request, error)

NewDeleteAccessTokensRequest generates requests for DeleteAccessTokens

func NewDeleteKeysRequest

func NewDeleteKeysRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID) (*http.Request, error)

NewDeleteKeysRequest generates requests for DeleteKeys

func NewDeleteRequest

func NewDeleteRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email) (*http.Request, error)

NewDeleteRequest generates requests for Delete

func NewGeKeyRequest

func NewGeKeyRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, params *GeKeyParams) (*http.Request, error)

NewGeKeyRequest generates requests for GeKey

func NewGetAccessTokensRequest

func NewGetAccessTokensRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email) (*http.Request, error)

NewGetAccessTokensRequest generates requests for GetAccessTokens

func NewGetKeysRequest

func NewGetKeysRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email) (*http.Request, error)

NewGetKeysRequest generates requests for GetKeys

func NewGetRequest

func NewGetRequest(ctx context.Context, server string, projectId string) (*http.Request, error)

NewGetRequest generates requests for Get

func NewGetServiceAccountJwksRequest

func NewGetServiceAccountJwksRequest(ctx context.Context, server string, serviceAccountEmail openapiTypes.Email) (*http.Request, error)

NewGetServiceAccountJwksRequest generates requests for GetServiceAccountJwks

func NewUpdateKeysRequest

func NewUpdateKeysRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, body UpdateKeysJSONRequestBody) (*http.Request, error)

NewUpdateKeysRequest calls the generic UpdateKeys builder with application/json body

func NewUpdateKeysRequestWithBody

func NewUpdateKeysRequestWithBody(ctx context.Context, server string, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateKeysRequestWithBody generates requests for UpdateKeys with any type of body

Types

type AccessTokenMetadataV2

type AccessTokenMetadataV2 struct {
	// Active If true, access token can be used for authorized API calls, if false, the token is not usable anymore.
	Active bool `json:"active"`

	// CreatedAt Creation time of the access token.
	CreatedAt time.Time `json:"createdAt"`

	// Id Unique ID of the access token. Also used as JTI field.
	ID openapiTypes.UUID `json:"id"`

	// ValidUntil Approximate expiration time of the access token. Check the JWT for actual validity date.
	ValidUntil time.Time `json:"validUntil"`
}

AccessTokenMetadataV2 Does not contain the actual token.

type AccessTokenV2

type AccessTokenV2 struct {
	// Active Newly created access tokens are valid, and can be revoked if needed.
	Active bool `json:"active"`

	// CreatedAt Creation time of the access token.
	CreatedAt time.Time `json:"createdAt"`

	// Id Unique ID of the access token. Also used as JTI field.
	ID openapiTypes.UUID `json:"id"`

	// Token The access token in JWT format. Use this with `Bearer` prefix for API calls. Store it, as it is not recoverable later.
	Token string `json:"token"`

	// ValidUntil Approximate expiration time of the access token. Check the JWT for actual validity date.
	ValidUntil time.Time `json:"validUntil"`
}

AccessTokenV2 Contains token metadata and actual token.

type AuthError

type AuthError struct {
	Error struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
		Status  string `json:"status"`
	} `json:"error"`
}

AuthError defines model for AuthError.

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 contracts.BaseClientInterface
}

Client which conforms to the OpenAPI3 specification for this service.

func NewRawClient

func NewRawClient(server string, httpClient contracts.BaseClientInterface) *Client

NewRawClient Creates a new Client, with reasonable defaults

func (*Client) CreateAccessTokensRaw

func (c *Client) CreateAccessTokensRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, body CreateAccessTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAccessTokensRawWithBody

func (c *Client) CreateAccessTokensRawWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateKeysRaw

func (c *Client) CreateKeysRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, body CreateKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateKeysRawWithBody

func (c *Client) CreateKeysRawWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRaw

func (c *Client) CreateRaw(ctx context.Context, projectId string, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRawWithBody

func (c *Client) CreateRawWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTokenRawWithBody

func (c *Client) CreateTokenRawWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateTokenWithFormdataBodyRaw

func (c *Client) CreateTokenWithFormdataBodyRaw(ctx context.Context, body CreateTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAccessTokensRaw

func (c *Client) DeleteAccessTokensRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, accessTokenId openapiTypes.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteKeysRaw

func (c *Client) DeleteKeysRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRaw

func (c *Client) DeleteRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GeKeyRaw

func (c *Client) GeKeyRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, params *GeKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAccessTokensRaw

func (c *Client) GetAccessTokensRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetKeysRaw

func (c *Client) GetKeysRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRaw

func (c *Client) GetRaw(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetServiceAccountJwksRaw

func (c *Client) GetServiceAccountJwksRaw(ctx context.Context, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateKeysRaw

func (c *Client) UpdateKeysRaw(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, body UpdateKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateKeysRawWithBody

func (c *Client) UpdateKeysRawWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientWithResponses

type ClientWithResponses struct {
	// contains filtered or unexported fields
}

ClientWithResponses builds on rawClientInterface to offer response payloads

func NewClient

func NewClient(server string, httpClient contracts.BaseClientInterface) *ClientWithResponses

NewClient creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) Create

func (c *ClientWithResponses) Create(ctx context.Context, projectId string, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

func (*ClientWithResponses) CreateAccessTokens

func (c *ClientWithResponses) CreateAccessTokens(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, body CreateAccessTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessTokensResponse, error)

func (*ClientWithResponses) CreateAccessTokensWithBody

func (c *ClientWithResponses) CreateAccessTokensWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessTokensResponse, error)

CreateAccessTokensWithBody request with arbitrary body returning *CreateAccessTokensResponse

func (*ClientWithResponses) CreateKeys

func (c *ClientWithResponses) CreateKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, body CreateKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKeysResponse, error)

func (*ClientWithResponses) CreateKeysWithBody

func (c *ClientWithResponses) CreateKeysWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateKeysResponse, error)

CreateKeysWithBody request with arbitrary body returning *CreateKeysResponse

func (*ClientWithResponses) CreateTokenWithBody

func (c *ClientWithResponses) CreateTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

CreateTokenWithBody request with arbitrary body returning *CreateTokenResponse

func (*ClientWithResponses) CreateTokenWithFormdataBody

func (c *ClientWithResponses) CreateTokenWithFormdataBody(ctx context.Context, body CreateTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

func (*ClientWithResponses) CreateWithBody

func (c *ClientWithResponses) CreateWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)

CreateWithBody request with arbitrary body returning *CreateResponse

func (*ClientWithResponses) Delete

func (c *ClientWithResponses) Delete(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*DeleteResponse, error)

Delete request returning *DeleteResponse

func (*ClientWithResponses) DeleteAccessTokens

func (c *ClientWithResponses) DeleteAccessTokens(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, accessTokenId openapiTypes.UUID, reqEditors ...RequestEditorFn) (*DeleteAccessTokensResponse, error)

DeleteAccessTokens request returning *DeleteAccessTokensResponse

func (*ClientWithResponses) DeleteKeys

func (c *ClientWithResponses) DeleteKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, reqEditors ...RequestEditorFn) (*DeleteKeysResponse, error)

DeleteKeys request returning *DeleteKeysResponse

func (*ClientWithResponses) GeKey

func (c *ClientWithResponses) GeKey(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, params *GeKeyParams, reqEditors ...RequestEditorFn) (*GeKeyResponse, error)

GeKey request returning *GeKeyResponse

func (*ClientWithResponses) Get

func (c *ClientWithResponses) Get(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*GetResponse, error)

Get request returning *GetResponse

func (*ClientWithResponses) GetAccessTokens

func (c *ClientWithResponses) GetAccessTokens(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*GetAccessTokensResponse, error)

GetAccessTokens request returning *GetAccessTokensResponse

func (*ClientWithResponses) GetKeys

func (c *ClientWithResponses) GetKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*GetKeysResponse, error)

GetKeys request returning *GetKeysResponse

func (*ClientWithResponses) GetServiceAccountJwks

func (c *ClientWithResponses) GetServiceAccountJwks(ctx context.Context, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*GetServiceAccountJwksResponse, error)

GetServiceAccountJwks request returning *GetServiceAccountJwksResponse

func (*ClientWithResponses) ParseCreateAccessTokensResponse

func (c *ClientWithResponses) ParseCreateAccessTokensResponse(rsp *http.Response) (*CreateAccessTokensResponse, error)

ParseCreateAccessTokensResponse parses an HTTP response from a CreateAccessTokens call

func (*ClientWithResponses) ParseCreateKeysResponse

func (c *ClientWithResponses) ParseCreateKeysResponse(rsp *http.Response) (*CreateKeysResponse, error)

ParseCreateKeysResponse parses an HTTP response from a CreateKeys call

func (*ClientWithResponses) ParseCreateResponse

func (c *ClientWithResponses) ParseCreateResponse(rsp *http.Response) (*CreateResponse, error)

ParseCreateResponse parses an HTTP response from a Create call

func (*ClientWithResponses) ParseCreateTokenResponse

func (c *ClientWithResponses) ParseCreateTokenResponse(rsp *http.Response) (*CreateTokenResponse, error)

ParseCreateTokenResponse parses an HTTP response from a CreateToken call

func (*ClientWithResponses) ParseDeleteAccessTokensResponse

func (c *ClientWithResponses) ParseDeleteAccessTokensResponse(rsp *http.Response) (*DeleteAccessTokensResponse, error)

ParseDeleteAccessTokensResponse parses an HTTP response from a DeleteAccessTokens call

func (*ClientWithResponses) ParseDeleteKeysResponse

func (c *ClientWithResponses) ParseDeleteKeysResponse(rsp *http.Response) (*DeleteKeysResponse, error)

ParseDeleteKeysResponse parses an HTTP response from a DeleteKeys call

func (*ClientWithResponses) ParseDeleteResponse

func (c *ClientWithResponses) ParseDeleteResponse(rsp *http.Response) (*DeleteResponse, error)

ParseDeleteResponse parses an HTTP response from a Delete call

func (*ClientWithResponses) ParseGeKeyResponse

func (c *ClientWithResponses) ParseGeKeyResponse(rsp *http.Response) (*GeKeyResponse, error)

ParseGeKeyResponse parses an HTTP response from a GeKey call

func (*ClientWithResponses) ParseGetAccessTokensResponse

func (c *ClientWithResponses) ParseGetAccessTokensResponse(rsp *http.Response) (*GetAccessTokensResponse, error)

ParseGetAccessTokensResponse parses an HTTP response from a GetAccessTokens call

func (*ClientWithResponses) ParseGetKeysResponse

func (c *ClientWithResponses) ParseGetKeysResponse(rsp *http.Response) (*GetKeysResponse, error)

ParseGetKeysResponse parses an HTTP response from a GetKeys call

func (*ClientWithResponses) ParseGetResponse

func (c *ClientWithResponses) ParseGetResponse(rsp *http.Response) (*GetResponse, error)

ParseGetResponse parses an HTTP response from a Get call

func (*ClientWithResponses) ParseGetServiceAccountJwksResponse

func (c *ClientWithResponses) ParseGetServiceAccountJwksResponse(rsp *http.Response) (*GetServiceAccountJwksResponse, error)

ParseGetServiceAccountJwksResponse parses an HTTP response from a GetServiceAccountJwks call

func (*ClientWithResponses) ParseUpdateKeysResponse

func (c *ClientWithResponses) ParseUpdateKeysResponse(rsp *http.Response) (*UpdateKeysResponse, error)

ParseUpdateKeysResponse parses an HTTP response from a UpdateKeys call

func (*ClientWithResponses) UpdateKeys

func (c *ClientWithResponses) UpdateKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, body UpdateKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKeysResponse, error)

func (*ClientWithResponses) UpdateKeysWithBody

func (c *ClientWithResponses) UpdateKeysWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKeysResponse, error)

UpdateKeysWithBody request with arbitrary body returning *UpdateKeysResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// CreateToken request with any body
	CreateTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

	CreateTokenWithFormdataBody(ctx context.Context, body CreateTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

	// Get request
	Get(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*GetResponse, error)

	// Create request with any body
	CreateWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	Create(ctx context.Context, projectId string, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	// Delete request
	Delete(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*DeleteResponse, error)

	// GetAccessTokens request
	GetAccessTokens(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*GetAccessTokensResponse, error)

	// CreateAccessTokens request with any body
	CreateAccessTokensWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessTokensResponse, error)

	CreateAccessTokens(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, body CreateAccessTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessTokensResponse, error)

	// DeleteAccessTokens request
	DeleteAccessTokens(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, accessTokenId openapiTypes.UUID, reqEditors ...RequestEditorFn) (*DeleteAccessTokensResponse, error)

	// GetKeys request
	GetKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*GetKeysResponse, error)

	// CreateKeys request with any body
	CreateKeysWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateKeysResponse, error)

	CreateKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, body CreateKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKeysResponse, error)

	// DeleteKeys request
	DeleteKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, reqEditors ...RequestEditorFn) (*DeleteKeysResponse, error)

	// GeKey request
	GeKey(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, params *GeKeyParams, reqEditors ...RequestEditorFn) (*GeKeyResponse, error)

	// UpdateKeys request with any body
	UpdateKeysWithBody(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKeysResponse, error)

	UpdateKeys(ctx context.Context, projectId string, serviceAccountEmail openapiTypes.Email, keyId openapiTypes.UUID, body UpdateKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKeysResponse, error)

	// GetServiceAccountJwks request
	GetServiceAccountJwks(ctx context.Context, serviceAccountEmail openapiTypes.Email, reqEditors ...RequestEditorFn) (*GetServiceAccountJwksResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateAccessTokenRequestBody

type CreateAccessTokenRequestBody struct {
	// TtlDays The duration in days for how long the new Access Token should be valid.
	TtlDays int `json:"ttlDays"`
}

CreateAccessTokenRequestBody defines model for CreateAccessTokenRequestBody.

type CreateAccessTokensJSONRequestBody

type CreateAccessTokensJSONRequestBody = CreateAccessTokenRequestBody

CreateAccessTokensJSONRequestBody defines body for CreateAccessTokens for application/json ContentType.

type CreateAccessTokensResponse

type CreateAccessTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *AccessTokenV2
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *Error
	JSON404      *Error
	Error        error // Aggregated error
}

func (CreateAccessTokensResponse) Status

Status returns HTTPResponse.Status

func (CreateAccessTokensResponse) StatusCode

func (r CreateAccessTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateJSONRequestBody

type CreateJSONRequestBody = CreateServiceAccountRequestBodyV2

CreateJSONRequestBody defines body for Create for application/json ContentType.

type CreateKeysJSONRequestBody

type CreateKeysJSONRequestBody = ServiceAccountKeyRequest

CreateKeysJSONRequestBody defines body for CreateKeys for application/json ContentType.

type CreateKeysResponse

type CreateKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ServiceAccountKeyPrivateResponse
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *Error
	JSON409      *Error
	Error        error // Aggregated error
}

func (CreateKeysResponse) Status

func (r CreateKeysResponse) Status() string

Status returns HTTPResponse.Status

func (CreateKeysResponse) StatusCode

func (r CreateKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateResponse

type CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ServiceAccountV2
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *Error
	JSON409      *Error
	Error        error // Aggregated error
}

func (CreateResponse) Status

func (r CreateResponse) Status() string

Status returns HTTPResponse.Status

func (CreateResponse) StatusCode

func (r CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceAccountRequestBodyV2

type CreateServiceAccountRequestBodyV2 struct {
	// Name The requested name of the service account. The service will generate a unique email from this name.
	Name string `json:"name"`
}

CreateServiceAccountRequestBodyV2 defines model for CreateServiceAccountRequestBodyV2.

type CreateTokenFormdataRequestBody

type CreateTokenFormdataRequestBody = TokenRequestBody

CreateTokenFormdataRequestBody defines body for CreateToken for application/x-www-form-urlencoded ContentType.

type CreateTokenResponse

type CreateTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TokenResponseBody
	Error        error // Aggregated error
}

func (CreateTokenResponse) Status

func (r CreateTokenResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTokenResponse) StatusCode

func (r CreateTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAccessTokensResponse

type DeleteAccessTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *Error
	JSON404      *Error
	JSON409      *Error
	Error        error // Aggregated error
}

func (DeleteAccessTokensResponse) Status

Status returns HTTPResponse.Status

func (DeleteAccessTokensResponse) StatusCode

func (r DeleteAccessTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteKeysResponse

type DeleteKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *AuthError
	Error        error // Aggregated error
}

func (DeleteKeysResponse) Status

func (r DeleteKeysResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteKeysResponse) StatusCode

func (r DeleteKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteResponse

type DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *Error
	JSON404      *Error
	Error        error // Aggregated error
}

func (DeleteResponse) Status

func (r DeleteResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteResponse) StatusCode

func (r DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	Error     string    `json:"error"`
	Message   string    `json:"message"`
	Path      string    `json:"path"`
	Status    int       `json:"status"`
	TimeStamp time.Time `json:"timeStamp"`
}

Error Contains error information.

type GeKeyParams

type GeKeyParams struct {
	// Format Requested format for the public key
	Format *GeKeyParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}

GeKeyParams defines parameters for GeKey.

type GeKeyParamsFormat

type GeKeyParamsFormat string

GeKeyParamsFormat defines parameters for GeKey.

const (
	X509_PEM GeKeyParamsFormat = "X509_PEM"
)

Defines values for GeKeyParamsFormat.

type GeKeyResponse

type GeKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ServiceAccountKeyResponseWithKey
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *AuthError
	Error        error // Aggregated error
}

func (GeKeyResponse) Status

func (r GeKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GeKeyResponse) StatusCode

func (r GeKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAccessTokensResponse

type GetAccessTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetAccessTokensResponseBodyV2
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *Error
	JSON404      *Error
	Error        error // Aggregated error
}

func (GetAccessTokensResponse) Status

func (r GetAccessTokensResponse) Status() string

Status returns HTTPResponse.Status

func (GetAccessTokensResponse) StatusCode

func (r GetAccessTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAccessTokensResponseBodyV2

type GetAccessTokensResponseBodyV2 struct {
	Items *[]AccessTokenMetadataV2 `json:"items,omitempty"`
}

GetAccessTokensResponseBodyV2 defines model for GetAccessTokensResponseBodyV2.

type GetJWKResponseBody

type GetJWKResponseBody struct {
	Keys []JsonWebKey `json:"keys"`
}

GetJWKResponseBody defines model for GetJWKResponseBody.

type GetKeysResponse

type GetKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetServiceAccountsKeysResponseBody
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *AuthError
	Error        error // Aggregated error
}

func (GetKeysResponse) Status

func (r GetKeysResponse) Status() string

Status returns HTTPResponse.Status

func (GetKeysResponse) StatusCode

func (r GetKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResponse

type GetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetServiceAccountsResponseBodyV2
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *AuthError
	Error        error // Aggregated error
}

func (GetResponse) Status

func (r GetResponse) Status() string

Status returns HTTPResponse.Status

func (GetResponse) StatusCode

func (r GetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceAccountJwksResponse

type GetServiceAccountJwksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetJWKResponseBody
	Error        error // Aggregated error
}

func (GetServiceAccountJwksResponse) Status

Status returns HTTPResponse.Status

func (GetServiceAccountJwksResponse) StatusCode

func (r GetServiceAccountJwksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceAccountsKeysResponseBody

type GetServiceAccountsKeysResponseBody struct {
	Items []ServiceAccountKeyListResponse `json:"items"`
}

GetServiceAccountsKeysResponseBody defines model for GetServiceAccountsKeysResponseBody.

type GetServiceAccountsResponseBodyV2

type GetServiceAccountsResponseBodyV2 struct {
	Items []ServiceAccountV2 `json:"items"`
}

GetServiceAccountsResponseBodyV2 defines model for GetServiceAccountsResponseBodyV2.

type JsonWebKey

type JsonWebKey struct {
	Alg    *string `json:"alg,omitempty"`
	E      string  `json:"e"`
	Kid    *string `json:"kid,omitempty"`
	Ks     *string `json:"ks,omitempty"`
	N      string  `json:"n"`
	Ops    *string `json:"ops,omitempty"`
	Use    *string `json:"use,omitempty"`
	X5c    *string `json:"x5c,omitempty"`
	X5t    *string `json:"x5t,omitempty"`
	X5t256 *string `json:"x5t256,omitempty"`
	X5u    *string `json:"x5u,omitempty"`
}

JsonWebKey JSON Web Key according to https://datatracker.ietf.org/doc/html/rfc7517#section-4

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServiceAccountKeyListResponse

type ServiceAccountKeyListResponse struct {
	Active bool `json:"active"`

	// CreatedAt Creation time of the key
	CreatedAt time.Time `json:"createdAt"`

	// Id Unique ID of the key.
	ID           openapiTypes.UUID                         `json:"id"`
	KeyAlgorithm ServiceAccountKeyListResponseKeyAlgorithm `json:"keyAlgorithm"`
	KeyOrigin    ServiceAccountKeyListResponseKeyOrigin    `json:"keyOrigin"`
	KeyType      ServiceAccountKeyListResponseKeyType      `json:"keyType"`

	// ValidUntil If specified, the timestamp until the key is active. May be null
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

ServiceAccountKeyListResponse defines model for ServiceAccountKeyListResponse.

type ServiceAccountKeyListResponseKeyAlgorithm

type ServiceAccountKeyListResponseKeyAlgorithm string

ServiceAccountKeyListResponseKeyAlgorithm defines model for ServiceAccountKeyListResponse.KeyAlgorithm.

const (
	SERVICE_ACCOUNT_KEY_LIST_RESPONSE_KEY_ALGORITHM_RSA_2048 ServiceAccountKeyListResponseKeyAlgorithm = "RSA_2048"
)

Defines values for ServiceAccountKeyListResponseKeyAlgorithm.

type ServiceAccountKeyListResponseKeyOrigin

type ServiceAccountKeyListResponseKeyOrigin string

ServiceAccountKeyListResponseKeyOrigin defines model for ServiceAccountKeyListResponse.KeyOrigin.

const (
	SERVICE_ACCOUNT_KEY_LIST_RESPONSE_KEY_ORIGIN_GENERATED     ServiceAccountKeyListResponseKeyOrigin = "GENERATED"
	SERVICE_ACCOUNT_KEY_LIST_RESPONSE_KEY_ORIGIN_USER_PROVIDED ServiceAccountKeyListResponseKeyOrigin = "USER_PROVIDED"
)

Defines values for ServiceAccountKeyListResponseKeyOrigin.

type ServiceAccountKeyListResponseKeyType

type ServiceAccountKeyListResponseKeyType string

ServiceAccountKeyListResponseKeyType defines model for ServiceAccountKeyListResponse.KeyType.

const (
	SERVICE_ACCOUNT_KEY_LIST_RESPONSE_KEY_TYPE_SYSTEM_MANAGED ServiceAccountKeyListResponseKeyType = "SYSTEM_MANAGED"
	SERVICE_ACCOUNT_KEY_LIST_RESPONSE_KEY_TYPE_USER_MANAGED   ServiceAccountKeyListResponseKeyType = "USER_MANAGED"
)

Defines values for ServiceAccountKeyListResponseKeyType.

type ServiceAccountKeyPatchResponse

type ServiceAccountKeyPatchResponse struct {
	Active bool `json:"active"`

	// CreatedAt Creation time of the key
	CreatedAt time.Time `json:"createdAt"`

	// Id Unique ID of the key.
	ID           openapiTypes.UUID                          `json:"id"`
	KeyAlgorithm ServiceAccountKeyPatchResponseKeyAlgorithm `json:"keyAlgorithm"`
	KeyOrigin    ServiceAccountKeyPatchResponseKeyOrigin    `json:"keyOrigin"`
	KeyType      ServiceAccountKeyPatchResponseKeyType      `json:"keyType"`

	// ValidUntil If specified, the timestamp until the key is active. May be null
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

ServiceAccountKeyPatchResponse defines model for ServiceAccountKeyPatchResponse.

type ServiceAccountKeyPatchResponseKeyAlgorithm

type ServiceAccountKeyPatchResponseKeyAlgorithm string

ServiceAccountKeyPatchResponseKeyAlgorithm defines model for ServiceAccountKeyPatchResponse.KeyAlgorithm.

const (
	SERVICE_ACCOUNT_KEY_PATCH_RESPONSE_KEY_ALGORITHM_RSA_2048 ServiceAccountKeyPatchResponseKeyAlgorithm = "RSA_2048"
)

Defines values for ServiceAccountKeyPatchResponseKeyAlgorithm.

type ServiceAccountKeyPatchResponseKeyOrigin

type ServiceAccountKeyPatchResponseKeyOrigin string

ServiceAccountKeyPatchResponseKeyOrigin defines model for ServiceAccountKeyPatchResponse.KeyOrigin.

const (
	SERVICE_ACCOUNT_KEY_PATCH_RESPONSE_KEY_ORIGIN_GENERATED     ServiceAccountKeyPatchResponseKeyOrigin = "GENERATED"
	SERVICE_ACCOUNT_KEY_PATCH_RESPONSE_KEY_ORIGIN_USER_PROVIDED ServiceAccountKeyPatchResponseKeyOrigin = "USER_PROVIDED"
)

Defines values for ServiceAccountKeyPatchResponseKeyOrigin.

type ServiceAccountKeyPatchResponseKeyType

type ServiceAccountKeyPatchResponseKeyType string

ServiceAccountKeyPatchResponseKeyType defines model for ServiceAccountKeyPatchResponse.KeyType.

const (
	SERVICE_ACCOUNT_KEY_PATCH_RESPONSE_KEY_TYPE_SYSTEM_MANAGED ServiceAccountKeyPatchResponseKeyType = "SYSTEM_MANAGED"
	SERVICE_ACCOUNT_KEY_PATCH_RESPONSE_KEY_TYPE_USER_MANAGED   ServiceAccountKeyPatchResponseKeyType = "USER_MANAGED"
)

Defines values for ServiceAccountKeyPatchResponseKeyType.

type ServiceAccountKeyPrivateResponse

type ServiceAccountKeyPrivateResponse struct {
	Active bool `json:"active"`

	// CreatedAt Creation time of the key
	CreatedAt   time.Time `json:"createdAt"`
	Credentials struct {
		// Aud Audience - service account API URL
		Aud string `json:"aud"`

		// Iss Service account email
		Iss openapiTypes.Email `json:"iss"`

		// Kid Key id to use
		Kid string `json:"kid"`

		// PrivateKey Private key. Only present, if the service account API was generating the key. Not recoverable later.
		PrivateKey *string `json:"privateKey,omitempty"`

		// Sub Service account id
		Sub openapiTypes.UUID `json:"sub"`
	} `json:"credentials"`

	// Id Unique ID of the key.
	ID           openapiTypes.UUID                            `json:"id"`
	KeyAlgorithm ServiceAccountKeyPrivateResponseKeyAlgorithm `json:"keyAlgorithm"`
	KeyOrigin    ServiceAccountKeyPrivateResponseKeyOrigin    `json:"keyOrigin"`
	KeyType      ServiceAccountKeyPrivateResponseKeyType      `json:"keyType"`

	// PublicKey Public key, that was provider, or was generated by the service account API
	PublicKey string `json:"publicKey"`

	// ValidUntil If specified, the timestamp until the key is active. May be null
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

ServiceAccountKeyPrivateResponse defines model for ServiceAccountKeyPrivateResponse.

type ServiceAccountKeyPrivateResponseKeyAlgorithm

type ServiceAccountKeyPrivateResponseKeyAlgorithm string

ServiceAccountKeyPrivateResponseKeyAlgorithm defines model for ServiceAccountKeyPrivateResponse.KeyAlgorithm.

const (
	SERVICE_ACCOUNT_KEY_PRIVATE_RESPONSE_KEY_ALGORITHM_RSA_2048 ServiceAccountKeyPrivateResponseKeyAlgorithm = "RSA_2048"
)

Defines values for ServiceAccountKeyPrivateResponseKeyAlgorithm.

type ServiceAccountKeyPrivateResponseKeyOrigin

type ServiceAccountKeyPrivateResponseKeyOrigin string

ServiceAccountKeyPrivateResponseKeyOrigin defines model for ServiceAccountKeyPrivateResponse.KeyOrigin.

const (
	SERVICE_ACCOUNT_KEY_PRIVATE_RESPONSE_KEY_ORIGIN_GENERATED     ServiceAccountKeyPrivateResponseKeyOrigin = "GENERATED"
	SERVICE_ACCOUNT_KEY_PRIVATE_RESPONSE_KEY_ORIGIN_USER_PROVIDED ServiceAccountKeyPrivateResponseKeyOrigin = "USER_PROVIDED"
)

Defines values for ServiceAccountKeyPrivateResponseKeyOrigin.

type ServiceAccountKeyPrivateResponseKeyType

type ServiceAccountKeyPrivateResponseKeyType string

ServiceAccountKeyPrivateResponseKeyType defines model for ServiceAccountKeyPrivateResponse.KeyType.

const (
	SERVICE_ACCOUNT_KEY_PRIVATE_RESPONSE_KEY_TYPE_SYSTEM_MANAGED ServiceAccountKeyPrivateResponseKeyType = "SYSTEM_MANAGED"
	SERVICE_ACCOUNT_KEY_PRIVATE_RESPONSE_KEY_TYPE_USER_MANAGED   ServiceAccountKeyPrivateResponseKeyType = "USER_MANAGED"
)

Defines values for ServiceAccountKeyPrivateResponseKeyType.

type ServiceAccountKeyRequest

type ServiceAccountKeyRequest struct {
	// PublicKey Optional, public key part of the user generated RSA key-pair wrapped in a [X.509 v3 certificate](https://www.rfc-editor.org/rfc/rfc5280)
	PublicKey *string `json:"publicKey,omitempty"`

	// ValidUntil Optional, date of key expiration. When omitted, key is valid until deleted
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

ServiceAccountKeyRequest defines model for ServiceAccountKeyRequest.

type ServiceAccountKeyResponseWithKey

type ServiceAccountKeyResponseWithKey struct {
	Active bool `json:"active"`

	// CreatedAt Creation time of the key
	CreatedAt   time.Time `json:"createdAt"`
	Credentials struct {
		// Aud Audience - service account API URL
		Aud string `json:"aud"`

		// Iss Service account email
		Iss openapiTypes.Email `json:"iss"`

		// Kid Key id to use
		Kid string `json:"kid"`

		// Sub Service account id
		Sub openapiTypes.UUID `json:"sub"`
	} `json:"credentials"`

	// Id Unique ID of the key.
	ID           openapiTypes.UUID                            `json:"id"`
	KeyAlgorithm ServiceAccountKeyResponseWithKeyKeyAlgorithm `json:"keyAlgorithm"`
	KeyOrigin    ServiceAccountKeyResponseWithKeyKeyOrigin    `json:"keyOrigin"`
	KeyType      ServiceAccountKeyResponseWithKeyKeyType      `json:"keyType"`

	// PublicKey Public key, in the requested format
	PublicKey *string `json:"publicKey,omitempty"`

	// ValidUntil If specified, the timestamp until the key is active. May be null
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

ServiceAccountKeyResponseWithKey defines model for ServiceAccountKeyResponseWithKey.

type ServiceAccountKeyResponseWithKeyKeyAlgorithm

type ServiceAccountKeyResponseWithKeyKeyAlgorithm string

ServiceAccountKeyResponseWithKeyKeyAlgorithm defines model for ServiceAccountKeyResponseWithKey.KeyAlgorithm.

const (
	SERVICE_ACCOUNT_KEY_RESPONSE_WITH_KEY_KEY_ALGORITHM_RSA_2048 ServiceAccountKeyResponseWithKeyKeyAlgorithm = "RSA_2048"
)

Defines values for ServiceAccountKeyResponseWithKeyKeyAlgorithm.

type ServiceAccountKeyResponseWithKeyKeyOrigin

type ServiceAccountKeyResponseWithKeyKeyOrigin string

ServiceAccountKeyResponseWithKeyKeyOrigin defines model for ServiceAccountKeyResponseWithKey.KeyOrigin.

const (
	SERVICE_ACCOUNT_KEY_RESPONSE_WITH_KEY_KEY_ORIGIN_GENERATED     ServiceAccountKeyResponseWithKeyKeyOrigin = "GENERATED"
	SERVICE_ACCOUNT_KEY_RESPONSE_WITH_KEY_KEY_ORIGIN_USER_PROVIDED ServiceAccountKeyResponseWithKeyKeyOrigin = "USER_PROVIDED"
)

Defines values for ServiceAccountKeyResponseWithKeyKeyOrigin.

type ServiceAccountKeyResponseWithKeyKeyType

type ServiceAccountKeyResponseWithKeyKeyType string

ServiceAccountKeyResponseWithKeyKeyType defines model for ServiceAccountKeyResponseWithKey.KeyType.

const (
	SERVICE_ACCOUNT_KEY_RESPONSE_WITH_KEY_KEY_TYPE_SYSTEM_MANAGED ServiceAccountKeyResponseWithKeyKeyType = "SYSTEM_MANAGED"
	SERVICE_ACCOUNT_KEY_RESPONSE_WITH_KEY_KEY_TYPE_USER_MANAGED   ServiceAccountKeyResponseWithKeyKeyType = "USER_MANAGED"
)

Defines values for ServiceAccountKeyResponseWithKeyKeyType.

type ServiceAccountKeyUpdateRequest

type ServiceAccountKeyUpdateRequest struct {
	// Active Active keys are valid, while inactive keys are temporarily deactivated.
	Active *bool `json:"active,omitempty"`

	// ValidUntil Optional, date of key expiration. When omitted, key is valid until deleted
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

ServiceAccountKeyUpdateRequest defines model for ServiceAccountKeyUpdateRequest.

type ServiceAccountV2

type ServiceAccountV2 struct {
	// Email Unique identifier of the service account in format of an email address generated by the service containing the prefix provided by the user during creation.
	Email openapiTypes.Email `json:"email"`

	// Id Unique ID of the service account. It is also used in the 'sub' field of the service accounts access tokens.
	ID openapiTypes.UUID `json:"id"`

	// ProjectId ID of the related project
	ProjectID string `json:"projectId"`
}

ServiceAccountV2 defines model for ServiceAccountV2.

type TokenRequestBody

type TokenRequestBody struct {
	// Assertion The self signed JWT. Must be given when grant_type is urn:ietf:params:oauth:grant-type:jwt-bearer
	Assertion *string `json:"assertion,omitempty"`

	// GrantType Always use URL encoded values. E.g. urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer
	GrantType TokenRequestBodyGrantType `json:"grant_type"`

	// RefreshToken Refresh token provided by a previous call with a self signed token. Must be given when grant_type is refresh_token
	RefreshToken *string `json:"refresh_token,omitempty"`
}

TokenRequestBody defines model for TokenRequestBody.

type TokenRequestBodyGrantType

type TokenRequestBodyGrantType string

TokenRequestBodyGrantType Always use URL encoded values. E.g. urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer

const (
	REFRESH_TOKEN                               TokenRequestBodyGrantType = "refresh_token"
	URN_IETF_PARAMS_OAUTH_GRANT_TYPE_JWT_BEARER TokenRequestBodyGrantType = "urn:ietf:params:oauth:grant-type:jwt-bearer"
)

Defines values for TokenRequestBodyGrantType.

type TokenResponseBody

type TokenResponseBody struct {
	// AccessToken The short lived token that can be used for API access
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`

	// RefreshToken Refresh token that can be used to request a new access token when it expires (and before refresh token expires). Tokens are rotated.
	RefreshToken string `json:"refresh_token"`

	// Scope scope field of the self signed token
	Scope     string                     `json:"scope"`
	TokenType TokenResponseBodyTokenType `json:"token_type"`
}

TokenResponseBody defines model for TokenResponseBody.

type TokenResponseBodyTokenType

type TokenResponseBodyTokenType string

TokenResponseBodyTokenType defines model for TokenResponseBody.TokenType.

const (
	BEARER TokenResponseBodyTokenType = "Bearer"
)

Defines values for TokenResponseBodyTokenType.

type UpdateKeysJSONRequestBody

type UpdateKeysJSONRequestBody = ServiceAccountKeyUpdateRequest

UpdateKeysJSONRequestBody defines body for UpdateKeys for application/json ContentType.

type UpdateKeysResponse

type UpdateKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ServiceAccountKeyPatchResponse
	JSON400      *Error
	JSON401      *AuthError
	JSON403      *Error
	JSON409      *Error
	Error        error // Aggregated error
}

func (UpdateKeysResponse) Status

func (r UpdateKeysResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateKeysResponse) StatusCode

func (r UpdateKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL