management

package
v1.1.100 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation ¶

Index ¶

Constants ¶

View Source
const (
	APIServiceResourceName              = "apiservices"
	ApiServiceComplianceSubResourceName = "compliance"
	ApiServiceDetailsSubResourceName    = "details"
	ApiServiceReferencesSubResourceName = "references"
	ApiServiceSourceSubResourceName     = "source"
	ApiServiceStatusSubResourceName     = "status"
)
View Source
const (
	APIServiceInstanceResourceName              = "apiserviceinstances"
	ApiServiceInstanceComplianceSubResourceName = "compliance"
	ApiServiceInstanceLifecycleSubResourceName  = "lifecycle"
	ApiServiceInstanceReferencesSubResourceName = "references"
	ApiServiceInstanceSourceSubResourceName     = "source"
)
View Source
const (
	APIServiceRevisionResourceName              = "apiservicerevisions"
	ApiServiceRevisionComplianceSubResourceName = "compliance"
)
View Source
const (
	APISpecLintingJobResourceName            = "apispeclintingjobs"
	ApiSpecLintingJobArchivedSubResourceName = "archived"
	ApiSpecLintingJobResultSubResourceName   = "result"
	ApiSpecLintingJobStateSubResourceName    = "state"
)
View Source
const (
	APISpecLintingRulesetResourceName            = "apispeclintingrulesets"
	ApiSpecLintingRulesetRevisionSubResourceName = "revision"
)
View Source
const (
	AccessRequestResourceName              = "accessrequests"
	AccessRequestDataSubResourceName       = "data"
	AccessRequestReferencesSubResourceName = "references"
	AccessRequestStatusSubResourceName     = "status"
)
View Source
const (
	AccessRequestDefinitionResourceName            = "accessrequestdefinitions"
	AccessRequestDefinitionWebhooksSubResourceName = "webhooks"
)
View Source
const (
	AssetMappingResourceName          = "assetmappings"
	AssetMappingStatusSubResourceName = "status"
)
View Source
const (
	BatchJobResourceName            = "batchjobs"
	BatchJobProgressSubResourceName = "progress"
)
View Source
const (
	CredentialResourceName              = "credentials"
	CredentialDataSubResourceName       = "data"
	CredentialPoliciesSubResourceName   = "policies"
	CredentialReferencesSubResourceName = "references"
	CredentialStateSubResourceName      = "state"
	CredentialStatusSubResourceName     = "status"
)
View Source
const (
	CredentialRequestDefinitionResourceName              = "credentialrequestdefinitions"
	CredentialRequestDefinitionReferencesSubResourceName = "references"
	CredentialRequestDefinitionWebhooksSubResourceName   = "webhooks"
)
View Source
const (
	DataplaneResourceName                = "dataplanes"
	DataplaneSecretschemaSubResourceName = "secretschema"
	DataplaneSecuritySubResourceName     = "security"
)
View Source
const (
	DataplaneSecretResourceName          = "dataplanesecrets"
	DataplaneSecretStateSubResourceName  = "state"
	DataplaneSecretStatusSubResourceName = "status"
)
View Source
const (
	DiscoveryAgentResourceName              = "discoveryagents"
	DiscoveryAgentAgentstateSubResourceName = "agentstate"
	DiscoveryAgentDataplaneSubResourceName  = "dataplane"
	DiscoveryAgentStatusSubResourceName     = "status"
)
View Source
const (
	EnvironmentResourceName                   = "environments"
	EnvironmentCompliancetasksSubResourceName = "compliancetasks"
	EnvironmentPoliciesSubResourceName        = "policies"
	EnvironmentReferencesSubResourceName      = "references"
	EnvironmentStagesSubResourceName          = "stages"
)
View Source
const (
	IdentityProviderResourceName            = "identityproviders"
	IdentityProviderSecuritySubResourceName = "security"
	IdentityProviderStatusSubResourceName   = "status"
)
View Source
const (
	ManagedApplicationResourceName               = "managedapplications"
	ManagedApplicationMarketplaceSubResourceName = "marketplace"
	ManagedApplicationReferencesSubResourceName  = "references"
	ManagedApplicationStatusSubResourceName      = "status"
)
View Source
const (
	TraceabilityAgentResourceName              = "traceabilityagents"
	TraceabilityAgentAgentstateSubResourceName = "agentstate"
	TraceabilityAgentDataplaneSubResourceName  = "dataplane"
	TraceabilityAgentStatusSubResourceName     = "status"
)
View Source
const (
	AccessControlListResourceName = "accesscontrollists"
)
View Source
const (
	AssetMappingTemplateResourceName = "assetmappingtemplates"
)
View Source
const (
	IdentityProviderSecretResourceName = "idpsecrets"
)
View Source
const (
	IntegrationResourceName = "integrations"
)
View Source
const (
	ResourceHookResourceName = "resourcehooks"
)
View Source
const (
	SecretResourceName = "secrets"
)
View Source
const (
	WatchTopicResourceName = "watchtopics"
)
View Source
const (
	WebhookResourceName = "webhooks"
)

Variables ¶

View Source
var (
	APIServiceCtx log.ContextField = "apiService"

	APIServiceScopes = []string{"Environment"}
)
View Source
var (
	APIServiceInstanceCtx log.ContextField = "apiServiceInstance"

	APIServiceInstanceScopes = []string{"Environment"}
)
View Source
var (
	APIServiceRevisionCtx log.ContextField = "apiServiceRevision"

	APIServiceRevisionScopes = []string{"Environment"}
)
View Source
var (
	APISpecLintingJobCtx log.ContextField = "apiSpecLintingJob"

	APISpecLintingJobScopes = []string{"Environment"}
)
View Source
var (
	APISpecLintingRulesetCtx log.ContextField = "apiSpecLintingRuleset"

	APISpecLintingRulesetScopes = []string{""}
)
View Source
var (
	AccessControlListCtx log.ContextField = "accessControlList"

	AccessControlListScopes = []string{"APISpecLintingRuleset", "Environment", "IdentityProvider", "Integration", "WatchTopic"}
)
View Source
var (
	AccessRequestCtx log.ContextField = "accessRequest"

	AccessRequestScopes = []string{"Environment"}
)
View Source
var (
	AccessRequestDefinitionCtx log.ContextField = "accessRequestDefinition"

	AccessRequestDefinitionScopes = []string{"Environment"}
)
View Source
var (
	AssetMappingCtx log.ContextField = "assetMapping"

	AssetMappingScopes = []string{"Environment"}
)
View Source
var (
	AssetMappingTemplateCtx log.ContextField = "assetMappingTemplate"

	AssetMappingTemplateScopes = []string{"Environment"}
)
View Source
var (
	BatchJobCtx log.ContextField = "batchJob"

	BatchJobScopes = []string{"Environment"}
)
View Source
var (
	CredentialCtx log.ContextField = "credential"

	CredentialScopes = []string{"Environment"}
)
View Source
var (
	CredentialRequestDefinitionCtx log.ContextField = "credentialRequestDefinition"

	CredentialRequestDefinitionScopes = []string{"Environment"}
)
View Source
var (
	DataplaneCtx log.ContextField = "dataplane"

	DataplaneScopes = []string{"Environment"}
)
View Source
var (
	DataplaneSecretCtx log.ContextField = "dataplaneSecret"

	DataplaneSecretScopes = []string{"Environment"}
)
View Source
var (
	DiscoveryAgentCtx log.ContextField = "discoveryAgent"

	DiscoveryAgentScopes = []string{"Environment"}
)
View Source
var (
	EnvironmentCtx log.ContextField = "environment"

	EnvironmentScopes = []string{""}
)
View Source
var (
	IdentityProviderCtx log.ContextField = "identityProvider"

	IdentityProviderScopes = []string{""}
)
View Source
var (
	IdentityProviderSecretCtx log.ContextField = "identityProviderSecret"

	IdentityProviderSecretScopes = []string{"IdentityProvider"}
)
View Source
var (
	IntegrationCtx log.ContextField = "integration"

	IntegrationScopes = []string{""}
)
View Source
var (
	ManagedApplicationCtx log.ContextField = "managedApplication"

	ManagedApplicationScopes = []string{"Environment"}
)
View Source
var (
	ResourceHookCtx log.ContextField = "resourceHook"

	ResourceHookScopes = []string{"Integration"}
)
View Source
var (
	SecretCtx log.ContextField = "secret"

	SecretScopes = []string{"Environment", "Integration"}
)
View Source
var (
	TraceabilityAgentCtx log.ContextField = "traceabilityAgent"

	TraceabilityAgentScopes = []string{"Environment"}
)
View Source
var (
	WatchTopicCtx log.ContextField = "watchTopic"

	WatchTopicScopes = []string{""}
)
View Source
var (
	WebhookCtx log.ContextField = "webhook"

	WebhookScopes = []string{"Environment", "Integration"}
)

Functions ¶

func APIServiceGVK ¶

func APIServiceGVK() apiv1.GroupVersionKind

func APIServiceInstanceGVK ¶

func APIServiceInstanceGVK() apiv1.GroupVersionKind

func APIServiceRevisionGVK ¶

func APIServiceRevisionGVK() apiv1.GroupVersionKind

func APISpecLintingJobGVK ¶ added in v1.1.52

func APISpecLintingJobGVK() apiv1.GroupVersionKind

func APISpecLintingRulesetGVK ¶ added in v1.1.52

func APISpecLintingRulesetGVK() apiv1.GroupVersionKind

func AccessControlListGVK ¶

func AccessControlListGVK() apiv1.GroupVersionKind

func AccessRequestDefinitionGVK ¶

func AccessRequestDefinitionGVK() apiv1.GroupVersionKind

func AccessRequestGVK ¶

func AccessRequestGVK() apiv1.GroupVersionKind

func AssetMappingGVK ¶

func AssetMappingGVK() apiv1.GroupVersionKind

func AssetMappingTemplateGVK ¶

func AssetMappingTemplateGVK() apiv1.GroupVersionKind

func BatchJobGVK ¶ added in v1.1.52

func BatchJobGVK() apiv1.GroupVersionKind

func CredentialGVK ¶

func CredentialGVK() apiv1.GroupVersionKind

func CredentialRequestDefinitionGVK ¶

func CredentialRequestDefinitionGVK() apiv1.GroupVersionKind

func DataplaneGVK ¶ added in v1.1.49

func DataplaneGVK() apiv1.GroupVersionKind

func DataplaneSecretGVK ¶ added in v1.1.49

func DataplaneSecretGVK() apiv1.GroupVersionKind

func DiscoveryAgentGVK ¶

func DiscoveryAgentGVK() apiv1.GroupVersionKind

func EnvironmentGVK ¶

func EnvironmentGVK() apiv1.GroupVersionKind

func IdentityProviderGVK ¶ added in v1.1.91

func IdentityProviderGVK() apiv1.GroupVersionKind

func IdentityProviderSecretGVK ¶ added in v1.1.91

func IdentityProviderSecretGVK() apiv1.GroupVersionKind

func IntegrationGVK ¶

func IntegrationGVK() apiv1.GroupVersionKind

func ManagedApplicationGVK ¶

func ManagedApplicationGVK() apiv1.GroupVersionKind

func ResourceHookGVK ¶

func ResourceHookGVK() apiv1.GroupVersionKind

func SecretGVK ¶

func SecretGVK() apiv1.GroupVersionKind

func TraceabilityAgentGVK ¶

func TraceabilityAgentGVK() apiv1.GroupVersionKind

func WatchTopicGVK ¶

func WatchTopicGVK() apiv1.GroupVersionKind

func WebhookGVK ¶

func WebhookGVK() apiv1.GroupVersionKind

Types ¶

type APIService ¶

type APIService struct {
	apiv1.ResourceMeta
	// GENERATE: The following code has been modified after code generation
	//
	//	Compliance ApiServiceCompliance `json:"compliance"`
	Compliance *ApiServiceCompliance `json:"compliance,omitempty"`
	Details    ApiServiceDetails     `json:"details"`
	Owner      *apiv1.Owner          `json:"owner"`
	References ApiServiceReferences  `json:"references"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Source     ApiServiceSource      `json:"source"`
	Source *ApiServiceSource `json:"source,omitempty"`
	Spec   ApiServiceSpec    `json:"spec"`
	// Status ApiServiceStatus  `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

APIService Resource

func APIServiceFromInstanceArray ¶

func APIServiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIService, error)

APIServiceFromInstanceArray converts a []*ResourceInstance to a []*APIService

func NewAPIService ¶

func NewAPIService(name, scopeName string) *APIService

NewAPIService creates an empty *APIService

func (*APIService) AsInstance ¶

func (res *APIService) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a APIService to a ResourceInstance

func (*APIService) FromInstance ¶

func (res *APIService) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a APIService

func (*APIService) MarshalJSON ¶

func (res *APIService) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*APIService) PluralName ¶

func (res *APIService) PluralName() string

PluralName returns the plural name of the resource

func (*APIService) UnmarshalJSON ¶

func (res *APIService) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type APIServiceInstance ¶

