apiclient

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewActivateOrganizationCertificatesRequest added in v0.3.3

func NewActivateOrganizationCertificatesRequest(server string, body ActivateOrganizationCertificatesJSONRequestBody) (*http.Request, error)

NewActivateOrganizationCertificatesRequest calls the generic ActivateOrganizationCertificates builder with application/json body

func NewActivateOrganizationCertificatesRequestWithBody added in v0.3.3

func NewActivateOrganizationCertificatesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewActivateOrganizationCertificatesRequestWithBody generates requests for ActivateOrganizationCertificates with any type of body

func NewActivateProjectCertificatesRequest added in v0.3.3

func NewActivateProjectCertificatesRequest(server string, projectId string, body ActivateProjectCertificatesJSONRequestBody) (*http.Request, error)

NewActivateProjectCertificatesRequest calls the generic ActivateProjectCertificates builder with application/json body

func NewActivateProjectCertificatesRequestWithBody added in v0.3.3

func NewActivateProjectCertificatesRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)

NewActivateProjectCertificatesRequestWithBody generates requests for ActivateProjectCertificates with any type of body

func NewAdminApiKeysCreateRequest added in v0.3.1

func NewAdminApiKeysCreateRequest(server string, body AdminApiKeysCreateJSONRequestBody) (*http.Request, error)

NewAdminApiKeysCreateRequest calls the generic AdminApiKeysCreate builder with application/json body

func NewAdminApiKeysCreateRequestWithBody added in v0.3.1

func NewAdminApiKeysCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAdminApiKeysCreateRequestWithBody generates requests for AdminApiKeysCreate with any type of body

func NewAdminApiKeysDeleteRequest added in v0.3.1

func NewAdminApiKeysDeleteRequest(server string, keyId string) (*http.Request, error)

NewAdminApiKeysDeleteRequest generates requests for AdminApiKeysDelete

func NewAdminApiKeysGetRequest added in v0.3.1

func NewAdminApiKeysGetRequest(server string, keyId string) (*http.Request, error)

NewAdminApiKeysGetRequest generates requests for AdminApiKeysGet

func NewAdminApiKeysListRequest added in v0.3.1

func NewAdminApiKeysListRequest(server string, params *AdminApiKeysListParams) (*http.Request, error)

NewAdminApiKeysListRequest generates requests for AdminApiKeysList

func NewArchiveProjectRequest added in v0.3.0

func NewArchiveProjectRequest(server string, projectId string) (*http.Request, error)

NewArchiveProjectRequest generates requests for ArchiveProject

func NewCreateProjectRequest added in v0.3.0

func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)

NewCreateProjectRequest calls the generic CreateProject builder with application/json body

func NewCreateProjectRequestWithBody added in v0.3.0

func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body

func NewCreateProjectServiceAccountRequest added in v0.3.0

func NewCreateProjectServiceAccountRequest(server string, projectId string, body CreateProjectServiceAccountJSONRequestBody) (*http.Request, error)

NewCreateProjectServiceAccountRequest calls the generic CreateProjectServiceAccount builder with application/json body

func NewCreateProjectServiceAccountRequestWithBody added in v0.3.0

func NewCreateProjectServiceAccountRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectServiceAccountRequestWithBody generates requests for CreateProjectServiceAccount with any type of body

func NewCreateProjectUserRequest added in v0.3.0

func NewCreateProjectUserRequest(server string, projectId string, body CreateProjectUserJSONRequestBody) (*http.Request, error)

NewCreateProjectUserRequest calls the generic CreateProjectUser builder with application/json body

func NewCreateProjectUserRequestWithBody added in v0.3.0

func NewCreateProjectUserRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectUserRequestWithBody generates requests for CreateProjectUser with any type of body

func NewDeactivateOrganizationCertificatesRequest added in v0.3.3

func NewDeactivateOrganizationCertificatesRequest(server string, body DeactivateOrganizationCertificatesJSONRequestBody) (*http.Request, error)

NewDeactivateOrganizationCertificatesRequest calls the generic DeactivateOrganizationCertificates builder with application/json body

func NewDeactivateOrganizationCertificatesRequestWithBody added in v0.3.3

func NewDeactivateOrganizationCertificatesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDeactivateOrganizationCertificatesRequestWithBody generates requests for DeactivateOrganizationCertificates with any type of body

func NewDeactivateProjectCertificatesRequest added in v0.3.3

func NewDeactivateProjectCertificatesRequest(server string, projectId string, body DeactivateProjectCertificatesJSONRequestBody) (*http.Request, error)

NewDeactivateProjectCertificatesRequest calls the generic DeactivateProjectCertificates builder with application/json body

func NewDeactivateProjectCertificatesRequestWithBody added in v0.3.3

func NewDeactivateProjectCertificatesRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)

NewDeactivateProjectCertificatesRequestWithBody generates requests for DeactivateProjectCertificates with any type of body

func NewDeleteCertificateRequest added in v0.3.3

func NewDeleteCertificateRequest(server string, certificateId string) (*http.Request, error)

NewDeleteCertificateRequest generates requests for DeleteCertificate

func NewDeleteInviteRequest added in v0.3.0

func NewDeleteInviteRequest(server string, inviteId string) (*http.Request, error)

NewDeleteInviteRequest generates requests for DeleteInvite

func NewDeleteProjectApiKeyRequest added in v0.3.0

func NewDeleteProjectApiKeyRequest(server string, projectId string, keyId string) (*http.Request, error)

NewDeleteProjectApiKeyRequest generates requests for DeleteProjectApiKey

func NewDeleteProjectServiceAccountRequest added in v0.3.0

func NewDeleteProjectServiceAccountRequest(server string, projectId string, serviceAccountId string) (*http.Request, error)

NewDeleteProjectServiceAccountRequest generates requests for DeleteProjectServiceAccount

func NewDeleteProjectUserRequest added in v0.3.0

func NewDeleteProjectUserRequest(server string, projectId string, userId string) (*http.Request, error)

NewDeleteProjectUserRequest generates requests for DeleteProjectUser

func NewDeleteUserRequest added in v0.3.0

func NewDeleteUserRequest(server string, userId string) (*http.Request, error)

NewDeleteUserRequest generates requests for DeleteUser

func NewGetCertificateRequest added in v0.3.3

func NewGetCertificateRequest(server string, certificateId string, params *GetCertificateParams) (*http.Request, error)

NewGetCertificateRequest generates requests for GetCertificate

func NewInviteUserRequest added in v0.3.0

func NewInviteUserRequest(server string, body InviteUserJSONRequestBody) (*http.Request, error)

NewInviteUserRequest calls the generic InviteUser builder with application/json body

func NewInviteUserRequestWithBody added in v0.3.0

func NewInviteUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInviteUserRequestWithBody generates requests for InviteUser with any type of body

func NewListInvitesRequest added in v0.3.0

func NewListInvitesRequest(server string, params *ListInvitesParams) (*http.Request, error)

NewListInvitesRequest generates requests for ListInvites

func NewListOrganizationCertificatesRequest added in v0.3.3

func NewListOrganizationCertificatesRequest(server string, params *ListOrganizationCertificatesParams) (*http.Request, error)

NewListOrganizationCertificatesRequest generates requests for ListOrganizationCertificates

func NewListProjectApiKeysRequest added in v0.3.0

func NewListProjectApiKeysRequest(server string, projectId string, params *ListProjectApiKeysParams) (*http.Request, error)

NewListProjectApiKeysRequest generates requests for ListProjectApiKeys

func NewListProjectCertificatesRequest added in v0.3.3

func NewListProjectCertificatesRequest(server string, projectId string, params *ListProjectCertificatesParams) (*http.Request, error)

NewListProjectCertificatesRequest generates requests for ListProjectCertificates

func NewListProjectRateLimitsRequest added in v0.3.0

func NewListProjectRateLimitsRequest(server string, projectId string, params *ListProjectRateLimitsParams) (*http.Request, error)

NewListProjectRateLimitsRequest generates requests for ListProjectRateLimits

func NewListProjectServiceAccountsRequest added in v0.3.0

func NewListProjectServiceAccountsRequest(server string, projectId string, params *ListProjectServiceAccountsParams) (*http.Request, error)

NewListProjectServiceAccountsRequest generates requests for ListProjectServiceAccounts

func NewListProjectUsersRequest added in v0.3.0

func NewListProjectUsersRequest(server string, projectId string, params *ListProjectUsersParams) (*http.Request, error)

NewListProjectUsersRequest generates requests for ListProjectUsers

func NewListProjectsRequest added in v0.3.0

func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error)

NewListProjectsRequest generates requests for ListProjects

func NewListUsersRequest added in v0.3.0

func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)

NewListUsersRequest generates requests for ListUsers

func NewModifyCertificateRequest added in v0.3.3

func NewModifyCertificateRequest(server string, certificateId string, body ModifyCertificateJSONRequestBody) (*http.Request, error)

NewModifyCertificateRequest calls the generic ModifyCertificate builder with application/json body

func NewModifyCertificateRequestWithBody added in v0.3.3

func NewModifyCertificateRequestWithBody(server string, certificateId string, contentType string, body io.Reader) (*http.Request, error)

NewModifyCertificateRequestWithBody generates requests for ModifyCertificate with any type of body

func NewModifyProjectRequest added in v0.3.0

func NewModifyProjectRequest(server string, projectId string, body ModifyProjectJSONRequestBody) (*http.Request, error)

NewModifyProjectRequest calls the generic ModifyProject builder with application/json body

func NewModifyProjectRequestWithBody added in v0.3.0

func NewModifyProjectRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)

NewModifyProjectRequestWithBody generates requests for ModifyProject with any type of body

func NewModifyProjectUserRequest added in v0.3.0

func NewModifyProjectUserRequest(server string, projectId string, userId string, body ModifyProjectUserJSONRequestBody) (*http.Request, error)

NewModifyProjectUserRequest calls the generic ModifyProjectUser builder with application/json body

func NewModifyProjectUserRequestWithBody added in v0.3.0

func NewModifyProjectUserRequestWithBody(server string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error)

NewModifyProjectUserRequestWithBody generates requests for ModifyProjectUser with any type of body

func NewModifyUserRequest added in v0.3.0

func NewModifyUserRequest(server string, userId string, body ModifyUserJSONRequestBody) (*http.Request, error)

NewModifyUserRequest calls the generic ModifyUser builder with application/json body

func NewModifyUserRequestWithBody added in v0.3.0

func NewModifyUserRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)

NewModifyUserRequestWithBody generates requests for ModifyUser with any type of body

func NewRetrieveInviteRequest added in v0.3.0

func NewRetrieveInviteRequest(server string, inviteId string) (*http.Request, error)

NewRetrieveInviteRequest generates requests for RetrieveInvite

func NewRetrieveProjectApiKeyRequest added in v0.3.0

func NewRetrieveProjectApiKeyRequest(server string, projectId string, keyId string) (*http.Request, error)

NewRetrieveProjectApiKeyRequest generates requests for RetrieveProjectApiKey

func NewRetrieveProjectRequest added in v0.3.0

func NewRetrieveProjectRequest(server string, projectId string) (*http.Request, error)

NewRetrieveProjectRequest generates requests for RetrieveProject

func NewRetrieveProjectServiceAccountRequest added in v0.3.0

func NewRetrieveProjectServiceAccountRequest(server string, projectId string, serviceAccountId string) (*http.Request, error)

NewRetrieveProjectServiceAccountRequest generates requests for RetrieveProjectServiceAccount

func NewRetrieveProjectUserRequest added in v0.3.0

func NewRetrieveProjectUserRequest(server string, projectId string, userId string) (*http.Request, error)

NewRetrieveProjectUserRequest generates requests for RetrieveProjectUser

func NewRetrieveUserRequest added in v0.3.0

func NewRetrieveUserRequest(server string, userId string) (*http.Request, error)

NewRetrieveUserRequest generates requests for RetrieveUser

func NewUpdateProjectRateLimitsRequest added in v0.3.0

func NewUpdateProjectRateLimitsRequest(server string, projectId string, rateLimitId string, body UpdateProjectRateLimitsJSONRequestBody) (*http.Request, error)

NewUpdateProjectRateLimitsRequest calls the generic UpdateProjectRateLimits builder with application/json body

func NewUpdateProjectRateLimitsRequestWithBody added in v0.3.0

func NewUpdateProjectRateLimitsRequestWithBody(server string, projectId string, rateLimitId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProjectRateLimitsRequestWithBody generates requests for UpdateProjectRateLimits with any type of body

func NewUploadCertificateRequest added in v0.3.3

func NewUploadCertificateRequest(server string, body UploadCertificateJSONRequestBody) (*http.Request, error)

NewUploadCertificateRequest calls the generic UploadCertificate builder with application/json body

func NewUploadCertificateRequestWithBody added in v0.3.3

func NewUploadCertificateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUploadCertificateRequestWithBody generates requests for UploadCertificate with any type of body

Types

type ActivateOrganizationCertificatesJSONRequestBody added in v0.3.3

type ActivateOrganizationCertificatesJSONRequestBody = ToggleCertificatesRequest

ActivateOrganizationCertificatesJSONRequestBody defines body for ActivateOrganizationCertificates for application/json ContentType.

type ActivateOrganizationCertificatesResp added in v0.3.3

type ActivateOrganizationCertificatesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCertificatesResponse
}

func ParseActivateOrganizationCertificatesResp added in v0.3.3

