coreapi

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package coreapi is a generated client for the Entire Core API — the control plane that manages identity, orgs, projects, repos, mirrors, and service accounts.

The oas_*.go files are generated by ogen from spec/core.gen.json (the normalised spec produced by spec/normalize.go from the pristine upstream spec/core.openapi.json). Do not edit them by hand. To refresh:

curl -fsSL https://us.console.entire.io/api/v1/openapi.json \
    -o internal/coreapi/spec/core.openapi.json
go generate ./internal/coreapi/...

The hand-written authenticated constructor and error helpers live in client.go alongside the generated code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIError

func APIError(err error) string

APIError reports the title/detail/status of a control-plane RFC 7807 problem response, or "" if err isn't a control-plane API error. Use it to render a clean message instead of ogen's wrapped decode string:

if _, err := client.CreateOrg(ctx, body); err != nil {
    if msg := coreapi.APIError(err); msg != "" {
        return cli.NewSilentError(errors.New(msg))
    }
    return err
}

func GetRolesForBearerAuth

func GetRolesForBearerAuth(operation string) []string

GetRolesForBearerAuth returns the required roles for the given operation.

This is useful for authorization scenarios where you need to know which roles are required for an operation.

Example:

requiredRoles := GetRolesForBearerAuth(AddPetOperation)

Returns nil if the operation has no role requirements or if the operation is unknown.

func GetRolesForSessionAuth

func GetRolesForSessionAuth(operation string) []string

GetRolesForSessionAuth returns the required roles for the given operation.

This is useful for authorization scenarios where you need to know which roles are required for an operation.

Example:

requiredRoles := GetRolesForSessionAuth(AddPetOperation)

Returns nil if the operation has no role requirements or if the operation is unknown.

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AddOrgMemberInputBody

type AddOrgMemberInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema         OptURI `json:"$schema"`
	Provider       string `json:"provider"`
	ProviderUserId string `json:"providerUserId"`
	// Role at the org; defaults to member.
	Role OptAddOrgMemberInputBodyRole `json:"role"`
}

Ref: #/components/schemas/AddOrgMemberInputBody

func (*AddOrgMemberInputBody) Decode

func (s *AddOrgMemberInputBody) Decode(d *jx.Decoder) error

Decode decodes AddOrgMemberInputBody from json.

func (*AddOrgMemberInputBody) Encode

func (s *AddOrgMemberInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AddOrgMemberInputBody) GetProvider

func (s *AddOrgMemberInputBody) GetProvider() string

GetProvider returns the value of Provider.

func (*AddOrgMemberInputBody) GetProviderUserId

func (s *AddOrgMemberInputBody) GetProviderUserId() string

GetProviderUserId returns the value of ProviderUserId.

func (*AddOrgMemberInputBody) GetRole

GetRole returns the value of Role.

func (*AddOrgMemberInputBody) GetSchema

func (s *AddOrgMemberInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*AddOrgMemberInputBody) MarshalJSON

func (s *AddOrgMemberInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddOrgMemberInputBody) SetProvider

func (s *AddOrgMemberInputBody) SetProvider(val string)

SetProvider sets the value of Provider.

func (*AddOrgMemberInputBody) SetProviderUserId

func (s *AddOrgMemberInputBody) SetProviderUserId(val string)

SetProviderUserId sets the value of ProviderUserId.

func (*AddOrgMemberInputBody) SetRole

SetRole sets the value of Role.

func (*AddOrgMemberInputBody) SetSchema

func (s *AddOrgMemberInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*AddOrgMemberInputBody) UnmarshalJSON

func (s *AddOrgMemberInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddOrgMemberInputBody) Validate

func (s *AddOrgMemberInputBody) Validate() error

type AddOrgMemberInputBodyRole

type AddOrgMemberInputBodyRole string

Role at the org; defaults to member.

const (
	AddOrgMemberInputBodyRoleOwner  AddOrgMemberInputBodyRole = "owner"
	AddOrgMemberInputBodyRoleAdmin  AddOrgMemberInputBodyRole = "admin"
	AddOrgMemberInputBodyRoleMember AddOrgMemberInputBodyRole = "member"
)

func (AddOrgMemberInputBodyRole) AllValues

AllValues returns all AddOrgMemberInputBodyRole values.

func (*AddOrgMemberInputBodyRole) Decode

func (s *AddOrgMemberInputBodyRole) Decode(d *jx.Decoder) error

Decode decodes AddOrgMemberInputBodyRole from json.

func (AddOrgMemberInputBodyRole) Encode

func (s AddOrgMemberInputBodyRole) Encode(e *jx.Encoder)

Encode encodes AddOrgMemberInputBodyRole as json.

func (AddOrgMemberInputBodyRole) MarshalJSON

func (s AddOrgMemberInputBodyRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AddOrgMemberInputBodyRole) MarshalText

func (s AddOrgMemberInputBodyRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AddOrgMemberInputBodyRole) UnmarshalJSON

func (s *AddOrgMemberInputBodyRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddOrgMemberInputBodyRole) UnmarshalText

func (s *AddOrgMemberInputBodyRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AddOrgMemberInputBodyRole) Validate

func (s AddOrgMemberInputBodyRole) Validate() error

type AddOrgMemberParams

type AddOrgMemberParams struct {
	OrgId string
}

AddOrgMemberParams is parameters of addOrgMember operation.

type AuditEvent

type AuditEvent struct {
	ActorId   string `json:"actorId"`
	EventType string `json:"eventType"`
	ID        string `json:"id"`
	// Source IP recorded when the event was logged.
	IpAddress  OptString             `json:"ipAddress"`
	Metadata   OptAuditEventMetadata `json:"metadata"`
	OccurredAt time.Time             `json:"occurredAt"`
}

Ref: #/components/schemas/AuditEvent

func (*AuditEvent) Decode

func (s *AuditEvent) Decode(d *jx.Decoder) error

Decode decodes AuditEvent from json.

func (*AuditEvent) Encode

func (s *AuditEvent) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuditEvent) GetActorId

func (s *AuditEvent) GetActorId() string

GetActorId returns the value of ActorId.

func (*AuditEvent) GetEventType

func (s *AuditEvent) GetEventType() string

GetEventType returns the value of EventType.

func (*AuditEvent) GetID

func (s *AuditEvent) GetID() string

GetID returns the value of ID.

func (*AuditEvent) GetIpAddress

func (s *AuditEvent) GetIpAddress() OptString

GetIpAddress returns the value of IpAddress.

func (*AuditEvent) GetMetadata

func (s *AuditEvent) GetMetadata() OptAuditEventMetadata

GetMetadata returns the value of Metadata.

func (*AuditEvent) GetOccurredAt

func (s *AuditEvent) GetOccurredAt() time.Time

GetOccurredAt returns the value of OccurredAt.

func (*AuditEvent) MarshalJSON

func (s *AuditEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuditEvent) SetActorId

func (s *AuditEvent) SetActorId(val string)

SetActorId sets the value of ActorId.

func (*AuditEvent) SetEventType

func (s *AuditEvent) SetEventType(val string)

SetEventType sets the value of EventType.

func (*AuditEvent) SetID

func (s *AuditEvent) SetID(val string)

SetID sets the value of ID.

func (*AuditEvent) SetIpAddress

func (s *AuditEvent) SetIpAddress(val OptString)

SetIpAddress sets the value of IpAddress.

func (*AuditEvent) SetMetadata

func (s *AuditEvent) SetMetadata(val OptAuditEventMetadata)

SetMetadata sets the value of Metadata.

func (*AuditEvent) SetOccurredAt

func (s *AuditEvent) SetOccurredAt(val time.Time)

SetOccurredAt sets the value of OccurredAt.

func (*AuditEvent) UnmarshalJSON

func (s *AuditEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AuditEventMetadata

type AuditEventMetadata map[string]jx.Raw

func (*AuditEventMetadata) Decode

func (s *AuditEventMetadata) Decode(d *jx.Decoder) error

Decode decodes AuditEventMetadata from json.

func (AuditEventMetadata) Encode

func (s AuditEventMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AuditEventMetadata) MarshalJSON

func (s AuditEventMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuditEventMetadata) UnmarshalJSON

func (s *AuditEventMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BatchLookupInputBody

type BatchLookupInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI      `json:"$schema"`
	Refs   []LookupRef `json:"refs"`
}

Ref: #/components/schemas/BatchLookupInputBody

func (*BatchLookupInputBody) Decode

func (s *BatchLookupInputBody) Decode(d *jx.Decoder) error

Decode decodes BatchLookupInputBody from json.

func (*BatchLookupInputBody) Encode

func (s *BatchLookupInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BatchLookupInputBody) GetRefs

func (s *BatchLookupInputBody) GetRefs() []LookupRef

GetRefs returns the value of Refs.

func (*BatchLookupInputBody) GetSchema

func (s *BatchLookupInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*BatchLookupInputBody) MarshalJSON

func (s *BatchLookupInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BatchLookupInputBody) SetRefs

func (s *BatchLookupInputBody) SetRefs(val []LookupRef)

SetRefs sets the value of Refs.

func (*BatchLookupInputBody) SetSchema

func (s *BatchLookupInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*BatchLookupInputBody) UnmarshalJSON

func (s *BatchLookupInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BatchLookupInputBody) Validate

func (s *BatchLookupInputBody) Validate() error

type BatchLookupOutputBody

type BatchLookupOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI            `json:"$schema"`
	Refs   []LookupRefResult `json:"refs"`
}

Ref: #/components/schemas/BatchLookupOutputBody

func (*BatchLookupOutputBody) Decode

func (s *BatchLookupOutputBody) Decode(d *jx.Decoder) error

Decode decodes BatchLookupOutputBody from json.

func (*BatchLookupOutputBody) Encode

func (s *BatchLookupOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BatchLookupOutputBody) GetRefs

func (s *BatchLookupOutputBody) GetRefs() []LookupRefResult

GetRefs returns the value of Refs.

func (*BatchLookupOutputBody) GetSchema

func (s *BatchLookupOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*BatchLookupOutputBody) MarshalJSON

func (s *BatchLookupOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BatchLookupOutputBody) SetRefs

func (s *BatchLookupOutputBody) SetRefs(val []LookupRefResult)

SetRefs sets the value of Refs.

func (*BatchLookupOutputBody) SetSchema

func (s *BatchLookupOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*BatchLookupOutputBody) UnmarshalJSON

func (s *BatchLookupOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BatchLookupOutputBody) Validate

func (s *BatchLookupOutputBody) Validate() error

type BearerAuth

type BearerAuth struct {
	Token string
	Roles []string
}

func (*BearerAuth) GetRoles

func (s *BearerAuth) GetRoles() []string

GetRoles returns the value of Roles.

func (*BearerAuth) GetToken

func (s *BearerAuth) GetToken() string

GetToken returns the value of Token.

func (*BearerAuth) SetRoles

func (s *BearerAuth) SetRoles(val []string)

SetRoles sets the value of Roles.

func (*BearerAuth) SetToken

func (s *BearerAuth) SetToken(val string)

SetToken sets the value of Token.

type Binding

type Binding struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI    `json:"$schema"`
	AccountId       string    `json:"accountId"`
	AttributeFilter jx.Raw    `json:"attributeFilter"`
	CreatedAt       time.Time `json:"createdAt"`
	ID              string    `json:"id"`
	ProviderId      string    `json:"providerId"`
}

Ref: #/components/schemas/Binding

func (*Binding) Decode

func (s *Binding) Decode(d *jx.Decoder) error

Decode decodes Binding from json.

func (*Binding) Encode

func (s *Binding) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Binding) GetAccountId

func (s *Binding) GetAccountId() string

GetAccountId returns the value of AccountId.

func (*Binding) GetAttributeFilter

func (s *Binding) GetAttributeFilter() jx.Raw

GetAttributeFilter returns the value of AttributeFilter.

func (*Binding) GetCreatedAt

func (s *Binding) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Binding) GetID

func (s *Binding) GetID() string

GetID returns the value of ID.

func (*Binding) GetProviderId

func (s *Binding) GetProviderId() string

GetProviderId returns the value of ProviderId.

func (*Binding) GetSchema

func (s *Binding) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*Binding) MarshalJSON

func (s *Binding) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Binding) SetAccountId

func (s *Binding) SetAccountId(val string)

SetAccountId sets the value of AccountId.

func (*Binding) SetAttributeFilter

func (s *Binding) SetAttributeFilter(val jx.Raw)

SetAttributeFilter sets the value of AttributeFilter.

func (*Binding) SetCreatedAt

func (s *Binding) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Binding) SetID

func (s *Binding) SetID(val string)

SetID sets the value of ID.

func (*Binding) SetProviderId

func (s *Binding) SetProviderId(val string)

SetProviderId sets the value of ProviderId.

func (*Binding) SetSchema

func (s *Binding) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*Binding) UnmarshalJSON

func (s *Binding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Client

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

Client implements OAS client.

func New

func New() (*Client, error)

New returns a *Client wired to talk to the Entire control plane (Core API) as the currently logged-in user.

The base URL is the auth/login host — the Core API is served at <auth-host>/api/v1, and that host is exactly what `entire login` authenticated against, so no extra configuration is needed. Override with ENTIRE_AUTH_BASE_URL for non-default deployments (the same knob `entire login` honours).

Auth is the logged-in bearer, resolved lazily per request through auth.TokenForResource so an RFC 8693 token exchange happens transparently when the stored token's audience doesn't already cover the control-plane host.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AddOrgMember

func (c *Client) AddOrgMember(ctx context.Context, request *AddOrgMemberInputBody, params AddOrgMemberParams) (*Membership, error)

AddOrgMember invokes addOrgMember operation.

Add a member to an organization.

POST /orgs/{orgId}/members

func (*Client) BatchLookup

func (c *Client) BatchLookup(ctx context.Context, request *BatchLookupInputBody) (*BatchLookupOutputBody, error)

BatchLookup invokes batchLookup operation.

Batch-resolve (type, id) refs to enriched records.

POST /lookup

func (*Client) CreateBinding

func (c *Client) CreateBinding(ctx context.Context, request *CreateBindingInputBody, params CreateBindingParams) (*Binding, error)

CreateBinding invokes createBinding operation.

Create OIDC binding.

POST /service-accounts/{accountId}/bindings

func (*Client) CreateMirror

func (c *Client) CreateMirror(ctx context.Context, request *CreateMirrorInputBody) (*CreatedMirror, error)

CreateMirror invokes createMirror operation.

Create GitHub mirror.

POST /mirrors

func (*Client) CreateOrg

func (c *Client) CreateOrg(ctx context.Context, request *CreateOrgInputBody) (*Org, error)

CreateOrg invokes createOrg operation.

Create organization.

POST /orgs

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, request *CreateProjectInputBody) (*Project, error)

CreateProject invokes createProject operation.

Create project.

POST /projects

func (*Client) CreateRepo

func (c *Client) CreateRepo(ctx context.Context, request *CreateRepoInputBody) (*Repo, error)

CreateRepo invokes createRepo operation.

Create repository.

POST /repos

func (*Client) CreateServiceAccount

func (c *Client) CreateServiceAccount(ctx context.Context, request *CreateServiceAccountInputBody) (*ServiceAccount, error)

CreateServiceAccount invokes createServiceAccount operation.

Create service account.

POST /service-accounts

func (*Client) DeleteBinding

func (c *Client) DeleteBinding(ctx context.Context, params DeleteBindingParams) error

DeleteBinding invokes deleteBinding operation.

Delete OIDC binding.

DELETE /service-accounts/{accountId}/bindings/{bindingId}

func (*Client) DeleteMirror

func (c *Client) DeleteMirror(ctx context.Context, params DeleteMirrorParams) error

DeleteMirror invokes deleteMirror operation.

Delete a mirror by upstream coords + cluster host.

DELETE /mirrors

func (*Client) DeleteRepo

func (c *Client) DeleteRepo(ctx context.Context, params DeleteRepoParams) error

DeleteRepo invokes deleteRepo operation.

Delete repository.

DELETE /repos/{repoId}

func (*Client) DeleteServiceAccount

func (c *Client) DeleteServiceAccount(ctx context.Context, params DeleteServiceAccountParams) error

DeleteServiceAccount invokes deleteServiceAccount operation.

Delete service account.

DELETE /service-accounts/{accountId}

func (*Client) GetMe

func (c *Client) GetMe(ctx context.Context) (*GetMeOutputBody, error)

GetMe invokes getMe operation.

Get the calling account's identity and profile.

GET /me

func (*Client) GetMirror

func (c *Client) GetMirror(ctx context.Context, params GetMirrorParams) (*Mirror, error)

GetMirror invokes getMirror operation.

Get mirror by id.

GET /mirrors/{mirrorId}

func (*Client) GetPermissions

func (c *Client) GetPermissions(ctx context.Context, params GetPermissionsParams) (*GetPermissionsOutputBody, error)

GetPermissions invokes getPermissions operation.

List the caller's permissions on a single resource.

GET /access/{resourceType}/{resourceId}

func (*Client) GetRepo

func (c *Client) GetRepo(ctx context.Context, params GetRepoParams) (*Repo, error)

GetRepo invokes getRepo operation.

Get repository.

GET /repos/{repoId}

func (*Client) GetServiceAccount

func (c *Client) GetServiceAccount(ctx context.Context, params GetServiceAccountParams) (*ServiceAccount, error)

GetServiceAccount invokes getServiceAccount operation.

Get service account.

GET /service-accounts/{accountId}

func (*Client) GrantProjectAccess

GrantProjectAccess invokes grantProjectAccess operation.

Grant project access to an identity.

POST /projects/{projectId}/grants

func (*Client) GrantRepoAccess

GrantRepoAccess invokes grantRepoAccess operation.

Grant repo access to an identity.

POST /repos/{repoId}/grants

func (*Client) GrantServiceAccountAccess

GrantServiceAccountAccess invokes grantServiceAccountAccess operation.

Grant service account access on a repo or project.

POST /service-accounts/{accountId}/grants

func (*Client) ListAuditEvents

func (c *Client) ListAuditEvents(ctx context.Context) (*ListAuditEventsOutputBody, error)

ListAuditEvents invokes listAuditEvents operation.

List the calling account's recent audit events.

GET /audit

func (*Client) ListBindings

func (c *Client) ListBindings(ctx context.Context, params ListBindingsParams) (*ListBindingsOutputBody, error)

ListBindings invokes listBindings operation.

List OIDC bindings.

GET /service-accounts/{accountId}/bindings

func (*Client) ListMirrors

func (c *Client) ListMirrors(ctx context.Context, params ListMirrorsParams) (*ListMirrorsOutputBody, error)

ListMirrors invokes listMirrors operation.

List mirrors visible to the caller.

GET /mirrors

func (*Client) ListOIDCProviders

func (c *Client) ListOIDCProviders(ctx context.Context) (*ListOIDCProvidersOutputBody, error)

ListOIDCProviders invokes listOIDCProviders operation.

List federated OIDC identity providers.

GET /oidc-providers

func (*Client) ListOrgMembers

func (c *Client) ListOrgMembers(ctx context.Context, params ListOrgMembersParams) (*ListOrgMembersOutputBody, error)

ListOrgMembers invokes listOrgMembers operation.

List members of an organization.

GET /orgs/{orgId}/members

func (*Client) ListOrgProjects

func (c *Client) ListOrgProjects(ctx context.Context, params ListOrgProjectsParams) (*ListOrgProjectsOutputBody, error)

ListOrgProjects invokes listOrgProjects operation.

List projects owned by an organization.

GET /orgs/{orgId}/projects

func (*Client) ListOrgs

func (c *Client) ListOrgs(ctx context.Context) (*ListOrgsOutputBody, error)

ListOrgs invokes listOrgs operation.

List organizations the caller can see.

GET /orgs

func (*Client) ListProjectMembers

func (c *Client) ListProjectMembers(ctx context.Context, params ListProjectMembersParams) (*ListProjectMembersOutputBody, error)

ListProjectMembers invokes listProjectMembers operation.

List project members and their roles.

GET /projects/{projectId}/members

func (*Client) ListProjectRepos

func (c *Client) ListProjectRepos(ctx context.Context, params ListProjectReposParams) (*ListProjectReposOutputBody, error)

ListProjectRepos invokes listProjectRepos operation.

List repositories in a project.

GET /projects/{projectId}/repos

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context, params ListProjectsParams) (*ListProjectsOutputBody, error)

ListProjects invokes listProjects operation.

List projects accessible to the caller (or one by name).

GET /projects

func (*Client) ListServiceAccountGrants

ListServiceAccountGrants invokes listServiceAccountGrants operation.

List service account grants.

GET /service-accounts/{accountId}/grants

func (*Client) ListServiceAccounts

func (c *Client) ListServiceAccounts(ctx context.Context, params ListServiceAccountsParams) (*ListServiceAccountsOutputBody, error)

ListServiceAccounts invokes listServiceAccounts operation.

List service accounts in an org.

GET /service-accounts

func (*Client) LookupResources

func (c *Client) LookupResources(ctx context.Context, params LookupResourcesParams) (*LookupResourcesOutputBody, error)