type APIServiceInstance struct {
	apiv1.ResourceMeta
	// GENERATE: The following code has been modified after code generation
	//
	//	Compliance ApiServiceInstanceCompliance `json:"compliance"`
	Compliance *ApiServiceInstanceCompliance `json:"compliance,omitempty"`
	Lifecycle  ApiServiceInstanceLifecycle   `json:"lifecycle"`
	Owner      *apiv1.Owner                  `json:"owner"`
	References ApiServiceInstanceReferences  `json:"references"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Source     ApiServiceInstanceSource      `json:"source"`
	Source *ApiServiceInstanceSource `json:"source,omitempty"`
	Spec   ApiServiceInstanceSpec    `json:"spec"`
}

APIServiceInstance Resource

func APIServiceInstanceFromInstanceArray ¶

func APIServiceInstanceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIServiceInstance, error)

APIServiceInstanceFromInstanceArray converts a []*ResourceInstance to a []*APIServiceInstance

func NewAPIServiceInstance ¶

func NewAPIServiceInstance(name, scopeName string) *APIServiceInstance

NewAPIServiceInstance creates an empty *APIServiceInstance

func (*APIServiceInstance) AsInstance ¶

func (res *APIServiceInstance) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a APIServiceInstance to a ResourceInstance

func (*APIServiceInstance) FromInstance ¶

func (res *APIServiceInstance) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a APIServiceInstance

func (*APIServiceInstance) MarshalJSON ¶

func (res *APIServiceInstance) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*APIServiceInstance) PluralName ¶

func (res *APIServiceInstance) PluralName() string

PluralName returns the plural name of the resource

func (*APIServiceInstance) UnmarshalJSON ¶

func (res *APIServiceInstance) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type APIServiceRevision ¶

type APIServiceRevision struct {
	apiv1.ResourceMeta
	Compliance ApiServiceRevisionCompliance `json:"compliance"`
	Owner      *apiv1.Owner                 `json:"owner"`
	Spec       ApiServiceRevisionSpec       `json:"spec"`
}

APIServiceRevision Resource

func APIServiceRevisionFromInstanceArray ¶

func APIServiceRevisionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIServiceRevision, error)

APIServiceRevisionFromInstanceArray converts a []*ResourceInstance to a []*APIServiceRevision

func NewAPIServiceRevision ¶

func NewAPIServiceRevision(name, scopeName string) *APIServiceRevision

NewAPIServiceRevision creates an empty *APIServiceRevision

func (*APIServiceRevision) AsInstance ¶

func (res *APIServiceRevision) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a APIServiceRevision to a ResourceInstance

func (*APIServiceRevision) FromInstance ¶

func (res *APIServiceRevision) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a APIServiceRevision

func (*APIServiceRevision) MarshalJSON ¶

func (res *APIServiceRevision) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*APIServiceRevision) PluralName ¶

func (res *APIServiceRevision) PluralName() string

PluralName returns the plural name of the resource

func (*APIServiceRevision) UnmarshalJSON ¶

func (res *APIServiceRevision) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type APISpecLintingJob ¶ added in v1.1.52

type APISpecLintingJob struct {
	apiv1.ResourceMeta
	Archived interface{}             `json:"archived"`
	Owner    *apiv1.Owner            `json:"owner"`
	Result   ApiSpecLintingJobResult `json:"result"`
	Spec     ApiSpecLintingJobSpec   `json:"spec"`
	State    ApiSpecLintingJobState  `json:"state"`
}

APISpecLintingJob Resource

func APISpecLintingJobFromInstanceArray ¶ added in v1.1.52

func APISpecLintingJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APISpecLintingJob, error)

APISpecLintingJobFromInstanceArray converts a []*ResourceInstance to a []*APISpecLintingJob

func NewAPISpecLintingJob ¶ added in v1.1.52

func NewAPISpecLintingJob(name, scopeName string) *APISpecLintingJob

NewAPISpecLintingJob creates an empty *APISpecLintingJob

func (*APISpecLintingJob) AsInstance ¶ added in v1.1.52

func (res *APISpecLintingJob) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a APISpecLintingJob to a ResourceInstance

func (*APISpecLintingJob) FromInstance ¶ added in v1.1.52

func (res *APISpecLintingJob) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a APISpecLintingJob

func (*APISpecLintingJob) MarshalJSON ¶ added in v1.1.52

func (res *APISpecLintingJob) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*APISpecLintingJob) PluralName ¶ added in v1.1.52

func (res *APISpecLintingJob) PluralName() string

PluralName returns the plural name of the resource

func (*APISpecLintingJob) UnmarshalJSON ¶ added in v1.1.52

func (res *APISpecLintingJob) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type APISpecLintingRuleset ¶ added in v1.1.52

type APISpecLintingRuleset struct {
	apiv1.ResourceMeta
	Owner    *apiv1.Owner              `json:"owner"`
	Revision interface{}               `json:"revision"`
	Spec     ApiSpecLintingRulesetSpec `json:"spec"`
}

APISpecLintingRuleset Resource

func APISpecLintingRulesetFromInstanceArray ¶ added in v1.1.52

func APISpecLintingRulesetFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APISpecLintingRuleset, error)

APISpecLintingRulesetFromInstanceArray converts a []*ResourceInstance to a []*APISpecLintingRuleset

func NewAPISpecLintingRuleset ¶ added in v1.1.52

func NewAPISpecLintingRuleset(name string) *APISpecLintingRuleset

NewAPISpecLintingRuleset creates an empty *APISpecLintingRuleset

func (*APISpecLintingRuleset) AsInstance ¶ added in v1.1.52

func (res *APISpecLintingRuleset) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a APISpecLintingRuleset to a ResourceInstance

func (*APISpecLintingRuleset) FromInstance ¶ added in v1.1.52

func (res *APISpecLintingRuleset) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a APISpecLintingRuleset

func (*APISpecLintingRuleset) MarshalJSON ¶ added in v1.1.52

func (res *APISpecLintingRuleset) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*APISpecLintingRuleset) PluralName ¶ added in v1.1.52

func (res *APISpecLintingRuleset) PluralName() string

PluralName returns the plural name of the resource

func (*APISpecLintingRuleset) UnmarshalJSON ¶ added in v1.1.52

func (res *APISpecLintingRuleset) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessControlList ¶

type AccessControlList struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner          `json:"owner"`
	Spec  AccessControlListSpec `json:"spec"`
}

AccessControlList Resource

func AccessControlListFromInstanceArray ¶

func AccessControlListFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessControlList, error)

AccessControlListFromInstanceArray converts a []*ResourceInstance to a []*AccessControlList

func NewAccessControlList ¶

func NewAccessControlList(name, scopeKind, scopeName string) (*AccessControlList, error)

NewAccessControlList creates an empty *AccessControlList

func (*AccessControlList) AsInstance ¶

func (res *AccessControlList) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a AccessControlList to a ResourceInstance

func (*AccessControlList) FromInstance ¶

func (res *AccessControlList) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a AccessControlList

func (*AccessControlList) MarshalJSON ¶

func (res *AccessControlList) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*AccessControlList) PluralName ¶

func (res *AccessControlList) PluralName() string

PluralName returns the plural name of the resource

func (*AccessControlList) UnmarshalJSON ¶

func (res *AccessControlList) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessControlListSpec ¶

type AccessControlListSpec struct {
	Rules    []AccessRules `json:"rules,omitempty"`
	Subjects []apiv1.Owner `json:"subjects,omitempty"`
}

AccessControlListSpec struct for AccessControlListSpec

type AccessControlListSpecAccessLevelScope ¶

type AccessControlListSpecAccessLevelScope struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// Set true to allow users to create scoped resources.
	AllowCreateScoped bool `json:"allowCreateScoped,omitempty"`
	// Set true to allow users to delete the unscoped resource.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update the unscoped resource.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScope struct for AccessControlListSpecAccessLevelScope

type AccessControlListSpecAccessLevelScopedKind ¶ added in v1.1.35

type AccessControlListSpecAccessLevelScopedKind struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// The kind of scoped resources to provide access to or \"*\" for all kinds.
	Kind string `json:"kind"`
	// Set true to allow users to create scoped resources of the specified kind.
	AllowCreate bool `json:"allowCreate,omitempty"`
	// Set true to allow users to delete scoped resources of the specified kind.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update scoped resources of the specified kind.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScopedKind struct for AccessControlListSpecAccessLevelScopedKind

type AccessControlListSpecAccessLevelScopedResource ¶ added in v1.1.35

type AccessControlListSpecAccessLevelScopedResource struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// The kind of scoped resources to provide access.
	Kind string `json:"kind"`
	// The name of the scoped resource to provide access to.
	Name string `json:"name"`
	// Set true to allow users to delete the referenced scoped resource.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update the referenced scoped resource.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScopedResource struct for AccessControlListSpecAccessLevelScopedResource

type AccessControlListSpecRules ¶

type AccessControlListSpecRules struct {
	// GENERATE: The following code has been modified after code generation
	Access []interface{} `json:"access,omitempty"`
}

AccessControlListSpecRules (management.v1alpha1.AccessControlList)

type AccessControlListSpecSubjects ¶

type AccessControlListSpecSubjects struct {
	// Type of the subject
	Type string `json:"type,omitempty"`
	// ID of the subject
	Id string `json:"id,omitempty"`
}

AccessControlListSpecSubjects (management.v1alpha1.AccessControlList)

type AccessLevelScope ¶

type AccessLevelScope struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
}

AccessLevelScope struct for AccessLevelScope

type AccessRequest ¶

type AccessRequest struct {
	apiv1.ResourceMeta
	Data  interface{}  `json:"data"`
	Owner *apiv1.Owner `json:"owner"`
	// GENERATE: The following code has been modified after code generation
	//
	//	References interface{}         `json:"references"`
	References []interface{}     `json:"references"`
	Spec       AccessRequestSpec `json:"spec"`
	// Status     AccessRequestStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

AccessRequest Resource

func AccessRequestFromInstanceArray ¶

func AccessRequestFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessRequest, error)

AccessRequestFromInstanceArray converts a []*ResourceInstance to a []*AccessRequest

func NewAccessRequest ¶

func NewAccessRequest(name, scopeName string) *AccessRequest

NewAccessRequest creates an empty *AccessRequest

func (*AccessRequest) AsInstance ¶

func (res *AccessRequest) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a AccessRequest to a ResourceInstance

func (*AccessRequest) FromInstance ¶

func (res *AccessRequest) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a AccessRequest

func (*AccessRequest) MarshalJSON ¶

func (res *AccessRequest) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*AccessRequest) PluralName ¶

func (res *AccessRequest) PluralName() string

PluralName returns the plural name of the resource

func (*AccessRequest) UnmarshalJSON ¶

func (res *AccessRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessRequestDefinition ¶

type AccessRequestDefinition struct {
	apiv1.ResourceMeta
	Owner    *apiv1.Owner                `json:"owner"`
	Spec     AccessRequestDefinitionSpec `json:"spec"`
	Webhooks interface{}                 `json:"webhooks"`
}

AccessRequestDefinition Resource

func AccessRequestDefinitionFromInstanceArray ¶

func AccessRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessRequestDefinition, error)

AccessRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*AccessRequestDefinition

func NewAccessRequestDefinition ¶

func NewAccessRequestDefinition(name, scopeName string) *AccessRequestDefinition

NewAccessRequestDefinition creates an empty *AccessRequestDefinition

func (*AccessRequestDefinition) AsInstance ¶

func (res *AccessRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a AccessRequestDefinition to a ResourceInstance

func (*AccessRequestDefinition) FromInstance ¶

func (res *AccessRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a AccessRequestDefinition

func (*AccessRequestDefinition) MarshalJSON ¶

func (res *AccessRequestDefinition) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*AccessRequestDefinition) PluralName ¶

func (res *AccessRequestDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*AccessRequestDefinition) UnmarshalJSON ¶

func (res *AccessRequestDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessRequestDefinitionSpec ¶

type AccessRequestDefinitionSpec struct {
	// JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance. (management.v1alpha1.AccessRequestDefinition)
	Schema    map[string]interface{}                `json:"schema"`
	Provision *AccessRequestDefinitionSpecProvision `json:"provision,omitempty"`
}

AccessRequestDefinitionSpec (management.v1alpha1.AccessRequestDefinition)

type AccessRequestDefinitionSpecProvision ¶

type AccessRequestDefinitionSpecProvision struct {
	// JSON Schema draft \\#7 for describing the data to be sent back after access has been provisioned. (management.v1alpha1.AccessRequestDefinition)
	Schema   map[string]interface{}                       `json:"schema,omitempty"`
	Policies AccessRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

AccessRequestDefinitionSpecProvision (management.v1alpha1.AccessRequestDefinition)

type AccessRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.49

type AccessRequestDefinitionSpecProvisionPolicies struct {
	// Defines on if AccessRequests using this definition can be moved from their current Subscription to a new one. This update implies that quotas and references are updated depending on the new Subscription's plan.
	Transferable bool `json:"transferable,omitempty"`
}

AccessRequestDefinitionSpecProvisionPolicies Defines the policies applied on the AccessRequests generated using this definition. (management.v1alpha1.AccessRequestDefinition)

type AccessRequestReferencesApplication ¶

type AccessRequestReferencesApplication struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesApplication struct for AccessRequestReferencesApplication

type AccessRequestReferencesAssetRequest ¶

type AccessRequestReferencesAssetRequest struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesAssetRequest struct for AccessRequestReferencesAssetRequest

type AccessRequestReferencesAssetResource ¶

type AccessRequestReferencesAssetResource struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesAssetResource struct for AccessRequestReferencesAssetResource

type AccessRequestReferencesProduct ¶

type AccessRequestReferencesProduct struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesProduct struct for AccessRequestReferencesProduct

type AccessRequestReferencesProductPlan ¶

type AccessRequestReferencesProductPlan struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesProductPlan struct for AccessRequestReferencesProductPlan

type AccessRequestReferencesProductRelease ¶

type AccessRequestReferencesProductRelease struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesProductRelease struct for AccessRequestReferencesProductRelease

type AccessRequestReferencesPublishedProduct ¶

type AccessRequestReferencesPublishedProduct struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesPublishedProduct struct for AccessRequestReferencesPublishedProduct

type AccessRequestReferencesQuota ¶

type AccessRequestReferencesQuota struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesQuota struct for AccessRequestReferencesQuota

type AccessRequestReferencesSubscription ¶

type AccessRequestReferencesSubscription struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesSubscription struct for AccessRequestReferencesSubscription

type AccessRequestSpec ¶

type AccessRequestSpec struct {
	// The name of an APIServiceInstance resource that specifies where the API is deployed.
	ApiServiceInstance string `json:"apiServiceInstance"`
	// The name of an ManagedApplication resource that groups set of credentials.
	ManagedApplication string `json:"managedApplication"`
	// The value that matches the AccessRequestDefinition schema linked to the referenced APIServiceInstance. (management.v1alpha1.AccessRequest)
	Data  map[string]interface{}  `json:"data"`
	Quota *AccessRequestSpecQuota `json:"quota,omitempty"`
}

AccessRequestSpec (management.v1alpha1.AccessRequest)

type AccessRequestSpecQuota ¶

type AccessRequestSpecQuota struct {
	// The limit of the allowed quota for the access request.
	Limit    int32  `json:"limit"`
	Interval string `json:"interval"`
}

AccessRequestSpecQuota Quota information for accessing the api. (management.v1alpha1.AccessRequest)

type AccessRequestStatus ¶

type AccessRequestStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []AccessRequestStatusReasons `json:"reasons,omitempty"`
}

AccessRequestStatus (management.v1alpha1.AccessRequest)

type AccessRequestStatusReasons ¶

type AccessRequestStatusReasons struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time `json:"timestamp"`
	//  (management.v1alpha1.AccessRequest)
	Meta map[string]map[string]interface{} `json:"meta,omitempty"`
}

AccessRequestStatusReasons (management.v1alpha1.AccessRequest)

type AccessRules ¶

type AccessRules struct {
	// Resource level at which access is being granted.
	Access []AccessLevelScope `json:"access,omitempty"`
}

AccessRules struct for AccessRules

type ApiServiceCompliance ¶ added in v1.1.57

type ApiServiceCompliance struct {
	// GENERATE: The following code has been modified after code generation
	Design ApiServiceComplianceLintingStatus `json:"design,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Security ApiServiceComplianceLintingStatus `json:"security,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Runtime ApiServiceComplianceRuntimeStatus `json:"runtime,omitempty"`
}

