management

package
v1.1.82 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

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 (
	ConsumerInstanceResourceName              = "consumerinstances"
	ConsumerInstanceReferencesSubResourceName = "references"
	ConsumerInstanceStatusSubResourceName     = "status"
)
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"
	DiscoveryAgentDataplaneSubResourceName = "dataplane"
	DiscoveryAgentStatusSubResourceName    = "status"
)
View Source
const (
	EnvironmentResourceName                   = "environments"
	EnvironmentCompliancetasksSubResourceName = "compliancetasks"
	EnvironmentPoliciesSubResourceName        = "policies"
	EnvironmentReferencesSubResourceName      = "references"
	EnvironmentStagesSubResourceName          = "stages"
)
View Source
const (
	ManagedApplicationResourceName               = "managedapplications"
	ManagedApplicationMarketplaceSubResourceName = "marketplace"
	ManagedApplicationReferencesSubResourceName  = "references"
	ManagedApplicationStatusSubResourceName      = "status"
)
View Source
const (
	TraceabilityAgentResourceName             = "traceabilityagents"
	TraceabilityAgentDataplaneSubResourceName = "dataplane"
	TraceabilityAgentStatusSubResourceName    = "status"
)
View Source
const (
	APISpecResourceName = "apispecs"
)
View Source
const (
	AccessControlListResourceName = "accesscontrollists"
)
View Source
const (
	AssetMappingTemplateResourceName = "assetmappingtemplates"
)
View Source
const (
	ConsumerSubscriptionDefinitionResourceName = "consumersubscriptiondefs"
)
View Source
const (
	IntegrationResourceName = "integrations"
)
View Source
const (
	K8SClusterResourceName = "k8sclusters"
)
View Source
const (
	K8SResourceResourceName = "k8sresources"
)
View Source
const (
	MeshDiscoveryResourceName = "meshdiscoveries"
)
View Source
const (
	MeshResourceName = "meshes"
)
View Source
const (
	MeshServiceResourceName = "meshservices"
)
View Source
const (
	MeshWorkloadResourceName = "meshworkloads"
)
View Source
const (
	ResourceDiscoveryResourceName = "resourcediscoveries"
)
View Source
const (
	ResourceHookResourceName = "resourcehooks"
)
View Source
const (
	SecretResourceName = "secrets"
)
View Source
const (
	SpecDiscoveryResourceName = "specdiscoveries"
)
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 (
	APISpecCtx log.ContextField = "apiSpec"

	APISpecScopes = []string{"K8SCluster"}
)
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", "Integration", "K8SCluster", "Mesh", "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 (
	ConsumerInstanceCtx log.ContextField = "consumerInstance"

	ConsumerInstanceScopes = []string{"Environment"}
)
View Source
var (
	ConsumerSubscriptionDefinitionCtx log.ContextField = "consumerSubscriptionDefinition"

	ConsumerSubscriptionDefinitionScopes = []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 (
	IntegrationCtx log.ContextField = "integration"

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

	K8SClusterScopes = []string{""}
)
View Source
var (
	K8SResourceCtx log.ContextField = "k8SResource"

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

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

	MeshScopes = []string{""}
)
View Source
var (
	MeshDiscoveryCtx log.ContextField = "meshDiscovery"

	MeshDiscoveryScopes = []string{"Mesh"}
)
View Source
var (
	MeshServiceCtx log.ContextField = "meshService"

	MeshServiceScopes = []string{"Mesh"}
)
View Source
var (
	MeshWorkloadCtx log.ContextField = "meshWorkload"

	MeshWorkloadScopes = []string{"Mesh"}
)
View Source
var (
	ResourceDiscoveryCtx log.ContextField = "resourceDiscovery"

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

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

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

	SpecDiscoveryScopes = []string{"K8SCluster"}
)
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 APISpecGVK ¶

func APISpecGVK() 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 ConsumerInstanceGVK ¶

func ConsumerInstanceGVK() apiv1.GroupVersionKind

func ConsumerSubscriptionDefinitionGVK ¶

func ConsumerSubscriptionDefinitionGVK() 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 IntegrationGVK ¶

func IntegrationGVK() apiv1.GroupVersionKind

func K8SClusterGVK ¶

func K8SClusterGVK() apiv1.GroupVersionKind

func K8SResourceGVK ¶

func K8SResourceGVK() apiv1.GroupVersionKind

func ManagedApplicationGVK ¶

func ManagedApplicationGVK() apiv1.GroupVersionKind

func MeshDiscoveryGVK ¶

func MeshDiscoveryGVK() apiv1.GroupVersionKind

func MeshGVK ¶

func MeshGVK() apiv1.GroupVersionKind

func MeshServiceGVK ¶

func MeshServiceGVK() apiv1.GroupVersionKind

func MeshWorkloadGVK ¶

func MeshWorkloadGVK() apiv1.GroupVersionKind

func ResourceDiscoveryGVK ¶

func ResourceDiscoveryGVK() apiv1.GroupVersionKind

func ResourceHookGVK ¶

func ResourceHookGVK() apiv1.GroupVersionKind

func SecretGVK ¶

func SecretGVK() apiv1.GroupVersionKind

func SpecDiscoveryGVK ¶

func SpecDiscoveryGVK() 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 APISpec ¶

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

APISpec Resource

func APISpecFromInstanceArray ¶

func APISpecFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APISpec, error)