LookupResources invokes lookupResources operation.

List resources of a type the caller can access.

GET /access/{resourceType}

func (*Client) RemoveOrgMember

func (c *Client) RemoveOrgMember(ctx context.Context, params RemoveOrgMemberParams) error

RemoveOrgMember invokes removeOrgMember operation.

Remove a member from an organization.

DELETE /orgs/{orgId}/members/{provider}/{providerUserId}

func (*Client) ResolveHandle

func (c *Client) ResolveHandle(ctx context.Context, params ResolveHandleParams) (*ResolvedIdentity, error)

ResolveHandle invokes resolveHandle operation.

Resolve account by external provider handle.

GET /identity/handles/{provider}/{handle}

func (*Client) RevokeProjectAccess

func (c *Client) RevokeProjectAccess(ctx context.Context, params RevokeProjectAccessParams) error

RevokeProjectAccess invokes revokeProjectAccess operation.

Revoke project access by grantee id.

DELETE /projects/{projectId}/grants/{granteeType}/{granteeId}

func (*Client) RevokeProjectAccessByProvider

func (c *Client) RevokeProjectAccessByProvider(ctx context.Context, params RevokeProjectAccessByProviderParams) error

RevokeProjectAccessByProvider invokes revokeProjectAccessByProvider operation.

Revoke project access by provider identity.

DELETE /projects/{projectId}/grants/account/{provider}/{providerUserId}

func (*Client) RevokeServiceAccountAccess

func (c *Client) RevokeServiceAccountAccess(ctx context.Context, params RevokeServiceAccountAccessParams) error

RevokeServiceAccountAccess invokes revokeServiceAccountAccess operation.

Revoke service account access.

DELETE /service-accounts/{accountId}/grants/{resourceType}/{resourceId}

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CreateBindingInputBody

type CreateBindingInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// Exact-match key/value map; empty filter matches any token.
	AttributeFilter jx.Raw `json:"attributeFilter"`
	ProviderId      string `json:"providerId"`
}

Ref: #/components/schemas/CreateBindingInputBody

func (*CreateBindingInputBody) Decode

func (s *CreateBindingInputBody) Decode(d *jx.Decoder) error

Decode decodes CreateBindingInputBody from json.

func (*CreateBindingInputBody) Encode

func (s *CreateBindingInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateBindingInputBody) GetAttributeFilter

func (s *CreateBindingInputBody) GetAttributeFilter() jx.Raw

GetAttributeFilter returns the value of AttributeFilter.

func (*CreateBindingInputBody) GetProviderId

func (s *CreateBindingInputBody) GetProviderId() string

GetProviderId returns the value of ProviderId.

func (*CreateBindingInputBody) GetSchema

func (s *CreateBindingInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*CreateBindingInputBody) MarshalJSON

func (s *CreateBindingInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateBindingInputBody) SetAttributeFilter

func (s *CreateBindingInputBody) SetAttributeFilter(val jx.Raw)

SetAttributeFilter sets the value of AttributeFilter.

func (*CreateBindingInputBody) SetProviderId

func (s *CreateBindingInputBody) SetProviderId(val string)

SetProviderId sets the value of ProviderId.

func (*CreateBindingInputBody) SetSchema

func (s *CreateBindingInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*CreateBindingInputBody) UnmarshalJSON

func (s *CreateBindingInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateBindingInputBody) Validate

func (s *CreateBindingInputBody) Validate() error

type CreateBindingParams

type CreateBindingParams struct {
	AccountId string
}

CreateBindingParams is parameters of createBinding operation.

type CreateMirrorInputBody

type CreateMirrorInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// DNS host of the destination cluster.
	ClusterHost string                        `json:"clusterHost"`
	Owner       string                        `json:"owner"`
	Provider    CreateMirrorInputBodyProvider `json:"provider"`
	Repo        string                        `json:"repo"`
}

Ref: #/components/schemas/CreateMirrorInputBody

func (*CreateMirrorInputBody) Decode

func (s *CreateMirrorInputBody) Decode(d *jx.Decoder) error

Decode decodes CreateMirrorInputBody from json.

func (*CreateMirrorInputBody) Encode

func (s *CreateMirrorInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateMirrorInputBody) GetClusterHost

func (s *CreateMirrorInputBody) GetClusterHost() string

GetClusterHost returns the value of ClusterHost.

func (*CreateMirrorInputBody) GetOwner

func (s *CreateMirrorInputBody) GetOwner() string

GetOwner returns the value of Owner.

func (*CreateMirrorInputBody) GetProvider

GetProvider returns the value of Provider.

func (*CreateMirrorInputBody) GetRepo

func (s *CreateMirrorInputBody) GetRepo() string

GetRepo returns the value of Repo.

func (*CreateMirrorInputBody) GetSchema

func (s *CreateMirrorInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*CreateMirrorInputBody) MarshalJSON

func (s *CreateMirrorInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateMirrorInputBody) SetClusterHost

func (s *CreateMirrorInputBody) SetClusterHost(val string)

SetClusterHost sets the value of ClusterHost.

func (*CreateMirrorInputBody) SetOwner

func (s *CreateMirrorInputBody) SetOwner(val string)

SetOwner sets the value of Owner.

func (*CreateMirrorInputBody) SetProvider

SetProvider sets the value of Provider.

func (*CreateMirrorInputBody) SetRepo

func (s *CreateMirrorInputBody) SetRepo(val string)

SetRepo sets the value of Repo.

func (*CreateMirrorInputBody) SetSchema

func (s *CreateMirrorInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*CreateMirrorInputBody) UnmarshalJSON

func (s *CreateMirrorInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateMirrorInputBody) Validate

func (s *CreateMirrorInputBody) Validate() error

type CreateMirrorInputBodyProvider

type CreateMirrorInputBodyProvider string
const (
	CreateMirrorInputBodyProviderGithub CreateMirrorInputBodyProvider = "github"
)

func (CreateMirrorInputBodyProvider) AllValues

AllValues returns all CreateMirrorInputBodyProvider values.

func (*CreateMirrorInputBodyProvider) Decode

Decode decodes CreateMirrorInputBodyProvider from json.

func (CreateMirrorInputBodyProvider) Encode

Encode encodes CreateMirrorInputBodyProvider as json.

func (CreateMirrorInputBodyProvider) MarshalJSON

func (s CreateMirrorInputBodyProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateMirrorInputBodyProvider) MarshalText

func (s CreateMirrorInputBodyProvider) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateMirrorInputBodyProvider) UnmarshalJSON

func (s *CreateMirrorInputBodyProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateMirrorInputBodyProvider) UnmarshalText

func (s *CreateMirrorInputBodyProvider) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateMirrorInputBodyProvider) Validate

func (s CreateMirrorInputBodyProvider) Validate() error

type CreateOrgInputBody

type CreateOrgInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// Display name.
	Name string `json:"name"`
	// Jurisdiction slug; defaults to the server's home jurisdiction.
	Region OptString `json:"region"`
}

Ref: #/components/schemas/CreateOrgInputBody

func (*CreateOrgInputBody) Decode

func (s *CreateOrgInputBody) Decode(d *jx.Decoder) error

Decode decodes CreateOrgInputBody from json.

func (*CreateOrgInputBody) Encode

func (s *CreateOrgInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateOrgInputBody) GetName

func (s *CreateOrgInputBody) GetName() string

GetName returns the value of Name.

func (*CreateOrgInputBody) GetRegion

func (s *CreateOrgInputBody) GetRegion() OptString

GetRegion returns the value of Region.

func (*CreateOrgInputBody) GetSchema

func (s *CreateOrgInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*CreateOrgInputBody) MarshalJSON

func (s *CreateOrgInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateOrgInputBody) SetName

func (s *CreateOrgInputBody) SetName(val string)

SetName sets the value of Name.

func (*CreateOrgInputBody) SetRegion

func (s *CreateOrgInputBody) SetRegion(val OptString)

SetRegion sets the value of Region.

func (*CreateOrgInputBody) SetSchema

func (s *CreateOrgInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*CreateOrgInputBody) UnmarshalJSON

func (s *CreateOrgInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateOrgInputBody) Validate

func (s *CreateOrgInputBody) Validate() error

type CreateProjectInputBody

type CreateProjectInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema    OptURI                          `json:"$schema"`
	Name      string                          `json:"name"`
	OwnerId   string                          `json:"ownerId"`
	OwnerType CreateProjectInputBodyOwnerType `json:"ownerType"`
	Region    OptString                       `json:"region"`
}

Ref: #/components/schemas/CreateProjectInputBody

func (*CreateProjectInputBody) Decode

func (s *CreateProjectInputBody) Decode(d *jx.Decoder) error

Decode decodes CreateProjectInputBody from json.

func (*CreateProjectInputBody) Encode

func (s *CreateProjectInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateProjectInputBody) GetName

func (s *CreateProjectInputBody) GetName() string

GetName returns the value of Name.

func (*CreateProjectInputBody) GetOwnerId

func (s *CreateProjectInputBody) GetOwnerId() string

GetOwnerId returns the value of OwnerId.

func (*CreateProjectInputBody) GetOwnerType

GetOwnerType returns the value of OwnerType.

func (*CreateProjectInputBody) GetRegion

func (s *CreateProjectInputBody) GetRegion() OptString

GetRegion returns the value of Region.

func (*CreateProjectInputBody) GetSchema

func (s *CreateProjectInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*CreateProjectInputBody) MarshalJSON

func (s *CreateProjectInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateProjectInputBody) SetName

func (s *CreateProjectInputBody) SetName(val string)

SetName sets the value of Name.

func (*CreateProjectInputBody) SetOwnerId

func (s *CreateProjectInputBody) SetOwnerId(val string)

SetOwnerId sets the value of OwnerId.

func (*CreateProjectInputBody) SetOwnerType

SetOwnerType sets the value of OwnerType.

func (*CreateProjectInputBody) SetRegion

func (s *CreateProjectInputBody) SetRegion(val OptString)

SetRegion sets the value of Region.

func (*CreateProjectInputBody) SetSchema

func (s *CreateProjectInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*CreateProjectInputBody) UnmarshalJSON

func (s *CreateProjectInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateProjectInputBody) Validate

func (s *CreateProjectInputBody) Validate() error

type CreateProjectInputBodyOwnerType

type CreateProjectInputBodyOwnerType string
const (
	CreateProjectInputBodyOwnerTypeOrg     CreateProjectInputBodyOwnerType = "org"
	CreateProjectInputBodyOwnerTypeAccount CreateProjectInputBodyOwnerType = "account"
)

func (CreateProjectInputBodyOwnerType) AllValues

AllValues returns all CreateProjectInputBodyOwnerType values.

func (*CreateProjectInputBodyOwnerType) Decode

Decode decodes CreateProjectInputBodyOwnerType from json.

func (CreateProjectInputBodyOwnerType) Encode

Encode encodes CreateProjectInputBodyOwnerType as json.

func (CreateProjectInputBodyOwnerType) MarshalJSON

func (s CreateProjectInputBodyOwnerType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateProjectInputBodyOwnerType) MarshalText

func (s CreateProjectInputBodyOwnerType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateProjectInputBodyOwnerType) UnmarshalJSON

func (s *CreateProjectInputBodyOwnerType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateProjectInputBodyOwnerType) UnmarshalText

func (s *CreateProjectInputBodyOwnerType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateProjectInputBodyOwnerType) Validate

type CreateRepoInputBody

type CreateRepoInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// Public host of the cluster to pin the repo to (e.g. royalcanin.partial.to); empty lands on the
	// jurisdiction default.
	ClusterHost OptString `json:"clusterHost"`
	Name        string    `json:"name"`
	// Hash format; defaults to sha1.
	ObjectFormat OptCreateRepoInputBodyObjectFormat `json:"objectFormat"`
	ProjectId    string                             `json:"projectId"`
}

Ref: #/components/schemas/CreateRepoInputBody

func (*CreateRepoInputBody) Decode

func (s *CreateRepoInputBody) Decode(d *jx.Decoder) error

Decode decodes CreateRepoInputBody from json.

func (*CreateRepoInputBody) Encode

func (s *CreateRepoInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateRepoInputBody) GetClusterHost

func (s *CreateRepoInputBody) GetClusterHost() OptString

GetClusterHost returns the value of ClusterHost.

func (*CreateRepoInputBody) GetName

func (s *CreateRepoInputBody) GetName() string

GetName returns the value of Name.

func (*CreateRepoInputBody) GetObjectFormat

GetObjectFormat returns the value of ObjectFormat.

func (*CreateRepoInputBody) GetProjectId

func (s *CreateRepoInputBody) GetProjectId() string

GetProjectId returns the value of ProjectId.

func (*CreateRepoInputBody) GetSchema

func (s *CreateRepoInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*CreateRepoInputBody) MarshalJSON

func (s *CreateRepoInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateRepoInputBody) SetClusterHost

func (s *CreateRepoInputBody) SetClusterHost(val OptString)

SetClusterHost sets the value of ClusterHost.

func (*CreateRepoInputBody) SetName

func (s *CreateRepoInputBody) SetName(val string)

SetName sets the value of Name.

func (*CreateRepoInputBody) SetObjectFormat

SetObjectFormat sets the value of ObjectFormat.

func (*CreateRepoInputBody) SetProjectId

func (s *CreateRepoInputBody) SetProjectId(val string)

SetProjectId sets the value of ProjectId.

func (*CreateRepoInputBody) SetSchema

func (s *CreateRepoInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*CreateRepoInputBody) UnmarshalJSON

func (s *CreateRepoInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateRepoInputBody) Validate

func (s *CreateRepoInputBody) Validate() error

type CreateRepoInputBodyObjectFormat

type CreateRepoInputBodyObjectFormat string

Hash format; defaults to sha1.

const (
	CreateRepoInputBodyObjectFormatSHA1   CreateRepoInputBodyObjectFormat = "sha1"
	CreateRepoInputBodyObjectFormatSHA256 CreateRepoInputBodyObjectFormat = "sha256"
)

func (CreateRepoInputBodyObjectFormat) AllValues

AllValues returns all CreateRepoInputBodyObjectFormat values.

func (*CreateRepoInputBodyObjectFormat) Decode

Decode decodes CreateRepoInputBodyObjectFormat from json.

func (CreateRepoInputBodyObjectFormat) Encode

Encode encodes CreateRepoInputBodyObjectFormat as json.

func (CreateRepoInputBodyObjectFormat) MarshalJSON

func (s CreateRepoInputBodyObjectFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateRepoInputBodyObjectFormat) MarshalText

func (s CreateRepoInputBodyObjectFormat) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateRepoInputBodyObjectFormat) UnmarshalJSON

func (s *CreateRepoInputBodyObjectFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateRepoInputBodyObjectFormat) UnmarshalText

func (s *CreateRepoInputBodyObjectFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateRepoInputBodyObjectFormat) Validate

type CreateServiceAccountInputBody

type CreateServiceAccountInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	Name   string `json:"name"`
	OrgId  string `json:"orgId"`
}

Ref: #/components/schemas/CreateServiceAccountInputBody

func (*CreateServiceAccountInputBody) Decode

Decode decodes CreateServiceAccountInputBody from json.

func (*CreateServiceAccountInputBody) Encode

Encode implements json.Marshaler.

func (*CreateServiceAccountInputBody) GetName

GetName returns the value of Name.

func (*CreateServiceAccountInputBody) GetOrgId

func (s *CreateServiceAccountInputBody) GetOrgId() string

GetOrgId returns the value of OrgId.

func (*CreateServiceAccountInputBody) GetSchema

func (s *CreateServiceAccountInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*CreateServiceAccountInputBody) MarshalJSON

func (s *CreateServiceAccountInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateServiceAccountInputBody) SetName

func (s *CreateServiceAccountInputBody) SetName(val string)

SetName sets the value of Name.

func (*CreateServiceAccountInputBody) SetOrgId

func (s *CreateServiceAccountInputBody) SetOrgId(val string)

SetOrgId sets the value of OrgId.

func (*CreateServiceAccountInputBody) SetSchema

func (s *CreateServiceAccountInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*CreateServiceAccountInputBody) UnmarshalJSON

func (s *CreateServiceAccountInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateServiceAccountInputBody) Validate

func (s *CreateServiceAccountInputBody) Validate() error

type CreatedMirror

type CreatedMirror struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// True on fresh creation; false when an existing mirror was returned.
	Created   bool   `json:"created"`
	MirrorId  string `json:"mirrorId"`
	MirrorUrl string `json:"mirrorUrl"`
	PublicUrl string `json:"publicUrl"`
}

Ref: #/components/schemas/CreatedMirror

func (*CreatedMirror) Decode

func (s *CreatedMirror) Decode(d *jx.Decoder) error

Decode decodes CreatedMirror from json.

func (*CreatedMirror) Encode

func (s *CreatedMirror) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatedMirror) GetCreated

func (s *CreatedMirror) GetCreated() bool

GetCreated returns the value of Created.

func (*CreatedMirror) GetMirrorId

func (s *CreatedMirror) GetMirrorId() string

GetMirrorId returns the value of MirrorId.

func (*CreatedMirror) GetMirrorUrl

func (s *CreatedMirror) GetMirrorUrl() string

GetMirrorUrl returns the value of MirrorUrl.

func (*CreatedMirror) GetPublicUrl

func (s *CreatedMirror) GetPublicUrl() string

GetPublicUrl returns the value of PublicUrl.

func (*CreatedMirror) GetSchema

func (s *CreatedMirror) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*CreatedMirror) MarshalJSON

func (s *CreatedMirror) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatedMirror) SetCreated

func (s *CreatedMirror) SetCreated(val bool)

SetCreated sets the value of Created.

func (*CreatedMirror) SetMirrorId

func (s *CreatedMirror) SetMirrorId(val string)

SetMirrorId sets the value of MirrorId.

func (*CreatedMirror) SetMirrorUrl

func (s *CreatedMirror) SetMirrorUrl(val string)

SetMirrorUrl sets the value of MirrorUrl.

func (*CreatedMirror) SetPublicUrl

func (s *CreatedMirror) SetPublicUrl(val string)

SetPublicUrl sets the value of PublicUrl.

func (*CreatedMirror) SetSchema

func (s *CreatedMirror) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*CreatedMirror) UnmarshalJSON

func (s *CreatedMirror) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteBindingNoContent

type DeleteBindingNoContent struct{}

DeleteBindingNoContent is response for DeleteBinding operation.

type DeleteBindingParams

type DeleteBindingParams struct {
	AccountId string
	BindingId string
}

DeleteBindingParams is parameters of deleteBinding operation.

type DeleteMirrorNoContent

type DeleteMirrorNoContent struct{}

DeleteMirrorNoContent is response for DeleteMirror operation.

type DeleteMirrorParams

type DeleteMirrorParams struct {
	Provider DeleteMirrorProvider
	Owner    string
	Repo     string
	// Public host of the cluster serving the mirror.
	ClusterHost string
}

DeleteMirrorParams is parameters of deleteMirror operation.

type DeleteMirrorProvider

type DeleteMirrorProvider string
const (
	DeleteMirrorProviderGithub DeleteMirrorProvider = "github"
)

func (DeleteMirrorProvider) AllValues

AllValues returns all DeleteMirrorProvider values.

func (DeleteMirrorProvider) MarshalText

func (s DeleteMirrorProvider) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DeleteMirrorProvider) UnmarshalText

func (s *DeleteMirrorProvider) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DeleteMirrorProvider) Validate

func (s DeleteMirrorProvider) Validate() error

type DeleteRepoNoContent

type DeleteRepoNoContent struct{}

DeleteRepoNoContent is response for DeleteRepo operation.

type DeleteRepoParams

type DeleteRepoParams struct {
	RepoId string
}

DeleteRepoParams is parameters of deleteRepo operation.

type DeleteServiceAccountNoContent

type DeleteServiceAccountNoContent struct{}

DeleteServiceAccountNoContent is response for DeleteServiceAccount operation.

type DeleteServiceAccountParams

type DeleteServiceAccountParams struct {
	AccountId string
}

DeleteServiceAccountParams is parameters of deleteServiceAccount operation.

type ErrorDetail

type ErrorDetail struct {
	// Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'.
	Location OptString `json:"location"`
	// Error message text.
	Message OptString `json:"message"`
	// The value at the given location.
	Value jx.Raw `json:"value"`
}

Ref: #/components/schemas/ErrorDetail

func (*ErrorDetail) Decode

func (s *ErrorDetail) Decode(d *jx.Decoder) error

Decode decodes ErrorDetail from json.

func (*ErrorDetail) Encode

func (s *ErrorDetail) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorDetail) GetLocation

func (s *ErrorDetail) GetLocation() OptString

GetLocation returns the value of Location.

func (*ErrorDetail) GetMessage

func (s *ErrorDetail) GetMessage() OptString

GetMessage returns the value of Message.

func (*ErrorDetail) GetValue

func (s *ErrorDetail) GetValue() jx.Raw