ApiServiceCompliance (management.v1alpha1.APIService)

type ApiServiceComplianceLintingStatus ¶ added in v1.1.57

type ApiServiceComplianceLintingStatus struct {
	// The state of the compliance job.
	State              string `json:"state,omitempty"`
	ApiSpecLintingJob  string `json:"apiSpecLintingJob,omitempty"`
	ApiServiceRevision string `json:"apiServiceRevision,omitempty"`
	// Ruleset logical name.
	Ruleset string `json:"ruleset,omitempty"`
	// File name of the APISpecLintingRuleset.
	RulesetFileName string                                  `json:"rulesetFileName,omitempty"`
	Result          ApiServiceComplianceLintingStatusResult `json:"result,omitempty"`
}

ApiServiceComplianceLintingStatus Provides the current linting job state and the final result.

type ApiServiceComplianceLintingStatusResult ¶ added in v1.1.57

type ApiServiceComplianceLintingStatusResult struct {
	// The total number of errors in the linting result.
	ErrorCount int32 `json:"errorCount,omitempty"`
	// The total number of warnings in the linting result.
	WarningCount int32 `json:"warningCount,omitempty"`
	// The total number of hints in the linting result.
	HintCount int32 `json:"hintCount,omitempty"`
	// The total number of infos in the linting result.
	InfoCount int32 `json:"infoCount,omitempty"`
	// Grade result from the results summary.
	Grade string `json:"grade,omitempty"`
}

ApiServiceComplianceLintingStatusResult APIService Linting results.

type ApiServiceComplianceRuntimeStatus ¶ added in v1.1.79

type ApiServiceComplianceRuntimeStatus struct {
	Result ApiServiceComplianceRuntimeStatusResult `json:"result,omitempty"`
}

ApiServiceComplianceRuntimeStatus Provides the current runtime result.

type ApiServiceComplianceRuntimeStatusResult ¶ added in v1.1.79

type ApiServiceComplianceRuntimeStatusResult struct {
	// The average risk score in the runtime compliance result.
	// GENERATE: The following code has been modified after code generation
	RiskScore float64 `json:"riskScore,omitempty"`
	// Grade result from the results summary.
	Grade string `json:"grade,omitempty"`
}

ApiServiceComplianceRuntimeStatusResult APIService runtime results.

type ApiServiceDetails ¶

type ApiServiceDetails struct {
	// Specification type for the API Service.
	SpecType string `json:"specType,omitempty"`
}

ApiServiceDetails (management.v1alpha1.APIService)

type ApiServiceInstanceCompliance ¶ added in v1.1.79

type ApiServiceInstanceCompliance struct {
	// GENERATE: The following code has been modified after code generation
	Runtime ApiServiceInstanceComplianceRuntimeStatus `json:"runtime,omitempty"`
}