APISpecFromInstanceArray converts a []*ResourceInstance to a []*APISpec

func NewAPISpec ¶

func NewAPISpec(name, scopeName string) *APISpec

NewAPISpec creates an empty *APISpec

func (*APISpec) AsInstance ¶

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

AsInstance converts a APISpec to a ResourceInstance

func (*APISpec) FromInstance ¶

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

FromInstance converts a ResourceInstance to a APISpec

func (*APISpec) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*APISpec) PluralName ¶

func (res *APISpec) PluralName() string

PluralName returns the plural name of the resource

func (*APISpec) UnmarshalJSON ¶

func (res *APISpec) 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 struct for AccessControlListSpecRules

type AccessControlListSpecSubjects ¶

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

AccessControlListSpecSubjects struct for AccessControlListSpecSubjects

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.
	Schema   map[string]interface{}                       `json:"schema,omitempty"`
	Policies AccessRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

AccessRequestDefinitionSpecProvision struct for AccessRequestDefinitionSpecProvision

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.

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.

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 struct for AccessRequestStatus

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"`
	Meta      map[string]map[string]interface{} `json:"meta,omitempty"`
}

AccessRequestStatusReasons struct for AccessRequestStatusReasons

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 struct for ApiServiceCompliance

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 struct for ApiServiceDetails

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 struct for ApiServiceInstanceLifecycle

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 struct for ApiServiceInstanceLifecycleReleaseState

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 struct for ApiServiceInstanceReferences

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"`
	AccessRequestDefinition      string   `json:"accessRequestDefinition,omitempty"`
	CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,omitempty"`
	// A list of locations where the api is deployed.
	Endpoint []ApiServiceInstanceSpecEndpoint `json:"endpoint"`
}

ApiServiceInstanceSpec struct for ApiServiceInstanceSpec

type ApiServiceInstanceSpecEndpoint ¶

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

ApiServiceInstanceSpecEndpoint struct for ApiServiceInstanceSpecEndpoint

type ApiServiceInstanceSpecRouting ¶

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

ApiServiceInstanceSpecRouting struct for ApiServiceInstanceSpecRouting

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 struct for ApiServiceReferences

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 struct for ApiServiceRevisionCompliance

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 struct for ApiServiceRevisionSpec

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.

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 struct for ApiServiceSpec

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.

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 struct for ApiServiceStatus

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 struct for ApiSpecLintingJobResult

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 struct for ApiSpecLintingJobResultDetails

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.

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.

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 struct for ApiSpecLintingJobSpec

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 struct for ApiSpecLintingJobState

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 struct for ApiSpecLintingRulesetSpec

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.

type ApiSpecSpec ¶

type ApiSpecSpec struct {
	SpecDiscoveryRef string                 `json:"specDiscoveryRef,omitempty"`
	Definition       ApiSpecSpecDefinition  `json:"definition,omitempty"`
	Endpoints        []ApiSpecSpecEndpoints `json:"endpoints,omitempty"`
}

ApiSpecSpec struct for ApiSpecSpec

type ApiSpecSpecDefinition ¶

type ApiSpecSpecDefinition struct {
	// The type of the api specification.
	Type string `json:"type,omitempty"`
	// Base64 encoded value of the api specification.
	Value string `json:"value,omitempty"`
	// Consistent hash of the value.
	Hash string `json:"hash,omitempty"`
}

ApiSpecSpecDefinition struct for ApiSpecSpecDefinition

type ApiSpecSpecEndpoints ¶

type ApiSpecSpecEndpoints struct {
	// The type of the endpoint.
	Type string `json:"type,omitempty"`
	// The host of the pod <namespace>.<pod-name>
	Host string `json:"host,omitempty"`
	// The port of the pod on which this spec was discovered.
	Port string `json:"port,omitempty"`
	// The path on which this spec was discovered.
	Path string `json:"path,omitempty"`
	// The labels for the pod this spec was discovered on.
	Labels map[string]string `json:"labels,omitempty"`
}

