serviceaccounts

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 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/oapi-codegen version v0.5.1 DO NOT EDIT.

Index

Constants

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

Variables

View Source
var BaseURLs = urls.Init(
	"service_accounts",
	"https://api.stackit.cloud/service-account/",
	"https://api-qa.stackit.cloud/service-account/",
	"https://api-dev.stackit.cloud/service-account/",
)

Functions

func NewCreateSAAccessTokensV2Request

func NewCreateSAAccessTokensV2Request(ctx context.Context, server string, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAAccessTokensV2JSONRequestBody) (*http.Request, error)

NewCreateSAAccessTokensV2Request calls the generic CreateSAAccessTokensV2 builder with application/json body

func NewCreateSAAccessTokensV2RequestWithBody

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

NewCreateSAAccessTokensV2RequestWithBody generates requests for CreateSAAccessTokensV2 with any type of body

func NewCreateSAKeysRequest

func NewCreateSAKeysRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAKeysJSONRequestBody) (*http.Request, error)

NewCreateSAKeysRequest calls the generic CreateSAKeys builder with application/json body

func NewCreateSAKeysRequestWithBody

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

NewCreateSAKeysRequestWithBody generates requests for CreateSAKeys with any type of body

func NewCreateSAv2Request

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

NewCreateSAv2Request calls the generic CreateSAv2 builder with application/json body

func NewCreateSAv2RequestWithBody

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

NewCreateSAv2RequestWithBody generates requests for CreateSAv2 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 NewDeleteSAAccessTokensV2Request

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

NewDeleteSAAccessTokensV2Request generates requests for DeleteSAAccessTokensV2

func NewDeleteSAKeysRequest

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

NewDeleteSAKeysRequest generates requests for DeleteSAKeys

func NewDeleteSAv2Request

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

NewDeleteSAv2Request generates requests for DeleteSAv2

func NewGetAccessTokensV2Request

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

NewGetAccessTokensV2Request generates requests for GetAccessTokensV2

func NewGetSAKeysKeyIDRequest

func NewGetSAKeysKeyIDRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, params *GetSAKeysKeyIDParams) (*http.Request, error)

NewGetSAKeysKeyIDRequest generates requests for GetSAKeysKeyID

func NewGetSAKeysRequest

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

NewGetSAKeysRequest generates requests for GetSAKeys

func NewGetServiceAccountJwksRequest

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

NewGetServiceAccountJwksRequest generates requests for GetServiceAccountJwks

func NewListRequest

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

NewListRequest generates requests for List

func NewUpdateSAKeysRequest

func NewUpdateSAKeysRequest(ctx context.Context, server string, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, body UpdateSAKeysJSONRequestBody) (*http.Request, error)

NewUpdateSAKeysRequest calls the generic UpdateSAKeys builder with application/json body

func NewUpdateSAKeysRequestWithBody

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

NewUpdateSAKeysRequestWithBody generates requests for UpdateSAKeys 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 openapi_types.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 openapi_types.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 common.Client
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, httpClient common.Client) *Client

Creates a new Client, with reasonable defaults

func (*Client) CreateSAAccessTokensV2