GetValue returns the value of Value.

func (*ErrorDetail) MarshalJSON

func (s *ErrorDetail) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorDetail) SetLocation

func (s *ErrorDetail) SetLocation(val OptString)

SetLocation sets the value of Location.

func (*ErrorDetail) SetMessage

func (s *ErrorDetail) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*ErrorDetail) SetValue

func (s *ErrorDetail) SetValue(val jx.Raw)

SetValue sets the value of Value.

func (*ErrorDetail) UnmarshalJSON

func (s *ErrorDetail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorModel

type ErrorModel struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// A human-readable explanation specific to this occurrence of the problem.
	Detail OptString `json:"detail"`
	// Optional list of individual error details.
	Errors []ErrorDetail `json:"errors"`
	// A URI reference that identifies the specific occurrence of the problem.
	Instance OptURI `json:"instance"`
	// HTTP status code.
	Status OptInt64 `json:"status"`
	// A short, human-readable summary of the problem type. This value should not change between
	// occurrences of the error.
	Title OptString `json:"title"`
	// A URI reference to human-readable documentation for the error.
	Type OptURI `json:"type"`
}

Ref: #/components/schemas/ErrorModel

func (*ErrorModel) Decode

func (s *ErrorModel) Decode(d *jx.Decoder) error

Decode decodes ErrorModel from json.

func (*ErrorModel) Encode

func (s *ErrorModel) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorModel) GetDetail

func (s *ErrorModel) GetDetail() OptString

GetDetail returns the value of Detail.

func (*ErrorModel) GetErrors

func (s *ErrorModel) GetErrors() []ErrorDetail

GetErrors returns the value of Errors.

func (*ErrorModel) GetInstance

func (s *ErrorModel) GetInstance() OptURI

GetInstance returns the value of Instance.

func (*ErrorModel) GetSchema

func (s *ErrorModel) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ErrorModel) GetStatus

func (s *ErrorModel) GetStatus() OptInt64

GetStatus returns the value of Status.

func (*ErrorModel) GetTitle

func (s *ErrorModel) GetTitle() OptString

GetTitle returns the value of Title.

func (*ErrorModel) GetType

func (s *ErrorModel) GetType() OptURI

GetType returns the value of Type.

func (*ErrorModel) MarshalJSON

func (s *ErrorModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorModel) SetDetail

func (s *ErrorModel) SetDetail(val OptString)

SetDetail sets the value of Detail.

func (*ErrorModel) SetErrors

func (s *ErrorModel) SetErrors(val []ErrorDetail)

SetErrors sets the value of Errors.

func (*ErrorModel) SetInstance

func (s *ErrorModel) SetInstance(val OptURI)

SetInstance sets the value of Instance.

func (*ErrorModel) SetSchema

func (s *ErrorModel) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ErrorModel) SetStatus

func (s *ErrorModel) SetStatus(val OptInt64)

SetStatus sets the value of Status.

func (*ErrorModel) SetTitle

func (s *ErrorModel) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*ErrorModel) SetType

func (s *ErrorModel) SetType(val OptURI)

SetType sets the value of Type.

func (*ErrorModel) UnmarshalJSON

func (s *ErrorModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorModelStatusCode

type ErrorModelStatusCode struct {
	StatusCode int
	Response   ErrorModel
}

ErrorModelStatusCode wraps ErrorModel with StatusCode.

func (*ErrorModelStatusCode) Error

func (s *ErrorModelStatusCode) Error() string

func (*ErrorModelStatusCode) GetResponse

func (s *ErrorModelStatusCode) GetResponse() ErrorModel

GetResponse returns the value of Response.

func (*ErrorModelStatusCode) GetStatusCode

func (s *ErrorModelStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorModelStatusCode) SetResponse

func (s *ErrorModelStatusCode) SetResponse(val ErrorModel)

SetResponse sets the value of Response.

func (*ErrorModelStatusCode) SetStatusCode

func (s *ErrorModelStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type GetMeOutputBody

type GetMeOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema              OptURI                   `json:"$schema"`
	Auth                MeAuth                   `json:"auth"`
	Global              MeGlobal                 `json:"global"`
	Jurisdiction        OptString                `json:"jurisdiction"`
	Mode                OptGetMeOutputBodyMode   `json:"mode"`
	Regional            OptMeRegional            `json:"regional"`
	RegionalUnavailable OptMeRegionalUnavailable `json:"regionalUnavailable"`
}

Ref: #/components/schemas/GetMeOutputBody

func (*GetMeOutputBody) Decode

func (s *GetMeOutputBody) Decode(d *jx.Decoder) error

Decode decodes GetMeOutputBody from json.

func (*GetMeOutputBody) Encode

func (s *GetMeOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetMeOutputBody) GetAuth

func (s *GetMeOutputBody) GetAuth() MeAuth

GetAuth returns the value of Auth.

func (*GetMeOutputBody) GetGlobal

func (s *GetMeOutputBody) GetGlobal() MeGlobal

GetGlobal returns the value of Global.

func (*GetMeOutputBody) GetJurisdiction

func (s *GetMeOutputBody) GetJurisdiction() OptString

GetJurisdiction returns the value of Jurisdiction.

func (*GetMeOutputBody) GetMode

GetMode returns the value of Mode.

func (*GetMeOutputBody) GetRegional

func (s *GetMeOutputBody) GetRegional() OptMeRegional

GetRegional returns the value of Regional.

func (*GetMeOutputBody) GetRegionalUnavailable

func (s *GetMeOutputBody) GetRegionalUnavailable() OptMeRegionalUnavailable

GetRegionalUnavailable returns the value of RegionalUnavailable.

func (*GetMeOutputBody) GetSchema

func (s *GetMeOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*GetMeOutputBody) MarshalJSON

func (s *GetMeOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMeOutputBody) SetAuth

func (s *GetMeOutputBody) SetAuth(val MeAuth)

SetAuth sets the value of Auth.

func (*GetMeOutputBody) SetGlobal

func (s *GetMeOutputBody) SetGlobal(val MeGlobal)

SetGlobal sets the value of Global.

func (*GetMeOutputBody) SetJurisdiction

func (s *GetMeOutputBody) SetJurisdiction(val OptString)

SetJurisdiction sets the value of Jurisdiction.

func (*GetMeOutputBody) SetMode

func (s *GetMeOutputBody) SetMode(val OptGetMeOutputBodyMode)

SetMode sets the value of Mode.

func (*GetMeOutputBody) SetRegional

func (s *GetMeOutputBody) SetRegional(val OptMeRegional)

SetRegional sets the value of Regional.

func (*GetMeOutputBody) SetRegionalUnavailable

func (s *GetMeOutputBody) SetRegionalUnavailable(val OptMeRegionalUnavailable)

SetRegionalUnavailable sets the value of RegionalUnavailable.

func (*GetMeOutputBody) SetSchema

func (s *GetMeOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GetMeOutputBody) UnmarshalJSON

func (s *GetMeOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetMeOutputBody) Validate

func (s *GetMeOutputBody) Validate() error

type GetMeOutputBodyMode

type GetMeOutputBodyMode string
const (
	GetMeOutputBodyModeStandalone GetMeOutputBodyMode = "standalone"
	GetMeOutputBodyModeGlobal     GetMeOutputBodyMode = "global"
	GetMeOutputBodyModeRegional   GetMeOutputBodyMode = "regional"
)

func (GetMeOutputBodyMode) AllValues

AllValues returns all GetMeOutputBodyMode values.

func (*GetMeOutputBodyMode) Decode

func (s *GetMeOutputBodyMode) Decode(d *jx.Decoder) error

Decode decodes GetMeOutputBodyMode from json.

func (GetMeOutputBodyMode) Encode

func (s GetMeOutputBodyMode) Encode(e *jx.Encoder)

Encode encodes GetMeOutputBodyMode as json.

func (GetMeOutputBodyMode) MarshalJSON

func (s GetMeOutputBodyMode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GetMeOutputBodyMode) MarshalText

func (s GetMeOutputBodyMode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GetMeOutputBodyMode) UnmarshalJSON

func (s *GetMeOutputBodyMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetMeOutputBodyMode) UnmarshalText

func (s *GetMeOutputBodyMode) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GetMeOutputBodyMode) Validate

func (s GetMeOutputBodyMode) Validate() error

type GetMirrorParams

type GetMirrorParams struct {
	MirrorId string
}

GetMirrorParams is parameters of getMirror operation.

type GetPermissionsOutputBody

type GetPermissionsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema       OptURI                             `json:"$schema"`
	Explain      OptGetPermissionsOutputBodyExplain `json:"explain"`
	Permissions  []string                           `json:"permissions"`
	ResourceId   string                             `json:"resourceId"`
	ResourceType string                             `json:"resourceType"`
}

Ref: #/components/schemas/GetPermissionsOutputBody

func (*GetPermissionsOutputBody) Decode

func (s *GetPermissionsOutputBody) Decode(d *jx.Decoder) error

Decode decodes GetPermissionsOutputBody from json.

func (*GetPermissionsOutputBody) Encode

func (s *GetPermissionsOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetPermissionsOutputBody) GetExplain

GetExplain returns the value of Explain.

func (*GetPermissionsOutputBody) GetPermissions

func (s *GetPermissionsOutputBody) GetPermissions() []string

GetPermissions returns the value of Permissions.

func (*GetPermissionsOutputBody) GetResourceId

func (s *GetPermissionsOutputBody) GetResourceId() string

GetResourceId returns the value of ResourceId.

func (*GetPermissionsOutputBody) GetResourceType

func (s *GetPermissionsOutputBody) GetResourceType() string

GetResourceType returns the value of ResourceType.

func (*GetPermissionsOutputBody) GetSchema

func (s *GetPermissionsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*GetPermissionsOutputBody) MarshalJSON

func (s *GetPermissionsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetPermissionsOutputBody) SetExplain

SetExplain sets the value of Explain.

func (*GetPermissionsOutputBody) SetPermissions

func (s *GetPermissionsOutputBody) SetPermissions(val []string)

SetPermissions sets the value of Permissions.

func (*GetPermissionsOutputBody) SetResourceId

func (s *GetPermissionsOutputBody) SetResourceId(val string)

SetResourceId sets the value of ResourceId.

func (*GetPermissionsOutputBody) SetResourceType

func (s *GetPermissionsOutputBody) SetResourceType(val string)

SetResourceType sets the value of ResourceType.

func (*GetPermissionsOutputBody) SetSchema

func (s *GetPermissionsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GetPermissionsOutputBody) UnmarshalJSON

func (s *GetPermissionsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetPermissionsOutputBodyExplain

type GetPermissionsOutputBodyExplain map[string]jx.Raw

func (*GetPermissionsOutputBodyExplain) Decode

Decode decodes GetPermissionsOutputBodyExplain from json.

func (GetPermissionsOutputBodyExplain) Encode

Encode implements json.Marshaler.

func (GetPermissionsOutputBodyExplain) MarshalJSON

func (s GetPermissionsOutputBodyExplain) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetPermissionsOutputBodyExplain) UnmarshalJSON

func (s *GetPermissionsOutputBodyExplain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetPermissionsParams

type GetPermissionsParams struct {
	ResourceType string
	ResourceId   string
	// If set, return the SpiceDB trace for this permission instead of the permission list.
	Explain OptString `json:",omitempty,omitzero"`
}

GetPermissionsParams is parameters of getPermissions operation.

type GetRepoParams

type GetRepoParams struct {
	RepoId string
}

GetRepoParams is parameters of getRepo operation.

type GetServiceAccountParams

type GetServiceAccountParams struct {
	AccountId string
}

GetServiceAccountParams is parameters of getServiceAccount operation.

type GrantProjectAccessInputBody

type GrantProjectAccessInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema         OptURI                                    `json:"$schema"`
	GranteeType    OptGrantProjectAccessInputBodyGranteeType `json:"granteeType"`
	Provider       string                                    `json:"provider"`
	ProviderUserId string                                    `json:"providerUserId"`
	Role           string                                    `json:"role"`
}

Ref: #/components/schemas/GrantProjectAccessInputBody

func (*GrantProjectAccessInputBody) Decode

Decode decodes GrantProjectAccessInputBody from json.

func (*GrantProjectAccessInputBody) Encode

func (s *GrantProjectAccessInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GrantProjectAccessInputBody) GetGranteeType

GetGranteeType returns the value of GranteeType.

func (*GrantProjectAccessInputBody) GetProvider

func (s *GrantProjectAccessInputBody) GetProvider() string

GetProvider returns the value of Provider.

func (*GrantProjectAccessInputBody) GetProviderUserId

func (s *GrantProjectAccessInputBody) GetProviderUserId() string

GetProviderUserId returns the value of ProviderUserId.

func (*GrantProjectAccessInputBody) GetRole

func (s *GrantProjectAccessInputBody) GetRole() string

GetRole returns the value of Role.

func (*GrantProjectAccessInputBody) GetSchema

func (s *GrantProjectAccessInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*GrantProjectAccessInputBody) MarshalJSON

func (s *GrantProjectAccessInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GrantProjectAccessInputBody) SetGranteeType

SetGranteeType sets the value of GranteeType.

func (*GrantProjectAccessInputBody) SetProvider

func (s *GrantProjectAccessInputBody) SetProvider(val string)

SetProvider sets the value of Provider.

func (*GrantProjectAccessInputBody) SetProviderUserId

func (s *GrantProjectAccessInputBody) SetProviderUserId(val string)

SetProviderUserId sets the value of ProviderUserId.

func (*GrantProjectAccessInputBody) SetRole

func (s *GrantProjectAccessInputBody) SetRole(val string)

SetRole sets the value of Role.

func (*GrantProjectAccessInputBody) SetSchema

func (s *GrantProjectAccessInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GrantProjectAccessInputBody) UnmarshalJSON

func (s *GrantProjectAccessInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GrantProjectAccessInputBody) Validate

func (s *GrantProjectAccessInputBody) Validate() error

type GrantProjectAccessInputBodyGranteeType

type GrantProjectAccessInputBodyGranteeType string
const (
	GrantProjectAccessInputBodyGranteeTypeAccount GrantProjectAccessInputBodyGranteeType = "account"
	GrantProjectAccessInputBodyGranteeTypeOrg     GrantProjectAccessInputBodyGranteeType = "org"
	GrantProjectAccessInputBodyGranteeTypeTeam    GrantProjectAccessInputBodyGranteeType = "team"
)

func (GrantProjectAccessInputBodyGranteeType) AllValues

AllValues returns all GrantProjectAccessInputBodyGranteeType values.

func (*GrantProjectAccessInputBodyGranteeType) Decode

Decode decodes GrantProjectAccessInputBodyGranteeType from json.

func (GrantProjectAccessInputBodyGranteeType) Encode

Encode encodes GrantProjectAccessInputBodyGranteeType as json.

func (GrantProjectAccessInputBodyGranteeType) MarshalJSON

func (s GrantProjectAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GrantProjectAccessInputBodyGranteeType) MarshalText

func (s GrantProjectAccessInputBodyGranteeType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GrantProjectAccessInputBodyGranteeType) UnmarshalJSON

func (s *GrantProjectAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GrantProjectAccessInputBodyGranteeType) UnmarshalText

func (s *GrantProjectAccessInputBodyGranteeType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GrantProjectAccessInputBodyGranteeType) Validate

type GrantProjectAccessOutputBody

type GrantProjectAccessOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	Status string `json:"status"`
}

Ref: #/components/schemas/GrantProjectAccessOutputBody

func (*GrantProjectAccessOutputBody) Decode

Decode decodes GrantProjectAccessOutputBody from json.

func (*GrantProjectAccessOutputBody) Encode

func (s *GrantProjectAccessOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GrantProjectAccessOutputBody) GetSchema

func (s *GrantProjectAccessOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*GrantProjectAccessOutputBody) GetStatus

func (s *GrantProjectAccessOutputBody) GetStatus() string

GetStatus returns the value of Status.

func (*GrantProjectAccessOutputBody) MarshalJSON

func (s *GrantProjectAccessOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GrantProjectAccessOutputBody) SetSchema

func (s *GrantProjectAccessOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GrantProjectAccessOutputBody) SetStatus

func (s *GrantProjectAccessOutputBody) SetStatus(val string)

SetStatus sets the value of Status.

func (*GrantProjectAccessOutputBody) UnmarshalJSON

func (s *GrantProjectAccessOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GrantProjectAccessParams

type GrantProjectAccessParams struct {
	ProjectId string
}

GrantProjectAccessParams is parameters of grantProjectAccess operation.

type GrantRepoAccessInputBody

type GrantRepoAccessInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema         OptURI                                 `json:"$schema"`
	GranteeType    OptGrantRepoAccessInputBodyGranteeType `json:"granteeType"`
	Provider       string                                 `json:"provider"`
	ProviderUserId string                                 `json:"providerUserId"`
	Role           string                                 `json:"role"`
}

Ref: #/components/schemas/GrantRepoAccessInputBody

func (*GrantRepoAccessInputBody) Decode

func (s *GrantRepoAccessInputBody) Decode(d *jx.Decoder) error

Decode decodes GrantRepoAccessInputBody from json.

func (*GrantRepoAccessInputBody) Encode

func (s *GrantRepoAccessInputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GrantRepoAccessInputBody) GetGranteeType

GetGranteeType returns the value of GranteeType.

func (*GrantRepoAccessInputBody) GetProvider

func (s *GrantRepoAccessInputBody) GetProvider() string

GetProvider returns the value of Provider.

func (*GrantRepoAccessInputBody) GetProviderUserId

func (s *GrantRepoAccessInputBody) GetProviderUserId() string

GetProviderUserId returns the value of ProviderUserId.

func (*GrantRepoAccessInputBody) GetRole

func (s *GrantRepoAccessInputBody) GetRole() string

GetRole returns the value of Role.

func (*GrantRepoAccessInputBody) GetSchema

func (s *GrantRepoAccessInputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*GrantRepoAccessInputBody) MarshalJSON

func (s *GrantRepoAccessInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GrantRepoAccessInputBody) SetGranteeType

SetGranteeType sets the value of GranteeType.

func (*GrantRepoAccessInputBody) SetProvider

func (s *GrantRepoAccessInputBody) SetProvider(val string)

SetProvider sets the value of Provider.

func (*GrantRepoAccessInputBody) SetProviderUserId

func (s *GrantRepoAccessInputBody) SetProviderUserId(val string)

SetProviderUserId sets the value of ProviderUserId.

func (*GrantRepoAccessInputBody) SetRole

func (s *GrantRepoAccessInputBody) SetRole(val string)

SetRole sets the value of Role.

func (*GrantRepoAccessInputBody) SetSchema

func (s *GrantRepoAccessInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GrantRepoAccessInputBody) UnmarshalJSON

func (s *GrantRepoAccessInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GrantRepoAccessInputBody) Validate

func (s *GrantRepoAccessInputBody) Validate() error

type GrantRepoAccessInputBodyGranteeType

type GrantRepoAccessInputBodyGranteeType string
const (
	GrantRepoAccessInputBodyGranteeTypeAccount GrantRepoAccessInputBodyGranteeType = "account"
	GrantRepoAccessInputBodyGranteeTypeOrg     GrantRepoAccessInputBodyGranteeType = "org"
	GrantRepoAccessInputBodyGranteeTypeTeam    GrantRepoAccessInputBodyGranteeType = "team"
)

func (GrantRepoAccessInputBodyGranteeType) AllValues

AllValues returns all GrantRepoAccessInputBodyGranteeType values.

func (*GrantRepoAccessInputBodyGranteeType) Decode

Decode decodes GrantRepoAccessInputBodyGranteeType from json.

func (GrantRepoAccessInputBodyGranteeType) Encode

Encode encodes GrantRepoAccessInputBodyGranteeType as json.

func (GrantRepoAccessInputBodyGranteeType) MarshalJSON

func (s GrantRepoAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GrantRepoAccessInputBodyGranteeType) MarshalText

func (s GrantRepoAccessInputBodyGranteeType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GrantRepoAccessInputBodyGranteeType) UnmarshalJSON

func (s *GrantRepoAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GrantRepoAccessInputBodyGranteeType) UnmarshalText

func (s *GrantRepoAccessInputBodyGranteeType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GrantRepoAccessInputBodyGranteeType) Validate

type GrantRepoAccessOutputBody

type GrantRepoAccessOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	Status string `json:"status"`
}

Ref: #/components/schemas/GrantRepoAccessOutputBody

func (*GrantRepoAccessOutputBody) Decode

func (s *GrantRepoAccessOutputBody) Decode(d *jx.Decoder) error

Decode decodes GrantRepoAccessOutputBody from json.

func (*GrantRepoAccessOutputBody) Encode

func (s *GrantRepoAccessOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GrantRepoAccessOutputBody) GetSchema

func (s *GrantRepoAccessOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*GrantRepoAccessOutputBody) GetStatus

func (s *GrantRepoAccessOutputBody) GetStatus() string

GetStatus returns the value of Status.

func (*GrantRepoAccessOutputBody) MarshalJSON