ApiSpecSpecEndpoints struct for ApiSpecSpecEndpoints

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 struct for AssetMappingSpec

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.

type AssetMappingStatus ¶

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

AssetMappingStatus struct for AssetMappingStatus

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 struct for AssetMappingStatusOutputs

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.

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 struct for AssetMappingStatusResourceAssetResource

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 struct for AssetMappingStatusResourceStage

type AssetMappingStatusSource ¶

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

AssetMappingStatusSource struct for AssetMappingStatusSource

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.

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 struct for AssetMappingStatusSourceResourceApiService

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 struct for AssetMappingStatusSourceResourceApiServiceInstance

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 struct for AssetMappingStatusSourceResourceApiServiceRevision

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 struct for AssetMappingStatusSourceResourceAssetMappingTemplate

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 struct for AssetMappingTemplateSpec

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.
	Attributes         map[string]string                          `json:"attributes,omitempty"`
	ApiServiceRevision AssetMappingTemplateSpecApiServiceRevision `json:"apiServiceRevision,omitempty"`
}

AssetMappingTemplateSpecApiService struct for AssetMappingTemplateSpecApiService

type AssetMappingTemplateSpecApiServiceRevision ¶

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

AssetMappingTemplateSpecApiServiceRevision struct for AssetMappingTemplateSpecApiServiceRevision

type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance ¶

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

AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance struct for AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance

type AssetMappingTemplateSpecAsset ¶

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

AssetMappingTemplateSpecAsset struct for AssetMappingTemplateSpecAsset

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 struct for AssetMappingTemplateSpecFilters

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 struct for BatchJobProgress

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 struct for BatchJobSpec

type BatchJobSpecReferences ¶ added in v1.1.52

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

BatchJobSpecReferences struct for BatchJobSpecReferences

type ConsumerInstance ¶

type ConsumerInstance struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner               `json:"owner"`
	References ConsumerInstanceReferences `json:"references"`
	Spec       ConsumerInstanceSpec       `json:"spec"`
	Status     ConsumerInstanceStatus     `json:"status"`
}

ConsumerInstance Resource

func ConsumerInstanceFromInstanceArray ¶

func ConsumerInstanceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerInstance, error)

ConsumerInstanceFromInstanceArray converts a []*ResourceInstance to a []*ConsumerInstance

func NewConsumerInstance ¶

func NewConsumerInstance(name, scopeName string) *ConsumerInstance

NewConsumerInstance creates an empty *ConsumerInstance

func (*ConsumerInstance) AsInstance ¶

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

AsInstance converts a ConsumerInstance to a ResourceInstance

func (*ConsumerInstance) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ConsumerInstance

func (*ConsumerInstance) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ConsumerInstance) PluralName ¶

func (res *ConsumerInstance) PluralName() string

PluralName returns the plural name of the resource

func (*ConsumerInstance) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ConsumerInstanceReferences ¶

type ConsumerInstanceReferences struct {
	// Reference to Amplify Central APIService
	ApiService string `json:"apiService,omitempty"`
	// Reference to Amplify Central APIServiceRevision
	ApiServiceRevision string `json:"apiServiceRevision,omitempty"`
}

ConsumerInstanceReferences struct for ConsumerInstanceReferences

type ConsumerInstanceSpec ¶