func (c *Client) CreateSAAccessTokensV2(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAAccessTokensV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSAAccessTokensV2WithBody

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

func (*Client) CreateSAKeys

func (c *Client) CreateSAKeys(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSAKeysWithBody

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

func (*Client) CreateSAv2

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

func (*Client) CreateSAv2WithBody

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

func (*Client) CreateTokenWithBody

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

func (*Client) CreateTokenWithFormdataBody

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

func (*Client) DeleteSAAccessTokensV2

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

func (*Client) DeleteSAKeys

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

func (*Client) DeleteSAv2

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

func (*Client) GetAccessTokensV2

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

func (*Client) GetSAKeys

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

func (*Client) GetSAKeysKeyID

func (c *Client) GetSAKeysKeyID(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, params *GetSAKeysKeyIDParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetServiceAccountJwks

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

func (*Client) List

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

func (*Client) UpdateSAKeys

func (c *Client) UpdateSAKeys(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, body UpdateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSAKeysWithBody

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

type ClientInterface

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

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

	// List request
	List(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSAv2 request with any body
	CreateSAv2WithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSAv2(ctx context.Context, projectId string, body CreateSAv2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSAv2 request
	DeleteSAv2(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAccessTokensV2 request
	GetAccessTokensV2(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSAAccessTokensV2 request with any body
	CreateSAAccessTokensV2WithBody(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSAAccessTokensV2(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAAccessTokensV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSAAccessTokensV2 request
	DeleteSAAccessTokensV2(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, accessTokenId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceAccountJwks request
	GetServiceAccountJwks(ctx context.Context, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSAKeys request
	GetSAKeys(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSAKeys request with any body
	CreateSAKeysWithBody(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSAKeys(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSAKeys request
	DeleteSAKeys(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSAKeysKeyID request
	GetSAKeysKeyID(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, params *GetSAKeysKeyIDParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSAKeys request with any body
	UpdateSAKeysWithBody(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSAKeys(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, body UpdateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, httpClient common.Client) *ClientWithResponses

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

func NewService

func NewService(c common.Client) *ClientWithResponses

func (*ClientWithResponses) CreateSAAccessTokensV2WithBodyWithResponse

func (c *ClientWithResponses) CreateSAAccessTokensV2WithBodyWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSAAccessTokensV2Response, error)

CreateSAAccessTokensV2WithBodyWithResponse request with arbitrary body returning *CreateSAAccessTokensV2Response

func (*ClientWithResponses) CreateSAAccessTokensV2WithResponse

func (c *ClientWithResponses) CreateSAAccessTokensV2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAAccessTokensV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSAAccessTokensV2Response, error)

func (*ClientWithResponses) CreateSAKeysWithBodyWithResponse

func (c *ClientWithResponses) CreateSAKeysWithBodyWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSAKeysResponse, error)

CreateSAKeysWithBodyWithResponse request with arbitrary body returning *CreateSAKeysResponse

func (*ClientWithResponses) CreateSAKeysWithResponse

func (c *ClientWithResponses) CreateSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSAKeysResponse, error)

func (*ClientWithResponses) CreateSAv2WithBodyWithResponse

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

CreateSAv2WithBodyWithResponse request with arbitrary body returning *CreateSAv2Response

func (*ClientWithResponses) CreateSAv2WithResponse

func (c *ClientWithResponses) CreateSAv2WithResponse(ctx context.Context, projectId string, body CreateSAv2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSAv2Response, error)

func (*ClientWithResponses) CreateTokenWithBodyWithResponse

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

CreateTokenWithBodyWithResponse request with arbitrary body returning *CreateTokenResponse

func (*ClientWithResponses) CreateTokenWithFormdataBodyWithResponse

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

func (*ClientWithResponses) DeleteSAAccessTokensV2WithResponse

func (c *ClientWithResponses) DeleteSAAccessTokensV2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, accessTokenId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSAAccessTokensV2Response, error)

DeleteSAAccessTokensV2WithResponse request returning *DeleteSAAccessTokensV2Response

func (*ClientWithResponses) DeleteSAKeysWithResponse

func (c *ClientWithResponses) DeleteSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSAKeysResponse, error)

DeleteSAKeysWithResponse request returning *DeleteSAKeysResponse

func (*ClientWithResponses) DeleteSAv2WithResponse

func (c *ClientWithResponses) DeleteSAv2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*DeleteSAv2Response, error)

DeleteSAv2WithResponse request returning *DeleteSAv2Response

func (*ClientWithResponses) GetAccessTokensV2WithResponse

func (c *ClientWithResponses) GetAccessTokensV2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*GetAccessTokensV2Response, error)

GetAccessTokensV2WithResponse request returning *GetAccessTokensV2Response

func (*ClientWithResponses) GetSAKeysKeyIDWithResponse

func (c *ClientWithResponses) GetSAKeysKeyIDWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, params *GetSAKeysKeyIDParams, reqEditors ...RequestEditorFn) (*GetSAKeysKeyIDResponse, error)

GetSAKeysKeyIDWithResponse request returning *GetSAKeysKeyIDResponse

func (*ClientWithResponses) GetSAKeysWithResponse

func (c *ClientWithResponses) GetSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*GetSAKeysResponse, error)

GetSAKeysWithResponse request returning *GetSAKeysResponse

func (*ClientWithResponses) GetServiceAccountJwksWithResponse

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

GetServiceAccountJwksWithResponse request returning *GetServiceAccountJwksResponse

func (*ClientWithResponses) ListWithResponse

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

ListWithResponse request returning *ListResponse

func (*ClientWithResponses) ParseCreateSAAccessTokensV2Response

func (c *ClientWithResponses) ParseCreateSAAccessTokensV2Response(rsp *http.Response) (*CreateSAAccessTokensV2Response, error)

ParseCreateSAAccessTokensV2Response parses an HTTP response from a CreateSAAccessTokensV2WithResponse call

func (*ClientWithResponses) ParseCreateSAKeysResponse

func (c *ClientWithResponses) ParseCreateSAKeysResponse(rsp *http.Response) (*CreateSAKeysResponse, error)

ParseCreateSAKeysResponse parses an HTTP response from a CreateSAKeysWithResponse call

func (*ClientWithResponses) ParseCreateSAv2Response

func (c *ClientWithResponses) ParseCreateSAv2Response(rsp *http.Response) (*CreateSAv2Response, error)

ParseCreateSAv2Response parses an HTTP response from a CreateSAv2WithResponse call

func (*ClientWithResponses) ParseCreateTokenResponse

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

ParseCreateTokenResponse parses an HTTP response from a CreateTokenWithResponse call

func (*ClientWithResponses) ParseDeleteSAAccessTokensV2Response

func (c *ClientWithResponses) ParseDeleteSAAccessTokensV2Response(rsp *http.Response) (*DeleteSAAccessTokensV2Response, error)

ParseDeleteSAAccessTokensV2Response parses an HTTP response from a DeleteSAAccessTokensV2WithResponse call

func (*ClientWithResponses) ParseDeleteSAKeysResponse

func (c *ClientWithResponses) ParseDeleteSAKeysResponse(rsp *http.Response) (*DeleteSAKeysResponse, error)

ParseDeleteSAKeysResponse parses an HTTP response from a DeleteSAKeysWithResponse call

func (*ClientWithResponses) ParseDeleteSAv2Response

func (c *ClientWithResponses) ParseDeleteSAv2Response(rsp *http.Response) (*DeleteSAv2Response, error)

ParseDeleteSAv2Response parses an HTTP response from a DeleteSAv2WithResponse call

func (*ClientWithResponses) ParseGetAccessTokensV2Response

func (c *ClientWithResponses) ParseGetAccessTokensV2Response(rsp *http.Response) (*GetAccessTokensV2Response, error)

ParseGetAccessTokensV2Response parses an HTTP response from a GetAccessTokensV2WithResponse call

func (*ClientWithResponses) ParseGetSAKeysKeyIDResponse

func (c *ClientWithResponses) ParseGetSAKeysKeyIDResponse(rsp *http.Response) (*GetSAKeysKeyIDResponse, error)

ParseGetSAKeysKeyIDResponse parses an HTTP response from a GetSAKeysKeyIDWithResponse call

func (*ClientWithResponses) ParseGetSAKeysResponse

func (c *ClientWithResponses) ParseGetSAKeysResponse(rsp *http.Response) (*GetSAKeysResponse, error)

ParseGetSAKeysResponse parses an HTTP response from a GetSAKeysWithResponse call

func (*ClientWithResponses) ParseGetServiceAccountJwksResponse

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

ParseGetServiceAccountJwksResponse parses an HTTP response from a GetServiceAccountJwksWithResponse call

func (*ClientWithResponses) ParseListResponse

func (c *ClientWithResponses) ParseListResponse(rsp *http.Response) (*ListResponse, error)

ParseListResponse parses an HTTP response from a ListWithResponse call

func (*ClientWithResponses) ParseUpdateSAKeysResponse

func (c *ClientWithResponses) ParseUpdateSAKeysResponse(rsp *http.Response) (*UpdateSAKeysResponse, error)

ParseUpdateSAKeysResponse parses an HTTP response from a UpdateSAKeysWithResponse call

func (*ClientWithResponses) UpdateSAKeysWithBodyWithResponse

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

UpdateSAKeysWithBodyWithResponse request with arbitrary body returning *UpdateSAKeysResponse

func (*ClientWithResponses) UpdateSAKeysWithResponse

func (c *ClientWithResponses) UpdateSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, body UpdateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAKeysResponse, error)

type ClientWithResponsesInterface

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

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

	// List request
	ListWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ListResponse, error)

	// CreateSAv2 request with any body
	CreateSAv2WithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSAv2Response, error)

	CreateSAv2WithResponse(ctx context.Context, projectId string, body CreateSAv2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSAv2Response, error)

	// DeleteSAv2 request
	DeleteSAv2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*DeleteSAv2Response, error)

	// GetAccessTokensV2 request
	GetAccessTokensV2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*GetAccessTokensV2Response, error)

	// CreateSAAccessTokensV2 request with any body
	CreateSAAccessTokensV2WithBodyWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSAAccessTokensV2Response, error)

	CreateSAAccessTokensV2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAAccessTokensV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSAAccessTokensV2Response, error)

	// DeleteSAAccessTokensV2 request
	DeleteSAAccessTokensV2WithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, accessTokenId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSAAccessTokensV2Response, error)

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

	// GetSAKeys request
	GetSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, reqEditors ...RequestEditorFn) (*GetSAKeysResponse, error)

	// CreateSAKeys request with any body
	CreateSAKeysWithBodyWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSAKeysResponse, error)

	CreateSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, body CreateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSAKeysResponse, error)

	// DeleteSAKeys request
	DeleteSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSAKeysResponse, error)

	// GetSAKeysKeyID request
	GetSAKeysKeyIDWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, params *GetSAKeysKeyIDParams, reqEditors ...RequestEditorFn) (*GetSAKeysKeyIDResponse, error)

	// UpdateSAKeys request with any body
	UpdateSAKeysWithBodyWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSAKeysResponse, error)

	UpdateSAKeysWithResponse(ctx context.Context, projectId string, serviceAccountEmail openapi_types.Email, keyId openapi_types.UUID, body UpdateSAKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAKeysResponse, 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 CreateSAAccessTokensV2JSONRequestBody

type CreateSAAccessTokensV2JSONRequestBody = CreateAccessTokenRequestBody

CreateSAAccessTokensV2JSONRequestBody defines body for CreateSAAccessTokensV2 for application/json ContentType.

type CreateSAAccessTokensV2Response

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

func (CreateSAAccessTokensV2Response) Status

Status returns HTTPResponse.Status

func (CreateSAAccessTokensV2Response) StatusCode

func (r CreateSAAccessTokensV2Response) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSAKeysJSONRequestBody

type CreateSAKeysJSONRequestBody = ServiceAccountKeyRequest

CreateSAKeysJSONRequestBody defines body for CreateSAKeys for application/json ContentType.

type CreateSAKeysResponse

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

func (CreateSAKeysResponse) Status

func (r CreateSAKeysResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSAKeysResponse) StatusCode

func (r CreateSAKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSAv2JSONRequestBody

type CreateSAv2JSONRequestBody = CreateServiceAccountRequestBodyV2

CreateSAv2JSONRequestBody defines body for CreateSAv2 for application/json ContentType.

type CreateSAv2Response

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

func (CreateSAv2Response) Status

func (r CreateSAv2Response) Status() string

Status returns HTTPResponse.Status

func (CreateSAv2Response) StatusCode

func (r CreateSAv2Response) 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
	HasError     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 DeleteSAAccessTokensV2Response

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

func (DeleteSAAccessTokensV2Response) Status

Status returns HTTPResponse.Status

func (DeleteSAAccessTokensV2Response) StatusCode

func (r DeleteSAAccessTokensV2Response) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSAKeysResponse

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

func (DeleteSAKeysResponse) Status

func (r DeleteSAKeysResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSAKeysResponse) StatusCode

func (r DeleteSAKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSAv2Response

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

func (DeleteSAv2Response) Status

func (r DeleteSAv2Response) Status() string

Status returns HTTPResponse.Status

func (DeleteSAv2Response) StatusCode

func (r DeleteSAv2Response) 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 GetAccessTokensResponseBodyV2

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

GetAccessTokensResponseBodyV2 defines model for GetAccessTokensResponseBodyV2.

type GetAccessTokensV2Response

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

func (GetAccessTokensV2Response) Status

func (r GetAccessTokensV2Response) Status() string

Status returns HTTPResponse.Status

func (GetAccessTokensV2Response) StatusCode

func (r GetAccessTokensV2Response) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJWKResponseBody

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

GetJWKResponseBody defines model for GetJWKResponseBody.

type GetSAKeysKeyIDParams

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

GetSAKeysKeyIDParams defines parameters for GetSAKeysKeyID.

type GetSAKeysKeyIDParamsFormat

type GetSAKeysKeyIDParamsFormat string

GetSAKeysKeyIDParamsFormat defines parameters for GetSAKeysKeyID.

const (
	X509_PEM GetSAKeysKeyIDParamsFormat = "X509_PEM"
)

Defines values for GetSAKeysKeyIDParamsFormat.

type GetSAKeysKeyIDResponse

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

func (GetSAKeysKeyIDResponse) Status

func (r GetSAKeysKeyIDResponse) Status() string

Status returns HTTPResponse.Status

func (GetSAKeysKeyIDResponse) StatusCode

func (r GetSAKeysKeyIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSAKeysResponse

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

func (GetSAKeysResponse) Status

func (r GetSAKeysResponse) Status() string

Status returns HTTPResponse.Status

func (GetSAKeysResponse) StatusCode

func (r GetSAKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceAccountJwksResponse

type GetServiceAccountJwksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetJWKResponseBody
	HasError     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 ListResponse

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

func (ListResponse) Status

func (r ListResponse) Status() string

Status returns HTTPResponse.Status

func (ListResponse) StatusCode

func (r ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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           openapi_types.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           openapi_types.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 openapi_types.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 openapi_types.UUID `json:"sub"`
	} `json:"credentials"`

	// Id Unique ID of the key.
	ID           openapi_types.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 openapi_types.Email `json:"iss"`

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

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

	// Id Unique ID of the key.
	ID           openapi_types.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 openapi_types.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 openapi_types.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 UpdateSAKeysJSONRequestBody

type UpdateSAKeysJSONRequestBody = ServiceAccountKeyUpdateRequest

UpdateSAKeysJSONRequestBody defines body for UpdateSAKeys for application/json ContentType.

type UpdateSAKeysResponse

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

func (UpdateSAKeysResponse) Status

func (r UpdateSAKeysResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSAKeysResponse) StatusCode

func (r UpdateSAKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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