ApiServiceInstanceCompliance (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceComplianceRuntimeStatus ¶ added in v1.1.79

type ApiServiceInstanceComplianceRuntimeStatus struct {
	Result ApiServiceInstanceComplianceRuntimeStatusResult `json:"result,omitempty"`
}

ApiServiceInstanceComplianceRuntimeStatus Provides the current runtime result.

type ApiServiceInstanceComplianceRuntimeStatusResult ¶ added in v1.1.79

type ApiServiceInstanceComplianceRuntimeStatusResult struct {
	// Time when the update occurred.
	Timestamp time.Time `json:"timestamp,omitempty"`
	// Grade result from the results summary.
	Grade string `json:"grade,omitempty"`
}

ApiServiceInstanceComplianceRuntimeStatusResult APIServiceInstance runtime results.

type ApiServiceInstanceLifecycle ¶ added in v1.1.78

type ApiServiceInstanceLifecycle struct {
	// Overrides the Environment's default stage. Value must be one of Environment's allowed stages.
	Stage        string                                  `json:"stage,omitempty"`
	ReleaseState ApiServiceInstanceLifecycleReleaseState `json:"releaseState,omitempty"`
}

ApiServiceInstanceLifecycle (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceLifecycleReleaseState ¶ added in v1.1.78

type ApiServiceInstanceLifecycleReleaseState struct {
	// Current release state of the API endpoint(s) such as stable or deprecated.
	Name string `json:"name"`
	// Optional info to be associated with the current state. If state is deprecated, then this is intended to indicate when the servers will become decommissioned.
	Message string `json:"message,omitempty"`
}

ApiServiceInstanceLifecycleReleaseState (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceReferences ¶ added in v1.1.44

type ApiServiceInstanceReferences struct {
	// Reference to Amplify Central APIService
	ApiService string `json:"apiService,omitempty"`
	// Computes the APIServiceInstance stage based on the Environment default stage or any override provided in the APIServiceInstance spec.stage property.
	Stage string `json:"stage,omitempty"`
}

ApiServiceInstanceReferences (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSource ¶ added in v1.1.79

type ApiServiceInstanceSource struct {
	// GENERATE: The following code has been modified after code generation
	//
	//	DataplaneType ApiServiceInstanceSourceDataplaneType `json:"dataplaneType,omitempty"`
	DataplaneType *ApiServiceInstanceSourceDataplaneType `json:"dataplaneType,omitempty"`
	// GENERATE: The following code has been modified after code generation
	//
	//	References    ApiServiceInstanceSourceReferences     `json:"references,omitempty"`
	References *ApiServiceInstanceSourceReferences `json:"references,omitempty"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Compliance ApiServiceInstanceSourceCompliance  `json:"compliance,omitempty"`
	Compliance *ApiServiceInstanceSourceCompliance `json:"compliance,omitempty"`
}

ApiServiceInstanceSource (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSourceCompliance ¶ added in v1.1.79

type ApiServiceInstanceSourceCompliance struct {
	// GENERATE: The following code has been modified after code generation
	Runtime ApiServiceInstanceSourceRuntimeStatus `json:"runtime,omitempty"`
}

ApiServiceInstanceSourceCompliance (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSourceDataplaneType ¶ added in v1.1.79

type ApiServiceInstanceSourceDataplaneType struct {
	// Dataplane type
	Managed string `json:"managed,omitempty"`
	// Design Repository type
	Design string `json:"design,omitempty"`
}

ApiServiceInstanceSourceDataplaneType (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSourceReferences ¶ added in v1.1.79

type ApiServiceInstanceSourceReferences struct {
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
}

ApiServiceInstanceSourceReferences (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSourceRuntimeStatus ¶ added in v1.1.79

type ApiServiceInstanceSourceRuntimeStatus struct {
	Result ApiServiceInstanceSourceRuntimeStatusResult `json:"result,omitempty"`
}

ApiServiceInstanceSourceRuntimeStatus Provides the current runtime result.

type ApiServiceInstanceSourceRuntimeStatusResult ¶ added in v1.1.79

type ApiServiceInstanceSourceRuntimeStatusResult struct {
	// Time when the update occurred.
	Timestamp time.Time `json:"timestamp,omitempty"`
	// The average risk score in the runtime compliance result.
	// GENERATE: The following code has been modified after code generation
	RiskScore float64 `json:"riskScore,omitempty"`
}

ApiServiceInstanceSourceRuntimeStatusResult APIServiceInstance runtime results.

type ApiServiceInstanceSpec ¶

type ApiServiceInstanceSpec struct {
	ApiServiceRevision           string   `json:"apiServiceRevision,omitempty"`
	AccessRequestDefinition      string   `json:"accessRequestDefinition,omitempty"`
	CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,omitempty"`
	// A list of locations where the api is deployed. If \"mock\" property is set, then the mock endpoints will be assigned by the system.
	Endpoint []ApiServiceInstanceSpecEndpoint `json:"endpoint,omitempty"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Mock     ApiServiceInstanceSpecMock       `json:"mock,omitempty"`
	Mock *ApiServiceInstanceSpecMock `json:"mock,omitempty"`
}

ApiServiceInstanceSpec (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSpecEndpoint ¶

type ApiServiceInstanceSpecEndpoint struct {
	Host     string                        `json:"host"`
	Port     int32                         `json:"port,omitempty"`
	Protocol string                        `json:"protocol"`
	Routing  ApiServiceInstanceSpecRouting `json:"routing,omitempty"`
}

ApiServiceInstanceSpecEndpoint (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSpecMock ¶ added in v1.1.84

type ApiServiceInstanceSpecMock struct {
	// Assigned to the mock server's URL base path. Must be unique for the organization.
	Name              string                                      `json:"name"`
	UseLatestRevision ApiServiceInstanceSpecMockUseLatestRevision `json:"useLatestRevision,omitempty"`
}

ApiServiceInstanceSpecMock Sets up the referenced API to be mocked by an Axway server. Can only be set upon creation. Requires an \"API Mocking\" entitlement. (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSpecMockUseLatestRevision ¶ added in v1.1.84

type ApiServiceInstanceSpecMockUseLatestRevision struct {
	ApiService string `json:"apiService"`
}

ApiServiceInstanceSpecMockUseLatestRevision Optional property used to automatically update the mock service with the newest APIServiceRevision. When not set, you must assign the \"spec.apiServiceRevision\" to revision you want to mock. (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSpecRouting ¶

type ApiServiceInstanceSpecRouting struct {
	// The base path to the API. Example: '/api'.
	BasePath string `json:"basePath,omitempty"`
	// Specify any additional routing details needed (management.v1alpha1.APIServiceInstance)
	// GENERATE: The following code has been modified after code generation
	Details map[string]interface{} `json:"details,omitempty"`
}

ApiServiceInstanceSpecRouting (management.v1alpha1.APIServiceInstance)

type ApiServiceReferences ¶ added in v1.1.78

type ApiServiceReferences struct {
	// The stages set on all the APIServiceInstances for this APIService.
	Stages []string `json:"stages,omitempty"`
}

ApiServiceReferences (management.v1alpha1.APIService)

type ApiServiceRevisionCompliance ¶ added in v1.1.52

type ApiServiceRevisionCompliance struct {
	// GENERATE: The following code has been modified after code generation
	Design ApiServiceRevisionComplianceLintingStatus `json:"design,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Security ApiServiceRevisionComplianceLintingStatus `json:"security,omitempty"`
}

ApiServiceRevisionCompliance (management.v1alpha1.APIServiceRevision)

type ApiServiceRevisionComplianceLintingStatus ¶ added in v1.1.52

type ApiServiceRevisionComplianceLintingStatus struct {
	// The state of the compliance job.
	State             string `json:"state,omitempty"`
	ApiSpecLintingJob string `json:"apiSpecLintingJob,omitempty"`
	// Ruleset logical name.
	Ruleset string `json:"ruleset,omitempty"`
	// File name of the APISpecLintingRuleset.
	RulesetFileName string                                          `json:"rulesetFileName,omitempty"`
	Result          ApiServiceRevisionComplianceLintingStatusResult `json:"result,omitempty"`
}

ApiServiceRevisionComplianceLintingStatus Provides the current linting job state and the final result.

type ApiServiceRevisionComplianceLintingStatusResult ¶ added in v1.1.52

type ApiServiceRevisionComplianceLintingStatusResult struct {
	// The total number of errors in the linting result.
	ErrorCount int32 `json:"errorCount,omitempty"`
	// The total number of warnings in the linting result.
	WarningCount int32 `json:"warningCount,omitempty"`
	// The total number of hints in the linting result.
	HintCount int32 `json:"hintCount,omitempty"`
	// The total number of infos in the linting result.
	InfoCount int32 `json:"infoCount,omitempty"`
	// Grade result from the results summary.
	Grade string `json:"grade,omitempty"`
}

ApiServiceRevisionComplianceLintingStatusResult APIServiceRevision Linting results.

type ApiServiceRevisionSpec ¶

type ApiServiceRevisionSpec struct {
	ApiService string                           `json:"apiService"`
	Definition ApiServiceRevisionSpecDefinition `json:"definition,omitempty"`
}

ApiServiceRevisionSpec (management.v1alpha1.APIServiceRevision)

type ApiServiceRevisionSpecDefinition ¶

type ApiServiceRevisionSpecDefinition struct {
	// The type of the api specification.
	Type string `json:"type,omitempty"`
	// Base64 encoded value of the api specification.
	Value string `json:"value,omitempty"`
	// content-type of the spec.
	ContentType string `json:"contentType,omitempty"`
	// The version of the api specification. Will be extracted from \"value\" if not assigned.
	Version string `json:"version,omitempty"`
}

ApiServiceRevisionSpecDefinition The api specification details. (management.v1alpha1.APIServiceRevision)

type ApiServiceSource ¶ added in v1.1.79

type ApiServiceSource struct {
	// GENERATE: The following code has been modified after code generation
	//
	//	DataplaneType ApiServiceSourceDataplaneType `json:"dataplaneType,omitempty"`
	DataplaneType *ApiServiceSourceDataplaneType `json:"dataplaneType,omitempty"`
	// GENERATE: The following code has been modified after code generation
	//
	//	References    ApiServiceSourceReferences     `json:"references,omitempty"`
	References *ApiServiceSourceReferences `json:"references,omitempty"`
}

ApiServiceSource (management.v1alpha1.APIService)

type ApiServiceSourceDataplaneType ¶ added in v1.1.79

type ApiServiceSourceDataplaneType struct {
	// Dataplane type
	Managed string `json:"managed,omitempty"`
	// Design Repository type
	Design string `json:"design,omitempty"`
}

ApiServiceSourceDataplaneType (management.v1alpha1.APIService)

type ApiServiceSourceReferences ¶ added in v1.1.79

type ApiServiceSourceReferences struct {
	ApiService string `json:"apiService,omitempty"`
}

ApiServiceSourceReferences (management.v1alpha1.APIService)

type ApiServiceSpec ¶

type ApiServiceSpec struct {
	// The description of the api service.
	Description string             `json:"description,omitempty"`
	Categories  []string           `json:"categories,omitempty"`
	Icon        ApiServiceSpecIcon `json:"icon,omitempty"`
}

ApiServiceSpec (management.v1alpha1.APIService)

type ApiServiceSpecIcon ¶

type ApiServiceSpecIcon struct {
	// Content-Type of the image.
	ContentType string `json:"contentType,omitempty"`
	// Base64 encoded image.
	Data string `json:"data,omitempty"`
}

ApiServiceSpecIcon Image for the APIService. (management.v1alpha1.APIService)

type ApiServiceStatus ¶

type ApiServiceStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

ApiServiceStatus (management.v1alpha1.APIService)

type ApiServiceStatusError ¶

type ApiServiceStatusError struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the change occurred.
	Timestamp time.Time                         `json:"timestamp"`
	Meta      map[string]map[string]interface{} `json:"meta,omitempty"`
}

ApiServiceStatusError struct for ApiServiceStatusError

type ApiSpecLintingJobResult ¶ added in v1.1.52

type ApiSpecLintingJobResult struct {
	// The API Specification Linting Result details.
	Details []ApiSpecLintingJobResultDetails `json:"details"`
	Summary ApiSpecLintingJobResultSummary   `json:"summary"`
	// Reference to the APISpecLintingRuleset revision
	ApiSpecLintingRulesetRevision int32 `json:"apiSpecLintingRulesetRevision,omitempty"`
	// Set the value to true if the linting result details count has reached the threshold
	DetailsThresholdExceeded bool `json:"detailsThresholdExceeded,omitempty"`
}

ApiSpecLintingJobResult (management.v1alpha1.APISpecLintingJob)

type ApiSpecLintingJobResultDetails ¶ added in v1.1.52

type ApiSpecLintingJobResultDetails struct {
	// Name of the validation rule.
	Rule string `json:"rule,omitempty"`
	// Description of the linting result.
	Message string `json:"message,omitempty"`
	// Level of severity of the linting result.
	Severity string `json:"severity,omitempty"`
	// Path to the result.
	Path     string                          `json:"path,omitempty"`
	Location ApiSpecLintingJobResultLocation `json:"location,omitempty"`
}

ApiSpecLintingJobResultDetails (management.v1alpha1.APISpecLintingJob)

type ApiSpecLintingJobResultLocation ¶ added in v1.1.52

type ApiSpecLintingJobResultLocation struct {
	// The 1-based line number in the API Specification File.
	Line int32 `json:"line"`
	// The 1-based character number in the API Specification File.
	Character int32 `json:"character"`
}

ApiSpecLintingJobResultLocation The location of the linting result. (management.v1alpha1.APISpecLintingJob)

type ApiSpecLintingJobResultSummary ¶ added in v1.1.52

type ApiSpecLintingJobResultSummary struct {
	// The total number of errors in the linting result.
	ErrorCount int32 `json:"errorCount,omitempty"`
	// The total number of warnings in the linting result.
	WarningCount int32 `json:"warningCount,omitempty"`
	// The total number of hints in the linting result.
	HintCount int32 `json:"hintCount,omitempty"`
	// The total number of infos in the linting result.
	InfoCount int32 `json:"infoCount,omitempty"`
	// Grade result from the results summary.
	Grade string `json:"grade,omitempty"`
}

ApiSpecLintingJobResultSummary Summary of the linting results. (management.v1alpha1.APISpecLintingJob)

type ApiSpecLintingJobSpec ¶ added in v1.1.52

type ApiSpecLintingJobSpec struct {
	// Reference to Amplify Central APIServiceRevision
	ApiServiceRevision string `json:"apiServiceRevision"`
	// Reference to Amplify Central APISpecLintingRuleset
	ApiSpecLintingRuleset string `json:"apiSpecLintingRuleset"`
}

ApiSpecLintingJobSpec (management.v1alpha1.APISpecLintingJob)

type ApiSpecLintingJobState ¶ added in v1.1.52

type ApiSpecLintingJobState struct {
	// The current state, indicating progress towards consistency.
	Name string `json:"name"`
	// Details of the state.
	Message string `json:"message,omitempty"`
	// Time when the update occurred.
	Timestamp time.Time `json:"timestamp,omitempty"`
}

ApiSpecLintingJobState (management.v1alpha1.APISpecLintingJob)

type ApiSpecLintingRulesetSpec ¶ added in v1.1.52

type ApiSpecLintingRulesetSpec struct {
	Definition ApiSpecLintingRulesetSpecDefinition `json:"definition,omitempty"`
	// Description of the API spec linting ruleset.
	Description string `json:"description,omitempty"`
}

ApiSpecLintingRulesetSpec (management.v1alpha1.APISpecLintingRuleset)

type ApiSpecLintingRulesetSpecDefinition ¶ added in v1.1.52

type ApiSpecLintingRulesetSpecDefinition struct {
	// The type of the API Specification Linting Ruleset.
	LintingType string `json:"lintingType"`
	// Base64 encoded value of the API Specification Linting Ruleset.
	Value string `json:"value"`
	// The MIME type of property \"value\" such as \"application/json\" or \"application/yaml\".
	ContentType string `json:"contentType"`
	// File name and extension of the APISpecLintingRuleset such as \"my-file.json\".
	FileName string `json:"fileName,omitempty"`
	// Defines if the APISpecLintingRuleset is default.
	IsDefault bool `json:"isDefault,omitempty"`
	// Indicates which API specification types can be linted by this ruleset.
	ApiTypes []string `json:"apiTypes"`
}

ApiSpecLintingRulesetSpecDefinition The API Specification Ruleset details. (management.v1alpha1.APISpecLintingRuleset)

type AssetMapping ¶

type AssetMapping struct {
	apiv1.ResourceMeta
	Owner  *apiv1.Owner       `json:"owner"`
	Spec   AssetMappingSpec   `json:"spec"`
	Status AssetMappingStatus `json:"status"`
}

AssetMapping Resource

func AssetMappingFromInstanceArray ¶

func AssetMappingFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetMapping, error)

AssetMappingFromInstanceArray converts a []*ResourceInstance to a []*AssetMapping

func NewAssetMapping ¶

func NewAssetMapping(name, scopeName string) *AssetMapping

NewAssetMapping creates an empty *AssetMapping

func (*AssetMapping) AsInstance ¶

func (res *AssetMapping) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a AssetMapping to a ResourceInstance

func (*AssetMapping) FromInstance ¶

func (res *AssetMapping) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a AssetMapping

func (*AssetMapping) MarshalJSON ¶

func (res *AssetMapping) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*AssetMapping) PluralName ¶

func (res *AssetMapping) PluralName() string

PluralName returns the plural name of the resource

func (*AssetMapping) UnmarshalJSON ¶

func (res *AssetMapping) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetMappingSpec ¶

type AssetMappingSpec struct {
	// Reference to the executed AssetMappingTemplate.
	AssetMappingTemplate string                 `json:"assetMappingTemplate,omitempty"`
	Inputs               AssetMappingSpecInputs `json:"inputs"`
}

AssetMappingSpec (management.v1alpha1.AssetMapping)

type AssetMappingSpecInputs ¶

type AssetMappingSpecInputs struct {
	ApiService         string `json:"apiService"`
	ApiServiceRevision string `json:"apiServiceRevision,omitempty"`
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
	// This property is deprecated and will be ignored.
	Stage string `json:"stage,omitempty"`
	// list of categories for the asset.
	Categories []string `json:"categories,omitempty"`
	// title for generated asset resource.
	AssetResourceTitle string `json:"assetResourceTitle,omitempty"`
}

AssetMappingSpecInputs The list of the inputs provided to the template. (management.v1alpha1.AssetMapping)

type AssetMappingStatus ¶

type AssetMappingStatus struct {
	Level  string                   `json:"level,omitempty"`
	Source AssetMappingStatusSource `json:"source,omitempty"`
	// Generated catalog resources.
	Outputs []AssetMappingStatusOutputs `json:"outputs,omitempty"`
}

AssetMappingStatus (management.v1alpha1.AssetMapping)

type AssetMappingStatusOperationType ¶

type AssetMappingStatusOperationType string

AssetMappingStatusOperationType The type of the operation executed on the resource that triggered the Asset Mapping.

const (
	CREATED AssetMappingStatusOperationType = "created"
	UPDATED AssetMappingStatusOperationType = "updated"
	DELETED AssetMappingStatusOperationType = "deleted"
)

List of AssetMappingStatus.OperationType

type AssetMappingStatusOutputs ¶

type AssetMappingStatusOutputs struct {
	Resource AssetMappingStatusResource `json:"resource,omitempty"`
}

AssetMappingStatusOutputs (management.v1alpha1.AssetMapping)

type AssetMappingStatusResource ¶

type AssetMappingStatusResource struct {
	AssetResource AssetMappingStatusResourceAssetResource `json:"assetResource,omitempty"`
	Stage         AssetMappingStatusResourceStage         `json:"stage,omitempty"`
}

AssetMappingStatusResource The resources that were impacted with the trigger of asset mapping. (management.v1alpha1.AssetMapping)

type AssetMappingStatusResourceAssetResource ¶

type AssetMappingStatusResourceAssetResource struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusResourceAssetResource (management.v1alpha1.AssetMapping)

type AssetMappingStatusResourceStage ¶

type AssetMappingStatusResourceStage struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusResourceStage (management.v1alpha1.AssetMapping)

type AssetMappingStatusSource ¶

type AssetMappingStatusSource struct {
	Resource AssetMappingStatusSourceResource `json:"resource,omitempty"`
}

AssetMappingStatusSource (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResource ¶

type AssetMappingStatusSourceResource struct {
	ApiService           AssetMappingStatusSourceResourceApiService           `json:"apiService,omitempty"`
	ApiServiceRevision   AssetMappingStatusSourceResourceApiServiceRevision   `json:"apiServiceRevision,omitempty"`
	ApiServiceInstance   AssetMappingStatusSourceResourceApiServiceInstance   `json:"apiServiceInstance,omitempty"`
	AssetMappingTemplate AssetMappingStatusSourceResourceAssetMappingTemplate `json:"assetMappingTemplate,omitempty"`
}

AssetMappingStatusSourceResource The resource that triggered the Asset Mapping. (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceApiService ¶

type AssetMappingStatusSourceResourceApiService struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiService (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceApiServiceInstance ¶

type AssetMappingStatusSourceResourceApiServiceInstance struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiServiceInstance (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceApiServiceRevision ¶

type AssetMappingStatusSourceResourceApiServiceRevision struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiServiceRevision (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceAssetMappingTemplate ¶

type AssetMappingStatusSourceResourceAssetMappingTemplate struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceAssetMappingTemplate (management.v1alpha1.AssetMapping)

type AssetMappingTemplate ¶

type AssetMappingTemplate struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner             `json:"owner"`
	Spec  AssetMappingTemplateSpec `json:"spec"`
}

AssetMappingTemplate Resource

func AssetMappingTemplateFromInstanceArray ¶

func AssetMappingTemplateFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetMappingTemplate, error)

AssetMappingTemplateFromInstanceArray converts a []*ResourceInstance to a []*AssetMappingTemplate

func NewAssetMappingTemplate ¶

func NewAssetMappingTemplate(name, scopeName string) *AssetMappingTemplate

NewAssetMappingTemplate creates an empty *AssetMappingTemplate

func (*AssetMappingTemplate) AsInstance ¶

func (res *AssetMappingTemplate) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a AssetMappingTemplate to a ResourceInstance

func (*AssetMappingTemplate) FromInstance ¶

func (res *AssetMappingTemplate) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a AssetMappingTemplate

func (*AssetMappingTemplate) MarshalJSON ¶

func (res *AssetMappingTemplate) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*AssetMappingTemplate) PluralName ¶

func (res *AssetMappingTemplate) PluralName() string

PluralName returns the plural name of the resource

func (*AssetMappingTemplate) UnmarshalJSON ¶

func (res *AssetMappingTemplate) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetMappingTemplateSpec ¶

type AssetMappingTemplateSpec struct {
	// A list of filters for the API Service resource on which the template applies.
	Filters []AssetMappingTemplateSpecFilters `json:"filters,omitempty"`
}

AssetMappingTemplateSpec (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecApiService ¶

type AssetMappingTemplateSpecApiService struct {
	// The name of the API Service.
	Name string `json:"name,omitempty"`
	// Attributes used to filter the APIServiceRevisions for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate)
	Attributes         map[string]string                          `json:"attributes,omitempty"`
	ApiServiceRevision AssetMappingTemplateSpecApiServiceRevision `json:"apiServiceRevision,omitempty"`
}

AssetMappingTemplateSpecApiService (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecApiServiceRevision ¶

type AssetMappingTemplateSpecApiServiceRevision struct {
	// Attributes used to filter the APIServiceRevisions for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate)
	Attributes         map[string]string                                            `json:"attributes,omitempty"`
	ApiServiceInstance AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance `json:"apiServiceInstance,omitempty"`
}

AssetMappingTemplateSpecApiServiceRevision (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance ¶

type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance struct {
	// Attributes used to filter the APIServiceInstances for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate)
	Attributes map[string]string `json:"attributes,omitempty"`
}

AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecAsset ¶

type AssetMappingTemplateSpecAsset struct {
	// name of the asset or a template for name
	Name string `json:"name,omitempty"`
}

AssetMappingTemplateSpecAsset (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecFilters ¶

type AssetMappingTemplateSpecFilters struct {
	ApiService []AssetMappingTemplateSpecApiService `json:"apiService,omitempty"`
	// name of the stage
	Stage string `json:"stage,omitempty"`
	// list of categories for the asset.
	Categories []string                      `json:"categories,omitempty"`
	Asset      AssetMappingTemplateSpecAsset `json:"asset,omitempty"`
}

AssetMappingTemplateSpecFilters (management.v1alpha1.AssetMappingTemplate)

type BatchJob ¶ added in v1.1.52

type BatchJob struct {
	apiv1.ResourceMeta
	Owner    *apiv1.Owner     `json:"owner"`
	Progress BatchJobProgress `json:"progress"`
	Spec     BatchJobSpec     `json:"spec"`
}

BatchJob Resource

func BatchJobFromInstanceArray ¶ added in v1.1.52

func BatchJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*BatchJob, error)

BatchJobFromInstanceArray converts a []*ResourceInstance to a []*BatchJob

func NewBatchJob ¶ added in v1.1.52

func NewBatchJob(name, scopeName string) *BatchJob

NewBatchJob creates an empty *BatchJob

func (*BatchJob) AsInstance ¶ added in v1.1.52

func (res *BatchJob) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a BatchJob to a ResourceInstance

func (*BatchJob) FromInstance ¶ added in v1.1.52

func (res *BatchJob) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a BatchJob

func (*BatchJob) MarshalJSON ¶ added in v1.1.52

func (res *BatchJob) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*BatchJob) PluralName ¶ added in v1.1.52

func (res *BatchJob) PluralName() string

PluralName returns the plural name of the resource

func (*BatchJob) UnmarshalJSON ¶ added in v1.1.52

func (res *BatchJob) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type BatchJobProgress ¶ added in v1.1.52

type BatchJobProgress struct {
	// The last 1-based page number requested from API Server.
	PageNumber int32 `json:"pageNumber,omitempty"`
	// The number of resources requested per page from API Server.
	PageSize int32 `json:"pageSize,omitempty"`
	// The query parameters used in the request.
	QueryParams string `json:"queryParams,omitempty"`
	// Name of scoped resource the job fetches resources from. Undefined for unscoped searches.
	ScopeName string `json:"scopeName,omitempty"`
}

BatchJobProgress (management.v1alpha1.BatchJob)

type BatchJobSpec ¶ added in v1.1.52

type BatchJobSpec struct {
	// Unique string ID assigned by a controller indicating what action this job is performing.
	Action     string                   `json:"action"`
	References []BatchJobSpecReferences `json:"references,omitempty"`
}

BatchJobSpec (management.v1alpha1.BatchJob)

type BatchJobSpecReferences ¶ added in v1.1.52

type BatchJobSpecReferences struct {
	Kind string `json:"kind,omitempty"`
	Name string `json:"name,omitempty"`
}

BatchJobSpecReferences (management.v1alpha1.BatchJob)

type Credential ¶

type Credential struct {
	apiv1.ResourceMeta
	Data       interface{}          `json:"data"`
	Owner      *apiv1.Owner         `json:"owner"`
	Policies   CredentialPolicies   `json:"policies"`
	References CredentialReferences `json:"references"`
	Spec       CredentialSpec       `json:"spec"`
	State      CredentialState      `json:"state"`
	// Status     CredentialStatus     `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Credential Resource

func CredentialFromInstanceArray ¶

func CredentialFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Credential, error)

CredentialFromInstanceArray converts a []*ResourceInstance to a []*Credential

func NewCredential ¶

func NewCredential(name, scopeName string) *Credential

NewCredential creates an empty *Credential

func (*Credential) AsInstance ¶

func (res *Credential) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Credential to a ResourceInstance

func (*Credential) FromInstance ¶

func (res *Credential) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Credential

func (*Credential) MarshalJSON ¶

func (res *Credential) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Credential) PluralName ¶

func (res *Credential) PluralName() string

PluralName returns the plural name of the resource

func (*Credential) UnmarshalJSON ¶

func (res *Credential) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type CredentialPolicies ¶ added in v1.1.35

type CredentialPolicies struct {
	// Defines on if Credential can be renewed.
	Expiry *CredentialPoliciesExpiry `json:"expiry,omitempty"`
}

CredentialPolicies (management.v1alpha1.Credential)

type CredentialPoliciesExpiry ¶ added in v1.1.35

type CredentialPoliciesExpiry struct {
	// Time when the Credential is set to be expired.
	Timestamp time.Time `json:"timestamp"`
}

CredentialPoliciesExpiry (management.v1alpha1.Credential)

type CredentialReferences ¶

type CredentialReferences struct {
	// Name of the catalog Application for which the initial Credential was generated
	Application string `json:"application,omitempty"`
	// Name of the catalog Credential that generated this Credential.
	Credential string `json:"credential,omitempty"`
}

CredentialReferences (management.v1alpha1.Credential)

type CredentialRequestDefinition ¶

type CredentialRequestDefinition struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner                          `json:"owner"`
	References CredentialRequestDefinitionReferences `json:"references"`
	Spec       CredentialRequestDefinitionSpec       `json:"spec"`
	Webhooks   interface{}                           `json:"webhooks"`
}

CredentialRequestDefinition Resource

func CredentialRequestDefinitionFromInstanceArray ¶

func CredentialRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*CredentialRequestDefinition, error)

CredentialRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*CredentialRequestDefinition

func NewCredentialRequestDefinition ¶

func NewCredentialRequestDefinition(name, scopeName string) *CredentialRequestDefinition

NewCredentialRequestDefinition creates an empty *CredentialRequestDefinition

func (*CredentialRequestDefinition) AsInstance ¶

AsInstance converts a CredentialRequestDefinition to a ResourceInstance

func (*CredentialRequestDefinition) FromInstance ¶

FromInstance converts a ResourceInstance to a CredentialRequestDefinition

func (*CredentialRequestDefinition) MarshalJSON ¶

func (res *CredentialRequestDefinition) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*CredentialRequestDefinition) PluralName ¶

func (res *CredentialRequestDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*CredentialRequestDefinition) UnmarshalJSON ¶

func (res *CredentialRequestDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type CredentialRequestDefinitionReferences ¶

type CredentialRequestDefinitionReferences struct {
	// The name of the CredentialRequestDefinition from an Environment.
	CredentialReqDef string `json:"credentialReqDef,omitempty"`
}

CredentialRequestDefinitionReferences (management.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpec ¶

type CredentialRequestDefinitionSpec struct {
	// JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance.
	Schema    map[string]interface{}                    `json:"schema"`
	Provision *CredentialRequestDefinitionSpecProvision `json:"provision,omitempty"`
	Webhooks  []CredentialRequestDefinitionSpecWebhook  `json:"webhooks,omitempty"`
	// The name of the IdentityProvider.
	IdentityProvider string `json:"identityProvider,omitempty"`
}

CredentialRequestDefinitionSpec struct for CredentialRequestDefinitionSpec

type CredentialRequestDefinitionSpecProvision ¶

type CredentialRequestDefinitionSpecProvision struct {
	// JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance.
	Schema   map[string]interface{}                           `json:"schema"`
	Policies CredentialRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

CredentialRequestDefinitionSpecProvision struct for CredentialRequestDefinitionSpecProvision

type CredentialRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPolicies struct {
	// Defines on if Credentials using this definitions can be renewed.
	Renewable bool `json:"renewable,omitempty"`
	// Defines on if Credentials can be suspended.
	Suspendable bool                                                    `json:"suspendable,omitempty"`
	Expiry      *CredentialRequestDefinitionSpecProvisionPoliciesExpiry `json:"expiry,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPolicies Defines the policies applied on the Credentials generated using this definition. (management.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpecProvisionPoliciesExpiry ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPoliciesExpiry struct {
	// The number of days after the Credentials are considered to be expired.
	Period int32 `json:"period"`
	// The actions taken when the Credentials expire.
	Actions []CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions `json:"actions,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPoliciesExpiry Expiry properties for Credentials linked to this definition. (management.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions struct {
	// The type of the action taken when the Credential using this definition expires.
	Type string `json:"type,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions (management.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpecWebhook ¶

type CredentialRequestDefinitionSpecWebhook struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
}

CredentialRequestDefinitionSpecWebhook struct for CredentialRequestDefinitionSpecWebhook

type CredentialSpec ¶

type CredentialSpec struct {
	// Reference to Credential Request Definition resource
	CredentialRequestDefinition string `json:"credentialRequestDefinition"`
	// Reference to the ManagedApplication for which the Credential belongs to
	ManagedApplication string `json:"managedApplication"`
	// data matching the credential request definition schema. (management.v1alpha1.Credential)
	Data  map[string]interface{} `json:"data"`
	State CredentialSpecState    `json:"state,omitempty"`
}

CredentialSpec (management.v1alpha1.Credential)

type CredentialSpecState ¶ added in v1.1.35

type CredentialSpecState struct {
	Name string `json:"name"`
	// Additional info on the desired state.
	Reason string `json:"reason,omitempty"`
	// Defines if credential needs to be rotated.
	Rotate bool `json:"rotate,omitempty"`
}

CredentialSpecState Desired state of the Credential. (management.v1alpha1.Credential)

type CredentialState ¶ added in v1.1.35

type CredentialState struct {
	Name string `json:"name"`
	// Additional info on the state.
	Reason string `json:"reason,omitempty"`
}

CredentialState Current state of the Credential. (management.v1alpha1.Credential)

type CredentialStatus ¶

type CredentialStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []CredentialStatusReasons `json:"reasons,omitempty"`
}

CredentialStatus (management.v1alpha1.Credential)

type CredentialStatusReasons ¶

type CredentialStatusReasons struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time `json:"timestamp"`
	//  (management.v1alpha1.Credential)
	Meta map[string]map[string]interface{} `json:"meta,omitempty"`
}

CredentialStatusReasons (management.v1alpha1.Credential)

type Dataplane ¶ added in v1.1.49

type Dataplane struct {
	apiv1.ResourceMeta
	Owner        *apiv1.Owner      `json:"owner"`
	Secretschema interface{}       `json:"secretschema"`
	Security     DataplaneSecurity `json:"security"`
	Spec         DataplaneSpec     `json:"spec"`
}

Dataplane Resource

func DataplaneFromInstanceArray ¶ added in v1.1.49

func DataplaneFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Dataplane, error)

DataplaneFromInstanceArray converts a []*ResourceInstance to a []*Dataplane

func NewDataplane ¶ added in v1.1.49

func NewDataplane(name, scopeName string) *Dataplane

NewDataplane creates an empty *Dataplane

func (*Dataplane) AsInstance ¶ added in v1.1.49

func (res *Dataplane) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Dataplane to a ResourceInstance

func (*Dataplane) FromInstance ¶ added in v1.1.49

func (res *Dataplane) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Dataplane

func (*Dataplane) MarshalJSON ¶ added in v1.1.49

func (res *Dataplane) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Dataplane) PluralName ¶ added in v1.1.49

func (res *Dataplane) PluralName() string

PluralName returns the plural name of the resource

func (*Dataplane) UnmarshalJSON ¶ added in v1.1.49

func (res *Dataplane) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type DataplaneSecret ¶ added in v1.1.49

type DataplaneSecret struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner         `json:"owner"`
	Spec  DataplaneSecretSpec  `json:"spec"`
	State DataplaneSecretState `json:"state"`
	// Status DataplaneSecretStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

DataplaneSecret Resource

func DataplaneSecretFromInstanceArray ¶ added in v1.1.49

func DataplaneSecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*DataplaneSecret, error)

DataplaneSecretFromInstanceArray converts a []*ResourceInstance to a []*DataplaneSecret

func NewDataplaneSecret ¶ added in v1.1.49

func NewDataplaneSecret(name, scopeName string) *DataplaneSecret

NewDataplaneSecret creates an empty *DataplaneSecret

func (*DataplaneSecret) AsInstance ¶ added in v1.1.49

func (res *DataplaneSecret) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a DataplaneSecret to a ResourceInstance

func (*DataplaneSecret) FromInstance ¶ added in v1.1.49

func (res *DataplaneSecret) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a DataplaneSecret

func (*DataplaneSecret) MarshalJSON ¶ added in v1.1.49

func (res *DataplaneSecret) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*DataplaneSecret) PluralName ¶ added in v1.1.49

func (res *DataplaneSecret) PluralName() string

PluralName returns the plural name of the resource

func (*DataplaneSecret) UnmarshalJSON ¶ added in v1.1.49

func (res *DataplaneSecret) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type DataplaneSecretSpec ¶ added in v1.1.49

type DataplaneSecretSpec struct {
	Dataplane string `json:"dataplane"`
	// Key value pairs for accessing the dataplane. The value will be stored encrypted.
	Data string `json:"data"`
}

DataplaneSecretSpec (management.v1alpha1.DataplaneSecret)

type DataplaneSecretState ¶ added in v1.1.49

type DataplaneSecretState string

DataplaneSecretState the model 'DataplaneSecretState'

const (
	// GENERATE: The following code has been modified after code generation
	DataplaneSecretStateACTIVE DataplaneSecretState = "active"
	// GENERATE: The following code has been modified after code generation
	DataplaneSecretStateDEPRECATED DataplaneSecretState = "deprecated"
	// GENERATE: The following code has been modified after code generation
	DataplaneSecretStateARCHIVED DataplaneSecretState = "archived"
)

List of DataplaneSecretState

type DataplaneSecretStatus ¶ added in v1.1.49

type DataplaneSecretStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

DataplaneSecretStatus (management.v1alpha1.DataplaneSecret)

type DataplaneSecretStatusError ¶ added in v1.1.49

type DataplaneSecretStatusError struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time              `json:"timestamp"`
	Meta      map[string]interface{} `json:"meta,omitempty"`
}

DataplaneSecretStatusError struct for DataplaneSecretStatusError

type DataplaneSecretStatusSuccess ¶ added in v1.1.49

type DataplaneSecretStatusSuccess struct {
	Type string `json:"type"`
	// Time when the change occured.
	Timestamp time.Time `json:"timestamp"`
	// message of the result
	Detail string                 `json:"detail"`
	Meta   map[string]interface{} `json:"meta,omitempty"`
}

DataplaneSecretStatusSuccess struct for DataplaneSecretStatusSuccess

type DataplaneSecurity ¶ added in v1.1.49

type DataplaneSecurity struct {
	// public key to be used to encrypt the access data linked to this dataplane.
	EncryptionKey       string `json:"encryptionKey"`
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
	EncryptionHash      string `json:"encryptionHash,omitempty"`
}

DataplaneSecurity (management.v1alpha1.Dataplane)

type DataplaneSpec ¶ added in v1.1.49

type DataplaneSpec struct {
	// The dataplane type that this agent connects to
	Type string `json:"type"`
	// GENERATE: The following code has been modified after code generation
	Config interface{} `json:"config,omitempty"`
}

DataplaneSpec (management.v1alpha1.Dataplane)

type DataplaneSpecApigee ¶ added in v1.1.62

type DataplaneSpecApigee struct {
	Type string `json:"type"`
	// The Project ID on GCP that Apigee is configured in
	ProjectId string `json:"projectId"`
	// The Developer that will own all Apigee Applications created by the agent
	DeveloperEmail string `json:"developerEmail"`
	// The discovery mode that the Apigee agents should use
	Mode string `json:"mode,omitempty"`
	// The environment for which the metrics are gathered
	Environment   string                           `json:"environment,omitempty"`
	MetricsFilter DataplaneSpecApigeeMetricsFilter `json:"metricsFilter,omitempty"`
}

DataplaneSpecApigee The configuration common to all Apigee agents that use this dataplane

type DataplaneSpecApigeeMetricsFilter ¶ added in v1.1.79

type DataplaneSpecApigeeMetricsFilter struct {
	// The names of the APIs for which the metrics will be processed
	FilteredAPIs []string `json:"filteredAPIs,omitempty"`
	// The flag upon which is decided if the API metrics are filtered or not. Defaults to true
	FilterMetrics bool `json:"filterMetrics,omitempty"`
}

DataplaneSpecApigeeMetricsFilter struct for DataplaneSpecApigeeMetricsFilter

type DataplaneSpecAws ¶ added in v1.1.58

type DataplaneSpecAws struct {
	Type string `json:"type"`
	// The ARN of the cloud watch log resource that AWS API Gateway will be configured to send API Access data to
	AccessLogARN string `json:"accessLogARN,omitempty"`
	// If true, the discovery agent will enable full transaction logging for discovered API stages
	FullTransactionLogging bool `json:"fullTransactionLogging,omitempty"`
}

DataplaneSpecAws The configuration common to all AWS agents that use this dataplane

type DataplaneSpecAzure ¶ added in v1.1.78

type DataplaneSpecAzure struct {
	Type string `json:"type,omitempty"`
	// The tenantId is a Microsoft Entra ID entity that typically encompasses an organization
	TenantId string `json:"tenantId"`
	// The resource group holds related resources for any Azure solution
	ResourceGroup string `json:"resourceGroup"`
	// The subscriptionId is the ID given to the subscription tied to the tenant
	SubscriptionId string `json:"subscriptionId"`
	// The name of the azure API management
	ApimServiceName string `json:"apimServiceName,omitempty"`
	// The event hub processes and stores events, data, or telemetry produced by distributed software or devices
	EventHubName string `json:"eventHubName,omitempty"`
	// The event hub namespace is a management container for event hubs or topics
	EventHubNamespace string `json:"eventHubNamespace,omitempty"`
	// Consumer groups enable consuming applications to each have a separate view of the event stream. They read the stream independently at their own pace and with their own offsets.
	EventHubConsumerGroup string `json:"eventHubConsumerGroup,omitempty"`
	// Dictates the operation mode for the discovery agent. Possible options are APIM (default, when there is no mode property or mode is empty) and EventHub.
	Mode string `json:"mode,omitempty"`
}

DataplaneSpecAzure The configuration common to all Azure agents that use this dataplane

type DataplaneSpecGitHub ¶ added in v1.1.64

type DataplaneSpecGitHub struct {
	Type string `json:"type,omitempty"`
	// The repository name used for api specs discovery
	Name string `json:"name"`
	// The repository owner Name
	OwnerName string                    `json:"ownerName"`
	Filter    DataplaneSpecGitHubFilter `json:"filter,omitempty"`
}

DataplaneSpecGitHub The configuration common to all GitHub agents that use this dataplane

type DataplaneSpecGitHubFilter ¶ added in v1.1.64

type DataplaneSpecGitHubFilter struct {
	// The paths within the repository that the agent will gather files for looking for specs
	Paths []string `json:"paths,omitempty"`
	// The regular expressions that when a file name passes any of the patterns, a spec file will be used to create an api service
	Pattern []string `json:"pattern,omitempty"`
	// The GitHub repository branch that'll be used for the discovery process
	Branch string `json:"branch,omitempty"`
}

DataplaneSpecGitHubFilter struct for DataplaneSpecGitHubFilter

type DataplaneSpecSwaggerHub ¶ added in v1.1.78

type DataplaneSpecSwaggerHub struct {
	Type string `json:"type,omitempty"`
	// The owner of the organization that is used to discovery the API Specs.
	Owner  string                        `json:"owner"`
	Filter DataplaneSpecSwaggerHubFilter `json:"filter,omitempty"`
}

DataplaneSpecSwaggerHub The configuration common to all SwaggerHub agents that use this dataplane

type DataplaneSpecSwaggerHubFilter ¶ added in v1.1.78

type DataplaneSpecSwaggerHubFilter struct {
	// The visibility of the API on SwaggerHub
	Visibility string `json:"visibility,omitempty"`
	// The publication state of the API on SwaggerHub
	Publication string `json:"publication,omitempty"`
}

DataplaneSpecSwaggerHubFilter struct for DataplaneSpecSwaggerHubFilter

type DiscoveryAgent ¶

type DiscoveryAgent struct {
	apiv1.ResourceMeta
	Agentstate DiscoveryAgentAgentstate `json:"agentstate"`
	Dataplane  DiscoveryAgentDataplane  `json:"dataplane"`
	Owner      *apiv1.Owner             `json:"owner"`
	Spec       DiscoveryAgentSpec       `json:"spec"`
	Status     DiscoveryAgentStatus     `json:"status"`
}

DiscoveryAgent Resource

func DiscoveryAgentFromInstanceArray ¶

func DiscoveryAgentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*DiscoveryAgent, error)

DiscoveryAgentFromInstanceArray converts a []*ResourceInstance to a []*DiscoveryAgent

func NewDiscoveryAgent ¶

func NewDiscoveryAgent(name, scopeName string) *DiscoveryAgent

NewDiscoveryAgent creates an empty *DiscoveryAgent

func (*DiscoveryAgent) AsInstance ¶

func (res *DiscoveryAgent) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a DiscoveryAgent to a ResourceInstance

func (*DiscoveryAgent) FromInstance ¶

func (res *DiscoveryAgent) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a DiscoveryAgent

func (*DiscoveryAgent) MarshalJSON ¶

func (res *DiscoveryAgent) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*DiscoveryAgent) PluralName ¶

func (res *DiscoveryAgent) PluralName() string

PluralName returns the plural name of the resource

func (*DiscoveryAgent) UnmarshalJSON ¶

func (res *DiscoveryAgent) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type DiscoveryAgentAgentstate ¶ added in v1.1.100

type DiscoveryAgentAgentstate struct {
	// * current - Current version is the latest available * available - New version available to update to * outdated - Version in use is no longer supported * retracted - Version in use has a known issue, update immediately
	Update string `json:"update,omitempty"`
}

DiscoveryAgentAgentstate (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentDataplane ¶ added in v1.1.49

type DiscoveryAgentDataplane struct {
	Name string `json:"name,omitempty"`
	// Defines the interval that the dataplane will be accessed (30m = 30 minutes, 5h 5m = 5 hours and 5 mins, 2d = 2 days). 30m minimum
	Frequency string `json:"frequency,omitempty"`
	// Queues this agent to run a discovery process. Defaults to false
	QueueDiscovery bool `json:"queueDiscovery,omitempty"`
}

DiscoveryAgentDataplane (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentSpec ¶

type DiscoveryAgentSpec struct {
	// The dataplane type that this agent connects to
	DataplaneType string                    `json:"dataplaneType"`
	Config        DiscoveryAgentSpecConfig  `json:"config"`
	Logging       DiscoveryAgentSpecLogging `json:"logging,omitempty"`
}

DiscoveryAgentSpec (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentSpecConfig ¶

type DiscoveryAgentSpecConfig struct {
	// Defines the tag based filter expression to be evaluated for discovering the API from the API Gateway. The filter value is a conditional expression that can use logical operators to compare two value. The conditional expression must have \"tag\" as the prefix/selector in the symbol name. For e.g. “` tag.SOME_TAG == \"somevalue\" “` The expression can be a simple condition as shown above or compound condition in which more than one simple conditions are evaluated using logical operator. For e.g. “` tag.SOME_TAG == \"somevalue\" || tag.ANOTHER_TAG != \"some_other_value\" “` In addition to logical expression, the filter can hold call based expressions. Below are the list of supported call expressions #### Exists Exists call can be made to evaluate if the tag name exists in the list of tags on API. This call expression can be used as unary expression For e.g. “` tag.SOME_TAG.Exists() “` #### Any Any call can be made in a simple expression to evaluate if the tag with any name has specified value or not in the list of tags on the API. For e.g. “` tag.Any() == \"Tag with some value\" || tag.Any() != \"Tag with other value\" “` #### Contains Contains call can be made in a simple expression to evaluate if the the specified tag contains specified argument as value. This call expression requires string argument that will be used to perform lookup in tag value For e.g. “` tag.Contains(\"somevalue\") “` #### MatchRegEx MatchRegEx call can be used for evaluating the specified tag value to match specified regular expression. This call expression requires a regular expression as the argument. For e.g. “` tag.MatchRegEx(\"(some){1}\") “`
	Filter string `json:"filter,omitempty"`
	// The list of tags to be added to the API service resource that the agent publishes to Amplify Central
	AdditionalTags []string `json:"additionalTags,omitempty"`
	// The list of tags to exclude from the API service resource that the agent publishes to Amplify Central
	IgnoreTags []string `json:"ignoreTags,omitempty"`
	// Name of the team that owns the catalog item created by agent. If not provided, the default team will be used.
	OwningTeam string `json:"owningTeam,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

DiscoveryAgentSpecConfig Represents the discovery agent config (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentSpecConfigOwner ¶ added in v1.1.52

type DiscoveryAgentSpecConfigOwner struct {
	// The type of the owner. Defaults to team if not present.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id string `json:"id"`
}

DiscoveryAgentSpecConfigOwner Owner of the resources that the agent discovers. (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentSpecLogging ¶

type DiscoveryAgentSpecLogging struct {
	// Defines the log level.
	Level string `json:"level,omitempty"`
}

DiscoveryAgentSpecLogging Logging config (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentStatus ¶

type DiscoveryAgentStatus struct {
	// Version name for the agent revision.
	Version string `json:"version,omitempty"`
	// Latest available version for the agent revision.
	LatestAvailableVersion string `json:"latestAvailableVersion,omitempty"`
	// Agent status:  * running - Passed all health checks.  Up and running  * stopped - Agent is not running  * failed - Failed health checks  * unhealthy - Agent is running with health check failure
	State         string `json:"state,omitempty"`
	PreviousState string `json:"previousState,omitempty"`
	// A way to communicate details about the current status by the agent
	Message string `json:"message,omitempty"`
	// The last updated event timestamp provided by the agent
	LastActivityTime time.Time `json:"lastActivityTime,omitempty"`
	// Version name for the SDK revision.
	SdkVersion string `json:"sdkVersion,omitempty"`
}

DiscoveryAgentStatus (management.v1alpha1.DiscoveryAgent)

type Environment ¶

type Environment struct {
	apiv1.ResourceMeta
	Compliancetasks EnvironmentCompliancetasks `json:"compliancetasks"`
	Owner           *apiv1.Owner               `json:"owner"`
	Policies        EnvironmentPolicies        `json:"policies"`
	References      EnvironmentReferences      `json:"references"`
	Spec            EnvironmentSpec            `json:"spec"`
	Stages          EnvironmentStages          `json:"stages"`
}

Environment Resource

func EnvironmentFromInstanceArray ¶

func EnvironmentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Environment, error)

EnvironmentFromInstanceArray converts a []*ResourceInstance to a []*Environment

func NewEnvironment ¶

func NewEnvironment(name string) *Environment

NewEnvironment creates an empty *Environment

func (*Environment) AsInstance ¶

func (res *Environment) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Environment to a ResourceInstance

func (*Environment) FromInstance ¶

func (res *Environment) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Environment

func (*Environment) MarshalJSON ¶

func (res *Environment) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Environment) PluralName ¶

func (res *Environment) PluralName() string

PluralName returns the plural name of the resource

func (*Environment) UnmarshalJSON ¶

func (res *Environment) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type EnvironmentCompliancetasks ¶ added in v1.1.52

type EnvironmentCompliancetasks struct {
	// GENERATE: The following code has been modified after code generation
	Design EnvironmentCompliancetasksLinting `json:"design,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Security EnvironmentCompliancetasksLinting `json:"security,omitempty"`
}

EnvironmentCompliancetasks Subresource that is only accessible by the backend. Used by compliance-controller to auto-start/cancel linting jobs based on changes made to \"spec.compliance\" properties detected via mutation hook. (management.v1alpha1.Environment)

type EnvironmentCompliancetasksLinting ¶ added in v1.1.52

type EnvironmentCompliancetasksLinting struct {
	// Name of APISpecLintingRuleset to create linting jobs for.
	StartJobsForRuleset string `json:"startJobsForRuleset,omitempty"`
	// Name of APISpecLintingRuleset to cancel currently pending linting jobs for.
	CancelJobsForRuleset string `json:"cancelJobsForRuleset,omitempty"`
}

EnvironmentCompliancetasksLinting struct for EnvironmentCompliancetasksLinting

type EnvironmentPolicies ¶ added in v1.1.52

type EnvironmentPolicies struct {
	Credentials EnvironmentPoliciesCredentials `json:"credentials,omitempty"`
}

EnvironmentPolicies (management.v1alpha1.Environment)

type EnvironmentPoliciesCredentials ¶ added in v1.1.52

type EnvironmentPoliciesCredentials struct {
	Expiry EnvironmentPoliciesCredentialsExpiry `json:"expiry,omitempty"`
}

EnvironmentPoliciesCredentials Defines the policies for the Environment's Credentials (management.v1alpha1.Environment)

type EnvironmentPoliciesCredentialsExpiry ¶ added in v1.1.52

type EnvironmentPoliciesCredentialsExpiry struct {
	// The number of days after the Credentials are considered to be expired.
	Period int32 `json:"period,omitempty"`
	// The action taken when the Credential expires.
	Action        string                                            `json:"action,omitempty"`
	Notifications EnvironmentPoliciesCredentialsExpiryNotifications `json:"notifications,omitempty"`
}

EnvironmentPoliciesCredentialsExpiry Expiry properties for Credentials generated in the scoped Environment. (management.v1alpha1.Environment)

type EnvironmentPoliciesCredentialsExpiryNotifications ¶ added in v1.1.52

type EnvironmentPoliciesCredentialsExpiryNotifications struct {
	// The days interval at which to send notifications before the Credentials are to expire.
	DaysBefore []int32 `json:"daysBefore,omitempty"`
}

EnvironmentPoliciesCredentialsExpiryNotifications Notifications properties for Credentials expiry. (management.v1alpha1.Environment)

type EnvironmentReferences ¶ added in v1.1.79

type EnvironmentReferences struct {
	// The list of referenced managed Environments
	ManagedEnvironments []string `json:"managedEnvironments,omitempty"`
	// The list of referenced identity providers
	IdentityProviders []EnvironmentReferencesIdentityProviders `json:"identityProviders,omitempty"`
}

EnvironmentReferences (management.v1alpha1.Environment)

type EnvironmentReferencesIdentityProviders ¶ added in v1.1.91

type EnvironmentReferencesIdentityProviders struct {
	// The name of the identity provider
	Name string `json:"name,omitempty"`
}

EnvironmentReferencesIdentityProviders (management.v1alpha1.Environment)

type EnvironmentSpec ¶

type EnvironmentSpec struct {
	Description string `json:"description,omitempty"`
	//  (management.v1alpha1.Environment)
	Variables map[string]string `json:"variables,omitempty"`
	// Production environment will be used to perform production processing or connect to a non-Axway gateway. This usage will count against your entitled quota.
	Production bool `json:"production,omitempty"`
	// Axway Managed environment is hosted in the Axway Managed Cloud.
	AxwayManaged bool                      `json:"axwayManaged,omitempty"`
	Icon         EnvironmentSpecIcon       `json:"icon,omitempty"`
	Compliance   EnvironmentSpecCompliance `json:"compliance,omitempty"`
}

EnvironmentSpec (management.v1alpha1.Environment)

type EnvironmentSpecCompliance ¶ added in v1.1.52

type EnvironmentSpecCompliance struct {
	// Reference to Amplify Central design Ruleset
	Design string `json:"design,omitempty"`
	// Reference to Amplify Central security Ruleset
	Security string `json:"security,omitempty"`
}

EnvironmentSpecCompliance Compliance for the Environment. (management.v1alpha1.Environment)

type EnvironmentSpecIcon ¶

type EnvironmentSpecIcon struct {
	// Content-Type of the image.
	ContentType string `json:"contentType,omitempty"`
	// Base64 encoded image.
	Data string `json:"data,omitempty"`
}

EnvironmentSpecIcon Image for the Environment. (management.v1alpha1.Environment)

type EnvironmentStages ¶ added in v1.1.78

type EnvironmentStages struct {
	// The default stage to be assigned to the Environment's APIServiceInstances.
	Default string `json:"default,omitempty"`
	// The allowed stages that can be set as override on the Environment's APIServiceInstance.
	Allowed []string `json:"allowed,omitempty"`
}

EnvironmentStages (management.v1alpha1.Environment)

type IdentityProvider ¶ added in v1.1.91

type IdentityProvider struct {
	apiv1.ResourceMeta
	Owner    *apiv1.Owner             `json:"owner"`
	Security IdentityProviderSecurity `json:"security"`
	Spec     IdentityProviderSpec     `json:"spec"`
	// Status   IdentityProviderStatus   `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

IdentityProvider Resource

func IdentityProviderFromInstanceArray ¶ added in v1.1.91

func IdentityProviderFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*IdentityProvider, error)

IdentityProviderFromInstanceArray converts a []*ResourceInstance to a []*IdentityProvider

func NewIdentityProvider ¶ added in v1.1.91

func NewIdentityProvider(name string) *IdentityProvider

NewIdentityProvider creates an empty *IdentityProvider

func (*IdentityProvider) AsInstance ¶ added in v1.1.91

func (res *IdentityProvider) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a IdentityProvider to a ResourceInstance

func (*IdentityProvider) FromInstance ¶ added in v1.1.91

func (res *IdentityProvider) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a IdentityProvider

func (*IdentityProvider) MarshalJSON ¶ added in v1.1.91

func (res *IdentityProvider) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*IdentityProvider) PluralName ¶ added in v1.1.91

func (res *IdentityProvider) PluralName() string

PluralName returns the plural name of the resource

func (*IdentityProvider) UnmarshalJSON ¶ added in v1.1.91

func (res *IdentityProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type IdentityProviderSecret ¶ added in v1.1.91

type IdentityProviderSecret struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner               `json:"owner"`
	Spec  IdentityProviderSecretSpec `json:"spec"`
}

IdentityProviderSecret Resource

func IdentityProviderSecretFromInstanceArray ¶ added in v1.1.91

func IdentityProviderSecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*IdentityProviderSecret, error)

IdentityProviderSecretFromInstanceArray converts a []*ResourceInstance to a []*IdentityProviderSecret

func NewIdentityProviderSecret ¶ added in v1.1.91

func NewIdentityProviderSecret(name, scopeName string) *IdentityProviderSecret

NewIdentityProviderSecret creates an empty *IdentityProviderSecret

func (*IdentityProviderSecret) AsInstance ¶ added in v1.1.91

func (res *IdentityProviderSecret) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a IdentityProviderSecret to a ResourceInstance

func (*IdentityProviderSecret) FromInstance ¶ added in v1.1.91

func (res *IdentityProviderSecret) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a IdentityProviderSecret

func (*IdentityProviderSecret) MarshalJSON ¶ added in v1.1.91

func (res *IdentityProviderSecret) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*IdentityProviderSecret) PluralName ¶ added in v1.1.91

func (res *IdentityProviderSecret) PluralName() string

PluralName returns the plural name of the resource

func (*IdentityProviderSecret) UnmarshalJSON ¶ added in v1.1.91

func (res *IdentityProviderSecret) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type IdentityProviderSecretSpec ¶ added in v1.1.91

type IdentityProviderSecretSpec struct {
	// The authentication type
	Type string `json:"type"`
	// GENERATE: The following code has been modified after code generation
	Config interface{} `json:"config"`
	// The list of request headers to be sent in the call to get token from Identity provider
	// GENERATE: The following code has been modified after code generation
	RequestHeaders []IdentityProviderSecretSpecKeyValuePair `json:"requestHeaders,omitempty"`
	// The list of query parameters to be sent in the call to get token from Identity provider
	// GENERATE: The following code has been modified after code generation
	QueryParameters []IdentityProviderSecretSpecKeyValuePair `json:"queryParameters,omitempty"`
}

IdentityProviderSecretSpec (management.v1alpha1.IdentityProviderSecret)

type IdentityProviderSecretSpecAccessToken ¶ added in v1.1.91

type IdentityProviderSecretSpecAccessToken struct {
	Type string `json:"type"`
	// The access token to be used for authentication with Identity provider
	Token string `json:"token"`
}

IdentityProviderSecretSpecAccessToken The configuration for access token based authentication with Identity provider

type IdentityProviderSecretSpecClientSecret ¶ added in v1.1.91

type IdentityProviderSecretSpecClientSecret struct {
	Type string `json:"type"`
	// The client/secret authentication method to be used to acquire token from Identity provider
	AuthMethod string `json:"authMethod,omitempty"`
	// The list of client scope to be used for dynamic client registration
	ClientScopes []string `json:"clientScopes,omitempty"`
	// The identifier of the client to be used for client/secret based authentication to acquire token from Identity provider
	ClientId string `json:"clientId"`
	// The secret of the client to be used for client/secret based authentication to acquire token from Identity provider
	ClientSecret string `json:"clientSecret"`
}

IdentityProviderSecretSpecClientSecret The configuration for client/secret based authentication with Identity provider

type IdentityProviderSecretSpecKeyValuePair ¶ added in v1.1.91

type IdentityProviderSecretSpecKeyValuePair struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

IdentityProviderSecretSpecKeyValuePair struct for IdentityProviderSecretSpecKeyValuePair

type IdentityProviderSecurity ¶ added in v1.1.91

type IdentityProviderSecurity struct {
	// public key to be used to encrypt the access data linked to this identity provider.
	EncryptionKey       string `json:"encryptionKey"`
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
	EncryptionHash      string `json:"encryptionHash,omitempty"`
}

IdentityProviderSecurity (management.v1alpha1.IdentityProvider)

type IdentityProviderSpec ¶ added in v1.1.91

type IdentityProviderSpec struct {
	// The metadata URL for Identity provider
	MetadataUrl string `json:"metadataUrl"`
	// The type of Identity provider
	ProviderType string `json:"providerType,omitempty"`
	// The flag to configure agent to use registration access token for removing/updating the client created by agent in Identity provider
	UseRegistrationAccessToken bool `json:"useRegistrationAccessToken,omitempty"`
	// The list of request headers to be sent in the call to Identity provider for creating/updating and removing clients
	// GENERATE: The following code has been modified after code generation
	RequestHeaders []IdentityProviderSpecKeyValuePair `json:"requestHeaders,omitempty"`
	// The list of query parameters to be sent in the call to Identity provider for creating/updating and removing clients
	// GENERATE: The following code has been modified after code generation
	QueryParameters []IdentityProviderSpecKeyValuePair `json:"queryParameters,omitempty"`
	// The list of additional metadata properties that will be set when registering the client in Identity provider
	// GENERATE: The following code has been modified after code generation
	AdditionalClientProperties []IdentityProviderSpecKeyValuePair `json:"additionalClientProperties,omitempty"`
	// Defines the timeout interval in seconds for Identity provider http client. Defaults to 30 seconds
	ClientTimeout int32 `json:"clientTimeout,omitempty"`
}

IdentityProviderSpec (management.v1alpha1.IdentityProvider)

type IdentityProviderSpecKeyValuePair ¶ added in v1.1.91

type IdentityProviderSpecKeyValuePair struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

IdentityProviderSpecKeyValuePair struct for IdentityProviderSpecKeyValuePair

type IdentityProviderStatus ¶ added in v1.1.100

type IdentityProviderStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

IdentityProviderStatus (management.v1alpha1.IdentityProvider)

type IdentityProviderStatusError ¶ added in v1.1.100

type IdentityProviderStatusError struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time                         `json:"timestamp"`
	Meta      map[string]map[string]interface{} `json:"meta,omitempty"`
}