type ConsumerInstanceSpec struct {
	// Maps to the name of the Catalog Item. If not provided, the resource title will be used.
	Name string `json:"name,omitempty"`
	// The name of an APIServiceInstance resource that specifies where the API is deployed.
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
	// Name of the team that owns the Catalog Item. If not provided, the Default team will be used.
	OwningTeam string `json:"owningTeam,omitempty"`
	// Maps to the description of the Catalog Item. Defaults to the API service description.
	Description string `json:"description,omitempty"`
	// The visibility of the Catalog Item:  * PUBLIC - If Catalog Item is in PUBLISHED state, it will be visible to the entire organization.  * RESTRICTED - If Catalog Item is in PUBLISHED state, it will be visible to the owning team and teams part of the Catalog Item Access Control List.
	Visibility string `json:"visibility,omitempty"`
	// Version name for the revision.
	Version string `json:"version,omitempty"`
	// Catalog Item state:  * UNPUBLISHED - Only developers in the owning team will be able to access the Catalog Item.  * PUBLISHED - Developers and Consumers in the owning team and any additional team in the ACL will be able to access the Catalog Item.
	State string `json:"state,omitempty"`
	// A way to communicate the status of the service to consumers. Examples: DRAFT, BETA, GA
	Status string `json:"status,omitempty"`
	// List of tags to be set on the Catalog Item. Max allowed tags for the Catalog Item is 80.
	Tags []string `json:"tags,omitempty"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Icon ConsumerInstanceSpecIcon `json:"icon,omitempty"`
	Icon *ConsumerInstanceSpecIcon `json:"icon,omitempty"`
	// Markdown documentation for the Catalog Item documentation.
	Documentation              string                                         `json:"documentation,omitempty"`
	UnstructuredDataProperties ConsumerInstanceSpecUnstructuredDataProperties `json:"unstructuredDataProperties,omitempty"`
	AdditionalDataProperties   ConsumerInstanceSpecAdditionalDataProperties   `json:"additionalDataProperties,omitempty"`
	Subscription               ConsumerInstanceSpecSubscription               `json:"subscription,omitempty"`
	Categories                 []string                                       `json:"categories,omitempty"`
}

ConsumerInstanceSpec struct for ConsumerInstanceSpec

type ConsumerInstanceSpecAdditionalDataProperties ¶

type ConsumerInstanceSpecAdditionalDataProperties struct {
	// Defines the unstructured data type. Example 'APIBuilderConnector' or 'SDK'.
	Type string `json:"type"`
	// Defines the Content Type of the data.
	ContentType string `json:"contentType"`
	// Short name for the unstructured data.
	Label string `json:"label,omitempty"`
	// File name used to be sent as part of the content disposition header for revision unstructured data download.
	FileName string `json:"fileName,omitempty"`
	// Base64 encoded data for the Catalog Item revision content.
	Data string `json:"data"`
}

ConsumerInstanceSpecAdditionalDataProperties The Catalog Item properties for additional data.

type ConsumerInstanceSpecIcon ¶

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

ConsumerInstanceSpecIcon Image for the Catalog Item. If not present, the icon on the APISevice will be used in the Catalog Item.

type ConsumerInstanceSpecSubscription ¶

type ConsumerInstanceSpecSubscription struct {
	// Defines if subscriptions are allowed on the Catalog Item.
	Enabled bool `json:"enabled,omitempty"`
	// Defines if subscriptions need to be manually approved.
	// GENERATE: The following code has been modified after code generation
	// 	AutoSubscribe bool `json:"autoSubscribe,omitempty"`
	AutoSubscribe bool `json:"autoSubscribe"`
	// The name of a ConsumerSubscriptionDefinition kind that defines the schema and possible webhooks to get invoked.
	SubscriptionDefinition string `json:"subscriptionDefinition,omitempty"`
}

ConsumerInstanceSpecSubscription struct for ConsumerInstanceSpecSubscription

type ConsumerInstanceSpecUnstructuredDataProperties ¶

type ConsumerInstanceSpecUnstructuredDataProperties struct {
	// Defines the unstructured data type. Example 'APIBuilderConnector' or 'SDK'.
	Type string `json:"type"`
	// Defines the Content Type of the data.
	ContentType string `json:"contentType"`
	// Short name for the unstructured data.
	Label string `json:"label,omitempty"`
	// File name used to be sent as part of the content disposition header for revision unstructured data download.
	FileName string `json:"fileName,omitempty"`
	// Base64 encoded data for the Catalog Item revision content.
	Data string `json:"data,omitempty"`
}

ConsumerInstanceSpecUnstructuredDataProperties The Catalog Item properties for unstructured definition subtypes.

type ConsumerInstanceStatus ¶

type ConsumerInstanceStatus struct {
	Phase ConsumerInstanceStatusPhase `json:"phase"`
}

ConsumerInstanceStatus struct for ConsumerInstanceStatus

type ConsumerInstanceStatusPhase ¶

type ConsumerInstanceStatusPhase struct {
	Name string `json:"name"`
	// The criticality of the last update
	Level string `json:"level"`
	// Time of the current phase.
	TransitionTime time.Time `json:"transitionTime"`
	// Description of the phase.
	Message string `json:"message,omitempty"`
}

ConsumerInstanceStatusPhase struct for ConsumerInstanceStatusPhase

type ConsumerSubscriptionDefinition ¶

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

ConsumerSubscriptionDefinition Resource

func ConsumerSubscriptionDefinitionFromInstanceArray ¶

func ConsumerSubscriptionDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerSubscriptionDefinition, error)

ConsumerSubscriptionDefinitionFromInstanceArray converts a []*ResourceInstance to a []*ConsumerSubscriptionDefinition

func NewConsumerSubscriptionDefinition ¶

func NewConsumerSubscriptionDefinition(name, scopeName string) *ConsumerSubscriptionDefinition

NewConsumerSubscriptionDefinition creates an empty *ConsumerSubscriptionDefinition

func (*ConsumerSubscriptionDefinition) AsInstance ¶

AsInstance converts a ConsumerSubscriptionDefinition to a ResourceInstance

func (*ConsumerSubscriptionDefinition) FromInstance ¶

FromInstance converts a ResourceInstance to a ConsumerSubscriptionDefinition

func (*ConsumerSubscriptionDefinition) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ConsumerSubscriptionDefinition) PluralName ¶

func (res *ConsumerSubscriptionDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*ConsumerSubscriptionDefinition) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ConsumerSubscriptionDefinitionSpec ¶

type ConsumerSubscriptionDefinitionSpec struct {
	// List of Webhook kind resource names that dictates what webhooks will be invoked on subscription changes.
	Webhooks []string                                 `json:"webhooks,omitempty"`
	Schema   ConsumerSubscriptionDefinitionSpecSchema `json:"schema,omitempty"`
}

ConsumerSubscriptionDefinitionSpec struct for ConsumerSubscriptionDefinitionSpec

type ConsumerSubscriptionDefinitionSpecSchema ¶

type ConsumerSubscriptionDefinitionSpecSchema struct {
	// Defines the subscription schema properties as key/value pairs.
	Properties []ConsumerSubscriptionDefinitionSpecSchemaProperties `json:"properties,omitempty"`
}

ConsumerSubscriptionDefinitionSpecSchema Subscription definition properties to be used by the consumers.

type ConsumerSubscriptionDefinitionSpecSchemaProperties ¶

type ConsumerSubscriptionDefinitionSpecSchemaProperties struct {
	// The Catalog Item subscription spec key. For API type subscriptions, the key needs to be 'profile'.
	Key string `json:"key"`
	// JSON schema to specify data needed from consumers when subscriptions are created.
	Value map[string]interface{} `json:"value"`
}

ConsumerSubscriptionDefinitionSpecSchemaProperties struct for ConsumerSubscriptionDefinitionSpecSchemaProperties

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 struct for CredentialPoliciesExpiry

type CredentialReferences ¶

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

CredentialReferences struct for CredentialReferences

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 struct for CredentialRequestDefinitionReferences

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"`
}

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.

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 struct for CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions

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.
	Data  map[string]interface{} `json:"data"`
	State CredentialSpecState    `json:"state,omitempty"`
}

