v1alpha1

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=cloud.grafana.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "cloud.grafana.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	AccessPolicy_Kind             = "AccessPolicy"
	AccessPolicy_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: AccessPolicy_Kind}.String()
	AccessPolicy_KindAPIVersion   = AccessPolicy_Kind + "." + CRDGroupVersion.String()
	AccessPolicy_GroupVersionKind = CRDGroupVersion.WithKind(AccessPolicy_Kind)
)

Repository type metadata.

View Source
var (
	AccessPolicyToken_Kind             = "AccessPolicyToken"
	AccessPolicyToken_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: AccessPolicyToken_Kind}.String()
	AccessPolicyToken_KindAPIVersion   = AccessPolicyToken_Kind + "." + CRDGroupVersion.String()
	AccessPolicyToken_GroupVersionKind = CRDGroupVersion.WithKind(AccessPolicyToken_Kind)
)

Repository type metadata.

View Source
var (
	APIKey_Kind             = "APIKey"
	APIKey_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: APIKey_Kind}.String()
	APIKey_KindAPIVersion   = APIKey_Kind + "." + CRDGroupVersion.String()
	APIKey_GroupVersionKind = CRDGroupVersion.WithKind(APIKey_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	PluginInstallation_Kind             = "PluginInstallation"
	PluginInstallation_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: PluginInstallation_Kind}.String()
	PluginInstallation_KindAPIVersion   = PluginInstallation_Kind + "." + CRDGroupVersion.String()
	PluginInstallation_GroupVersionKind = CRDGroupVersion.WithKind(PluginInstallation_Kind)
)

Repository type metadata.

View Source
var (
	Stack_Kind             = "Stack"
	Stack_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Stack_Kind}.String()
	Stack_KindAPIVersion   = Stack_Kind + "." + CRDGroupVersion.String()
	Stack_GroupVersionKind = CRDGroupVersion.WithKind(Stack_Kind)
)

Repository type metadata.

View Source
var (
	StackServiceAccount_Kind             = "StackServiceAccount"
	StackServiceAccount_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: StackServiceAccount_Kind}.String()
	StackServiceAccount_KindAPIVersion   = StackServiceAccount_Kind + "." + CRDGroupVersion.String()
	StackServiceAccount_GroupVersionKind = CRDGroupVersion.WithKind(StackServiceAccount_Kind)
)

Repository type metadata.

View Source
var (
	StackServiceAccountToken_Kind             = "StackServiceAccountToken"
	StackServiceAccountToken_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: StackServiceAccountToken_Kind}.String()
	StackServiceAccountToken_KindAPIVersion   = StackServiceAccountToken_Kind + "." + CRDGroupVersion.String()
	StackServiceAccountToken_GroupVersionKind = CRDGroupVersion.WithKind(StackServiceAccountToken_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type APIKey

type APIKey struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.cloudOrgSlug) || (has(self.initProvider) && has(self.initProvider.cloudOrgSlug))",message="spec.forProvider.cloudOrgSlug is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.role) || (has(self.initProvider) && has(self.initProvider.role))",message="spec.forProvider.role is a required parameter"
	Spec   APIKeySpec   `json:"spec"`
	Status APIKeyStatus `json:"status,omitempty"`
}

APIKey is the Schema for the APIKeys API. This resource is deprecated and will be removed in a future release. Please use grafana_cloud_access_policy instead. Manages a single API key on the Grafana Cloud portal (on the organization level) API documentation https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#api-keys Required access policy scopes: api-keys:readapi-keys:writeapi-keys:delete +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*APIKey) DeepCopy

func (in *APIKey) DeepCopy() *APIKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKey.

func (*APIKey) DeepCopyInto

func (in *APIKey) DeepCopyInto(out *APIKey)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIKey) DeepCopyObject

func (in *APIKey) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*APIKey) GetCondition

func (mg *APIKey) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this APIKey.

func (*APIKey) GetConnectionDetailsMapping

func (tr *APIKey) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this APIKey

func (*APIKey) GetDeletionPolicy

func (mg *APIKey) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this APIKey.

func (*APIKey) GetID

func (tr *APIKey) GetID() string

GetID returns ID of underlying Terraform resource of this APIKey

func (*APIKey) GetInitParameters added in v0.8.0

func (tr *APIKey) GetInitParameters() (map[string]any, error)

GetInitParameters of this APIKey

func (*APIKey) GetManagementPolicies added in v0.8.0

func (mg *APIKey) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this APIKey.

func (*APIKey) GetMergedParameters added in v0.10.1

func (tr *APIKey) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this APIKey

func (*APIKey) GetObservation

func (tr *APIKey) GetObservation() (map[string]any, error)

GetObservation of this APIKey

func (*APIKey) GetParameters

func (tr *APIKey) GetParameters() (map[string]any, error)

GetParameters of this APIKey

func (*APIKey) GetProviderConfigReference

func (mg *APIKey) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this APIKey.

func (*APIKey) GetPublishConnectionDetailsTo

func (mg *APIKey) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this APIKey.

func (*APIKey) GetTerraformResourceType

func (mg *APIKey) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this APIKey

func (*APIKey) GetTerraformSchemaVersion

func (tr *APIKey) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*APIKey) GetWriteConnectionSecretToReference

func (mg *APIKey) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this APIKey.

func (*APIKey) Hub added in v0.10.1

func (tr *APIKey) Hub()

Hub marks this type as a conversion hub.

func (*APIKey) LateInitialize

func (tr *APIKey) LateInitialize(attrs []byte) (bool, error)

LateInitialize this APIKey using its observed tfState. returns True if there are any spec changes for the resource.

func (*APIKey) SetConditions

func (mg *APIKey) SetConditions(c ...xpv1.Condition)

SetConditions of this APIKey.

func (*APIKey) SetDeletionPolicy

func (mg *APIKey) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this APIKey.

func (*APIKey) SetManagementPolicies added in v0.8.0

func (mg *APIKey) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this APIKey.

func (*APIKey) SetObservation

func (tr *APIKey) SetObservation(obs map[string]any) error

SetObservation for this APIKey

func (*APIKey) SetParameters

func (tr *APIKey) SetParameters(params map[string]any) error

SetParameters for this APIKey

func (*APIKey) SetProviderConfigReference

func (mg *APIKey) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this APIKey.

func (*APIKey) SetPublishConnectionDetailsTo

func (mg *APIKey) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this APIKey.

func (*APIKey) SetWriteConnectionSecretToReference

func (mg *APIKey) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this APIKey.

type APIKeyInitParameters added in v0.8.0

type APIKeyInitParameters struct {

	// (String) The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.
	// The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.
	CloudOrgSlug *string `json:"cloudOrgSlug,omitempty" tf:"cloud_org_slug,omitempty"`

	// (String) Name of the API key.
	// Name of the API key.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/api/#create-api-key for details.
	// Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`
}

func (*APIKeyInitParameters) DeepCopy added in v0.8.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyInitParameters.

func (*APIKeyInitParameters) DeepCopyInto added in v0.8.0

func (in *APIKeyInitParameters) DeepCopyInto(out *APIKeyInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APIKeyList

type APIKeyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []APIKey `json:"items"`
}

APIKeyList contains a list of APIKeys

func (*APIKeyList) DeepCopy

func (in *APIKeyList) DeepCopy() *APIKeyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyList.

func (*APIKeyList) DeepCopyInto

func (in *APIKeyList) DeepCopyInto(out *APIKeyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIKeyList) DeepCopyObject

func (in *APIKeyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*APIKeyList) GetItems

func (l *APIKeyList) GetItems() []resource.Managed

GetItems of this APIKeyList.

type APIKeyObservation

type APIKeyObservation struct {

	// (String) The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.
	// The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.
	CloudOrgSlug *string `json:"cloudOrgSlug,omitempty" tf:"cloud_org_slug,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String) Name of the API key.
	// Name of the API key.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/api/#create-api-key for details.
	// Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`
}

func (*APIKeyObservation) DeepCopy

func (in *APIKeyObservation) DeepCopy() *APIKeyObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyObservation.

func (*APIKeyObservation) DeepCopyInto

func (in *APIKeyObservation) DeepCopyInto(out *APIKeyObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APIKeyParameters

type APIKeyParameters struct {

	// (String) The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.
	// The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.
	// +kubebuilder:validation:Optional
	CloudOrgSlug *string `json:"cloudOrgSlug,omitempty" tf:"cloud_org_slug,omitempty"`

	// (String) Name of the API key.
	// Name of the API key.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/api/#create-api-key for details.
	// Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
	// +kubebuilder:validation:Optional
	Role *string `json:"role,omitempty" tf:"role,omitempty"`
}

func (*APIKeyParameters) DeepCopy

func (in *APIKeyParameters) DeepCopy() *APIKeyParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyParameters.

func (*APIKeyParameters) DeepCopyInto

func (in *APIKeyParameters) DeepCopyInto(out *APIKeyParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APIKeySpec

type APIKeySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     APIKeyParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider APIKeyInitParameters `json:"initProvider,omitempty"`
}

APIKeySpec defines the desired state of APIKey

func (*APIKeySpec) DeepCopy

func (in *APIKeySpec) DeepCopy() *APIKeySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeySpec.

func (*APIKeySpec) DeepCopyInto

func (in *APIKeySpec) DeepCopyInto(out *APIKeySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APIKeyStatus

type APIKeyStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        APIKeyObservation `json:"atProvider,omitempty"`
}

APIKeyStatus defines the observed state of APIKey.

func (*APIKeyStatus) DeepCopy

func (in *APIKeyStatus) DeepCopy() *APIKeyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIKeyStatus.

func (*APIKeyStatus) DeepCopyInto

func (in *APIKeyStatus) DeepCopyInto(out *APIKeyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicy added in v0.11.0

type AccessPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.realm) || (has(self.initProvider) && has(self.initProvider.realm))",message="spec.forProvider.realm is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.region) || (has(self.initProvider) && has(self.initProvider.region))",message="spec.forProvider.region is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.scopes) || (has(self.initProvider) && has(self.initProvider.scopes))",message="spec.forProvider.scopes is a required parameter"
	Spec   AccessPolicySpec   `json:"spec"`
	Status AccessPolicyStatus `json:"status,omitempty"`
}