IdentityProviderStatusError struct for IdentityProviderStatusError

type IdentityProviderStatusPending ¶ added in v1.1.100

type IdentityProviderStatusPending struct {
	Type string `json:"type"`
	// Time when the change occurred.
	Timestamp time.Time `json:"timestamp"`
	// message of the pending status
	Detail string                            `json:"detail"`
	Meta   map[string]map[string]interface{} `json:"meta,omitempty"`
}

IdentityProviderStatusPending struct for IdentityProviderStatusPending

type IdentityProviderStatusSuccess ¶ added in v1.1.100

type IdentityProviderStatusSuccess struct {
	Type string `json:"type"`
	// Time when the change occurred.
	Timestamp time.Time `json:"timestamp"`
	// message of the result
	Detail map[string]interface{} `json:"detail"`
}

IdentityProviderStatusSuccess struct for IdentityProviderStatusSuccess

type Integration ¶

type Integration struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner    `json:"owner"`
	Spec  IntegrationSpec `json:"spec"`
}

Integration Resource

func IntegrationFromInstanceArray ¶

func IntegrationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Integration, error)

IntegrationFromInstanceArray converts a []*ResourceInstance to a []*Integration

func NewIntegration ¶

func NewIntegration(name string) *Integration

NewIntegration creates an empty *Integration