func ParseActivateOrganizationCertificatesResp(rsp *http.Response) (*ActivateOrganizationCertificatesResp, error)

ParseActivateOrganizationCertificatesResp parses an HTTP response from a ActivateOrganizationCertificatesWithResponse call

func (ActivateOrganizationCertificatesResp) Status added in v0.3.3

Status returns HTTPResponse.Status

func (ActivateOrganizationCertificatesResp) StatusCode added in v0.3.3

StatusCode returns HTTPResponse.StatusCode

type ActivateProjectCertificatesJSONRequestBody added in v0.3.3

type ActivateProjectCertificatesJSONRequestBody = ToggleCertificatesRequest

ActivateProjectCertificatesJSONRequestBody defines body for ActivateProjectCertificates for application/json ContentType.

type ActivateProjectCertificatesResp added in v0.3.3

type ActivateProjectCertificatesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCertificatesResponse
}

func ParseActivateProjectCertificatesResp added in v0.3.3

func ParseActivateProjectCertificatesResp(rsp *http.Response) (*ActivateProjectCertificatesResp, error)

ParseActivateProjectCertificatesResp parses an HTTP response from a ActivateProjectCertificatesWithResponse call

func (ActivateProjectCertificatesResp) Status added in v0.3.3

Status returns HTTPResponse.Status

func (ActivateProjectCertificatesResp) StatusCode added in v0.3.3