AccessPolicy is the Schema for the AccessPolicys API. Official documentation https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/API documentation https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-an-access-policy Required access policy scopes: accesspolicies:readaccesspolicies:writeaccesspolicies:delete +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*AccessPolicy) DeepCopy added in v0.11.0

func (in *AccessPolicy) DeepCopy() *AccessPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicy.

func (*AccessPolicy) DeepCopyInto added in v0.11.0

func (in *AccessPolicy) DeepCopyInto(out *AccessPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccessPolicy) DeepCopyObject added in v0.11.0

func (in *AccessPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AccessPolicy) GetCondition added in v0.11.0

func (mg *AccessPolicy) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this AccessPolicy.

func (*AccessPolicy) GetConnectionDetailsMapping added in v0.11.0

func (tr *AccessPolicy) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this AccessPolicy

func (*AccessPolicy) GetDeletionPolicy added in v0.11.0

func (mg *AccessPolicy) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this AccessPolicy.

func (*AccessPolicy) GetID added in v0.11.0

func (tr *AccessPolicy) GetID() string

GetID returns ID of underlying Terraform resource of this AccessPolicy

func (*AccessPolicy) GetInitParameters added in v0.11.0

func (tr *AccessPolicy) GetInitParameters() (map[string]any, error)

GetInitParameters of this AccessPolicy

func (*AccessPolicy) GetManagementPolicies added in v0.11.0

func (mg *AccessPolicy) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this AccessPolicy.

func (*AccessPolicy) GetMergedParameters added in v0.11.0

func (tr *AccessPolicy) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this AccessPolicy

func (*AccessPolicy) GetObservation added in v0.11.0

func (tr *AccessPolicy) GetObservation() (map[string]any, error)

GetObservation of this AccessPolicy

func (*AccessPolicy) GetParameters added in v0.11.0

func (tr *AccessPolicy) GetParameters() (map[string]any, error)

GetParameters of this AccessPolicy

func (*AccessPolicy) GetProviderConfigReference added in v0.11.0

func (mg *AccessPolicy) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this AccessPolicy.

func (*AccessPolicy) GetPublishConnectionDetailsTo added in v0.11.0

func (mg *AccessPolicy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this AccessPolicy.

func (*AccessPolicy) GetTerraformResourceType added in v0.11.0

func (mg *AccessPolicy) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this AccessPolicy

func (*AccessPolicy) GetTerraformSchemaVersion added in v0.11.0

func (tr *AccessPolicy) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*AccessPolicy) GetWriteConnectionSecretToReference added in v0.11.0

func (mg *AccessPolicy) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this AccessPolicy.

func (*AccessPolicy) Hub added in v0.11.0

func (tr *AccessPolicy) Hub()

Hub marks this type as a conversion hub.

func (*AccessPolicy) LateInitialize added in v0.11.0

func (tr *AccessPolicy) LateInitialize(attrs []byte) (bool, error)

LateInitialize this AccessPolicy using its observed tfState. returns True if there are any spec changes for the resource.

func (*AccessPolicy) ResolveReferences added in v0.14.1

func (mg *AccessPolicy) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this AccessPolicy.

func (*AccessPolicy) SetConditions added in v0.11.0

func (mg *AccessPolicy) SetConditions(c ...xpv1.Condition)

SetConditions of this AccessPolicy.

func (*AccessPolicy) SetDeletionPolicy added in v0.11.0

func (mg *AccessPolicy) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this AccessPolicy.

func (*AccessPolicy) SetManagementPolicies added in v0.11.0

func (mg *AccessPolicy) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this AccessPolicy.

func (*AccessPolicy) SetObservation added in v0.11.0

func (tr *AccessPolicy) SetObservation(obs map[string]any) error

SetObservation for this AccessPolicy

func (*AccessPolicy) SetParameters added in v0.11.0

func (tr *AccessPolicy) SetParameters(params map[string]any) error

SetParameters for this AccessPolicy

func (*AccessPolicy) SetProviderConfigReference added in v0.11.0

func (mg *AccessPolicy) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this AccessPolicy.

func (*AccessPolicy) SetPublishConnectionDetailsTo added in v0.11.0

func (mg *AccessPolicy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this AccessPolicy.

func (*AccessPolicy) SetWriteConnectionSecretToReference added in v0.11.0

func (mg *AccessPolicy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this AccessPolicy.

type AccessPolicyInitParameters added in v0.11.0

type AccessPolicyInitParameters struct {

	// (String) Display name of the access policy. Defaults to the name.
	// Display name of the access policy. Defaults to the name.
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// (String) Name of the access policy.
	// Name of the access policy.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Block Set, Min: 1) (see below for nested schema)
	Realm []RealmInitParameters `json:"realm,omitempty" tf:"realm,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
	// Scopes of the access policy. See https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
	// +listType=set
	Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"`
}

func (*AccessPolicyInitParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyInitParameters.

func (*AccessPolicyInitParameters) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyList added in v0.11.0

type AccessPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AccessPolicy `json:"items"`
}

AccessPolicyList contains a list of AccessPolicys

func (*AccessPolicyList) DeepCopy added in v0.11.0

func (in *AccessPolicyList) DeepCopy() *AccessPolicyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyList.

func (*AccessPolicyList) DeepCopyInto added in v0.11.0

func (in *AccessPolicyList) DeepCopyInto(out *AccessPolicyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccessPolicyList) DeepCopyObject added in v0.11.0

func (in *AccessPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AccessPolicyList) GetItems added in v0.11.0

func (l *AccessPolicyList) GetItems() []resource.Managed

GetItems of this AccessPolicyList.

type AccessPolicyObservation added in v0.11.0

type AccessPolicyObservation struct {

	// (String) Creation date of the access policy.
	// Creation date of the access policy.
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// (String) Display name of the access policy. Defaults to the name.
	// Display name of the access policy. Defaults to the name.
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String) Name of the access policy.
	// Name of the access policy.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) ID of the access policy.
	// ID of the access policy.
	PolicyID *string `json:"policyId,omitempty" tf:"policy_id,omitempty"`

	// (Block Set, Min: 1) (see below for nested schema)
	Realm []RealmObservation `json:"realm,omitempty" tf:"realm,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
	// Scopes of the access policy. See https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
	// +listType=set
	Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"`

	// (String) Last update date of the access policy.
	// Last update date of the access policy.
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"`
}

func (*AccessPolicyObservation) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyObservation.

func (*AccessPolicyObservation) DeepCopyInto added in v0.11.0

func (in *AccessPolicyObservation) DeepCopyInto(out *AccessPolicyObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyParameters added in v0.11.0

type AccessPolicyParameters struct {

	// (String) Display name of the access policy. Defaults to the name.
	// Display name of the access policy. Defaults to the name.
	// +kubebuilder:validation:Optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// (String) Name of the access policy.
	// Name of the access policy.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Block Set, Min: 1) (see below for nested schema)
	// +kubebuilder:validation:Optional
	Realm []RealmParameters `json:"realm,omitempty" tf:"realm,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
	// Scopes of the access policy. See https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
	// +kubebuilder:validation:Optional
	// +listType=set
	Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"`
}

func (*AccessPolicyParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyParameters.

func (*AccessPolicyParameters) DeepCopyInto added in v0.11.0

func (in *AccessPolicyParameters) DeepCopyInto(out *AccessPolicyParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicySpec added in v0.11.0

type AccessPolicySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     AccessPolicyParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider AccessPolicyInitParameters `json:"initProvider,omitempty"`
}

AccessPolicySpec defines the desired state of AccessPolicy

func (*AccessPolicySpec) DeepCopy added in v0.11.0

func (in *AccessPolicySpec) DeepCopy() *AccessPolicySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicySpec.

func (*AccessPolicySpec) DeepCopyInto added in v0.11.0

func (in *AccessPolicySpec) DeepCopyInto(out *AccessPolicySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyStatus added in v0.11.0

type AccessPolicyStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        AccessPolicyObservation `json:"atProvider,omitempty"`
}

AccessPolicyStatus defines the observed state of AccessPolicy.

func (*AccessPolicyStatus) DeepCopy added in v0.11.0

func (in *AccessPolicyStatus) DeepCopy() *AccessPolicyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyStatus.

func (*AccessPolicyStatus) DeepCopyInto added in v0.11.0

func (in *AccessPolicyStatus) DeepCopyInto(out *AccessPolicyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyToken added in v0.11.0

type AccessPolicyToken struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.region) || (has(self.initProvider) && has(self.initProvider.region))",message="spec.forProvider.region is a required parameter"
	Spec   AccessPolicyTokenSpec   `json:"spec"`
	Status AccessPolicyTokenStatus `json:"status,omitempty"`
}

AccessPolicyToken is the Schema for the AccessPolicyTokens API. Official documentation https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/API documentation https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-a-token Required access policy scopes: accesspolicies:readaccesspolicies:writeaccesspolicies:delete +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*AccessPolicyToken) DeepCopy added in v0.11.0

func (in *AccessPolicyToken) DeepCopy() *AccessPolicyToken

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyToken.

func (*AccessPolicyToken) DeepCopyInto added in v0.11.0

func (in *AccessPolicyToken) DeepCopyInto(out *AccessPolicyToken)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccessPolicyToken) DeepCopyObject added in v0.11.0