func (*Integration) AsInstance ¶

func (res *Integration) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Integration to a ResourceInstance

func (*Integration) FromInstance ¶

func (res *Integration) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Integration

func (*Integration) MarshalJSON ¶

func (res *Integration) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Integration) PluralName ¶

func (res *Integration) PluralName() string

PluralName returns the plural name of the resource

func (*Integration) UnmarshalJSON ¶

func (res *Integration) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type IntegrationSpec ¶

type IntegrationSpec struct {
	Description string `json:"description,omitempty"`
}

IntegrationSpec (management.v1alpha1.Integration)

type ManagedApplication ¶

type ManagedApplication struct {
	apiv1.ResourceMeta
	Marketplace ManagedApplicationMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner                  `json:"owner"`
	References  ManagedApplicationReferences  `json:"references"`
	Spec        ManagedApplicationSpec        `json:"spec"`
	// Status      ManagedApplicationStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ManagedApplication Resource

func ManagedApplicationFromInstanceArray ¶

func ManagedApplicationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ManagedApplication, error)

ManagedApplicationFromInstanceArray converts a []*ResourceInstance to a []*ManagedApplication

func NewManagedApplication ¶

func NewManagedApplication(name, scopeName string) *ManagedApplication

NewManagedApplication creates an empty *ManagedApplication