CredentialSpec struct for CredentialSpec

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.

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.

type CredentialStatus ¶

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

CredentialStatus struct for CredentialStatus

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 struct for DataplaneSecretSpec

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 struct for DataplaneSecretStatus

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 struct for DataplaneSecurity

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 struct for DataplaneSpec

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"`
}

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"`
	// The event hub processes and stores events, data, or telemetry produced by distributed software or devices
	EventHubName string `json:"eventHubName"`
	// The event hub namespace is a management container for event hubs or topics
	EventHubNamespace string `json:"eventHubNamespace"`
	// 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"`
}

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
	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 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 struct for DiscoveryAgentDataplane

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 struct for DiscoveryAgentSpec

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

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.

type DiscoveryAgentSpecLogging ¶

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

DiscoveryAgentSpecLogging Logging config

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 struct for DiscoveryAgentStatus

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.

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 struct for EnvironmentPolicies

type EnvironmentPoliciesCredentials ¶ added in v1.1.52

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

EnvironmentPoliciesCredentials Defines the policies for the Environment's Credentials

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.

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.

type EnvironmentReferences ¶ added in v1.1.79

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

EnvironmentReferences (management.v1alpha1.Environment)

type EnvironmentSpec ¶

type EnvironmentSpec struct {
	Description string            `json:"description,omitempty"`
	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 struct for EnvironmentSpec

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.

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.

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 struct for EnvironmentStages

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 struct for IntegrationSpec

type K8SCluster ¶

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

K8SCluster Resource

func K8SClusterFromInstanceArray ¶

func K8SClusterFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*K8SCluster, error)

K8SClusterFromInstanceArray converts a []*ResourceInstance to a []*K8SCluster

func NewK8SCluster ¶

func NewK8SCluster(name string) *K8SCluster

NewK8SCluster creates an empty *K8SCluster

func (*K8SCluster) AsInstance ¶

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

AsInstance converts a K8SCluster to a ResourceInstance

func (*K8SCluster) FromInstance ¶

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

FromInstance converts a ResourceInstance to a K8SCluster

func (*K8SCluster) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*K8SCluster) PluralName ¶

func (res *K8SCluster) PluralName() string

PluralName returns the plural name of the resource

func (*K8SCluster) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type K8SClusterSpec ¶

type K8SClusterSpec struct {
	Mesh string `json:"mesh,omitempty"`
}

K8SClusterSpec struct for K8SClusterSpec

type K8SResource ¶

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

K8SResource Resource

func K8SResourceFromInstanceArray ¶

func K8SResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*K8SResource, error)