func (in *AccessPolicyToken) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AccessPolicyToken) GetCondition added in v0.11.0

func (mg *AccessPolicyToken) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this AccessPolicyToken.

func (*AccessPolicyToken) GetConnectionDetailsMapping added in v0.11.0

func (tr *AccessPolicyToken) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this AccessPolicyToken

func (*AccessPolicyToken) GetDeletionPolicy added in v0.11.0

func (mg *AccessPolicyToken) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this AccessPolicyToken.

func (*AccessPolicyToken) GetID added in v0.11.0

func (tr *AccessPolicyToken) GetID() string

GetID returns ID of underlying Terraform resource of this AccessPolicyToken

func (*AccessPolicyToken) GetInitParameters added in v0.11.0

func (tr *AccessPolicyToken) GetInitParameters() (map[string]any, error)

GetInitParameters of this AccessPolicyToken

func (*AccessPolicyToken) GetManagementPolicies added in v0.11.0

func (mg *AccessPolicyToken) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this AccessPolicyToken.

func (*AccessPolicyToken) GetMergedParameters added in v0.11.0

func (tr *AccessPolicyToken) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this AccessPolicyToken

func (*AccessPolicyToken) GetObservation added in v0.11.0

func (tr *AccessPolicyToken) GetObservation() (map[string]any, error)

GetObservation of this AccessPolicyToken

func (*AccessPolicyToken) GetParameters added in v0.11.0

func (tr *AccessPolicyToken) GetParameters() (map[string]any, error)

GetParameters of this AccessPolicyToken

func (*AccessPolicyToken) GetProviderConfigReference added in v0.11.0

func (mg *AccessPolicyToken) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this AccessPolicyToken.

func (*AccessPolicyToken) GetPublishConnectionDetailsTo added in v0.11.0

func (mg *AccessPolicyToken) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this AccessPolicyToken.

func (*AccessPolicyToken) GetTerraformResourceType added in v0.11.0

func (mg *AccessPolicyToken) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this AccessPolicyToken

func (*AccessPolicyToken) GetTerraformSchemaVersion added in v0.11.0

func (tr *AccessPolicyToken) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*AccessPolicyToken) GetWriteConnectionSecretToReference added in v0.11.0

func (mg *AccessPolicyToken) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this AccessPolicyToken.

func (*AccessPolicyToken) Hub added in v0.11.0

func (tr *AccessPolicyToken) Hub()

Hub marks this type as a conversion hub.

func (*AccessPolicyToken) LateInitialize added in v0.11.0

func (tr *AccessPolicyToken) LateInitialize(attrs []byte) (bool, error)

LateInitialize this AccessPolicyToken using its observed tfState. returns True if there are any spec changes for the resource.

func (*AccessPolicyToken) ResolveReferences added in v0.11.0

func (mg *AccessPolicyToken) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this AccessPolicyToken.

func (*AccessPolicyToken) SetConditions added in v0.11.0

func (mg *AccessPolicyToken) SetConditions(c ...xpv1.Condition)

SetConditions of this AccessPolicyToken.

func (*AccessPolicyToken) SetDeletionPolicy added in v0.11.0

func (mg *AccessPolicyToken) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this AccessPolicyToken.

func (*AccessPolicyToken) SetManagementPolicies added in v0.11.0

func (mg *AccessPolicyToken) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this AccessPolicyToken.

func (*AccessPolicyToken) SetObservation added in v0.11.0

func (tr *AccessPolicyToken) SetObservation(obs map[string]any) error

SetObservation for this AccessPolicyToken

func (*AccessPolicyToken) SetParameters added in v0.11.0

func (tr *AccessPolicyToken) SetParameters(params map[string]any) error

SetParameters for this AccessPolicyToken

func (*AccessPolicyToken) SetProviderConfigReference added in v0.11.0

func (mg *AccessPolicyToken) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this AccessPolicyToken.

func (*AccessPolicyToken) SetPublishConnectionDetailsTo added in v0.11.0

func (mg *AccessPolicyToken) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this AccessPolicyToken.

func (*AccessPolicyToken) SetWriteConnectionSecretToReference added in v0.11.0

func (mg *AccessPolicyToken) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this AccessPolicyToken.

type AccessPolicyTokenInitParameters added in v0.11.0

type AccessPolicyTokenInitParameters struct {

	// (String) ID of the access policy for which to create a token.
	// ID of the access policy for which to create a token.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.AccessPolicy
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.ComputedFieldExtractor("policyId")
	// +crossplane:generate:reference:refFieldName=AccessPolicyRef
	// +crossplane:generate:reference:selectorFieldName=AccessPolicySelector
	AccessPolicyID *string `json:"accessPolicyId,omitempty" tf:"access_policy_id,omitempty"`

	// Reference to a AccessPolicy in cloud to populate accessPolicyId.
	// +kubebuilder:validation:Optional
	AccessPolicyRef *v1.Reference `json:"accessPolicyRef,omitempty" tf:"-"`

	// Selector for a AccessPolicy in cloud to populate accessPolicyId.
	// +kubebuilder:validation:Optional
	AccessPolicySelector *v1.Selector `json:"accessPolicySelector,omitempty" tf:"-"`

	// (String) Display name of the access policy token. Defaults to the name.
	// Display name of the access policy token. Defaults to the name.
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// (String) Expiration date of the access policy token. Does not expire by default.
	// Expiration date of the access policy token. Does not expire by default.
	ExpiresAt *string `json:"expiresAt,omitempty" tf:"expires_at,omitempty"`

	// (String) Name of the access policy token.
	// Name of the access policy token.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	Region *string `json:"region,omitempty" tf:"region,omitempty"`
}

func (*AccessPolicyTokenInitParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyTokenInitParameters.

func (*AccessPolicyTokenInitParameters) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyTokenList added in v0.11.0

type AccessPolicyTokenList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AccessPolicyToken `json:"items"`
}

AccessPolicyTokenList contains a list of AccessPolicyTokens

func (*AccessPolicyTokenList) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyTokenList.

func (*AccessPolicyTokenList) DeepCopyInto added in v0.11.0

func (in *AccessPolicyTokenList) DeepCopyInto(out *AccessPolicyTokenList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AccessPolicyTokenList) DeepCopyObject added in v0.11.0

func (in *AccessPolicyTokenList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AccessPolicyTokenList) GetItems added in v0.11.0

func (l *AccessPolicyTokenList) GetItems() []resource.Managed

GetItems of this AccessPolicyTokenList.

type AccessPolicyTokenObservation added in v0.11.0

type AccessPolicyTokenObservation struct {

	// (String) ID of the access policy for which to create a token.
	// ID of the access policy for which to create a token.
	AccessPolicyID *string `json:"accessPolicyId,omitempty" tf:"access_policy_id,omitempty"`

	// (String) Creation date of the access policy token.
	// Creation date of the access policy token.
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// (String) Display name of the access policy token. Defaults to the name.
	// Display name of the access policy token. Defaults to the name.
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// (String) Expiration date of the access policy token. Does not expire by default.
	// Expiration date of the access policy token. Does not expire by default.
	ExpiresAt *string `json:"expiresAt,omitempty" tf:"expires_at,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String) Name of the access policy token.
	// Name of the access policy token.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// (String) Last update date of the access policy token.
	// Last update date of the access policy token.
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"`
}

func (*AccessPolicyTokenObservation) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyTokenObservation.

func (*AccessPolicyTokenObservation) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyTokenParameters added in v0.11.0

type AccessPolicyTokenParameters struct {

	// (String) ID of the access policy for which to create a token.
	// ID of the access policy for which to create a token.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.AccessPolicy
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.ComputedFieldExtractor("policyId")
	// +crossplane:generate:reference:refFieldName=AccessPolicyRef
	// +crossplane:generate:reference:selectorFieldName=AccessPolicySelector
	// +kubebuilder:validation:Optional
	AccessPolicyID *string `json:"accessPolicyId,omitempty" tf:"access_policy_id,omitempty"`

	// Reference to a AccessPolicy in cloud to populate accessPolicyId.
	// +kubebuilder:validation:Optional
	AccessPolicyRef *v1.Reference `json:"accessPolicyRef,omitempty" tf:"-"`

	// Selector for a AccessPolicy in cloud to populate accessPolicyId.
	// +kubebuilder:validation:Optional
	AccessPolicySelector *v1.Selector `json:"accessPolicySelector,omitempty" tf:"-"`

	// (String) Display name of the access policy token. Defaults to the name.
	// Display name of the access policy token. Defaults to the name.
	// +kubebuilder:validation:Optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// (String) Expiration date of the access policy token. Does not expire by default.
	// Expiration date of the access policy token. Does not expire by default.
	// +kubebuilder:validation:Optional
	ExpiresAt *string `json:"expiresAt,omitempty" tf:"expires_at,omitempty"`

	// (String) Name of the access policy token.
	// Name of the access policy token.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`
}

func (*AccessPolicyTokenParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyTokenParameters.

func (*AccessPolicyTokenParameters) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyTokenSpec added in v0.11.0

type AccessPolicyTokenSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     AccessPolicyTokenParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider AccessPolicyTokenInitParameters `json:"initProvider,omitempty"`
}

AccessPolicyTokenSpec defines the desired state of AccessPolicyToken