func (*ManagedApplication) AsInstance ¶

func (res *ManagedApplication) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a ManagedApplication to a ResourceInstance

func (*ManagedApplication) FromInstance ¶

func (res *ManagedApplication) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a ManagedApplication

func (*ManagedApplication) MarshalJSON ¶

func (res *ManagedApplication) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*ManagedApplication) PluralName ¶

func (res *ManagedApplication) PluralName() string

PluralName returns the plural name of the resource

func (*ManagedApplication) UnmarshalJSON ¶

func (res *ManagedApplication) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ManagedApplicationMarketplace ¶

type ManagedApplicationMarketplace struct {
	// The name of the Marketplace.
	Name     string                                `json:"name"`
	Resource ManagedApplicationMarketplaceResource `json:"resource"`
}

ManagedApplicationMarketplace Details about the marketplace Application. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResource ¶

type ManagedApplicationMarketplaceResource struct {
	Metadata ManagedApplicationMarketplaceResourceMetadata `json:"metadata"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

ManagedApplicationMarketplaceResource The Marketplace Application resource details. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResourceMetadata ¶

type ManagedApplicationMarketplaceResourceMetadata struct {
	// Id of the user that created the entity.
	CreateUserId string `json:"createUserId,omitempty"`
	// Id of the user that created the entity.
	ModifyUserId string `json:"modifyUserId,omitempty"`
}

ManagedApplicationMarketplaceResourceMetadata Marketplace Application metadata. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResourceOwner ¶

type ManagedApplicationMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                                 `json:"id,omitempty"`
	Organization ManagedApplicationMarketplaceResourceOwnerOrganization `json:"organization"`
}

ManagedApplicationMarketplaceResourceOwner Owner of the Application. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResourceOwnerOrganization ¶

type ManagedApplicationMarketplaceResourceOwnerOrganization struct {
	// Id of the organization.
	Id string `json:"id"`
}

ManagedApplicationMarketplaceResourceOwnerOrganization Organization details. (management.v1alpha1.ManagedApplication)

type ManagedApplicationReferences ¶

type ManagedApplicationReferences struct {
	// Reference to Application resource
	Application string `json:"application,omitempty"`
}

ManagedApplicationReferences (management.v1alpha1.ManagedApplication)

type ManagedApplicationSpec ¶

type ManagedApplicationSpec struct {
	Security ManagedApplicationSpecSecurity `json:"security,omitempty"`
}

ManagedApplicationSpec (management.v1alpha1.ManagedApplication)

type ManagedApplicationSpecSecurity ¶

type ManagedApplicationSpecSecurity struct {
	// public key to be used to encrypt the credentials linked to this Managed Application.
	EncryptionKey       string `json:"encryptionKey"`
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
	EncryptionHash      string `json:"encryptionHash,omitempty"`
}

ManagedApplicationSpecSecurity (management.v1alpha1.ManagedApplication)

type ManagedApplicationStatus ¶

type ManagedApplicationStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []map[string]map[string]interface{} `json:"reasons,omitempty"`
}

ManagedApplicationStatus (management.v1alpha1.ManagedApplication)

type ResourceHook ¶

type ResourceHook struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner     `json:"owner"`
	Spec  ResourceHookSpec `json:"spec"`
}

ResourceHook Resource

func NewResourceHook ¶

func NewResourceHook(name, scopeName string) *ResourceHook

NewResourceHook creates an empty *ResourceHook

func ResourceHookFromInstanceArray ¶

func ResourceHookFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ResourceHook, error)

ResourceHookFromInstanceArray converts a []*ResourceInstance to a []*ResourceHook

func (*ResourceHook) AsInstance ¶

func (res *ResourceHook) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a ResourceHook to a ResourceInstance

func (*ResourceHook) FromInstance ¶

func (res *ResourceHook) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a ResourceHook

func (*ResourceHook) MarshalJSON ¶

func (res *ResourceHook) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*ResourceHook) PluralName ¶

func (res *ResourceHook) PluralName() string

PluralName returns the plural name of the resource

func (*ResourceHook) UnmarshalJSON ¶

func (res *ResourceHook) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ResourceHookSpec ¶

type ResourceHookSpec struct {
	Triggers []ResourceHookSpecTriggers `json:"triggers"`
	// List of Webhook kind resource names that dictates what webhooks will be invoked on matching triggers.
	Webhooks []string `json:"webhooks"`
}

ResourceHookSpec (management.v1alpha1.ResourceHook)

type ResourceHookSpecScope ¶

type ResourceHookSpecScope struct {
	// Value for the Kind of the scope of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the scope of the resource. Use \"*\" for any.
	Name string `json:"name"`
}

ResourceHookSpecScope Resource scope trigger details. (management.v1alpha1.ResourceHook)

type ResourceHookSpecTriggers ¶

type ResourceHookSpecTriggers struct {
	// Value for the group of the resource. Use \"*\" for any.
	Group string                `json:"group"`
	Scope ResourceHookSpecScope `json:"scope,omitempty"`
	// Value for the Kind of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the resource. Use \"*\" for any.
	Name string   `json:"name"`
	Type []string `json:"type"`
}

ResourceHookSpecTriggers (management.v1alpha1.ResourceHook)

type Secret ¶

type Secret struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner `json:"owner"`
	Spec  SecretSpec   `json:"spec"`
}

Secret Resource

func NewSecret ¶

func NewSecret(name, scopeKind, scopeName string) (*Secret, error)

NewSecret creates an empty *Secret

func SecretFromInstanceArray ¶

func SecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Secret, error)

SecretFromInstanceArray converts a []*ResourceInstance to a []*Secret

func (*Secret) AsInstance ¶

func (res *Secret) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Secret to a ResourceInstance

func (*Secret) FromInstance ¶

func (res *Secret) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Secret

func (*Secret) MarshalJSON ¶

func (res *Secret) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Secret) PluralName ¶

func (res *Secret) PluralName() string

PluralName returns the plural name of the resource

func (*Secret) UnmarshalJSON ¶

func (res *Secret) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type SecretSpec ¶

type SecretSpec struct {
	// Key value pairs. The value will be stored encrypted. (management.v1alpha1.Secret)
	Data map[string]string `json:"data,omitempty"`
}

SecretSpec (management.v1alpha1.Secret)

type TraceabilityAgent ¶

type TraceabilityAgent struct {
	apiv1.ResourceMeta
	Agentstate TraceabilityAgentAgentstate `json:"agentstate"`
	Dataplane  TraceabilityAgentDataplane  `json:"dataplane"`
	Owner      *apiv1.Owner                `json:"owner"`
	Spec       TraceabilityAgentSpec       `json:"spec"`
	Status     TraceabilityAgentStatus     `json:"status"`
}

TraceabilityAgent Resource

func NewTraceabilityAgent ¶

func NewTraceabilityAgent(name, scopeName string) *TraceabilityAgent

NewTraceabilityAgent creates an empty *TraceabilityAgent

func TraceabilityAgentFromInstanceArray ¶

func TraceabilityAgentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*TraceabilityAgent, error)

TraceabilityAgentFromInstanceArray converts a []*ResourceInstance to a []*TraceabilityAgent

func (*TraceabilityAgent) AsInstance ¶

func (res *TraceabilityAgent) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a TraceabilityAgent to a ResourceInstance

func (*TraceabilityAgent) FromInstance ¶

func (res *TraceabilityAgent) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a TraceabilityAgent

func (*TraceabilityAgent) MarshalJSON ¶

func (res *TraceabilityAgent) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*TraceabilityAgent) PluralName ¶

func (res *TraceabilityAgent) PluralName() string

PluralName returns the plural name of the resource

func (*TraceabilityAgent) UnmarshalJSON ¶

func (res *TraceabilityAgent) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type TraceabilityAgentAgentstate ¶ added in v1.1.100

type TraceabilityAgentAgentstate struct {
	// * current - Current version is the latest available * available - New version available to update to * outdated - Version in use is no longer supported * retracted - Version in use has a known issue, update immediately
	Update string `json:"update,omitempty"`
}

TraceabilityAgentAgentstate (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentDataplane ¶ added in v1.1.58

type TraceabilityAgentDataplane struct {
	Name string `json:"name,omitempty"`
	// Defines the interval that the dataplane will be accessed (30m = 30 minutes, 5h 5m = 5 hours and 5 mins, 2d = 2 days). 30m minimum
	Frequency string `json:"frequency,omitempty"`
	// Queues this agent to run a traffic collection process. Defaults to false
	QueueTrafficCollection bool `json:"queueTrafficCollection,omitempty"`
}

TraceabilityAgentDataplane (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpec ¶

type TraceabilityAgentSpec struct {
	// The dataplane type that this agent connects to
	DataplaneType string                       `json:"dataplaneType"`
	Config        TraceabilityAgentSpecConfig  `json:"config"`
	Logging       TraceabilityAgentSpecLogging `json:"logging,omitempty"`
}

TraceabilityAgentSpec (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfig ¶

type TraceabilityAgentSpecConfig struct {
	// Name of the team that owns the catalog item created by agent. If not provided, the default team will be used.
	OwningTeam string `json:"owningTeam,omitempty"`
	// Configures the agent to include request and response headers in captured traffic. Defaults to true
	ProcessHeaders bool                                 `json:"processHeaders,omitempty"`
	Redaction      TraceabilityAgentSpecConfigRedaction `json:"redaction,omitempty"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Sampling       TraceabilityAgentSpecConfigSampling  `json:"sampling,omitempty"`
	Sampling *TraceabilityAgentSpecConfigSampling `json:"sampling,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

TraceabilityAgentSpecConfig Represents the traceability agent config (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfigOwner ¶ added in v1.1.58

type TraceabilityAgentSpecConfigOwner struct {
	// The type of the owner. Defaults to team if not present.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id string `json:"id"`
}

TraceabilityAgentSpecConfigOwner Owner of the resources that the agent discovers. (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfigRedaction ¶ added in v1.1.58

type TraceabilityAgentSpecConfigRedaction struct {
	// The regular expressions for URL paths that, when matched, will be saved for Business and Consumer Insights
	Path            []string                                            `json:"path,omitempty"`
	QueryArgument   TraceabilityAgentSpecConfigRedactionQueryArgument   `json:"queryArgument,omitempty"`
	RequestHeaders  TraceabilityAgentSpecConfigRedactionRequestHeaders  `json:"requestHeaders,omitempty"`
	ResponseHeaders TraceabilityAgentSpecConfigRedactionResponseHeaders `json:"responseHeaders,omitempty"`
	// The character(s) to apply to values that are sanitized before saving for Business and Consumer Insights. Max length of 5 Default is '{*}'
	MaskingCharacter string `json:"maskingCharacter,omitempty"`
}

TraceabilityAgentSpecConfigRedaction How the agent will redact sensitive information within traffic events (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfigRedactionQueryArgument ¶ added in v1.1.58

type TraceabilityAgentSpecConfigRedactionQueryArgument struct {
	// The regular expressions for query arguments that, when matched, will be saved for Business and Consumer Insights
	Show []string `json:"show,omitempty"`
	// The regular expressions for query argument keys that, when matched, will sanitize based off the value regular expression before saving for Business and Consumer Insights
	Sanitize []TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize `json:"sanitize,omitempty"`
}

TraceabilityAgentSpecConfigRedactionQueryArgument The allowed and sanitization setup of query arguments in transactional data (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize ¶ added in v1.1.58

type TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize struct {
	KeyMatch   string `json:"keyMatch"`
	ValueMatch string `json:"valueMatch"`
}

TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfigRedactionRequestHeaders ¶ added in v1.1.58

type TraceabilityAgentSpecConfigRedactionRequestHeaders struct {
	// The regular expressions for request headers that, when matched, will be saved for Business and Consumer Insights
	Show []string `json:"show,omitempty"`
	// The regular expressions for request headers keys that, when matched, will sanitize based off the value regular expression before saving for Business and Consumer Insights
	Sanitize []TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize `json:"sanitize,omitempty"`
}

TraceabilityAgentSpecConfigRedactionRequestHeaders The allowed and sanitization setup of request headers in transactional data (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfigRedactionResponseHeaders ¶ added in v1.1.58

type TraceabilityAgentSpecConfigRedactionResponseHeaders struct {
	// The regular expressions for response headers that, when matched, will be saved for Business and Consumer Insights
	Show []string `json:"show,omitempty"`
	// The regular expressions for response headers keys that, when matched, will sanitize based off the value regular expression before saving for Business and Consumer Insights
	Sanitize []TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize `json:"sanitize,omitempty"`
}

TraceabilityAgentSpecConfigRedactionResponseHeaders The allowed and sanitization setup of response headers in transactional data (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfigSampling ¶ added in v1.1.58

type TraceabilityAgentSpecConfigSampling struct {
	// The percentage of transactions that the agent will save the full transaction details for. Valid values(decimals included) are 0 to 10
	// GENERATE: The following code has been modified after code generation
	Percentage float64 `json:"percentage"`
	// Property is not used anymore. Set onlyErrors to true will allow the agent to sample only the error transactions for Business and Consumer Insights
	AllErrors bool `json:"allErrors,omitempty"`
	// Allows the agent to sample only the error transactions for Business and Consumer Insights
	OnlyErrors bool `json:"onlyErrors,omitempty"`
}

TraceabilityAgentSpecConfigSampling How the agent will sample the transaction data found during collection (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecLogging ¶

type TraceabilityAgentSpecLogging struct {
	// Defines the log level.
	Level string `json:"level,omitempty"`
}

TraceabilityAgentSpecLogging Logging config (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentStatus ¶

type TraceabilityAgentStatus struct {
	// Version name for the agent revision.
	Version string `json:"version,omitempty"`
	// Latest available version for the agent revision.
	LatestAvailableVersion string `json:"latestAvailableVersion,omitempty"`
	// Agent status:  * running - Passed all health checks.  Up and running  * stopped - Agent is not running  * failed - Failed health checks  * unhealthy - Agent is running with health check failure
	State         string `json:"state,omitempty"`
	PreviousState string `json:"previousState,omitempty"`
	// A way to communicate details about the current status by the agent
	Message string `json:"message,omitempty"`
	// The last updated event timestamp provided by the agent
	LastActivityTime time.Time `json:"lastActivityTime,omitempty"`
	// Version name for the SDK revision.
	SdkVersion string `json:"sdkVersion,omitempty"`
}

TraceabilityAgentStatus (management.v1alpha1.TraceabilityAgent)

type WatchTopic ¶

type WatchTopic struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner   `json:"owner"`
	Spec  WatchTopicSpec `json:"spec"`
}

WatchTopic Resource

func NewWatchTopic ¶

func NewWatchTopic(name string) *WatchTopic

NewWatchTopic creates an empty *WatchTopic

func WatchTopicFromInstanceArray ¶

func WatchTopicFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*WatchTopic, error)

WatchTopicFromInstanceArray converts a []*ResourceInstance to a []*WatchTopic

func (*WatchTopic) AsInstance ¶

func (res *WatchTopic) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a WatchTopic to a ResourceInstance

func (*WatchTopic) FromInstance ¶

func (res *WatchTopic) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a WatchTopic

func (*WatchTopic) MarshalJSON ¶

func (res *WatchTopic) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*WatchTopic) PluralName ¶

func (res *WatchTopic) PluralName() string

PluralName returns the plural name of the resource

func (*WatchTopic) UnmarshalJSON ¶

func (res *WatchTopic) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type WatchTopicSpec ¶

type WatchTopicSpec struct {
	// Description of the WatchTopic
	Description string                  `json:"description,omitempty"`
	Filters     []WatchTopicSpecFilters `json:"filters"`
}

WatchTopicSpec (management.v1alpha1.WatchTopic)

type WatchTopicSpecFilters ¶

type WatchTopicSpecFilters struct {
	// Value for the group of the resource. Use \"*\" for any.
	Group string `json:"group"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Scope WatchTopicSpecScope `json:"scope,omitempty"`
	Scope *WatchTopicSpecScope `json:"scope,omitempty"`
	// Value for the Kind of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the resource. Use \"*\" for any.
	Name string   `json:"name"`
	Type []string `json:"type"`
}