func (r ActivateProjectCertificatesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AdminApiKey added in v0.3.1

type AdminApiKey struct {
	// CreatedAt The Unix timestamp (in seconds) of when the API key was created
	CreatedAt int64 `json:"created_at"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// LastUsedAt The Unix timestamp (in seconds) of when the API key was last used
	LastUsedAt *int64 `json:"last_used_at"`

	// Name The name of the API key
	Name string `json:"name"`

	// Object The object type, which is always `organization.admin_api_key`
	Object string `json:"object"`
	Owner  struct {
		// CreatedAt The Unix timestamp (in seconds) of when the user was created
		CreatedAt *int64 `json:"created_at,omitempty"`

		// Id The identifier, which can be referenced in API endpoints
		Id *string `json:"id,omitempty"`

		// Name The name of the user
		Name *string `json:"name,omitempty"`

		// Object The object type, which is always organization.user
		Object *string `json:"object,omitempty"`

		// Role Always `owner`
		Role *string `json:"role,omitempty"`

		// Type Always `user`
		Type *string `json:"type,omitempty"`
	} `json:"owner"`

	// RedactedValue The redacted value of the API key
	RedactedValue string `json:"redacted_value"`

	// Value The value of the API key. Only shown on create.
	Value *string `json:"value,omitempty"`
}

AdminApiKey Represents an individual Admin API key in an org.

type AdminApiKeysCreateJSONBody added in v0.3.1

type AdminApiKeysCreateJSONBody struct {
	Name string `json:"name"`
}

AdminApiKeysCreateJSONBody defines parameters for AdminApiKeysCreate.

type AdminApiKeysCreateJSONRequestBody added in v0.3.1

type AdminApiKeysCreateJSONRequestBody AdminApiKeysCreateJSONBody

AdminApiKeysCreateJSONRequestBody defines body for AdminApiKeysCreate for application/json ContentType.

type AdminApiKeysCreateResp added in v0.3.1

type AdminApiKeysCreateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AdminApiKey
}

func ParseAdminApiKeysCreateResp added in v0.3.1

func ParseAdminApiKeysCreateResp(rsp *http.Response) (*AdminApiKeysCreateResp, error)

ParseAdminApiKeysCreateResp parses an HTTP response from a AdminApiKeysCreateWithResponse call

func (AdminApiKeysCreateResp) Status added in v0.3.1

func (r AdminApiKeysCreateResp) Status() string

Status returns HTTPResponse.Status

func (AdminApiKeysCreateResp) StatusCode added in v0.3.1

func (r AdminApiKeysCreateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AdminApiKeysDeleteResp added in v0.3.1

type AdminApiKeysDeleteResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Deleted *bool   `json:"deleted,omitempty"`
		Id      *string `json:"id,omitempty"`
		Object  *string `json:"object,omitempty"`
	}
}

func ParseAdminApiKeysDeleteResp added in v0.3.1

func ParseAdminApiKeysDeleteResp(rsp *http.Response) (*AdminApiKeysDeleteResp, error)

ParseAdminApiKeysDeleteResp parses an HTTP response from a AdminApiKeysDeleteWithResponse call

func (AdminApiKeysDeleteResp) Status added in v0.3.1

func (r AdminApiKeysDeleteResp) Status() string

Status returns HTTPResponse.Status

func (AdminApiKeysDeleteResp) StatusCode added in v0.3.1

func (r AdminApiKeysDeleteResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AdminApiKeysGetResp added in v0.3.1

type AdminApiKeysGetResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AdminApiKey
}

func ParseAdminApiKeysGetResp added in v0.3.1

func ParseAdminApiKeysGetResp(rsp *http.Response) (*AdminApiKeysGetResp, error)

ParseAdminApiKeysGetResp parses an HTTP response from a AdminApiKeysGetWithResponse call

func (AdminApiKeysGetResp) Status added in v0.3.1

func (r AdminApiKeysGetResp) Status() string

Status returns HTTPResponse.Status

func (AdminApiKeysGetResp) StatusCode added in v0.3.1

func (r AdminApiKeysGetResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AdminApiKeysListParams added in v0.3.1

type AdminApiKeysListParams struct {
	After *string                      `form:"after,omitempty" json:"after,omitempty"`
	Order *AdminApiKeysListParamsOrder `form:"order,omitempty" json:"order,omitempty"`
	Limit *int64                       `form:"limit,omitempty" json:"limit,omitempty"`
}

AdminApiKeysListParams defines parameters for AdminApiKeysList.

type AdminApiKeysListParamsOrder added in v0.3.1

type AdminApiKeysListParamsOrder string

AdminApiKeysListParamsOrder defines parameters for AdminApiKeysList.

const (
	AdminApiKeysListParamsOrderAsc  AdminApiKeysListParamsOrder = "asc"
	AdminApiKeysListParamsOrderDesc AdminApiKeysListParamsOrder = "desc"
)

Defines values for AdminApiKeysListParamsOrder.

type AdminApiKeysListResp added in v0.3.1

type AdminApiKeysListResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ApiKeyList
}

func ParseAdminApiKeysListResp added in v0.3.1

func ParseAdminApiKeysListResp(rsp *http.Response) (*AdminApiKeysListResp, error)

ParseAdminApiKeysListResp parses an HTTP response from a AdminApiKeysListWithResponse call

func (AdminApiKeysListResp) Status added in v0.3.1

func (r AdminApiKeysListResp) Status() string

Status returns HTTPResponse.Status

func (AdminApiKeysListResp) StatusCode added in v0.3.1

func (r AdminApiKeysListResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApiKeyList added in v0.3.1

type ApiKeyList struct {
	Data    *[]AdminApiKey `json:"data,omitempty"`
	FirstId *string        `json:"first_id,omitempty"`
	HasMore *bool          `json:"has_more,omitempty"`
	LastId  *string        `json:"last_id,omitempty"`
	Object  *string        `json:"object,omitempty"`
}

ApiKeyList defines model for ApiKeyList.

type ArchiveProjectResp added in v0.3.0

type ArchiveProjectResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Project
}

func ParseArchiveProjectResp added in v0.3.0

func ParseArchiveProjectResp(rsp *http.Response) (*ArchiveProjectResp, error)

ParseArchiveProjectResp parses an HTTP response from a ArchiveProjectWithResponse call

func (ArchiveProjectResp) Status added in v0.3.0

func (r ArchiveProjectResp) Status() string

Status returns HTTPResponse.Status

func (ArchiveProjectResp) StatusCode added in v0.3.0

func (r ArchiveProjectResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Certificate added in v0.3.3

type Certificate struct {
	// Active Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.
	Active             *bool `json:"active,omitempty"`
	CertificateDetails struct {
		// Content The content of the certificate in PEM format.
		Content *string `json:"content,omitempty"`

		// ExpiresAt The Unix timestamp (in seconds) of when the certificate expires.
		ExpiresAt *int64 `json:"expires_at,omitempty"`

		// ValidAt The Unix timestamp (in seconds) of when the certificate becomes valid.
		ValidAt *int64 `json:"valid_at,omitempty"`
	} `json:"certificate_details"`

	// CreatedAt The Unix timestamp (in seconds) of when the certificate was uploaded.
	CreatedAt int64 `json:"created_at"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// Name The name of the certificate.
	Name string `json:"name"`

	// Object The object type.
	//
	// - If creating, updating, or getting a specific certificate, the object type is `certificate`.
	// - If listing, activating, or deactivating certificates for the organization, the object type is `organization.certificate`.
	// - If listing, activating, or deactivating certificates for a project, the object type is `organization.project.certificate`.
	Object CertificateObject `json:"object"`
}

Certificate Represents an individual `certificate` uploaded to the organization.

type CertificateObject added in v0.3.3

type CertificateObject string

CertificateObject The object type.

- If creating, updating, or getting a specific certificate, the object type is `certificate`. - If listing, activating, or deactivating certificates for the organization, the object type is `organization.certificate`. - If listing, activating, or deactivating certificates for a project, the object type is `organization.project.certificate`.

const (
	CertificateObjectCertificate                    CertificateObject = "certificate"
	CertificateObjectOrganizationCertificate        CertificateObject = "organization.certificate"
	CertificateObjectOrganizationProjectCertificate CertificateObject = "organization.project.certificate"
)

Defines values for CertificateObject.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ActivateOrganizationCertificates added in v0.3.3

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

func (*Client) ActivateOrganizationCertificatesWithBody added in v0.3.3

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

func (*Client) ActivateProjectCertificates added in v0.3.3

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

func (*Client) ActivateProjectCertificatesWithBody added in v0.3.3

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

func (*Client) AdminApiKeysCreate added in v0.3.1

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

func (*Client) AdminApiKeysCreateWithBody added in v0.3.1

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

func (*Client) AdminApiKeysDelete added in v0.3.1

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

func (*Client) AdminApiKeysGet added in v0.3.1

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

func (*Client) AdminApiKeysList added in v0.3.1

func (c *Client) AdminApiKeysList(ctx context.Context, params *AdminApiKeysListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ArchiveProject added in v0.3.0

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

func (*Client) CreateProject added in v0.3.0

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

func (*Client) CreateProjectServiceAccount added in v0.3.0

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

func (*Client) CreateProjectServiceAccountWithBody added in v0.3.0

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

func (*Client) CreateProjectUser added in v0.3.0

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

func (*Client) CreateProjectUserWithBody added in v0.3.0

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

func (*Client) CreateProjectWithBody added in v0.3.0

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

func (*Client) DeactivateOrganizationCertificates added in v0.3.3

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

func (*Client) DeactivateOrganizationCertificatesWithBody added in v0.3.3

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

func (*Client) DeactivateProjectCertificates added in v0.3.3

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

func (*Client) DeactivateProjectCertificatesWithBody added in v0.3.3

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

func (*Client) DeleteCertificate added in v0.3.3

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

func (*Client) DeleteInvite added in v0.3.0

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

func (*Client) DeleteProjectApiKey added in v0.3.0

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

func (*Client) DeleteProjectServiceAccount added in v0.3.0

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

func (*Client) DeleteProjectUser added in v0.3.0

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

func (*Client) DeleteUser added in v0.3.0

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

func (*Client) GetCertificate added in v0.3.3

func (c *Client) GetCertificate(ctx context.Context, certificateId string, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InviteUser added in v0.3.0

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

func (*Client) InviteUserWithBody added in v0.3.0

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

func (*Client) ListInvites added in v0.3.0

func (c *Client) ListInvites(ctx context.Context, params *ListInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListOrganizationCertificates added in v0.3.3

func (c *Client) ListOrganizationCertificates(ctx context.Context, params *ListOrganizationCertificatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListProjectApiKeys added in v0.3.0

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

func (*Client) ListProjectCertificates added in v0.3.3

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

func (*Client) ListProjectRateLimits added in v0.3.0

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

func (*Client) ListProjectServiceAccounts added in v0.3.0

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

func (*Client) ListProjectUsers added in v0.3.0

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

func (*Client) ListProjects added in v0.3.0

func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListUsers added in v0.3.0

func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModifyCertificate added in v0.3.3

func (c *Client) ModifyCertificate(ctx context.Context, certificateId string, body ModifyCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModifyCertificateWithBody added in v0.3.3

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

func (*Client) ModifyProject added in v0.3.0

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

func (*Client) ModifyProjectUser added in v0.3.0

func (c *Client) ModifyProjectUser(ctx context.Context, projectId string, userId string, body ModifyProjectUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModifyProjectUserWithBody added in v0.3.0

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

func (*Client) ModifyProjectWithBody added in v0.3.0

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

func (*Client) ModifyUser added in v0.3.0

func (c *Client) ModifyUser(ctx context.Context, userId string, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModifyUserWithBody added in v0.3.0

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

func (*Client) RetrieveInvite added in v0.3.0

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

func (*Client) RetrieveProject added in v0.3.0

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

func (*Client) RetrieveProjectApiKey added in v0.3.0

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

func (*Client) RetrieveProjectServiceAccount added in v0.3.0

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

func (*Client) RetrieveProjectUser added in v0.3.0

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

func (*Client) RetrieveUser added in v0.3.0

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

func (*Client) UpdateProjectRateLimits added in v0.3.0

func (c *Client) UpdateProjectRateLimits(ctx context.Context, projectId string, rateLimitId string, body UpdateProjectRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectRateLimitsWithBody added in v0.3.0

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

func (*Client) UploadCertificate added in v0.3.3

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

func (*Client) UploadCertificateWithBody added in v0.3.3

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

type ClientInterface

type ClientInterface interface {
	// AdminApiKeysList request
	AdminApiKeysList(ctx context.Context, params *AdminApiKeysListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AdminApiKeysCreate(ctx context.Context, body AdminApiKeysCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// ListOrganizationCertificates request
	ListOrganizationCertificates(ctx context.Context, params *ListOrganizationCertificatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UploadCertificate(ctx context.Context, body UploadCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ActivateOrganizationCertificates(ctx context.Context, body ActivateOrganizationCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	DeactivateOrganizationCertificates(ctx context.Context, body DeactivateOrganizationCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetCertificate request
	GetCertificate(ctx context.Context, certificateId string, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ModifyCertificate(ctx context.Context, certificateId string, body ModifyCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListInvites request
	ListInvites(ctx context.Context, params *ListInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	InviteUser(ctx context.Context, body InviteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// ListProjects request
	ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	UpdateProjectRateLimits(ctx context.Context, projectId string, rateLimitId string, body UpdateProjectRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

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

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

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

	ModifyProjectUser(ctx context.Context, projectId string, userId string, body ModifyProjectUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsers request
	ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	ModifyUser(ctx context.Context, userId string, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

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

func (*ClientWithResponses) ActivateOrganizationCertificatesWithBodyWithResponse added in v0.3.3

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

ActivateOrganizationCertificatesWithBodyWithResponse request with arbitrary body returning *ActivateOrganizationCertificatesResp

func (*ClientWithResponses) ActivateOrganizationCertificatesWithResponse added in v0.3.3

func (c *ClientWithResponses) ActivateOrganizationCertificatesWithResponse(ctx context.Context, body ActivateOrganizationCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateOrganizationCertificatesResp, error)

func (*ClientWithResponses) ActivateProjectCertificatesWithBodyWithResponse added in v0.3.3

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

ActivateProjectCertificatesWithBodyWithResponse request with arbitrary body returning *ActivateProjectCertificatesResp

func (*ClientWithResponses) ActivateProjectCertificatesWithResponse added in v0.3.3

func (c *ClientWithResponses) ActivateProjectCertificatesWithResponse(ctx context.Context, projectId string, body ActivateProjectCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateProjectCertificatesResp, error)

func (*ClientWithResponses) AdminApiKeysCreateWithBodyWithResponse added in v0.3.1

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

AdminApiKeysCreateWithBodyWithResponse request with arbitrary body returning *AdminApiKeysCreateResp

func (*ClientWithResponses) AdminApiKeysCreateWithResponse added in v0.3.1

func (c *ClientWithResponses) AdminApiKeysCreateWithResponse(ctx context.Context, body AdminApiKeysCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminApiKeysCreateResp, error)

func (*ClientWithResponses) AdminApiKeysDeleteWithResponse added in v0.3.1

func (c *ClientWithResponses) AdminApiKeysDeleteWithResponse(ctx context.Context, keyId string, reqEditors ...RequestEditorFn) (*AdminApiKeysDeleteResp, error)

AdminApiKeysDeleteWithResponse request returning *AdminApiKeysDeleteResp

func (*ClientWithResponses) AdminApiKeysGetWithResponse added in v0.3.1

func (c *ClientWithResponses) AdminApiKeysGetWithResponse(ctx context.Context, keyId string, reqEditors ...RequestEditorFn) (*AdminApiKeysGetResp, error)

AdminApiKeysGetWithResponse request returning *AdminApiKeysGetResp

func (*ClientWithResponses) AdminApiKeysListWithResponse added in v0.3.1

func (c *ClientWithResponses) AdminApiKeysListWithResponse(ctx context.Context, params *AdminApiKeysListParams, reqEditors ...RequestEditorFn) (*AdminApiKeysListResp, error)

AdminApiKeysListWithResponse request returning *AdminApiKeysListResp

func (*ClientWithResponses) ArchiveProjectWithResponse added in v0.3.0

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

ArchiveProjectWithResponse request returning *ArchiveProjectResp

func (*ClientWithResponses) CreateProjectServiceAccountWithBodyWithResponse added in v0.3.0

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

CreateProjectServiceAccountWithBodyWithResponse request with arbitrary body returning *CreateProjectServiceAccountResp

func (*ClientWithResponses) CreateProjectServiceAccountWithResponse added in v0.3.0

func (c *ClientWithResponses) CreateProjectServiceAccountWithResponse(ctx context.Context, projectId string, body CreateProjectServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectServiceAccountResp, error)

func (*ClientWithResponses) CreateProjectUserWithBodyWithResponse added in v0.3.0

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

CreateProjectUserWithBodyWithResponse request with arbitrary body returning *CreateProjectUserResp

func (*ClientWithResponses) CreateProjectUserWithResponse added in v0.3.0

func (c *ClientWithResponses) CreateProjectUserWithResponse(ctx context.Context, projectId string, body CreateProjectUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectUserResp, error)

func (*ClientWithResponses) CreateProjectWithBodyWithResponse added in v0.3.0

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

CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResp

func (*ClientWithResponses) CreateProjectWithResponse added in v0.3.0

func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResp, error)

func (*ClientWithResponses) DeactivateOrganizationCertificatesWithBodyWithResponse added in v0.3.3

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

DeactivateOrganizationCertificatesWithBodyWithResponse request with arbitrary body returning *DeactivateOrganizationCertificatesResp

func (*ClientWithResponses) DeactivateOrganizationCertificatesWithResponse added in v0.3.3

func (c *ClientWithResponses) DeactivateOrganizationCertificatesWithResponse(ctx context.Context, body DeactivateOrganizationCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateOrganizationCertificatesResp, error)

func (*ClientWithResponses) DeactivateProjectCertificatesWithBodyWithResponse added in v0.3.3

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

DeactivateProjectCertificatesWithBodyWithResponse request with arbitrary body returning *DeactivateProjectCertificatesResp

func (*ClientWithResponses) DeactivateProjectCertificatesWithResponse added in v0.3.3

func (c *ClientWithResponses) DeactivateProjectCertificatesWithResponse(ctx context.Context, projectId string, body DeactivateProjectCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateProjectCertificatesResp, error)

func (*ClientWithResponses) DeleteCertificateWithResponse added in v0.3.3

func (c *ClientWithResponses) DeleteCertificateWithResponse(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*DeleteCertificateResp, error)

DeleteCertificateWithResponse request returning *DeleteCertificateResp

func (*ClientWithResponses) DeleteInviteWithResponse added in v0.3.0

func (c *ClientWithResponses) DeleteInviteWithResponse(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*DeleteInviteResp, error)

DeleteInviteWithResponse request returning *DeleteInviteResp

func (*ClientWithResponses) DeleteProjectApiKeyWithResponse added in v0.3.0

func (c *ClientWithResponses) DeleteProjectApiKeyWithResponse(ctx context.Context, projectId string, keyId string, reqEditors ...RequestEditorFn) (*DeleteProjectApiKeyResp, error)

DeleteProjectApiKeyWithResponse request returning *DeleteProjectApiKeyResp

func (*ClientWithResponses) DeleteProjectServiceAccountWithResponse added in v0.3.0

func (c *ClientWithResponses) DeleteProjectServiceAccountWithResponse(ctx context.Context, projectId string, serviceAccountId string, reqEditors ...RequestEditorFn) (*DeleteProjectServiceAccountResp, error)

DeleteProjectServiceAccountWithResponse request returning *DeleteProjectServiceAccountResp

func (*ClientWithResponses) DeleteProjectUserWithResponse added in v0.3.0

func (c *ClientWithResponses) DeleteProjectUserWithResponse(ctx context.Context, projectId string, userId string, reqEditors ...RequestEditorFn) (*DeleteProjectUserResp, error)

DeleteProjectUserWithResponse request returning *DeleteProjectUserResp

func (*ClientWithResponses) DeleteUserWithResponse added in v0.3.0

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*DeleteUserResp, error)

DeleteUserWithResponse request returning *DeleteUserResp

func (*ClientWithResponses) GetCertificateWithResponse added in v0.3.3

func (c *ClientWithResponses) GetCertificateWithResponse(ctx context.Context, certificateId string, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*GetCertificateResp, error)

GetCertificateWithResponse request returning *GetCertificateResp

func (*ClientWithResponses) InviteUserWithBodyWithResponse added in v0.3.0

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

InviteUserWithBodyWithResponse request with arbitrary body returning *InviteUserResp

func (*ClientWithResponses) InviteUserWithResponse added in v0.3.0

func (c *ClientWithResponses) InviteUserWithResponse(ctx context.Context, body InviteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUserResp, error)

func (*ClientWithResponses) ListInvitesWithResponse added in v0.3.0

func (c *ClientWithResponses) ListInvitesWithResponse(ctx context.Context, params *ListInvitesParams, reqEditors ...RequestEditorFn) (*ListInvitesResp, error)

ListInvitesWithResponse request returning *ListInvitesResp

func (*ClientWithResponses) ListOrganizationCertificatesWithResponse added in v0.3.3

func (c *ClientWithResponses) ListOrganizationCertificatesWithResponse(ctx context.Context, params *ListOrganizationCertificatesParams, reqEditors ...RequestEditorFn) (*ListOrganizationCertificatesResp, error)

ListOrganizationCertificatesWithResponse request returning *ListOrganizationCertificatesResp

func (*ClientWithResponses) ListProjectApiKeysWithResponse added in v0.3.0

func (c *ClientWithResponses) ListProjectApiKeysWithResponse(ctx context.Context, projectId string, params *ListProjectApiKeysParams, reqEditors ...RequestEditorFn) (*ListProjectApiKeysResp, error)

ListProjectApiKeysWithResponse request returning *ListProjectApiKeysResp

func (*ClientWithResponses) ListProjectCertificatesWithResponse added in v0.3.3

func (c *ClientWithResponses) ListProjectCertificatesWithResponse(ctx context.Context, projectId string, params *ListProjectCertificatesParams, reqEditors ...RequestEditorFn) (*ListProjectCertificatesResp, error)

ListProjectCertificatesWithResponse request returning *ListProjectCertificatesResp

func (*ClientWithResponses) ListProjectRateLimitsWithResponse added in v0.3.0

func (c *ClientWithResponses) ListProjectRateLimitsWithResponse(ctx context.Context, projectId string, params *ListProjectRateLimitsParams, reqEditors ...RequestEditorFn) (*ListProjectRateLimitsResp, error)

ListProjectRateLimitsWithResponse request returning *ListProjectRateLimitsResp

func (*ClientWithResponses) ListProjectServiceAccountsWithResponse added in v0.3.0

func (c *ClientWithResponses) ListProjectServiceAccountsWithResponse(ctx context.Context, projectId string, params *ListProjectServiceAccountsParams, reqEditors ...RequestEditorFn) (*ListProjectServiceAccountsResp, error)

ListProjectServiceAccountsWithResponse request returning *ListProjectServiceAccountsResp

func (*ClientWithResponses) ListProjectUsersWithResponse added in v0.3.0

func (c *ClientWithResponses) ListProjectUsersWithResponse(ctx context.Context, projectId string, params *ListProjectUsersParams, reqEditors ...RequestEditorFn) (*ListProjectUsersResp, error)

ListProjectUsersWithResponse request returning *ListProjectUsersResp

func (*ClientWithResponses) ListProjectsWithResponse added in v0.3.0

func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResp, error)

ListProjectsWithResponse request returning *ListProjectsResp

func (*ClientWithResponses) ListUsersWithResponse added in v0.3.0

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResp, error)

ListUsersWithResponse request returning *ListUsersResp

func (*ClientWithResponses) ModifyCertificateWithBodyWithResponse added in v0.3.3

func (c *ClientWithResponses) ModifyCertificateWithBodyWithResponse(ctx context.Context, certificateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyCertificateResp, error)

ModifyCertificateWithBodyWithResponse request with arbitrary body returning *ModifyCertificateResp

func (*ClientWithResponses) ModifyCertificateWithResponse added in v0.3.3

func (c *ClientWithResponses) ModifyCertificateWithResponse(ctx context.Context, certificateId string, body ModifyCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyCertificateResp, error)

func (*ClientWithResponses) ModifyProjectUserWithBodyWithResponse added in v0.3.0

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

ModifyProjectUserWithBodyWithResponse request with arbitrary body returning *ModifyProjectUserResp

func (*ClientWithResponses) ModifyProjectUserWithResponse added in v0.3.0

func (c *ClientWithResponses) ModifyProjectUserWithResponse(ctx context.Context, projectId string, userId string, body ModifyProjectUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyProjectUserResp, error)

func (*ClientWithResponses) ModifyProjectWithBodyWithResponse added in v0.3.0

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

ModifyProjectWithBodyWithResponse request with arbitrary body returning *ModifyProjectResp

func (*ClientWithResponses) ModifyProjectWithResponse added in v0.3.0

func (c *ClientWithResponses) ModifyProjectWithResponse(ctx context.Context, projectId string, body ModifyProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyProjectResp, error)

func (*ClientWithResponses) ModifyUserWithBodyWithResponse added in v0.3.0

func (c *ClientWithResponses) ModifyUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyUserResp, error)

ModifyUserWithBodyWithResponse request with arbitrary body returning *ModifyUserResp

func (*ClientWithResponses) ModifyUserWithResponse added in v0.3.0

func (c *ClientWithResponses) ModifyUserWithResponse(ctx context.Context, userId string, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyUserResp, error)

func (*ClientWithResponses) RetrieveInviteWithResponse added in v0.3.0

func (c *ClientWithResponses) RetrieveInviteWithResponse(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*RetrieveInviteResp, error)

RetrieveInviteWithResponse request returning *RetrieveInviteResp

func (*ClientWithResponses) RetrieveProjectApiKeyWithResponse added in v0.3.0

func (c *ClientWithResponses) RetrieveProjectApiKeyWithResponse(ctx context.Context, projectId string, keyId string, reqEditors ...RequestEditorFn) (*RetrieveProjectApiKeyResp, error)

RetrieveProjectApiKeyWithResponse request returning *RetrieveProjectApiKeyResp

func (*ClientWithResponses) RetrieveProjectServiceAccountWithResponse added in v0.3.0

func (c *ClientWithResponses) RetrieveProjectServiceAccountWithResponse(ctx context.Context, projectId string, serviceAccountId string, reqEditors ...RequestEditorFn) (*RetrieveProjectServiceAccountResp, error)

RetrieveProjectServiceAccountWithResponse request returning *RetrieveProjectServiceAccountResp

func (*ClientWithResponses) RetrieveProjectUserWithResponse added in v0.3.0

func (c *ClientWithResponses) RetrieveProjectUserWithResponse(ctx context.Context, projectId string, userId string, reqEditors ...RequestEditorFn) (*RetrieveProjectUserResp, error)

RetrieveProjectUserWithResponse request returning *RetrieveProjectUserResp

func (*ClientWithResponses) RetrieveProjectWithResponse added in v0.3.0

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

RetrieveProjectWithResponse request returning *RetrieveProjectResp

func (*ClientWithResponses) RetrieveUserWithResponse added in v0.3.0

func (c *ClientWithResponses) RetrieveUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*RetrieveUserResp, error)

RetrieveUserWithResponse request returning *RetrieveUserResp

func (*ClientWithResponses) UpdateProjectRateLimitsWithBodyWithResponse added in v0.3.0

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

UpdateProjectRateLimitsWithBodyWithResponse request with arbitrary body returning *UpdateProjectRateLimitsResp

func (*ClientWithResponses) UpdateProjectRateLimitsWithResponse added in v0.3.0

func (c *ClientWithResponses) UpdateProjectRateLimitsWithResponse(ctx context.Context, projectId string, rateLimitId string, body UpdateProjectRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectRateLimitsResp, error)

func (*ClientWithResponses) UploadCertificateWithBodyWithResponse added in v0.3.3

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

UploadCertificateWithBodyWithResponse request with arbitrary body returning *UploadCertificateResp

func (*ClientWithResponses) UploadCertificateWithResponse added in v0.3.3

func (c *ClientWithResponses) UploadCertificateWithResponse(ctx context.Context, body UploadCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadCertificateResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AdminApiKeysListWithResponse request
	AdminApiKeysListWithResponse(ctx context.Context, params *AdminApiKeysListParams, reqEditors ...RequestEditorFn) (*AdminApiKeysListResp, error)

	// AdminApiKeysCreateWithBodyWithResponse request with any body
	AdminApiKeysCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminApiKeysCreateResp, error)

	AdminApiKeysCreateWithResponse(ctx context.Context, body AdminApiKeysCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminApiKeysCreateResp, error)

	// AdminApiKeysDeleteWithResponse request
	AdminApiKeysDeleteWithResponse(ctx context.Context, keyId string, reqEditors ...RequestEditorFn) (*AdminApiKeysDeleteResp, error)

	// AdminApiKeysGetWithResponse request
	AdminApiKeysGetWithResponse(ctx context.Context, keyId string, reqEditors ...RequestEditorFn) (*AdminApiKeysGetResp, error)

	// ListOrganizationCertificatesWithResponse request
	ListOrganizationCertificatesWithResponse(ctx context.Context, params *ListOrganizationCertificatesParams, reqEditors ...RequestEditorFn) (*ListOrganizationCertificatesResp, error)

	// UploadCertificateWithBodyWithResponse request with any body
	UploadCertificateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCertificateResp, error)

	UploadCertificateWithResponse(ctx context.Context, body UploadCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadCertificateResp, error)

	// ActivateOrganizationCertificatesWithBodyWithResponse request with any body
	ActivateOrganizationCertificatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivateOrganizationCertificatesResp, error)

	ActivateOrganizationCertificatesWithResponse(ctx context.Context, body ActivateOrganizationCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateOrganizationCertificatesResp, error)

	// DeactivateOrganizationCertificatesWithBodyWithResponse request with any body
	DeactivateOrganizationCertificatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeactivateOrganizationCertificatesResp, error)

	DeactivateOrganizationCertificatesWithResponse(ctx context.Context, body DeactivateOrganizationCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateOrganizationCertificatesResp, error)

	// DeleteCertificateWithResponse request
	DeleteCertificateWithResponse(ctx context.Context, certificateId string, reqEditors ...RequestEditorFn) (*DeleteCertificateResp, error)

	// GetCertificateWithResponse request
	GetCertificateWithResponse(ctx context.Context, certificateId string, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*GetCertificateResp, error)

	// ModifyCertificateWithBodyWithResponse request with any body
	ModifyCertificateWithBodyWithResponse(ctx context.Context, certificateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyCertificateResp, error)

	ModifyCertificateWithResponse(ctx context.Context, certificateId string, body ModifyCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyCertificateResp, error)

	// ListInvitesWithResponse request
	ListInvitesWithResponse(ctx context.Context, params *ListInvitesParams, reqEditors ...RequestEditorFn) (*ListInvitesResp, error)

	// InviteUserWithBodyWithResponse request with any body
	InviteUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUserResp, error)

	InviteUserWithResponse(ctx context.Context, body InviteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUserResp, error)

	// DeleteInviteWithResponse request
	DeleteInviteWithResponse(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*DeleteInviteResp, error)

	// RetrieveInviteWithResponse request
	RetrieveInviteWithResponse(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*RetrieveInviteResp, error)

	// ListProjectsWithResponse request
	ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResp, error)

	// CreateProjectWithBodyWithResponse request with any body
	CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResp, error)

	CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResp, error)

	// RetrieveProjectWithResponse request
	RetrieveProjectWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*RetrieveProjectResp, error)

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

	ModifyProjectWithResponse(ctx context.Context, projectId string, body ModifyProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyProjectResp, error)

	// ListProjectApiKeysWithResponse request
	ListProjectApiKeysWithResponse(ctx context.Context, projectId string, params *ListProjectApiKeysParams, reqEditors ...RequestEditorFn) (*ListProjectApiKeysResp, error)

	// DeleteProjectApiKeyWithResponse request
	DeleteProjectApiKeyWithResponse(ctx context.Context, projectId string, keyId string, reqEditors ...RequestEditorFn) (*DeleteProjectApiKeyResp, error)

	// RetrieveProjectApiKeyWithResponse request
	RetrieveProjectApiKeyWithResponse(ctx context.Context, projectId string, keyId string, reqEditors ...RequestEditorFn) (*RetrieveProjectApiKeyResp, error)

	// ArchiveProjectWithResponse request
	ArchiveProjectWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ArchiveProjectResp, error)

	// ListProjectCertificatesWithResponse request
	ListProjectCertificatesWithResponse(ctx context.Context, projectId string, params *ListProjectCertificatesParams, reqEditors ...RequestEditorFn) (*ListProjectCertificatesResp, error)

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

	ActivateProjectCertificatesWithResponse(ctx context.Context, projectId string, body ActivateProjectCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateProjectCertificatesResp, error)

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

	DeactivateProjectCertificatesWithResponse(ctx context.Context, projectId string, body DeactivateProjectCertificatesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateProjectCertificatesResp, error)

	// ListProjectRateLimitsWithResponse request
	ListProjectRateLimitsWithResponse(ctx context.Context, projectId string, params *ListProjectRateLimitsParams, reqEditors ...RequestEditorFn) (*ListProjectRateLimitsResp, error)

	// UpdateProjectRateLimitsWithBodyWithResponse request with any body
	UpdateProjectRateLimitsWithBodyWithResponse(ctx context.Context, projectId string, rateLimitId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectRateLimitsResp, error)

	UpdateProjectRateLimitsWithResponse(ctx context.Context, projectId string, rateLimitId string, body UpdateProjectRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectRateLimitsResp, error)

	// ListProjectServiceAccountsWithResponse request
	ListProjectServiceAccountsWithResponse(ctx context.Context, projectId string, params *ListProjectServiceAccountsParams, reqEditors ...RequestEditorFn) (*ListProjectServiceAccountsResp, error)

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

	CreateProjectServiceAccountWithResponse(ctx context.Context, projectId string, body CreateProjectServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectServiceAccountResp, error)

	// DeleteProjectServiceAccountWithResponse request
	DeleteProjectServiceAccountWithResponse(ctx context.Context, projectId string, serviceAccountId string, reqEditors ...RequestEditorFn) (*DeleteProjectServiceAccountResp, error)

	// RetrieveProjectServiceAccountWithResponse request
	RetrieveProjectServiceAccountWithResponse(ctx context.Context, projectId string, serviceAccountId string, reqEditors ...RequestEditorFn) (*RetrieveProjectServiceAccountResp, error)

	// ListProjectUsersWithResponse request
	ListProjectUsersWithResponse(ctx context.Context, projectId string, params *ListProjectUsersParams, reqEditors ...RequestEditorFn) (*ListProjectUsersResp, error)

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

	CreateProjectUserWithResponse(ctx context.Context, projectId string, body CreateProjectUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectUserResp, error)

	// DeleteProjectUserWithResponse request
	DeleteProjectUserWithResponse(ctx context.Context, projectId string, userId string, reqEditors ...RequestEditorFn) (*DeleteProjectUserResp, error)

	// RetrieveProjectUserWithResponse request
	RetrieveProjectUserWithResponse(ctx context.Context, projectId string, userId string, reqEditors ...RequestEditorFn) (*RetrieveProjectUserResp, error)

	// ModifyProjectUserWithBodyWithResponse request with any body
	ModifyProjectUserWithBodyWithResponse(ctx context.Context, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyProjectUserResp, error)

	ModifyProjectUserWithResponse(ctx context.Context, projectId string, userId string, body ModifyProjectUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyProjectUserResp, error)

	// ListUsersWithResponse request
	ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResp, error)

	// DeleteUserWithResponse request
	DeleteUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*DeleteUserResp, error)

	// RetrieveUserWithResponse request
	RetrieveUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*RetrieveUserResp, error)

	// ModifyUserWithBodyWithResponse request with any body
	ModifyUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyUserResp, error)

	ModifyUserWithResponse(ctx context.Context, userId string, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyUserResp, error)
}

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

type CreateProjectJSONRequestBody added in v0.3.0

type CreateProjectJSONRequestBody = ProjectCreateRequest

CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.

type CreateProjectResp added in v0.3.0

type CreateProjectResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Project
}

func ParseCreateProjectResp added in v0.3.0

func ParseCreateProjectResp(rsp *http.Response) (*CreateProjectResp, error)

ParseCreateProjectResp parses an HTTP response from a CreateProjectWithResponse call

func (CreateProjectResp) Status added in v0.3.0

func (r CreateProjectResp) Status() string

Status returns HTTPResponse.Status

func (CreateProjectResp) StatusCode added in v0.3.0

func (r CreateProjectResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectServiceAccountJSONRequestBody added in v0.3.0

type CreateProjectServiceAccountJSONRequestBody = ProjectServiceAccountCreateRequest

CreateProjectServiceAccountJSONRequestBody defines body for CreateProjectServiceAccount for application/json ContentType.

type CreateProjectServiceAccountResp added in v0.3.0

type CreateProjectServiceAccountResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ProjectServiceAccountCreateResponse
	JSON400      *ErrorResponse
}

func ParseCreateProjectServiceAccountResp added in v0.3.0

func ParseCreateProjectServiceAccountResp(rsp *http.Response) (*CreateProjectServiceAccountResp, error)

ParseCreateProjectServiceAccountResp parses an HTTP response from a CreateProjectServiceAccountWithResponse call

func (CreateProjectServiceAccountResp) Status added in v0.3.0

Status returns HTTPResponse.Status

func (CreateProjectServiceAccountResp) StatusCode added in v0.3.0

func (r CreateProjectServiceAccountResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectUserJSONRequestBody added in v0.3.0

type CreateProjectUserJSONRequestBody = ProjectUserCreateRequest

CreateProjectUserJSONRequestBody defines body for CreateProjectUser for application/json ContentType.

type CreateProjectUserResp added in v0.3.0

type CreateProjectUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ProjectUser
	JSON400      *ErrorResponse
}

func ParseCreateProjectUserResp added in v0.3.0

func ParseCreateProjectUserResp(rsp *http.Response) (*CreateProjectUserResp, error)

ParseCreateProjectUserResp parses an HTTP response from a CreateProjectUserWithResponse call

func (CreateProjectUserResp) Status added in v0.3.0

func (r CreateProjectUserResp) Status() string

Status returns HTTPResponse.Status

func (CreateProjectUserResp) StatusCode added in v0.3.0

func (r CreateProjectUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeactivateOrganizationCertificatesJSONRequestBody added in v0.3.3

type DeactivateOrganizationCertificatesJSONRequestBody = ToggleCertificatesRequest

DeactivateOrganizationCertificatesJSONRequestBody defines body for DeactivateOrganizationCertificates for application/json ContentType.

type DeactivateOrganizationCertificatesResp added in v0.3.3

type DeactivateOrganizationCertificatesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCertificatesResponse
}

func ParseDeactivateOrganizationCertificatesResp added in v0.3.3

func ParseDeactivateOrganizationCertificatesResp(rsp *http.Response) (*DeactivateOrganizationCertificatesResp, error)

ParseDeactivateOrganizationCertificatesResp parses an HTTP response from a DeactivateOrganizationCertificatesWithResponse call

func (DeactivateOrganizationCertificatesResp) Status added in v0.3.3

Status returns HTTPResponse.Status

func (DeactivateOrganizationCertificatesResp) StatusCode added in v0.3.3

StatusCode returns HTTPResponse.StatusCode

type DeactivateProjectCertificatesJSONRequestBody added in v0.3.3

type DeactivateProjectCertificatesJSONRequestBody = ToggleCertificatesRequest

DeactivateProjectCertificatesJSONRequestBody defines body for DeactivateProjectCertificates for application/json ContentType.

type DeactivateProjectCertificatesResp added in v0.3.3

type DeactivateProjectCertificatesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCertificatesResponse
}

func ParseDeactivateProjectCertificatesResp added in v0.3.3

func ParseDeactivateProjectCertificatesResp(rsp *http.Response) (*DeactivateProjectCertificatesResp, error)

ParseDeactivateProjectCertificatesResp parses an HTTP response from a DeactivateProjectCertificatesWithResponse call

func (DeactivateProjectCertificatesResp) Status added in v0.3.3

Status returns HTTPResponse.Status

func (DeactivateProjectCertificatesResp) StatusCode added in v0.3.3

func (r DeactivateProjectCertificatesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCertificateResp added in v0.3.3

type DeleteCertificateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeleteCertificateResponse
}

func ParseDeleteCertificateResp added in v0.3.3

func ParseDeleteCertificateResp(rsp *http.Response) (*DeleteCertificateResp, error)

ParseDeleteCertificateResp parses an HTTP response from a DeleteCertificateWithResponse call

func (DeleteCertificateResp) Status added in v0.3.3

func (r DeleteCertificateResp) Status() string

Status returns HTTPResponse.Status

func (DeleteCertificateResp) StatusCode added in v0.3.3

func (r DeleteCertificateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCertificateResponse added in v0.3.3

type DeleteCertificateResponse struct {
	// Id The ID of the certificate that was deleted.
	Id string `json:"id"`

	// Object The object type, must be `certificate.deleted`.
	Object interface{} `json:"object"`
}

DeleteCertificateResponse defines model for DeleteCertificateResponse.

type DeleteInviteResp added in v0.3.0

type DeleteInviteResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InviteDeleteResponse
}

func ParseDeleteInviteResp added in v0.3.0

func ParseDeleteInviteResp(rsp *http.Response) (*DeleteInviteResp, error)

ParseDeleteInviteResp parses an HTTP response from a DeleteInviteWithResponse call

func (DeleteInviteResp) Status added in v0.3.0

func (r DeleteInviteResp) Status() string

Status returns HTTPResponse.Status

func (DeleteInviteResp) StatusCode added in v0.3.0

func (r DeleteInviteResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProjectApiKeyResp added in v0.3.0

type DeleteProjectApiKeyResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectApiKeyDeleteResponse
	JSON400      *ErrorResponse
}

func ParseDeleteProjectApiKeyResp added in v0.3.0

func ParseDeleteProjectApiKeyResp(rsp *http.Response) (*DeleteProjectApiKeyResp, error)

ParseDeleteProjectApiKeyResp parses an HTTP response from a DeleteProjectApiKeyWithResponse call

func (DeleteProjectApiKeyResp) Status added in v0.3.0

func (r DeleteProjectApiKeyResp) Status() string

Status returns HTTPResponse.Status

func (DeleteProjectApiKeyResp) StatusCode added in v0.3.0

func (r DeleteProjectApiKeyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProjectServiceAccountResp added in v0.3.0

type DeleteProjectServiceAccountResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectServiceAccountDeleteResponse
}

func ParseDeleteProjectServiceAccountResp added in v0.3.0

func ParseDeleteProjectServiceAccountResp(rsp *http.Response) (*DeleteProjectServiceAccountResp, error)

ParseDeleteProjectServiceAccountResp parses an HTTP response from a DeleteProjectServiceAccountWithResponse call

func (DeleteProjectServiceAccountResp) Status added in v0.3.0

Status returns HTTPResponse.Status

func (DeleteProjectServiceAccountResp) StatusCode added in v0.3.0

func (r DeleteProjectServiceAccountResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProjectUserResp added in v0.3.0

type DeleteProjectUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectUserDeleteResponse
	JSON400      *ErrorResponse
}

func ParseDeleteProjectUserResp added in v0.3.0

func ParseDeleteProjectUserResp(rsp *http.Response) (*DeleteProjectUserResp, error)

ParseDeleteProjectUserResp parses an HTTP response from a DeleteProjectUserWithResponse call

func (DeleteProjectUserResp) Status added in v0.3.0

func (r DeleteProjectUserResp) Status() string

Status returns HTTPResponse.Status

func (DeleteProjectUserResp) StatusCode added in v0.3.0

func (r DeleteProjectUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserResp added in v0.3.0

type DeleteUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserDeleteResponse
}

func ParseDeleteUserResp added in v0.3.0

func ParseDeleteUserResp(rsp *http.Response) (*DeleteUserResp, error)

ParseDeleteUserResp parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResp) Status added in v0.3.0