func (*AccessPolicyTokenSpec) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyTokenSpec.

func (*AccessPolicyTokenSpec) DeepCopyInto added in v0.11.0

func (in *AccessPolicyTokenSpec) DeepCopyInto(out *AccessPolicyTokenSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AccessPolicyTokenStatus added in v0.11.0

type AccessPolicyTokenStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        AccessPolicyTokenObservation `json:"atProvider,omitempty"`
}

AccessPolicyTokenStatus defines the observed state of AccessPolicyToken.

func (*AccessPolicyTokenStatus) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessPolicyTokenStatus.

func (*AccessPolicyTokenStatus) DeepCopyInto added in v0.11.0

func (in *AccessPolicyTokenStatus) DeepCopyInto(out *AccessPolicyTokenStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LabelPolicyInitParameters added in v0.11.0

type LabelPolicyInitParameters struct {

	// (String) The label selector to match in metrics or logs query. Should be in PromQL or LogQL format.
	// The label selector to match in metrics or logs query. Should be in PromQL or LogQL format.
	Selector *string `json:"selector,omitempty" tf:"selector,omitempty"`
}

func (*LabelPolicyInitParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelPolicyInitParameters.

func (*LabelPolicyInitParameters) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LabelPolicyObservation added in v0.11.0

type LabelPolicyObservation struct {

	// (String) The label selector to match in metrics or logs query. Should be in PromQL or LogQL format.
	// The label selector to match in metrics or logs query. Should be in PromQL or LogQL format.
	Selector *string `json:"selector,omitempty" tf:"selector,omitempty"`
}

func (*LabelPolicyObservation) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelPolicyObservation.

func (*LabelPolicyObservation) DeepCopyInto added in v0.11.0

func (in *LabelPolicyObservation) DeepCopyInto(out *LabelPolicyObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LabelPolicyParameters added in v0.11.0

type LabelPolicyParameters struct {

	// (String) The label selector to match in metrics or logs query. Should be in PromQL or LogQL format.
	// The label selector to match in metrics or logs query. Should be in PromQL or LogQL format.
	// +kubebuilder:validation:Optional
	Selector *string `json:"selector" tf:"selector,omitempty"`
}

func (*LabelPolicyParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelPolicyParameters.

func (*LabelPolicyParameters) DeepCopyInto added in v0.11.0

func (in *LabelPolicyParameters) DeepCopyInto(out *LabelPolicyParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PluginInstallation added in v0.11.0

type PluginInstallation struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.slug) || (has(self.initProvider) && has(self.initProvider.slug))",message="spec.forProvider.slug is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter"
	Spec   PluginInstallationSpec   `json:"spec"`
	Status PluginInstallationStatus `json:"status,omitempty"`
}

PluginInstallation is the Schema for the PluginInstallations API. Manages Grafana Cloud Plugin Installations. Plugin Catalog https://grafana.com/grafana/plugins/ Required access policy scopes: stack-plugins:readstack-plugins:writestack-plugins:delete +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*PluginInstallation) DeepCopy added in v0.11.0

func (in *PluginInstallation) DeepCopy() *PluginInstallation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInstallation.

func (*PluginInstallation) DeepCopyInto added in v0.11.0

func (in *PluginInstallation) DeepCopyInto(out *PluginInstallation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PluginInstallation) DeepCopyObject added in v0.11.0

func (in *PluginInstallation) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PluginInstallation) GetCondition added in v0.11.0

func (mg *PluginInstallation) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this PluginInstallation.

func (*PluginInstallation) GetConnectionDetailsMapping added in v0.11.0

func (tr *PluginInstallation) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this PluginInstallation

func (*PluginInstallation) GetDeletionPolicy added in v0.11.0

func (mg *PluginInstallation) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this PluginInstallation.

func (*PluginInstallation) GetID added in v0.11.0

func (tr *PluginInstallation) GetID() string

GetID returns ID of underlying Terraform resource of this PluginInstallation

func (*PluginInstallation) GetInitParameters added in v0.11.0

func (tr *PluginInstallation) GetInitParameters() (map[string]any, error)

GetInitParameters of this PluginInstallation

func (*PluginInstallation) GetManagementPolicies added in v0.11.0

func (mg *PluginInstallation) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this PluginInstallation.

func (*PluginInstallation) GetMergedParameters added in v0.11.0

func (tr *PluginInstallation) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this PluginInstallation

func (*PluginInstallation) GetObservation added in v0.11.0

func (tr *PluginInstallation) GetObservation() (map[string]any, error)

GetObservation of this PluginInstallation

func (*PluginInstallation) GetParameters added in v0.11.0

func (tr *PluginInstallation) GetParameters() (map[string]any, error)

GetParameters of this PluginInstallation

func (*PluginInstallation) GetProviderConfigReference added in v0.11.0

func (mg *PluginInstallation) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this PluginInstallation.

func (*PluginInstallation) GetPublishConnectionDetailsTo added in v0.11.0

func (mg *PluginInstallation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this PluginInstallation.

func (*PluginInstallation) GetTerraformResourceType added in v0.11.0

func (mg *PluginInstallation) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this PluginInstallation

func (*PluginInstallation) GetTerraformSchemaVersion added in v0.11.0

func (tr *PluginInstallation) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*PluginInstallation) GetWriteConnectionSecretToReference added in v0.11.0

func (mg *PluginInstallation) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this PluginInstallation.

func (*PluginInstallation) Hub added in v0.11.0

func (tr *PluginInstallation) Hub()

Hub marks this type as a conversion hub.

func (*PluginInstallation) LateInitialize added in v0.11.0

func (tr *PluginInstallation) LateInitialize(attrs []byte) (bool, error)

LateInitialize this PluginInstallation using its observed tfState. returns True if there are any spec changes for the resource.

func (*PluginInstallation) ResolveReferences added in v0.11.0

func (mg *PluginInstallation) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this PluginInstallation.

func (*PluginInstallation) SetConditions added in v0.11.0

func (mg *PluginInstallation) SetConditions(c ...xpv1.Condition)

SetConditions of this PluginInstallation.

func (*PluginInstallation) SetDeletionPolicy added in v0.11.0

func (mg *PluginInstallation) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this PluginInstallation.

func (*PluginInstallation) SetManagementPolicies added in v0.11.0

func (mg *PluginInstallation) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this PluginInstallation.

func (*PluginInstallation) SetObservation added in v0.11.0

func (tr *PluginInstallation) SetObservation(obs map[string]any) error

SetObservation for this PluginInstallation

func (*PluginInstallation) SetParameters added in v0.11.0

func (tr *PluginInstallation) SetParameters(params map[string]any) error

SetParameters for this PluginInstallation

func (*PluginInstallation) SetProviderConfigReference added in v0.11.0

func (mg *PluginInstallation) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this PluginInstallation.

func (*PluginInstallation) SetPublishConnectionDetailsTo added in v0.11.0

func (mg *PluginInstallation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this PluginInstallation.

func (*PluginInstallation) SetWriteConnectionSecretToReference added in v0.11.0

func (mg *PluginInstallation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this PluginInstallation.

type PluginInstallationInitParameters added in v0.11.0

type PluginInstallationInitParameters struct {

	// Reference to a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackRef *v1.Reference `json:"cloudStackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackSelector *v1.Selector `json:"cloudStackSelector,omitempty" tf:"-"`

	// (String) Slug of the plugin to be installed.
	// Slug of the plugin to be installed.
	Slug *string `json:"slug,omitempty" tf:"slug,omitempty"`

	// (String) The stack id to which the plugin should be installed.
	// The stack id to which the plugin should be installed.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("slug")
	// +crossplane:generate:reference:refFieldName=CloudStackRef
	// +crossplane:generate:reference:selectorFieldName=CloudStackSelector
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`

	// (String) Version of the plugin to be installed.
	// Version of the plugin to be installed.
	Version *string `json:"version,omitempty" tf:"version,omitempty"`
}

func (*PluginInstallationInitParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInstallationInitParameters.

func (*PluginInstallationInitParameters) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PluginInstallationList added in v0.11.0

type PluginInstallationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PluginInstallation `json:"items"`
}

PluginInstallationList contains a list of PluginInstallations

func (*PluginInstallationList) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInstallationList.

func (*PluginInstallationList) DeepCopyInto added in v0.11.0

func (in *PluginInstallationList) DeepCopyInto(out *PluginInstallationList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PluginInstallationList) DeepCopyObject added in v0.11.0

func (in *PluginInstallationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PluginInstallationList) GetItems added in v0.11.0

func (l *PluginInstallationList) GetItems() []resource.Managed

GetItems of this PluginInstallationList.

type PluginInstallationObservation added in v0.11.0

type PluginInstallationObservation struct {

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String) Slug of the plugin to be installed.
	// Slug of the plugin to be installed.
	Slug *string `json:"slug,omitempty" tf:"slug,omitempty"`

	// (String) The stack id to which the plugin should be installed.
	// The stack id to which the plugin should be installed.
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`

	// (String) Version of the plugin to be installed.
	// Version of the plugin to be installed.
	Version *string `json:"version,omitempty" tf:"version,omitempty"`
}

func (*PluginInstallationObservation) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInstallationObservation.

func (*PluginInstallationObservation) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PluginInstallationParameters added in v0.11.0

type PluginInstallationParameters struct {

	// Reference to a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackRef *v1.Reference `json:"cloudStackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackSelector *v1.Selector `json:"cloudStackSelector,omitempty" tf:"-"`

	// (String) Slug of the plugin to be installed.
	// Slug of the plugin to be installed.
	// +kubebuilder:validation:Optional
	Slug *string `json:"slug,omitempty" tf:"slug,omitempty"`

	// (String) The stack id to which the plugin should be installed.
	// The stack id to which the plugin should be installed.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("slug")
	// +crossplane:generate:reference:refFieldName=CloudStackRef
	// +crossplane:generate:reference:selectorFieldName=CloudStackSelector
	// +kubebuilder:validation:Optional
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`

	// (String) Version of the plugin to be installed.
	// Version of the plugin to be installed.
	// +kubebuilder:validation:Optional
	Version *string `json:"version,omitempty" tf:"version,omitempty"`
}

func (*PluginInstallationParameters) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInstallationParameters.

func (*PluginInstallationParameters) DeepCopyInto added in v0.11.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PluginInstallationSpec added in v0.11.0

type PluginInstallationSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     PluginInstallationParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider PluginInstallationInitParameters `json:"initProvider,omitempty"`
}

PluginInstallationSpec defines the desired state of PluginInstallation

func (*PluginInstallationSpec) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInstallationSpec.

func (*PluginInstallationSpec) DeepCopyInto added in v0.11.0

func (in *PluginInstallationSpec) DeepCopyInto(out *PluginInstallationSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PluginInstallationStatus added in v0.11.0

type PluginInstallationStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        PluginInstallationObservation `json:"atProvider,omitempty"`
}

PluginInstallationStatus defines the observed state of PluginInstallation.

func (*PluginInstallationStatus) DeepCopy added in v0.11.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginInstallationStatus.

func (*PluginInstallationStatus) DeepCopyInto added in v0.11.0

func (in *PluginInstallationStatus) DeepCopyInto(out *PluginInstallationStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RealmInitParameters added in v0.11.0

type RealmInitParameters struct {

	// (String) The identifier of the org or stack. For orgs, this is the slug, for stacks, this is the stack ID.
	// The identifier of the org or stack. For orgs, this is the slug, for stacks, this is the stack ID.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:refFieldName=StackRef
	// +crossplane:generate:reference:selectorFieldName=StackSelector
	Identifier *string `json:"identifier,omitempty" tf:"identifier,omitempty"`

	// (Block Set) (see below for nested schema)
	LabelPolicy []LabelPolicyInitParameters `json:"labelPolicy,omitempty" tf:"label_policy,omitempty"`

	// Reference to a Stack in cloud to populate identifier.
	// +kubebuilder:validation:Optional
	StackRef *v1.Reference `json:"stackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate identifier.
	// +kubebuilder:validation:Optional
	StackSelector *v1.Selector `json:"stackSelector,omitempty" tf:"-"`

	// (String) Whether a policy applies to a Cloud org or a specific stack. Should be one of org or stack.
	// Whether a policy applies to a Cloud org or a specific stack. Should be one of `org` or `stack`.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*RealmInitParameters) DeepCopy added in v0.11.0

func (in *RealmInitParameters) DeepCopy() *RealmInitParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RealmInitParameters.

func (*RealmInitParameters) DeepCopyInto added in v0.11.0

func (in *RealmInitParameters) DeepCopyInto(out *RealmInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RealmObservation added in v0.11.0

type RealmObservation struct {

	// (String) The identifier of the org or stack. For orgs, this is the slug, for stacks, this is the stack ID.
	// The identifier of the org or stack. For orgs, this is the slug, for stacks, this is the stack ID.
	Identifier *string `json:"identifier,omitempty" tf:"identifier,omitempty"`

	// (Block Set) (see below for nested schema)
	LabelPolicy []LabelPolicyObservation `json:"labelPolicy,omitempty" tf:"label_policy,omitempty"`

	// (String) Whether a policy applies to a Cloud org or a specific stack. Should be one of org or stack.
	// Whether a policy applies to a Cloud org or a specific stack. Should be one of `org` or `stack`.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*RealmObservation) DeepCopy added in v0.11.0

func (in *RealmObservation) DeepCopy() *RealmObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RealmObservation.

func (*RealmObservation) DeepCopyInto added in v0.11.0

func (in *RealmObservation) DeepCopyInto(out *RealmObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RealmParameters added in v0.11.0

type RealmParameters struct {

	// (String) The identifier of the org or stack. For orgs, this is the slug, for stacks, this is the stack ID.
	// The identifier of the org or stack. For orgs, this is the slug, for stacks, this is the stack ID.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:refFieldName=StackRef
	// +crossplane:generate:reference:selectorFieldName=StackSelector
	// +kubebuilder:validation:Optional
	Identifier *string `json:"identifier,omitempty" tf:"identifier,omitempty"`

	// (Block Set) (see below for nested schema)
	// +kubebuilder:validation:Optional
	LabelPolicy []LabelPolicyParameters `json:"labelPolicy,omitempty" tf:"label_policy,omitempty"`

	// Reference to a Stack in cloud to populate identifier.
	// +kubebuilder:validation:Optional
	StackRef *v1.Reference `json:"stackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate identifier.
	// +kubebuilder:validation:Optional
	StackSelector *v1.Selector `json:"stackSelector,omitempty" tf:"-"`

	// (String) Whether a policy applies to a Cloud org or a specific stack. Should be one of org or stack.
	// Whether a policy applies to a Cloud org or a specific stack. Should be one of `org` or `stack`.
	// +kubebuilder:validation:Optional
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*RealmParameters) DeepCopy added in v0.11.0

func (in *RealmParameters) DeepCopy() *RealmParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RealmParameters.

func (*RealmParameters) DeepCopyInto added in v0.11.0

func (in *RealmParameters) DeepCopyInto(out *RealmParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Stack

type Stack struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.slug) || (has(self.initProvider) && has(self.initProvider.slug))",message="spec.forProvider.slug is a required parameter"
	Spec   StackSpec   `json:"spec"`
	Status StackStatus `json:"status,omitempty"`
}

Stack is the Schema for the Stacks API. Official documentation https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#stacks/ Required access policy scopes: stacks:readstacks:writestacks:delete +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*Stack) DeepCopy

func (in *Stack) DeepCopy() *Stack

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stack.

func (*Stack) DeepCopyInto

func (in *Stack) DeepCopyInto(out *Stack)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Stack) DeepCopyObject

func (in *Stack) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Stack) GetCondition

func (mg *Stack) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Stack.

func (*Stack) GetConnectionDetailsMapping

func (tr *Stack) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Stack

func (*Stack) GetDeletionPolicy

func (mg *Stack) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Stack.

func (*Stack) GetID

func (tr *Stack) GetID() string

GetID returns ID of underlying Terraform resource of this Stack

func (*Stack) GetInitParameters added in v0.8.0

func (tr *Stack) GetInitParameters() (map[string]any, error)

GetInitParameters of this Stack

func (*Stack) GetManagementPolicies added in v0.8.0

func (mg *Stack) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Stack.

func (*Stack) GetMergedParameters added in v0.10.1

func (tr *Stack) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Stack

func (*Stack) GetObservation

func (tr *Stack) GetObservation() (map[string]any, error)

GetObservation of this Stack

func (*Stack) GetParameters

func (tr *Stack) GetParameters() (map[string]any, error)

GetParameters of this Stack

func (*Stack) GetProviderConfigReference

func (mg *Stack) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Stack.

func (*Stack) GetPublishConnectionDetailsTo

func (mg *Stack) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Stack.

func (*Stack) GetTerraformResourceType

func (mg *Stack) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Stack

func (*Stack) GetTerraformSchemaVersion

func (tr *Stack) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Stack) GetWriteConnectionSecretToReference

func (mg *Stack) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Stack.

func (*Stack) Hub added in v0.10.1

func (tr *Stack) Hub()

Hub marks this type as a conversion hub.

func (*Stack) LateInitialize

func (tr *Stack) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Stack using its observed tfState. returns True if there are any spec changes for the resource.

func (*Stack) SetConditions

func (mg *Stack) SetConditions(c ...xpv1.Condition)

SetConditions of this Stack.

func (*Stack) SetDeletionPolicy

func (mg *Stack) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Stack.

func (*Stack) SetManagementPolicies added in v0.8.0

func (mg *Stack) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Stack.

func (*Stack) SetObservation

func (tr *Stack) SetObservation(obs map[string]any) error

SetObservation for this Stack

func (*Stack) SetParameters

func (tr *Stack) SetParameters(params map[string]any) error

SetParameters for this Stack

func (*Stack) SetProviderConfigReference

func (mg *Stack) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Stack.

func (*Stack) SetPublishConnectionDetailsTo

func (mg *Stack) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Stack.

func (*Stack) SetWriteConnectionSecretToReference

func (mg *Stack) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Stack.

type StackInitParameters added in v0.8.0

type StackInitParameters struct {

	// (String) Description of stack.
	// Description of stack.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// zA-Z0-9/\-.]+$" and stacks cannot have more than 10 labels.
	// A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\\-.]+$" and stacks cannot have more than 10 labels.
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// (String) Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
	// Name of stack. Conventionally matches the url of the instance (e.g. `<stack_slug>.grafana.net`).
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	RegionSlug *string `json:"regionSlug,omitempty" tf:"region_slug,omitempty"`

	// (String) Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
	// Subdomain that the Grafana instance will be available at. Setting slug to `<stack_slug>` will make the instance available at `https://<stack_slug>.grafana.net`.
	Slug *string `json:"slug,omitempty" tf:"slug,omitempty"`

	// (String) Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
	// Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// (Boolean) Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
	// Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
	WaitForReadiness *bool `json:"waitForReadiness,omitempty" tf:"wait_for_readiness,omitempty"`

	// (String) How long to wait for readiness (if enabled). Defaults to 5m0s.
	// How long to wait for readiness (if enabled). Defaults to `5m0s`.
	WaitForReadinessTimeout *string `json:"waitForReadinessTimeout,omitempty" tf:"wait_for_readiness_timeout,omitempty"`
}

func (*StackInitParameters) DeepCopy added in v0.8.0

func (in *StackInitParameters) DeepCopy() *StackInitParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackInitParameters.

func (*StackInitParameters) DeepCopyInto added in v0.8.0

func (in *StackInitParameters) DeepCopyInto(out *StackInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackList

type StackList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Stack `json:"items"`
}

StackList contains a list of Stacks

func (*StackList) DeepCopy

func (in *StackList) DeepCopy() *StackList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackList.

func (*StackList) DeepCopyInto

func (in *StackList) DeepCopyInto(out *StackList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StackList) DeepCopyObject

func (in *StackList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*StackList) GetItems

func (l *StackList) GetItems() []resource.Managed

GetItems of this StackList.

type StackObservation

type StackObservation struct {

	// (String) Name of the Alertmanager instance configured for this stack.
	// Name of the Alertmanager instance configured for this stack.
	AlertmanagerName *string `json:"alertmanagerName,omitempty" tf:"alertmanager_name,omitempty"`

	// (String) Status of the Alertmanager instance configured for this stack.
	// Status of the Alertmanager instance configured for this stack.
	AlertmanagerStatus *string `json:"alertmanagerStatus,omitempty" tf:"alertmanager_status,omitempty"`

	// (String) Base URL of the Alertmanager instance configured for this stack.
	// Base URL of the Alertmanager instance configured for this stack.
	AlertmanagerURL *string `json:"alertmanagerUrl,omitempty" tf:"alertmanager_url,omitempty"`

	// (Number) User ID of the Alertmanager instance configured for this stack.
	// User ID of the Alertmanager instance configured for this stack.
	AlertmanagerUserID *float64 `json:"alertmanagerUserId,omitempty" tf:"alertmanager_user_id,omitempty"`

	// (String) Description of stack.
	// Description of stack.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String)
	GraphiteName *string `json:"graphiteName,omitempty" tf:"graphite_name,omitempty"`

	// (String)
	GraphiteStatus *string `json:"graphiteStatus,omitempty" tf:"graphite_status,omitempty"`

	// (String)
	GraphiteURL *string `json:"graphiteUrl,omitempty" tf:"graphite_url,omitempty"`

	// (Number)
	GraphiteUserID *float64 `json:"graphiteUserId,omitempty" tf:"graphite_user_id,omitempty"`

	// (String) The stack id assigned to this stack by Grafana.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// zA-Z0-9/\-.]+$" and stacks cannot have more than 10 labels.
	// A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\\-.]+$" and stacks cannot have more than 10 labels.
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// (String)
	LogsName *string `json:"logsName,omitempty" tf:"logs_name,omitempty"`

	// (String)
	LogsStatus *string `json:"logsStatus,omitempty" tf:"logs_status,omitempty"`

	// (String)
	LogsURL *string `json:"logsUrl,omitempty" tf:"logs_url,omitempty"`

	// (Number)
	LogsUserID *float64 `json:"logsUserId,omitempty" tf:"logs_user_id,omitempty"`

	// (String) Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
	// Name of stack. Conventionally matches the url of the instance (e.g. `<stack_slug>.grafana.net`).
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number) Organization id to assign to this stack.
	// Organization id to assign to this stack.
	OrgID *float64 `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (String) Organization name to assign to this stack.
	// Organization name to assign to this stack.
	OrgName *string `json:"orgName,omitempty" tf:"org_name,omitempty"`

	// (String) Organization slug to assign to this stack.
	// Organization slug to assign to this stack.
	OrgSlug *string `json:"orgSlug,omitempty" tf:"org_slug,omitempty"`

	// cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
	// Base URL of the OTLP instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
	OtlpURL *string `json:"otlpUrl,omitempty" tf:"otlp_url,omitempty"`

	// (String)
	ProfilesName *string `json:"profilesName,omitempty" tf:"profiles_name,omitempty"`

	// (String)
	ProfilesStatus *string `json:"profilesStatus,omitempty" tf:"profiles_status,omitempty"`

	// (String)
	ProfilesURL *string `json:"profilesUrl,omitempty" tf:"profiles_url,omitempty"`

	// (Number)
	ProfilesUserID *float64 `json:"profilesUserId,omitempty" tf:"profiles_user_id,omitempty"`

	// (String) Prometheus name for this instance.
	// Prometheus name for this instance.
	PrometheusName *string `json:"prometheusName,omitempty" tf:"prometheus_name,omitempty"`

	// (String) Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
	// Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
	PrometheusRemoteEndpoint *string `json:"prometheusRemoteEndpoint,omitempty" tf:"prometheus_remote_endpoint,omitempty"`

	// (String) Use this URL to send prometheus metrics to Grafana cloud
	// Use this URL to send prometheus metrics to Grafana cloud
	PrometheusRemoteWriteEndpoint *string `json:"prometheusRemoteWriteEndpoint,omitempty" tf:"prometheus_remote_write_endpoint,omitempty"`

	// (String) Prometheus status for this instance.
	// Prometheus status for this instance.
	PrometheusStatus *string `json:"prometheusStatus,omitempty" tf:"prometheus_status,omitempty"`

	// (String) Prometheus url for this instance.
	// Prometheus url for this instance.
	PrometheusURL *string `json:"prometheusUrl,omitempty" tf:"prometheus_url,omitempty"`

	// (Number) Prometheus user ID. Used for e.g. remote_write.
	// Prometheus user ID. Used for e.g. remote_write.
	PrometheusUserID *float64 `json:"prometheusUserId,omitempty" tf:"prometheus_user_id,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	RegionSlug *string `json:"regionSlug,omitempty" tf:"region_slug,omitempty"`

	// (String) Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
	// Subdomain that the Grafana instance will be available at. Setting slug to `<stack_slug>` will make the instance available at `https://<stack_slug>.grafana.net`.
	Slug *string `json:"slug,omitempty" tf:"slug,omitempty"`

	// (String) Status of the stack.
	// Status of the stack.
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	// (String)
	TracesName *string `json:"tracesName,omitempty" tf:"traces_name,omitempty"`

	// (String)
	TracesStatus *string `json:"tracesStatus,omitempty" tf:"traces_status,omitempty"`

	// (String) Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append /tempo to the URL.
	// Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL.
	TracesURL *string `json:"tracesUrl,omitempty" tf:"traces_url,omitempty"`

	// (Number)
	TracesUserID *float64 `json:"tracesUserId,omitempty" tf:"traces_user_id,omitempty"`

	// (String) Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
	// Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// (Boolean) Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
	// Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
	WaitForReadiness *bool `json:"waitForReadiness,omitempty" tf:"wait_for_readiness,omitempty"`

	// (String) How long to wait for readiness (if enabled). Defaults to 5m0s.
	// How long to wait for readiness (if enabled). Defaults to `5m0s`.
	WaitForReadinessTimeout *string `json:"waitForReadinessTimeout,omitempty" tf:"wait_for_readiness_timeout,omitempty"`
}

func (*StackObservation) DeepCopy

func (in *StackObservation) DeepCopy() *StackObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackObservation.

func (*StackObservation) DeepCopyInto

func (in *StackObservation) DeepCopyInto(out *StackObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackParameters

type StackParameters struct {

	// (String) Description of stack.
	// Description of stack.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// zA-Z0-9/\-.]+$" and stacks cannot have more than 10 labels.
	// A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\\-.]+$" and stacks cannot have more than 10 labels.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// (String) Name of stack. Conventionally matches the url of the instance (e.g. <stack_slug>.grafana.net).
	// Name of stack. Conventionally matches the url of the instance (e.g. `<stack_slug>.grafana.net`).
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
	// +kubebuilder:validation:Optional
	RegionSlug *string `json:"regionSlug,omitempty" tf:"region_slug,omitempty"`

	// (String) Subdomain that the Grafana instance will be available at. Setting slug to <stack_slug> will make the instance available at https://<stack_slug>.grafana.net.
	// Subdomain that the Grafana instance will be available at. Setting slug to `<stack_slug>` will make the instance available at `https://<stack_slug>.grafana.net`.
	// +kubebuilder:validation:Optional
	Slug *string `json:"slug,omitempty" tf:"slug,omitempty"`

	// (String) Custom URL for the Grafana instance. Must have a CNAME setup to point to .grafana.net before creating the stack
	// Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
	// +kubebuilder:validation:Optional
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// (Boolean) Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to true.
	// Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
	// +kubebuilder:validation:Optional
	WaitForReadiness *bool `json:"waitForReadiness,omitempty" tf:"wait_for_readiness,omitempty"`

	// (String) How long to wait for readiness (if enabled). Defaults to 5m0s.
	// How long to wait for readiness (if enabled). Defaults to `5m0s`.
	// +kubebuilder:validation:Optional
	WaitForReadinessTimeout *string `json:"waitForReadinessTimeout,omitempty" tf:"wait_for_readiness_timeout,omitempty"`
}

func (*StackParameters) DeepCopy

func (in *StackParameters) DeepCopy() *StackParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackParameters.

func (*StackParameters) DeepCopyInto

func (in *StackParameters) DeepCopyInto(out *StackParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccount added in v0.7.0

type StackServiceAccount struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.role) || (has(self.initProvider) && has(self.initProvider.role))",message="spec.forProvider.role is a required parameter"
	Spec   StackServiceAccountSpec   `json:"spec"`
	Status StackServiceAccountStatus `json:"status,omitempty"`
}

StackServiceAccount is the Schema for the StackServiceAccounts API. Manages service accounts of a Grafana Cloud stack using the Cloud API This can be used to bootstrap a management service account for a new stack Official documentation https://grafana.com/docs/grafana/latest/administration/service-accounts/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api Required access policy scopes: stacks:readstack-service-accounts:write +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*StackServiceAccount) DeepCopy added in v0.7.0

func (in *StackServiceAccount) DeepCopy() *StackServiceAccount

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccount.

func (*StackServiceAccount) DeepCopyInto added in v0.7.0

func (in *StackServiceAccount) DeepCopyInto(out *StackServiceAccount)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StackServiceAccount) DeepCopyObject added in v0.7.0

func (in *StackServiceAccount) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*StackServiceAccount) GetCondition added in v0.7.0

func (mg *StackServiceAccount) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this StackServiceAccount.

func (*StackServiceAccount) GetConnectionDetailsMapping added in v0.7.0

func (tr *StackServiceAccount) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this StackServiceAccount

func (*StackServiceAccount) GetDeletionPolicy added in v0.7.0

func (mg *StackServiceAccount) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this StackServiceAccount.

func (*StackServiceAccount) GetID added in v0.7.0

func (tr *StackServiceAccount) GetID() string

GetID returns ID of underlying Terraform resource of this StackServiceAccount

func (*StackServiceAccount) GetInitParameters added in v0.8.0

func (tr *StackServiceAccount) GetInitParameters() (map[string]any, error)

GetInitParameters of this StackServiceAccount

func (*StackServiceAccount) GetManagementPolicies added in v0.8.0

func (mg *StackServiceAccount) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this StackServiceAccount.

func (*StackServiceAccount) GetMergedParameters added in v0.10.1

func (tr *StackServiceAccount) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this StackServiceAccount

func (*StackServiceAccount) GetObservation added in v0.7.0

func (tr *StackServiceAccount) GetObservation() (map[string]any, error)

GetObservation of this StackServiceAccount

func (*StackServiceAccount) GetParameters added in v0.7.0

func (tr *StackServiceAccount) GetParameters() (map[string]any, error)

GetParameters of this StackServiceAccount

func (*StackServiceAccount) GetProviderConfigReference added in v0.7.0

func (mg *StackServiceAccount) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this StackServiceAccount.

func (*StackServiceAccount) GetPublishConnectionDetailsTo added in v0.7.0

func (mg *StackServiceAccount) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this StackServiceAccount.

func (*StackServiceAccount) GetTerraformResourceType added in v0.7.0

func (mg *StackServiceAccount) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this StackServiceAccount

func (*StackServiceAccount) GetTerraformSchemaVersion added in v0.7.0

func (tr *StackServiceAccount) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*StackServiceAccount) GetWriteConnectionSecretToReference added in v0.7.0

func (mg *StackServiceAccount) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this StackServiceAccount.

func (*StackServiceAccount) Hub added in v0.10.1

func (tr *StackServiceAccount) Hub()

Hub marks this type as a conversion hub.

func (*StackServiceAccount) LateInitialize added in v0.7.0

func (tr *StackServiceAccount) LateInitialize(attrs []byte) (bool, error)

LateInitialize this StackServiceAccount using its observed tfState. returns True if there are any spec changes for the resource.

func (*StackServiceAccount) ResolveReferences added in v0.7.0

func (mg *StackServiceAccount) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this StackServiceAccount.

func (*StackServiceAccount) SetConditions added in v0.7.0

func (mg *StackServiceAccount) SetConditions(c ...xpv1.Condition)

SetConditions of this StackServiceAccount.

func (*StackServiceAccount) SetDeletionPolicy added in v0.7.0

func (mg *StackServiceAccount) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this StackServiceAccount.

func (*StackServiceAccount) SetManagementPolicies added in v0.8.0

func (mg *StackServiceAccount) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this StackServiceAccount.

func (*StackServiceAccount) SetObservation added in v0.7.0

func (tr *StackServiceAccount) SetObservation(obs map[string]any) error

SetObservation for this StackServiceAccount

func (*StackServiceAccount) SetParameters added in v0.7.0

func (tr *StackServiceAccount) SetParameters(params map[string]any) error

SetParameters for this StackServiceAccount

func (*StackServiceAccount) SetProviderConfigReference added in v0.7.0

func (mg *StackServiceAccount) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this StackServiceAccount.

func (*StackServiceAccount) SetPublishConnectionDetailsTo added in v0.7.0

func (mg *StackServiceAccount) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this StackServiceAccount.

func (*StackServiceAccount) SetWriteConnectionSecretToReference added in v0.7.0

func (mg *StackServiceAccount) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this StackServiceAccount.

type StackServiceAccountInitParameters added in v0.8.0

type StackServiceAccountInitParameters struct {

	// Reference to a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackRef *v1.Reference `json:"cloudStackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackSelector *v1.Selector `json:"cloudStackSelector,omitempty" tf:"-"`

	// (Boolean) The disabled status for the service account. Defaults to false.
	// The disabled status for the service account. Defaults to `false`.
	IsDisabled *bool `json:"isDisabled,omitempty" tf:"is_disabled,omitempty"`

	// (String) The name of the service account.
	// The name of the service account.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The basic role of the service account in the organization.
	// The basic role of the service account in the organization.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("slug")
	// +crossplane:generate:reference:refFieldName=CloudStackRef
	// +crossplane:generate:reference:selectorFieldName=CloudStackSelector
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`
}

func (*StackServiceAccountInitParameters) DeepCopy added in v0.8.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountInitParameters.

func (*StackServiceAccountInitParameters) DeepCopyInto added in v0.8.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountList added in v0.7.0

type StackServiceAccountList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []StackServiceAccount `json:"items"`
}

StackServiceAccountList contains a list of StackServiceAccounts

func (*StackServiceAccountList) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountList.

func (*StackServiceAccountList) DeepCopyInto added in v0.7.0

func (in *StackServiceAccountList) DeepCopyInto(out *StackServiceAccountList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StackServiceAccountList) DeepCopyObject added in v0.7.0

func (in *StackServiceAccountList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*StackServiceAccountList) GetItems added in v0.7.0

func (l *StackServiceAccountList) GetItems() []resource.Managed

GetItems of this StackServiceAccountList.

type StackServiceAccountObservation added in v0.7.0

type StackServiceAccountObservation struct {

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (Boolean) The disabled status for the service account. Defaults to false.
	// The disabled status for the service account. Defaults to `false`.
	IsDisabled *bool `json:"isDisabled,omitempty" tf:"is_disabled,omitempty"`

	// (String) The name of the service account.
	// The name of the service account.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The basic role of the service account in the organization.
	// The basic role of the service account in the organization.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String)
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`
}

func (*StackServiceAccountObservation) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountObservation.

func (*StackServiceAccountObservation) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountParameters added in v0.7.0

type StackServiceAccountParameters struct {

	// Reference to a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackRef *v1.Reference `json:"cloudStackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackSelector *v1.Selector `json:"cloudStackSelector,omitempty" tf:"-"`

	// (Boolean) The disabled status for the service account. Defaults to false.
	// The disabled status for the service account. Defaults to `false`.
	// +kubebuilder:validation:Optional
	IsDisabled *bool `json:"isDisabled,omitempty" tf:"is_disabled,omitempty"`

	// (String) The name of the service account.
	// The name of the service account.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The basic role of the service account in the organization.
	// The basic role of the service account in the organization.
	// +kubebuilder:validation:Optional
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("slug")
	// +crossplane:generate:reference:refFieldName=CloudStackRef
	// +crossplane:generate:reference:selectorFieldName=CloudStackSelector
	// +kubebuilder:validation:Optional
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`
}

func (*StackServiceAccountParameters) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountParameters.

func (*StackServiceAccountParameters) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountSpec added in v0.7.0

type StackServiceAccountSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     StackServiceAccountParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider StackServiceAccountInitParameters `json:"initProvider,omitempty"`
}

StackServiceAccountSpec defines the desired state of StackServiceAccount

func (*StackServiceAccountSpec) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountSpec.

func (*StackServiceAccountSpec) DeepCopyInto added in v0.7.0

func (in *StackServiceAccountSpec) DeepCopyInto(out *StackServiceAccountSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountStatus added in v0.7.0

type StackServiceAccountStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        StackServiceAccountObservation `json:"atProvider,omitempty"`
}

StackServiceAccountStatus defines the observed state of StackServiceAccount.

func (*StackServiceAccountStatus) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountStatus.

func (*StackServiceAccountStatus) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountToken added in v0.7.0

type StackServiceAccountToken struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   StackServiceAccountTokenSpec   `json:"spec"`
	Status StackServiceAccountTokenStatus `json:"status,omitempty"`
}

StackServiceAccountToken is the Schema for the StackServiceAccountTokens API. Manages service account tokens of a Grafana Cloud stack using the Cloud API This can be used to bootstrap a management service account token for a new stack Official documentation https://grafana.com/docs/grafana/latest/administration/service-accounts/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/#service-account-api Required access policy scopes: stack-service-accounts:write +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*StackServiceAccountToken) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountToken.

func (*StackServiceAccountToken) DeepCopyInto added in v0.7.0

func (in *StackServiceAccountToken) DeepCopyInto(out *StackServiceAccountToken)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StackServiceAccountToken) DeepCopyObject added in v0.7.0

func (in *StackServiceAccountToken) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*StackServiceAccountToken) GetCondition added in v0.7.0

GetCondition of this StackServiceAccountToken.

func (*StackServiceAccountToken) GetConnectionDetailsMapping added in v0.7.0

func (tr *StackServiceAccountToken) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this StackServiceAccountToken

func (*StackServiceAccountToken) GetDeletionPolicy added in v0.7.0

func (mg *StackServiceAccountToken) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this StackServiceAccountToken.

func (*StackServiceAccountToken) GetID added in v0.7.0

func (tr *StackServiceAccountToken) GetID() string

GetID returns ID of underlying Terraform resource of this StackServiceAccountToken

func (*StackServiceAccountToken) GetInitParameters added in v0.8.0

func (tr *StackServiceAccountToken) GetInitParameters() (map[string]any, error)

GetInitParameters of this StackServiceAccountToken

func (*StackServiceAccountToken) GetManagementPolicies added in v0.8.0

func (mg *StackServiceAccountToken) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this StackServiceAccountToken.

func (*StackServiceAccountToken) GetMergedParameters added in v0.10.1

func (tr *StackServiceAccountToken) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this StackServiceAccountToken

func (*StackServiceAccountToken) GetObservation added in v0.7.0

func (tr *StackServiceAccountToken) GetObservation() (map[string]any, error)

GetObservation of this StackServiceAccountToken

func (*StackServiceAccountToken) GetParameters added in v0.7.0

func (tr *StackServiceAccountToken) GetParameters() (map[string]any, error)

GetParameters of this StackServiceAccountToken

func (*StackServiceAccountToken) GetProviderConfigReference added in v0.7.0

func (mg *StackServiceAccountToken) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this StackServiceAccountToken.

func (*StackServiceAccountToken) GetPublishConnectionDetailsTo added in v0.7.0

func (mg *StackServiceAccountToken) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this StackServiceAccountToken.

func (*StackServiceAccountToken) GetTerraformResourceType added in v0.7.0

func (mg *StackServiceAccountToken) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this StackServiceAccountToken

func (*StackServiceAccountToken) GetTerraformSchemaVersion added in v0.7.0

func (tr *StackServiceAccountToken) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*StackServiceAccountToken) GetWriteConnectionSecretToReference added in v0.7.0

func (mg *StackServiceAccountToken) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this StackServiceAccountToken.

func (*StackServiceAccountToken) Hub added in v0.10.1

func (tr *StackServiceAccountToken) Hub()

Hub marks this type as a conversion hub.

func (*StackServiceAccountToken) LateInitialize added in v0.7.0

func (tr *StackServiceAccountToken) LateInitialize(attrs []byte) (bool, error)

LateInitialize this StackServiceAccountToken using its observed tfState. returns True if there are any spec changes for the resource.

func (*StackServiceAccountToken) ResolveReferences added in v0.7.0

func (mg *StackServiceAccountToken) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this StackServiceAccountToken.

func (*StackServiceAccountToken) SetConditions added in v0.7.0

func (mg *StackServiceAccountToken) SetConditions(c ...xpv1.Condition)

SetConditions of this StackServiceAccountToken.

func (*StackServiceAccountToken) SetDeletionPolicy added in v0.7.0

func (mg *StackServiceAccountToken) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this StackServiceAccountToken.

func (*StackServiceAccountToken) SetManagementPolicies added in v0.8.0

func (mg *StackServiceAccountToken) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this StackServiceAccountToken.

func (*StackServiceAccountToken) SetObservation added in v0.7.0

func (tr *StackServiceAccountToken) SetObservation(obs map[string]any) error

SetObservation for this StackServiceAccountToken

func (*StackServiceAccountToken) SetParameters added in v0.7.0

func (tr *StackServiceAccountToken) SetParameters(params map[string]any) error

SetParameters for this StackServiceAccountToken

func (*StackServiceAccountToken) SetProviderConfigReference added in v0.7.0

func (mg *StackServiceAccountToken) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this StackServiceAccountToken.

func (*StackServiceAccountToken) SetPublishConnectionDetailsTo added in v0.7.0

func (mg *StackServiceAccountToken) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this StackServiceAccountToken.

func (*StackServiceAccountToken) SetWriteConnectionSecretToReference added in v0.7.0

func (mg *StackServiceAccountToken) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this StackServiceAccountToken.

type StackServiceAccountTokenInitParameters added in v0.8.0

type StackServiceAccountTokenInitParameters struct {

	// Reference to a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackRef *v1.Reference `json:"cloudStackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackSelector *v1.Selector `json:"cloudStackSelector,omitempty" tf:"-"`

	// (String)
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number)
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,omitempty"`

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.StackServiceAccount
	// +crossplane:generate:reference:refFieldName=ServiceAccountRef
	// +crossplane:generate:reference:selectorFieldName=ServiceAccountSelector
	ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`

	// Reference to a StackServiceAccount in cloud to populate serviceAccountId.
	// +kubebuilder:validation:Optional
	ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`

	// Selector for a StackServiceAccount in cloud to populate serviceAccountId.
	// +kubebuilder:validation:Optional
	ServiceAccountSelector *v1.Selector `json:"serviceAccountSelector,omitempty" tf:"-"`

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("slug")
	// +crossplane:generate:reference:refFieldName=CloudStackRef
	// +crossplane:generate:reference:selectorFieldName=CloudStackSelector
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`
}

func (*StackServiceAccountTokenInitParameters) DeepCopy added in v0.8.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountTokenInitParameters.

func (*StackServiceAccountTokenInitParameters) DeepCopyInto added in v0.8.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountTokenList added in v0.7.0

type StackServiceAccountTokenList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []StackServiceAccountToken `json:"items"`
}

StackServiceAccountTokenList contains a list of StackServiceAccountTokens

func (*StackServiceAccountTokenList) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountTokenList.

func (*StackServiceAccountTokenList) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StackServiceAccountTokenList) DeepCopyObject added in v0.7.0

func (in *StackServiceAccountTokenList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*StackServiceAccountTokenList) GetItems added in v0.7.0

GetItems of this StackServiceAccountTokenList.

type StackServiceAccountTokenObservation added in v0.7.0

type StackServiceAccountTokenObservation struct {

	// (String)
	Expiration *string `json:"expiration,omitempty" tf:"expiration,omitempty"`

	// (Boolean)
	HasExpired *bool `json:"hasExpired,omitempty" tf:"has_expired,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (String)
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number)
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,omitempty"`

	// (String)
	ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`

	// (String)
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`
}

func (*StackServiceAccountTokenObservation) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountTokenObservation.

func (*StackServiceAccountTokenObservation) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountTokenParameters added in v0.7.0

type StackServiceAccountTokenParameters struct {

	// Reference to a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackRef *v1.Reference `json:"cloudStackRef,omitempty" tf:"-"`

	// Selector for a Stack in cloud to populate stackSlug.
	// +kubebuilder:validation:Optional
	CloudStackSelector *v1.Selector `json:"cloudStackSelector,omitempty" tf:"-"`

	// (String)
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number)
	// +kubebuilder:validation:Optional
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,omitempty"`

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.StackServiceAccount
	// +crossplane:generate:reference:refFieldName=ServiceAccountRef
	// +crossplane:generate:reference:selectorFieldName=ServiceAccountSelector
	// +kubebuilder:validation:Optional
	ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`

	// Reference to a StackServiceAccount in cloud to populate serviceAccountId.
	// +kubebuilder:validation:Optional
	ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`

	// Selector for a StackServiceAccount in cloud to populate serviceAccountId.
	// +kubebuilder:validation:Optional
	ServiceAccountSelector *v1.Selector `json:"serviceAccountSelector,omitempty" tf:"-"`

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/cloud/v1alpha1.Stack
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("slug")
	// +crossplane:generate:reference:refFieldName=CloudStackRef
	// +crossplane:generate:reference:selectorFieldName=CloudStackSelector
	// +kubebuilder:validation:Optional
	StackSlug *string `json:"stackSlug,omitempty" tf:"stack_slug,omitempty"`
}

func (*StackServiceAccountTokenParameters) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountTokenParameters.

func (*StackServiceAccountTokenParameters) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountTokenSpec added in v0.7.0

type StackServiceAccountTokenSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     StackServiceAccountTokenParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider StackServiceAccountTokenInitParameters `json:"initProvider,omitempty"`
}