K8SResourceFromInstanceArray converts a []*ResourceInstance to a []*K8SResource

func NewK8SResource ¶

func NewK8SResource(name, scopeName string) *K8SResource

NewK8SResource creates an empty *K8SResource

func (*K8SResource) AsInstance ¶

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

AsInstance converts a K8SResource to a ResourceInstance

func (*K8SResource) FromInstance ¶

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

FromInstance converts a ResourceInstance to a K8SResource

func (*K8SResource) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*K8SResource) PluralName ¶

func (res *K8SResource) PluralName() string

PluralName returns the plural name of the resource

func (*K8SResource) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type K8SResourceSpec ¶

type K8SResourceSpec struct {
	ResourceDiscovery string                           `json:"resourceDiscovery,omitempty"`
	ResourceVersion   string                           `json:"resourceVersion,omitempty"`
	Uid               string                           `json:"uid,omitempty"`
	OwnerReferences   []K8SResourceSpecOwnerReferences `json:"ownerReferences,omitempty"`
	ResourceSpec      map[string]interface{}           `json:"resourceSpec,omitempty"`
	ResourceStatus    map[string]interface{}           `json:"resourceStatus,omitempty"`
}

K8SResourceSpec struct for K8SResourceSpec

type K8SResourceSpecOwnerReferences ¶

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

K8SResourceSpecOwnerReferences struct for K8SResourceSpecOwnerReferences

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.

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.

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.

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.

type ManagedApplicationMarketplaceResourceOwnerOrganization ¶

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

ManagedApplicationMarketplaceResourceOwnerOrganization Organization details.

type ManagedApplicationReferences ¶

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

ManagedApplicationReferences struct for ManagedApplicationReferences

type ManagedApplicationSpec ¶

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

ManagedApplicationSpec struct for ManagedApplicationSpec

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 struct for ManagedApplicationSpecSecurity

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 struct for ManagedApplicationStatus

type Mesh ¶

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

Mesh Resource

func MeshFromInstanceArray ¶

func MeshFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Mesh, error)

MeshFromInstanceArray converts a []*ResourceInstance to a []*Mesh

func NewMesh ¶

func NewMesh(name string) *Mesh

NewMesh creates an empty *Mesh

func (*Mesh) AsInstance ¶

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

AsInstance converts a Mesh to a ResourceInstance

func (*Mesh) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Mesh

func (*Mesh) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Mesh) PluralName ¶

func (res *Mesh) PluralName() string

PluralName returns the plural name of the resource

func (*Mesh) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshDiscovery ¶

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

MeshDiscovery Resource

func MeshDiscoveryFromInstanceArray ¶

func MeshDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshDiscovery, error)

MeshDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*MeshDiscovery

func NewMeshDiscovery ¶

func NewMeshDiscovery(name, scopeName string) *MeshDiscovery

NewMeshDiscovery creates an empty *MeshDiscovery

func (*MeshDiscovery) AsInstance ¶

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

AsInstance converts a MeshDiscovery to a ResourceInstance

func (*MeshDiscovery) FromInstance ¶

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

FromInstance converts a ResourceInstance to a MeshDiscovery

func (*MeshDiscovery) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*MeshDiscovery) PluralName ¶

func (res *MeshDiscovery) PluralName() string

PluralName returns the plural name of the resource

func (*MeshDiscovery) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshDiscoverySpec ¶

type MeshDiscoverySpec struct {
	// Target environment.
	EnvironmentRef string `json:"environmentRef"`
}

MeshDiscoverySpec struct for MeshDiscoverySpec

type MeshService ¶

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

MeshService Resource

func MeshServiceFromInstanceArray ¶

func MeshServiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshService, error)

MeshServiceFromInstanceArray converts a []*ResourceInstance to a []*MeshService

func NewMeshService ¶

func NewMeshService(name, scopeName string) *MeshService

NewMeshService creates an empty *MeshService

func (*MeshService) AsInstance ¶

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

AsInstance converts a MeshService to a ResourceInstance

func (*MeshService) FromInstance ¶

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

FromInstance converts a ResourceInstance to a MeshService

func (*MeshService) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*MeshService) PluralName ¶

func (res *MeshService) PluralName() string

PluralName returns the plural name of the resource

func (*MeshService) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshServiceSpec ¶

type MeshServiceSpec struct {
	// The labels used by the service to match workloads it exposes.
	Selector map[string]string `json:"selector,omitempty"`
	// Reference to the K8SResource derived from the Kubernetes Service.
	Resource string `json:"resource,omitempty"`
	// References to workloads exposed by the service.
	Workloads []string `json:"workloads,omitempty"`
	// Details per port.
	Ports []MeshServiceSpecPorts `json:"ports,omitempty"`
}