func (s *GrantRepoAccessOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GrantRepoAccessOutputBody) SetSchema

func (s *GrantRepoAccessOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GrantRepoAccessOutputBody) SetStatus

func (s *GrantRepoAccessOutputBody) SetStatus(val string)

SetStatus sets the value of Status.

func (*GrantRepoAccessOutputBody) UnmarshalJSON

func (s *GrantRepoAccessOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GrantRepoAccessParams

type GrantRepoAccessParams struct {
	RepoId string
}

GrantRepoAccessParams is parameters of grantRepoAccess operation.

type GrantServiceAccountAccessInputBody

type GrantServiceAccountAccessInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema       OptURI                                         `json:"$schema"`
	ResourceId   string                                         `json:"resourceId"`
	ResourceType GrantServiceAccountAccessInputBodyResourceType `json:"resourceType"`
	Role         string                                         `json:"role"`
}

Ref: #/components/schemas/GrantServiceAccountAccessInputBody

func (*GrantServiceAccountAccessInputBody) Decode

Decode decodes GrantServiceAccountAccessInputBody from json.

func (*GrantServiceAccountAccessInputBody) Encode

Encode implements json.Marshaler.

func (*GrantServiceAccountAccessInputBody) GetResourceId

func (s *GrantServiceAccountAccessInputBody) GetResourceId() string

GetResourceId returns the value of ResourceId.

func (*GrantServiceAccountAccessInputBody) GetResourceType

GetResourceType returns the value of ResourceType.

func (*GrantServiceAccountAccessInputBody) GetRole

GetRole returns the value of Role.

func (*GrantServiceAccountAccessInputBody) GetSchema

GetSchema returns the value of Schema.

func (*GrantServiceAccountAccessInputBody) MarshalJSON

func (s *GrantServiceAccountAccessInputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GrantServiceAccountAccessInputBody) SetResourceId

func (s *GrantServiceAccountAccessInputBody) SetResourceId(val string)

SetResourceId sets the value of ResourceId.

func (*GrantServiceAccountAccessInputBody) SetResourceType

SetResourceType sets the value of ResourceType.

func (*GrantServiceAccountAccessInputBody) SetRole

SetRole sets the value of Role.

func (*GrantServiceAccountAccessInputBody) SetSchema

func (s *GrantServiceAccountAccessInputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GrantServiceAccountAccessInputBody) UnmarshalJSON

func (s *GrantServiceAccountAccessInputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GrantServiceAccountAccessInputBody) Validate

type GrantServiceAccountAccessInputBodyResourceType

type GrantServiceAccountAccessInputBodyResourceType string
const (
	GrantServiceAccountAccessInputBodyResourceTypeRepo    GrantServiceAccountAccessInputBodyResourceType = "repo"
	GrantServiceAccountAccessInputBodyResourceTypeProject GrantServiceAccountAccessInputBodyResourceType = "project"
)

func (GrantServiceAccountAccessInputBodyResourceType) AllValues

AllValues returns all GrantServiceAccountAccessInputBodyResourceType values.

func (*GrantServiceAccountAccessInputBodyResourceType) Decode

Decode decodes GrantServiceAccountAccessInputBodyResourceType from json.

func (GrantServiceAccountAccessInputBodyResourceType) Encode

Encode encodes GrantServiceAccountAccessInputBodyResourceType as json.

func (GrantServiceAccountAccessInputBodyResourceType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (GrantServiceAccountAccessInputBodyResourceType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*GrantServiceAccountAccessInputBodyResourceType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GrantServiceAccountAccessInputBodyResourceType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (GrantServiceAccountAccessInputBodyResourceType) Validate

type GrantServiceAccountAccessOutputBody

type GrantServiceAccountAccessOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	Status string `json:"status"`
}

Ref: #/components/schemas/GrantServiceAccountAccessOutputBody

func (*GrantServiceAccountAccessOutputBody) Decode

Decode decodes GrantServiceAccountAccessOutputBody from json.

func (*GrantServiceAccountAccessOutputBody) Encode

Encode implements json.Marshaler.

func (*GrantServiceAccountAccessOutputBody) GetSchema

GetSchema returns the value of Schema.

func (*GrantServiceAccountAccessOutputBody) GetStatus

GetStatus returns the value of Status.

func (*GrantServiceAccountAccessOutputBody) MarshalJSON

func (s *GrantServiceAccountAccessOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GrantServiceAccountAccessOutputBody) SetSchema

func (s *GrantServiceAccountAccessOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*GrantServiceAccountAccessOutputBody) SetStatus

func (s *GrantServiceAccountAccessOutputBody) SetStatus(val string)

SetStatus sets the value of Status.

func (*GrantServiceAccountAccessOutputBody) UnmarshalJSON

func (s *GrantServiceAccountAccessOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GrantServiceAccountAccessParams

type GrantServiceAccountAccessParams struct {
	AccountId string
}

GrantServiceAccountAccessParams is parameters of grantServiceAccountAccess operation.

type Invoker

type Invoker interface {
	// AddOrgMember invokes addOrgMember operation.
	//
	// Add a member to an organization.
	//
	// POST /orgs/{orgId}/members
	AddOrgMember(ctx context.Context, request *AddOrgMemberInputBody, params AddOrgMemberParams) (*Membership, error)
	// BatchLookup invokes batchLookup operation.
	//
	// Batch-resolve (type, id) refs to enriched records.
	//
	// POST /lookup
	BatchLookup(ctx context.Context, request *BatchLookupInputBody) (*BatchLookupOutputBody, error)
	// CreateBinding invokes createBinding operation.
	//
	// Create OIDC binding.
	//
	// POST /service-accounts/{accountId}/bindings
	CreateBinding(ctx context.Context, request *CreateBindingInputBody, params CreateBindingParams) (*Binding, error)
	// CreateMirror invokes createMirror operation.
	//
	// Create GitHub mirror.
	//
	// POST /mirrors
	CreateMirror(ctx context.Context, request *CreateMirrorInputBody) (*CreatedMirror, error)
	// CreateOrg invokes createOrg operation.
	//
	// Create organization.
	//
	// POST /orgs
	CreateOrg(ctx context.Context, request *CreateOrgInputBody) (*Org, error)
	// CreateProject invokes createProject operation.
	//
	// Create project.
	//
	// POST /projects
	CreateProject(ctx context.Context, request *CreateProjectInputBody) (*Project, error)
	// CreateRepo invokes createRepo operation.
	//
	// Create repository.
	//
	// POST /repos
	CreateRepo(ctx context.Context, request *CreateRepoInputBody) (*Repo, error)
	// CreateServiceAccount invokes createServiceAccount operation.
	//
	// Create service account.
	//
	// POST /service-accounts
	CreateServiceAccount(ctx context.Context, request *CreateServiceAccountInputBody) (*ServiceAccount, error)
	// DeleteBinding invokes deleteBinding operation.
	//
	// Delete OIDC binding.
	//
	// DELETE /service-accounts/{accountId}/bindings/{bindingId}
	DeleteBinding(ctx context.Context, params DeleteBindingParams) error
	// DeleteMirror invokes deleteMirror operation.
	//
	// Delete a mirror by upstream coords + cluster host.
	//
	// DELETE /mirrors
	DeleteMirror(ctx context.Context, params DeleteMirrorParams) error
	// DeleteRepo invokes deleteRepo operation.
	//
	// Delete repository.
	//
	// DELETE /repos/{repoId}
	DeleteRepo(ctx context.Context, params DeleteRepoParams) error
	// DeleteServiceAccount invokes deleteServiceAccount operation.
	//
	// Delete service account.
	//
	// DELETE /service-accounts/{accountId}
	DeleteServiceAccount(ctx context.Context, params DeleteServiceAccountParams) error
	// GetMe invokes getMe operation.
	//
	// Get the calling account's identity and profile.
	//
	// GET /me
	GetMe(ctx context.Context) (*GetMeOutputBody, error)
	// GetMirror invokes getMirror operation.
	//
	// Get mirror by id.
	//
	// GET /mirrors/{mirrorId}
	GetMirror(ctx context.Context, params GetMirrorParams) (*Mirror, error)
	// GetPermissions invokes getPermissions operation.
	//
	// List the caller's permissions on a single resource.
	//
	// GET /access/{resourceType}/{resourceId}
	GetPermissions(ctx context.Context, params GetPermissionsParams) (*GetPermissionsOutputBody, error)
	// GetRepo invokes getRepo operation.
	//
	// Get repository.
	//
	// GET /repos/{repoId}
	GetRepo(ctx context.Context, params GetRepoParams) (*Repo, error)
	// GetServiceAccount invokes getServiceAccount operation.
	//
	// Get service account.
	//
	// GET /service-accounts/{accountId}
	GetServiceAccount(ctx context.Context, params GetServiceAccountParams) (*ServiceAccount, error)
	// GrantProjectAccess invokes grantProjectAccess operation.
	//
	// Grant project access to an identity.
	//
	// POST /projects/{projectId}/grants
	GrantProjectAccess(ctx context.Context, request *GrantProjectAccessInputBody, params GrantProjectAccessParams) (*GrantProjectAccessOutputBody, error)
	// GrantRepoAccess invokes grantRepoAccess operation.
	//
	// Grant repo access to an identity.
	//
	// POST /repos/{repoId}/grants
	GrantRepoAccess(ctx context.Context, request *GrantRepoAccessInputBody, params GrantRepoAccessParams) (*GrantRepoAccessOutputBody, error)
	// GrantServiceAccountAccess invokes grantServiceAccountAccess operation.
	//
	// Grant service account access on a repo or project.
	//
	// POST /service-accounts/{accountId}/grants
	GrantServiceAccountAccess(ctx context.Context, request *GrantServiceAccountAccessInputBody, params GrantServiceAccountAccessParams) (*GrantServiceAccountAccessOutputBody, error)
	// ListAuditEvents invokes listAuditEvents operation.
	//
	// List the calling account's recent audit events.
	//
	// GET /audit
	ListAuditEvents(ctx context.Context) (*ListAuditEventsOutputBody, error)
	// ListBindings invokes listBindings operation.
	//
	// List OIDC bindings.
	//
	// GET /service-accounts/{accountId}/bindings
	ListBindings(ctx context.Context, params ListBindingsParams) (*ListBindingsOutputBody, error)
	// ListMirrors invokes listMirrors operation.
	//
	// List mirrors visible to the caller.
	//
	// GET /mirrors
	ListMirrors(ctx context.Context, params ListMirrorsParams) (*ListMirrorsOutputBody, error)
	// ListOIDCProviders invokes listOIDCProviders operation.
	//
	// List federated OIDC identity providers.
	//
	// GET /oidc-providers
	ListOIDCProviders(ctx context.Context) (*ListOIDCProvidersOutputBody, error)
	// ListOrgMembers invokes listOrgMembers operation.
	//
	// List members of an organization.
	//
	// GET /orgs/{orgId}/members
	ListOrgMembers(ctx context.Context, params ListOrgMembersParams) (*ListOrgMembersOutputBody, error)
	// ListOrgProjects invokes listOrgProjects operation.
	//
	// List projects owned by an organization.
	//
	// GET /orgs/{orgId}/projects
	ListOrgProjects(ctx context.Context, params ListOrgProjectsParams) (*ListOrgProjectsOutputBody, error)
	// ListOrgs invokes listOrgs operation.
	//
	// List organizations the caller can see.
	//
	// GET /orgs
	ListOrgs(ctx context.Context) (*ListOrgsOutputBody, error)
	// ListProjectMembers invokes listProjectMembers operation.
	//
	// List project members and their roles.
	//
	// GET /projects/{projectId}/members
	ListProjectMembers(ctx context.Context, params ListProjectMembersParams) (*ListProjectMembersOutputBody, error)
	// ListProjectRepos invokes listProjectRepos operation.
	//
	// List repositories in a project.
	//
	// GET /projects/{projectId}/repos
	ListProjectRepos(ctx context.Context, params ListProjectReposParams) (*ListProjectReposOutputBody, error)
	// ListProjects invokes listProjects operation.
	//
	// List projects accessible to the caller (or one by name).
	//
	// GET /projects
	ListProjects(ctx context.Context, params ListProjectsParams) (*ListProjectsOutputBody, error)
	// ListServiceAccountGrants invokes listServiceAccountGrants operation.
	//
	// List service account grants.
	//
	// GET /service-accounts/{accountId}/grants
	ListServiceAccountGrants(ctx context.Context, params ListServiceAccountGrantsParams) (*ListServiceAccountGrantsOutputBody, error)
	// ListServiceAccounts invokes listServiceAccounts operation.
	//
	// List service accounts in an org.
	//
	// GET /service-accounts
	ListServiceAccounts(ctx context.Context, params ListServiceAccountsParams) (*ListServiceAccountsOutputBody, error)
	// LookupResources invokes lookupResources operation.
	//
	// List resources of a type the caller can access.
	//
	// GET /access/{resourceType}
	LookupResources(ctx context.Context, params LookupResourcesParams) (*LookupResourcesOutputBody, error)
	// RemoveOrgMember invokes removeOrgMember operation.
	//
	// Remove a member from an organization.
	//
	// DELETE /orgs/{orgId}/members/{provider}/{providerUserId}
	RemoveOrgMember(ctx context.Context, params RemoveOrgMemberParams) error
	// ResolveHandle invokes resolveHandle operation.
	//
	// Resolve account by external provider handle.
	//
	// GET /identity/handles/{provider}/{handle}
	ResolveHandle(ctx context.Context, params ResolveHandleParams) (*ResolvedIdentity, error)
	// RevokeProjectAccess invokes revokeProjectAccess operation.
	//
	// Revoke project access by grantee id.
	//
	// DELETE /projects/{projectId}/grants/{granteeType}/{granteeId}
	RevokeProjectAccess(ctx context.Context, params RevokeProjectAccessParams) error
	// RevokeProjectAccessByProvider invokes revokeProjectAccessByProvider operation.
	//
	// Revoke project access by provider identity.
	//
	// DELETE /projects/{projectId}/grants/account/{provider}/{providerUserId}
	RevokeProjectAccessByProvider(ctx context.Context, params RevokeProjectAccessByProviderParams) error
	// RevokeServiceAccountAccess invokes revokeServiceAccountAccess operation.
	//
	// Revoke service account access.
	//
	// DELETE /service-accounts/{accountId}/grants/{resourceType}/{resourceId}
	RevokeServiceAccountAccess(ctx context.Context, params RevokeServiceAccountAccessParams) error
}

Invoker invokes operations described by OpenAPI v3 specification.

type ListAuditEventsOutputBody

type ListAuditEventsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI       `json:"$schema"`
	Events []AuditEvent `json:"events"`
}

Ref: #/components/schemas/ListAuditEventsOutputBody

func (*ListAuditEventsOutputBody) Decode

func (s *ListAuditEventsOutputBody) Decode(d *jx.Decoder) error

Decode decodes ListAuditEventsOutputBody from json.

func (*ListAuditEventsOutputBody) Encode

func (s *ListAuditEventsOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListAuditEventsOutputBody) GetEvents

func (s *ListAuditEventsOutputBody) GetEvents() []AuditEvent

GetEvents returns the value of Events.

func (*ListAuditEventsOutputBody) GetSchema

func (s *ListAuditEventsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListAuditEventsOutputBody) MarshalJSON

func (s *ListAuditEventsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListAuditEventsOutputBody) SetEvents

func (s *ListAuditEventsOutputBody) SetEvents(val []AuditEvent)

SetEvents sets the value of Events.

func (*ListAuditEventsOutputBody) SetSchema

func (s *ListAuditEventsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListAuditEventsOutputBody) UnmarshalJSON

func (s *ListAuditEventsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListAuditEventsOutputBody) Validate

func (s *ListAuditEventsOutputBody) Validate() error

type ListBindingsOutputBody

type ListBindingsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema   OptURI    `json:"$schema"`
	Bindings []Binding `json:"bindings"`
}

Ref: #/components/schemas/ListBindingsOutputBody

func (*ListBindingsOutputBody) Decode

func (s *ListBindingsOutputBody) Decode(d *jx.Decoder) error

Decode decodes ListBindingsOutputBody from json.

func (*ListBindingsOutputBody) Encode

func (s *ListBindingsOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListBindingsOutputBody) GetBindings

func (s *ListBindingsOutputBody) GetBindings() []Binding

GetBindings returns the value of Bindings.

func (*ListBindingsOutputBody) GetSchema

func (s *ListBindingsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListBindingsOutputBody) MarshalJSON

func (s *ListBindingsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListBindingsOutputBody) SetBindings

func (s *ListBindingsOutputBody) SetBindings(val []Binding)

SetBindings sets the value of Bindings.

func (*ListBindingsOutputBody) SetSchema

func (s *ListBindingsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListBindingsOutputBody) UnmarshalJSON

func (s *ListBindingsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListBindingsOutputBody) Validate

func (s *ListBindingsOutputBody) Validate() error

type ListBindingsParams

type ListBindingsParams struct {
	AccountId string
}

ListBindingsParams is parameters of listBindings operation.

type ListMirrorsOutputBody

type ListMirrorsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema  OptURI   `json:"$schema"`
	Mirrors []Mirror `json:"mirrors"`
}

Ref: #/components/schemas/ListMirrorsOutputBody

func (*ListMirrorsOutputBody) Decode

func (s *ListMirrorsOutputBody) Decode(d *jx.Decoder) error

Decode decodes ListMirrorsOutputBody from json.

func (*ListMirrorsOutputBody) Encode

func (s *ListMirrorsOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListMirrorsOutputBody) GetMirrors

func (s *ListMirrorsOutputBody) GetMirrors() []Mirror

GetMirrors returns the value of Mirrors.

func (*ListMirrorsOutputBody) GetSchema

func (s *ListMirrorsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListMirrorsOutputBody) MarshalJSON

func (s *ListMirrorsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListMirrorsOutputBody) SetMirrors

func (s *ListMirrorsOutputBody) SetMirrors(val []Mirror)

SetMirrors sets the value of Mirrors.

func (*ListMirrorsOutputBody) SetSchema

func (s *ListMirrorsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListMirrorsOutputBody) UnmarshalJSON

func (s *ListMirrorsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListMirrorsOutputBody) Validate

func (s *ListMirrorsOutputBody) Validate() error

type ListMirrorsParams

type ListMirrorsParams struct {
	// Optional: restrict to mirrors on this cluster (public host, e.g. royalcanin.partial.to).
	Cluster OptString `json:",omitempty,omitzero"`
	// Optional: restrict to mirrors of this upstream provider (e.g. "github").
	Provider OptString `json:",omitempty,omitzero"`
	// Optional: restrict to mirrors with this upstream owner login.
	Owner OptString `json:",omitempty,omitzero"`
}

ListMirrorsParams is parameters of listMirrors operation.

type ListOIDCProvidersOutputBody

type ListOIDCProvidersOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema    OptURI         `json:"$schema"`
	Providers []OIDCProvider `json:"providers"`
}

Ref: #/components/schemas/ListOIDCProvidersOutputBody

func (*ListOIDCProvidersOutputBody) Decode

Decode decodes ListOIDCProvidersOutputBody from json.

func (*ListOIDCProvidersOutputBody) Encode

func (s *ListOIDCProvidersOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOIDCProvidersOutputBody) GetProviders

func (s *ListOIDCProvidersOutputBody) GetProviders() []OIDCProvider

GetProviders returns the value of Providers.

func (*ListOIDCProvidersOutputBody) GetSchema

func (s *ListOIDCProvidersOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListOIDCProvidersOutputBody) MarshalJSON

func (s *ListOIDCProvidersOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOIDCProvidersOutputBody) SetProviders

func (s *ListOIDCProvidersOutputBody) SetProviders(val []OIDCProvider)

SetProviders sets the value of Providers.

func (*ListOIDCProvidersOutputBody) SetSchema

func (s *ListOIDCProvidersOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListOIDCProvidersOutputBody) UnmarshalJSON

func (s *ListOIDCProvidersOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOIDCProvidersOutputBody) Validate

func (s *ListOIDCProvidersOutputBody) Validate() error

type ListOrgMembersOutputBody

type ListOrgMembersOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema  OptURI       `json:"$schema"`
	Members []Membership `json:"members"`
}

Ref: #/components/schemas/ListOrgMembersOutputBody

func (*ListOrgMembersOutputBody) Decode

func (s *ListOrgMembersOutputBody) Decode(d *jx.Decoder) error

Decode decodes ListOrgMembersOutputBody from json.

func (*ListOrgMembersOutputBody) Encode

func (s *ListOrgMembersOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrgMembersOutputBody) GetMembers

func (s *ListOrgMembersOutputBody) GetMembers() []Membership

GetMembers returns the value of Members.

func (*ListOrgMembersOutputBody) GetSchema

func (s *ListOrgMembersOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListOrgMembersOutputBody) MarshalJSON

func (s *ListOrgMembersOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrgMembersOutputBody) SetMembers

func (s *ListOrgMembersOutputBody) SetMembers(val []Membership)

SetMembers sets the value of Members.

func (*ListOrgMembersOutputBody) SetSchema