StackServiceAccountTokenSpec defines the desired state of StackServiceAccountToken

func (*StackServiceAccountTokenSpec) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountTokenSpec.

func (*StackServiceAccountTokenSpec) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackServiceAccountTokenStatus added in v0.7.0

type StackServiceAccountTokenStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        StackServiceAccountTokenObservation `json:"atProvider,omitempty"`
}

StackServiceAccountTokenStatus defines the observed state of StackServiceAccountToken.

func (*StackServiceAccountTokenStatus) DeepCopy added in v0.7.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackServiceAccountTokenStatus.

func (*StackServiceAccountTokenStatus) DeepCopyInto added in v0.7.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackSpec

type StackSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     StackParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider StackInitParameters `json:"initProvider,omitempty"`
}

StackSpec defines the desired state of Stack

func (*StackSpec) DeepCopy

func (in *StackSpec) DeepCopy() *StackSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackSpec.

func (*StackSpec) DeepCopyInto

func (in *StackSpec) DeepCopyInto(out *StackSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StackStatus

type StackStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        StackObservation `json:"atProvider,omitempty"`
}

StackStatus defines the observed state of Stack.

func (*StackStatus) DeepCopy

func (in *StackStatus) DeepCopy() *StackStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackStatus.

func (*StackStatus) DeepCopyInto

func (in *StackStatus) DeepCopyInto(out *StackStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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