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 ¶
- func APIError(err error) string
- func GetRolesForBearerAuth(operation string) []string
- func GetRolesForSessionAuth(operation string) []string
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AddOrgMemberInputBody
- func (s *AddOrgMemberInputBody) Decode(d *jx.Decoder) error
- func (s *AddOrgMemberInputBody) Encode(e *jx.Encoder)
- func (s *AddOrgMemberInputBody) GetProvider() string
- func (s *AddOrgMemberInputBody) GetProviderUserId() string
- func (s *AddOrgMemberInputBody) GetRole() OptAddOrgMemberInputBodyRole
- func (s *AddOrgMemberInputBody) GetSchema() OptURI
- func (s *AddOrgMemberInputBody) MarshalJSON() ([]byte, error)
- func (s *AddOrgMemberInputBody) SetProvider(val string)
- func (s *AddOrgMemberInputBody) SetProviderUserId(val string)
- func (s *AddOrgMemberInputBody) SetRole(val OptAddOrgMemberInputBodyRole)
- func (s *AddOrgMemberInputBody) SetSchema(val OptURI)
- func (s *AddOrgMemberInputBody) UnmarshalJSON(data []byte) error
- func (s *AddOrgMemberInputBody) Validate() error
- type AddOrgMemberInputBodyRole
- func (AddOrgMemberInputBodyRole) AllValues() []AddOrgMemberInputBodyRole
- func (s *AddOrgMemberInputBodyRole) Decode(d *jx.Decoder) error
- func (s AddOrgMemberInputBodyRole) Encode(e *jx.Encoder)
- func (s AddOrgMemberInputBodyRole) MarshalJSON() ([]byte, error)
- func (s AddOrgMemberInputBodyRole) MarshalText() ([]byte, error)
- func (s *AddOrgMemberInputBodyRole) UnmarshalJSON(data []byte) error
- func (s *AddOrgMemberInputBodyRole) UnmarshalText(data []byte) error
- func (s AddOrgMemberInputBodyRole) Validate() error
- type AddOrgMemberParams
- type AuditEvent
- func (s *AuditEvent) Decode(d *jx.Decoder) error
- func (s *AuditEvent) Encode(e *jx.Encoder)
- func (s *AuditEvent) GetActorId() string
- func (s *AuditEvent) GetEventType() string
- func (s *AuditEvent) GetID() string
- func (s *AuditEvent) GetIpAddress() OptString
- func (s *AuditEvent) GetMetadata() OptAuditEventMetadata
- func (s *AuditEvent) GetOccurredAt() time.Time
- func (s *AuditEvent) MarshalJSON() ([]byte, error)
- func (s *AuditEvent) SetActorId(val string)
- func (s *AuditEvent) SetEventType(val string)
- func (s *AuditEvent) SetID(val string)
- func (s *AuditEvent) SetIpAddress(val OptString)
- func (s *AuditEvent) SetMetadata(val OptAuditEventMetadata)
- func (s *AuditEvent) SetOccurredAt(val time.Time)
- func (s *AuditEvent) UnmarshalJSON(data []byte) error
- type AuditEventMetadata
- type BatchLookupInputBody
- func (s *BatchLookupInputBody) Decode(d *jx.Decoder) error
- func (s *BatchLookupInputBody) Encode(e *jx.Encoder)
- func (s *BatchLookupInputBody) GetRefs() []LookupRef
- func (s *BatchLookupInputBody) GetSchema() OptURI
- func (s *BatchLookupInputBody) MarshalJSON() ([]byte, error)
- func (s *BatchLookupInputBody) SetRefs(val []LookupRef)
- func (s *BatchLookupInputBody) SetSchema(val OptURI)
- func (s *BatchLookupInputBody) UnmarshalJSON(data []byte) error
- func (s *BatchLookupInputBody) Validate() error
- type BatchLookupOutputBody
- func (s *BatchLookupOutputBody) Decode(d *jx.Decoder) error
- func (s *BatchLookupOutputBody) Encode(e *jx.Encoder)
- func (s *BatchLookupOutputBody) GetRefs() []LookupRefResult
- func (s *BatchLookupOutputBody) GetSchema() OptURI
- func (s *BatchLookupOutputBody) MarshalJSON() ([]byte, error)
- func (s *BatchLookupOutputBody) SetRefs(val []LookupRefResult)
- func (s *BatchLookupOutputBody) SetSchema(val OptURI)
- func (s *BatchLookupOutputBody) UnmarshalJSON(data []byte) error
- func (s *BatchLookupOutputBody) Validate() error
- type BearerAuth
- type Binding
- func (s *Binding) Decode(d *jx.Decoder) error
- func (s *Binding) Encode(e *jx.Encoder)
- func (s *Binding) GetAccountId() string
- func (s *Binding) GetAttributeFilter() jx.Raw
- func (s *Binding) GetCreatedAt() time.Time
- func (s *Binding) GetID() string
- func (s *Binding) GetProviderId() string
- func (s *Binding) GetSchema() OptURI
- func (s *Binding) MarshalJSON() ([]byte, error)
- func (s *Binding) SetAccountId(val string)
- func (s *Binding) SetAttributeFilter(val jx.Raw)
- func (s *Binding) SetCreatedAt(val time.Time)
- func (s *Binding) SetID(val string)
- func (s *Binding) SetProviderId(val string)
- func (s *Binding) SetSchema(val OptURI)
- func (s *Binding) UnmarshalJSON(data []byte) error
- type Client
- func (c *Client) AddOrgMember(ctx context.Context, request *AddOrgMemberInputBody, params AddOrgMemberParams) (*Membership, error)
- func (c *Client) BatchLookup(ctx context.Context, request *BatchLookupInputBody) (*BatchLookupOutputBody, error)
- func (c *Client) CreateBinding(ctx context.Context, request *CreateBindingInputBody, ...) (*Binding, error)
- func (c *Client) CreateMirror(ctx context.Context, request *CreateMirrorInputBody) (*CreatedMirror, error)
- func (c *Client) CreateOrg(ctx context.Context, request *CreateOrgInputBody) (*Org, error)
- func (c *Client) CreateProject(ctx context.Context, request *CreateProjectInputBody) (*Project, error)
- func (c *Client) CreateRepo(ctx context.Context, request *CreateRepoInputBody) (*Repo, error)
- func (c *Client) CreateServiceAccount(ctx context.Context, request *CreateServiceAccountInputBody) (*ServiceAccount, error)
- func (c *Client) DeleteBinding(ctx context.Context, params DeleteBindingParams) error
- func (c *Client) DeleteMirror(ctx context.Context, params DeleteMirrorParams) error
- func (c *Client) DeleteRepo(ctx context.Context, params DeleteRepoParams) error
- func (c *Client) DeleteServiceAccount(ctx context.Context, params DeleteServiceAccountParams) error
- func (c *Client) GetMe(ctx context.Context) (*GetMeOutputBody, error)
- func (c *Client) GetMirror(ctx context.Context, params GetMirrorParams) (*Mirror, error)
- func (c *Client) GetPermissions(ctx context.Context, params GetPermissionsParams) (*GetPermissionsOutputBody, error)
- func (c *Client) GetRepo(ctx context.Context, params GetRepoParams) (*Repo, error)
- func (c *Client) GetServiceAccount(ctx context.Context, params GetServiceAccountParams) (*ServiceAccount, error)
- func (c *Client) GrantProjectAccess(ctx context.Context, request *GrantProjectAccessInputBody, ...) (*GrantProjectAccessOutputBody, error)
- func (c *Client) GrantRepoAccess(ctx context.Context, request *GrantRepoAccessInputBody, ...) (*GrantRepoAccessOutputBody, error)
- func (c *Client) GrantServiceAccountAccess(ctx context.Context, request *GrantServiceAccountAccessInputBody, ...) (*GrantServiceAccountAccessOutputBody, error)
- func (c *Client) ListAuditEvents(ctx context.Context) (*ListAuditEventsOutputBody, error)
- func (c *Client) ListBindings(ctx context.Context, params ListBindingsParams) (*ListBindingsOutputBody, error)
- func (c *Client) ListMirrors(ctx context.Context, params ListMirrorsParams) (*ListMirrorsOutputBody, error)
- func (c *Client) ListOIDCProviders(ctx context.Context) (*ListOIDCProvidersOutputBody, error)
- func (c *Client) ListOrgMembers(ctx context.Context, params ListOrgMembersParams) (*ListOrgMembersOutputBody, error)
- func (c *Client) ListOrgProjects(ctx context.Context, params ListOrgProjectsParams) (*ListOrgProjectsOutputBody, error)
- func (c *Client) ListOrgs(ctx context.Context) (*ListOrgsOutputBody, error)
- func (c *Client) ListProjectMembers(ctx context.Context, params ListProjectMembersParams) (*ListProjectMembersOutputBody, error)
- func (c *Client) ListProjectRepos(ctx context.Context, params ListProjectReposParams) (*ListProjectReposOutputBody, error)
- func (c *Client) ListProjects(ctx context.Context, params ListProjectsParams) (*ListProjectsOutputBody, error)
- func (c *Client) ListServiceAccountGrants(ctx context.Context, params ListServiceAccountGrantsParams) (*ListServiceAccountGrantsOutputBody, error)
- func (c *Client) ListServiceAccounts(ctx context.Context, params ListServiceAccountsParams) (*ListServiceAccountsOutputBody, error)
- func (c *Client) LookupResources(ctx context.Context, params LookupResourcesParams) (*LookupResourcesOutputBody, error)
- func (c *Client) RemoveOrgMember(ctx context.Context, params RemoveOrgMemberParams) error
- func (c *Client) ResolveHandle(ctx context.Context, params ResolveHandleParams) (*ResolvedIdentity, error)
- func (c *Client) RevokeProjectAccess(ctx context.Context, params RevokeProjectAccessParams) error
- func (c *Client) RevokeProjectAccessByProvider(ctx context.Context, params RevokeProjectAccessByProviderParams) error
- func (c *Client) RevokeServiceAccountAccess(ctx context.Context, params RevokeServiceAccountAccessParams) error
- type ClientOption
- type CreateBindingInputBody
- func (s *CreateBindingInputBody) Decode(d *jx.Decoder) error
- func (s *CreateBindingInputBody) Encode(e *jx.Encoder)
- func (s *CreateBindingInputBody) GetAttributeFilter() jx.Raw
- func (s *CreateBindingInputBody) GetProviderId() string
- func (s *CreateBindingInputBody) GetSchema() OptURI
- func (s *CreateBindingInputBody) MarshalJSON() ([]byte, error)
- func (s *CreateBindingInputBody) SetAttributeFilter(val jx.Raw)
- func (s *CreateBindingInputBody) SetProviderId(val string)
- func (s *CreateBindingInputBody) SetSchema(val OptURI)
- func (s *CreateBindingInputBody) UnmarshalJSON(data []byte) error
- func (s *CreateBindingInputBody) Validate() error
- type CreateBindingParams
- type CreateMirrorInputBody
- func (s *CreateMirrorInputBody) Decode(d *jx.Decoder) error
- func (s *CreateMirrorInputBody) Encode(e *jx.Encoder)
- func (s *CreateMirrorInputBody) GetClusterHost() string
- func (s *CreateMirrorInputBody) GetOwner() string
- func (s *CreateMirrorInputBody) GetProvider() CreateMirrorInputBodyProvider
- func (s *CreateMirrorInputBody) GetRepo() string
- func (s *CreateMirrorInputBody) GetSchema() OptURI
- func (s *CreateMirrorInputBody) MarshalJSON() ([]byte, error)
- func (s *CreateMirrorInputBody) SetClusterHost(val string)
- func (s *CreateMirrorInputBody) SetOwner(val string)
- func (s *CreateMirrorInputBody) SetProvider(val CreateMirrorInputBodyProvider)
- func (s *CreateMirrorInputBody) SetRepo(val string)
- func (s *CreateMirrorInputBody) SetSchema(val OptURI)
- func (s *CreateMirrorInputBody) UnmarshalJSON(data []byte) error
- func (s *CreateMirrorInputBody) Validate() error
- type CreateMirrorInputBodyProvider
- func (CreateMirrorInputBodyProvider) AllValues() []CreateMirrorInputBodyProvider
- func (s *CreateMirrorInputBodyProvider) Decode(d *jx.Decoder) error
- func (s CreateMirrorInputBodyProvider) Encode(e *jx.Encoder)
- func (s CreateMirrorInputBodyProvider) MarshalJSON() ([]byte, error)
- func (s CreateMirrorInputBodyProvider) MarshalText() ([]byte, error)
- func (s *CreateMirrorInputBodyProvider) UnmarshalJSON(data []byte) error
- func (s *CreateMirrorInputBodyProvider) UnmarshalText(data []byte) error
- func (s CreateMirrorInputBodyProvider) Validate() error
- type CreateOrgInputBody
- func (s *CreateOrgInputBody) Decode(d *jx.Decoder) error
- func (s *CreateOrgInputBody) Encode(e *jx.Encoder)
- func (s *CreateOrgInputBody) GetName() string
- func (s *CreateOrgInputBody) GetRegion() OptString
- func (s *CreateOrgInputBody) GetSchema() OptURI
- func (s *CreateOrgInputBody) MarshalJSON() ([]byte, error)
- func (s *CreateOrgInputBody) SetName(val string)
- func (s *CreateOrgInputBody) SetRegion(val OptString)
- func (s *CreateOrgInputBody) SetSchema(val OptURI)
- func (s *CreateOrgInputBody) UnmarshalJSON(data []byte) error
- func (s *CreateOrgInputBody) Validate() error
- type CreateProjectInputBody
- func (s *CreateProjectInputBody) Decode(d *jx.Decoder) error
- func (s *CreateProjectInputBody) Encode(e *jx.Encoder)
- func (s *CreateProjectInputBody) GetName() string
- func (s *CreateProjectInputBody) GetOwnerId() string
- func (s *CreateProjectInputBody) GetOwnerType() CreateProjectInputBodyOwnerType
- func (s *CreateProjectInputBody) GetRegion() OptString
- func (s *CreateProjectInputBody) GetSchema() OptURI
- func (s *CreateProjectInputBody) MarshalJSON() ([]byte, error)
- func (s *CreateProjectInputBody) SetName(val string)
- func (s *CreateProjectInputBody) SetOwnerId(val string)
- func (s *CreateProjectInputBody) SetOwnerType(val CreateProjectInputBodyOwnerType)
- func (s *CreateProjectInputBody) SetRegion(val OptString)
- func (s *CreateProjectInputBody) SetSchema(val OptURI)
- func (s *CreateProjectInputBody) UnmarshalJSON(data []byte) error
- func (s *CreateProjectInputBody) Validate() error
- type CreateProjectInputBodyOwnerType
- func (CreateProjectInputBodyOwnerType) AllValues() []CreateProjectInputBodyOwnerType
- func (s *CreateProjectInputBodyOwnerType) Decode(d *jx.Decoder) error
- func (s CreateProjectInputBodyOwnerType) Encode(e *jx.Encoder)
- func (s CreateProjectInputBodyOwnerType) MarshalJSON() ([]byte, error)
- func (s CreateProjectInputBodyOwnerType) MarshalText() ([]byte, error)
- func (s *CreateProjectInputBodyOwnerType) UnmarshalJSON(data []byte) error
- func (s *CreateProjectInputBodyOwnerType) UnmarshalText(data []byte) error
- func (s CreateProjectInputBodyOwnerType) Validate() error
- type CreateRepoInputBody
- func (s *CreateRepoInputBody) Decode(d *jx.Decoder) error
- func (s *CreateRepoInputBody) Encode(e *jx.Encoder)
- func (s *CreateRepoInputBody) GetClusterHost() OptString
- func (s *CreateRepoInputBody) GetName() string
- func (s *CreateRepoInputBody) GetObjectFormat() OptCreateRepoInputBodyObjectFormat
- func (s *CreateRepoInputBody) GetProjectId() string
- func (s *CreateRepoInputBody) GetSchema() OptURI
- func (s *CreateRepoInputBody) MarshalJSON() ([]byte, error)
- func (s *CreateRepoInputBody) SetClusterHost(val OptString)
- func (s *CreateRepoInputBody) SetName(val string)
- func (s *CreateRepoInputBody) SetObjectFormat(val OptCreateRepoInputBodyObjectFormat)
- func (s *CreateRepoInputBody) SetProjectId(val string)
- func (s *CreateRepoInputBody) SetSchema(val OptURI)
- func (s *CreateRepoInputBody) UnmarshalJSON(data []byte) error
- func (s *CreateRepoInputBody) Validate() error
- type CreateRepoInputBodyObjectFormat
- func (CreateRepoInputBodyObjectFormat) AllValues() []CreateRepoInputBodyObjectFormat
- func (s *CreateRepoInputBodyObjectFormat) Decode(d *jx.Decoder) error
- func (s CreateRepoInputBodyObjectFormat) Encode(e *jx.Encoder)
- func (s CreateRepoInputBodyObjectFormat) MarshalJSON() ([]byte, error)
- func (s CreateRepoInputBodyObjectFormat) MarshalText() ([]byte, error)
- func (s *CreateRepoInputBodyObjectFormat) UnmarshalJSON(data []byte) error
- func (s *CreateRepoInputBodyObjectFormat) UnmarshalText(data []byte) error
- func (s CreateRepoInputBodyObjectFormat) Validate() error
- type CreateServiceAccountInputBody
- func (s *CreateServiceAccountInputBody) Decode(d *jx.Decoder) error
- func (s *CreateServiceAccountInputBody) Encode(e *jx.Encoder)
- func (s *CreateServiceAccountInputBody) GetName() string
- func (s *CreateServiceAccountInputBody) GetOrgId() string
- func (s *CreateServiceAccountInputBody) GetSchema() OptURI
- func (s *CreateServiceAccountInputBody) MarshalJSON() ([]byte, error)
- func (s *CreateServiceAccountInputBody) SetName(val string)
- func (s *CreateServiceAccountInputBody) SetOrgId(val string)
- func (s *CreateServiceAccountInputBody) SetSchema(val OptURI)
- func (s *CreateServiceAccountInputBody) UnmarshalJSON(data []byte) error
- func (s *CreateServiceAccountInputBody) Validate() error
- type CreatedMirror
- func (s *CreatedMirror) Decode(d *jx.Decoder) error
- func (s *CreatedMirror) Encode(e *jx.Encoder)
- func (s *CreatedMirror) GetCreated() bool
- func (s *CreatedMirror) GetMirrorId() string
- func (s *CreatedMirror) GetMirrorUrl() string
- func (s *CreatedMirror) GetPublicUrl() string
- func (s *CreatedMirror) GetSchema() OptURI
- func (s *CreatedMirror) MarshalJSON() ([]byte, error)
- func (s *CreatedMirror) SetCreated(val bool)
- func (s *CreatedMirror) SetMirrorId(val string)
- func (s *CreatedMirror) SetMirrorUrl(val string)
- func (s *CreatedMirror) SetPublicUrl(val string)
- func (s *CreatedMirror) SetSchema(val OptURI)
- func (s *CreatedMirror) UnmarshalJSON(data []byte) error
- type DeleteBindingNoContent
- type DeleteBindingParams
- type DeleteMirrorNoContent
- type DeleteMirrorParams
- type DeleteMirrorProvider
- type DeleteRepoNoContent
- type DeleteRepoParams
- type DeleteServiceAccountNoContent
- type DeleteServiceAccountParams
- type ErrorDetail
- func (s *ErrorDetail) Decode(d *jx.Decoder) error
- func (s *ErrorDetail) Encode(e *jx.Encoder)
- func (s *ErrorDetail) GetLocation() OptString
- func (s *ErrorDetail) GetMessage() OptString
- func (s *ErrorDetail) GetValue() jx.Raw
- func (s *ErrorDetail) MarshalJSON() ([]byte, error)
- func (s *ErrorDetail) SetLocation(val OptString)
- func (s *ErrorDetail) SetMessage(val OptString)
- func (s *ErrorDetail) SetValue(val jx.Raw)
- func (s *ErrorDetail) UnmarshalJSON(data []byte) error
- type ErrorModel
- func (s *ErrorModel) Decode(d *jx.Decoder) error
- func (s *ErrorModel) Encode(e *jx.Encoder)
- func (s *ErrorModel) GetDetail() OptString
- func (s *ErrorModel) GetErrors() []ErrorDetail
- func (s *ErrorModel) GetInstance() OptURI
- func (s *ErrorModel) GetSchema() OptURI
- func (s *ErrorModel) GetStatus() OptInt64
- func (s *ErrorModel) GetTitle() OptString
- func (s *ErrorModel) GetType() OptURI
- func (s *ErrorModel) MarshalJSON() ([]byte, error)
- func (s *ErrorModel) SetDetail(val OptString)
- func (s *ErrorModel) SetErrors(val []ErrorDetail)
- func (s *ErrorModel) SetInstance(val OptURI)
- func (s *ErrorModel) SetSchema(val OptURI)
- func (s *ErrorModel) SetStatus(val OptInt64)
- func (s *ErrorModel) SetTitle(val OptString)
- func (s *ErrorModel) SetType(val OptURI)
- func (s *ErrorModel) UnmarshalJSON(data []byte) error
- type ErrorModelStatusCode
- type GetMeOutputBody
- func (s *GetMeOutputBody) Decode(d *jx.Decoder) error
- func (s *GetMeOutputBody) Encode(e *jx.Encoder)
- func (s *GetMeOutputBody) GetAuth() MeAuth
- func (s *GetMeOutputBody) GetGlobal() MeGlobal
- func (s *GetMeOutputBody) GetJurisdiction() OptString
- func (s *GetMeOutputBody) GetMode() OptGetMeOutputBodyMode
- func (s *GetMeOutputBody) GetRegional() OptMeRegional
- func (s *GetMeOutputBody) GetRegionalUnavailable() OptMeRegionalUnavailable
- func (s *GetMeOutputBody) GetSchema() OptURI
- func (s *GetMeOutputBody) MarshalJSON() ([]byte, error)
- func (s *GetMeOutputBody) SetAuth(val MeAuth)
- func (s *GetMeOutputBody) SetGlobal(val MeGlobal)
- func (s *GetMeOutputBody) SetJurisdiction(val OptString)
- func (s *GetMeOutputBody) SetMode(val OptGetMeOutputBodyMode)
- func (s *GetMeOutputBody) SetRegional(val OptMeRegional)
- func (s *GetMeOutputBody) SetRegionalUnavailable(val OptMeRegionalUnavailable)
- func (s *GetMeOutputBody) SetSchema(val OptURI)
- func (s *GetMeOutputBody) UnmarshalJSON(data []byte) error
- func (s *GetMeOutputBody) Validate() error
- type GetMeOutputBodyMode
- func (GetMeOutputBodyMode) AllValues() []GetMeOutputBodyMode
- func (s *GetMeOutputBodyMode) Decode(d *jx.Decoder) error
- func (s GetMeOutputBodyMode) Encode(e *jx.Encoder)
- func (s GetMeOutputBodyMode) MarshalJSON() ([]byte, error)
- func (s GetMeOutputBodyMode) MarshalText() ([]byte, error)
- func (s *GetMeOutputBodyMode) UnmarshalJSON(data []byte) error
- func (s *GetMeOutputBodyMode) UnmarshalText(data []byte) error
- func (s GetMeOutputBodyMode) Validate() error
- type GetMirrorParams
- type GetPermissionsOutputBody
- func (s *GetPermissionsOutputBody) Decode(d *jx.Decoder) error
- func (s *GetPermissionsOutputBody) Encode(e *jx.Encoder)
- func (s *GetPermissionsOutputBody) GetExplain() OptGetPermissionsOutputBodyExplain
- func (s *GetPermissionsOutputBody) GetPermissions() []string
- func (s *GetPermissionsOutputBody) GetResourceId() string
- func (s *GetPermissionsOutputBody) GetResourceType() string
- func (s *GetPermissionsOutputBody) GetSchema() OptURI
- func (s *GetPermissionsOutputBody) MarshalJSON() ([]byte, error)
- func (s *GetPermissionsOutputBody) SetExplain(val OptGetPermissionsOutputBodyExplain)
- func (s *GetPermissionsOutputBody) SetPermissions(val []string)
- func (s *GetPermissionsOutputBody) SetResourceId(val string)
- func (s *GetPermissionsOutputBody) SetResourceType(val string)
- func (s *GetPermissionsOutputBody) SetSchema(val OptURI)
- func (s *GetPermissionsOutputBody) UnmarshalJSON(data []byte) error
- type GetPermissionsOutputBodyExplain
- type GetPermissionsParams
- type GetRepoParams
- type GetServiceAccountParams
- type GrantProjectAccessInputBody
- func (s *GrantProjectAccessInputBody) Decode(d *jx.Decoder) error
- func (s *GrantProjectAccessInputBody) Encode(e *jx.Encoder)
- func (s *GrantProjectAccessInputBody) GetGranteeType() OptGrantProjectAccessInputBodyGranteeType
- func (s *GrantProjectAccessInputBody) GetProvider() string
- func (s *GrantProjectAccessInputBody) GetProviderUserId() string
- func (s *GrantProjectAccessInputBody) GetRole() string
- func (s *GrantProjectAccessInputBody) GetSchema() OptURI
- func (s *GrantProjectAccessInputBody) MarshalJSON() ([]byte, error)
- func (s *GrantProjectAccessInputBody) SetGranteeType(val OptGrantProjectAccessInputBodyGranteeType)
- func (s *GrantProjectAccessInputBody) SetProvider(val string)
- func (s *GrantProjectAccessInputBody) SetProviderUserId(val string)
- func (s *GrantProjectAccessInputBody) SetRole(val string)
- func (s *GrantProjectAccessInputBody) SetSchema(val OptURI)
- func (s *GrantProjectAccessInputBody) UnmarshalJSON(data []byte) error
- func (s *GrantProjectAccessInputBody) Validate() error
- type GrantProjectAccessInputBodyGranteeType
- func (GrantProjectAccessInputBodyGranteeType) AllValues() []GrantProjectAccessInputBodyGranteeType
- func (s *GrantProjectAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
- func (s GrantProjectAccessInputBodyGranteeType) Encode(e *jx.Encoder)
- func (s GrantProjectAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)
- func (s GrantProjectAccessInputBodyGranteeType) MarshalText() ([]byte, error)
- func (s *GrantProjectAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error
- func (s *GrantProjectAccessInputBodyGranteeType) UnmarshalText(data []byte) error
- func (s GrantProjectAccessInputBodyGranteeType) Validate() error
- type GrantProjectAccessOutputBody
- func (s *GrantProjectAccessOutputBody) Decode(d *jx.Decoder) error
- func (s *GrantProjectAccessOutputBody) Encode(e *jx.Encoder)
- func (s *GrantProjectAccessOutputBody) GetSchema() OptURI
- func (s *GrantProjectAccessOutputBody) GetStatus() string
- func (s *GrantProjectAccessOutputBody) MarshalJSON() ([]byte, error)
- func (s *GrantProjectAccessOutputBody) SetSchema(val OptURI)
- func (s *GrantProjectAccessOutputBody) SetStatus(val string)
- func (s *GrantProjectAccessOutputBody) UnmarshalJSON(data []byte) error
- type GrantProjectAccessParams
- type GrantRepoAccessInputBody
- func (s *GrantRepoAccessInputBody) Decode(d *jx.Decoder) error
- func (s *GrantRepoAccessInputBody) Encode(e *jx.Encoder)
- func (s *GrantRepoAccessInputBody) GetGranteeType() OptGrantRepoAccessInputBodyGranteeType
- func (s *GrantRepoAccessInputBody) GetProvider() string
- func (s *GrantRepoAccessInputBody) GetProviderUserId() string
- func (s *GrantRepoAccessInputBody) GetRole() string
- func (s *GrantRepoAccessInputBody) GetSchema() OptURI
- func (s *GrantRepoAccessInputBody) MarshalJSON() ([]byte, error)
- func (s *GrantRepoAccessInputBody) SetGranteeType(val OptGrantRepoAccessInputBodyGranteeType)
- func (s *GrantRepoAccessInputBody) SetProvider(val string)
- func (s *GrantRepoAccessInputBody) SetProviderUserId(val string)
- func (s *GrantRepoAccessInputBody) SetRole(val string)
- func (s *GrantRepoAccessInputBody) SetSchema(val OptURI)
- func (s *GrantRepoAccessInputBody) UnmarshalJSON(data []byte) error
- func (s *GrantRepoAccessInputBody) Validate() error
- type GrantRepoAccessInputBodyGranteeType
- func (GrantRepoAccessInputBodyGranteeType) AllValues() []GrantRepoAccessInputBodyGranteeType
- func (s *GrantRepoAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
- func (s GrantRepoAccessInputBodyGranteeType) Encode(e *jx.Encoder)
- func (s GrantRepoAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)
- func (s GrantRepoAccessInputBodyGranteeType) MarshalText() ([]byte, error)
- func (s *GrantRepoAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error
- func (s *GrantRepoAccessInputBodyGranteeType) UnmarshalText(data []byte) error
- func (s GrantRepoAccessInputBodyGranteeType) Validate() error
- type GrantRepoAccessOutputBody
- func (s *GrantRepoAccessOutputBody) Decode(d *jx.Decoder) error
- func (s *GrantRepoAccessOutputBody) Encode(e *jx.Encoder)
- func (s *GrantRepoAccessOutputBody) GetSchema() OptURI
- func (s *GrantRepoAccessOutputBody) GetStatus() string
- func (s *GrantRepoAccessOutputBody) MarshalJSON() ([]byte, error)
- func (s *GrantRepoAccessOutputBody) SetSchema(val OptURI)
- func (s *GrantRepoAccessOutputBody) SetStatus(val string)
- func (s *GrantRepoAccessOutputBody) UnmarshalJSON(data []byte) error
- type GrantRepoAccessParams
- type GrantServiceAccountAccessInputBody
- func (s *GrantServiceAccountAccessInputBody) Decode(d *jx.Decoder) error
- func (s *GrantServiceAccountAccessInputBody) Encode(e *jx.Encoder)
- func (s *GrantServiceAccountAccessInputBody) GetResourceId() string
- func (s *GrantServiceAccountAccessInputBody) GetResourceType() GrantServiceAccountAccessInputBodyResourceType
- func (s *GrantServiceAccountAccessInputBody) GetRole() string
- func (s *GrantServiceAccountAccessInputBody) GetSchema() OptURI
- func (s *GrantServiceAccountAccessInputBody) MarshalJSON() ([]byte, error)
- func (s *GrantServiceAccountAccessInputBody) SetResourceId(val string)
- func (s *GrantServiceAccountAccessInputBody) SetResourceType(val GrantServiceAccountAccessInputBodyResourceType)
- func (s *GrantServiceAccountAccessInputBody) SetRole(val string)
- func (s *GrantServiceAccountAccessInputBody) SetSchema(val OptURI)
- func (s *GrantServiceAccountAccessInputBody) UnmarshalJSON(data []byte) error
- func (s *GrantServiceAccountAccessInputBody) Validate() error
- type GrantServiceAccountAccessInputBodyResourceType
- func (GrantServiceAccountAccessInputBodyResourceType) AllValues() []GrantServiceAccountAccessInputBodyResourceType
- func (s *GrantServiceAccountAccessInputBodyResourceType) Decode(d *jx.Decoder) error
- func (s GrantServiceAccountAccessInputBodyResourceType) Encode(e *jx.Encoder)
- func (s GrantServiceAccountAccessInputBodyResourceType) MarshalJSON() ([]byte, error)
- func (s GrantServiceAccountAccessInputBodyResourceType) MarshalText() ([]byte, error)
- func (s *GrantServiceAccountAccessInputBodyResourceType) UnmarshalJSON(data []byte) error
- func (s *GrantServiceAccountAccessInputBodyResourceType) UnmarshalText(data []byte) error
- func (s GrantServiceAccountAccessInputBodyResourceType) Validate() error
- type GrantServiceAccountAccessOutputBody
- func (s *GrantServiceAccountAccessOutputBody) Decode(d *jx.Decoder) error
- func (s *GrantServiceAccountAccessOutputBody) Encode(e *jx.Encoder)
- func (s *GrantServiceAccountAccessOutputBody) GetSchema() OptURI
- func (s *GrantServiceAccountAccessOutputBody) GetStatus() string
- func (s *GrantServiceAccountAccessOutputBody) MarshalJSON() ([]byte, error)
- func (s *GrantServiceAccountAccessOutputBody) SetSchema(val OptURI)
- func (s *GrantServiceAccountAccessOutputBody) SetStatus(val string)
- func (s *GrantServiceAccountAccessOutputBody) UnmarshalJSON(data []byte) error
- type GrantServiceAccountAccessParams
- type Invoker
- type ListAuditEventsOutputBody
- func (s *ListAuditEventsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListAuditEventsOutputBody) Encode(e *jx.Encoder)
- func (s *ListAuditEventsOutputBody) GetEvents() []AuditEvent
- func (s *ListAuditEventsOutputBody) GetSchema() OptURI
- func (s *ListAuditEventsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListAuditEventsOutputBody) SetEvents(val []AuditEvent)
- func (s *ListAuditEventsOutputBody) SetSchema(val OptURI)
- func (s *ListAuditEventsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListAuditEventsOutputBody) Validate() error
- type ListBindingsOutputBody
- func (s *ListBindingsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListBindingsOutputBody) Encode(e *jx.Encoder)
- func (s *ListBindingsOutputBody) GetBindings() []Binding
- func (s *ListBindingsOutputBody) GetSchema() OptURI
- func (s *ListBindingsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListBindingsOutputBody) SetBindings(val []Binding)
- func (s *ListBindingsOutputBody) SetSchema(val OptURI)
- func (s *ListBindingsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListBindingsOutputBody) Validate() error
- type ListBindingsParams
- type ListMirrorsOutputBody
- func (s *ListMirrorsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListMirrorsOutputBody) Encode(e *jx.Encoder)
- func (s *ListMirrorsOutputBody) GetMirrors() []Mirror
- func (s *ListMirrorsOutputBody) GetSchema() OptURI
- func (s *ListMirrorsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListMirrorsOutputBody) SetMirrors(val []Mirror)
- func (s *ListMirrorsOutputBody) SetSchema(val OptURI)
- func (s *ListMirrorsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListMirrorsOutputBody) Validate() error
- type ListMirrorsParams
- type ListOIDCProvidersOutputBody
- func (s *ListOIDCProvidersOutputBody) Decode(d *jx.Decoder) error
- func (s *ListOIDCProvidersOutputBody) Encode(e *jx.Encoder)
- func (s *ListOIDCProvidersOutputBody) GetProviders() []OIDCProvider
- func (s *ListOIDCProvidersOutputBody) GetSchema() OptURI
- func (s *ListOIDCProvidersOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListOIDCProvidersOutputBody) SetProviders(val []OIDCProvider)
- func (s *ListOIDCProvidersOutputBody) SetSchema(val OptURI)
- func (s *ListOIDCProvidersOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListOIDCProvidersOutputBody) Validate() error
- type ListOrgMembersOutputBody
- func (s *ListOrgMembersOutputBody) Decode(d *jx.Decoder) error
- func (s *ListOrgMembersOutputBody) Encode(e *jx.Encoder)
- func (s *ListOrgMembersOutputBody) GetMembers() []Membership
- func (s *ListOrgMembersOutputBody) GetSchema() OptURI
- func (s *ListOrgMembersOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListOrgMembersOutputBody) SetMembers(val []Membership)
- func (s *ListOrgMembersOutputBody) SetSchema(val OptURI)
- func (s *ListOrgMembersOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListOrgMembersOutputBody) Validate() error
- type ListOrgMembersParams
- type ListOrgProjectsOutputBody
- func (s *ListOrgProjectsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListOrgProjectsOutputBody) Encode(e *jx.Encoder)
- func (s *ListOrgProjectsOutputBody) GetProjects() []Project
- func (s *ListOrgProjectsOutputBody) GetSchema() OptURI
- func (s *ListOrgProjectsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListOrgProjectsOutputBody) SetProjects(val []Project)
- func (s *ListOrgProjectsOutputBody) SetSchema(val OptURI)
- func (s *ListOrgProjectsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListOrgProjectsOutputBody) Validate() error
- type ListOrgProjectsParams
- type ListOrgsOutputBody
- func (s *ListOrgsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListOrgsOutputBody) Encode(e *jx.Encoder)
- func (s *ListOrgsOutputBody) GetOrgs() []Org
- func (s *ListOrgsOutputBody) GetSchema() OptURI
- func (s *ListOrgsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListOrgsOutputBody) SetOrgs(val []Org)
- func (s *ListOrgsOutputBody) SetSchema(val OptURI)
- func (s *ListOrgsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListOrgsOutputBody) Validate() error
- type ListProjectMembersOutputBody
- func (s *ListProjectMembersOutputBody) Decode(d *jx.Decoder) error
- func (s *ListProjectMembersOutputBody) Encode(e *jx.Encoder)
- func (s *ListProjectMembersOutputBody) GetMembers() []ProjectGrant
- func (s *ListProjectMembersOutputBody) GetSchema() OptURI
- func (s *ListProjectMembersOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListProjectMembersOutputBody) SetMembers(val []ProjectGrant)
- func (s *ListProjectMembersOutputBody) SetSchema(val OptURI)
- func (s *ListProjectMembersOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListProjectMembersOutputBody) Validate() error
- type ListProjectMembersParams
- type ListProjectReposOutputBody
- func (s *ListProjectReposOutputBody) Decode(d *jx.Decoder) error
- func (s *ListProjectReposOutputBody) Encode(e *jx.Encoder)
- func (s *ListProjectReposOutputBody) GetRepos() []Repo
- func (s *ListProjectReposOutputBody) GetSchema() OptURI
- func (s *ListProjectReposOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListProjectReposOutputBody) SetRepos(val []Repo)
- func (s *ListProjectReposOutputBody) SetSchema(val OptURI)
- func (s *ListProjectReposOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListProjectReposOutputBody) Validate() error
- type ListProjectReposParams
- type ListProjectsOutputBody
- func (s *ListProjectsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListProjectsOutputBody) Encode(e *jx.Encoder)
- func (s *ListProjectsOutputBody) GetProject() OptProject
- func (s *ListProjectsOutputBody) GetProjects() []Project
- func (s *ListProjectsOutputBody) GetSchema() OptURI
- func (s *ListProjectsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListProjectsOutputBody) SetProject(val OptProject)
- func (s *ListProjectsOutputBody) SetProjects(val []Project)
- func (s *ListProjectsOutputBody) SetSchema(val OptURI)
- func (s *ListProjectsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListProjectsOutputBody) Validate() error
- type ListProjectsParams
- type ListServiceAccountGrantsOutputBody
- func (s *ListServiceAccountGrantsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListServiceAccountGrantsOutputBody) Encode(e *jx.Encoder)
- func (s *ListServiceAccountGrantsOutputBody) GetGrants() []ServiceAccountGrant
- func (s *ListServiceAccountGrantsOutputBody) GetSchema() OptURI
- func (s *ListServiceAccountGrantsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListServiceAccountGrantsOutputBody) SetGrants(val []ServiceAccountGrant)
- func (s *ListServiceAccountGrantsOutputBody) SetSchema(val OptURI)
- func (s *ListServiceAccountGrantsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListServiceAccountGrantsOutputBody) Validate() error
- type ListServiceAccountGrantsParams
- type ListServiceAccountsOutputBody
- func (s *ListServiceAccountsOutputBody) Decode(d *jx.Decoder) error
- func (s *ListServiceAccountsOutputBody) Encode(e *jx.Encoder)
- func (s *ListServiceAccountsOutputBody) GetSchema() OptURI
- func (s *ListServiceAccountsOutputBody) GetServiceAccounts() []ServiceAccountWithGrants
- func (s *ListServiceAccountsOutputBody) MarshalJSON() ([]byte, error)
- func (s *ListServiceAccountsOutputBody) SetSchema(val OptURI)
- func (s *ListServiceAccountsOutputBody) SetServiceAccounts(val []ServiceAccountWithGrants)
- func (s *ListServiceAccountsOutputBody) UnmarshalJSON(data []byte) error
- func (s *ListServiceAccountsOutputBody) Validate() error
- type ListServiceAccountsParams
- type LookupRef
- func (s *LookupRef) Decode(d *jx.Decoder) error
- func (s *LookupRef) Encode(e *jx.Encoder)
- func (s *LookupRef) GetID() string
- func (s *LookupRef) GetType() string
- func (s *LookupRef) MarshalJSON() ([]byte, error)
- func (s *LookupRef) SetID(val string)
- func (s *LookupRef) SetType(val string)
- func (s *LookupRef) UnmarshalJSON(data []byte) error
- func (s *LookupRef) Validate() error
- type LookupRefResult
- func (s *LookupRefResult) Decode(d *jx.Decoder) error
- func (s *LookupRefResult) Encode(e *jx.Encoder)
- func (s *LookupRefResult) GetID() string
- func (s *LookupRefResult) GetName() OptString
- func (s *LookupRefResult) GetOwnerId() OptString
- func (s *LookupRefResult) GetOwnerType() OptLookupRefResultOwnerType
- func (s *LookupRefResult) GetProjectId() OptString
- func (s *LookupRefResult) GetType() string
- func (s *LookupRefResult) GetURL() OptString
- func (s *LookupRefResult) MarshalJSON() ([]byte, error)
- func (s *LookupRefResult) SetID(val string)
- func (s *LookupRefResult) SetName(val OptString)
- func (s *LookupRefResult) SetOwnerId(val OptString)
- func (s *LookupRefResult) SetOwnerType(val OptLookupRefResultOwnerType)
- func (s *LookupRefResult) SetProjectId(val OptString)
- func (s *LookupRefResult) SetType(val string)
- func (s *LookupRefResult) SetURL(val OptString)
- func (s *LookupRefResult) UnmarshalJSON(data []byte) error
- func (s *LookupRefResult) Validate() error
- type LookupRefResultOwnerType
- func (LookupRefResultOwnerType) AllValues() []LookupRefResultOwnerType
- func (s *LookupRefResultOwnerType) Decode(d *jx.Decoder) error
- func (s LookupRefResultOwnerType) Encode(e *jx.Encoder)
- func (s LookupRefResultOwnerType) MarshalJSON() ([]byte, error)
- func (s LookupRefResultOwnerType) MarshalText() ([]byte, error)
- func (s *LookupRefResultOwnerType) UnmarshalJSON(data []byte) error
- func (s *LookupRefResultOwnerType) UnmarshalText(data []byte) error
- func (s LookupRefResultOwnerType) Validate() error
- type LookupResourcesOutputBody
- func (s *LookupResourcesOutputBody) Decode(d *jx.Decoder) error
- func (s *LookupResourcesOutputBody) Encode(e *jx.Encoder)
- func (s *LookupResourcesOutputBody) GetPermission() OptString
- func (s *LookupResourcesOutputBody) GetResourceIds() []string
- func (s *LookupResourcesOutputBody) GetResourceType() string
- func (s *LookupResourcesOutputBody) GetResources() []ResourceAccess
- func (s *LookupResourcesOutputBody) GetSchema() OptURI
- func (s *LookupResourcesOutputBody) MarshalJSON() ([]byte, error)
- func (s *LookupResourcesOutputBody) SetPermission(val OptString)
- func (s *LookupResourcesOutputBody) SetResourceIds(val []string)
- func (s *LookupResourcesOutputBody) SetResourceType(val string)
- func (s *LookupResourcesOutputBody) SetResources(val []ResourceAccess)
- func (s *LookupResourcesOutputBody) SetSchema(val OptURI)
- func (s *LookupResourcesOutputBody) UnmarshalJSON(data []byte) error
- func (s *LookupResourcesOutputBody) Validate() error
- type LookupResourcesParams
- type MeAuth
- func (s *MeAuth) Decode(d *jx.Decoder) error
- func (s *MeAuth) Encode(e *jx.Encoder)
- func (s *MeAuth) GetProvider() string
- func (s *MeAuth) GetProviderUserId() string
- func (s *MeAuth) MarshalJSON() ([]byte, error)
- func (s *MeAuth) SetProvider(val string)
- func (s *MeAuth) SetProviderUserId(val string)
- func (s *MeAuth) UnmarshalJSON(data []byte) error
- type MeGlobal
- func (s *MeGlobal) Decode(d *jx.Decoder) error
- func (s *MeGlobal) Encode(e *jx.Encoder)
- func (s *MeGlobal) GetAccountId() string
- func (s *MeGlobal) GetAvatarUrl() OptString
- func (s *MeGlobal) GetHandle() OptString
- func (s *MeGlobal) GetHandles() []MeIdentityHandle
- func (s *MeGlobal) GetHomeJurisdiction() OptString
- func (s *MeGlobal) MarshalJSON() ([]byte, error)
- func (s *MeGlobal) SetAccountId(val string)
- func (s *MeGlobal) SetAvatarUrl(val OptString)
- func (s *MeGlobal) SetHandle(val OptString)
- func (s *MeGlobal) SetHandles(val []MeIdentityHandle)
- func (s *MeGlobal) SetHomeJurisdiction(val OptString)
- func (s *MeGlobal) UnmarshalJSON(data []byte) error
- func (s *MeGlobal) Validate() error
- type MeIdentityHandle
- func (s *MeIdentityHandle) Decode(d *jx.Decoder) error
- func (s *MeIdentityHandle) Encode(e *jx.Encoder)
- func (s *MeIdentityHandle) GetHandle() string
- func (s *MeIdentityHandle) GetProvider() string
- func (s *MeIdentityHandle) GetProviderUserId() string
- func (s *MeIdentityHandle) MarshalJSON() ([]byte, error)
- func (s *MeIdentityHandle) SetHandle(val string)
- func (s *MeIdentityHandle) SetProvider(val string)
- func (s *MeIdentityHandle) SetProviderUserId(val string)
- func (s *MeIdentityHandle) UnmarshalJSON(data []byte) error
- type MeRegional
- func (s *MeRegional) Decode(d *jx.Decoder) error
- func (s *MeRegional) Encode(e *jx.Encoder)
- func (s *MeRegional) GetBio() OptString
- func (s *MeRegional) GetCompany() OptString
- func (s *MeRegional) GetDisplayName() OptString
- func (s *MeRegional) GetEmail() OptString
- func (s *MeRegional) GetLocation() OptString
- func (s *MeRegional) MarshalJSON() ([]byte, error)
- func (s *MeRegional) SetBio(val OptString)
- func (s *MeRegional) SetCompany(val OptString)
- func (s *MeRegional) SetDisplayName(val OptString)
- func (s *MeRegional) SetEmail(val OptString)
- func (s *MeRegional) SetLocation(val OptString)
- func (s *MeRegional) UnmarshalJSON(data []byte) error
- type MeRegionalUnavailable
- func (s *MeRegionalUnavailable) Decode(d *jx.Decoder) error
- func (s *MeRegionalUnavailable) Encode(e *jx.Encoder)
- func (s *MeRegionalUnavailable) GetError() MeRegionalUnavailableError
- func (s *MeRegionalUnavailable) GetHomeCoreUrl() string
- func (s *MeRegionalUnavailable) GetJurisdiction() string
- func (s *MeRegionalUnavailable) GetMessage() string
- func (s *MeRegionalUnavailable) MarshalJSON() ([]byte, error)
- func (s *MeRegionalUnavailable) SetError(val MeRegionalUnavailableError)
- func (s *MeRegionalUnavailable) SetHomeCoreUrl(val string)
- func (s *MeRegionalUnavailable) SetJurisdiction(val string)
- func (s *MeRegionalUnavailable) SetMessage(val string)
- func (s *MeRegionalUnavailable) UnmarshalJSON(data []byte) error
- func (s *MeRegionalUnavailable) Validate() error
- type MeRegionalUnavailableError
- func (MeRegionalUnavailableError) AllValues() []MeRegionalUnavailableError
- func (s *MeRegionalUnavailableError) Decode(d *jx.Decoder) error
- func (s MeRegionalUnavailableError) Encode(e *jx.Encoder)
- func (s MeRegionalUnavailableError) MarshalJSON() ([]byte, error)
- func (s MeRegionalUnavailableError) MarshalText() ([]byte, error)
- func (s *MeRegionalUnavailableError) UnmarshalJSON(data []byte) error
- func (s *MeRegionalUnavailableError) UnmarshalText(data []byte) error
- func (s MeRegionalUnavailableError) Validate() error
- type Membership
- func (s *Membership) Decode(d *jx.Decoder) error
- func (s *Membership) Encode(e *jx.Encoder)
- func (s *Membership) GetAccountId() string
- func (s *Membership) GetCreatedAt() time.Time
- func (s *Membership) GetID() string
- func (s *Membership) GetOrgId() string
- func (s *Membership) GetRole() string
- func (s *Membership) GetSchema() OptURI
- func (s *Membership) GetStatus() string
- func (s *Membership) GetWorkosOrgMembershipId() OptString
- func (s *Membership) MarshalJSON() ([]byte, error)
- func (s *Membership) SetAccountId(val string)
- func (s *Membership) SetCreatedAt(val time.Time)
- func (s *Membership) SetID(val string)
- func (s *Membership) SetOrgId(val string)
- func (s *Membership) SetRole(val string)
- func (s *Membership) SetSchema(val OptURI)
- func (s *Membership) SetStatus(val string)
- func (s *Membership) SetWorkosOrgMembershipId(val OptString)
- func (s *Membership) UnmarshalJSON(data []byte) error
- type Mirror
- func (s *Mirror) Decode(d *jx.Decoder) error
- func (s *Mirror) Encode(e *jx.Encoder)
- func (s *Mirror) GetClusterHost() string
- func (s *Mirror) GetCreatedAt() time.Time
- func (s *Mirror) GetInstallationId() OptInt64
- func (s *Mirror) GetIsArchived() OptBool
- func (s *Mirror) GetIsPrivate() OptBool
- func (s *Mirror) GetJurisdiction() OptString
- func (s *Mirror) GetMirrorId() string
- func (s *Mirror) GetOwner() string
- func (s *Mirror) GetProvider() string
- func (s *Mirror) GetRepo() string
- func (s *Mirror) GetSchema() OptURI
- func (s *Mirror) GetSuspendedAt() OptDateTime
- func (s *Mirror) MarshalJSON() ([]byte, error)
- func (s *Mirror) SetClusterHost(val string)
- func (s *Mirror) SetCreatedAt(val time.Time)
- func (s *Mirror) SetInstallationId(val OptInt64)
- func (s *Mirror) SetIsArchived(val OptBool)
- func (s *Mirror) SetIsPrivate(val OptBool)
- func (s *Mirror) SetJurisdiction(val OptString)
- func (s *Mirror) SetMirrorId(val string)
- func (s *Mirror) SetOwner(val string)
- func (s *Mirror) SetProvider(val string)
- func (s *Mirror) SetRepo(val string)
- func (s *Mirror) SetSchema(val OptURI)
- func (s *Mirror) SetSuspendedAt(val OptDateTime)
- func (s *Mirror) UnmarshalJSON(data []byte) error
- type OIDCProvider
- func (s *OIDCProvider) Decode(d *jx.Decoder) error
- func (s *OIDCProvider) Encode(e *jx.Encoder)
- func (s *OIDCProvider) GetDescription() OptString
- func (s *OIDCProvider) GetDisplayName() OptString
- func (s *OIDCProvider) GetID() string
- func (s *OIDCProvider) GetIssuer() string
- func (s *OIDCProvider) MarshalJSON() ([]byte, error)
- func (s *OIDCProvider) SetDescription(val OptString)
- func (s *OIDCProvider) SetDisplayName(val OptString)
- func (s *OIDCProvider) SetID(val string)
- func (s *OIDCProvider) SetIssuer(val string)
- func (s *OIDCProvider) UnmarshalJSON(data []byte) error
- type OperationName
- type OptAddOrgMemberInputBodyRole
- func (o *OptAddOrgMemberInputBodyRole) Decode(d *jx.Decoder) error
- func (o OptAddOrgMemberInputBodyRole) Encode(e *jx.Encoder)
- func (o OptAddOrgMemberInputBodyRole) Get() (v AddOrgMemberInputBodyRole, ok bool)
- func (o OptAddOrgMemberInputBodyRole) IsSet() bool
- func (s OptAddOrgMemberInputBodyRole) MarshalJSON() ([]byte, error)
- func (o OptAddOrgMemberInputBodyRole) Or(d AddOrgMemberInputBodyRole) AddOrgMemberInputBodyRole
- func (o *OptAddOrgMemberInputBodyRole) Reset()
- func (o *OptAddOrgMemberInputBodyRole) SetTo(v AddOrgMemberInputBodyRole)
- func (s *OptAddOrgMemberInputBodyRole) UnmarshalJSON(data []byte) error
- type OptAuditEventMetadata
- func (o *OptAuditEventMetadata) Decode(d *jx.Decoder) error
- func (o OptAuditEventMetadata) Encode(e *jx.Encoder)
- func (o OptAuditEventMetadata) Get() (v AuditEventMetadata, ok bool)
- func (o OptAuditEventMetadata) IsSet() bool
- func (s OptAuditEventMetadata) MarshalJSON() ([]byte, error)
- func (o OptAuditEventMetadata) Or(d AuditEventMetadata) AuditEventMetadata
- func (o *OptAuditEventMetadata) Reset()
- func (o *OptAuditEventMetadata) SetTo(v AuditEventMetadata)
- func (s *OptAuditEventMetadata) UnmarshalJSON(data []byte) error
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptCreateRepoInputBodyObjectFormat
- func (o *OptCreateRepoInputBodyObjectFormat) Decode(d *jx.Decoder) error
- func (o OptCreateRepoInputBodyObjectFormat) Encode(e *jx.Encoder)
- func (o OptCreateRepoInputBodyObjectFormat) Get() (v CreateRepoInputBodyObjectFormat, ok bool)
- func (o OptCreateRepoInputBodyObjectFormat) IsSet() bool
- func (s OptCreateRepoInputBodyObjectFormat) MarshalJSON() ([]byte, error)
- func (o OptCreateRepoInputBodyObjectFormat) Or(d CreateRepoInputBodyObjectFormat) CreateRepoInputBodyObjectFormat
- func (o *OptCreateRepoInputBodyObjectFormat) Reset()
- func (o *OptCreateRepoInputBodyObjectFormat) SetTo(v CreateRepoInputBodyObjectFormat)
- func (s *OptCreateRepoInputBodyObjectFormat) UnmarshalJSON(data []byte) error
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptGetMeOutputBodyMode
- func (o *OptGetMeOutputBodyMode) Decode(d *jx.Decoder) error
- func (o OptGetMeOutputBodyMode) Encode(e *jx.Encoder)
- func (o OptGetMeOutputBodyMode) Get() (v GetMeOutputBodyMode, ok bool)
- func (o OptGetMeOutputBodyMode) IsSet() bool
- func (s OptGetMeOutputBodyMode) MarshalJSON() ([]byte, error)
- func (o OptGetMeOutputBodyMode) Or(d GetMeOutputBodyMode) GetMeOutputBodyMode
- func (o *OptGetMeOutputBodyMode) Reset()
- func (o *OptGetMeOutputBodyMode) SetTo(v GetMeOutputBodyMode)
- func (s *OptGetMeOutputBodyMode) UnmarshalJSON(data []byte) error
- type OptGetPermissionsOutputBodyExplain
- func (o *OptGetPermissionsOutputBodyExplain) Decode(d *jx.Decoder) error
- func (o OptGetPermissionsOutputBodyExplain) Encode(e *jx.Encoder)
- func (o OptGetPermissionsOutputBodyExplain) Get() (v GetPermissionsOutputBodyExplain, ok bool)
- func (o OptGetPermissionsOutputBodyExplain) IsSet() bool
- func (s OptGetPermissionsOutputBodyExplain) MarshalJSON() ([]byte, error)
- func (o OptGetPermissionsOutputBodyExplain) Or(d GetPermissionsOutputBodyExplain) GetPermissionsOutputBodyExplain
- func (o *OptGetPermissionsOutputBodyExplain) Reset()
- func (o *OptGetPermissionsOutputBodyExplain) SetTo(v GetPermissionsOutputBodyExplain)
- func (s *OptGetPermissionsOutputBodyExplain) UnmarshalJSON(data []byte) error
- type OptGrantProjectAccessInputBodyGranteeType
- func (o *OptGrantProjectAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
- func (o OptGrantProjectAccessInputBodyGranteeType) Encode(e *jx.Encoder)
- func (o OptGrantProjectAccessInputBodyGranteeType) Get() (v GrantProjectAccessInputBodyGranteeType, ok bool)
- func (o OptGrantProjectAccessInputBodyGranteeType) IsSet() bool
- func (s OptGrantProjectAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)
- func (o OptGrantProjectAccessInputBodyGranteeType) Or(d GrantProjectAccessInputBodyGranteeType) GrantProjectAccessInputBodyGranteeType
- func (o *OptGrantProjectAccessInputBodyGranteeType) Reset()
- func (o *OptGrantProjectAccessInputBodyGranteeType) SetTo(v GrantProjectAccessInputBodyGranteeType)
- func (s *OptGrantProjectAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error
- type OptGrantRepoAccessInputBodyGranteeType
- func (o *OptGrantRepoAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
- func (o OptGrantRepoAccessInputBodyGranteeType) Encode(e *jx.Encoder)
- func (o OptGrantRepoAccessInputBodyGranteeType) Get() (v GrantRepoAccessInputBodyGranteeType, ok bool)
- func (o OptGrantRepoAccessInputBodyGranteeType) IsSet() bool
- func (s OptGrantRepoAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)
- func (o OptGrantRepoAccessInputBodyGranteeType) Or(d GrantRepoAccessInputBodyGranteeType) GrantRepoAccessInputBodyGranteeType
- func (o *OptGrantRepoAccessInputBodyGranteeType) Reset()
- func (o *OptGrantRepoAccessInputBodyGranteeType) SetTo(v GrantRepoAccessInputBodyGranteeType)
- func (s *OptGrantRepoAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error
- type OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptLookupRefResultOwnerType
- func (o *OptLookupRefResultOwnerType) Decode(d *jx.Decoder) error
- func (o OptLookupRefResultOwnerType) Encode(e *jx.Encoder)
- func (o OptLookupRefResultOwnerType) Get() (v LookupRefResultOwnerType, ok bool)
- func (o OptLookupRefResultOwnerType) IsSet() bool
- func (s OptLookupRefResultOwnerType) MarshalJSON() ([]byte, error)
- func (o OptLookupRefResultOwnerType) Or(d LookupRefResultOwnerType) LookupRefResultOwnerType
- func (o *OptLookupRefResultOwnerType) Reset()
- func (o *OptLookupRefResultOwnerType) SetTo(v LookupRefResultOwnerType)
- func (s *OptLookupRefResultOwnerType) UnmarshalJSON(data []byte) error
- type OptMeRegional
- func (o *OptMeRegional) Decode(d *jx.Decoder) error
- func (o OptMeRegional) Encode(e *jx.Encoder)
- func (o OptMeRegional) Get() (v MeRegional, ok bool)
- func (o OptMeRegional) IsSet() bool
- func (s OptMeRegional) MarshalJSON() ([]byte, error)
- func (o OptMeRegional) Or(d MeRegional) MeRegional
- func (o *OptMeRegional) Reset()
- func (o *OptMeRegional) SetTo(v MeRegional)
- func (s *OptMeRegional) UnmarshalJSON(data []byte) error
- type OptMeRegionalUnavailable
- func (o *OptMeRegionalUnavailable) Decode(d *jx.Decoder) error
- func (o OptMeRegionalUnavailable) Encode(e *jx.Encoder)
- func (o OptMeRegionalUnavailable) Get() (v MeRegionalUnavailable, ok bool)
- func (o OptMeRegionalUnavailable) IsSet() bool
- func (s OptMeRegionalUnavailable) MarshalJSON() ([]byte, error)
- func (o OptMeRegionalUnavailable) Or(d MeRegionalUnavailable) MeRegionalUnavailable
- func (o *OptMeRegionalUnavailable) Reset()
- func (o *OptMeRegionalUnavailable) SetTo(v MeRegionalUnavailable)
- func (s *OptMeRegionalUnavailable) UnmarshalJSON(data []byte) error
- type OptProject
- func (o *OptProject) Decode(d *jx.Decoder) error
- func (o OptProject) Encode(e *jx.Encoder)
- func (o OptProject) Get() (v Project, ok bool)
- func (o OptProject) IsSet() bool
- func (s OptProject) MarshalJSON() ([]byte, error)
- func (o OptProject) Or(d Project) Project
- func (o *OptProject) Reset()
- func (o *OptProject) SetTo(v Project)
- func (s *OptProject) UnmarshalJSON(data []byte) error
- type OptRepoObjectFormat
- func (o *OptRepoObjectFormat) Decode(d *jx.Decoder) error
- func (o OptRepoObjectFormat) Encode(e *jx.Encoder)
- func (o OptRepoObjectFormat) Get() (v RepoObjectFormat, ok bool)
- func (o OptRepoObjectFormat) IsSet() bool
- func (s OptRepoObjectFormat) MarshalJSON() ([]byte, error)
- func (o OptRepoObjectFormat) Or(d RepoObjectFormat) RepoObjectFormat
- func (o *OptRepoObjectFormat) Reset()
- func (o *OptRepoObjectFormat) SetTo(v RepoObjectFormat)
- func (s *OptRepoObjectFormat) UnmarshalJSON(data []byte) error
- type OptRepoState
- func (o *OptRepoState) Decode(d *jx.Decoder) error
- func (o OptRepoState) Encode(e *jx.Encoder)
- func (o OptRepoState) Get() (v RepoState, ok bool)
- func (o OptRepoState) IsSet() bool
- func (s OptRepoState) MarshalJSON() ([]byte, error)
- func (o OptRepoState) Or(d RepoState) RepoState
- func (o *OptRepoState) Reset()
- func (o *OptRepoState) SetTo(v RepoState)
- func (s *OptRepoState) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptURI
- func (o *OptURI) Decode(d *jx.Decoder) error
- func (o OptURI) Encode(e *jx.Encoder)
- func (o OptURI) Get() (v url.URL, ok bool)
- func (o OptURI) IsSet() bool
- func (s OptURI) MarshalJSON() ([]byte, error)
- func (o OptURI) Or(d url.URL) url.URL
- func (o *OptURI) Reset()
- func (o *OptURI) SetTo(v url.URL)
- func (s *OptURI) UnmarshalJSON(data []byte) error
- type Option
- type Org
- func (s *Org) Decode(d *jx.Decoder) error
- func (s *Org) Encode(e *jx.Encoder)
- func (s *Org) GetCreatedAt() time.Time
- func (s *Org) GetID() string
- func (s *Org) GetName() string
- func (s *Org) GetRegion() string
- func (s *Org) GetSchema() OptURI
- func (s *Org) GetWorkosOrganizationId() OptString
- func (s *Org) MarshalJSON() ([]byte, error)
- func (s *Org) SetCreatedAt(val time.Time)
- func (s *Org) SetID(val string)
- func (s *Org) SetName(val string)
- func (s *Org) SetRegion(val string)
- func (s *Org) SetSchema(val OptURI)
- func (s *Org) SetWorkosOrganizationId(val OptString)
- func (s *Org) UnmarshalJSON(data []byte) error
- type Project
- func (s *Project) Decode(d *jx.Decoder) error
- func (s *Project) Encode(e *jx.Encoder)
- func (s *Project) GetCreatedAt() time.Time
- func (s *Project) GetID() string
- func (s *Project) GetName() string
- func (s *Project) GetOwnerId() string
- func (s *Project) GetOwnerType() ProjectOwnerType
- func (s *Project) GetRegion() string
- func (s *Project) GetSchema() OptURI
- func (s *Project) MarshalJSON() ([]byte, error)
- func (s *Project) SetCreatedAt(val time.Time)
- func (s *Project) SetID(val string)
- func (s *Project) SetName(val string)
- func (s *Project) SetOwnerId(val string)
- func (s *Project) SetOwnerType(val ProjectOwnerType)
- func (s *Project) SetRegion(val string)
- func (s *Project) SetSchema(val OptURI)
- func (s *Project) UnmarshalJSON(data []byte) error
- func (s *Project) Validate() error
- type ProjectGrant
- func (s *ProjectGrant) Decode(d *jx.Decoder) error
- func (s *ProjectGrant) Encode(e *jx.Encoder)
- func (s *ProjectGrant) GetGranteeId() string
- func (s *ProjectGrant) GetGranteeType() string
- func (s *ProjectGrant) GetRole() string
- func (s *ProjectGrant) MarshalJSON() ([]byte, error)
- func (s *ProjectGrant) SetGranteeId(val string)
- func (s *ProjectGrant) SetGranteeType(val string)
- func (s *ProjectGrant) SetRole(val string)
- func (s *ProjectGrant) UnmarshalJSON(data []byte) error
- type ProjectOwnerType
- func (ProjectOwnerType) AllValues() []ProjectOwnerType
- func (s *ProjectOwnerType) Decode(d *jx.Decoder) error
- func (s ProjectOwnerType) Encode(e *jx.Encoder)
- func (s ProjectOwnerType) MarshalJSON() ([]byte, error)
- func (s ProjectOwnerType) MarshalText() ([]byte, error)
- func (s *ProjectOwnerType) UnmarshalJSON(data []byte) error
- func (s *ProjectOwnerType) UnmarshalText(data []byte) error
- func (s ProjectOwnerType) Validate() error
- type RemoveOrgMemberNoContent
- type RemoveOrgMemberParams
- type Repo
- func (s *Repo) Decode(d *jx.Decoder) error
- func (s *Repo) Encode(e *jx.Encoder)
- func (s *Repo) GetClusterHost() OptString
- func (s *Repo) GetForeign() OptBool
- func (s *Repo) GetID() string
- func (s *Repo) GetName() string
- func (s *Repo) GetObjectFormat() OptRepoObjectFormat
- func (s *Repo) GetOwningProjectId() string
- func (s *Repo) GetPath() OptString
- func (s *Repo) GetProvisionAttempts() OptInt64
- func (s *Repo) GetProvisionReason() OptString
- func (s *Repo) GetSchema() OptURI
- func (s *Repo) GetState() OptRepoState
- func (s *Repo) MarshalJSON() ([]byte, error)
- func (s *Repo) SetClusterHost(val OptString)
- func (s *Repo) SetForeign(val OptBool)
- func (s *Repo) SetID(val string)
- func (s *Repo) SetName(val string)
- func (s *Repo) SetObjectFormat(val OptRepoObjectFormat)
- func (s *Repo) SetOwningProjectId(val string)
- func (s *Repo) SetPath(val OptString)
- func (s *Repo) SetProvisionAttempts(val OptInt64)
- func (s *Repo) SetProvisionReason(val OptString)
- func (s *Repo) SetSchema(val OptURI)
- func (s *Repo) SetState(val OptRepoState)
- func (s *Repo) UnmarshalJSON(data []byte) error
- func (s *Repo) Validate() error
- type RepoObjectFormat
- func (RepoObjectFormat) AllValues() []RepoObjectFormat
- func (s *RepoObjectFormat) Decode(d *jx.Decoder) error
- func (s RepoObjectFormat) Encode(e *jx.Encoder)
- func (s RepoObjectFormat) MarshalJSON() ([]byte, error)
- func (s RepoObjectFormat) MarshalText() ([]byte, error)
- func (s *RepoObjectFormat) UnmarshalJSON(data []byte) error
- func (s *RepoObjectFormat) UnmarshalText(data []byte) error
- func (s RepoObjectFormat) Validate() error
- type RepoState
- func (RepoState) AllValues() []RepoState
- func (s *RepoState) Decode(d *jx.Decoder) error
- func (s RepoState) Encode(e *jx.Encoder)
- func (s RepoState) MarshalJSON() ([]byte, error)
- func (s RepoState) MarshalText() ([]byte, error)
- func (s *RepoState) UnmarshalJSON(data []byte) error
- func (s *RepoState) UnmarshalText(data []byte) error
- func (s RepoState) Validate() error
- type ResolveHandleParams
- type ResolvedIdentity
- func (s *ResolvedIdentity) Decode(d *jx.Decoder) error
- func (s *ResolvedIdentity) Encode(e *jx.Encoder)
- func (s *ResolvedIdentity) GetAccountId() string
- func (s *ResolvedIdentity) GetHandle() string
- func (s *ResolvedIdentity) GetProvider() string
- func (s *ResolvedIdentity) GetProviderUserId() string
- func (s *ResolvedIdentity) GetSchema() OptURI
- func (s *ResolvedIdentity) MarshalJSON() ([]byte, error)
- func (s *ResolvedIdentity) SetAccountId(val string)
- func (s *ResolvedIdentity) SetHandle(val string)
- func (s *ResolvedIdentity) SetProvider(val string)
- func (s *ResolvedIdentity) SetProviderUserId(val string)
- func (s *ResolvedIdentity) SetSchema(val OptURI)
- func (s *ResolvedIdentity) UnmarshalJSON(data []byte) error
- type ResourceAccess
- func (s *ResourceAccess) Decode(d *jx.Decoder) error
- func (s *ResourceAccess) Encode(e *jx.Encoder)
- func (s *ResourceAccess) GetPermissions() []string
- func (s *ResourceAccess) GetResourceId() string
- func (s *ResourceAccess) MarshalJSON() ([]byte, error)
- func (s *ResourceAccess) SetPermissions(val []string)
- func (s *ResourceAccess) SetResourceId(val string)
- func (s *ResourceAccess) UnmarshalJSON(data []byte) error
- func (s *ResourceAccess) Validate() error
- type RevokeProjectAccessByProviderNoContent
- type RevokeProjectAccessByProviderParams
- type RevokeProjectAccessNoContent
- type RevokeProjectAccessParams
- type RevokeServiceAccountAccessNoContent
- type RevokeServiceAccountAccessParams
- type RevokeServiceAccountAccessResourceType
- func (RevokeServiceAccountAccessResourceType) AllValues() []RevokeServiceAccountAccessResourceType
- func (s RevokeServiceAccountAccessResourceType) MarshalText() ([]byte, error)
- func (s *RevokeServiceAccountAccessResourceType) UnmarshalText(data []byte) error
- func (s RevokeServiceAccountAccessResourceType) Validate() error
- type SecuritySource
- type ServiceAccount
- func (s *ServiceAccount) Decode(d *jx.Decoder) error
- func (s *ServiceAccount) Encode(e *jx.Encoder)
- func (s *ServiceAccount) GetAccountId() string
- func (s *ServiceAccount) GetCreatedAt() time.Time
- func (s *ServiceAccount) GetName() string
- func (s *ServiceAccount) GetOrgId() string
- func (s *ServiceAccount) GetSchema() OptURI
- func (s *ServiceAccount) GetStatus() string
- func (s *ServiceAccount) GetSystemManaged() bool
- func (s *ServiceAccount) MarshalJSON() ([]byte, error)
- func (s *ServiceAccount) SetAccountId(val string)
- func (s *ServiceAccount) SetCreatedAt(val time.Time)
- func (s *ServiceAccount) SetName(val string)
- func (s *ServiceAccount) SetOrgId(val string)
- func (s *ServiceAccount) SetSchema(val OptURI)
- func (s *ServiceAccount) SetStatus(val string)
- func (s *ServiceAccount) SetSystemManaged(val bool)
- func (s *ServiceAccount) UnmarshalJSON(data []byte) error
- type ServiceAccountGrant
- func (s *ServiceAccountGrant) Decode(d *jx.Decoder) error
- func (s *ServiceAccountGrant) Encode(e *jx.Encoder)
- func (s *ServiceAccountGrant) GetResourceId() string
- func (s *ServiceAccountGrant) GetResourceName() OptString
- func (s *ServiceAccountGrant) GetResourceType() string
- func (s *ServiceAccountGrant) GetRole() string
- func (s *ServiceAccountGrant) MarshalJSON() ([]byte, error)
- func (s *ServiceAccountGrant) SetResourceId(val string)
- func (s *ServiceAccountGrant) SetResourceName(val OptString)
- func (s *ServiceAccountGrant) SetResourceType(val string)
- func (s *ServiceAccountGrant) SetRole(val string)
- func (s *ServiceAccountGrant) UnmarshalJSON(data []byte) error
- type ServiceAccountWithGrants
- func (s *ServiceAccountWithGrants) Decode(d *jx.Decoder) error
- func (s *ServiceAccountWithGrants) Encode(e *jx.Encoder)
- func (s *ServiceAccountWithGrants) GetAccountId() string
- func (s *ServiceAccountWithGrants) GetCreatedAt() time.Time
- func (s *ServiceAccountWithGrants) GetGrants() []string
- func (s *ServiceAccountWithGrants) GetName() string
- func (s *ServiceAccountWithGrants) GetOrgId() string
- func (s *ServiceAccountWithGrants) GetStatus() string
- func (s *ServiceAccountWithGrants) GetSystemManaged() bool
- func (s *ServiceAccountWithGrants) MarshalJSON() ([]byte, error)
- func (s *ServiceAccountWithGrants) SetAccountId(val string)
- func (s *ServiceAccountWithGrants) SetCreatedAt(val time.Time)
- func (s *ServiceAccountWithGrants) SetGrants(val []string)
- func (s *ServiceAccountWithGrants) SetName(val string)
- func (s *ServiceAccountWithGrants) SetOrgId(val string)
- func (s *ServiceAccountWithGrants) SetStatus(val string)
- func (s *ServiceAccountWithGrants) SetSystemManaged(val bool)
- func (s *ServiceAccountWithGrants) UnmarshalJSON(data []byte) error
- func (s *ServiceAccountWithGrants) Validate() error
- type SessionAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIError ¶
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 ¶
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 ¶
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.
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 ¶
func (s *AddOrgMemberInputBody) GetRole() OptAddOrgMemberInputBodyRole
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 ¶
func (s *AddOrgMemberInputBody) SetRole(val OptAddOrgMemberInputBodyRole)
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 ¶
func (AddOrgMemberInputBodyRole) AllValues() []AddOrgMemberInputBodyRole
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) 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) 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 ¶
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 ¶
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) GetAccountId ¶
GetAccountId returns the value of AccountId.
func (*Binding) GetAttributeFilter ¶
GetAttributeFilter returns the value of AttributeFilter.
func (*Binding) GetCreatedAt ¶
GetCreatedAt returns the value of CreatedAt.
func (*Binding) GetProviderId ¶
GetProviderId returns the value of ProviderId.
func (*Binding) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Binding) SetAccountId ¶
SetAccountId sets the value of AccountId.
func (*Binding) SetAttributeFilter ¶
SetAttributeFilter sets the value of AttributeFilter.
func (*Binding) SetCreatedAt ¶
SetCreatedAt sets the value of CreatedAt.
func (*Binding) SetProviderId ¶
SetProviderId sets the value of ProviderId.
func (*Binding) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func New ¶
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) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, request *CreateProjectInputBody) (*Project, error)
CreateProject invokes createProject operation.
Create project.
POST /projects
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 ¶
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) 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 ¶
func (c *Client) GrantProjectAccess(ctx context.Context, request *GrantProjectAccessInputBody, params GrantProjectAccessParams) (*GrantProjectAccessOutputBody, error)
GrantProjectAccess invokes grantProjectAccess operation.
Grant project access to an identity.
POST /projects/{projectId}/grants
func (*Client) GrantRepoAccess ¶
func (c *Client) GrantRepoAccess(ctx context.Context, request *GrantRepoAccessInputBody, params GrantRepoAccessParams) (*GrantRepoAccessOutputBody, error)
GrantRepoAccess invokes grantRepoAccess operation.
Grant repo access to an identity.
POST /repos/{repoId}/grants
func (*Client) GrantServiceAccountAccess ¶
func (c *Client) GrantServiceAccountAccess(ctx context.Context, request *GrantServiceAccountAccessInputBody, params GrantServiceAccountAccessParams) (*GrantServiceAccountAccessOutputBody, error)
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 ¶
func (c *Client) ListServiceAccountGrants(ctx context.Context, params ListServiceAccountGrantsParams) (*ListServiceAccountGrantsOutputBody, error)
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 ¶
func (s *CreateMirrorInputBody) GetProvider() CreateMirrorInputBodyProvider
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 ¶
func (s *CreateMirrorInputBody) SetProvider(val CreateMirrorInputBodyProvider)
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 ¶
func (CreateMirrorInputBodyProvider) AllValues() []CreateMirrorInputBodyProvider
AllValues returns all CreateMirrorInputBodyProvider values.
func (*CreateMirrorInputBodyProvider) Decode ¶
func (s *CreateMirrorInputBodyProvider) Decode(d *jx.Decoder) error
Decode decodes CreateMirrorInputBodyProvider from json.
func (CreateMirrorInputBodyProvider) Encode ¶
func (s CreateMirrorInputBodyProvider) Encode(e *jx.Encoder)
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 ¶
func (s *CreateProjectInputBody) GetOwnerType() CreateProjectInputBodyOwnerType
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 ¶
func (s *CreateProjectInputBody) SetOwnerType(val CreateProjectInputBodyOwnerType)
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 ¶
func (CreateProjectInputBodyOwnerType) AllValues() []CreateProjectInputBodyOwnerType
AllValues returns all CreateProjectInputBodyOwnerType values.
func (*CreateProjectInputBodyOwnerType) Decode ¶
func (s *CreateProjectInputBodyOwnerType) Decode(d *jx.Decoder) error
Decode decodes CreateProjectInputBodyOwnerType from json.
func (CreateProjectInputBodyOwnerType) Encode ¶
func (s CreateProjectInputBodyOwnerType) Encode(e *jx.Encoder)
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 ¶
func (s CreateProjectInputBodyOwnerType) Validate() error
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 ¶
func (s *CreateRepoInputBody) GetObjectFormat() OptCreateRepoInputBodyObjectFormat
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 ¶
func (s *CreateRepoInputBody) SetObjectFormat(val OptCreateRepoInputBodyObjectFormat)
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 ¶
func (CreateRepoInputBodyObjectFormat) AllValues() []CreateRepoInputBodyObjectFormat
AllValues returns all CreateRepoInputBodyObjectFormat values.
func (*CreateRepoInputBodyObjectFormat) Decode ¶
func (s *CreateRepoInputBodyObjectFormat) Decode(d *jx.Decoder) error
Decode decodes CreateRepoInputBodyObjectFormat from json.
func (CreateRepoInputBodyObjectFormat) Encode ¶
func (s CreateRepoInputBodyObjectFormat) Encode(e *jx.Encoder)
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 ¶
func (s CreateRepoInputBodyObjectFormat) Validate() error
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 ¶
func (s *CreateServiceAccountInputBody) Decode(d *jx.Decoder) error
Decode decodes CreateServiceAccountInputBody from json.
func (*CreateServiceAccountInputBody) Encode ¶
func (s *CreateServiceAccountInputBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateServiceAccountInputBody) GetName ¶
func (s *CreateServiceAccountInputBody) GetName() string
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 ¶
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 ¶
func (DeleteMirrorProvider) AllValues() []DeleteMirrorProvider
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"`
}
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 ¶
func (s *GetMeOutputBody) GetMode() OptGetMeOutputBodyMode
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 ¶
func (GetMeOutputBodyMode) AllValues() []GetMeOutputBodyMode
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 ¶
func (s *GetPermissionsOutputBody) GetExplain() OptGetPermissionsOutputBodyExplain
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 ¶
func (s *GetPermissionsOutputBody) SetExplain(val OptGetPermissionsOutputBodyExplain)
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 ¶
func (*GetPermissionsOutputBodyExplain) Decode ¶
func (s *GetPermissionsOutputBodyExplain) Decode(d *jx.Decoder) error
Decode decodes GetPermissionsOutputBodyExplain from json.
func (GetPermissionsOutputBodyExplain) Encode ¶
func (s GetPermissionsOutputBodyExplain) Encode(e *jx.Encoder)
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 ¶
func (s *GrantProjectAccessInputBody) Decode(d *jx.Decoder) error
Decode decodes GrantProjectAccessInputBody from json.
func (*GrantProjectAccessInputBody) Encode ¶
func (s *GrantProjectAccessInputBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GrantProjectAccessInputBody) GetGranteeType ¶
func (s *GrantProjectAccessInputBody) GetGranteeType() OptGrantProjectAccessInputBodyGranteeType
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 ¶
func (s *GrantProjectAccessInputBody) SetGranteeType(val OptGrantProjectAccessInputBodyGranteeType)
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 ¶
func (GrantProjectAccessInputBodyGranteeType) AllValues() []GrantProjectAccessInputBodyGranteeType
AllValues returns all GrantProjectAccessInputBodyGranteeType values.
func (*GrantProjectAccessInputBodyGranteeType) Decode ¶
func (s *GrantProjectAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
Decode decodes GrantProjectAccessInputBodyGranteeType from json.
func (GrantProjectAccessInputBodyGranteeType) Encode ¶
func (s GrantProjectAccessInputBodyGranteeType) Encode(e *jx.Encoder)
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 ¶
func (s GrantProjectAccessInputBodyGranteeType) Validate() error
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 ¶
func (s *GrantProjectAccessOutputBody) Decode(d *jx.Decoder) error
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 ¶
func (s *GrantRepoAccessInputBody) GetGranteeType() OptGrantRepoAccessInputBodyGranteeType
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 ¶
func (s *GrantRepoAccessInputBody) SetGranteeType(val OptGrantRepoAccessInputBodyGranteeType)
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 ¶
func (GrantRepoAccessInputBodyGranteeType) AllValues() []GrantRepoAccessInputBodyGranteeType
AllValues returns all GrantRepoAccessInputBodyGranteeType values.
func (*GrantRepoAccessInputBodyGranteeType) Decode ¶
func (s *GrantRepoAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
Decode decodes GrantRepoAccessInputBodyGranteeType from json.
func (GrantRepoAccessInputBodyGranteeType) Encode ¶
func (s GrantRepoAccessInputBodyGranteeType) Encode(e *jx.Encoder)
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 ¶
func (s GrantRepoAccessInputBodyGranteeType) Validate() error
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 ¶
func (s *GrantServiceAccountAccessInputBody) Decode(d *jx.Decoder) error
Decode decodes GrantServiceAccountAccessInputBody from json.
func (*GrantServiceAccountAccessInputBody) Encode ¶
func (s *GrantServiceAccountAccessInputBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GrantServiceAccountAccessInputBody) GetResourceId ¶
func (s *GrantServiceAccountAccessInputBody) GetResourceId() string
GetResourceId returns the value of ResourceId.
func (*GrantServiceAccountAccessInputBody) GetResourceType ¶
func (s *GrantServiceAccountAccessInputBody) GetResourceType() GrantServiceAccountAccessInputBodyResourceType
GetResourceType returns the value of ResourceType.
func (*GrantServiceAccountAccessInputBody) GetRole ¶
func (s *GrantServiceAccountAccessInputBody) GetRole() string
GetRole returns the value of Role.
func (*GrantServiceAccountAccessInputBody) GetSchema ¶
func (s *GrantServiceAccountAccessInputBody) GetSchema() OptURI
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 ¶
func (s *GrantServiceAccountAccessInputBody) SetResourceType(val GrantServiceAccountAccessInputBodyResourceType)
SetResourceType sets the value of ResourceType.
func (*GrantServiceAccountAccessInputBody) SetRole ¶
func (s *GrantServiceAccountAccessInputBody) SetRole(val string)
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 ¶
func (s *GrantServiceAccountAccessInputBody) Validate() error
type GrantServiceAccountAccessInputBodyResourceType ¶
type GrantServiceAccountAccessInputBodyResourceType string
const ( GrantServiceAccountAccessInputBodyResourceTypeRepo GrantServiceAccountAccessInputBodyResourceType = "repo" GrantServiceAccountAccessInputBodyResourceTypeProject GrantServiceAccountAccessInputBodyResourceType = "project" )
func (GrantServiceAccountAccessInputBodyResourceType) AllValues ¶
func (GrantServiceAccountAccessInputBodyResourceType) AllValues() []GrantServiceAccountAccessInputBodyResourceType
AllValues returns all GrantServiceAccountAccessInputBodyResourceType values.
func (*GrantServiceAccountAccessInputBodyResourceType) Decode ¶
func (s *GrantServiceAccountAccessInputBodyResourceType) Decode(d *jx.Decoder) error
Decode decodes GrantServiceAccountAccessInputBodyResourceType from json.
func (GrantServiceAccountAccessInputBodyResourceType) Encode ¶
func (s GrantServiceAccountAccessInputBodyResourceType) Encode(e *jx.Encoder)
Encode encodes GrantServiceAccountAccessInputBodyResourceType as json.
func (GrantServiceAccountAccessInputBodyResourceType) MarshalJSON ¶
func (s GrantServiceAccountAccessInputBodyResourceType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (GrantServiceAccountAccessInputBodyResourceType) MarshalText ¶
func (s GrantServiceAccountAccessInputBodyResourceType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*GrantServiceAccountAccessInputBodyResourceType) UnmarshalJSON ¶
func (s *GrantServiceAccountAccessInputBodyResourceType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GrantServiceAccountAccessInputBodyResourceType) UnmarshalText ¶
func (s *GrantServiceAccountAccessInputBodyResourceType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (GrantServiceAccountAccessInputBodyResourceType) Validate ¶
func (s GrantServiceAccountAccessInputBodyResourceType) Validate() error
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 ¶
func (s *GrantServiceAccountAccessOutputBody) Decode(d *jx.Decoder) error
Decode decodes GrantServiceAccountAccessOutputBody from json.
func (*GrantServiceAccountAccessOutputBody) Encode ¶
func (s *GrantServiceAccountAccessOutputBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GrantServiceAccountAccessOutputBody) GetSchema ¶
func (s *GrantServiceAccountAccessOutputBody) GetSchema() OptURI
GetSchema returns the value of Schema.
func (*GrantServiceAccountAccessOutputBody) GetStatus ¶
func (s *GrantServiceAccountAccessOutputBody) GetStatus() string
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 ¶
func (s *ListOIDCProvidersOutputBody) Decode(d *jx.Decoder) error
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 ¶
func (s *ListProjectMembersOutputBody) Decode(d *jx.Decoder) error
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 ¶
func (s *ListProjectReposOutputBody) Decode(d *jx.Decoder) error
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 ¶
func (s *ListServiceAccountGrantsOutputBody) Decode(d *jx.Decoder) error
Decode decodes ListServiceAccountGrantsOutputBody from json.
func (*ListServiceAccountGrantsOutputBody) Encode ¶
func (s *ListServiceAccountGrantsOutputBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ListServiceAccountGrantsOutputBody) GetGrants ¶
func (s *ListServiceAccountGrantsOutputBody) GetGrants() []ServiceAccountGrant
GetGrants returns the value of Grants.
func (*ListServiceAccountGrantsOutputBody) GetSchema ¶
func (s *ListServiceAccountGrantsOutputBody) GetSchema() OptURI
GetSchema returns the value of Schema.
func (*ListServiceAccountGrantsOutputBody) MarshalJSON ¶
func (s *ListServiceAccountGrantsOutputBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListServiceAccountGrantsOutputBody) SetGrants ¶
func (s *ListServiceAccountGrantsOutputBody) SetGrants(val []ServiceAccountGrant)
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 ¶
func (s *ListServiceAccountGrantsOutputBody) Validate() error
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 ¶
func (s *ListServiceAccountsOutputBody) Decode(d *jx.Decoder) error
Decode decodes ListServiceAccountsOutputBody from json.
func (*ListServiceAccountsOutputBody) Encode ¶
func (s *ListServiceAccountsOutputBody) Encode(e *jx.Encoder)
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) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*LookupRef) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 ¶
func (LookupRefResultOwnerType) AllValues() []LookupRefResultOwnerType
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) GetProvider ¶
GetProvider returns the value of Provider.
func (*MeAuth) GetProviderUserId ¶
GetProviderUserId returns the value of ProviderUserId.
func (*MeAuth) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*MeAuth) SetProvider ¶
SetProvider sets the value of Provider.
func (*MeAuth) SetProviderUserId ¶
SetProviderUserId sets the value of ProviderUserId.
func (*MeAuth) UnmarshalJSON ¶
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) GetAccountId ¶
GetAccountId returns the value of AccountId.
func (*MeGlobal) GetAvatarUrl ¶
GetAvatarUrl returns the value of AvatarUrl.
func (*MeGlobal) GetHandles ¶
func (s *MeGlobal) GetHandles() []MeIdentityHandle
GetHandles returns the value of Handles.
func (*MeGlobal) GetHomeJurisdiction ¶
GetHomeJurisdiction returns the value of HomeJurisdiction.
func (*MeGlobal) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*MeGlobal) SetAccountId ¶
SetAccountId sets the value of AccountId.
func (*MeGlobal) SetAvatarUrl ¶
SetAvatarUrl sets the value of AvatarUrl.
func (*MeGlobal) SetHandles ¶
func (s *MeGlobal) SetHandles(val []MeIdentityHandle)
SetHandles sets the value of Handles.
func (*MeGlobal) SetHomeJurisdiction ¶
SetHomeJurisdiction sets the value of HomeJurisdiction.
func (*MeGlobal) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 {
Error MeRegionalUnavailableError `json:"error"`
HomeCoreUrl string `json:"homeCoreUrl"`
Jurisdiction string `json:"jurisdiction"`
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 ¶
func (s *MeRegionalUnavailable) GetError() MeRegionalUnavailableError
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 ¶
func (s *MeRegionalUnavailable) SetError(val MeRegionalUnavailableError)
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 (
)
func (MeRegionalUnavailableError) AllValues ¶
func (MeRegionalUnavailableError) AllValues() []MeRegionalUnavailableError
AllValues returns all MeRegionalUnavailableError values.
func (*MeRegionalUnavailableError) Decode ¶
func (s *MeRegionalUnavailableError) Decode(d *jx.Decoder) error
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) 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) 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) GetClusterHost ¶
GetClusterHost returns the value of ClusterHost.
func (*Mirror) GetCreatedAt ¶
GetCreatedAt returns the value of CreatedAt.
func (*Mirror) GetInstallationId ¶
GetInstallationId returns the value of InstallationId.
func (*Mirror) GetIsArchived ¶
GetIsArchived returns the value of IsArchived.
func (*Mirror) GetIsPrivate ¶
GetIsPrivate returns the value of IsPrivate.
func (*Mirror) GetJurisdiction ¶
GetJurisdiction returns the value of Jurisdiction.
func (*Mirror) GetMirrorId ¶
GetMirrorId returns the value of MirrorId.
func (*Mirror) GetProvider ¶
GetProvider returns the value of Provider.
func (*Mirror) GetSuspendedAt ¶
func (s *Mirror) GetSuspendedAt() OptDateTime
GetSuspendedAt returns the value of SuspendedAt.
func (*Mirror) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Mirror) SetClusterHost ¶
SetClusterHost sets the value of ClusterHost.
func (*Mirror) SetCreatedAt ¶
SetCreatedAt sets the value of CreatedAt.
func (*Mirror) SetInstallationId ¶
SetInstallationId sets the value of InstallationId.
func (*Mirror) SetIsArchived ¶
SetIsArchived sets the value of IsArchived.
func (*Mirror) SetIsPrivate ¶
SetIsPrivate sets the value of IsPrivate.
func (*Mirror) SetJurisdiction ¶
SetJurisdiction sets the value of Jurisdiction.
func (*Mirror) SetMirrorId ¶
SetMirrorId sets the value of MirrorId.
func (*Mirror) SetProvider ¶
SetProvider sets the value of Provider.
func (*Mirror) SetSuspendedAt ¶
func (s *Mirror) SetSuspendedAt(val OptDateTime)
SetSuspendedAt sets the value of SuspendedAt.
func (*Mirror) UnmarshalJSON ¶
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) 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) 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 ¶
func (o *OptAddOrgMemberInputBodyRole) Decode(d *jx.Decoder) error
Decode decodes AddOrgMemberInputBodyRole from json.
func (OptAddOrgMemberInputBodyRole) Encode ¶
func (o OptAddOrgMemberInputBodyRole) Encode(e *jx.Encoder)
Encode encodes AddOrgMemberInputBodyRole as json.
func (OptAddOrgMemberInputBodyRole) Get ¶
func (o OptAddOrgMemberInputBodyRole) Get() (v AddOrgMemberInputBodyRole, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAddOrgMemberInputBodyRole) IsSet ¶
func (o OptAddOrgMemberInputBodyRole) IsSet() bool
IsSet returns true if OptAddOrgMemberInputBodyRole was set.
func (OptAddOrgMemberInputBodyRole) MarshalJSON ¶
func (s OptAddOrgMemberInputBodyRole) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptAddOrgMemberInputBodyRole) Reset ¶
func (o *OptAddOrgMemberInputBodyRole) Reset()
Reset unsets value.
func (*OptAddOrgMemberInputBodyRole) SetTo ¶
func (o *OptAddOrgMemberInputBodyRole) SetTo(v AddOrgMemberInputBodyRole)
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 ¶
func (o OptAuditEventMetadata) Get() (v AuditEventMetadata, ok bool)
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 ¶
func (o OptAuditEventMetadata) Or(d AuditEventMetadata) AuditEventMetadata
Or returns value if set, or given parameter if does not.
func (*OptAuditEventMetadata) SetTo ¶
func (o *OptAuditEventMetadata) SetTo(v AuditEventMetadata)
SetTo sets value to v.
func (*OptAuditEventMetadata) UnmarshalJSON ¶
func (s *OptAuditEventMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
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 ¶
func (o *OptCreateRepoInputBodyObjectFormat) Decode(d *jx.Decoder) error
Decode decodes CreateRepoInputBodyObjectFormat from json.
func (OptCreateRepoInputBodyObjectFormat) Encode ¶
func (o OptCreateRepoInputBodyObjectFormat) Encode(e *jx.Encoder)
Encode encodes CreateRepoInputBodyObjectFormat as json.
func (OptCreateRepoInputBodyObjectFormat) Get ¶
func (o OptCreateRepoInputBodyObjectFormat) Get() (v CreateRepoInputBodyObjectFormat, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateRepoInputBodyObjectFormat) IsSet ¶
func (o OptCreateRepoInputBodyObjectFormat) IsSet() bool
IsSet returns true if OptCreateRepoInputBodyObjectFormat was set.
func (OptCreateRepoInputBodyObjectFormat) MarshalJSON ¶
func (s OptCreateRepoInputBodyObjectFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateRepoInputBodyObjectFormat) Or ¶
func (o OptCreateRepoInputBodyObjectFormat) Or(d CreateRepoInputBodyObjectFormat) CreateRepoInputBodyObjectFormat
Or returns value if set, or given parameter if does not.
func (*OptCreateRepoInputBodyObjectFormat) Reset ¶
func (o *OptCreateRepoInputBodyObjectFormat) Reset()
Reset unsets value.
func (*OptCreateRepoInputBodyObjectFormat) SetTo ¶
func (o *OptCreateRepoInputBodyObjectFormat) SetTo(v CreateRepoInputBodyObjectFormat)
SetTo sets value to v.
func (*OptCreateRepoInputBodyObjectFormat) UnmarshalJSON ¶
func (s *OptCreateRepoInputBodyObjectFormat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
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) 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 ¶
func (o OptGetMeOutputBodyMode) Get() (v GetMeOutputBodyMode, ok bool)
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 ¶
func (o OptGetMeOutputBodyMode) Or(d GetMeOutputBodyMode) GetMeOutputBodyMode
Or returns value if set, or given parameter if does not.
func (*OptGetMeOutputBodyMode) SetTo ¶
func (o *OptGetMeOutputBodyMode) SetTo(v GetMeOutputBodyMode)
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 ¶
func (o *OptGetPermissionsOutputBodyExplain) Decode(d *jx.Decoder) error
Decode decodes GetPermissionsOutputBodyExplain from json.
func (OptGetPermissionsOutputBodyExplain) Encode ¶
func (o OptGetPermissionsOutputBodyExplain) Encode(e *jx.Encoder)
Encode encodes GetPermissionsOutputBodyExplain as json.
func (OptGetPermissionsOutputBodyExplain) Get ¶
func (o OptGetPermissionsOutputBodyExplain) Get() (v GetPermissionsOutputBodyExplain, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetPermissionsOutputBodyExplain) IsSet ¶
func (o OptGetPermissionsOutputBodyExplain) IsSet() bool
IsSet returns true if OptGetPermissionsOutputBodyExplain was set.
func (OptGetPermissionsOutputBodyExplain) MarshalJSON ¶
func (s OptGetPermissionsOutputBodyExplain) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetPermissionsOutputBodyExplain) Or ¶
func (o OptGetPermissionsOutputBodyExplain) Or(d GetPermissionsOutputBodyExplain) GetPermissionsOutputBodyExplain
Or returns value if set, or given parameter if does not.
func (*OptGetPermissionsOutputBodyExplain) Reset ¶
func (o *OptGetPermissionsOutputBodyExplain) Reset()
Reset unsets value.
func (*OptGetPermissionsOutputBodyExplain) SetTo ¶
func (o *OptGetPermissionsOutputBodyExplain) SetTo(v GetPermissionsOutputBodyExplain)
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 ¶
func (o *OptGrantProjectAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
Decode decodes GrantProjectAccessInputBodyGranteeType from json.
func (OptGrantProjectAccessInputBodyGranteeType) Encode ¶
func (o OptGrantProjectAccessInputBodyGranteeType) Encode(e *jx.Encoder)
Encode encodes GrantProjectAccessInputBodyGranteeType as json.
func (OptGrantProjectAccessInputBodyGranteeType) Get ¶
func (o OptGrantProjectAccessInputBodyGranteeType) Get() (v GrantProjectAccessInputBodyGranteeType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGrantProjectAccessInputBodyGranteeType) IsSet ¶
func (o OptGrantProjectAccessInputBodyGranteeType) IsSet() bool
IsSet returns true if OptGrantProjectAccessInputBodyGranteeType was set.
func (OptGrantProjectAccessInputBodyGranteeType) MarshalJSON ¶
func (s OptGrantProjectAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGrantProjectAccessInputBodyGranteeType) Or ¶
func (o OptGrantProjectAccessInputBodyGranteeType) Or(d GrantProjectAccessInputBodyGranteeType) GrantProjectAccessInputBodyGranteeType
Or returns value if set, or given parameter if does not.
func (*OptGrantProjectAccessInputBodyGranteeType) Reset ¶
func (o *OptGrantProjectAccessInputBodyGranteeType) Reset()
Reset unsets value.
func (*OptGrantProjectAccessInputBodyGranteeType) SetTo ¶
func (o *OptGrantProjectAccessInputBodyGranteeType) SetTo(v GrantProjectAccessInputBodyGranteeType)
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 ¶
func (o *OptGrantRepoAccessInputBodyGranteeType) Decode(d *jx.Decoder) error
Decode decodes GrantRepoAccessInputBodyGranteeType from json.
func (OptGrantRepoAccessInputBodyGranteeType) Encode ¶
func (o OptGrantRepoAccessInputBodyGranteeType) Encode(e *jx.Encoder)
Encode encodes GrantRepoAccessInputBodyGranteeType as json.
func (OptGrantRepoAccessInputBodyGranteeType) Get ¶
func (o OptGrantRepoAccessInputBodyGranteeType) Get() (v GrantRepoAccessInputBodyGranteeType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGrantRepoAccessInputBodyGranteeType) IsSet ¶
func (o OptGrantRepoAccessInputBodyGranteeType) IsSet() bool
IsSet returns true if OptGrantRepoAccessInputBodyGranteeType was set.
func (OptGrantRepoAccessInputBodyGranteeType) MarshalJSON ¶
func (s OptGrantRepoAccessInputBodyGranteeType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGrantRepoAccessInputBodyGranteeType) Or ¶
func (o OptGrantRepoAccessInputBodyGranteeType) Or(d GrantRepoAccessInputBodyGranteeType) GrantRepoAccessInputBodyGranteeType
Or returns value if set, or given parameter if does not.
func (*OptGrantRepoAccessInputBodyGranteeType) Reset ¶
func (o *OptGrantRepoAccessInputBodyGranteeType) Reset()
Reset unsets value.
func (*OptGrantRepoAccessInputBodyGranteeType) SetTo ¶
func (o *OptGrantRepoAccessInputBodyGranteeType) SetTo(v GrantRepoAccessInputBodyGranteeType)
SetTo sets value to v.
func (*OptGrantRepoAccessInputBodyGranteeType) UnmarshalJSON ¶
func (s *OptGrantRepoAccessInputBodyGranteeType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
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 ¶
func (o *OptLookupRefResultOwnerType) Decode(d *jx.Decoder) error
Decode decodes LookupRefResultOwnerType from json.
func (OptLookupRefResultOwnerType) Encode ¶
func (o OptLookupRefResultOwnerType) Encode(e *jx.Encoder)
Encode encodes LookupRefResultOwnerType as json.
func (OptLookupRefResultOwnerType) Get ¶
func (o OptLookupRefResultOwnerType) Get() (v LookupRefResultOwnerType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptLookupRefResultOwnerType) IsSet ¶
func (o OptLookupRefResultOwnerType) IsSet() bool
IsSet returns true if OptLookupRefResultOwnerType was set.
func (OptLookupRefResultOwnerType) MarshalJSON ¶
func (s OptLookupRefResultOwnerType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptLookupRefResultOwnerType) Reset ¶
func (o *OptLookupRefResultOwnerType) Reset()
Reset unsets value.
func (*OptLookupRefResultOwnerType) SetTo ¶
func (o *OptLookupRefResultOwnerType) SetTo(v LookupRefResultOwnerType)
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 ¶
func (o OptMeRegional) Or(d MeRegional) MeRegional
Or returns value if set, or given parameter if does not.
func (*OptMeRegional) UnmarshalJSON ¶
func (s *OptMeRegional) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMeRegionalUnavailable ¶
type OptMeRegionalUnavailable struct {
}
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 ¶
func (o OptMeRegionalUnavailable) Get() (v MeRegionalUnavailable, ok bool)
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 ¶
func (o OptMeRegionalUnavailable) Or(d MeRegionalUnavailable) MeRegionalUnavailable
Or returns value if set, or given parameter if does not.
func (*OptMeRegionalUnavailable) Reset ¶
func (o *OptMeRegionalUnavailable) Reset()
Reset unsets value.
func (*OptMeRegionalUnavailable) SetTo ¶
func (o *OptMeRegionalUnavailable) SetTo(v MeRegionalUnavailable)
SetTo sets value to v.
func (*OptMeRegionalUnavailable) UnmarshalJSON ¶
func (s *OptMeRegionalUnavailable) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptProject ¶
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) 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 ¶
func (o OptRepoObjectFormat) Or(d RepoObjectFormat) RepoObjectFormat
Or returns value if set, or given parameter if does not.
func (*OptRepoObjectFormat) SetTo ¶
func (o *OptRepoObjectFormat) SetTo(v RepoObjectFormat)
SetTo sets value to v.
func (*OptRepoObjectFormat) UnmarshalJSON ¶
func (s *OptRepoObjectFormat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptRepoState ¶
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 ¶
func (o OptRepoState) Or(d RepoState) RepoState
Or returns value if set, or given parameter if does not.
func (*OptRepoState) UnmarshalJSON ¶
func (s *OptRepoState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptURI ¶
OptURI is optional url.URL.
func (OptURI) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptURI) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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) GetCreatedAt ¶
GetCreatedAt returns the value of CreatedAt.
func (*Org) GetWorkosOrganizationId ¶
GetWorkosOrganizationId returns the value of WorkosOrganizationId.
func (*Org) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Org) SetCreatedAt ¶
SetCreatedAt sets the value of CreatedAt.
func (*Org) SetWorkosOrganizationId ¶
SetWorkosOrganizationId sets the value of WorkosOrganizationId.
func (*Org) UnmarshalJSON ¶
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) GetCreatedAt ¶
GetCreatedAt returns the value of CreatedAt.
func (*Project) GetOwnerId ¶
GetOwnerId returns the value of OwnerId.
func (*Project) GetOwnerType ¶
func (s *Project) GetOwnerType() ProjectOwnerType
GetOwnerType returns the value of OwnerType.
func (*Project) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Project) SetCreatedAt ¶
SetCreatedAt sets the value of CreatedAt.
func (*Project) SetOwnerId ¶
SetOwnerId sets the value of OwnerId.
func (*Project) SetOwnerType ¶
func (s *Project) SetOwnerType(val ProjectOwnerType)
SetOwnerType sets the value of OwnerType.
func (*Project) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 ¶
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) GetClusterHost ¶
GetClusterHost returns the value of ClusterHost.
func (*Repo) GetForeign ¶
GetForeign returns the value of Foreign.
func (*Repo) GetObjectFormat ¶
func (s *Repo) GetObjectFormat() OptRepoObjectFormat
GetObjectFormat returns the value of ObjectFormat.
func (*Repo) GetOwningProjectId ¶
GetOwningProjectId returns the value of OwningProjectId.
func (*Repo) GetProvisionAttempts ¶
GetProvisionAttempts returns the value of ProvisionAttempts.
func (*Repo) GetProvisionReason ¶
GetProvisionReason returns the value of ProvisionReason.
func (*Repo) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Repo) SetClusterHost ¶
SetClusterHost sets the value of ClusterHost.
func (*Repo) SetForeign ¶
SetForeign sets the value of Foreign.
func (*Repo) SetObjectFormat ¶
func (s *Repo) SetObjectFormat(val OptRepoObjectFormat)
SetObjectFormat sets the value of ObjectFormat.
func (*Repo) SetOwningProjectId ¶
SetOwningProjectId sets the value of OwningProjectId.
func (*Repo) SetProvisionAttempts ¶
SetProvisionAttempts sets the value of ProvisionAttempts.
func (*Repo) SetProvisionReason ¶
SetProvisionReason sets the value of ProvisionReason.
func (*Repo) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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
func (RepoState) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (RepoState) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*RepoState) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*RepoState) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
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 ¶
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 ¶
func (RevokeServiceAccountAccessResourceType) AllValues() []RevokeServiceAccountAccessResourceType
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 ¶
func (s RevokeServiceAccountAccessResourceType) Validate() error
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 ¶
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.