MeshServiceSpec struct for MeshServiceSpec

type MeshServiceSpecEndpoints ¶

type MeshServiceSpecEndpoints struct {
	Workloads []string `json:"workloads,omitempty"`
	// A subset is the set of labels one or more workloads has outside the labels in the service selector.
	Subset map[string]string `json:"subset,omitempty"`
	// Array of references to apispecs discovered by the discovery agent.
	Specs []string `json:"specs,omitempty"`
}

MeshServiceSpecEndpoints struct for MeshServiceSpecEndpoints

type MeshServiceSpecPorts ¶

type MeshServiceSpecPorts struct {
	Name      string                     `json:"name,omitempty"`
	Port      int32                      `json:"port,omitempty"`
	Endpoints []MeshServiceSpecEndpoints `json:"endpoints,omitempty"`
}

MeshServiceSpecPorts struct for MeshServiceSpecPorts

type MeshWorkload ¶

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

MeshWorkload Resource

func MeshWorkloadFromInstanceArray ¶

func MeshWorkloadFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshWorkload, error)

MeshWorkloadFromInstanceArray converts a []*ResourceInstance to a []*MeshWorkload

func NewMeshWorkload ¶

func NewMeshWorkload(name, scopeName string) *MeshWorkload

NewMeshWorkload creates an empty *MeshWorkload

func (*MeshWorkload) AsInstance ¶

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

AsInstance converts a MeshWorkload to a ResourceInstance

func (*MeshWorkload) FromInstance ¶

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

FromInstance converts a ResourceInstance to a MeshWorkload

func (*MeshWorkload) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*MeshWorkload) PluralName ¶

func (res *MeshWorkload) PluralName() string

PluralName returns the plural name of the resource

func (*MeshWorkload) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshWorkloadSpec ¶

type MeshWorkloadSpec struct {
	// References to k8sresources making up the workload.
	Resources []string `json:"resources,omitempty"`
	// Labels from the k8sresources making up the workload.
	Labels map[string]string `json:"labels,omitempty"`
	// Discovered ports on the workload.
	Ports []MeshWorkloadSpecPorts `json:"ports,omitempty"`
}

MeshWorkloadSpec struct for MeshWorkloadSpec

type MeshWorkloadSpecPorts ¶

type MeshWorkloadSpecPorts struct {
	// The name of the port.
	Name string `json:"name,omitempty"`
	// Port number.
	Port  int32                 `json:"port,omitempty"`
	Specs MeshWorkloadSpecSpecs `json:"specs,omitempty"`
}

MeshWorkloadSpecPorts struct for MeshWorkloadSpecPorts

type MeshWorkloadSpecSpecs ¶

type MeshWorkloadSpecSpecs struct {
	// Array of references to apispecs discovered by the discovery agent.
	DiscoveredSpecs []string `json:"discoveredSpecs,omitempty"`
}

MeshWorkloadSpecSpecs API specs exposed by this workload on this port.

type ResourceDiscovery ¶

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

ResourceDiscovery Resource

func NewResourceDiscovery ¶

func NewResourceDiscovery(name, scopeName string) *ResourceDiscovery

NewResourceDiscovery creates an empty *ResourceDiscovery

func ResourceDiscoveryFromInstanceArray ¶

func ResourceDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ResourceDiscovery, error)

ResourceDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*ResourceDiscovery

func (*ResourceDiscovery) AsInstance ¶

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

AsInstance converts a ResourceDiscovery to a ResourceInstance

func (*ResourceDiscovery) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ResourceDiscovery

func (*ResourceDiscovery) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ResourceDiscovery) PluralName ¶

func (res *ResourceDiscovery) PluralName() string

PluralName returns the plural name of the resource

func (*ResourceDiscovery) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ResourceDiscoverySpec ¶

type ResourceDiscoverySpec struct {
	Version          string                               `json:"version,omitempty"`
	Kind             string                               `json:"kind,omitempty"`
	Group            string                               `json:"group,omitempty"`
	NamespaceFilter  ResourceDiscoverySpecNamespaceFilter `json:"namespaceFilter,omitempty"`
	ResourceFilter   ResourceDiscoverySpecResourceFilter  `json:"resourceFilter,omitempty"`
	KeepSpecFields   []string                             `json:"keepSpecFields,omitempty"`
	KeepStatusFields []string                             `json:"keepStatusFields,omitempty"`
	IgnoreLabels     []string                             `json:"ignoreLabels,omitempty"`
	Tags             []string                             `json:"tags,omitempty"`
	ExtraAttributes  map[string]string                    `json:"extraAttributes,omitempty"`
}

ResourceDiscoverySpec struct for ResourceDiscoverySpec