func (r DeleteUserResp) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResp) StatusCode added in v0.3.0

func (r DeleteUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	Code    *string `json:"code"`
	Message string  `json:"message"`
	Param   *string `json:"param"`
	Type    string  `json:"type"`
}

Error defines model for Error.

type ErrorResponse added in v0.3.0

type ErrorResponse struct {
	Error Error `json:"error"`
}

ErrorResponse defines model for ErrorResponse.

type GetCertificateParams added in v0.3.3

type GetCertificateParams struct {
	// Include A list of additional fields to include in the response. Currently the only supported value is `content` to fetch the PEM content of the certificate.
	Include *[]GetCertificateParamsInclude `form:"include,omitempty" json:"include,omitempty"`
}

GetCertificateParams defines parameters for GetCertificate.

type GetCertificateParamsInclude added in v0.3.3

type GetCertificateParamsInclude string

GetCertificateParamsInclude defines parameters for GetCertificate.

const (
	Content GetCertificateParamsInclude = "content"
)

Defines values for GetCertificateParamsInclude.

type GetCertificateResp added in v0.3.3

type GetCertificateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Certificate
}

func ParseGetCertificateResp added in v0.3.3

func ParseGetCertificateResp(rsp *http.Response) (*GetCertificateResp, error)

ParseGetCertificateResp parses an HTTP response from a GetCertificateWithResponse call