func (s *ListOrgMembersOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListOrgMembersOutputBody) UnmarshalJSON

func (s *ListOrgMembersOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOrgMembersOutputBody) Validate

func (s *ListOrgMembersOutputBody) Validate() error

type ListOrgMembersParams

type ListOrgMembersParams struct {
	OrgId string
}

ListOrgMembersParams is parameters of listOrgMembers operation.

type ListOrgProjectsOutputBody

type ListOrgProjectsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema   OptURI    `json:"$schema"`
	Projects []Project `json:"projects"`
}

Ref: #/components/schemas/ListOrgProjectsOutputBody

func (*ListOrgProjectsOutputBody) Decode

func (s *ListOrgProjectsOutputBody) Decode(d *jx.Decoder) error

Decode decodes ListOrgProjectsOutputBody from json.

func (*ListOrgProjectsOutputBody) Encode

func (s *ListOrgProjectsOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrgProjectsOutputBody) GetProjects

func (s *ListOrgProjectsOutputBody) GetProjects() []Project

GetProjects returns the value of Projects.

func (*ListOrgProjectsOutputBody) GetSchema

func (s *ListOrgProjectsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListOrgProjectsOutputBody) MarshalJSON

func (s *ListOrgProjectsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrgProjectsOutputBody) SetProjects

func (s *ListOrgProjectsOutputBody) SetProjects(val []Project)

SetProjects sets the value of Projects.

func (*ListOrgProjectsOutputBody) SetSchema

func (s *ListOrgProjectsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListOrgProjectsOutputBody) UnmarshalJSON

func (s *ListOrgProjectsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOrgProjectsOutputBody) Validate

func (s *ListOrgProjectsOutputBody) Validate() error

type ListOrgProjectsParams

type ListOrgProjectsParams struct {
	OrgId string
}

ListOrgProjectsParams is parameters of listOrgProjects operation.

type ListOrgsOutputBody

type ListOrgsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	Orgs   []Org  `json:"orgs"`
}

Ref: #/components/schemas/ListOrgsOutputBody

func (*ListOrgsOutputBody) Decode

func (s *ListOrgsOutputBody) Decode(d *jx.Decoder) error

Decode decodes ListOrgsOutputBody from json.

func (*ListOrgsOutputBody) Encode

func (s *ListOrgsOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListOrgsOutputBody) GetOrgs

func (s *ListOrgsOutputBody) GetOrgs() []Org

GetOrgs returns the value of Orgs.

func (*ListOrgsOutputBody) GetSchema

func (s *ListOrgsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListOrgsOutputBody) MarshalJSON

func (s *ListOrgsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOrgsOutputBody) SetOrgs

func (s *ListOrgsOutputBody) SetOrgs(val []Org)

SetOrgs sets the value of Orgs.

func (*ListOrgsOutputBody) SetSchema

func (s *ListOrgsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListOrgsOutputBody) UnmarshalJSON

func (s *ListOrgsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOrgsOutputBody) Validate

func (s *ListOrgsOutputBody) Validate() error

type ListProjectMembersOutputBody

type ListProjectMembersOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema  OptURI         `json:"$schema"`
	Members []ProjectGrant `json:"members"`
}

Ref: #/components/schemas/ListProjectMembersOutputBody

func (*ListProjectMembersOutputBody) Decode

Decode decodes ListProjectMembersOutputBody from json.

func (*ListProjectMembersOutputBody) Encode

func (s *ListProjectMembersOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListProjectMembersOutputBody) GetMembers

func (s *ListProjectMembersOutputBody) GetMembers() []ProjectGrant

GetMembers returns the value of Members.

func (*ListProjectMembersOutputBody) GetSchema

func (s *ListProjectMembersOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListProjectMembersOutputBody) MarshalJSON

func (s *ListProjectMembersOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectMembersOutputBody) SetMembers

func (s *ListProjectMembersOutputBody) SetMembers(val []ProjectGrant)

SetMembers sets the value of Members.

func (*ListProjectMembersOutputBody) SetSchema

func (s *ListProjectMembersOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListProjectMembersOutputBody) UnmarshalJSON

func (s *ListProjectMembersOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListProjectMembersOutputBody) Validate

func (s *ListProjectMembersOutputBody) Validate() error

type ListProjectMembersParams

type ListProjectMembersParams struct {
	ProjectId string
}

ListProjectMembersParams is parameters of listProjectMembers operation.

type ListProjectReposOutputBody

type ListProjectReposOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	Repos  []Repo `json:"repos"`
}

Ref: #/components/schemas/ListProjectReposOutputBody

func (*ListProjectReposOutputBody) Decode

Decode decodes ListProjectReposOutputBody from json.

func (*ListProjectReposOutputBody) Encode

func (s *ListProjectReposOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListProjectReposOutputBody) GetRepos

func (s *ListProjectReposOutputBody) GetRepos() []Repo

GetRepos returns the value of Repos.

func (*ListProjectReposOutputBody) GetSchema

func (s *ListProjectReposOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListProjectReposOutputBody) MarshalJSON

func (s *ListProjectReposOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectReposOutputBody) SetRepos

func (s *ListProjectReposOutputBody) SetRepos(val []Repo)

SetRepos sets the value of Repos.

func (*ListProjectReposOutputBody) SetSchema

func (s *ListProjectReposOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListProjectReposOutputBody) UnmarshalJSON

func (s *ListProjectReposOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListProjectReposOutputBody) Validate

func (s *ListProjectReposOutputBody) Validate() error

type ListProjectReposParams

type ListProjectReposParams struct {
	ProjectId string
}

ListProjectReposParams is parameters of listProjectRepos operation.

type ListProjectsOutputBody

type ListProjectsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema   OptURI     `json:"$schema"`
	Project  OptProject `json:"project"`
	Projects []Project  `json:"projects"`
}

Ref: #/components/schemas/ListProjectsOutputBody

func (*ListProjectsOutputBody) Decode

func (s *ListProjectsOutputBody) Decode(d *jx.Decoder) error

Decode decodes ListProjectsOutputBody from json.

func (*ListProjectsOutputBody) Encode

func (s *ListProjectsOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListProjectsOutputBody) GetProject

func (s *ListProjectsOutputBody) GetProject() OptProject

GetProject returns the value of Project.

func (*ListProjectsOutputBody) GetProjects

func (s *ListProjectsOutputBody) GetProjects() []Project

GetProjects returns the value of Projects.

func (*ListProjectsOutputBody) GetSchema

func (s *ListProjectsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListProjectsOutputBody) MarshalJSON

func (s *ListProjectsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListProjectsOutputBody) SetProject

func (s *ListProjectsOutputBody) SetProject(val OptProject)

SetProject sets the value of Project.

func (*ListProjectsOutputBody) SetProjects

func (s *ListProjectsOutputBody) SetProjects(val []Project)

SetProjects sets the value of Projects.

func (*ListProjectsOutputBody) SetSchema

func (s *ListProjectsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListProjectsOutputBody) UnmarshalJSON

func (s *ListProjectsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListProjectsOutputBody) Validate

func (s *ListProjectsOutputBody) Validate() error

type ListProjectsParams

type ListProjectsParams struct {
	// Optional: exact-match project name.
	Name OptString `json:",omitempty,omitzero"`
}

ListProjectsParams is parameters of listProjects operation.

type ListServiceAccountGrantsOutputBody

type ListServiceAccountGrantsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI                `json:"$schema"`
	Grants []ServiceAccountGrant `json:"grants"`
}

Ref: #/components/schemas/ListServiceAccountGrantsOutputBody

func (*ListServiceAccountGrantsOutputBody) Decode

Decode decodes ListServiceAccountGrantsOutputBody from json.

func (*ListServiceAccountGrantsOutputBody) Encode

Encode implements json.Marshaler.

func (*ListServiceAccountGrantsOutputBody) GetGrants

GetGrants returns the value of Grants.

func (*ListServiceAccountGrantsOutputBody) GetSchema

GetSchema returns the value of Schema.

func (*ListServiceAccountGrantsOutputBody) MarshalJSON

func (s *ListServiceAccountGrantsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListServiceAccountGrantsOutputBody) SetGrants

SetGrants sets the value of Grants.

func (*ListServiceAccountGrantsOutputBody) SetSchema

func (s *ListServiceAccountGrantsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListServiceAccountGrantsOutputBody) UnmarshalJSON

func (s *ListServiceAccountGrantsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListServiceAccountGrantsOutputBody) Validate

type ListServiceAccountGrantsParams

type ListServiceAccountGrantsParams struct {
	AccountId string
}

ListServiceAccountGrantsParams is parameters of listServiceAccountGrants operation.

type ListServiceAccountsOutputBody

type ListServiceAccountsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI                     `json:"$schema"`
	ServiceAccounts []ServiceAccountWithGrants `json:"serviceAccounts"`
}

Ref: #/components/schemas/ListServiceAccountsOutputBody

func (*ListServiceAccountsOutputBody) Decode

Decode decodes ListServiceAccountsOutputBody from json.

func (*ListServiceAccountsOutputBody) Encode

Encode implements json.Marshaler.

func (*ListServiceAccountsOutputBody) GetSchema

func (s *ListServiceAccountsOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ListServiceAccountsOutputBody) GetServiceAccounts

func (s *ListServiceAccountsOutputBody) GetServiceAccounts() []ServiceAccountWithGrants

GetServiceAccounts returns the value of ServiceAccounts.

func (*ListServiceAccountsOutputBody) MarshalJSON

func (s *ListServiceAccountsOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListServiceAccountsOutputBody) SetSchema

func (s *ListServiceAccountsOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ListServiceAccountsOutputBody) SetServiceAccounts

func (s *ListServiceAccountsOutputBody) SetServiceAccounts(val []ServiceAccountWithGrants)

SetServiceAccounts sets the value of ServiceAccounts.

func (*ListServiceAccountsOutputBody) UnmarshalJSON

func (s *ListServiceAccountsOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListServiceAccountsOutputBody) Validate

func (s *ListServiceAccountsOutputBody) Validate() error

type ListServiceAccountsParams

type ListServiceAccountsParams struct {
	OrgId string
}

ListServiceAccountsParams is parameters of listServiceAccounts operation.

type LookupRef

type LookupRef struct {
	ID string `json:"id"`
	// Resource type slug; "org", "project", "repo" are enriched, unknown types pass through.
	Type string `json:"type"`
}

Ref: #/components/schemas/LookupRef

func (*LookupRef) Decode

func (s *LookupRef) Decode(d *jx.Decoder) error

Decode decodes LookupRef from json.

func (*LookupRef) Encode

func (s *LookupRef) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LookupRef) GetID

func (s *LookupRef) GetID() string

GetID returns the value of ID.

func (*LookupRef) GetType

func (s *LookupRef) GetType() string

GetType returns the value of Type.

func (*LookupRef) MarshalJSON

func (s *LookupRef) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LookupRef) SetID

func (s *LookupRef) SetID(val string)

SetID sets the value of ID.

func (*LookupRef) SetType

func (s *LookupRef) SetType(val string)

SetType sets the value of Type.

func (*LookupRef) UnmarshalJSON

func (s *LookupRef) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LookupRef) Validate

func (s *LookupRef) Validate() error

type LookupRefResult

type LookupRefResult struct {
	ID        string                      `json:"id"`
	Name      OptString                   `json:"name"`
	OwnerId   OptString                   `json:"ownerId"`
	OwnerType OptLookupRefResultOwnerType `json:"ownerType"`
	ProjectId OptString                   `json:"projectId"`
	Type      string                      `json:"type"`
	URL       OptString                   `json:"url"`
}

Ref: #/components/schemas/LookupRefResult

func (*LookupRefResult) Decode

func (s *LookupRefResult) Decode(d *jx.Decoder) error

Decode decodes LookupRefResult from json.

func (*LookupRefResult) Encode

func (s *LookupRefResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LookupRefResult) GetID

func (s *LookupRefResult) GetID() string

GetID returns the value of ID.

func (*LookupRefResult) GetName

func (s *LookupRefResult) GetName() OptString

GetName returns the value of Name.

func (*LookupRefResult) GetOwnerId

func (s *LookupRefResult) GetOwnerId() OptString

GetOwnerId returns the value of OwnerId.

func (*LookupRefResult) GetOwnerType

func (s *LookupRefResult) GetOwnerType() OptLookupRefResultOwnerType

GetOwnerType returns the value of OwnerType.

func (*LookupRefResult) GetProjectId

func (s *LookupRefResult) GetProjectId() OptString

GetProjectId returns the value of ProjectId.

func (*LookupRefResult) GetType

func (s *LookupRefResult) GetType() string

GetType returns the value of Type.

func (*LookupRefResult) GetURL

func (s *LookupRefResult) GetURL() OptString

GetURL returns the value of URL.

func (*LookupRefResult) MarshalJSON

func (s *LookupRefResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LookupRefResult) SetID

func (s *LookupRefResult) SetID(val string)

SetID sets the value of ID.

func (*LookupRefResult) SetName

func (s *LookupRefResult) SetName(val OptString)

SetName sets the value of Name.

func (*LookupRefResult) SetOwnerId

func (s *LookupRefResult) SetOwnerId(val OptString)

SetOwnerId sets the value of OwnerId.

func (*LookupRefResult) SetOwnerType

func (s *LookupRefResult) SetOwnerType(val OptLookupRefResultOwnerType)

SetOwnerType sets the value of OwnerType.

func (*LookupRefResult) SetProjectId

func (s *LookupRefResult) SetProjectId(val OptString)

SetProjectId sets the value of ProjectId.

func (*LookupRefResult) SetType

func (s *LookupRefResult) SetType(val string)

SetType sets the value of Type.

func (*LookupRefResult) SetURL

func (s *LookupRefResult) SetURL(val OptString)

SetURL sets the value of URL.

func (*LookupRefResult) UnmarshalJSON

func (s *LookupRefResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LookupRefResult) Validate

func (s *LookupRefResult) Validate() error

type LookupRefResultOwnerType

type LookupRefResultOwnerType string
const (
	LookupRefResultOwnerTypeOrg     LookupRefResultOwnerType = "org"
	LookupRefResultOwnerTypeAccount LookupRefResultOwnerType = "account"
)

func (LookupRefResultOwnerType) AllValues

AllValues returns all LookupRefResultOwnerType values.

func (*LookupRefResultOwnerType) Decode

func (s *LookupRefResultOwnerType) Decode(d *jx.Decoder) error

Decode decodes LookupRefResultOwnerType from json.

func (LookupRefResultOwnerType) Encode

func (s LookupRefResultOwnerType) Encode(e *jx.Encoder)

Encode encodes LookupRefResultOwnerType as json.

func (LookupRefResultOwnerType) MarshalJSON

func (s LookupRefResultOwnerType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (LookupRefResultOwnerType) MarshalText

func (s LookupRefResultOwnerType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*LookupRefResultOwnerType) UnmarshalJSON

func (s *LookupRefResultOwnerType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LookupRefResultOwnerType) UnmarshalText

func (s *LookupRefResultOwnerType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (LookupRefResultOwnerType) Validate

func (s LookupRefResultOwnerType) Validate() error

type LookupResourcesOutputBody

type LookupResourcesOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema       OptURI           `json:"$schema"`
	Permission   OptString        `json:"permission"`
	ResourceIds  []string         `json:"resourceIds"`
	ResourceType string           `json:"resourceType"`
	Resources    []ResourceAccess `json:"resources"`
}

Ref: #/components/schemas/LookupResourcesOutputBody

func (*LookupResourcesOutputBody) Decode

func (s *LookupResourcesOutputBody) Decode(d *jx.Decoder) error

Decode decodes LookupResourcesOutputBody from json.

func (*LookupResourcesOutputBody) Encode

func (s *LookupResourcesOutputBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LookupResourcesOutputBody) GetPermission

func (s *LookupResourcesOutputBody) GetPermission() OptString

GetPermission returns the value of Permission.

func (*LookupResourcesOutputBody) GetResourceIds

func (s *LookupResourcesOutputBody) GetResourceIds() []string

GetResourceIds returns the value of ResourceIds.

func (*LookupResourcesOutputBody) GetResourceType

func (s *LookupResourcesOutputBody) GetResourceType() string

GetResourceType returns the value of ResourceType.

func (*LookupResourcesOutputBody) GetResources

func (s *LookupResourcesOutputBody) GetResources() []ResourceAccess

GetResources returns the value of Resources.

func (*LookupResourcesOutputBody) GetSchema

func (s *LookupResourcesOutputBody) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*LookupResourcesOutputBody) MarshalJSON

func (s *LookupResourcesOutputBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LookupResourcesOutputBody) SetPermission

func (s *LookupResourcesOutputBody) SetPermission(val OptString)

SetPermission sets the value of Permission.

func (*LookupResourcesOutputBody) SetResourceIds

func (s *LookupResourcesOutputBody) SetResourceIds(val []string)

SetResourceIds sets the value of ResourceIds.

func (*LookupResourcesOutputBody) SetResourceType

func (s *LookupResourcesOutputBody) SetResourceType(val string)

SetResourceType sets the value of ResourceType.

func (*LookupResourcesOutputBody) SetResources

func (s *LookupResourcesOutputBody) SetResources(val []ResourceAccess)

SetResources sets the value of Resources.

func (*LookupResourcesOutputBody) SetSchema

func (s *LookupResourcesOutputBody) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*LookupResourcesOutputBody) UnmarshalJSON

func (s *LookupResourcesOutputBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LookupResourcesOutputBody) Validate

func (s *LookupResourcesOutputBody) Validate() error

type LookupResourcesParams

type LookupResourcesParams struct {
	// SpiceDB resource type (e.g. "repo", "project", "org").
	ResourceType string
	// Optional: only list resources where the caller has this permission.
	Permission OptString `json:",omitempty,omitzero"`
}

LookupResourcesParams is parameters of lookupResources operation.

type MeAuth

type MeAuth struct {
	Provider       string `json:"provider"`
	ProviderUserId string `json:"providerUserId"`
}

Ref: #/components/schemas/MeAuth

func (*MeAuth) Decode

func (s *MeAuth) Decode(d *jx.Decoder) error

Decode decodes MeAuth from json.

func (*MeAuth) Encode

func (s *MeAuth) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MeAuth) GetProvider

func (s *MeAuth) GetProvider() string

GetProvider returns the value of Provider.

func (*MeAuth) GetProviderUserId

func (s *MeAuth) GetProviderUserId() string

GetProviderUserId returns the value of ProviderUserId.

func (*MeAuth) MarshalJSON

func (s *MeAuth) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MeAuth) SetProvider

func (s *MeAuth) SetProvider(val string)

SetProvider sets the value of Provider.

func (*MeAuth) SetProviderUserId

func (s *MeAuth) SetProviderUserId(val string)

SetProviderUserId sets the value of ProviderUserId.

func (*MeAuth) UnmarshalJSON

func (s *MeAuth) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MeGlobal

type MeGlobal struct {
	AccountId        string             `json:"accountId"`
	AvatarUrl        OptString          `json:"avatarUrl"`
	Handle           OptString          `json:"handle"`
	Handles          []MeIdentityHandle `json:"handles"`
	HomeJurisdiction OptString          `json:"homeJurisdiction"`
}

Ref: #/components/schemas/MeGlobal

func (*MeGlobal) Decode

func (s *MeGlobal) Decode(d *jx.Decoder) error

Decode decodes MeGlobal from json.

func (*MeGlobal) Encode

func (s *MeGlobal) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MeGlobal) GetAccountId

func (s *MeGlobal) GetAccountId() string

GetAccountId returns the value of AccountId.

func (*MeGlobal) GetAvatarUrl

func (s *MeGlobal) GetAvatarUrl() OptString

GetAvatarUrl returns the value of AvatarUrl.

func (*MeGlobal) GetHandle

func (s *MeGlobal) GetHandle() OptString

GetHandle returns the value of Handle.

func (*MeGlobal) GetHandles

func (s *MeGlobal) GetHandles() []MeIdentityHandle

GetHandles returns the value of Handles.

func (*MeGlobal) GetHomeJurisdiction

func (s *MeGlobal) GetHomeJurisdiction() OptString

GetHomeJurisdiction returns the value of HomeJurisdiction.

func (*MeGlobal) MarshalJSON

func (s *MeGlobal) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MeGlobal) SetAccountId

func (s *MeGlobal) SetAccountId(val string)

SetAccountId sets the value of AccountId.

func (*MeGlobal) SetAvatarUrl

func (s *MeGlobal) SetAvatarUrl(val OptString)

SetAvatarUrl sets the value of AvatarUrl.

func (*MeGlobal) SetHandle

func (s *MeGlobal) SetHandle(val OptString)

SetHandle sets the value of Handle.

func (*MeGlobal) SetHandles

func (s *MeGlobal) SetHandles(val []MeIdentityHandle)

SetHandles sets the value of Handles.

func (*MeGlobal) SetHomeJurisdiction

func (s *MeGlobal) SetHomeJurisdiction(val OptString)

SetHomeJurisdiction sets the value of HomeJurisdiction.

func (*MeGlobal) UnmarshalJSON