type ResourceDiscoverySpecNamespaceFilter ¶

type ResourceDiscoverySpecNamespaceFilter struct {
	Names []string `json:"names,omitempty"`
}

ResourceDiscoverySpecNamespaceFilter Namespace filter.

type ResourceDiscoverySpecResourceFilter ¶

type ResourceDiscoverySpecResourceFilter struct {
	Names       []string          `json:"names,omitempty"`
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

ResourceDiscoverySpecResourceFilter Resource filter.

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 struct for ResourceHookSpec

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.

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 struct for ResourceHookSpecTriggers

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.
	Data map[string]string `json:"data,omitempty"`
}

SecretSpec struct for SecretSpec

type SpecDiscovery ¶

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

SpecDiscovery Resource

func NewSpecDiscovery ¶

func NewSpecDiscovery(name, scopeName string) *SpecDiscovery

NewSpecDiscovery creates an empty *SpecDiscovery

func SpecDiscoveryFromInstanceArray ¶

func SpecDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SpecDiscovery, error)

SpecDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*SpecDiscovery

func (*SpecDiscovery) AsInstance ¶

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

AsInstance converts a SpecDiscovery to a ResourceInstance

func (*SpecDiscovery) FromInstance ¶

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

FromInstance converts a ResourceInstance to a SpecDiscovery

func (*SpecDiscovery) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*SpecDiscovery) PluralName ¶

func (res *SpecDiscovery) PluralName() string

PluralName returns the plural name of the resource

func (*SpecDiscovery) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type SpecDiscoverySpec ¶

type SpecDiscoverySpec struct {
	NamespaceFilter SpecDiscoverySpecNamespaceFilter `json:"namespaceFilter,omitempty"`
	ResourceFilter  SpecDiscoverySpecResourceFilter  `json:"resourceFilter,omitempty"`
	Targets         SpecDiscoverySpecTargets         `json:"targets,omitempty"`
}

SpecDiscoverySpec struct for SpecDiscoverySpec

type SpecDiscoverySpecNamespaceFilter ¶

type SpecDiscoverySpecNamespaceFilter struct {
	Names []string `json:"names,omitempty"`
}

SpecDiscoverySpecNamespaceFilter a list of namespace names to follow. If not set, follows all namespaces.

type SpecDiscoverySpecResourceFilter ¶

type SpecDiscoverySpecResourceFilter struct {
	Names       []string          `json:"names,omitempty"`
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

SpecDiscoverySpecResourceFilter Filter pod resources by name or labels.

type SpecDiscoverySpecTargets ¶

type SpecDiscoverySpecTargets struct {
	ExactPaths     []SpecDiscoverySpecTargetsExactPaths     `json:"exactPaths,omitempty"`
	FromAnnotation []SpecDiscoverySpecTargetsFromAnnotation `json:"fromAnnotation,omitempty"`
}

SpecDiscoverySpecTargets struct for SpecDiscoverySpecTargets

type SpecDiscoverySpecTargetsExactPaths ¶

type SpecDiscoverySpecTargetsExactPaths struct {
	// path to api definition
	Path string `json:"path,omitempty"`
	// headers to add to the query
	Headers map[string]string `json:"headers,omitempty"`
}

SpecDiscoverySpecTargetsExactPaths struct for SpecDiscoverySpecTargetsExactPaths

type SpecDiscoverySpecTargetsFromAnnotation ¶

type SpecDiscoverySpecTargetsFromAnnotation struct {
	// annotation template. golang template that's fed the following object for each declared port of the pod: {\"name\", \"number\"}
	Template string `json:"template,omitempty"`
}

SpecDiscoverySpecTargetsFromAnnotation struct for SpecDiscoverySpecTargetsFromAnnotation

type TraceabilityAgent ¶

type TraceabilityAgent struct {
	apiv1.ResourceMeta
	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 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 struct for TraceabilityAgentDataplane

type TraceabilityAgentSpec ¶

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

TraceabilityAgentSpec struct for TraceabilityAgentSpec

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

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

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

type TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize ¶ added in v1.1.58

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

TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize struct for TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize

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

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

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"`
	// When set to true will send transactional data for every errored transaction for Business and Consumer Insights
	AllErrors bool `json:"allErrors"`
}

TraceabilityAgentSpecConfigSampling How the agent will sample the transaction data found during collection

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 struct for TraceabilityAgentStatus

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 struct for WatchTopicSpec

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 struct for WatchTopicSpecFilters

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.

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.
	Headers map[string]string `json:"headers,omitempty"`
}

WebhookSpec struct for WebhookSpec

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.

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 struct for WebhookSpecAuthSecret

Source Files ¶

Jump to

Keyboard shortcuts

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