func (GetCertificateResp) Status added in v0.3.3

func (r GetCertificateResp) Status() string

Status returns HTTPResponse.Status

func (GetCertificateResp) StatusCode added in v0.3.3

func (r GetCertificateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Invite added in v0.3.0

type Invite struct {
	// AcceptedAt The Unix timestamp (in seconds) of when the invite was accepted.
	AcceptedAt *int64 `json:"accepted_at,omitempty"`

	// Email The email address of the individual to whom the invite was sent
	Email string `json:"email"`

	// ExpiresAt The Unix timestamp (in seconds) of when the invite expires.
	ExpiresAt int64 `json:"expires_at"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// InvitedAt The Unix timestamp (in seconds) of when the invite was sent.
	InvitedAt int64 `json:"invited_at"`

	// Object The object type, which is always `organization.invite`
	Object InviteObject `json:"object"`

	// Projects The projects that were granted membership upon acceptance of the invite.
	Projects *[]struct {
		// Id Project's public ID
		Id *string `json:"id,omitempty"`

		// Role Project membership role
		Role *InviteProjectsRole `json:"role,omitempty"`
	} `json:"projects,omitempty"`

	// Role `owner` or `reader`
	Role InviteRole `json:"role"`

	// Status `accepted`,`expired`, or `pending`
	Status InviteStatus `json:"status"`
}

Invite Represents an individual `invite` to the organization.

type InviteDeleteResponse added in v0.3.0

type InviteDeleteResponse struct {
	Deleted bool   `json:"deleted"`
	Id      string `json:"id"`

	// Object The object type, which is always `organization.invite.deleted`
	Object InviteDeleteResponseObject `json:"object"`
}

InviteDeleteResponse defines model for InviteDeleteResponse.

type InviteDeleteResponseObject added in v0.3.0

type InviteDeleteResponseObject string

InviteDeleteResponseObject The object type, which is always `organization.invite.deleted`

const (
	OrganizationInviteDeleted InviteDeleteResponseObject = "organization.invite.deleted"
)

Defines values for InviteDeleteResponseObject.

type InviteListResponse added in v0.3.0

type InviteListResponse struct {
	Data []Invite `json:"data"`

	// FirstId The first `invite_id` in the retrieved `list`
	FirstId *string `json:"first_id,omitempty"`

	// HasMore The `has_more` property is used for pagination to indicate there are additional results.
	HasMore *bool `json:"has_more,omitempty"`

	// LastId The last `invite_id` in the retrieved `list`
	LastId *string `json:"last_id,omitempty"`

	// Object The object type, which is always `list`
	Object InviteListResponseObject `json:"object"`
}

InviteListResponse defines model for InviteListResponse.

type InviteListResponseObject added in v0.3.0

type InviteListResponseObject string

InviteListResponseObject The object type, which is always `list`

const (
	InviteListResponseObjectList InviteListResponseObject = "list"
)

Defines values for InviteListResponseObject.

type InviteObject added in v0.3.0

type InviteObject string

InviteObject The object type, which is always `organization.invite`

const (
	OrganizationInvite InviteObject = "organization.invite"
)

Defines values for InviteObject.

type InviteProjectsRole added in v0.3.1

type InviteProjectsRole string

InviteProjectsRole Project membership role

const (
	InviteProjectsRoleMember InviteProjectsRole = "member"
	InviteProjectsRoleOwner  InviteProjectsRole = "owner"
)

Defines values for InviteProjectsRole.

type InviteRequest added in v0.3.0

type InviteRequest struct {
	// Email Send an email to this address
	Email string `json:"email"`

	// Projects An array of projects to which membership is granted at the same time the org invite is accepted. If omitted, the user will be invited to the default project for compatibility with legacy behavior.
	Projects *[]struct {
		// Id Project's public ID
		Id string `json:"id"`

		// Role Project membership role
		Role InviteRequestProjectsRole `json:"role"`
	} `json:"projects,omitempty"`

	// Role `owner` or `reader`
	Role InviteRequestRole `json:"role"`
}

InviteRequest defines model for InviteRequest.

type InviteRequestProjectsRole added in v0.3.1

type InviteRequestProjectsRole string

InviteRequestProjectsRole Project membership role

const (
	InviteRequestProjectsRoleMember InviteRequestProjectsRole = "member"
	InviteRequestProjectsRoleOwner  InviteRequestProjectsRole = "owner"
)

Defines values for InviteRequestProjectsRole.

type InviteRequestRole added in v0.3.0

type InviteRequestRole string

InviteRequestRole `owner` or `reader`

const (
	InviteRequestRoleOwner  InviteRequestRole = "owner"
	InviteRequestRoleReader InviteRequestRole = "reader"
)

Defines values for InviteRequestRole.

type InviteRole added in v0.3.0

type InviteRole string

InviteRole `owner` or `reader`

const (
	InviteRoleOwner  InviteRole = "owner"
	InviteRoleReader InviteRole = "reader"
)

Defines values for InviteRole.

type InviteStatus added in v0.3.0

type InviteStatus string

InviteStatus `accepted`,`expired`, or `pending`

const (
	Accepted InviteStatus = "accepted"
	Expired  InviteStatus = "expired"
	Pending  InviteStatus = "pending"
)

Defines values for InviteStatus.

type InviteUserJSONRequestBody added in v0.3.0

type InviteUserJSONRequestBody = InviteRequest

InviteUserJSONRequestBody defines body for InviteUser for application/json ContentType.

type InviteUserResp added in v0.3.0

type InviteUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Invite
}

func ParseInviteUserResp added in v0.3.0

func ParseInviteUserResp(rsp *http.Response) (*InviteUserResp, error)

ParseInviteUserResp parses an HTTP response from a InviteUserWithResponse call

func (InviteUserResp) Status added in v0.3.0

func (r InviteUserResp) Status() string

Status returns HTTPResponse.Status

func (InviteUserResp) StatusCode added in v0.3.0

func (r InviteUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCertificatesResponse added in v0.3.3

type ListCertificatesResponse struct {
	Data    []Certificate                  `json:"data"`
	FirstId *string                        `json:"first_id,omitempty"`
	HasMore bool                           `json:"has_more"`
	LastId  *string                        `json:"last_id,omitempty"`
	Object  ListCertificatesResponseObject `json:"object"`
}

ListCertificatesResponse defines model for ListCertificatesResponse.

type ListCertificatesResponseObject added in v0.3.3

type ListCertificatesResponseObject string

ListCertificatesResponseObject defines model for ListCertificatesResponse.Object.

const (
	ListCertificatesResponseObjectList ListCertificatesResponseObject = "list"
)

Defines values for ListCertificatesResponseObject.

type ListInvitesParams added in v0.3.0

type ListInvitesParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

ListInvitesParams defines parameters for ListInvites.

type ListInvitesResp added in v0.3.0

type ListInvitesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InviteListResponse
}

func ParseListInvitesResp added in v0.3.0

func ParseListInvitesResp(rsp *http.Response) (*ListInvitesResp, error)

ParseListInvitesResp parses an HTTP response from a ListInvitesWithResponse call

func (ListInvitesResp) Status added in v0.3.0

func (r ListInvitesResp) Status() string

Status returns HTTPResponse.Status

func (ListInvitesResp) StatusCode added in v0.3.0

func (r ListInvitesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrganizationCertificatesParams added in v0.3.3

type ListOrganizationCertificatesParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	Order *ListOrganizationCertificatesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}

ListOrganizationCertificatesParams defines parameters for ListOrganizationCertificates.

type ListOrganizationCertificatesParamsOrder added in v0.3.3

type ListOrganizationCertificatesParamsOrder string

ListOrganizationCertificatesParamsOrder defines parameters for ListOrganizationCertificates.

const (
	ListOrganizationCertificatesParamsOrderAsc  ListOrganizationCertificatesParamsOrder = "asc"
	ListOrganizationCertificatesParamsOrderDesc ListOrganizationCertificatesParamsOrder = "desc"
)

Defines values for ListOrganizationCertificatesParamsOrder.

type ListOrganizationCertificatesResp added in v0.3.3

type ListOrganizationCertificatesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCertificatesResponse
}

func ParseListOrganizationCertificatesResp added in v0.3.3

func ParseListOrganizationCertificatesResp(rsp *http.Response) (*ListOrganizationCertificatesResp, error)

ParseListOrganizationCertificatesResp parses an HTTP response from a ListOrganizationCertificatesWithResponse call

func (ListOrganizationCertificatesResp) Status added in v0.3.3

Status returns HTTPResponse.Status

func (ListOrganizationCertificatesResp) StatusCode added in v0.3.3

func (r ListOrganizationCertificatesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectApiKeysParams added in v0.3.0

type ListProjectApiKeysParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

ListProjectApiKeysParams defines parameters for ListProjectApiKeys.

type ListProjectApiKeysResp added in v0.3.0

type ListProjectApiKeysResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectApiKeyListResponse
}

func ParseListProjectApiKeysResp added in v0.3.0

func ParseListProjectApiKeysResp(rsp *http.Response) (*ListProjectApiKeysResp, error)

ParseListProjectApiKeysResp parses an HTTP response from a ListProjectApiKeysWithResponse call

func (ListProjectApiKeysResp) Status added in v0.3.0

func (r ListProjectApiKeysResp) Status() string

Status returns HTTPResponse.Status

func (ListProjectApiKeysResp) StatusCode added in v0.3.0

func (r ListProjectApiKeysResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectCertificatesParams added in v0.3.3

type ListProjectCertificatesParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.
	Order *ListProjectCertificatesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}

ListProjectCertificatesParams defines parameters for ListProjectCertificates.

type ListProjectCertificatesParamsOrder added in v0.3.3

type ListProjectCertificatesParamsOrder string

ListProjectCertificatesParamsOrder defines parameters for ListProjectCertificates.

Defines values for ListProjectCertificatesParamsOrder.

type ListProjectCertificatesResp added in v0.3.3

type ListProjectCertificatesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListCertificatesResponse
}

func ParseListProjectCertificatesResp added in v0.3.3

func ParseListProjectCertificatesResp(rsp *http.Response) (*ListProjectCertificatesResp, error)

ParseListProjectCertificatesResp parses an HTTP response from a ListProjectCertificatesWithResponse call

func (ListProjectCertificatesResp) Status added in v0.3.3

Status returns HTTPResponse.Status

func (ListProjectCertificatesResp) StatusCode added in v0.3.3

func (r ListProjectCertificatesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectRateLimitsParams added in v0.3.0

type ListProjectRateLimitsParams struct {
	// Limit A limit on the number of objects to be returned. The default is 100.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Before A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, beginning with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
	Before *string `form:"before,omitempty" json:"before,omitempty"`
}

ListProjectRateLimitsParams defines parameters for ListProjectRateLimits.

type ListProjectRateLimitsResp added in v0.3.0

type ListProjectRateLimitsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectRateLimitListResponse
}

func ParseListProjectRateLimitsResp added in v0.3.0

func ParseListProjectRateLimitsResp(rsp *http.Response) (*ListProjectRateLimitsResp, error)

ParseListProjectRateLimitsResp parses an HTTP response from a ListProjectRateLimitsWithResponse call

func (ListProjectRateLimitsResp) Status added in v0.3.0

func (r ListProjectRateLimitsResp) Status() string

Status returns HTTPResponse.Status

func (ListProjectRateLimitsResp) StatusCode added in v0.3.0

func (r ListProjectRateLimitsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectServiceAccountsParams added in v0.3.0

type ListProjectServiceAccountsParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

ListProjectServiceAccountsParams defines parameters for ListProjectServiceAccounts.

type ListProjectServiceAccountsResp added in v0.3.0

type ListProjectServiceAccountsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectServiceAccountListResponse
	JSON400      *ErrorResponse
}

func ParseListProjectServiceAccountsResp added in v0.3.0

func ParseListProjectServiceAccountsResp(rsp *http.Response) (*ListProjectServiceAccountsResp, error)

ParseListProjectServiceAccountsResp parses an HTTP response from a ListProjectServiceAccountsWithResponse call

func (ListProjectServiceAccountsResp) Status added in v0.3.0

Status returns HTTPResponse.Status

func (ListProjectServiceAccountsResp) StatusCode added in v0.3.0

func (r ListProjectServiceAccountsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectUsersParams added in v0.3.0

type ListProjectUsersParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

ListProjectUsersParams defines parameters for ListProjectUsers.

type ListProjectUsersResp added in v0.3.0

type ListProjectUsersResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectUserListResponse
	JSON400      *ErrorResponse
}

func ParseListProjectUsersResp added in v0.3.0

func ParseListProjectUsersResp(rsp *http.Response) (*ListProjectUsersResp, error)

ParseListProjectUsersResp parses an HTTP response from a ListProjectUsersWithResponse call

func (ListProjectUsersResp) Status added in v0.3.0

func (r ListProjectUsersResp) Status() string

Status returns HTTPResponse.Status

func (ListProjectUsersResp) StatusCode added in v0.3.0

func (r ListProjectUsersResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectsParams added in v0.3.0

type ListProjectsParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// IncludeArchived If `true` returns all projects including those that have been `archived`. Archived projects are not included by default.
	IncludeArchived *bool `form:"include_archived,omitempty" json:"include_archived,omitempty"`
}

ListProjectsParams defines parameters for ListProjects.

type ListProjectsResp added in v0.3.0

type ListProjectsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectListResponse
}

func ParseListProjectsResp added in v0.3.0

func ParseListProjectsResp(rsp *http.Response) (*ListProjectsResp, error)

ParseListProjectsResp parses an HTTP response from a ListProjectsWithResponse call

func (ListProjectsResp) Status added in v0.3.0

func (r ListProjectsResp) Status() string

Status returns HTTPResponse.Status

func (ListProjectsResp) StatusCode added in v0.3.0

func (r ListProjectsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersParams added in v0.3.0

type ListUsersParams struct {
	// Limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// After A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Emails Filter by the email address of users.
	Emails *[]string `form:"emails,omitempty" json:"emails,omitempty"`
}

ListUsersParams defines parameters for ListUsers.

type ListUsersResp added in v0.3.0

type ListUsersResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserListResponse
}

func ParseListUsersResp added in v0.3.0

func ParseListUsersResp(rsp *http.Response) (*ListUsersResp, error)

ParseListUsersResp parses an HTTP response from a ListUsersWithResponse call

func (ListUsersResp) Status added in v0.3.0

func (r ListUsersResp) Status() string

Status returns HTTPResponse.Status

func (ListUsersResp) StatusCode added in v0.3.0

func (r ListUsersResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModifyCertificateJSONRequestBody added in v0.3.3

type ModifyCertificateJSONRequestBody = ModifyCertificateRequest

ModifyCertificateJSONRequestBody defines body for ModifyCertificate for application/json ContentType.

type ModifyCertificateRequest added in v0.3.3

type ModifyCertificateRequest struct {
	// Name The updated name for the certificate
	Name string `json:"name"`
}

ModifyCertificateRequest defines model for ModifyCertificateRequest.

type ModifyCertificateResp added in v0.3.3

type ModifyCertificateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Certificate
}

func ParseModifyCertificateResp added in v0.3.3

func ParseModifyCertificateResp(rsp *http.Response) (*ModifyCertificateResp, error)

ParseModifyCertificateResp parses an HTTP response from a ModifyCertificateWithResponse call

func (ModifyCertificateResp) Status added in v0.3.3

func (r ModifyCertificateResp) Status() string

Status returns HTTPResponse.Status

func (ModifyCertificateResp) StatusCode added in v0.3.3

func (r ModifyCertificateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModifyProjectJSONRequestBody added in v0.3.0

type ModifyProjectJSONRequestBody = ProjectUpdateRequest

ModifyProjectJSONRequestBody defines body for ModifyProject for application/json ContentType.

type ModifyProjectResp added in v0.3.0

type ModifyProjectResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Project
	JSON400      *ErrorResponse
}

func ParseModifyProjectResp added in v0.3.0

func ParseModifyProjectResp(rsp *http.Response) (*ModifyProjectResp, error)

ParseModifyProjectResp parses an HTTP response from a ModifyProjectWithResponse call

func (ModifyProjectResp) Status added in v0.3.0

func (r ModifyProjectResp) Status() string

Status returns HTTPResponse.Status

func (ModifyProjectResp) StatusCode added in v0.3.0

func (r ModifyProjectResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModifyProjectUserJSONRequestBody added in v0.3.0

type ModifyProjectUserJSONRequestBody = ProjectUserUpdateRequest

ModifyProjectUserJSONRequestBody defines body for ModifyProjectUser for application/json ContentType.

type ModifyProjectUserResp added in v0.3.0

type ModifyProjectUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectUser
	JSON400      *ErrorResponse
}

func ParseModifyProjectUserResp added in v0.3.0

func ParseModifyProjectUserResp(rsp *http.Response) (*ModifyProjectUserResp, error)

ParseModifyProjectUserResp parses an HTTP response from a ModifyProjectUserWithResponse call

func (ModifyProjectUserResp) Status added in v0.3.0

func (r ModifyProjectUserResp) Status() string

Status returns HTTPResponse.Status

func (ModifyProjectUserResp) StatusCode added in v0.3.0

func (r ModifyProjectUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModifyUserJSONRequestBody added in v0.3.0

type ModifyUserJSONRequestBody = UserRoleUpdateRequest

ModifyUserJSONRequestBody defines body for ModifyUser for application/json ContentType.

type ModifyUserResp added in v0.3.0

type ModifyUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

func ParseModifyUserResp added in v0.3.0

func ParseModifyUserResp(rsp *http.Response) (*ModifyUserResp, error)

ParseModifyUserResp parses an HTTP response from a ModifyUserWithResponse call

func (ModifyUserResp) Status added in v0.3.0

func (r ModifyUserResp) Status() string

Status returns HTTPResponse.Status

func (ModifyUserResp) StatusCode added in v0.3.0

func (r ModifyUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Project

type Project struct {
	// ArchivedAt The Unix timestamp (in seconds) of when the project was archived or `null`.
	ArchivedAt *int64 `json:"archived_at"`

	// CreatedAt The Unix timestamp (in seconds) of when the project was created.
	CreatedAt int64 `json:"created_at"`

	// ExternalKeyId The ID of the customer-managed encryption key for Enterprise Key Management (EKM).
	ExternalKeyId *string `json:"external_key_id,omitempty"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// Name The name of the project. This appears in reporting.
	Name string `json:"name"`

	// Object The object type, which is always `organization.project`
	Object ProjectObject `json:"object"`

	// Status `active` or `archived`
	Status ProjectStatus `json:"status"`
}

Project Represents an individual project.

type ProjectApiKey added in v0.3.0

type ProjectApiKey struct {
	// CreatedAt The Unix timestamp (in seconds) of when the API key was created
	CreatedAt int64 `json:"created_at"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// LastUsedAt The Unix timestamp (in seconds) of when the API key was last used.
	LastUsedAt int64 `json:"last_used_at"`

	// Name The name of the API key
	Name string `json:"name"`

	// Object The object type, which is always `organization.project.api_key`
	Object ProjectApiKeyObject `json:"object"`
	Owner  struct {
		// ServiceAccount Represents an individual service account in a project.
		ServiceAccount *ProjectServiceAccount `json:"service_account,omitempty"`

		// Type `user` or `service_account`
		Type *ProjectApiKeyOwnerType `json:"type,omitempty"`

		// User Represents an individual user in a project.
		User *ProjectUser `json:"user,omitempty"`
	} `json:"owner"`

	// RedactedValue The redacted value of the API key
	RedactedValue string `json:"redacted_value"`
}

ProjectApiKey Represents an individual API key in a project.

type ProjectApiKeyDeleteResponse added in v0.3.0

type ProjectApiKeyDeleteResponse struct {
	Deleted bool                              `json:"deleted"`
	Id      string                            `json:"id"`
	Object  ProjectApiKeyDeleteResponseObject `json:"object"`
}

ProjectApiKeyDeleteResponse defines model for ProjectApiKeyDeleteResponse.

type ProjectApiKeyDeleteResponseObject added in v0.3.0

type ProjectApiKeyDeleteResponseObject string

ProjectApiKeyDeleteResponseObject defines model for ProjectApiKeyDeleteResponse.Object.

const (
	OrganizationProjectApiKeyDeleted ProjectApiKeyDeleteResponseObject = "organization.project.api_key.deleted"
)

Defines values for ProjectApiKeyDeleteResponseObject.

type ProjectApiKeyListResponse added in v0.3.0

type ProjectApiKeyListResponse struct {
	Data    []ProjectApiKey                 `json:"data"`
	FirstId string                          `json:"first_id"`
	HasMore bool                            `json:"has_more"`
	LastId  string                          `json:"last_id"`
	Object  ProjectApiKeyListResponseObject `json:"object"`
}

ProjectApiKeyListResponse defines model for ProjectApiKeyListResponse.

type ProjectApiKeyListResponseObject added in v0.3.0

type ProjectApiKeyListResponseObject string

ProjectApiKeyListResponseObject defines model for ProjectApiKeyListResponse.Object.

const (
	ProjectApiKeyListResponseObjectList ProjectApiKeyListResponseObject = "list"
)

Defines values for ProjectApiKeyListResponseObject.

type ProjectApiKeyObject added in v0.3.0

type ProjectApiKeyObject string

ProjectApiKeyObject The object type, which is always `organization.project.api_key`

const (
	OrganizationProjectApiKey ProjectApiKeyObject = "organization.project.api_key"
)

Defines values for ProjectApiKeyObject.

type ProjectApiKeyOwnerType added in v0.3.0

type ProjectApiKeyOwnerType string

ProjectApiKeyOwnerType `user` or `service_account`

const (
	ProjectApiKeyOwnerTypeServiceAccount ProjectApiKeyOwnerType = "service_account"
	ProjectApiKeyOwnerTypeUser           ProjectApiKeyOwnerType = "user"
)

Defines values for ProjectApiKeyOwnerType.

type ProjectCreateRequest added in v0.3.0

type ProjectCreateRequest struct {
	// ExternalKeyId The ID of the customer-managed encryption key for Enterprise Key Management (EKM).
	ExternalKeyId *string `json:"external_key_id,omitempty"`

	// Geography Create the project with the specified data residency region. Your organization must have access to Data residency functionality in order to use. See [data residency controls](https://platform.openai.com/docs/guides/your-data#data-residency-controls) to review the functionality and limitations of setting this field.
	Geography *ProjectCreateRequestGeography `json:"geography,omitempty"`

	// Name The friendly name of the project, this name appears in reports.
	Name string `json:"name"`
}

ProjectCreateRequest defines model for ProjectCreateRequest.

type ProjectCreateRequestGeography added in v0.3.3

type ProjectCreateRequestGeography string

ProjectCreateRequestGeography Create the project with the specified data residency region. Your organization must have access to Data residency functionality in order to use. See [data residency controls](https://platform.openai.com/docs/guides/your-data#data-residency-controls) to review the functionality and limitations of setting this field.

type ProjectListResponse added in v0.3.0

type ProjectListResponse struct {
	Data    []Project                 `json:"data"`
	FirstId string                    `json:"first_id"`
	HasMore bool                      `json:"has_more"`
	LastId  string                    `json:"last_id"`
	Object  ProjectListResponseObject `json:"object"`
}

ProjectListResponse defines model for ProjectListResponse.

type ProjectListResponseObject added in v0.3.0

type ProjectListResponseObject string

ProjectListResponseObject defines model for ProjectListResponse.Object.

const (
	ProjectListResponseObjectList ProjectListResponseObject = "list"
)

Defines values for ProjectListResponseObject.

type ProjectObject

type ProjectObject string

ProjectObject The object type, which is always `organization.project`

const (
	OrganizationProject ProjectObject = "organization.project"
)

Defines values for ProjectObject.

type ProjectRateLimit added in v0.3.0

type ProjectRateLimit struct {
	// Batch1DayMaxInputTokens The maximum batch input tokens per day. Only present for relevant models.
	Batch1DayMaxInputTokens *int64 `json:"batch_1_day_max_input_tokens,omitempty"`

	// Id The identifier, which can be referenced in API endpoints.
	Id string `json:"id"`

	// MaxAudioMegabytesPer1Minute The maximum audio megabytes per minute. Only present for relevant models.
	MaxAudioMegabytesPer1Minute *int64 `json:"max_audio_megabytes_per_1_minute,omitempty"`

	// MaxImagesPer1Minute The maximum images per minute. Only present for relevant models.
	MaxImagesPer1Minute *int64 `json:"max_images_per_1_minute,omitempty"`

	// MaxRequestsPer1Day The maximum requests per day. Only present for relevant models.
	MaxRequestsPer1Day *int64 `json:"max_requests_per_1_day,omitempty"`

	// MaxRequestsPer1Minute The maximum requests per minute.
	MaxRequestsPer1Minute int64 `json:"max_requests_per_1_minute"`

	// MaxTokensPer1Minute The maximum tokens per minute.
	MaxTokensPer1Minute int64 `json:"max_tokens_per_1_minute"`

	// Model The model this rate limit applies to.
	Model string `json:"model"`

	// Object The object type, which is always `project.rate_limit`
	Object ProjectRateLimitObject `json:"object"`
}

ProjectRateLimit Represents a project rate limit config.

type ProjectRateLimitListResponse added in v0.3.0

type ProjectRateLimitListResponse struct {
	Data    []ProjectRateLimit                 `json:"data"`
	FirstId string                             `json:"first_id"`
	HasMore bool                               `json:"has_more"`
	LastId  string                             `json:"last_id"`
	Object  ProjectRateLimitListResponseObject `json:"object"`
}

ProjectRateLimitListResponse defines model for ProjectRateLimitListResponse.

type ProjectRateLimitListResponseObject added in v0.3.0

type ProjectRateLimitListResponseObject string

ProjectRateLimitListResponseObject defines model for ProjectRateLimitListResponse.Object.

const (
	ProjectRateLimitListResponseObjectList ProjectRateLimitListResponseObject = "list"
)

Defines values for ProjectRateLimitListResponseObject.

type ProjectRateLimitObject added in v0.3.0

type ProjectRateLimitObject string

ProjectRateLimitObject The object type, which is always `project.rate_limit`

const (
	ProjectRateLimitObjectProjectRateLimit ProjectRateLimitObject = "project.rate_limit"
)

Defines values for ProjectRateLimitObject.

type ProjectRateLimitUpdateRequest added in v0.3.0

type ProjectRateLimitUpdateRequest struct {
	// Batch1DayMaxInputTokens The maximum batch input tokens per day. Only relevant for certain models.
	Batch1DayMaxInputTokens *int64 `json:"batch_1_day_max_input_tokens,omitempty"`

	// MaxAudioMegabytesPer1Minute The maximum audio megabytes per minute. Only relevant for certain models.
	MaxAudioMegabytesPer1Minute *int64 `json:"max_audio_megabytes_per_1_minute,omitempty"`

	// MaxImagesPer1Minute The maximum images per minute. Only relevant for certain models.
	MaxImagesPer1Minute *int64 `json:"max_images_per_1_minute,omitempty"`

	// MaxRequestsPer1Day The maximum requests per day. Only relevant for certain models.
	MaxRequestsPer1Day *int64 `json:"max_requests_per_1_day,omitempty"`

	// MaxRequestsPer1Minute The maximum requests per minute.
	MaxRequestsPer1Minute *int64 `json:"max_requests_per_1_minute,omitempty"`

	// MaxTokensPer1Minute The maximum tokens per minute.
	MaxTokensPer1Minute *int64 `json:"max_tokens_per_1_minute,omitempty"`
}

ProjectRateLimitUpdateRequest defines model for ProjectRateLimitUpdateRequest.

type ProjectServiceAccount added in v0.3.0

type ProjectServiceAccount struct {
	// CreatedAt The Unix timestamp (in seconds) of when the service account was created
	CreatedAt int64 `json:"created_at"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// Name The name of the service account
	Name string `json:"name"`

	// Object The object type, which is always `organization.project.service_account`
	Object ProjectServiceAccountObject `json:"object"`

	// Role `owner` or `member`
	Role ProjectServiceAccountRole `json:"role"`
}

ProjectServiceAccount Represents an individual service account in a project.

type ProjectServiceAccountApiKey added in v0.3.0

type ProjectServiceAccountApiKey struct {
	CreatedAt int64  `json:"created_at"`
	Id        string `json:"id"`
	Name      string `json:"name"`

	// Object The object type, which is always `organization.project.service_account.api_key`
	Object ProjectServiceAccountApiKeyObject `json:"object"`
	Value  string                            `json:"value"`
}

ProjectServiceAccountApiKey defines model for ProjectServiceAccountApiKey.

type ProjectServiceAccountApiKeyObject added in v0.3.0

type ProjectServiceAccountApiKeyObject string

ProjectServiceAccountApiKeyObject The object type, which is always `organization.project.service_account.api_key`

const (
	OrganizationProjectServiceAccountApiKey ProjectServiceAccountApiKeyObject = "organization.project.service_account.api_key"
)

Defines values for ProjectServiceAccountApiKeyObject.

type ProjectServiceAccountCreateRequest added in v0.3.0

type ProjectServiceAccountCreateRequest struct {
	// Name The name of the service account being created.
	Name string `json:"name"`
}

ProjectServiceAccountCreateRequest defines model for ProjectServiceAccountCreateRequest.

type ProjectServiceAccountCreateResponse added in v0.3.0

type ProjectServiceAccountCreateResponse struct {
	ApiKey    ProjectServiceAccountApiKey               `json:"api_key"`
	CreatedAt int64                                     `json:"created_at"`
	Id        string                                    `json:"id"`
	Name      string                                    `json:"name"`
	Object    ProjectServiceAccountCreateResponseObject `json:"object"`

	// Role Service accounts can only have one role of type `member`
	Role ProjectServiceAccountCreateResponseRole `json:"role"`
}

ProjectServiceAccountCreateResponse defines model for ProjectServiceAccountCreateResponse.

type ProjectServiceAccountCreateResponseObject added in v0.3.0

type ProjectServiceAccountCreateResponseObject string

ProjectServiceAccountCreateResponseObject defines model for ProjectServiceAccountCreateResponse.Object.

const (
	ProjectServiceAccountCreateResponseObjectOrganizationProjectServiceAccount ProjectServiceAccountCreateResponseObject = "organization.project.service_account"
)

Defines values for ProjectServiceAccountCreateResponseObject.

type ProjectServiceAccountCreateResponseRole added in v0.3.0

type ProjectServiceAccountCreateResponseRole string

ProjectServiceAccountCreateResponseRole Service accounts can only have one role of type `member`

const (
	ProjectServiceAccountCreateResponseRoleMember ProjectServiceAccountCreateResponseRole = "member"
)

Defines values for ProjectServiceAccountCreateResponseRole.

type ProjectServiceAccountDeleteResponse added in v0.3.0

type ProjectServiceAccountDeleteResponse struct {
	Deleted bool                                      `json:"deleted"`
	Id      string                                    `json:"id"`
	Object  ProjectServiceAccountDeleteResponseObject `json:"object"`
}

ProjectServiceAccountDeleteResponse defines model for ProjectServiceAccountDeleteResponse.

type ProjectServiceAccountDeleteResponseObject added in v0.3.0

type ProjectServiceAccountDeleteResponseObject string

ProjectServiceAccountDeleteResponseObject defines model for ProjectServiceAccountDeleteResponse.Object.

const (
	OrganizationProjectServiceAccountDeleted ProjectServiceAccountDeleteResponseObject = "organization.project.service_account.deleted"
)

Defines values for ProjectServiceAccountDeleteResponseObject.

type ProjectServiceAccountListResponse added in v0.3.0

type ProjectServiceAccountListResponse struct {
	Data    []ProjectServiceAccount                 `json:"data"`
	FirstId string                                  `json:"first_id"`
	HasMore bool                                    `json:"has_more"`
	LastId  string                                  `json:"last_id"`
	Object  ProjectServiceAccountListResponseObject `json:"object"`
}

ProjectServiceAccountListResponse defines model for ProjectServiceAccountListResponse.

type ProjectServiceAccountListResponseObject added in v0.3.0

type ProjectServiceAccountListResponseObject string

ProjectServiceAccountListResponseObject defines model for ProjectServiceAccountListResponse.Object.

const (
	ProjectServiceAccountListResponseObjectList ProjectServiceAccountListResponseObject = "list"
)

Defines values for ProjectServiceAccountListResponseObject.

type ProjectServiceAccountObject added in v0.3.0

type ProjectServiceAccountObject string

ProjectServiceAccountObject The object type, which is always `organization.project.service_account`

const (
	ProjectServiceAccountObjectOrganizationProjectServiceAccount ProjectServiceAccountObject = "organization.project.service_account"
)

Defines values for ProjectServiceAccountObject.

type ProjectServiceAccountRole added in v0.3.0

type ProjectServiceAccountRole string

ProjectServiceAccountRole `owner` or `member`

const (
	ProjectServiceAccountRoleMember ProjectServiceAccountRole = "member"
	ProjectServiceAccountRoleOwner  ProjectServiceAccountRole = "owner"
)

Defines values for ProjectServiceAccountRole.

type ProjectStatus added in v0.3.0

type ProjectStatus string

ProjectStatus `active` or `archived`

const (
	Active   ProjectStatus = "active"
	Archived ProjectStatus = "archived"
)

Defines values for ProjectStatus.

type ProjectUpdateRequest added in v0.3.0

type ProjectUpdateRequest struct {
	// Name The updated name of the project, this name appears in reports.
	Name string `json:"name"`
}

ProjectUpdateRequest defines model for ProjectUpdateRequest.

type ProjectUser added in v0.3.0

type ProjectUser struct {
	// AddedAt The Unix timestamp (in seconds) of when the project was added.
	AddedAt int64 `json:"added_at"`

	// Email The email address of the user
	Email string `json:"email"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// Name The name of the user
	Name string `json:"name"`

	// Object The object type, which is always `organization.project.user`
	Object ProjectUserObject `json:"object"`

	// Role `owner` or `member`
	Role ProjectUserRole `json:"role"`
}

ProjectUser Represents an individual user in a project.

type ProjectUserCreateRequest added in v0.3.0

type ProjectUserCreateRequest struct {
	// Role `owner` or `member`
	Role ProjectUserCreateRequestRole `json:"role"`

	// UserId The ID of the user.
	UserId string `json:"user_id"`
}

ProjectUserCreateRequest defines model for ProjectUserCreateRequest.

type ProjectUserCreateRequestRole added in v0.3.0

type ProjectUserCreateRequestRole string

ProjectUserCreateRequestRole `owner` or `member`

const (
	ProjectUserCreateRequestRoleMember ProjectUserCreateRequestRole = "member"
	ProjectUserCreateRequestRoleOwner  ProjectUserCreateRequestRole = "owner"
)

Defines values for ProjectUserCreateRequestRole.

type ProjectUserDeleteResponse added in v0.3.0

type ProjectUserDeleteResponse struct {
	Deleted bool                            `json:"deleted"`
	Id      string                          `json:"id"`
	Object  ProjectUserDeleteResponseObject `json:"object"`
}

ProjectUserDeleteResponse defines model for ProjectUserDeleteResponse.

type ProjectUserDeleteResponseObject added in v0.3.0

type ProjectUserDeleteResponseObject string

ProjectUserDeleteResponseObject defines model for ProjectUserDeleteResponse.Object.

const (
	OrganizationProjectUserDeleted ProjectUserDeleteResponseObject = "organization.project.user.deleted"
)

Defines values for ProjectUserDeleteResponseObject.

type ProjectUserListResponse added in v0.3.0

type ProjectUserListResponse struct {
	Data    []ProjectUser `json:"data"`
	FirstId string        `json:"first_id"`
	HasMore bool          `json:"has_more"`
	LastId  string        `json:"last_id"`
	Object  string        `json:"object"`
}

ProjectUserListResponse defines model for ProjectUserListResponse.

type ProjectUserObject added in v0.3.0

type ProjectUserObject string

ProjectUserObject The object type, which is always `organization.project.user`

const (
	OrganizationProjectUser ProjectUserObject = "organization.project.user"
)

Defines values for ProjectUserObject.

type ProjectUserRole added in v0.3.0

type ProjectUserRole string

ProjectUserRole `owner` or `member`

const (
	ProjectUserRoleMember ProjectUserRole = "member"
	ProjectUserRoleOwner  ProjectUserRole = "owner"
)

Defines values for ProjectUserRole.

type ProjectUserUpdateRequest added in v0.3.0

type ProjectUserUpdateRequest struct {
	// Role `owner` or `member`
	Role ProjectUserUpdateRequestRole `json:"role"`
}

ProjectUserUpdateRequest defines model for ProjectUserUpdateRequest.

type ProjectUserUpdateRequestRole added in v0.3.0

type ProjectUserUpdateRequestRole string

ProjectUserUpdateRequestRole `owner` or `member`

const (
	ProjectUserUpdateRequestRoleMember ProjectUserUpdateRequestRole = "member"
	ProjectUserUpdateRequestRoleOwner  ProjectUserUpdateRequestRole = "owner"
)

Defines values for ProjectUserUpdateRequestRole.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RetrieveInviteResp added in v0.3.0

type RetrieveInviteResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Invite
}

func ParseRetrieveInviteResp added in v0.3.0

func ParseRetrieveInviteResp(rsp *http.Response) (*RetrieveInviteResp, error)

ParseRetrieveInviteResp parses an HTTP response from a RetrieveInviteWithResponse call

func (RetrieveInviteResp) Status added in v0.3.0

func (r RetrieveInviteResp) Status() string

Status returns HTTPResponse.Status

func (RetrieveInviteResp) StatusCode added in v0.3.0

func (r RetrieveInviteResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveProjectApiKeyResp added in v0.3.0

type RetrieveProjectApiKeyResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectApiKey
}

func ParseRetrieveProjectApiKeyResp added in v0.3.0

func ParseRetrieveProjectApiKeyResp(rsp *http.Response) (*RetrieveProjectApiKeyResp, error)

ParseRetrieveProjectApiKeyResp parses an HTTP response from a RetrieveProjectApiKeyWithResponse call

func (RetrieveProjectApiKeyResp) Status added in v0.3.0

func (r RetrieveProjectApiKeyResp) Status() string

Status returns HTTPResponse.Status

func (RetrieveProjectApiKeyResp) StatusCode added in v0.3.0

func (r RetrieveProjectApiKeyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveProjectResp added in v0.3.0

type RetrieveProjectResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Project
}

func ParseRetrieveProjectResp added in v0.3.0

func ParseRetrieveProjectResp(rsp *http.Response) (*RetrieveProjectResp, error)

ParseRetrieveProjectResp parses an HTTP response from a RetrieveProjectWithResponse call

func (RetrieveProjectResp) Status added in v0.3.0

func (r RetrieveProjectResp) Status() string

Status returns HTTPResponse.Status

func (RetrieveProjectResp) StatusCode added in v0.3.0

func (r RetrieveProjectResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveProjectServiceAccountResp added in v0.3.0

type RetrieveProjectServiceAccountResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectServiceAccount
}

func ParseRetrieveProjectServiceAccountResp added in v0.3.0

func ParseRetrieveProjectServiceAccountResp(rsp *http.Response) (*RetrieveProjectServiceAccountResp, error)

ParseRetrieveProjectServiceAccountResp parses an HTTP response from a RetrieveProjectServiceAccountWithResponse call

func (RetrieveProjectServiceAccountResp) Status added in v0.3.0

Status returns HTTPResponse.Status

func (RetrieveProjectServiceAccountResp) StatusCode added in v0.3.0

func (r RetrieveProjectServiceAccountResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveProjectUserResp added in v0.3.0

type RetrieveProjectUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectUser
}

func ParseRetrieveProjectUserResp added in v0.3.0

func ParseRetrieveProjectUserResp(rsp *http.Response) (*RetrieveProjectUserResp, error)

ParseRetrieveProjectUserResp parses an HTTP response from a RetrieveProjectUserWithResponse call

func (RetrieveProjectUserResp) Status added in v0.3.0

func (r RetrieveProjectUserResp) Status() string

Status returns HTTPResponse.Status

func (RetrieveProjectUserResp) StatusCode added in v0.3.0

func (r RetrieveProjectUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetrieveUserResp added in v0.3.0

type RetrieveUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
}

func ParseRetrieveUserResp added in v0.3.0

func ParseRetrieveUserResp(rsp *http.Response) (*RetrieveUserResp, error)

ParseRetrieveUserResp parses an HTTP response from a RetrieveUserWithResponse call

func (RetrieveUserResp) Status added in v0.3.0

func (r RetrieveUserResp) Status() string

Status returns HTTPResponse.Status

func (RetrieveUserResp) StatusCode added in v0.3.0

func (r RetrieveUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ToggleCertificatesRequest added in v0.3.3

type ToggleCertificatesRequest struct {
	CertificateIds []string `json:"certificate_ids"`
}

ToggleCertificatesRequest defines model for ToggleCertificatesRequest.

type UpdateProjectRateLimitsJSONRequestBody added in v0.3.0

type UpdateProjectRateLimitsJSONRequestBody = ProjectRateLimitUpdateRequest

UpdateProjectRateLimitsJSONRequestBody defines body for UpdateProjectRateLimits for application/json ContentType.

type UpdateProjectRateLimitsResp added in v0.3.0

type UpdateProjectRateLimitsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectRateLimit
	JSON400      *ErrorResponse
}

func ParseUpdateProjectRateLimitsResp added in v0.3.0

func ParseUpdateProjectRateLimitsResp(rsp *http.Response) (*UpdateProjectRateLimitsResp, error)

ParseUpdateProjectRateLimitsResp parses an HTTP response from a UpdateProjectRateLimitsWithResponse call

func (UpdateProjectRateLimitsResp) Status added in v0.3.0

Status returns HTTPResponse.Status

func (UpdateProjectRateLimitsResp) StatusCode added in v0.3.0

func (r UpdateProjectRateLimitsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadCertificateJSONRequestBody added in v0.3.3

type UploadCertificateJSONRequestBody = UploadCertificateRequest

UploadCertificateJSONRequestBody defines body for UploadCertificate for application/json ContentType.

type UploadCertificateRequest added in v0.3.3

type UploadCertificateRequest struct {
	// Content The certificate content in PEM format
	Content string `json:"content"`

	// Name An optional name for the certificate
	Name *string `json:"name,omitempty"`
}

UploadCertificateRequest defines model for UploadCertificateRequest.

type UploadCertificateResp added in v0.3.3

type UploadCertificateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Certificate
}

func ParseUploadCertificateResp added in v0.3.3

func ParseUploadCertificateResp(rsp *http.Response) (*UploadCertificateResp, error)

ParseUploadCertificateResp parses an HTTP response from a UploadCertificateWithResponse call

func (UploadCertificateResp) Status added in v0.3.3

func (r UploadCertificateResp) Status() string

Status returns HTTPResponse.Status

func (UploadCertificateResp) StatusCode added in v0.3.3

func (r UploadCertificateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type User

type User struct {
	// AddedAt The Unix timestamp (in seconds) of when the user was added.
	AddedAt int64 `json:"added_at"`

	// Email The email address of the user
	Email string `json:"email"`

	// Id The identifier, which can be referenced in API endpoints
	Id string `json:"id"`

	// Name The name of the user
	Name string `json:"name"`

	// Object The object type, which is always `organization.user`
	Object UserObject `json:"object"`

	// Role `owner` or `reader`
	Role UserRole `json:"role"`
}

User Represents an individual `user` within an organization.

type UserDeleteResponse added in v0.3.0

type UserDeleteResponse struct {
	Deleted bool                     `json:"deleted"`
	Id      string                   `json:"id"`
	Object  UserDeleteResponseObject `json:"object"`
}

UserDeleteResponse defines model for UserDeleteResponse.

type UserDeleteResponseObject added in v0.3.0

type UserDeleteResponseObject string

UserDeleteResponseObject defines model for UserDeleteResponse.Object.

const (
	OrganizationUserDeleted UserDeleteResponseObject = "organization.user.deleted"
)

Defines values for UserDeleteResponseObject.

type UserListResponse added in v0.3.0

type UserListResponse struct {
	Data    []User                 `json:"data"`
	FirstId string                 `json:"first_id"`
	HasMore bool                   `json:"has_more"`
	LastId  string                 `json:"last_id"`
	Object  UserListResponseObject `json:"object"`
}

UserListResponse defines model for UserListResponse.

type UserListResponseObject added in v0.3.0

type UserListResponseObject string

UserListResponseObject defines model for UserListResponse.Object.

const (
	List UserListResponseObject = "list"
)

Defines values for UserListResponseObject.

type UserObject

type UserObject string

UserObject The object type, which is always `organization.user`

const (
	OrganizationUser UserObject = "organization.user"
)

Defines values for UserObject.

type UserRole added in v0.3.0

type UserRole string

UserRole `owner` or `reader`

const (
	UserRoleOwner  UserRole = "owner"
	UserRoleReader UserRole = "reader"
)

Defines values for UserRole.

type UserRoleUpdateRequest added in v0.3.0

type UserRoleUpdateRequest struct {
	// Role `owner` or `reader`
	Role UserRoleUpdateRequestRole `json:"role"`
}

UserRoleUpdateRequest defines model for UserRoleUpdateRequest.

type UserRoleUpdateRequestRole added in v0.3.0

type UserRoleUpdateRequestRole string

UserRoleUpdateRequestRole `owner` or `reader`

const (
	Owner  UserRoleUpdateRequestRole = "owner"
	Reader UserRoleUpdateRequestRole = "reader"
)

Defines values for UserRoleUpdateRequestRole.

Jump to

Keyboard shortcuts

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