func (s *MeGlobal) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MeGlobal) Validate

func (s *MeGlobal) Validate() error

type MeIdentityHandle

type MeIdentityHandle struct {
	Handle         string `json:"handle"`
	Provider       string `json:"provider"`
	ProviderUserId string `json:"providerUserId"`
}

Ref: #/components/schemas/MeIdentityHandle

func (*MeIdentityHandle) Decode

func (s *MeIdentityHandle) Decode(d *jx.Decoder) error

Decode decodes MeIdentityHandle from json.

func (*MeIdentityHandle) Encode

func (s *MeIdentityHandle) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MeIdentityHandle) GetHandle

func (s *MeIdentityHandle) GetHandle() string

GetHandle returns the value of Handle.

func (*MeIdentityHandle) GetProvider

func (s *MeIdentityHandle) GetProvider() string

GetProvider returns the value of Provider.

func (*MeIdentityHandle) GetProviderUserId

func (s *MeIdentityHandle) GetProviderUserId() string

GetProviderUserId returns the value of ProviderUserId.

func (*MeIdentityHandle) MarshalJSON

func (s *MeIdentityHandle) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MeIdentityHandle) SetHandle

func (s *MeIdentityHandle) SetHandle(val string)

SetHandle sets the value of Handle.

func (*MeIdentityHandle) SetProvider

func (s *MeIdentityHandle) SetProvider(val string)

SetProvider sets the value of Provider.

func (*MeIdentityHandle) SetProviderUserId

func (s *MeIdentityHandle) SetProviderUserId(val string)

SetProviderUserId sets the value of ProviderUserId.

func (*MeIdentityHandle) UnmarshalJSON

func (s *MeIdentityHandle) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MeRegional

type MeRegional struct {
	Bio         OptString `json:"bio"`
	Company     OptString `json:"company"`
	DisplayName OptString `json:"displayName"`
	Email       OptString `json:"email"`
	Location    OptString `json:"location"`
}

Ref: #/components/schemas/MeRegional

func (*MeRegional) Decode

func (s *MeRegional) Decode(d *jx.Decoder) error

Decode decodes MeRegional from json.

func (*MeRegional) Encode

func (s *MeRegional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MeRegional) GetBio

func (s *MeRegional) GetBio() OptString

GetBio returns the value of Bio.

func (*MeRegional) GetCompany

func (s *MeRegional) GetCompany() OptString

GetCompany returns the value of Company.

func (*MeRegional) GetDisplayName

func (s *MeRegional) GetDisplayName() OptString

GetDisplayName returns the value of DisplayName.

func (*MeRegional) GetEmail

func (s *MeRegional) GetEmail() OptString

GetEmail returns the value of Email.

func (*MeRegional) GetLocation

func (s *MeRegional) GetLocation() OptString

GetLocation returns the value of Location.

func (*MeRegional) MarshalJSON

func (s *MeRegional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MeRegional) SetBio

func (s *MeRegional) SetBio(val OptString)

SetBio sets the value of Bio.

func (*MeRegional) SetCompany

func (s *MeRegional) SetCompany(val OptString)

SetCompany sets the value of Company.

func (*MeRegional) SetDisplayName

func (s *MeRegional) SetDisplayName(val OptString)

SetDisplayName sets the value of DisplayName.

func (*MeRegional) SetEmail

func (s *MeRegional) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*MeRegional) SetLocation

func (s *MeRegional) SetLocation(val OptString)

SetLocation sets the value of Location.

func (*MeRegional) UnmarshalJSON

func (s *MeRegional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MeRegionalUnavailable

type MeRegionalUnavailable struct {
	// Always 'foreign_jurisdiction'. Discriminator for client-side state machines.
	Error MeRegionalUnavailableError `json:"error"`
	// Deep link into the home console for this account.
	HomeCoreUrl string `json:"homeCoreUrl"`
	// The account's home jurisdiction (e.g. 'us', 'eu').
	Jurisdiction string `json:"jurisdiction"`
	// Human-readable copy ready to surface in a UI.
	Message string `json:"message"`
}

Ref: #/components/schemas/MeRegionalUnavailable

func (*MeRegionalUnavailable) Decode

func (s *MeRegionalUnavailable) Decode(d *jx.Decoder) error

Decode decodes MeRegionalUnavailable from json.

func (*MeRegionalUnavailable) Encode

func (s *MeRegionalUnavailable) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MeRegionalUnavailable) GetError

GetError returns the value of Error.

func (*MeRegionalUnavailable) GetHomeCoreUrl

func (s *MeRegionalUnavailable) GetHomeCoreUrl() string

GetHomeCoreUrl returns the value of HomeCoreUrl.

func (*MeRegionalUnavailable) GetJurisdiction

func (s *MeRegionalUnavailable) GetJurisdiction() string

GetJurisdiction returns the value of Jurisdiction.

func (*MeRegionalUnavailable) GetMessage

func (s *MeRegionalUnavailable) GetMessage() string

GetMessage returns the value of Message.

func (*MeRegionalUnavailable) MarshalJSON

func (s *MeRegionalUnavailable) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MeRegionalUnavailable) SetError

SetError sets the value of Error.

func (*MeRegionalUnavailable) SetHomeCoreUrl

func (s *MeRegionalUnavailable) SetHomeCoreUrl(val string)

SetHomeCoreUrl sets the value of HomeCoreUrl.

func (*MeRegionalUnavailable) SetJurisdiction

func (s *MeRegionalUnavailable) SetJurisdiction(val string)

SetJurisdiction sets the value of Jurisdiction.

func (*MeRegionalUnavailable) SetMessage

func (s *MeRegionalUnavailable) SetMessage(val string)

SetMessage sets the value of Message.

func (*MeRegionalUnavailable) UnmarshalJSON

func (s *MeRegionalUnavailable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MeRegionalUnavailable) Validate

func (s *MeRegionalUnavailable) Validate() error

type MeRegionalUnavailableError

type MeRegionalUnavailableError string

Always 'foreign_jurisdiction'. Discriminator for client-side state machines.

const (
	MeRegionalUnavailableErrorForeignJurisdiction MeRegionalUnavailableError = "foreign_jurisdiction"
)

func (MeRegionalUnavailableError) AllValues

AllValues returns all MeRegionalUnavailableError values.

func (*MeRegionalUnavailableError) Decode

Decode decodes MeRegionalUnavailableError from json.

func (MeRegionalUnavailableError) Encode

func (s MeRegionalUnavailableError) Encode(e *jx.Encoder)

Encode encodes MeRegionalUnavailableError as json.

func (MeRegionalUnavailableError) MarshalJSON

func (s MeRegionalUnavailableError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (MeRegionalUnavailableError) MarshalText

func (s MeRegionalUnavailableError) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*MeRegionalUnavailableError) UnmarshalJSON

func (s *MeRegionalUnavailableError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MeRegionalUnavailableError) UnmarshalText

func (s *MeRegionalUnavailableError) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (MeRegionalUnavailableError) Validate

func (s MeRegionalUnavailableError) Validate() error

type Membership

type Membership struct {
	// A URL to the JSON Schema for this object.
	Schema                OptURI    `json:"$schema"`
	AccountId             string    `json:"accountId"`
	CreatedAt             time.Time `json:"createdAt"`
	ID                    string    `json:"id"`
	OrgId                 string    `json:"orgId"`
	Role                  string    `json:"role"`
	Status                string    `json:"status"`
	WorkosOrgMembershipId OptString `json:"workosOrgMembershipId"`
}

Ref: #/components/schemas/Membership

func (*Membership) Decode

func (s *Membership) Decode(d *jx.Decoder) error

Decode decodes Membership from json.

func (*Membership) Encode

func (s *Membership) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Membership) GetAccountId

func (s *Membership) GetAccountId() string

GetAccountId returns the value of AccountId.

func (*Membership) GetCreatedAt

func (s *Membership) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Membership) GetID

func (s *Membership) GetID() string

GetID returns the value of ID.

func (*Membership) GetOrgId

func (s *Membership) GetOrgId() string

GetOrgId returns the value of OrgId.

func (*Membership) GetRole

func (s *Membership) GetRole() string

GetRole returns the value of Role.

func (*Membership) GetSchema

func (s *Membership) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*Membership) GetStatus

func (s *Membership) GetStatus() string

GetStatus returns the value of Status.

func (*Membership) GetWorkosOrgMembershipId

func (s *Membership) GetWorkosOrgMembershipId() OptString

GetWorkosOrgMembershipId returns the value of WorkosOrgMembershipId.

func (*Membership) MarshalJSON

func (s *Membership) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Membership) SetAccountId

func (s *Membership) SetAccountId(val string)

SetAccountId sets the value of AccountId.

func (*Membership) SetCreatedAt

func (s *Membership) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Membership) SetID

func (s *Membership) SetID(val string)

SetID sets the value of ID.

func (*Membership) SetOrgId

func (s *Membership) SetOrgId(val string)

SetOrgId sets the value of OrgId.

func (*Membership) SetRole

func (s *Membership) SetRole(val string)

SetRole sets the value of Role.

func (*Membership) SetSchema

func (s *Membership) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*Membership) SetStatus

func (s *Membership) SetStatus(val string)

SetStatus sets the value of Status.

func (*Membership) SetWorkosOrgMembershipId

func (s *Membership) SetWorkosOrgMembershipId(val OptString)

SetWorkosOrgMembershipId sets the value of WorkosOrgMembershipId.

func (*Membership) UnmarshalJSON

func (s *Membership) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Mirror

type Mirror struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// Public host of the cluster serving this mirror.
	ClusterHost    string      `json:"clusterHost"`
	CreatedAt      time.Time   `json:"createdAt"`
	InstallationId OptInt64    `json:"installationId"`
	IsArchived     OptBool     `json:"isArchived"`
	IsPrivate      OptBool     `json:"isPrivate"`
	Jurisdiction   OptString   `json:"jurisdiction"`
	MirrorId       string      `json:"mirrorId"`
	Owner          string      `json:"owner"`
	Provider       string      `json:"provider"`
	Repo           string      `json:"repo"`
	SuspendedAt    OptDateTime `json:"suspendedAt"`
}

Ref: #/components/schemas/Mirror

func (*Mirror) Decode

func (s *Mirror) Decode(d *jx.Decoder) error

Decode decodes Mirror from json.

func (*Mirror) Encode

func (s *Mirror) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Mirror) GetClusterHost

func (s *Mirror) GetClusterHost() string

GetClusterHost returns the value of ClusterHost.

func (*Mirror) GetCreatedAt

func (s *Mirror) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Mirror) GetInstallationId

func (s *Mirror) GetInstallationId() OptInt64

GetInstallationId returns the value of InstallationId.

func (*Mirror) GetIsArchived

func (s *Mirror) GetIsArchived() OptBool

GetIsArchived returns the value of IsArchived.

func (*Mirror) GetIsPrivate

func (s *Mirror) GetIsPrivate() OptBool

GetIsPrivate returns the value of IsPrivate.

func (*Mirror) GetJurisdiction

func (s *Mirror) GetJurisdiction() OptString

GetJurisdiction returns the value of Jurisdiction.

func (*Mirror) GetMirrorId

func (s *Mirror) GetMirrorId() string

GetMirrorId returns the value of MirrorId.

func (*Mirror) GetOwner

func (s *Mirror) GetOwner() string

GetOwner returns the value of Owner.

func (*Mirror) GetProvider

func (s *Mirror) GetProvider() string

GetProvider returns the value of Provider.

func (*Mirror) GetRepo

func (s *Mirror) GetRepo() string

GetRepo returns the value of Repo.

func (*Mirror) GetSchema

func (s *Mirror) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*Mirror) GetSuspendedAt

func (s *Mirror) GetSuspendedAt() OptDateTime

GetSuspendedAt returns the value of SuspendedAt.

func (*Mirror) MarshalJSON

func (s *Mirror) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Mirror) SetClusterHost

func (s *Mirror) SetClusterHost(val string)

SetClusterHost sets the value of ClusterHost.

func (*Mirror) SetCreatedAt

func (s *Mirror) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Mirror) SetInstallationId

func (s *Mirror) SetInstallationId(val OptInt64)

SetInstallationId sets the value of InstallationId.

func (*Mirror) SetIsArchived

func (s *Mirror) SetIsArchived(val OptBool)

SetIsArchived sets the value of IsArchived.

func (*Mirror) SetIsPrivate

func (s *Mirror) SetIsPrivate(val OptBool)

SetIsPrivate sets the value of IsPrivate.

func (*Mirror) SetJurisdiction

func (s *Mirror) SetJurisdiction(val OptString)

SetJurisdiction sets the value of Jurisdiction.

func (*Mirror) SetMirrorId

func (s *Mirror) SetMirrorId(val string)

SetMirrorId sets the value of MirrorId.

func (*Mirror) SetOwner

func (s *Mirror) SetOwner(val string)

SetOwner sets the value of Owner.

func (*Mirror) SetProvider

func (s *Mirror) SetProvider(val string)

SetProvider sets the value of Provider.

func (*Mirror) SetRepo

func (s *Mirror) SetRepo(val string)

SetRepo sets the value of Repo.

func (*Mirror) SetSchema

func (s *Mirror) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*Mirror) SetSuspendedAt

func (s *Mirror) SetSuspendedAt(val OptDateTime)

SetSuspendedAt sets the value of SuspendedAt.

func (*Mirror) UnmarshalJSON

func (s *Mirror) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OIDCProvider

type OIDCProvider struct {
	Description OptString `json:"description"`
	DisplayName OptString `json:"displayName"`
	ID          string    `json:"id"`
	Issuer      string    `json:"issuer"`
}

Ref: #/components/schemas/OIDCProvider

func (*OIDCProvider) Decode

func (s *OIDCProvider) Decode(d *jx.Decoder) error

Decode decodes OIDCProvider from json.

func (*OIDCProvider) Encode

func (s *OIDCProvider) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OIDCProvider) GetDescription

func (s *OIDCProvider) GetDescription() OptString

GetDescription returns the value of Description.

func (*OIDCProvider) GetDisplayName

func (s *OIDCProvider) GetDisplayName() OptString

GetDisplayName returns the value of DisplayName.

func (*OIDCProvider) GetID

func (s *OIDCProvider) GetID() string

GetID returns the value of ID.

func (*OIDCProvider) GetIssuer

func (s *OIDCProvider) GetIssuer() string

GetIssuer returns the value of Issuer.

func (*OIDCProvider) MarshalJSON

func (s *OIDCProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OIDCProvider) SetDescription

func (s *OIDCProvider) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*OIDCProvider) SetDisplayName

func (s *OIDCProvider) SetDisplayName(val OptString)

SetDisplayName sets the value of DisplayName.

func (*OIDCProvider) SetID

func (s *OIDCProvider) SetID(val string)

SetID sets the value of ID.

func (*OIDCProvider) SetIssuer

func (s *OIDCProvider) SetIssuer(val string)

SetIssuer sets the value of Issuer.

func (*OIDCProvider) UnmarshalJSON

func (s *OIDCProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	AddOrgMemberOperation                  OperationName = "AddOrgMember"
	BatchLookupOperation                   OperationName = "BatchLookup"
	CreateBindingOperation                 OperationName = "CreateBinding"
	CreateMirrorOperation                  OperationName = "CreateMirror"
	CreateOrgOperation                     OperationName = "CreateOrg"
	CreateProjectOperation                 OperationName = "CreateProject"
	CreateRepoOperation                    OperationName = "CreateRepo"
	CreateServiceAccountOperation          OperationName = "CreateServiceAccount"
	DeleteBindingOperation                 OperationName = "DeleteBinding"
	DeleteMirrorOperation                  OperationName = "DeleteMirror"
	DeleteRepoOperation                    OperationName = "DeleteRepo"
	DeleteServiceAccountOperation          OperationName = "DeleteServiceAccount"
	GetMeOperation                         OperationName = "GetMe"
	GetMirrorOperation                     OperationName = "GetMirror"
	GetPermissionsOperation                OperationName = "GetPermissions"
	GetRepoOperation                       OperationName = "GetRepo"
	GetServiceAccountOperation             OperationName = "GetServiceAccount"
	GrantProjectAccessOperation            OperationName = "GrantProjectAccess"
	GrantRepoAccessOperation               OperationName = "GrantRepoAccess"
	GrantServiceAccountAccessOperation     OperationName = "GrantServiceAccountAccess"
	ListAuditEventsOperation               OperationName = "ListAuditEvents"
	ListBindingsOperation                  OperationName = "ListBindings"
	ListMirrorsOperation                   OperationName = "ListMirrors"
	ListOIDCProvidersOperation             OperationName = "ListOIDCProviders"
	ListOrgMembersOperation                OperationName = "ListOrgMembers"
	ListOrgProjectsOperation               OperationName = "ListOrgProjects"
	ListOrgsOperation                      OperationName = "ListOrgs"
	ListProjectMembersOperation            OperationName = "ListProjectMembers"
	ListProjectReposOperation              OperationName = "ListProjectRepos"
	ListProjectsOperation                  OperationName = "ListProjects"
	ListServiceAccountGrantsOperation      OperationName = "ListServiceAccountGrants"
	ListServiceAccountsOperation           OperationName = "ListServiceAccounts"
	LookupResourcesOperation               OperationName = "LookupResources"
	RemoveOrgMemberOperation               OperationName = "RemoveOrgMember"
	ResolveHandleOperation                 OperationName = "ResolveHandle"
	RevokeProjectAccessOperation           OperationName = "RevokeProjectAccess"
	RevokeProjectAccessByProviderOperation OperationName = "RevokeProjectAccessByProvider"
	RevokeServiceAccountAccessOperation    OperationName = "RevokeServiceAccountAccess"
)

type OptAddOrgMemberInputBodyRole

type OptAddOrgMemberInputBodyRole struct {
	Value AddOrgMemberInputBodyRole
	Set   bool
}

OptAddOrgMemberInputBodyRole is optional AddOrgMemberInputBodyRole.

func NewOptAddOrgMemberInputBodyRole

func NewOptAddOrgMemberInputBodyRole(v AddOrgMemberInputBodyRole) OptAddOrgMemberInputBodyRole

NewOptAddOrgMemberInputBodyRole returns new OptAddOrgMemberInputBodyRole with value set to v.

func (*OptAddOrgMemberInputBodyRole) Decode

Decode decodes AddOrgMemberInputBodyRole from json.

func (OptAddOrgMemberInputBodyRole) Encode

Encode encodes AddOrgMemberInputBodyRole as json.

func (OptAddOrgMemberInputBodyRole) Get

Get returns value and boolean that denotes whether value was set.

func (OptAddOrgMemberInputBodyRole) IsSet

IsSet returns true if OptAddOrgMemberInputBodyRole was set.

func (OptAddOrgMemberInputBodyRole) MarshalJSON

func (s OptAddOrgMemberInputBodyRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAddOrgMemberInputBodyRole) Or

Or returns value if set, or given parameter if does not.

func (*OptAddOrgMemberInputBodyRole) Reset

func (o *OptAddOrgMemberInputBodyRole) Reset()

Reset unsets value.

func (*OptAddOrgMemberInputBodyRole) SetTo

SetTo sets value to v.

func (*OptAddOrgMemberInputBodyRole) UnmarshalJSON

func (s *OptAddOrgMemberInputBodyRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAuditEventMetadata

type OptAuditEventMetadata struct {
	Value AuditEventMetadata
	Set   bool
}

OptAuditEventMetadata is optional AuditEventMetadata.

func NewOptAuditEventMetadata

func NewOptAuditEventMetadata(v AuditEventMetadata) OptAuditEventMetadata

NewOptAuditEventMetadata returns new OptAuditEventMetadata with value set to v.

func (*OptAuditEventMetadata) Decode

func (o *OptAuditEventMetadata) Decode(d *jx.Decoder) error

Decode decodes AuditEventMetadata from json.

func (OptAuditEventMetadata) Encode

func (o OptAuditEventMetadata) Encode(e *jx.Encoder)

Encode encodes AuditEventMetadata as json.

func (OptAuditEventMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptAuditEventMetadata) IsSet

func (o OptAuditEventMetadata) IsSet() bool

IsSet returns true if OptAuditEventMetadata was set.

func (OptAuditEventMetadata) MarshalJSON

func (s OptAuditEventMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAuditEventMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptAuditEventMetadata) Reset

func (o *OptAuditEventMetadata) Reset()

Reset unsets value.

func (*OptAuditEventMetadata) SetTo

SetTo sets value to v.

func (*OptAuditEventMetadata) UnmarshalJSON

func (s *OptAuditEventMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateRepoInputBodyObjectFormat

type OptCreateRepoInputBodyObjectFormat struct {
	Value CreateRepoInputBodyObjectFormat
	Set   bool
}

OptCreateRepoInputBodyObjectFormat is optional CreateRepoInputBodyObjectFormat.

func NewOptCreateRepoInputBodyObjectFormat

func NewOptCreateRepoInputBodyObjectFormat(v CreateRepoInputBodyObjectFormat) OptCreateRepoInputBodyObjectFormat

NewOptCreateRepoInputBodyObjectFormat returns new OptCreateRepoInputBodyObjectFormat with value set to v.

func (*OptCreateRepoInputBodyObjectFormat) Decode

Decode decodes CreateRepoInputBodyObjectFormat from json.

func (OptCreateRepoInputBodyObjectFormat) Encode

Encode encodes CreateRepoInputBodyObjectFormat as json.

func (OptCreateRepoInputBodyObjectFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateRepoInputBodyObjectFormat) IsSet

IsSet returns true if OptCreateRepoInputBodyObjectFormat was set.

func (OptCreateRepoInputBodyObjectFormat) MarshalJSON

func (s OptCreateRepoInputBodyObjectFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateRepoInputBodyObjectFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateRepoInputBodyObjectFormat) Reset

Reset unsets value.

func (*OptCreateRepoInputBodyObjectFormat) SetTo

SetTo sets value to v.

func (*OptCreateRepoInputBodyObjectFormat) UnmarshalJSON

func (s *OptCreateRepoInputBodyObjectFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetMeOutputBodyMode

type OptGetMeOutputBodyMode struct {
	Value GetMeOutputBodyMode
	Set   bool
}

OptGetMeOutputBodyMode is optional GetMeOutputBodyMode.

func NewOptGetMeOutputBodyMode

func NewOptGetMeOutputBodyMode(v GetMeOutputBodyMode) OptGetMeOutputBodyMode

NewOptGetMeOutputBodyMode returns new OptGetMeOutputBodyMode with value set to v.

func (*OptGetMeOutputBodyMode) Decode

func (o *OptGetMeOutputBodyMode) Decode(d *jx.Decoder) error

Decode decodes GetMeOutputBodyMode from json.

func (OptGetMeOutputBodyMode) Encode

func (o OptGetMeOutputBodyMode) Encode(e *jx.Encoder)

Encode encodes GetMeOutputBodyMode as json.

func (OptGetMeOutputBodyMode) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetMeOutputBodyMode) IsSet

func (o OptGetMeOutputBodyMode) IsSet() bool

IsSet returns true if OptGetMeOutputBodyMode was set.

func (OptGetMeOutputBodyMode) MarshalJSON

func (s OptGetMeOutputBodyMode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetMeOutputBodyMode) Or

Or returns value if set, or given parameter if does not.

func (*OptGetMeOutputBodyMode) Reset

func (o *OptGetMeOutputBodyMode) Reset()

Reset unsets value.

func (*OptGetMeOutputBodyMode) SetTo

SetTo sets value to v.

func (*OptGetMeOutputBodyMode) UnmarshalJSON

func (s *OptGetMeOutputBodyMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetPermissionsOutputBodyExplain

type OptGetPermissionsOutputBodyExplain struct {
	Value GetPermissionsOutputBodyExplain
	Set   bool
}

OptGetPermissionsOutputBodyExplain is optional GetPermissionsOutputBodyExplain.

func NewOptGetPermissionsOutputBodyExplain

func NewOptGetPermissionsOutputBodyExplain(v GetPermissionsOutputBodyExplain) OptGetPermissionsOutputBodyExplain

NewOptGetPermissionsOutputBodyExplain returns new OptGetPermissionsOutputBodyExplain with value set to v.

func (*OptGetPermissionsOutputBodyExplain) Decode

Decode decodes GetPermissionsOutputBodyExplain from json.

func (OptGetPermissionsOutputBodyExplain) Encode

Encode encodes GetPermissionsOutputBodyExplain as json.

func (OptGetPermissionsOutputBodyExplain) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetPermissionsOutputBodyExplain) IsSet

IsSet returns true if OptGetPermissionsOutputBodyExplain was set.

func (OptGetPermissionsOutputBodyExplain) MarshalJSON

func (s OptGetPermissionsOutputBodyExplain) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetPermissionsOutputBodyExplain) Or

Or returns value if set, or given parameter if does not.

func (*OptGetPermissionsOutputBodyExplain) Reset

Reset unsets value.

func (*OptGetPermissionsOutputBodyExplain) SetTo

SetTo sets value to v.

func (*OptGetPermissionsOutputBodyExplain) UnmarshalJSON

func (s *OptGetPermissionsOutputBodyExplain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGrantProjectAccessInputBodyGranteeType

type OptGrantProjectAccessInputBodyGranteeType struct {
	Value GrantProjectAccessInputBodyGranteeType
	Set   bool
}

OptGrantProjectAccessInputBodyGranteeType is optional GrantProjectAccessInputBodyGranteeType.

func NewOptGrantProjectAccessInputBodyGranteeType

func NewOptGrantProjectAccessInputBodyGranteeType(v GrantProjectAccessInputBodyGranteeType) OptGrantProjectAccessInputBodyGranteeType

NewOptGrantProjectAccessInputBodyGranteeType returns new OptGrantProjectAccessInputBodyGranteeType with value set to v.

func (*OptGrantProjectAccessInputBodyGranteeType) Decode

Decode decodes GrantProjectAccessInputBodyGranteeType from json.

func (OptGrantProjectAccessInputBodyGranteeType) Encode

Encode encodes GrantProjectAccessInputBodyGranteeType as json.

func (OptGrantProjectAccessInputBodyGranteeType) Get

Get returns value and boolean that denotes whether value was set.

func (OptGrantProjectAccessInputBodyGranteeType) IsSet

IsSet returns true if OptGrantProjectAccessInputBodyGranteeType was set.

func (OptGrantProjectAccessInputBodyGranteeType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptGrantProjectAccessInputBodyGranteeType) Or

Or returns value if set, or given parameter if does not.

func (*OptGrantProjectAccessInputBodyGranteeType) Reset

Reset unsets value.

func (*OptGrantProjectAccessInputBodyGranteeType) SetTo

SetTo sets value to v.

func (*OptGrantProjectAccessInputBodyGranteeType) UnmarshalJSON

func (s *OptGrantProjectAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGrantRepoAccessInputBodyGranteeType

type OptGrantRepoAccessInputBodyGranteeType struct {
	Value GrantRepoAccessInputBodyGranteeType
	Set   bool
}

OptGrantRepoAccessInputBodyGranteeType is optional GrantRepoAccessInputBodyGranteeType.

func NewOptGrantRepoAccessInputBodyGranteeType

func NewOptGrantRepoAccessInputBodyGranteeType(v GrantRepoAccessInputBodyGranteeType) OptGrantRepoAccessInputBodyGranteeType

NewOptGrantRepoAccessInputBodyGranteeType returns new OptGrantRepoAccessInputBodyGranteeType with value set to v.

func (*OptGrantRepoAccessInputBodyGranteeType) Decode

Decode decodes GrantRepoAccessInputBodyGranteeType from json.

func (OptGrantRepoAccessInputBodyGranteeType) Encode

Encode encodes GrantRepoAccessInputBodyGranteeType as json.

func (OptGrantRepoAccessInputBodyGranteeType) Get

Get returns value and boolean that denotes whether value was set.

func (OptGrantRepoAccessInputBodyGranteeType) IsSet

IsSet returns true if OptGrantRepoAccessInputBodyGranteeType was set.

func (OptGrantRepoAccessInputBodyGranteeType) MarshalJSON

func (s OptGrantRepoAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGrantRepoAccessInputBodyGranteeType) Or

Or returns value if set, or given parameter if does not.

func (*OptGrantRepoAccessInputBodyGranteeType) Reset

Reset unsets value.

func (*OptGrantRepoAccessInputBodyGranteeType) SetTo

SetTo sets value to v.

func (*OptGrantRepoAccessInputBodyGranteeType) UnmarshalJSON

func (s *OptGrantRepoAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLookupRefResultOwnerType

type OptLookupRefResultOwnerType struct {
	Value LookupRefResultOwnerType
	Set   bool
}

OptLookupRefResultOwnerType is optional LookupRefResultOwnerType.

func NewOptLookupRefResultOwnerType

func NewOptLookupRefResultOwnerType(v LookupRefResultOwnerType) OptLookupRefResultOwnerType

NewOptLookupRefResultOwnerType returns new OptLookupRefResultOwnerType with value set to v.

func (*OptLookupRefResultOwnerType) Decode

Decode decodes LookupRefResultOwnerType from json.

func (OptLookupRefResultOwnerType) Encode

func (o OptLookupRefResultOwnerType) Encode(e *jx.Encoder)

Encode encodes LookupRefResultOwnerType as json.

func (OptLookupRefResultOwnerType) Get

Get returns value and boolean that denotes whether value was set.

func (OptLookupRefResultOwnerType) IsSet

IsSet returns true if OptLookupRefResultOwnerType was set.

func (OptLookupRefResultOwnerType) MarshalJSON

func (s OptLookupRefResultOwnerType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLookupRefResultOwnerType) Or

Or returns value if set, or given parameter if does not.

func (*OptLookupRefResultOwnerType) Reset

func (o *OptLookupRefResultOwnerType) Reset()

Reset unsets value.

func (*OptLookupRefResultOwnerType) SetTo

SetTo sets value to v.

func (*OptLookupRefResultOwnerType) UnmarshalJSON

func (s *OptLookupRefResultOwnerType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMeRegional

type OptMeRegional struct {
	Value MeRegional
	Set   bool
}

OptMeRegional is optional MeRegional.

func NewOptMeRegional

func NewOptMeRegional(v MeRegional) OptMeRegional

NewOptMeRegional returns new OptMeRegional with value set to v.

func (*OptMeRegional) Decode

func (o *OptMeRegional) Decode(d *jx.Decoder) error

Decode decodes MeRegional from json.

func (OptMeRegional) Encode

func (o OptMeRegional) Encode(e *jx.Encoder)

Encode encodes MeRegional as json.

func (OptMeRegional) Get

func (o OptMeRegional) Get() (v MeRegional, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMeRegional) IsSet

func (o OptMeRegional) IsSet() bool

IsSet returns true if OptMeRegional was set.

func (OptMeRegional) MarshalJSON

func (s OptMeRegional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMeRegional) Or

Or returns value if set, or given parameter if does not.

func (*OptMeRegional) Reset

func (o *OptMeRegional) Reset()

Reset unsets value.

func (*OptMeRegional) SetTo

func (o *OptMeRegional) SetTo(v MeRegional)

SetTo sets value to v.

func (*OptMeRegional) UnmarshalJSON

func (s *OptMeRegional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMeRegionalUnavailable

type OptMeRegionalUnavailable struct {
	Value MeRegionalUnavailable
	Set   bool
}

OptMeRegionalUnavailable is optional MeRegionalUnavailable.

func NewOptMeRegionalUnavailable

func NewOptMeRegionalUnavailable(v MeRegionalUnavailable) OptMeRegionalUnavailable

NewOptMeRegionalUnavailable returns new OptMeRegionalUnavailable with value set to v.

func (*OptMeRegionalUnavailable) Decode

func (o *OptMeRegionalUnavailable) Decode(d *jx.Decoder) error

Decode decodes MeRegionalUnavailable from json.

func (OptMeRegionalUnavailable) Encode

func (o OptMeRegionalUnavailable) Encode(e *jx.Encoder)

Encode encodes MeRegionalUnavailable as json.

func (OptMeRegionalUnavailable) Get

Get returns value and boolean that denotes whether value was set.

func (OptMeRegionalUnavailable) IsSet

func (o OptMeRegionalUnavailable) IsSet() bool

IsSet returns true if OptMeRegionalUnavailable was set.

func (OptMeRegionalUnavailable) MarshalJSON

func (s OptMeRegionalUnavailable) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMeRegionalUnavailable) Or

Or returns value if set, or given parameter if does not.

func (*OptMeRegionalUnavailable) Reset

func (o *OptMeRegionalUnavailable) Reset()

Reset unsets value.

func (*OptMeRegionalUnavailable) SetTo

SetTo sets value to v.

func (*OptMeRegionalUnavailable) UnmarshalJSON

func (s *OptMeRegionalUnavailable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptProject

type OptProject struct {
	Value Project
	Set   bool
}

OptProject is optional Project.

func NewOptProject

func NewOptProject(v Project) OptProject

NewOptProject returns new OptProject with value set to v.

func (*OptProject) Decode

func (o *OptProject) Decode(d *jx.Decoder) error

Decode decodes Project from json.

func (OptProject) Encode

func (o OptProject) Encode(e *jx.Encoder)

Encode encodes Project as json.

func (OptProject) Get

func (o OptProject) Get() (v Project, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptProject) IsSet

func (o OptProject) IsSet() bool

IsSet returns true if OptProject was set.

func (OptProject) MarshalJSON

func (s OptProject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptProject) Or

func (o OptProject) Or(d Project) Project

Or returns value if set, or given parameter if does not.

func (*OptProject) Reset

func (o *OptProject) Reset()

Reset unsets value.

func (*OptProject) SetTo

func (o *OptProject) SetTo(v Project)

SetTo sets value to v.

func (*OptProject) UnmarshalJSON

func (s *OptProject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRepoObjectFormat

type OptRepoObjectFormat struct {
	Value RepoObjectFormat
	Set   bool
}

OptRepoObjectFormat is optional RepoObjectFormat.

func NewOptRepoObjectFormat

func NewOptRepoObjectFormat(v RepoObjectFormat) OptRepoObjectFormat

NewOptRepoObjectFormat returns new OptRepoObjectFormat with value set to v.

func (*OptRepoObjectFormat) Decode

func (o *OptRepoObjectFormat) Decode(d *jx.Decoder) error

Decode decodes RepoObjectFormat from json.

func (OptRepoObjectFormat) Encode

func (o OptRepoObjectFormat) Encode(e *jx.Encoder)

Encode encodes RepoObjectFormat as json.

func (OptRepoObjectFormat) Get

func (o OptRepoObjectFormat) Get() (v RepoObjectFormat, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRepoObjectFormat) IsSet

func (o OptRepoObjectFormat) IsSet() bool

IsSet returns true if OptRepoObjectFormat was set.

func (OptRepoObjectFormat) MarshalJSON

func (s OptRepoObjectFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRepoObjectFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptRepoObjectFormat) Reset

func (o *OptRepoObjectFormat) Reset()

Reset unsets value.

func (*OptRepoObjectFormat) SetTo

SetTo sets value to v.

func (*OptRepoObjectFormat) UnmarshalJSON

func (s *OptRepoObjectFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRepoState

type OptRepoState struct {
	Value RepoState
	Set   bool
}

OptRepoState is optional RepoState.

func NewOptRepoState

func NewOptRepoState(v RepoState) OptRepoState

NewOptRepoState returns new OptRepoState with value set to v.

func (*OptRepoState) Decode

func (o *OptRepoState) Decode(d *jx.Decoder) error

Decode decodes RepoState from json.

func (OptRepoState) Encode

func (o OptRepoState) Encode(e *jx.Encoder)

Encode encodes RepoState as json.

func (OptRepoState) Get

func (o OptRepoState) Get() (v RepoState, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRepoState) IsSet

func (o OptRepoState) IsSet() bool

IsSet returns true if OptRepoState was set.

func (OptRepoState) MarshalJSON

func (s OptRepoState) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRepoState) Or

Or returns value if set, or given parameter if does not.

func (*OptRepoState) Reset

func (o *OptRepoState) Reset()

Reset unsets value.

func (*OptRepoState) SetTo

func (o *OptRepoState) SetTo(v RepoState)

SetTo sets value to v.

func (*OptRepoState) UnmarshalJSON

func (s *OptRepoState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptURI

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode

func (o *OptURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptURI) Encode

func (o OptURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptURI) Get

func (o OptURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptURI) IsSet

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) MarshalJSON

func (s OptURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptURI) Or

func (o OptURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptURI) Reset

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetTo

func (o *OptURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptURI) UnmarshalJSON

func (s *OptURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ClientOption
}

Option is config option.

type Org

type Org struct {
	// A URL to the JSON Schema for this object.
	Schema               OptURI    `json:"$schema"`
	CreatedAt            time.Time `json:"createdAt"`
	ID                   string    `json:"id"`
	Name                 string    `json:"name"`
	Region               string    `json:"region"`
	WorkosOrganizationId OptString `json:"workosOrganizationId"`
}

Ref: #/components/schemas/Org

func (*Org) Decode

func (s *Org) Decode(d *jx.Decoder) error

Decode decodes Org from json.

func (*Org) Encode

func (s *Org) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Org) GetCreatedAt

func (s *Org) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Org) GetID

func (s *Org) GetID() string

GetID returns the value of ID.

func (*Org) GetName

func (s *Org) GetName() string

GetName returns the value of Name.

func (*Org) GetRegion

func (s *Org) GetRegion() string

GetRegion returns the value of Region.

func (*Org) GetSchema

func (s *Org) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*Org) GetWorkosOrganizationId

func (s *Org) GetWorkosOrganizationId() OptString

GetWorkosOrganizationId returns the value of WorkosOrganizationId.

func (*Org) MarshalJSON

func (s *Org) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Org) SetCreatedAt

func (s *Org) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Org) SetID

func (s *Org) SetID(val string)

SetID sets the value of ID.

func (*Org) SetName

func (s *Org) SetName(val string)

SetName sets the value of Name.

func (*Org) SetRegion

func (s *Org) SetRegion(val string)

SetRegion sets the value of Region.

func (*Org) SetSchema

func (s *Org) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*Org) SetWorkosOrganizationId

func (s *Org) SetWorkosOrganizationId(val OptString)

SetWorkosOrganizationId sets the value of WorkosOrganizationId.

func (*Org) UnmarshalJSON

func (s *Org) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Project

type Project struct {
	// A URL to the JSON Schema for this object.
	Schema    OptURI           `json:"$schema"`
	CreatedAt time.Time        `json:"createdAt"`
	ID        string           `json:"id"`
	Name      string           `json:"name"`
	OwnerId   string           `json:"ownerId"`
	OwnerType ProjectOwnerType `json:"ownerType"`
	Region    string           `json:"region"`
}

Ref: #/components/schemas/Project

func (*Project) Decode

func (s *Project) Decode(d *jx.Decoder) error

Decode decodes Project from json.

func (*Project) Encode

func (s *Project) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Project) GetCreatedAt

func (s *Project) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Project) GetID

func (s *Project) GetID() string

GetID returns the value of ID.

func (*Project) GetName

func (s *Project) GetName() string

GetName returns the value of Name.

func (*Project) GetOwnerId

func (s *Project) GetOwnerId() string

GetOwnerId returns the value of OwnerId.

func (*Project) GetOwnerType

func (s *Project) GetOwnerType() ProjectOwnerType

GetOwnerType returns the value of OwnerType.

func (*Project) GetRegion

func (s *Project) GetRegion() string

GetRegion returns the value of Region.

func (*Project) GetSchema

func (s *Project) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*Project) MarshalJSON

func (s *Project) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Project) SetCreatedAt

func (s *Project) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Project) SetID

func (s *Project) SetID(val string)

SetID sets the value of ID.

func (*Project) SetName

func (s *Project) SetName(val string)

SetName sets the value of Name.

func (*Project) SetOwnerId

func (s *Project) SetOwnerId(val string)

SetOwnerId sets the value of OwnerId.

func (*Project) SetOwnerType

func (s *Project) SetOwnerType(val ProjectOwnerType)

SetOwnerType sets the value of OwnerType.

func (*Project) SetRegion

func (s *Project) SetRegion(val string)

SetRegion sets the value of Region.

func (*Project) SetSchema

func (s *Project) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*Project) UnmarshalJSON

func (s *Project) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Project) Validate

func (s *Project) Validate() error

type ProjectGrant

type ProjectGrant struct {
	GranteeId   string `json:"granteeId"`
	GranteeType string `json:"granteeType"`
	Role        string `json:"role"`
}

Ref: #/components/schemas/ProjectGrant

func (*ProjectGrant) Decode

func (s *ProjectGrant) Decode(d *jx.Decoder) error

Decode decodes ProjectGrant from json.

func (*ProjectGrant) Encode

func (s *ProjectGrant) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProjectGrant) GetGranteeId

func (s *ProjectGrant) GetGranteeId() string

GetGranteeId returns the value of GranteeId.

func (*ProjectGrant) GetGranteeType

func (s *ProjectGrant) GetGranteeType() string

GetGranteeType returns the value of GranteeType.

func (*ProjectGrant) GetRole

func (s *ProjectGrant) GetRole() string

GetRole returns the value of Role.

func (*ProjectGrant) MarshalJSON

func (s *ProjectGrant) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectGrant) SetGranteeId

func (s *ProjectGrant) SetGranteeId(val string)

SetGranteeId sets the value of GranteeId.

func (*ProjectGrant) SetGranteeType

func (s *ProjectGrant) SetGranteeType(val string)

SetGranteeType sets the value of GranteeType.

func (*ProjectGrant) SetRole

func (s *ProjectGrant) SetRole(val string)

SetRole sets the value of Role.

func (*ProjectGrant) UnmarshalJSON

func (s *ProjectGrant) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProjectOwnerType

type ProjectOwnerType string
const (
	ProjectOwnerTypeOrg     ProjectOwnerType = "org"
	ProjectOwnerTypeAccount ProjectOwnerType = "account"
)