WatchTopicSpecFilters (management.v1alpha1.WatchTopic)

type WatchTopicSpecScope ¶

type WatchTopicSpecScope struct {
	// Value for the Kind of the scope of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the scope of the resource. Use \"*\" for any.
	Name string `json:"name"`
}

WatchTopicSpecScope Resource scope filter details. (management.v1alpha1.WatchTopic)

type Webhook ¶

type Webhook struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner `json:"owner"`
	Spec  WebhookSpec  `json:"spec"`
}

Webhook Resource

func NewWebhook ¶

func NewWebhook(name, scopeKind, scopeName string) (*Webhook, error)

NewWebhook creates an empty *Webhook

func WebhookFromInstanceArray ¶

func WebhookFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Webhook, error)

WebhookFromInstanceArray converts a []*ResourceInstance to a []*Webhook

func (*Webhook) AsInstance ¶

func (res *Webhook) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Webhook to a ResourceInstance

func (*Webhook) FromInstance ¶

func (res *Webhook) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Webhook

func (*Webhook) MarshalJSON ¶

func (res *Webhook) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Webhook) PluralName ¶

func (res *Webhook) PluralName() string

PluralName returns the plural name of the resource

func (*Webhook) UnmarshalJSON ¶

func (res *Webhook) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type WebhookSpec ¶

type WebhookSpec struct {
	Auth    WebhookSpecAuth `json:"auth,omitempty"`
	Enabled bool            `json:"enabled,omitempty"`
	Url     string          `json:"url"`
	// A list of headers that will be sent as par of the http call to the webhook endpoint. (management.v1alpha1.Webhook)
	Headers map[string]string `json:"headers,omitempty"`
}

WebhookSpec (management.v1alpha1.Webhook)

type WebhookSpecAuth ¶

type WebhookSpecAuth struct {
	Secret WebhookSpecAuthSecret `json:"secret,omitempty"`
}

WebhookSpecAuth Defines the authentication used to invoke the webhook. When invoking the webhook, the value from the secret/key will be sent in the Authorization header. (management.v1alpha1.Webhook)

type WebhookSpecAuthSecret ¶

type WebhookSpecAuthSecret struct {
	// Secret name to be used as a reference. If the secret is removed, the reference gets removed and the webhook invocation will be done with no Authorization header.
	Name string `json:"name,omitempty"`
	// Key to be used from the referenced secret.
	Key string `json:"key,omitempty"`
}

WebhookSpecAuthSecret (management.v1alpha1.Webhook)

Source Files ¶

Jump to

Keyboard shortcuts

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