func (ProjectOwnerType) AllValues

func (ProjectOwnerType) AllValues() []ProjectOwnerType

AllValues returns all ProjectOwnerType values.

func (*ProjectOwnerType) Decode

func (s *ProjectOwnerType) Decode(d *jx.Decoder) error

Decode decodes ProjectOwnerType from json.

func (ProjectOwnerType) Encode

func (s ProjectOwnerType) Encode(e *jx.Encoder)

Encode encodes ProjectOwnerType as json.

func (ProjectOwnerType) MarshalJSON

func (s ProjectOwnerType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectOwnerType) MarshalText

func (s ProjectOwnerType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectOwnerType) UnmarshalJSON

func (s *ProjectOwnerType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectOwnerType) UnmarshalText

func (s *ProjectOwnerType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectOwnerType) Validate

func (s ProjectOwnerType) Validate() error

type RemoveOrgMemberNoContent

type RemoveOrgMemberNoContent struct{}

RemoveOrgMemberNoContent is response for RemoveOrgMember operation.

type RemoveOrgMemberParams

type RemoveOrgMemberParams struct {
	OrgId          string
	Provider       string
	ProviderUserId string
}

RemoveOrgMemberParams is parameters of removeOrgMember operation.

type Repo

type Repo struct {
	// A URL to the JSON Schema for this object.
	Schema            OptURI              `json:"$schema"`
	ClusterHost       OptString           `json:"clusterHost"`
	Foreign           OptBool             `json:"foreign"`
	ID                string              `json:"id"`
	Name              string              `json:"name"`
	ObjectFormat      OptRepoObjectFormat `json:"objectFormat"`
	OwningProjectId   string              `json:"owningProjectId"`
	Path              OptString           `json:"path"`
	ProvisionAttempts OptInt64            `json:"provisionAttempts"`
	ProvisionReason   OptString           `json:"provisionReason"`
	State             OptRepoState        `json:"state"`
}

Ref: #/components/schemas/Repo

func (*Repo) Decode

func (s *Repo) Decode(d *jx.Decoder) error

Decode decodes Repo from json.

func (*Repo) Encode

func (s *Repo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Repo) GetClusterHost

func (s *Repo) GetClusterHost() OptString

GetClusterHost returns the value of ClusterHost.

func (*Repo) GetForeign

func (s *Repo) GetForeign() OptBool

GetForeign returns the value of Foreign.

func (*Repo) GetID

func (s *Repo) GetID() string

GetID returns the value of ID.

func (*Repo) GetName

func (s *Repo) GetName() string

GetName returns the value of Name.

func (*Repo) GetObjectFormat

func (s *Repo) GetObjectFormat() OptRepoObjectFormat

GetObjectFormat returns the value of ObjectFormat.

func (*Repo) GetOwningProjectId

func (s *Repo) GetOwningProjectId() string

GetOwningProjectId returns the value of OwningProjectId.

func (*Repo) GetPath

func (s *Repo) GetPath() OptString

GetPath returns the value of Path.

func (*Repo) GetProvisionAttempts

func (s *Repo) GetProvisionAttempts() OptInt64

GetProvisionAttempts returns the value of ProvisionAttempts.

func (*Repo) GetProvisionReason

func (s *Repo) GetProvisionReason() OptString

GetProvisionReason returns the value of ProvisionReason.

func (*Repo) GetSchema

func (s *Repo) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*Repo) GetState

func (s *Repo) GetState() OptRepoState

GetState returns the value of State.

func (*Repo) MarshalJSON

func (s *Repo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Repo) SetClusterHost

func (s *Repo) SetClusterHost(val OptString)

SetClusterHost sets the value of ClusterHost.

func (*Repo) SetForeign

func (s *Repo) SetForeign(val OptBool)

SetForeign sets the value of Foreign.

func (*Repo) SetID

func (s *Repo) SetID(val string)

SetID sets the value of ID.

func (*Repo) SetName

func (s *Repo) SetName(val string)

SetName sets the value of Name.

func (*Repo) SetObjectFormat

func (s *Repo) SetObjectFormat(val OptRepoObjectFormat)

SetObjectFormat sets the value of ObjectFormat.

func (*Repo) SetOwningProjectId

func (s *Repo) SetOwningProjectId(val string)

SetOwningProjectId sets the value of OwningProjectId.

func (*Repo) SetPath

func (s *Repo) SetPath(val OptString)

SetPath sets the value of Path.

func (*Repo) SetProvisionAttempts

func (s *Repo) SetProvisionAttempts(val OptInt64)

SetProvisionAttempts sets the value of ProvisionAttempts.

func (*Repo) SetProvisionReason

func (s *Repo) SetProvisionReason(val OptString)

SetProvisionReason sets the value of ProvisionReason.

func (*Repo) SetSchema

func (s *Repo) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*Repo) SetState

func (s *Repo) SetState(val OptRepoState)

SetState sets the value of State.

func (*Repo) UnmarshalJSON

func (s *Repo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Repo) Validate

func (s *Repo) Validate() error

type RepoObjectFormat

type RepoObjectFormat string
const (
	RepoObjectFormatSHA1   RepoObjectFormat = "sha1"
	RepoObjectFormatSHA256 RepoObjectFormat = "sha256"
)

func (RepoObjectFormat) AllValues

func (RepoObjectFormat) AllValues() []RepoObjectFormat

AllValues returns all RepoObjectFormat values.

func (*RepoObjectFormat) Decode

func (s *RepoObjectFormat) Decode(d *jx.Decoder) error

Decode decodes RepoObjectFormat from json.

func (RepoObjectFormat) Encode

func (s RepoObjectFormat) Encode(e *jx.Encoder)

Encode encodes RepoObjectFormat as json.

func (RepoObjectFormat) MarshalJSON

func (s RepoObjectFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RepoObjectFormat) MarshalText

func (s RepoObjectFormat) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RepoObjectFormat) UnmarshalJSON

func (s *RepoObjectFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RepoObjectFormat) UnmarshalText

func (s *RepoObjectFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RepoObjectFormat) Validate

func (s RepoObjectFormat) Validate() error

type RepoState

type RepoState string
const (
	RepoStateProvisioning RepoState = "provisioning"
	RepoStateActive       RepoState = "active"
	RepoStateFailed       RepoState = "failed"
)

func (RepoState) AllValues

func (RepoState) AllValues() []RepoState

AllValues returns all RepoState values.

func (*RepoState) Decode

func (s *RepoState) Decode(d *jx.Decoder) error

Decode decodes RepoState from json.

func (RepoState) Encode

func (s RepoState) Encode(e *jx.Encoder)

Encode encodes RepoState as json.

func (RepoState) MarshalJSON

func (s RepoState) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RepoState) MarshalText

func (s RepoState) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RepoState) UnmarshalJSON

func (s *RepoState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RepoState) UnmarshalText

func (s *RepoState) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RepoState) Validate

func (s RepoState) Validate() error

type ResolveHandleParams

type ResolveHandleParams struct {
	// IdP slug (e.g. "github").
	Provider string
	// User-visible handle at the provider.
	Handle string
}

ResolveHandleParams is parameters of resolveHandle operation.

type ResolvedIdentity

type ResolvedIdentity struct {
	// A URL to the JSON Schema for this object.
	Schema         OptURI `json:"$schema"`
	AccountId      string `json:"accountId"`
	Handle         string `json:"handle"`
	Provider       string `json:"provider"`
	ProviderUserId string `json:"providerUserId"`
}

Ref: #/components/schemas/ResolvedIdentity

func (*ResolvedIdentity) Decode

func (s *ResolvedIdentity) Decode(d *jx.Decoder) error

Decode decodes ResolvedIdentity from json.

func (*ResolvedIdentity) Encode

func (s *ResolvedIdentity) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResolvedIdentity) GetAccountId

func (s *ResolvedIdentity) GetAccountId() string

GetAccountId returns the value of AccountId.

func (*ResolvedIdentity) GetHandle

func (s *ResolvedIdentity) GetHandle() string

GetHandle returns the value of Handle.

func (*ResolvedIdentity) GetProvider

func (s *ResolvedIdentity) GetProvider() string

GetProvider returns the value of Provider.

func (*ResolvedIdentity) GetProviderUserId

func (s *ResolvedIdentity) GetProviderUserId() string

GetProviderUserId returns the value of ProviderUserId.

func (*ResolvedIdentity) GetSchema

func (s *ResolvedIdentity) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ResolvedIdentity) MarshalJSON

func (s *ResolvedIdentity) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResolvedIdentity) SetAccountId

func (s *ResolvedIdentity) SetAccountId(val string)

SetAccountId sets the value of AccountId.

func (*ResolvedIdentity) SetHandle

func (s *ResolvedIdentity) SetHandle(val string)

SetHandle sets the value of Handle.

func (*ResolvedIdentity) SetProvider

func (s *ResolvedIdentity) SetProvider(val string)

SetProvider sets the value of Provider.

func (*ResolvedIdentity) SetProviderUserId

func (s *ResolvedIdentity) SetProviderUserId(val string)

SetProviderUserId sets the value of ProviderUserId.

func (*ResolvedIdentity) SetSchema

func (s *ResolvedIdentity) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ResolvedIdentity) UnmarshalJSON

func (s *ResolvedIdentity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ResourceAccess

type ResourceAccess struct {
	Permissions []string `json:"permissions"`
	ResourceId  string   `json:"resourceId"`
}

Ref: #/components/schemas/ResourceAccess

func (*ResourceAccess) Decode

func (s *ResourceAccess) Decode(d *jx.Decoder) error

Decode decodes ResourceAccess from json.

func (*ResourceAccess) Encode

func (s *ResourceAccess) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResourceAccess) GetPermissions

func (s *ResourceAccess) GetPermissions() []string

GetPermissions returns the value of Permissions.

func (*ResourceAccess) GetResourceId

func (s *ResourceAccess) GetResourceId() string

GetResourceId returns the value of ResourceId.

func (*ResourceAccess) MarshalJSON

func (s *ResourceAccess) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResourceAccess) SetPermissions

func (s *ResourceAccess) SetPermissions(val []string)

SetPermissions sets the value of Permissions.

func (*ResourceAccess) SetResourceId

func (s *ResourceAccess) SetResourceId(val string)

SetResourceId sets the value of ResourceId.

func (*ResourceAccess) UnmarshalJSON

func (s *ResourceAccess) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ResourceAccess) Validate

func (s *ResourceAccess) Validate() error

type RevokeProjectAccessByProviderNoContent

type RevokeProjectAccessByProviderNoContent struct{}

RevokeProjectAccessByProviderNoContent is response for RevokeProjectAccessByProvider operation.

type RevokeProjectAccessByProviderParams

type RevokeProjectAccessByProviderParams struct {
	ProjectId      string
	Provider       string
	ProviderUserId string
}

RevokeProjectAccessByProviderParams is parameters of revokeProjectAccessByProvider operation.

type RevokeProjectAccessNoContent

type RevokeProjectAccessNoContent struct{}

RevokeProjectAccessNoContent is response for RevokeProjectAccess operation.

type RevokeProjectAccessParams

type RevokeProjectAccessParams struct {
	ProjectId   string
	GranteeType string
	GranteeId   string
}

RevokeProjectAccessParams is parameters of revokeProjectAccess operation.

type RevokeServiceAccountAccessNoContent

type RevokeServiceAccountAccessNoContent struct{}

RevokeServiceAccountAccessNoContent is response for RevokeServiceAccountAccess operation.

type RevokeServiceAccountAccessParams

type RevokeServiceAccountAccessParams struct {
	AccountId    string
	ResourceType RevokeServiceAccountAccessResourceType
	ResourceId   string
}

RevokeServiceAccountAccessParams is parameters of revokeServiceAccountAccess operation.

type RevokeServiceAccountAccessResourceType

type RevokeServiceAccountAccessResourceType string
const (
	RevokeServiceAccountAccessResourceTypeRepo    RevokeServiceAccountAccessResourceType = "repo"
	RevokeServiceAccountAccessResourceTypeProject RevokeServiceAccountAccessResourceType = "project"
)

func (RevokeServiceAccountAccessResourceType) AllValues

AllValues returns all RevokeServiceAccountAccessResourceType values.

func (RevokeServiceAccountAccessResourceType) MarshalText

func (s RevokeServiceAccountAccessResourceType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RevokeServiceAccountAccessResourceType) UnmarshalText

func (s *RevokeServiceAccountAccessResourceType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RevokeServiceAccountAccessResourceType) Validate

type SecuritySource

type SecuritySource interface {
	// BearerAuth provides bearerAuth security value.
	// Bearer token minted by entire-core's device-code flow or STS exchange.
	BearerAuth(ctx context.Context, operationName OperationName) (BearerAuth, error)
	// SessionAuth provides sessionAuth security value.
	// Console session cookie issued by the browser login flow.
	SessionAuth(ctx context.Context, operationName OperationName) (SessionAuth, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type ServiceAccount

type ServiceAccount struct {
	// A URL to the JSON Schema for this object.
	Schema        OptURI    `json:"$schema"`
	AccountId     string    `json:"accountId"`
	CreatedAt     time.Time `json:"createdAt"`
	Name          string    `json:"name"`
	OrgId         string    `json:"orgId"`
	Status        string    `json:"status"`
	SystemManaged bool      `json:"systemManaged"`
}

Ref: #/components/schemas/ServiceAccount

func (*ServiceAccount) Decode

func (s *ServiceAccount) Decode(d *jx.Decoder) error

Decode decodes ServiceAccount from json.

func (*ServiceAccount) Encode

func (s *ServiceAccount) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ServiceAccount) GetAccountId

func (s *ServiceAccount) GetAccountId() string

GetAccountId returns the value of AccountId.

func (*ServiceAccount) GetCreatedAt

func (s *ServiceAccount) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*ServiceAccount) GetName

func (s *ServiceAccount) GetName() string

GetName returns the value of Name.

func (*ServiceAccount) GetOrgId

func (s *ServiceAccount) GetOrgId() string

GetOrgId returns the value of OrgId.

func (*ServiceAccount) GetSchema

func (s *ServiceAccount) GetSchema() OptURI

GetSchema returns the value of Schema.

func (*ServiceAccount) GetStatus

func (s *ServiceAccount) GetStatus() string

GetStatus returns the value of Status.

func (*ServiceAccount) GetSystemManaged

func (s *ServiceAccount) GetSystemManaged() bool

GetSystemManaged returns the value of SystemManaged.

func (*ServiceAccount) MarshalJSON

func (s *ServiceAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ServiceAccount) SetAccountId

func (s *ServiceAccount) SetAccountId(val string)

SetAccountId sets the value of AccountId.

func (*ServiceAccount) SetCreatedAt

func (s *ServiceAccount) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*ServiceAccount) SetName

func (s *ServiceAccount) SetName(val string)

SetName sets the value of Name.

func (*ServiceAccount) SetOrgId

func (s *ServiceAccount) SetOrgId(val string)

SetOrgId sets the value of OrgId.

func (*ServiceAccount) SetSchema

func (s *ServiceAccount) SetSchema(val OptURI)

SetSchema sets the value of Schema.

func (*ServiceAccount) SetStatus

func (s *ServiceAccount) SetStatus(val string)

SetStatus sets the value of Status.

func (*ServiceAccount) SetSystemManaged

func (s *ServiceAccount) SetSystemManaged(val bool)

SetSystemManaged sets the value of SystemManaged.

func (*ServiceAccount) UnmarshalJSON

func (s *ServiceAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ServiceAccountGrant

type ServiceAccountGrant struct {
	ResourceId   string    `json:"resourceId"`
	ResourceName OptString `json:"resourceName"`
	ResourceType string    `json:"resourceType"`
	Role         string    `json:"role"`
}

Ref: #/components/schemas/ServiceAccountGrant

func (*ServiceAccountGrant) Decode

func (s *ServiceAccountGrant) Decode(d *jx.Decoder) error

Decode decodes ServiceAccountGrant from json.

func (*ServiceAccountGrant) Encode

func (s *ServiceAccountGrant) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ServiceAccountGrant) GetResourceId

func (s *ServiceAccountGrant) GetResourceId() string

GetResourceId returns the value of ResourceId.

func (*ServiceAccountGrant) GetResourceName

func (s *ServiceAccountGrant) GetResourceName() OptString

GetResourceName returns the value of ResourceName.

func (*ServiceAccountGrant) GetResourceType

func (s *ServiceAccountGrant) GetResourceType() string

GetResourceType returns the value of ResourceType.

func (*ServiceAccountGrant) GetRole

func (s *ServiceAccountGrant) GetRole() string

GetRole returns the value of Role.

func (*ServiceAccountGrant) MarshalJSON

func (s *ServiceAccountGrant) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ServiceAccountGrant) SetResourceId

func (s *ServiceAccountGrant) SetResourceId(val string)

SetResourceId sets the value of ResourceId.

func (*ServiceAccountGrant) SetResourceName

func (s *ServiceAccountGrant) SetResourceName(val OptString)

SetResourceName sets the value of ResourceName.

func (*ServiceAccountGrant) SetResourceType

func (s *ServiceAccountGrant) SetResourceType(val string)

SetResourceType sets the value of ResourceType.

func (*ServiceAccountGrant) SetRole

func (s *ServiceAccountGrant) SetRole(val string)

SetRole sets the value of Role.

func (*ServiceAccountGrant) UnmarshalJSON

func (s *ServiceAccountGrant) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ServiceAccountWithGrants

type ServiceAccountWithGrants struct {
	AccountId     string    `json:"accountId"`
	CreatedAt     time.Time `json:"createdAt"`
	Grants        []string  `json:"grants"`
	Name          string    `json:"name"`
	OrgId         string    `json:"orgId"`
	Status        string    `json:"status"`
	SystemManaged bool      `json:"systemManaged"`
}

Ref: #/components/schemas/ServiceAccountWithGrants

func (*ServiceAccountWithGrants) Decode

func (s *ServiceAccountWithGrants) Decode(d *jx.Decoder) error

Decode decodes ServiceAccountWithGrants from json.

func (*ServiceAccountWithGrants) Encode

func (s *ServiceAccountWithGrants) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ServiceAccountWithGrants) GetAccountId

func (s *ServiceAccountWithGrants) GetAccountId() string

GetAccountId returns the value of AccountId.

func (*ServiceAccountWithGrants) GetCreatedAt

func (s *ServiceAccountWithGrants) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*ServiceAccountWithGrants) GetGrants

func (s *ServiceAccountWithGrants) GetGrants() []string

GetGrants returns the value of Grants.

func (*ServiceAccountWithGrants) GetName

func (s *ServiceAccountWithGrants) GetName() string

GetName returns the value of Name.

func (*ServiceAccountWithGrants) GetOrgId

func (s *ServiceAccountWithGrants) GetOrgId() string

GetOrgId returns the value of OrgId.

func (*ServiceAccountWithGrants) GetStatus

func (s *ServiceAccountWithGrants) GetStatus() string

GetStatus returns the value of Status.

func (*ServiceAccountWithGrants) GetSystemManaged

func (s *ServiceAccountWithGrants) GetSystemManaged() bool

GetSystemManaged returns the value of SystemManaged.

func (*ServiceAccountWithGrants) MarshalJSON

func (s *ServiceAccountWithGrants) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ServiceAccountWithGrants) SetAccountId

func (s *ServiceAccountWithGrants) SetAccountId(val string)

SetAccountId sets the value of AccountId.

func (*ServiceAccountWithGrants) SetCreatedAt

func (s *ServiceAccountWithGrants) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*ServiceAccountWithGrants) SetGrants

func (s *ServiceAccountWithGrants) SetGrants(val []string)

SetGrants sets the value of Grants.

func (*ServiceAccountWithGrants) SetName

func (s *ServiceAccountWithGrants) SetName(val string)

SetName sets the value of Name.

func (*ServiceAccountWithGrants) SetOrgId

func (s *ServiceAccountWithGrants) SetOrgId(val string)

SetOrgId sets the value of OrgId.

func (*ServiceAccountWithGrants) SetStatus

func (s *ServiceAccountWithGrants) SetStatus(val string)

SetStatus sets the value of Status.

func (*ServiceAccountWithGrants) SetSystemManaged

func (s *ServiceAccountWithGrants) SetSystemManaged(val bool)

SetSystemManaged sets the value of SystemManaged.

func (*ServiceAccountWithGrants) UnmarshalJSON

func (s *ServiceAccountWithGrants) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ServiceAccountWithGrants) Validate

func (s *ServiceAccountWithGrants) Validate() error

type SessionAuth

type SessionAuth struct {
	APIKey string
	Roles  []string
}

func (*SessionAuth) GetAPIKey

func (s *SessionAuth) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*SessionAuth) GetRoles

func (s *SessionAuth) GetRoles() []string

GetRoles returns the value of Roles.

func (*SessionAuth) SetAPIKey

func (s *SessionAuth) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

func (*SessionAuth) SetRoles

func (s *SessionAuth) SetRoles(val []string)

SetRoles sets the value of Roles.

Jump to

Keyboard shortcuts

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