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=oss.grafana.crossplane.io +versionName=v1alpha1

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	Annotation_Kind             = "Annotation"
	Annotation_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Annotation_Kind}.String()
	Annotation_KindAPIVersion   = Annotation_Kind + "." + CRDGroupVersion.String()
	Annotation_GroupVersionKind = CRDGroupVersion.WithKind(Annotation_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 (
	Dashboard_Kind             = "Dashboard"
	Dashboard_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Dashboard_Kind}.String()
	Dashboard_KindAPIVersion   = Dashboard_Kind + "." + CRDGroupVersion.String()
	Dashboard_GroupVersionKind = CRDGroupVersion.WithKind(Dashboard_Kind)
)

Repository type metadata.

View Source
var (
	DashboardPermission_Kind             = "DashboardPermission"
	DashboardPermission_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: DashboardPermission_Kind}.String()
	DashboardPermission_KindAPIVersion   = DashboardPermission_Kind + "." + CRDGroupVersion.String()
	DashboardPermission_GroupVersionKind = CRDGroupVersion.WithKind(DashboardPermission_Kind)
)

Repository type metadata.

View Source
var (
	DashboardPublic_Kind             = "DashboardPublic"
	DashboardPublic_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: DashboardPublic_Kind}.String()
	DashboardPublic_KindAPIVersion   = DashboardPublic_Kind + "." + CRDGroupVersion.String()
	DashboardPublic_GroupVersionKind = CRDGroupVersion.WithKind(DashboardPublic_Kind)
)

Repository type metadata.

View Source
var (
	DataSource_Kind             = "DataSource"
	DataSource_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: DataSource_Kind}.String()
	DataSource_KindAPIVersion   = DataSource_Kind + "." + CRDGroupVersion.String()
	DataSource_GroupVersionKind = CRDGroupVersion.WithKind(DataSource_Kind)
)

Repository type metadata.

View Source
var (
	Folder_Kind             = "Folder"
	Folder_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Folder_Kind}.String()
	Folder_KindAPIVersion   = Folder_Kind + "." + CRDGroupVersion.String()
	Folder_GroupVersionKind = CRDGroupVersion.WithKind(Folder_Kind)
)

Repository type metadata.

View Source
var (
	FolderPermission_Kind             = "FolderPermission"
	FolderPermission_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: FolderPermission_Kind}.String()
	FolderPermission_KindAPIVersion   = FolderPermission_Kind + "." + CRDGroupVersion.String()
	FolderPermission_GroupVersionKind = CRDGroupVersion.WithKind(FolderPermission_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 (
	LibraryPanel_Kind             = "LibraryPanel"
	LibraryPanel_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: LibraryPanel_Kind}.String()
	LibraryPanel_KindAPIVersion   = LibraryPanel_Kind + "." + CRDGroupVersion.String()
	LibraryPanel_GroupVersionKind = CRDGroupVersion.WithKind(LibraryPanel_Kind)
)

Repository type metadata.

View Source
var (
	Organization_Kind             = "Organization"
	Organization_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Organization_Kind}.String()
	Organization_KindAPIVersion   = Organization_Kind + "." + CRDGroupVersion.String()
	Organization_GroupVersionKind = CRDGroupVersion.WithKind(Organization_Kind)
)

Repository type metadata.

View Source
var (
	OrganizationPreferences_Kind             = "OrganizationPreferences"
	OrganizationPreferences_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: OrganizationPreferences_Kind}.String()
	OrganizationPreferences_KindAPIVersion   = OrganizationPreferences_Kind + "." + CRDGroupVersion.String()
	OrganizationPreferences_GroupVersionKind = CRDGroupVersion.WithKind(OrganizationPreferences_Kind)
)

Repository type metadata.

View Source
var (
	Playlist_Kind             = "Playlist"
	Playlist_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Playlist_Kind}.String()
	Playlist_KindAPIVersion   = Playlist_Kind + "." + CRDGroupVersion.String()
	Playlist_GroupVersionKind = CRDGroupVersion.WithKind(Playlist_Kind)
)

Repository type metadata.

View Source
var (
	ServiceAccount_Kind             = "ServiceAccount"
	ServiceAccount_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ServiceAccount_Kind}.String()
	ServiceAccount_KindAPIVersion   = ServiceAccount_Kind + "." + CRDGroupVersion.String()
	ServiceAccount_GroupVersionKind = CRDGroupVersion.WithKind(ServiceAccount_Kind)
)

Repository type metadata.

View Source
var (
	ServiceAccountPermission_Kind             = "ServiceAccountPermission"
	ServiceAccountPermission_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ServiceAccountPermission_Kind}.String()
	ServiceAccountPermission_KindAPIVersion   = ServiceAccountPermission_Kind + "." + CRDGroupVersion.String()
	ServiceAccountPermission_GroupVersionKind = CRDGroupVersion.WithKind(ServiceAccountPermission_Kind)
)

Repository type metadata.

View Source
var (
	ServiceAccountToken_Kind             = "ServiceAccountToken"
	ServiceAccountToken_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ServiceAccountToken_Kind}.String()
	ServiceAccountToken_KindAPIVersion   = ServiceAccountToken_Kind + "." + CRDGroupVersion.String()
	ServiceAccountToken_GroupVersionKind = CRDGroupVersion.WithKind(ServiceAccountToken_Kind)
)

Repository type metadata.

View Source
var (
	SsoSettings_Kind             = "SsoSettings"
	SsoSettings_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: SsoSettings_Kind}.String()
	SsoSettings_KindAPIVersion   = SsoSettings_Kind + "." + CRDGroupVersion.String()
	SsoSettings_GroupVersionKind = CRDGroupVersion.WithKind(SsoSettings_Kind)
)

Repository type metadata.

View Source
var (
	Team_Kind             = "Team"
	Team_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Team_Kind}.String()
	Team_KindAPIVersion   = Team_Kind + "." + CRDGroupVersion.String()
	Team_GroupVersionKind = CRDGroupVersion.WithKind(Team_Kind)
)

Repository type metadata.

View Source
var (
	User_Kind             = "User"
	User_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: User_Kind}.String()
	User_KindAPIVersion   = User_Kind + "." + CRDGroupVersion.String()
	User_GroupVersionKind = CRDGroupVersion.WithKind(User_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.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. Manages Grafana API Keys. HTTP API https://grafana. +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) ResolveReferences

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

ResolveReferences of this APIKey.

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)
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String)
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (Number)
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,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)
	Expiration *string `json:"expiration,omitempty" tf:"expiration,omitempty"`

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

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (String)
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (Number)
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,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)
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

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

	// (Number)
	// +kubebuilder:validation:Optional
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,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 Annotation added in v0.11.0

type Annotation 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.text) || (has(self.initProvider) && has(self.initProvider.text))",message="spec.forProvider.text is a required parameter"
	Spec   AnnotationSpec   `json:"spec"`
	Status AnnotationStatus `json:"status,omitempty"`
}

Annotation is the Schema for the Annotations API. Official documentation https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/annotate-visualizations/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/annotations/ +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 (*Annotation) DeepCopy added in v0.11.0

func (in *Annotation) DeepCopy() *Annotation

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

func (*Annotation) DeepCopyInto added in v0.11.0

func (in *Annotation) DeepCopyInto(out *Annotation)

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

func (*Annotation) DeepCopyObject added in v0.11.0

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

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

func (*Annotation) GetCondition added in v0.11.0

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

GetCondition of this Annotation.

func (*Annotation) GetConnectionDetailsMapping added in v0.11.0

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

GetConnectionDetailsMapping for this Annotation

func (*Annotation) GetDeletionPolicy added in v0.11.0

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

GetDeletionPolicy of this Annotation.

func (*Annotation) GetID added in v0.11.0

func (tr *Annotation) GetID() string

GetID returns ID of underlying Terraform resource of this Annotation

func (*Annotation) GetInitParameters added in v0.11.0

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

GetInitParameters of this Annotation

func (*Annotation) GetManagementPolicies added in v0.11.0

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

GetManagementPolicies of this Annotation.

func (*Annotation) GetMergedParameters added in v0.11.0

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

GetInitParameters of this Annotation

func (*Annotation) GetObservation added in v0.11.0

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

GetObservation of this Annotation

func (*Annotation) GetParameters added in v0.11.0

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

GetParameters of this Annotation

func (*Annotation) GetProviderConfigReference added in v0.11.0

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

GetProviderConfigReference of this Annotation.

func (*Annotation) GetPublishConnectionDetailsTo added in v0.11.0

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

GetPublishConnectionDetailsTo of this Annotation.

func (*Annotation) GetTerraformResourceType added in v0.11.0

func (mg *Annotation) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Annotation

func (*Annotation) GetTerraformSchemaVersion added in v0.11.0

func (tr *Annotation) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Annotation) GetWriteConnectionSecretToReference added in v0.11.0

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

GetWriteConnectionSecretToReference of this Annotation.

func (*Annotation) Hub added in v0.11.0

func (tr *Annotation) Hub()

Hub marks this type as a conversion hub.

func (*Annotation) LateInitialize added in v0.11.0

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

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

func (*Annotation) ResolveReferences added in v0.11.0

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

ResolveReferences of this Annotation.

func (*Annotation) SetConditions added in v0.11.0

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

SetConditions of this Annotation.

func (*Annotation) SetDeletionPolicy added in v0.11.0

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

SetDeletionPolicy of this Annotation.

func (*Annotation) SetManagementPolicies added in v0.11.0

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

SetManagementPolicies of this Annotation.

func (*Annotation) SetObservation added in v0.11.0

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

SetObservation for this Annotation

func (*Annotation) SetParameters added in v0.11.0

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

SetParameters for this Annotation

func (*Annotation) SetProviderConfigReference added in v0.11.0

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

SetProviderConfigReference of this Annotation.

func (*Annotation) SetPublishConnectionDetailsTo added in v0.11.0

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

SetPublishConnectionDetailsTo of this Annotation.

func (*Annotation) SetWriteConnectionSecretToReference added in v0.11.0

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

SetWriteConnectionSecretToReference of this Annotation.

type AnnotationInitParameters added in v0.11.0

type AnnotationInitParameters struct {

	// Reference to a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardRef *v1.Reference `json:"dashboardRef,omitempty" tf:"-"`

	// Selector for a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardSelector *v1.Selector `json:"dashboardSelector,omitempty" tf:"-"`

	// (String) The ID of the dashboard on which to create the annotation.
	// The ID of the dashboard on which to create the annotation.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Dashboard
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DashboardRef
	// +crossplane:generate:reference:selectorFieldName=DashboardSelector
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Number) The ID of the dashboard panel on which to create the annotation.
	// The ID of the dashboard panel on which to create the annotation.
	PanelID *float64 `json:"panelId,omitempty" tf:"panel_id,omitempty"`

	// (Set of String) The tags to associate with the annotation.
	// The tags to associate with the annotation.
	// +listType=set
	Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// (String) The text to associate with the annotation.
	// The text to associate with the annotation.
	Text *string `json:"text,omitempty" tf:"text,omitempty"`

	// formatted time string indicating the annotation's time.
	// The RFC 3339-formatted time string indicating the annotation's time.
	Time *string `json:"time,omitempty" tf:"time,omitempty"`

	// formatted time string indicating the annotation's end time.
	// The RFC 3339-formatted time string indicating the annotation's end time.
	TimeEnd *string `json:"timeEnd,omitempty" tf:"time_end,omitempty"`
}

func (*AnnotationInitParameters) DeepCopy added in v0.11.0

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

func (*AnnotationInitParameters) DeepCopyInto added in v0.11.0

func (in *AnnotationInitParameters) DeepCopyInto(out *AnnotationInitParameters)

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

type AnnotationList added in v0.11.0

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

AnnotationList contains a list of Annotations

func (*AnnotationList) DeepCopy added in v0.11.0

func (in *AnnotationList) DeepCopy() *AnnotationList

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

func (*AnnotationList) DeepCopyInto added in v0.11.0

func (in *AnnotationList) DeepCopyInto(out *AnnotationList)

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

func (*AnnotationList) DeepCopyObject added in v0.11.0

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

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

func (*AnnotationList) GetItems added in v0.11.0

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

GetItems of this AnnotationList.

type AnnotationObservation added in v0.11.0

type AnnotationObservation struct {

	// (String) The ID of the dashboard on which to create the annotation.
	// The ID of the dashboard on which to create the annotation.
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Number) The ID of the dashboard panel on which to create the annotation.
	// The ID of the dashboard panel on which to create the annotation.
	PanelID *float64 `json:"panelId,omitempty" tf:"panel_id,omitempty"`

	// (Set of String) The tags to associate with the annotation.
	// The tags to associate with the annotation.
	// +listType=set
	Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// (String) The text to associate with the annotation.
	// The text to associate with the annotation.
	Text *string `json:"text,omitempty" tf:"text,omitempty"`

	// formatted time string indicating the annotation's time.
	// The RFC 3339-formatted time string indicating the annotation's time.
	Time *string `json:"time,omitempty" tf:"time,omitempty"`

	// formatted time string indicating the annotation's end time.
	// The RFC 3339-formatted time string indicating the annotation's end time.
	TimeEnd *string `json:"timeEnd,omitempty" tf:"time_end,omitempty"`
}

func (*AnnotationObservation) DeepCopy added in v0.11.0

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

func (*AnnotationObservation) DeepCopyInto added in v0.11.0

func (in *AnnotationObservation) DeepCopyInto(out *AnnotationObservation)

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

type AnnotationParameters added in v0.11.0

type AnnotationParameters struct {

	// Reference to a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardRef *v1.Reference `json:"dashboardRef,omitempty" tf:"-"`

	// Selector for a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardSelector *v1.Selector `json:"dashboardSelector,omitempty" tf:"-"`

	// (String) The ID of the dashboard on which to create the annotation.
	// The ID of the dashboard on which to create the annotation.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Dashboard
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DashboardRef
	// +crossplane:generate:reference:selectorFieldName=DashboardSelector
	// +kubebuilder:validation:Optional
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Number) The ID of the dashboard panel on which to create the annotation.
	// The ID of the dashboard panel on which to create the annotation.
	// +kubebuilder:validation:Optional
	PanelID *float64 `json:"panelId,omitempty" tf:"panel_id,omitempty"`

	// (Set of String) The tags to associate with the annotation.
	// The tags to associate with the annotation.
	// +kubebuilder:validation:Optional
	// +listType=set
	Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// (String) The text to associate with the annotation.
	// The text to associate with the annotation.
	// +kubebuilder:validation:Optional
	Text *string `json:"text,omitempty" tf:"text,omitempty"`

	// formatted time string indicating the annotation's time.
	// The RFC 3339-formatted time string indicating the annotation's time.
	// +kubebuilder:validation:Optional
	Time *string `json:"time,omitempty" tf:"time,omitempty"`

	// formatted time string indicating the annotation's end time.
	// The RFC 3339-formatted time string indicating the annotation's end time.
	// +kubebuilder:validation:Optional
	TimeEnd *string `json:"timeEnd,omitempty" tf:"time_end,omitempty"`
}

func (*AnnotationParameters) DeepCopy added in v0.11.0

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

func (*AnnotationParameters) DeepCopyInto added in v0.11.0

func (in *AnnotationParameters) DeepCopyInto(out *AnnotationParameters)

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

type AnnotationSpec added in v0.11.0

type AnnotationSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     AnnotationParameters `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 AnnotationInitParameters `json:"initProvider,omitempty"`
}

AnnotationSpec defines the desired state of Annotation

func (*AnnotationSpec) DeepCopy added in v0.11.0

func (in *AnnotationSpec) DeepCopy() *AnnotationSpec

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

func (*AnnotationSpec) DeepCopyInto added in v0.11.0

func (in *AnnotationSpec) DeepCopyInto(out *AnnotationSpec)

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

type AnnotationStatus added in v0.11.0

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

AnnotationStatus defines the observed state of Annotation.

func (*AnnotationStatus) DeepCopy added in v0.11.0

func (in *AnnotationStatus) DeepCopy() *AnnotationStatus

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

func (*AnnotationStatus) DeepCopyInto added in v0.11.0

func (in *AnnotationStatus) DeepCopyInto(out *AnnotationStatus)

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

type Dashboard

type Dashboard 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.configJson) || (has(self.initProvider) && has(self.initProvider.configJson))",message="spec.forProvider.configJson is a required parameter"
	Spec   DashboardSpec   `json:"spec"`
	Status DashboardStatus `json:"status,omitempty"`
}

Dashboard is the Schema for the Dashboards API. Manages Grafana dashboards. Official documentation https://grafana.com/docs/grafana/latest/dashboards/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/ +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 (*Dashboard) DeepCopy

func (in *Dashboard) DeepCopy() *Dashboard

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

func (*Dashboard) DeepCopyInto

func (in *Dashboard) DeepCopyInto(out *Dashboard)

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

func (*Dashboard) DeepCopyObject

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

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

func (*Dashboard) GetCondition

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

GetCondition of this Dashboard.

func (*Dashboard) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Dashboard

func (*Dashboard) GetDeletionPolicy

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

GetDeletionPolicy of this Dashboard.

func (*Dashboard) GetID

func (tr *Dashboard) GetID() string

GetID returns ID of underlying Terraform resource of this Dashboard

func (*Dashboard) GetInitParameters added in v0.8.0

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

GetInitParameters of this Dashboard

func (*Dashboard) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this Dashboard.

func (*Dashboard) GetMergedParameters added in v0.10.1

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

GetInitParameters of this Dashboard

func (*Dashboard) GetObservation

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

GetObservation of this Dashboard

func (*Dashboard) GetParameters

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

GetParameters of this Dashboard

func (*Dashboard) GetProviderConfigReference

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

GetProviderConfigReference of this Dashboard.

func (*Dashboard) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Dashboard.

func (*Dashboard) GetTerraformResourceType

func (mg *Dashboard) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Dashboard

func (*Dashboard) GetTerraformSchemaVersion

func (tr *Dashboard) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Dashboard) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Dashboard.

func (*Dashboard) Hub added in v0.10.1

func (tr *Dashboard) Hub()

Hub marks this type as a conversion hub.

func (*Dashboard) LateInitialize

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

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

func (*Dashboard) ResolveReferences

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

ResolveReferences of this Dashboard.

func (*Dashboard) SetConditions

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

SetConditions of this Dashboard.

func (*Dashboard) SetDeletionPolicy

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

SetDeletionPolicy of this Dashboard.

func (*Dashboard) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this Dashboard.

func (*Dashboard) SetObservation

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

SetObservation for this Dashboard

func (*Dashboard) SetParameters

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

SetParameters for this Dashboard

func (*Dashboard) SetProviderConfigReference

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

SetProviderConfigReference of this Dashboard.

func (*Dashboard) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Dashboard.

func (*Dashboard) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Dashboard.

type DashboardInitParameters added in v0.8.0

type DashboardInitParameters struct {

	// (String) The complete dashboard model JSON.
	// The complete dashboard model JSON.
	ConfigJSON *string `json:"configJson,omitempty" tf:"config_json,omitempty"`

	// (String) The id or UID of the folder to save the dashboard in.
	// The id or UID of the folder to save the dashboard in.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	Folder *string `json:"folder,omitempty" tf:"folder,omitempty"`

	// Reference to a Folder in oss to populate folder.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate folder.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) Set a commit message for the version history.
	// Set a commit message for the version history.
	Message *string `json:"message,omitempty" tf:"message,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Boolean) Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
	// Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
	Overwrite *bool `json:"overwrite,omitempty" tf:"overwrite,omitempty"`
}

func (*DashboardInitParameters) DeepCopy added in v0.8.0

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

func (*DashboardInitParameters) DeepCopyInto added in v0.8.0

func (in *DashboardInitParameters) DeepCopyInto(out *DashboardInitParameters)

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

type DashboardList

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

DashboardList contains a list of Dashboards

func (*DashboardList) DeepCopy

func (in *DashboardList) DeepCopy() *DashboardList

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

func (*DashboardList) DeepCopyInto

func (in *DashboardList) DeepCopyInto(out *DashboardList)

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

func (*DashboardList) DeepCopyObject

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

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

func (*DashboardList) GetItems

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

GetItems of this DashboardList.

type DashboardObservation

type DashboardObservation struct {

	// (String) The complete dashboard model JSON.
	// The complete dashboard model JSON.
	ConfigJSON *string `json:"configJson,omitempty" tf:"config_json,omitempty"`

	// (Number) The numeric ID of the dashboard computed by Grafana.
	// The numeric ID of the dashboard computed by Grafana.
	DashboardID *float64 `json:"dashboardId,omitempty" tf:"dashboard_id,omitempty"`

	// (String) The id or UID of the folder to save the dashboard in.
	// The id or UID of the folder to save the dashboard in.
	Folder *string `json:"folder,omitempty" tf:"folder,omitempty"`

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

	// (String) Set a commit message for the version history.
	// Set a commit message for the version history.
	Message *string `json:"message,omitempty" tf:"message,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Boolean) Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
	// Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
	Overwrite *bool `json:"overwrite,omitempty" tf:"overwrite,omitempty"`

	// (String) The unique identifier of a dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a dashboard. The uid allows having consistent URLs for accessing dashboards and when syncing dashboards between multiple Grafana installs.
	// The unique identifier of a dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a dashboard. The uid allows having consistent URLs for accessing dashboards and when syncing dashboards between multiple Grafana installs.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`

	// (String) The full URL of the dashboard.
	// The full URL of the dashboard.
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// (Number) Whenever you save a version of your dashboard, a copy of that version is saved so that previous versions of your dashboard are not lost.
	// Whenever you save a version of your dashboard, a copy of that version is saved so that previous versions of your dashboard are not lost.
	Version *float64 `json:"version,omitempty" tf:"version,omitempty"`
}

func (*DashboardObservation) DeepCopy

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

func (*DashboardObservation) DeepCopyInto

func (in *DashboardObservation) DeepCopyInto(out *DashboardObservation)

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

type DashboardParameters

type DashboardParameters struct {

	// (String) The complete dashboard model JSON.
	// The complete dashboard model JSON.
	// +kubebuilder:validation:Optional
	ConfigJSON *string `json:"configJson,omitempty" tf:"config_json,omitempty"`

	// (String) The id or UID of the folder to save the dashboard in.
	// The id or UID of the folder to save the dashboard in.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	// +kubebuilder:validation:Optional
	Folder *string `json:"folder,omitempty" tf:"folder,omitempty"`

	// Reference to a Folder in oss to populate folder.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate folder.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) Set a commit message for the version history.
	// Set a commit message for the version history.
	// +kubebuilder:validation:Optional
	Message *string `json:"message,omitempty" tf:"message,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Boolean) Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
	// Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
	// +kubebuilder:validation:Optional
	Overwrite *bool `json:"overwrite,omitempty" tf:"overwrite,omitempty"`
}

func (*DashboardParameters) DeepCopy

func (in *DashboardParameters) DeepCopy() *DashboardParameters

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

func (*DashboardParameters) DeepCopyInto

func (in *DashboardParameters) DeepCopyInto(out *DashboardParameters)

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

type DashboardPermission

type DashboardPermission struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DashboardPermissionSpec   `json:"spec"`
	Status            DashboardPermissionStatus `json:"status,omitempty"`
}

DashboardPermission is the Schema for the DashboardPermissions API. Manages the entire set of permissions for a dashboard. Permissions that aren't specified when applying this resource will be removed. Official documentation https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/dashboard_permissions/ +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 (*DashboardPermission) DeepCopy

func (in *DashboardPermission) DeepCopy() *DashboardPermission

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

func (*DashboardPermission) DeepCopyInto

func (in *DashboardPermission) DeepCopyInto(out *DashboardPermission)

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

func (*DashboardPermission) DeepCopyObject

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

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

func (*DashboardPermission) GetCondition

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

GetCondition of this DashboardPermission.

func (*DashboardPermission) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this DashboardPermission

func (*DashboardPermission) GetDeletionPolicy

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

GetDeletionPolicy of this DashboardPermission.

func (*DashboardPermission) GetID

func (tr *DashboardPermission) GetID() string

GetID returns ID of underlying Terraform resource of this DashboardPermission

func (*DashboardPermission) GetInitParameters added in v0.8.0

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

GetInitParameters of this DashboardPermission

func (*DashboardPermission) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this DashboardPermission.

func (*DashboardPermission) GetMergedParameters added in v0.10.1

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

GetInitParameters of this DashboardPermission

func (*DashboardPermission) GetObservation

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

GetObservation of this DashboardPermission

func (*DashboardPermission) GetParameters

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

GetParameters of this DashboardPermission

func (*DashboardPermission) GetProviderConfigReference

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

GetProviderConfigReference of this DashboardPermission.

func (*DashboardPermission) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this DashboardPermission.

func (*DashboardPermission) GetTerraformResourceType

func (mg *DashboardPermission) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this DashboardPermission

func (*DashboardPermission) GetTerraformSchemaVersion

func (tr *DashboardPermission) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*DashboardPermission) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this DashboardPermission.

func (*DashboardPermission) Hub added in v0.10.1

func (tr *DashboardPermission) Hub()

Hub marks this type as a conversion hub.

func (*DashboardPermission) LateInitialize

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

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

func (*DashboardPermission) ResolveReferences

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

ResolveReferences of this DashboardPermission.

func (*DashboardPermission) SetConditions

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

SetConditions of this DashboardPermission.

func (*DashboardPermission) SetDeletionPolicy

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

SetDeletionPolicy of this DashboardPermission.

func (*DashboardPermission) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this DashboardPermission.

func (*DashboardPermission) SetObservation

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

SetObservation for this DashboardPermission

func (*DashboardPermission) SetParameters

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

SetParameters for this DashboardPermission

func (*DashboardPermission) SetProviderConfigReference

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

SetProviderConfigReference of this DashboardPermission.

func (*DashboardPermission) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this DashboardPermission.

func (*DashboardPermission) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this DashboardPermission.

type DashboardPermissionInitParameters added in v0.8.0

type DashboardPermissionInitParameters struct {

	// Reference to a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardRef *v1.Reference `json:"dashboardRef,omitempty" tf:"-"`

	// Selector for a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardSelector *v1.Selector `json:"dashboardSelector,omitempty" tf:"-"`

	// (String) UID of the dashboard to apply permissions to.
	// UID of the dashboard to apply permissions to.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Dashboard
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DashboardRef
	// +crossplane:generate:reference:selectorFieldName=DashboardSelector
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	Permissions []PermissionsInitParameters `json:"permissions,omitempty" tf:"permissions,omitempty"`
}

func (*DashboardPermissionInitParameters) DeepCopy added in v0.8.0

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

func (*DashboardPermissionInitParameters) DeepCopyInto added in v0.8.0

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

type DashboardPermissionList

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

DashboardPermissionList contains a list of DashboardPermissions

func (*DashboardPermissionList) DeepCopy

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

func (*DashboardPermissionList) DeepCopyInto

func (in *DashboardPermissionList) DeepCopyInto(out *DashboardPermissionList)

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

func (*DashboardPermissionList) DeepCopyObject

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

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

func (*DashboardPermissionList) GetItems

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

GetItems of this DashboardPermissionList.

type DashboardPermissionObservation

type DashboardPermissionObservation struct {

	// (String) UID of the dashboard to apply permissions to.
	// UID of the dashboard to apply permissions to.
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	Permissions []PermissionsObservation `json:"permissions,omitempty" tf:"permissions,omitempty"`
}

func (*DashboardPermissionObservation) DeepCopy

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

func (*DashboardPermissionObservation) DeepCopyInto

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

type DashboardPermissionParameters

type DashboardPermissionParameters struct {

	// Reference to a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardRef *v1.Reference `json:"dashboardRef,omitempty" tf:"-"`

	// Selector for a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardSelector *v1.Selector `json:"dashboardSelector,omitempty" tf:"-"`

	// (String) UID of the dashboard to apply permissions to.
	// UID of the dashboard to apply permissions to.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Dashboard
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DashboardRef
	// +crossplane:generate:reference:selectorFieldName=DashboardSelector
	// +kubebuilder:validation:Optional
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	// +kubebuilder:validation:Optional
	Permissions []PermissionsParameters `json:"permissions,omitempty" tf:"permissions,omitempty"`
}

func (*DashboardPermissionParameters) DeepCopy

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

func (*DashboardPermissionParameters) DeepCopyInto

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

type DashboardPermissionSpec

type DashboardPermissionSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     DashboardPermissionParameters `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 DashboardPermissionInitParameters `json:"initProvider,omitempty"`
}

DashboardPermissionSpec defines the desired state of DashboardPermission

func (*DashboardPermissionSpec) DeepCopy

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

func (*DashboardPermissionSpec) DeepCopyInto

func (in *DashboardPermissionSpec) DeepCopyInto(out *DashboardPermissionSpec)

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

type DashboardPermissionStatus

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

DashboardPermissionStatus defines the observed state of DashboardPermission.

func (*DashboardPermissionStatus) DeepCopy

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

func (*DashboardPermissionStatus) DeepCopyInto

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

type DashboardPublic added in v0.11.0

type DashboardPublic struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DashboardPublicSpec   `json:"spec"`
	Status            DashboardPublicStatus `json:"status,omitempty"`
}

DashboardPublic is the Schema for the DashboardPublics API. Manages Grafana public dashboards. Note: This resource is available only with Grafana 10.2+. Official documentation https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/HTTP API https://grafana.com/docs/grafana/next/developers/http_api/dashboard_public/ +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 (*DashboardPublic) DeepCopy added in v0.11.0

func (in *DashboardPublic) DeepCopy() *DashboardPublic

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

func (*DashboardPublic) DeepCopyInto added in v0.11.0

func (in *DashboardPublic) DeepCopyInto(out *DashboardPublic)

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

func (*DashboardPublic) DeepCopyObject added in v0.11.0

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

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

func (*DashboardPublic) GetCondition added in v0.11.0

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

GetCondition of this DashboardPublic.

func (*DashboardPublic) GetConnectionDetailsMapping added in v0.11.0

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

GetConnectionDetailsMapping for this DashboardPublic

func (*DashboardPublic) GetDeletionPolicy added in v0.11.0

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

GetDeletionPolicy of this DashboardPublic.

func (*DashboardPublic) GetID added in v0.11.0

func (tr *DashboardPublic) GetID() string

GetID returns ID of underlying Terraform resource of this DashboardPublic

func (*DashboardPublic) GetInitParameters added in v0.11.0

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

GetInitParameters of this DashboardPublic

func (*DashboardPublic) GetManagementPolicies added in v0.11.0

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

GetManagementPolicies of this DashboardPublic.

func (*DashboardPublic) GetMergedParameters added in v0.11.0

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

GetInitParameters of this DashboardPublic

func (*DashboardPublic) GetObservation added in v0.11.0

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

GetObservation of this DashboardPublic

func (*DashboardPublic) GetParameters added in v0.11.0

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

GetParameters of this DashboardPublic

func (*DashboardPublic) GetProviderConfigReference added in v0.11.0

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

GetProviderConfigReference of this DashboardPublic.

func (*DashboardPublic) GetPublishConnectionDetailsTo added in v0.11.0

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

GetPublishConnectionDetailsTo of this DashboardPublic.

func (*DashboardPublic) GetTerraformResourceType added in v0.11.0

func (mg *DashboardPublic) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this DashboardPublic

func (*DashboardPublic) GetTerraformSchemaVersion added in v0.11.0

func (tr *DashboardPublic) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*DashboardPublic) GetWriteConnectionSecretToReference added in v0.11.0

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

GetWriteConnectionSecretToReference of this DashboardPublic.

func (*DashboardPublic) Hub added in v0.11.0

func (tr *DashboardPublic) Hub()

Hub marks this type as a conversion hub.

func (*DashboardPublic) LateInitialize added in v0.11.0

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

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

func (*DashboardPublic) ResolveReferences added in v0.11.0

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

ResolveReferences of this DashboardPublic.

func (*DashboardPublic) SetConditions added in v0.11.0

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

SetConditions of this DashboardPublic.

func (*DashboardPublic) SetDeletionPolicy added in v0.11.0

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

SetDeletionPolicy of this DashboardPublic.

func (*DashboardPublic) SetManagementPolicies added in v0.11.0

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

SetManagementPolicies of this DashboardPublic.

func (*DashboardPublic) SetObservation added in v0.11.0

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

SetObservation for this DashboardPublic

func (*DashboardPublic) SetParameters added in v0.11.0

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

SetParameters for this DashboardPublic

func (*DashboardPublic) SetProviderConfigReference added in v0.11.0

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

SetProviderConfigReference of this DashboardPublic.

func (*DashboardPublic) SetPublishConnectionDetailsTo added in v0.11.0

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

SetPublishConnectionDetailsTo of this DashboardPublic.

func (*DashboardPublic) SetWriteConnectionSecretToReference added in v0.11.0

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

SetWriteConnectionSecretToReference of this DashboardPublic.

type DashboardPublicInitParameters added in v0.11.0

type DashboardPublicInitParameters struct {

	// (String) A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
	// A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
	AccessToken *string `json:"accessToken,omitempty" tf:"access_token,omitempty"`

	// (Boolean) Set to true to show annotations. The default value is false.
	// Set to `true` to show annotations. The default value is `false`.
	AnnotationsEnabled *bool `json:"annotationsEnabled,omitempty" tf:"annotations_enabled,omitempty"`

	// Reference to a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardRef *v1.Reference `json:"dashboardRef,omitempty" tf:"-"`

	// Selector for a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardSelector *v1.Selector `json:"dashboardSelector,omitempty" tf:"-"`

	// (String) The unique identifier of the original dashboard.
	// The unique identifier of the original dashboard.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Dashboard
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DashboardRef
	// +crossplane:generate:reference:selectorFieldName=DashboardSelector
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

	// (Boolean) Set to true to enable the public dashboard. The default value is false.
	// Set to `true` to enable the public dashboard. The default value is `false`.
	IsEnabled *bool `json:"isEnabled,omitempty" tf:"is_enabled,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) Set the share mode. The default value is public.
	// Set the share mode. The default value is `public`.
	Share *string `json:"share,omitempty" tf:"share,omitempty"`

	// (Boolean) Set to true to enable the time picker in the public dashboard. The default value is false.
	// Set to `true` to enable the time picker in the public dashboard. The default value is `false`.
	TimeSelectionEnabled *bool `json:"timeSelectionEnabled,omitempty" tf:"time_selection_enabled,omitempty"`

	// (String) The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
	// The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}

func (*DashboardPublicInitParameters) DeepCopy added in v0.11.0

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

func (*DashboardPublicInitParameters) DeepCopyInto added in v0.11.0

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

type DashboardPublicList added in v0.11.0

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

DashboardPublicList contains a list of DashboardPublics

func (*DashboardPublicList) DeepCopy added in v0.11.0

func (in *DashboardPublicList) DeepCopy() *DashboardPublicList

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

func (*DashboardPublicList) DeepCopyInto added in v0.11.0

func (in *DashboardPublicList) DeepCopyInto(out *DashboardPublicList)

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

func (*DashboardPublicList) DeepCopyObject added in v0.11.0

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

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

func (*DashboardPublicList) GetItems added in v0.11.0

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

GetItems of this DashboardPublicList.

type DashboardPublicObservation added in v0.11.0

type DashboardPublicObservation struct {

	// (String) A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
	// A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
	AccessToken *string `json:"accessToken,omitempty" tf:"access_token,omitempty"`

	// (Boolean) Set to true to show annotations. The default value is false.
	// Set to `true` to show annotations. The default value is `false`.
	AnnotationsEnabled *bool `json:"annotationsEnabled,omitempty" tf:"annotations_enabled,omitempty"`

	// (String) The unique identifier of the original dashboard.
	// The unique identifier of the original dashboard.
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

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

	// (Boolean) Set to true to enable the public dashboard. The default value is false.
	// Set to `true` to enable the public dashboard. The default value is `false`.
	IsEnabled *bool `json:"isEnabled,omitempty" tf:"is_enabled,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (String) Set the share mode. The default value is public.
	// Set the share mode. The default value is `public`.
	Share *string `json:"share,omitempty" tf:"share,omitempty"`

	// (Boolean) Set to true to enable the time picker in the public dashboard. The default value is false.
	// Set to `true` to enable the time picker in the public dashboard. The default value is `false`.
	TimeSelectionEnabled *bool `json:"timeSelectionEnabled,omitempty" tf:"time_selection_enabled,omitempty"`

	// (String) The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
	// The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}

func (*DashboardPublicObservation) DeepCopy added in v0.11.0

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

func (*DashboardPublicObservation) DeepCopyInto added in v0.11.0

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

type DashboardPublicParameters added in v0.11.0

type DashboardPublicParameters struct {

	// (String) A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
	// A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
	// +kubebuilder:validation:Optional
	AccessToken *string `json:"accessToken,omitempty" tf:"access_token,omitempty"`

	// (Boolean) Set to true to show annotations. The default value is false.
	// Set to `true` to show annotations. The default value is `false`.
	// +kubebuilder:validation:Optional
	AnnotationsEnabled *bool `json:"annotationsEnabled,omitempty" tf:"annotations_enabled,omitempty"`

	// Reference to a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardRef *v1.Reference `json:"dashboardRef,omitempty" tf:"-"`

	// Selector for a Dashboard in oss to populate dashboardUid.
	// +kubebuilder:validation:Optional
	DashboardSelector *v1.Selector `json:"dashboardSelector,omitempty" tf:"-"`

	// (String) The unique identifier of the original dashboard.
	// The unique identifier of the original dashboard.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Dashboard
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=DashboardRef
	// +crossplane:generate:reference:selectorFieldName=DashboardSelector
	// +kubebuilder:validation:Optional
	DashboardUID *string `json:"dashboardUid,omitempty" tf:"dashboard_uid,omitempty"`

	// (Boolean) Set to true to enable the public dashboard. The default value is false.
	// Set to `true` to enable the public dashboard. The default value is `false`.
	// +kubebuilder:validation:Optional
	IsEnabled *bool `json:"isEnabled,omitempty" tf:"is_enabled,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) Set the share mode. The default value is public.
	// Set the share mode. The default value is `public`.
	// +kubebuilder:validation:Optional
	Share *string `json:"share,omitempty" tf:"share,omitempty"`

	// (Boolean) Set to true to enable the time picker in the public dashboard. The default value is false.
	// Set to `true` to enable the time picker in the public dashboard. The default value is `false`.
	// +kubebuilder:validation:Optional
	TimeSelectionEnabled *bool `json:"timeSelectionEnabled,omitempty" tf:"time_selection_enabled,omitempty"`

	// (String) The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
	// The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
	// +kubebuilder:validation:Optional
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}

func (*DashboardPublicParameters) DeepCopy added in v0.11.0

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

func (*DashboardPublicParameters) DeepCopyInto added in v0.11.0

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

type DashboardPublicSpec added in v0.11.0

type DashboardPublicSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     DashboardPublicParameters `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 DashboardPublicInitParameters `json:"initProvider,omitempty"`
}

DashboardPublicSpec defines the desired state of DashboardPublic

func (*DashboardPublicSpec) DeepCopy added in v0.11.0

func (in *DashboardPublicSpec) DeepCopy() *DashboardPublicSpec

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

func (*DashboardPublicSpec) DeepCopyInto added in v0.11.0

func (in *DashboardPublicSpec) DeepCopyInto(out *DashboardPublicSpec)

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

type DashboardPublicStatus added in v0.11.0

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

DashboardPublicStatus defines the observed state of DashboardPublic.

func (*DashboardPublicStatus) DeepCopy added in v0.11.0

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

func (*DashboardPublicStatus) DeepCopyInto added in v0.11.0

func (in *DashboardPublicStatus) DeepCopyInto(out *DashboardPublicStatus)

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

type DashboardSpec

type DashboardSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     DashboardParameters `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 DashboardInitParameters `json:"initProvider,omitempty"`
}

DashboardSpec defines the desired state of Dashboard

func (*DashboardSpec) DeepCopy

func (in *DashboardSpec) DeepCopy() *DashboardSpec

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

func (*DashboardSpec) DeepCopyInto

func (in *DashboardSpec) DeepCopyInto(out *DashboardSpec)

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

type DashboardStatus

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

DashboardStatus defines the observed state of Dashboard.

func (*DashboardStatus) DeepCopy

func (in *DashboardStatus) DeepCopy() *DashboardStatus

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

func (*DashboardStatus) DeepCopyInto

func (in *DashboardStatus) DeepCopyInto(out *DashboardStatus)

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

type DataSource

type DataSource 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.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter"
	Spec   DataSourceSpec   `json:"spec"`
	Status DataSourceStatus `json:"status,omitempty"`
}

DataSource is the Schema for the DataSources API. Official documentation https://grafana.com/docs/grafana/latest/datasources/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/data_source/ The required arguments for this resource vary depending on the type of data source selected (via the 'type' argument). +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 (*DataSource) DeepCopy

func (in *DataSource) DeepCopy() *DataSource

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

func (*DataSource) DeepCopyInto

func (in *DataSource) DeepCopyInto(out *DataSource)

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

func (*DataSource) DeepCopyObject

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

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

func (*DataSource) GetCondition

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

GetCondition of this DataSource.

func (*DataSource) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this DataSource

func (*DataSource) GetDeletionPolicy

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

GetDeletionPolicy of this DataSource.

func (*DataSource) GetID

func (tr *DataSource) GetID() string

GetID returns ID of underlying Terraform resource of this DataSource

func (*DataSource) GetInitParameters added in v0.8.0

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

GetInitParameters of this DataSource

func (*DataSource) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this DataSource.

func (*DataSource) GetMergedParameters added in v0.10.1

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

GetInitParameters of this DataSource

func (*DataSource) GetObservation

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

GetObservation of this DataSource

func (*DataSource) GetParameters

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

GetParameters of this DataSource

func (*DataSource) GetProviderConfigReference

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

GetProviderConfigReference of this DataSource.

func (*DataSource) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this DataSource.

func (*DataSource) GetTerraformResourceType

func (mg *DataSource) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this DataSource

func (*DataSource) GetTerraformSchemaVersion

func (tr *DataSource) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*DataSource) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this DataSource.

func (*DataSource) Hub added in v0.10.1

func (tr *DataSource) Hub()

Hub marks this type as a conversion hub.

func (*DataSource) LateInitialize

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

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

func (*DataSource) ResolveReferences added in v0.7.0

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

ResolveReferences of this DataSource.

func (*DataSource) SetConditions

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

SetConditions of this DataSource.

func (*DataSource) SetDeletionPolicy

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

SetDeletionPolicy of this DataSource.

func (*DataSource) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this DataSource.

func (*DataSource) SetObservation

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

SetObservation for this DataSource

func (*DataSource) SetParameters

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

SetParameters for this DataSource

func (*DataSource) SetProviderConfigReference

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

SetProviderConfigReference of this DataSource.

func (*DataSource) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this DataSource.

func (*DataSource) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this DataSource.

type DataSourceInitParameters added in v0.8.0

type DataSourceInitParameters struct {

	// (String) The method by which Grafana will access the data source: proxy or direct. Defaults to proxy.
	// The method by which Grafana will access the data source: `proxy` or `direct`. Defaults to `proxy`.
	AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"`

	// (Boolean) Whether to enable basic auth for the data source. Defaults to false.
	// Whether to enable basic auth for the data source. Defaults to `false`.
	BasicAuthEnabled *bool `json:"basicAuthEnabled,omitempty" tf:"basic_auth_enabled,omitempty"`

	// (String) Basic auth username. Defaults to “.
	// Basic auth username. Defaults to “.
	BasicAuthUsername *string `json:"basicAuthUsername,omitempty" tf:"basic_auth_username,omitempty"`

	// (String)  The name of the database to use on the selected data source server. Defaults to “.
	// (Required by some data source types) The name of the database to use on the selected data source server. Defaults to “.
	DatabaseName *string `json:"databaseName,omitempty" tf:"database_name,omitempty"`

	// (Boolean) Whether to set the data source as default. This should only be true to a single data source. Defaults to false.
	// Whether to set the data source as default. This should only be `true` to a single data source. Defaults to `false`.
	IsDefault *bool `json:"isDefault,omitempty" tf:"is_default,omitempty"`

	// (String) Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	// Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	JSONDataEncoded *string `json:"jsonDataEncoded,omitempty" tf:"json_data_encoded,omitempty"`

	// (String) A unique name for the data source.
	// A unique name for the data source.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) The data source type. Must be one of the supported data source keywords.
	// The data source type. Must be one of the supported data source keywords.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// (String) Unique identifier. If unset, this will be automatically generated.
	// Unique identifier. If unset, this will be automatically generated.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`

	// (String) The URL for the data source. The type of URL required varies depending on the chosen data source type.
	// The URL for the data source. The type of URL required varies depending on the chosen data source type.
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// (String)  The username to use to authenticate to the data source. Defaults to “.
	// (Required by some data source types) The username to use to authenticate to the data source. Defaults to “.
	Username *string `json:"username,omitempty" tf:"username,omitempty"`
}

func (*DataSourceInitParameters) DeepCopy added in v0.8.0

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

func (*DataSourceInitParameters) DeepCopyInto added in v0.8.0

func (in *DataSourceInitParameters) DeepCopyInto(out *DataSourceInitParameters)

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

type DataSourceList

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

DataSourceList contains a list of DataSources

func (*DataSourceList) DeepCopy

func (in *DataSourceList) DeepCopy() *DataSourceList

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

func (*DataSourceList) DeepCopyInto

func (in *DataSourceList) DeepCopyInto(out *DataSourceList)

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

func (*DataSourceList) DeepCopyObject

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

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

func (*DataSourceList) GetItems

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

GetItems of this DataSourceList.

type DataSourceObservation

type DataSourceObservation struct {

	// (String) The method by which Grafana will access the data source: proxy or direct. Defaults to proxy.
	// The method by which Grafana will access the data source: `proxy` or `direct`. Defaults to `proxy`.
	AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"`

	// (Boolean) Whether to enable basic auth for the data source. Defaults to false.
	// Whether to enable basic auth for the data source. Defaults to `false`.
	BasicAuthEnabled *bool `json:"basicAuthEnabled,omitempty" tf:"basic_auth_enabled,omitempty"`

	// (String) Basic auth username. Defaults to “.
	// Basic auth username. Defaults to “.
	BasicAuthUsername *string `json:"basicAuthUsername,omitempty" tf:"basic_auth_username,omitempty"`

	// (String)  The name of the database to use on the selected data source server. Defaults to “.
	// (Required by some data source types) The name of the database to use on the selected data source server. Defaults to “.
	DatabaseName *string `json:"databaseName,omitempty" tf:"database_name,omitempty"`

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

	// (Boolean) Whether to set the data source as default. This should only be true to a single data source. Defaults to false.
	// Whether to set the data source as default. This should only be `true` to a single data source. Defaults to `false`.
	IsDefault *bool `json:"isDefault,omitempty" tf:"is_default,omitempty"`

	// (String) Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	// Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	JSONDataEncoded *string `json:"jsonDataEncoded,omitempty" tf:"json_data_encoded,omitempty"`

	// (String) A unique name for the data source.
	// A unique name for the data source.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (String) The data source type. Must be one of the supported data source keywords.
	// The data source type. Must be one of the supported data source keywords.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// (String) Unique identifier. If unset, this will be automatically generated.
	// Unique identifier. If unset, this will be automatically generated.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`

	// (String) The URL for the data source. The type of URL required varies depending on the chosen data source type.
	// The URL for the data source. The type of URL required varies depending on the chosen data source type.
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// (String)  The username to use to authenticate to the data source. Defaults to “.
	// (Required by some data source types) The username to use to authenticate to the data source. Defaults to “.
	Username *string `json:"username,omitempty" tf:"username,omitempty"`
}

func (*DataSourceObservation) DeepCopy

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

func (*DataSourceObservation) DeepCopyInto

func (in *DataSourceObservation) DeepCopyInto(out *DataSourceObservation)

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

type DataSourceParameters

type DataSourceParameters struct {

	// (String) The method by which Grafana will access the data source: proxy or direct. Defaults to proxy.
	// The method by which Grafana will access the data source: `proxy` or `direct`. Defaults to `proxy`.
	// +kubebuilder:validation:Optional
	AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"`

	// (Boolean) Whether to enable basic auth for the data source. Defaults to false.
	// Whether to enable basic auth for the data source. Defaults to `false`.
	// +kubebuilder:validation:Optional
	BasicAuthEnabled *bool `json:"basicAuthEnabled,omitempty" tf:"basic_auth_enabled,omitempty"`

	// (String) Basic auth username. Defaults to “.
	// Basic auth username. Defaults to “.
	// +kubebuilder:validation:Optional
	BasicAuthUsername *string `json:"basicAuthUsername,omitempty" tf:"basic_auth_username,omitempty"`

	// (String)  The name of the database to use on the selected data source server. Defaults to “.
	// (Required by some data source types) The name of the database to use on the selected data source server. Defaults to “.
	// +kubebuilder:validation:Optional
	DatabaseName *string `json:"databaseName,omitempty" tf:"database_name,omitempty"`

	// (Map of String, Sensitive) Custom HTTP headers
	// Custom HTTP headers
	// +kubebuilder:validation:Optional
	HTTPHeadersSecretRef *v1.SecretReference `json:"httpHeadersSecretRef,omitempty" tf:"-"`

	// (Boolean) Whether to set the data source as default. This should only be true to a single data source. Defaults to false.
	// Whether to set the data source as default. This should only be `true` to a single data source. Defaults to `false`.
	// +kubebuilder:validation:Optional
	IsDefault *bool `json:"isDefault,omitempty" tf:"is_default,omitempty"`

	// (String) Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	// Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	// +kubebuilder:validation:Optional
	JSONDataEncoded *string `json:"jsonDataEncoded,omitempty" tf:"json_data_encoded,omitempty"`

	// (String) A unique name for the data source.
	// A unique name for the data source.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String, Sensitive) Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	// Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
	// +kubebuilder:validation:Optional
	SecureJSONDataEncodedSecretRef *v1.SecretKeySelector `json:"secureJsonDataEncodedSecretRef,omitempty" tf:"-"`

	// (String) The data source type. Must be one of the supported data source keywords.
	// The data source type. Must be one of the supported data source keywords.
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// (String) Unique identifier. If unset, this will be automatically generated.
	// Unique identifier. If unset, this will be automatically generated.
	// +kubebuilder:validation:Optional
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`

	// (String) The URL for the data source. The type of URL required varies depending on the chosen data source type.
	// The URL for the data source. The type of URL required varies depending on the chosen data source type.
	// +kubebuilder:validation:Optional
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// (String)  The username to use to authenticate to the data source. Defaults to “.
	// (Required by some data source types) The username to use to authenticate to the data source. Defaults to “.
	// +kubebuilder:validation:Optional
	Username *string `json:"username,omitempty" tf:"username,omitempty"`
}

func (*DataSourceParameters) DeepCopy

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

func (*DataSourceParameters) DeepCopyInto

func (in *DataSourceParameters) DeepCopyInto(out *DataSourceParameters)

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

type DataSourceSpec

type DataSourceSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     DataSourceParameters `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 DataSourceInitParameters `json:"initProvider,omitempty"`
}

DataSourceSpec defines the desired state of DataSource

func (*DataSourceSpec) DeepCopy

func (in *DataSourceSpec) DeepCopy() *DataSourceSpec

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

func (*DataSourceSpec) DeepCopyInto

func (in *DataSourceSpec) DeepCopyInto(out *DataSourceSpec)

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

type DataSourceStatus

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

DataSourceStatus defines the observed state of DataSource.

func (*DataSourceStatus) DeepCopy

func (in *DataSourceStatus) DeepCopy() *DataSourceStatus

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

func (*DataSourceStatus) DeepCopyInto

func (in *DataSourceStatus) DeepCopyInto(out *DataSourceStatus)

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

type Folder

type Folder 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.title) || (has(self.initProvider) && has(self.initProvider.title))",message="spec.forProvider.title is a required parameter"
	Spec   FolderSpec   `json:"spec"`
	Status FolderStatus `json:"status,omitempty"`
}

Folder is the Schema for the Folders API. Official documentation https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/folder/ +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 (*Folder) DeepCopy

func (in *Folder) DeepCopy() *Folder

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

func (*Folder) DeepCopyInto

func (in *Folder) DeepCopyInto(out *Folder)

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

func (*Folder) DeepCopyObject

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

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

func (*Folder) GetCondition

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

GetCondition of this Folder.

func (*Folder) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Folder

func (*Folder) GetDeletionPolicy

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

GetDeletionPolicy of this Folder.

func (*Folder) GetID

func (tr *Folder) GetID() string

GetID returns ID of underlying Terraform resource of this Folder

func (*Folder) GetInitParameters added in v0.8.0

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

GetInitParameters of this Folder

func (*Folder) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this Folder.

func (*Folder) GetMergedParameters added in v0.10.1

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

GetInitParameters of this Folder

func (*Folder) GetObservation

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

GetObservation of this Folder

func (*Folder) GetParameters

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

GetParameters of this Folder

func (*Folder) GetProviderConfigReference

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

GetProviderConfigReference of this Folder.

func (*Folder) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Folder.

func (*Folder) GetTerraformResourceType

func (mg *Folder) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Folder

func (*Folder) GetTerraformSchemaVersion

func (tr *Folder) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Folder) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Folder.

func (*Folder) Hub added in v0.10.1

func (tr *Folder) Hub()

Hub marks this type as a conversion hub.

func (*Folder) LateInitialize

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

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

func (*Folder) ResolveReferences added in v0.7.0

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

ResolveReferences of this Folder.

func (*Folder) SetConditions

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

SetConditions of this Folder.

func (*Folder) SetDeletionPolicy

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

SetDeletionPolicy of this Folder.

func (*Folder) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this Folder.

func (*Folder) SetObservation

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

SetObservation for this Folder

func (*Folder) SetParameters

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

SetParameters for this Folder

func (*Folder) SetProviderConfigReference

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

SetProviderConfigReference of this Folder.

func (*Folder) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Folder.

func (*Folder) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Folder.

type FolderInitParameters added in v0.8.0

type FolderInitParameters struct {

	// Reference to a Folder in oss to populate parentFolderUid.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate parentFolderUid.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
	// The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	ParentFolderUID *string `json:"parentFolderUid,omitempty" tf:"parent_folder_uid,omitempty"`

	// (Boolean) Prevent deletion of the folder if it is not empty (contains dashboards or alert rules). Defaults to false.
	// Prevent deletion of the folder if it is not empty (contains dashboards or alert rules). Defaults to `false`.
	PreventDestroyIfNotEmpty *bool `json:"preventDestroyIfNotEmpty,omitempty" tf:"prevent_destroy_if_not_empty,omitempty"`

	// (String) The title of the folder.
	// The title of the folder.
	Title *string `json:"title,omitempty" tf:"title,omitempty"`

	// (String) Unique identifier.
	// Unique identifier.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}

func (*FolderInitParameters) DeepCopy added in v0.8.0

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

func (*FolderInitParameters) DeepCopyInto added in v0.8.0

func (in *FolderInitParameters) DeepCopyInto(out *FolderInitParameters)

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

type FolderList

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

FolderList contains a list of Folders

func (*FolderList) DeepCopy

func (in *FolderList) DeepCopy() *FolderList

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

func (*FolderList) DeepCopyInto

func (in *FolderList) DeepCopyInto(out *FolderList)

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

func (*FolderList) DeepCopyObject

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

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

func (*FolderList) GetItems

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

GetItems of this FolderList.

type FolderObservation

type FolderObservation struct {

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (String) The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
	// The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
	ParentFolderUID *string `json:"parentFolderUid,omitempty" tf:"parent_folder_uid,omitempty"`

	// (Boolean) Prevent deletion of the folder if it is not empty (contains dashboards or alert rules). Defaults to false.
	// Prevent deletion of the folder if it is not empty (contains dashboards or alert rules). Defaults to `false`.
	PreventDestroyIfNotEmpty *bool `json:"preventDestroyIfNotEmpty,omitempty" tf:"prevent_destroy_if_not_empty,omitempty"`

	// (String) The title of the folder.
	// The title of the folder.
	Title *string `json:"title,omitempty" tf:"title,omitempty"`

	// (String) Unique identifier.
	// Unique identifier.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`

	// (String) The full URL of the folder.
	// The full URL of the folder.
	URL *string `json:"url,omitempty" tf:"url,omitempty"`
}

func (*FolderObservation) DeepCopy

func (in *FolderObservation) DeepCopy() *FolderObservation

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

func (*FolderObservation) DeepCopyInto

func (in *FolderObservation) DeepCopyInto(out *FolderObservation)

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

type FolderParameters

type FolderParameters struct {

	// Reference to a Folder in oss to populate parentFolderUid.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate parentFolderUid.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
	// The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	// +kubebuilder:validation:Optional
	ParentFolderUID *string `json:"parentFolderUid,omitempty" tf:"parent_folder_uid,omitempty"`

	// (Boolean) Prevent deletion of the folder if it is not empty (contains dashboards or alert rules). Defaults to false.
	// Prevent deletion of the folder if it is not empty (contains dashboards or alert rules). Defaults to `false`.
	// +kubebuilder:validation:Optional
	PreventDestroyIfNotEmpty *bool `json:"preventDestroyIfNotEmpty,omitempty" tf:"prevent_destroy_if_not_empty,omitempty"`

	// (String) The title of the folder.
	// The title of the folder.
	// +kubebuilder:validation:Optional
	Title *string `json:"title,omitempty" tf:"title,omitempty"`

	// (String) Unique identifier.
	// Unique identifier.
	// +kubebuilder:validation:Optional
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}

func (*FolderParameters) DeepCopy

func (in *FolderParameters) DeepCopy() *FolderParameters

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

func (*FolderParameters) DeepCopyInto

func (in *FolderParameters) DeepCopyInto(out *FolderParameters)

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

type FolderPermission

type FolderPermission struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              FolderPermissionSpec   `json:"spec"`
	Status            FolderPermissionStatus `json:"status,omitempty"`
}

FolderPermission is the Schema for the FolderPermissions API. Manages the entire set of permissions for a folder. Permissions that aren't specified when applying this resource will be removed. Official documentation https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/folder_permissions/ +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 (*FolderPermission) DeepCopy

func (in *FolderPermission) DeepCopy() *FolderPermission

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

func (*FolderPermission) DeepCopyInto

func (in *FolderPermission) DeepCopyInto(out *FolderPermission)

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

func (*FolderPermission) DeepCopyObject

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

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

func (*FolderPermission) GetCondition

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

GetCondition of this FolderPermission.

func (*FolderPermission) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this FolderPermission

func (*FolderPermission) GetDeletionPolicy

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

GetDeletionPolicy of this FolderPermission.

func (*FolderPermission) GetID

func (tr *FolderPermission) GetID() string

GetID returns ID of underlying Terraform resource of this FolderPermission

func (*FolderPermission) GetInitParameters added in v0.8.0

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

GetInitParameters of this FolderPermission

func (*FolderPermission) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this FolderPermission.

func (*FolderPermission) GetMergedParameters added in v0.10.1

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

GetInitParameters of this FolderPermission

func (*FolderPermission) GetObservation

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

GetObservation of this FolderPermission

func (*FolderPermission) GetParameters

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

GetParameters of this FolderPermission

func (*FolderPermission) GetProviderConfigReference

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

GetProviderConfigReference of this FolderPermission.

func (*FolderPermission) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this FolderPermission.

func (*FolderPermission) GetTerraformResourceType

func (mg *FolderPermission) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this FolderPermission

func (*FolderPermission) GetTerraformSchemaVersion

func (tr *FolderPermission) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*FolderPermission) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this FolderPermission.

func (*FolderPermission) Hub added in v0.10.1

func (tr *FolderPermission) Hub()

Hub marks this type as a conversion hub.

func (*FolderPermission) LateInitialize

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

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

func (*FolderPermission) ResolveReferences

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

ResolveReferences of this FolderPermission.

func (*FolderPermission) SetConditions

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

SetConditions of this FolderPermission.

func (*FolderPermission) SetDeletionPolicy

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

SetDeletionPolicy of this FolderPermission.

func (*FolderPermission) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this FolderPermission.

func (*FolderPermission) SetObservation

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

SetObservation for this FolderPermission

func (*FolderPermission) SetParameters

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

SetParameters for this FolderPermission

func (*FolderPermission) SetProviderConfigReference

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

SetProviderConfigReference of this FolderPermission.

func (*FolderPermission) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this FolderPermission.

func (*FolderPermission) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this FolderPermission.

type FolderPermissionInitParameters added in v0.8.0

type FolderPermissionInitParameters struct {

	// Reference to a Folder in oss to populate folderUid.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate folderUid.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) The UID of the folder.
	// The UID of the folder.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	FolderUID *string `json:"folderUid,omitempty" tf:"folder_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	Permissions []FolderPermissionPermissionsInitParameters `json:"permissions,omitempty" tf:"permissions,omitempty"`
}

func (*FolderPermissionInitParameters) DeepCopy added in v0.8.0

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

func (*FolderPermissionInitParameters) DeepCopyInto added in v0.8.0

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

type FolderPermissionList

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

FolderPermissionList contains a list of FolderPermissions

func (*FolderPermissionList) DeepCopy

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

func (*FolderPermissionList) DeepCopyInto

func (in *FolderPermissionList) DeepCopyInto(out *FolderPermissionList)

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

func (*FolderPermissionList) DeepCopyObject

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

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

func (*FolderPermissionList) GetItems

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

GetItems of this FolderPermissionList.

type FolderPermissionObservation

type FolderPermissionObservation struct {

	// (String) The UID of the folder.
	// The UID of the folder.
	FolderUID *string `json:"folderUid,omitempty" tf:"folder_uid,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	Permissions []FolderPermissionPermissionsObservation `json:"permissions,omitempty" tf:"permissions,omitempty"`
}

func (*FolderPermissionObservation) DeepCopy

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

func (*FolderPermissionObservation) DeepCopyInto

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

type FolderPermissionParameters

type FolderPermissionParameters struct {

	// Reference to a Folder in oss to populate folderUid.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate folderUid.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) The UID of the folder.
	// The UID of the folder.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.OptionalFieldExtractor("uid")
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	// +kubebuilder:validation:Optional
	FolderUID *string `json:"folderUid,omitempty" tf:"folder_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	// +kubebuilder:validation:Optional
	Permissions []FolderPermissionPermissionsParameters `json:"permissions,omitempty" tf:"permissions,omitempty"`
}

func (*FolderPermissionParameters) DeepCopy

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

func (*FolderPermissionParameters) DeepCopyInto

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

type FolderPermissionPermissionsInitParameters added in v0.8.0

type FolderPermissionPermissionsInitParameters struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// (String) Name of the basic role to manage permissions for. Options: Viewer, Editor or Admin.
	// Name of the basic role to manage permissions for. Options: `Viewer`, `Editor` or `Admin`.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRef
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// Reference to a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamRef *v1.Reference `json:"teamRef,omitempty" tf:"-"`

	// Selector for a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRef
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserRef *v1.Reference `json:"userRef,omitempty" tf:"-"`

	// Selector for a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`
}

func (*FolderPermissionPermissionsInitParameters) DeepCopy added in v0.8.0

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

func (*FolderPermissionPermissionsInitParameters) DeepCopyInto added in v0.8.0

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

type FolderPermissionPermissionsObservation

type FolderPermissionPermissionsObservation struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// (String) Name of the basic role to manage permissions for. Options: Viewer, Editor or Admin.
	// Name of the basic role to manage permissions for. Options: `Viewer`, `Editor` or `Admin`.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*FolderPermissionPermissionsObservation) DeepCopy

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

func (*FolderPermissionPermissionsObservation) DeepCopyInto

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

type FolderPermissionPermissionsParameters

type FolderPermissionPermissionsParameters struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	// +kubebuilder:validation:Optional
	Permission *string `json:"permission" tf:"permission,omitempty"`

	// (String) Name of the basic role to manage permissions for. Options: Viewer, Editor or Admin.
	// Name of the basic role to manage permissions for. Options: `Viewer`, `Editor` or `Admin`.
	// +kubebuilder:validation:Optional
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRef
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	// +kubebuilder:validation:Optional
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// Reference to a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamRef *v1.Reference `json:"teamRef,omitempty" tf:"-"`

	// Selector for a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRef
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	// +kubebuilder:validation:Optional
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserRef *v1.Reference `json:"userRef,omitempty" tf:"-"`

	// Selector for a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`
}

func (*FolderPermissionPermissionsParameters) DeepCopy

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

func (*FolderPermissionPermissionsParameters) DeepCopyInto

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

type FolderPermissionSpec

type FolderPermissionSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     FolderPermissionParameters `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 FolderPermissionInitParameters `json:"initProvider,omitempty"`
}

FolderPermissionSpec defines the desired state of FolderPermission

func (*FolderPermissionSpec) DeepCopy

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

func (*FolderPermissionSpec) DeepCopyInto

func (in *FolderPermissionSpec) DeepCopyInto(out *FolderPermissionSpec)

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

type FolderPermissionStatus

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

FolderPermissionStatus defines the observed state of FolderPermission.

func (*FolderPermissionStatus) DeepCopy

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

func (*FolderPermissionStatus) DeepCopyInto

func (in *FolderPermissionStatus) DeepCopyInto(out *FolderPermissionStatus)

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

type FolderSpec

type FolderSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     FolderParameters `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 FolderInitParameters `json:"initProvider,omitempty"`
}

FolderSpec defines the desired state of Folder

func (*FolderSpec) DeepCopy

func (in *FolderSpec) DeepCopy() *FolderSpec

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

func (*FolderSpec) DeepCopyInto

func (in *FolderSpec) DeepCopyInto(out *FolderSpec)

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

type FolderStatus

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

FolderStatus defines the observed state of Folder.

func (*FolderStatus) DeepCopy

func (in *FolderStatus) DeepCopy() *FolderStatus

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

func (*FolderStatus) DeepCopyInto

func (in *FolderStatus) DeepCopyInto(out *FolderStatus)

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

type ItemInitParameters added in v0.11.0

type ItemInitParameters struct {

	// (Number)
	Order *float64 `json:"order,omitempty" tf:"order,omitempty"`

	// (String)
	Title *string `json:"title,omitempty" tf:"title,omitempty"`

	// (String)
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// (String)
	Value *string `json:"value,omitempty" tf:"value,omitempty"`
}

func (*ItemInitParameters) DeepCopy added in v0.11.0

func (in *ItemInitParameters) DeepCopy() *ItemInitParameters

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

func (*ItemInitParameters) DeepCopyInto added in v0.11.0

func (in *ItemInitParameters) DeepCopyInto(out *ItemInitParameters)

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

type ItemObservation added in v0.11.0

type ItemObservation struct {

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

	// (Number)
	Order *float64 `json:"order,omitempty" tf:"order,omitempty"`

	// (String)
	Title *string `json:"title,omitempty" tf:"title,omitempty"`

	// (String)
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// (String)
	Value *string `json:"value,omitempty" tf:"value,omitempty"`
}

func (*ItemObservation) DeepCopy added in v0.11.0

func (in *ItemObservation) DeepCopy() *ItemObservation

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

func (*ItemObservation) DeepCopyInto added in v0.11.0

func (in *ItemObservation) DeepCopyInto(out *ItemObservation)

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

type ItemParameters added in v0.11.0

type ItemParameters struct {

	// (Number)
	// +kubebuilder:validation:Optional
	Order *float64 `json:"order" tf:"order,omitempty"`

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

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

	// (String)
	// +kubebuilder:validation:Optional
	Value *string `json:"value,omitempty" tf:"value,omitempty"`
}

func (*ItemParameters) DeepCopy added in v0.11.0

func (in *ItemParameters) DeepCopy() *ItemParameters

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

func (*ItemParameters) DeepCopyInto added in v0.11.0

func (in *ItemParameters) DeepCopyInto(out *ItemParameters)

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

type LibraryPanel added in v0.11.0

type LibraryPanel 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.modelJson) || (has(self.initProvider) && has(self.initProvider.modelJson))",message="spec.forProvider.modelJson 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"
	Spec   LibraryPanelSpec   `json:"spec"`
	Status LibraryPanelStatus `json:"status,omitempty"`
}

LibraryPanel is the Schema for the LibraryPanels API. Manages Grafana library panels. Official documentation https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-library-panels/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/library_element/ +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 (*LibraryPanel) DeepCopy added in v0.11.0

func (in *LibraryPanel) DeepCopy() *LibraryPanel

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

func (*LibraryPanel) DeepCopyInto added in v0.11.0

func (in *LibraryPanel) DeepCopyInto(out *LibraryPanel)

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

func (*LibraryPanel) DeepCopyObject added in v0.11.0

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

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

func (*LibraryPanel) GetCondition added in v0.11.0

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

GetCondition of this LibraryPanel.

func (*LibraryPanel) GetConnectionDetailsMapping added in v0.11.0

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

GetConnectionDetailsMapping for this LibraryPanel

func (*LibraryPanel) GetDeletionPolicy added in v0.11.0

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

GetDeletionPolicy of this LibraryPanel.

func (*LibraryPanel) GetID added in v0.11.0

func (tr *LibraryPanel) GetID() string

GetID returns ID of underlying Terraform resource of this LibraryPanel

func (*LibraryPanel) GetInitParameters added in v0.11.0

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

GetInitParameters of this LibraryPanel

func (*LibraryPanel) GetManagementPolicies added in v0.11.0

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

GetManagementPolicies of this LibraryPanel.

func (*LibraryPanel) GetMergedParameters added in v0.11.0

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

GetInitParameters of this LibraryPanel

func (*LibraryPanel) GetObservation added in v0.11.0

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

GetObservation of this LibraryPanel

func (*LibraryPanel) GetParameters added in v0.11.0

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

GetParameters of this LibraryPanel

func (*LibraryPanel) GetProviderConfigReference added in v0.11.0

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

GetProviderConfigReference of this LibraryPanel.

func (*LibraryPanel) GetPublishConnectionDetailsTo added in v0.11.0

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

GetPublishConnectionDetailsTo of this LibraryPanel.

func (*LibraryPanel) GetTerraformResourceType added in v0.11.0

func (mg *LibraryPanel) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this LibraryPanel

func (*LibraryPanel) GetTerraformSchemaVersion added in v0.11.0

func (tr *LibraryPanel) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*LibraryPanel) GetWriteConnectionSecretToReference added in v0.11.0

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

GetWriteConnectionSecretToReference of this LibraryPanel.

func (*LibraryPanel) Hub added in v0.11.0

func (tr *LibraryPanel) Hub()

Hub marks this type as a conversion hub.

func (*LibraryPanel) LateInitialize added in v0.11.0

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

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

func (*LibraryPanel) ResolveReferences added in v0.11.0

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

ResolveReferences of this LibraryPanel.

func (*LibraryPanel) SetConditions added in v0.11.0

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

SetConditions of this LibraryPanel.

func (*LibraryPanel) SetDeletionPolicy added in v0.11.0

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

SetDeletionPolicy of this LibraryPanel.

func (*LibraryPanel) SetManagementPolicies added in v0.11.0

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

SetManagementPolicies of this LibraryPanel.

func (*LibraryPanel) SetObservation added in v0.11.0

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

SetObservation for this LibraryPanel

func (*LibraryPanel) SetParameters added in v0.11.0

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

SetParameters for this LibraryPanel

func (*LibraryPanel) SetProviderConfigReference added in v0.11.0

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

SetProviderConfigReference of this LibraryPanel.

func (*LibraryPanel) SetPublishConnectionDetailsTo added in v0.11.0

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

SetPublishConnectionDetailsTo of this LibraryPanel.

func (*LibraryPanel) SetWriteConnectionSecretToReference added in v0.11.0

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

SetWriteConnectionSecretToReference of this LibraryPanel.

type LibraryPanelInitParameters added in v0.11.0

type LibraryPanelInitParameters struct {

	// (String, Deprecated) Deprecated. Use folder_uid instead
	// Deprecated. Use `folder_uid` instead
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`

	// Reference to a Folder in oss to populate folderId.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate folderId.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) Unique ID (UID) of the folder containing the library panel.
	// Unique ID (UID) of the folder containing the library panel.
	FolderUID *string `json:"folderUid,omitempty" tf:"folder_uid,omitempty"`

	// (String) The JSON model for the library panel.
	// The JSON model for the library panel.
	ModelJSON *string `json:"modelJson,omitempty" tf:"model_json,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
	// The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}

func (*LibraryPanelInitParameters) DeepCopy added in v0.11.0

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

func (*LibraryPanelInitParameters) DeepCopyInto added in v0.11.0

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

type LibraryPanelList added in v0.11.0

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

LibraryPanelList contains a list of LibraryPanels

func (*LibraryPanelList) DeepCopy added in v0.11.0

func (in *LibraryPanelList) DeepCopy() *LibraryPanelList

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

func (*LibraryPanelList) DeepCopyInto added in v0.11.0

func (in *LibraryPanelList) DeepCopyInto(out *LibraryPanelList)

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

func (*LibraryPanelList) DeepCopyObject added in v0.11.0

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

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

func (*LibraryPanelList) GetItems added in v0.11.0

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

GetItems of this LibraryPanelList.

type LibraryPanelObservation added in v0.11.0

type LibraryPanelObservation struct {

	// (String) Timestamp when the library panel was created.
	// Timestamp when the library panel was created.
	Created *string `json:"created,omitempty" tf:"created,omitempty"`

	// (List of Number) Numerical IDs of Grafana dashboards containing the library panel.
	// Numerical IDs of Grafana dashboards containing the library panel.
	DashboardIds []*float64 `json:"dashboardIds,omitempty" tf:"dashboard_ids,omitempty"`

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

	// (String, Deprecated) Deprecated. Use folder_uid instead
	// Deprecated. Use `folder_uid` instead
	FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`

	// (String) Name of the folder containing the library panel.
	// Name of the folder containing the library panel.
	FolderName *string `json:"folderName,omitempty" tf:"folder_name,omitempty"`

	// (String) Unique ID (UID) of the folder containing the library panel.
	// Unique ID (UID) of the folder containing the library panel.
	FolderUID *string `json:"folderUid,omitempty" tf:"folder_uid,omitempty"`

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

	// (String) The JSON model for the library panel.
	// The JSON model for the library panel.
	ModelJSON *string `json:"modelJson,omitempty" tf:"model_json,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Number) The numeric ID of the library panel computed by Grafana.
	// The numeric ID of the library panel computed by Grafana.
	PanelID *float64 `json:"panelId,omitempty" tf:"panel_id,omitempty"`

	// (String) Type of the library panel (eg. text).
	// Type of the library panel (eg. text).
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// (String) The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
	// The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`

	// (String) Timestamp when the library panel was last modified.
	// Timestamp when the library panel was last modified.
	Updated *string `json:"updated,omitempty" tf:"updated,omitempty"`

	// (Number) Version of the library panel.
	// Version of the library panel.
	Version *float64 `json:"version,omitempty" tf:"version,omitempty"`
}

func (*LibraryPanelObservation) DeepCopy added in v0.11.0

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

func (*LibraryPanelObservation) DeepCopyInto added in v0.11.0

func (in *LibraryPanelObservation) DeepCopyInto(out *LibraryPanelObservation)

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

type LibraryPanelParameters added in v0.11.0

type LibraryPanelParameters struct {

	// (String, Deprecated) Deprecated. Use folder_uid instead
	// Deprecated. Use `folder_uid` instead
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Folder
	// +crossplane:generate:reference:refFieldName=FolderRef
	// +crossplane:generate:reference:selectorFieldName=FolderSelector
	// +kubebuilder:validation:Optional
	FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`

	// Reference to a Folder in oss to populate folderId.
	// +kubebuilder:validation:Optional
	FolderRef *v1.Reference `json:"folderRef,omitempty" tf:"-"`

	// Selector for a Folder in oss to populate folderId.
	// +kubebuilder:validation:Optional
	FolderSelector *v1.Selector `json:"folderSelector,omitempty" tf:"-"`

	// (String) Unique ID (UID) of the folder containing the library panel.
	// Unique ID (UID) of the folder containing the library panel.
	// +kubebuilder:validation:Optional
	FolderUID *string `json:"folderUid,omitempty" tf:"folder_uid,omitempty"`

	// (String) The JSON model for the library panel.
	// The JSON model for the library panel.
	// +kubebuilder:validation:Optional
	ModelJSON *string `json:"modelJson,omitempty" tf:"model_json,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
	// The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
	// +kubebuilder:validation:Optional
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
}

func (*LibraryPanelParameters) DeepCopy added in v0.11.0

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

func (*LibraryPanelParameters) DeepCopyInto added in v0.11.0

func (in *LibraryPanelParameters) DeepCopyInto(out *LibraryPanelParameters)

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

type LibraryPanelSpec added in v0.11.0

type LibraryPanelSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     LibraryPanelParameters `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 LibraryPanelInitParameters `json:"initProvider,omitempty"`
}

LibraryPanelSpec defines the desired state of LibraryPanel

func (*LibraryPanelSpec) DeepCopy added in v0.11.0

func (in *LibraryPanelSpec) DeepCopy() *LibraryPanelSpec

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

func (*LibraryPanelSpec) DeepCopyInto added in v0.11.0

func (in *LibraryPanelSpec) DeepCopyInto(out *LibraryPanelSpec)

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

type LibraryPanelStatus added in v0.11.0

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

LibraryPanelStatus defines the observed state of LibraryPanel.

func (*LibraryPanelStatus) DeepCopy added in v0.11.0

func (in *LibraryPanelStatus) DeepCopy() *LibraryPanelStatus

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

func (*LibraryPanelStatus) DeepCopyInto added in v0.11.0

func (in *LibraryPanelStatus) DeepCopyInto(out *LibraryPanelStatus)

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

type Oauth2SettingsInitParameters added in v0.11.0

type Oauth2SettingsInitParameters struct {

	// (String) The user information endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The user information endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	APIURL *string `json:"apiUrl,omitempty" tf:"api_url,omitempty"`

	// (Boolean) If enabled, it will automatically sync the Grafana server administrator role.
	// If enabled, it will automatically sync the Grafana server administrator role.
	AllowAssignGrafanaAdmin *bool `json:"allowAssignGrafanaAdmin,omitempty" tf:"allow_assign_grafana_admin,omitempty"`

	// (Boolean) If not enabled, only existing Grafana users can log in using OAuth.
	// If not enabled, only existing Grafana users can log in using OAuth.
	AllowSignUp *bool `json:"allowSignUp,omitempty" tf:"allow_sign_up,omitempty"`

	// or space-separated domains. The user should belong to at least one domain to log in.
	// List of comma- or space-separated domains. The user should belong to at least one domain to log in.
	AllowedDomains *string `json:"allowedDomains,omitempty" tf:"allowed_domains,omitempty"`

	// or space-separated groups. The user should be a member of at least one group to log in. For Generic OAuth, if you configure allowed_groups, you must also configure groups_attribute_path.
	// List of comma- or space-separated groups. The user should be a member of at least one group to log in. For Generic OAuth, if you configure allowed_groups, you must also configure groups_attribute_path.
	AllowedGroups *string `json:"allowedGroups,omitempty" tf:"allowed_groups,omitempty"`

	// or space-separated organizations. The user should be a member of at least one organization to log in.
	// List of comma- or space-separated organizations. The user should be a member of at least one organization to log in.
	AllowedOrganizations *string `json:"allowedOrganizations,omitempty" tf:"allowed_organizations,omitempty"`

	// (String) It determines how client_id and client_secret are sent to Oauth2 provider. Possible values are AutoDetect, InParams, InHeader. Default is AutoDetect.
	// It determines how client_id and client_secret are sent to Oauth2 provider. Possible values are AutoDetect, InParams, InHeader. Default is AutoDetect.
	AuthStyle *string `json:"authStyle,omitempty" tf:"auth_style,omitempty"`

	// (String) The authorization endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The authorization endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	AuthURL *string `json:"authUrl,omitempty" tf:"auth_url,omitempty"`

	// (Boolean) Log in automatically, skipping the login screen.
	// Log in automatically, skipping the login screen.
	AutoLogin *bool `json:"autoLogin,omitempty" tf:"auto_login,omitempty"`

	// (String) The client Id of your OAuth2 app.
	// The client Id of your OAuth2 app.
	ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"`

	// (Map of String) Custom fields to configure for OAuth2 such as the force_use_graph_api field.
	// Custom fields to configure for OAuth2 such as the [force_use_graph_api](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/azuread/#force-fetching-groups-from-microsoft-graph-api) field.
	// +mapType=granular
	Custom map[string]*string `json:"custom,omitempty" tf:"custom,omitempty"`

	// (Boolean) Define allowed groups.
	// Define allowed groups.
	DefineAllowedGroups *bool `json:"defineAllowedGroups,omitempty" tf:"define_allowed_groups,omitempty"`

	// (Boolean) Define allowed teams ids.
	// Define allowed teams ids.
	DefineAllowedTeamsIds *bool `json:"defineAllowedTeamsIds,omitempty" tf:"define_allowed_teams_ids,omitempty"`

	// (String) Name of the key to use for user email lookup within the attributes map of OAuth2 ID token. Only applicable to Generic OAuth.
	// Name of the key to use for user email lookup within the attributes map of OAuth2 ID token. Only applicable to Generic OAuth.
	EmailAttributeName *string `json:"emailAttributeName,omitempty" tf:"email_attribute_name,omitempty"`

	// (String) JMESPath expression to use for user email lookup from the user information. Only applicable to Generic OAuth.
	// JMESPath expression to use for user email lookup from the user information. Only applicable to Generic OAuth.
	EmailAttributePath *string `json:"emailAttributePath,omitempty" tf:"email_attribute_path,omitempty"`

	// (Boolean) If enabled, no scopes will be sent to the OAuth2 provider.
	// If enabled, no scopes will be sent to the OAuth2 provider.
	EmptyScopes *bool `json:"emptyScopes,omitempty" tf:"empty_scopes,omitempty"`

	// (Boolean) Define whether this configuration is enabled for the specified provider. Defaults to true.
	// Define whether this configuration is enabled for the specified provider. Defaults to `true`.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// (String) JMESPath expression to use for user group lookup. If you configure allowed_groups, you must also configure groups_attribute_path.
	// JMESPath expression to use for user group lookup. If you configure allowed_groups, you must also configure groups_attribute_path.
	GroupsAttributePath *string `json:"groupsAttributePath,omitempty" tf:"groups_attribute_path,omitempty"`

	// (String) The name of the key used to extract the ID token from the returned OAuth2 token. Only applicable to Generic OAuth.
	// The name of the key used to extract the ID token from the returned OAuth2 token. Only applicable to Generic OAuth.
	IDTokenAttributeName *string `json:"idTokenAttributeName,omitempty" tf:"id_token_attribute_name,omitempty"`

	// (String) JMESPath expression to use for user login lookup from the user ID token. Only applicable to Generic OAuth.
	// JMESPath expression to use for user login lookup from the user ID token. Only applicable to Generic OAuth.
	LoginAttributePath *string `json:"loginAttributePath,omitempty" tf:"login_attribute_path,omitempty"`

	// (String) Helpful if you use more than one identity providers or SSO protocols.
	// Helpful if you use more than one identity providers or SSO protocols.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
	// JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
	NameAttributePath *string `json:"nameAttributePath,omitempty" tf:"name_attribute_path,omitempty"`

	// (String) JMESPath expression to use for Grafana role lookup.
	// JMESPath expression to use for Grafana role lookup.
	RoleAttributePath *string `json:"roleAttributePath,omitempty" tf:"role_attribute_path,omitempty"`

	// (Boolean) If enabled, denies user login if the Grafana role cannot be extracted using Role attribute path.
	// If enabled, denies user login if the Grafana role cannot be extracted using Role attribute path.
	RoleAttributeStrict *bool `json:"roleAttributeStrict,omitempty" tf:"role_attribute_strict,omitempty"`

	// or space-separated OAuth2 scopes.
	// List of comma- or space-separated OAuth2 scopes.
	Scopes *string `json:"scopes,omitempty" tf:"scopes,omitempty"`

	// (String) The URL to redirect the user to after signing out from Grafana.
	// The URL to redirect the user to after signing out from Grafana.
	SignoutRedirectURL *string `json:"signoutRedirectUrl,omitempty" tf:"signout_redirect_url,omitempty"`

	// (Boolean) Prevent synchronizing users’ organization roles from your IdP.
	// Prevent synchronizing users’ organization roles from your IdP.
	SkipOrgRoleSync *bool `json:"skipOrgRoleSync,omitempty" tf:"skip_org_role_sync,omitempty"`

	// (String) The path to the trusted certificate authority list. Is not applicable on Grafana Cloud.
	// The path to the trusted certificate authority list. Is not applicable on Grafana Cloud.
	TLSClientCA *string `json:"tlsClientCa,omitempty" tf:"tls_client_ca,omitempty"`

	// (String) The path to the certificate. Is not applicable on Grafana Cloud.
	// The path to the certificate. Is not applicable on Grafana Cloud.
	TLSClientCert *string `json:"tlsClientCert,omitempty" tf:"tls_client_cert,omitempty"`

	// (String) The path to the key. Is not applicable on Grafana Cloud.
	// The path to the key. Is not applicable on Grafana Cloud.
	TLSClientKey *string `json:"tlsClientKey,omitempty" tf:"tls_client_key,omitempty"`

	// in-the-middle attacks.
	// If enabled, the client accepts any certificate presented by the server and any host name in that certificate. You should only use this for testing, because this mode leaves SSL/TLS susceptible to man-in-the-middle attacks.
	TLSSkipVerifyInsecure *bool `json:"tlsSkipVerifyInsecure,omitempty" tf:"tls_skip_verify_insecure,omitempty"`

	// (String) String list of Team Ids. If set, the user must be a member of one of the given teams to log in. If you configure team_ids, you must also configure teams_url and team_ids_attribute_path.
	// String list of Team Ids. If set, the user must be a member of one of the given teams to log in. If you configure team_ids, you must also configure teams_url and team_ids_attribute_path.
	TeamIds *string `json:"teamIds,omitempty" tf:"team_ids,omitempty"`

	// (String) The JMESPath expression to use for Grafana Team Id lookup within the results returned by the teams_url endpoint. Only applicable to Generic OAuth.
	// The JMESPath expression to use for Grafana Team Id lookup within the results returned by the teams_url endpoint. Only applicable to Generic OAuth.
	TeamIdsAttributePath *string `json:"teamIdsAttributePath,omitempty" tf:"team_ids_attribute_path,omitempty"`

	// (String) The URL used to query for Team Ids. If not set, the default value is /teams. If you configure teams_url, you must also configure team_ids_attribute_path. Only applicable to Generic OAuth.
	// The URL used to query for Team Ids. If not set, the default value is /teams. If you configure teams_url, you must also configure team_ids_attribute_path. Only applicable to Generic OAuth.
	TeamsURL *string `json:"teamsUrl,omitempty" tf:"teams_url,omitempty"`

	// (String) The token endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The token endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	TokenURL *string `json:"tokenUrl,omitempty" tf:"token_url,omitempty"`

	// (Boolean) If enabled, Grafana will use Proof Key for Code Exchange (PKCE) with the OAuth2 Authorization Code Grant.
	// If enabled, Grafana will use Proof Key for Code Exchange (PKCE) with the OAuth2 Authorization Code Grant.
	UsePkce *bool `json:"usePkce,omitempty" tf:"use_pkce,omitempty"`

	// (Boolean) If enabled, Grafana will fetch a new access token using the refresh token provided by the OAuth2 provider.
	// If enabled, Grafana will fetch a new access token using the refresh token provided by the OAuth2 provider.
	UseRefreshToken *bool `json:"useRefreshToken,omitempty" tf:"use_refresh_token,omitempty"`
}

func (*Oauth2SettingsInitParameters) DeepCopy added in v0.11.0

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

func (*Oauth2SettingsInitParameters) DeepCopyInto added in v0.11.0

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

type Oauth2SettingsObservation added in v0.11.0

type Oauth2SettingsObservation struct {

	// (String) The user information endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The user information endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	APIURL *string `json:"apiUrl,omitempty" tf:"api_url,omitempty"`

	// (Boolean) If enabled, it will automatically sync the Grafana server administrator role.
	// If enabled, it will automatically sync the Grafana server administrator role.
	AllowAssignGrafanaAdmin *bool `json:"allowAssignGrafanaAdmin,omitempty" tf:"allow_assign_grafana_admin,omitempty"`

	// (Boolean) If not enabled, only existing Grafana users can log in using OAuth.
	// If not enabled, only existing Grafana users can log in using OAuth.
	AllowSignUp *bool `json:"allowSignUp,omitempty" tf:"allow_sign_up,omitempty"`

	// or space-separated domains. The user should belong to at least one domain to log in.
	// List of comma- or space-separated domains. The user should belong to at least one domain to log in.
	AllowedDomains *string `json:"allowedDomains,omitempty" tf:"allowed_domains,omitempty"`

	// or space-separated groups. The user should be a member of at least one group to log in. For Generic OAuth, if you configure allowed_groups, you must also configure groups_attribute_path.
	// List of comma- or space-separated groups. The user should be a member of at least one group to log in. For Generic OAuth, if you configure allowed_groups, you must also configure groups_attribute_path.
	AllowedGroups *string `json:"allowedGroups,omitempty" tf:"allowed_groups,omitempty"`

	// or space-separated organizations. The user should be a member of at least one organization to log in.
	// List of comma- or space-separated organizations. The user should be a member of at least one organization to log in.
	AllowedOrganizations *string `json:"allowedOrganizations,omitempty" tf:"allowed_organizations,omitempty"`

	// (String) It determines how client_id and client_secret are sent to Oauth2 provider. Possible values are AutoDetect, InParams, InHeader. Default is AutoDetect.
	// It determines how client_id and client_secret are sent to Oauth2 provider. Possible values are AutoDetect, InParams, InHeader. Default is AutoDetect.
	AuthStyle *string `json:"authStyle,omitempty" tf:"auth_style,omitempty"`

	// (String) The authorization endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The authorization endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	AuthURL *string `json:"authUrl,omitempty" tf:"auth_url,omitempty"`

	// (Boolean) Log in automatically, skipping the login screen.
	// Log in automatically, skipping the login screen.
	AutoLogin *bool `json:"autoLogin,omitempty" tf:"auto_login,omitempty"`

	// (String) The client Id of your OAuth2 app.
	// The client Id of your OAuth2 app.
	ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"`

	// (Map of String) Custom fields to configure for OAuth2 such as the force_use_graph_api field.
	// Custom fields to configure for OAuth2 such as the [force_use_graph_api](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/azuread/#force-fetching-groups-from-microsoft-graph-api) field.
	// +mapType=granular
	Custom map[string]*string `json:"custom,omitempty" tf:"custom,omitempty"`

	// (Boolean) Define allowed groups.
	// Define allowed groups.
	DefineAllowedGroups *bool `json:"defineAllowedGroups,omitempty" tf:"define_allowed_groups,omitempty"`

	// (Boolean) Define allowed teams ids.
	// Define allowed teams ids.
	DefineAllowedTeamsIds *bool `json:"defineAllowedTeamsIds,omitempty" tf:"define_allowed_teams_ids,omitempty"`

	// (String) Name of the key to use for user email lookup within the attributes map of OAuth2 ID token. Only applicable to Generic OAuth.
	// Name of the key to use for user email lookup within the attributes map of OAuth2 ID token. Only applicable to Generic OAuth.
	EmailAttributeName *string `json:"emailAttributeName,omitempty" tf:"email_attribute_name,omitempty"`

	// (String) JMESPath expression to use for user email lookup from the user information. Only applicable to Generic OAuth.
	// JMESPath expression to use for user email lookup from the user information. Only applicable to Generic OAuth.
	EmailAttributePath *string `json:"emailAttributePath,omitempty" tf:"email_attribute_path,omitempty"`

	// (Boolean) If enabled, no scopes will be sent to the OAuth2 provider.
	// If enabled, no scopes will be sent to the OAuth2 provider.
	EmptyScopes *bool `json:"emptyScopes,omitempty" tf:"empty_scopes,omitempty"`

	// (Boolean) Define whether this configuration is enabled for the specified provider. Defaults to true.
	// Define whether this configuration is enabled for the specified provider. Defaults to `true`.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// (String) JMESPath expression to use for user group lookup. If you configure allowed_groups, you must also configure groups_attribute_path.
	// JMESPath expression to use for user group lookup. If you configure allowed_groups, you must also configure groups_attribute_path.
	GroupsAttributePath *string `json:"groupsAttributePath,omitempty" tf:"groups_attribute_path,omitempty"`

	// (String) The name of the key used to extract the ID token from the returned OAuth2 token. Only applicable to Generic OAuth.
	// The name of the key used to extract the ID token from the returned OAuth2 token. Only applicable to Generic OAuth.
	IDTokenAttributeName *string `json:"idTokenAttributeName,omitempty" tf:"id_token_attribute_name,omitempty"`

	// (String) JMESPath expression to use for user login lookup from the user ID token. Only applicable to Generic OAuth.
	// JMESPath expression to use for user login lookup from the user ID token. Only applicable to Generic OAuth.
	LoginAttributePath *string `json:"loginAttributePath,omitempty" tf:"login_attribute_path,omitempty"`

	// (String) Helpful if you use more than one identity providers or SSO protocols.
	// Helpful if you use more than one identity providers or SSO protocols.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
	// JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
	NameAttributePath *string `json:"nameAttributePath,omitempty" tf:"name_attribute_path,omitempty"`

	// (String) JMESPath expression to use for Grafana role lookup.
	// JMESPath expression to use for Grafana role lookup.
	RoleAttributePath *string `json:"roleAttributePath,omitempty" tf:"role_attribute_path,omitempty"`

	// (Boolean) If enabled, denies user login if the Grafana role cannot be extracted using Role attribute path.
	// If enabled, denies user login if the Grafana role cannot be extracted using Role attribute path.
	RoleAttributeStrict *bool `json:"roleAttributeStrict,omitempty" tf:"role_attribute_strict,omitempty"`

	// or space-separated OAuth2 scopes.
	// List of comma- or space-separated OAuth2 scopes.
	Scopes *string `json:"scopes,omitempty" tf:"scopes,omitempty"`

	// (String) The URL to redirect the user to after signing out from Grafana.
	// The URL to redirect the user to after signing out from Grafana.
	SignoutRedirectURL *string `json:"signoutRedirectUrl,omitempty" tf:"signout_redirect_url,omitempty"`

	// (Boolean) Prevent synchronizing users’ organization roles from your IdP.
	// Prevent synchronizing users’ organization roles from your IdP.
	SkipOrgRoleSync *bool `json:"skipOrgRoleSync,omitempty" tf:"skip_org_role_sync,omitempty"`

	// (String) The path to the trusted certificate authority list. Is not applicable on Grafana Cloud.
	// The path to the trusted certificate authority list. Is not applicable on Grafana Cloud.
	TLSClientCA *string `json:"tlsClientCa,omitempty" tf:"tls_client_ca,omitempty"`

	// (String) The path to the certificate. Is not applicable on Grafana Cloud.
	// The path to the certificate. Is not applicable on Grafana Cloud.
	TLSClientCert *string `json:"tlsClientCert,omitempty" tf:"tls_client_cert,omitempty"`

	// (String) The path to the key. Is not applicable on Grafana Cloud.
	// The path to the key. Is not applicable on Grafana Cloud.
	TLSClientKey *string `json:"tlsClientKey,omitempty" tf:"tls_client_key,omitempty"`

	// in-the-middle attacks.
	// If enabled, the client accepts any certificate presented by the server and any host name in that certificate. You should only use this for testing, because this mode leaves SSL/TLS susceptible to man-in-the-middle attacks.
	TLSSkipVerifyInsecure *bool `json:"tlsSkipVerifyInsecure,omitempty" tf:"tls_skip_verify_insecure,omitempty"`

	// (String) String list of Team Ids. If set, the user must be a member of one of the given teams to log in. If you configure team_ids, you must also configure teams_url and team_ids_attribute_path.
	// String list of Team Ids. If set, the user must be a member of one of the given teams to log in. If you configure team_ids, you must also configure teams_url and team_ids_attribute_path.
	TeamIds *string `json:"teamIds,omitempty" tf:"team_ids,omitempty"`

	// (String) The JMESPath expression to use for Grafana Team Id lookup within the results returned by the teams_url endpoint. Only applicable to Generic OAuth.
	// The JMESPath expression to use for Grafana Team Id lookup within the results returned by the teams_url endpoint. Only applicable to Generic OAuth.
	TeamIdsAttributePath *string `json:"teamIdsAttributePath,omitempty" tf:"team_ids_attribute_path,omitempty"`

	// (String) The URL used to query for Team Ids. If not set, the default value is /teams. If you configure teams_url, you must also configure team_ids_attribute_path. Only applicable to Generic OAuth.
	// The URL used to query for Team Ids. If not set, the default value is /teams. If you configure teams_url, you must also configure team_ids_attribute_path. Only applicable to Generic OAuth.
	TeamsURL *string `json:"teamsUrl,omitempty" tf:"teams_url,omitempty"`

	// (String) The token endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The token endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	TokenURL *string `json:"tokenUrl,omitempty" tf:"token_url,omitempty"`

	// (Boolean) If enabled, Grafana will use Proof Key for Code Exchange (PKCE) with the OAuth2 Authorization Code Grant.
	// If enabled, Grafana will use Proof Key for Code Exchange (PKCE) with the OAuth2 Authorization Code Grant.
	UsePkce *bool `json:"usePkce,omitempty" tf:"use_pkce,omitempty"`

	// (Boolean) If enabled, Grafana will fetch a new access token using the refresh token provided by the OAuth2 provider.
	// If enabled, Grafana will fetch a new access token using the refresh token provided by the OAuth2 provider.
	UseRefreshToken *bool `json:"useRefreshToken,omitempty" tf:"use_refresh_token,omitempty"`
}

func (*Oauth2SettingsObservation) DeepCopy added in v0.11.0

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

func (*Oauth2SettingsObservation) DeepCopyInto added in v0.11.0

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

type Oauth2SettingsParameters added in v0.11.0

type Oauth2SettingsParameters struct {

	// (String) The user information endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The user information endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// +kubebuilder:validation:Optional
	APIURL *string `json:"apiUrl,omitempty" tf:"api_url,omitempty"`

	// (Boolean) If enabled, it will automatically sync the Grafana server administrator role.
	// If enabled, it will automatically sync the Grafana server administrator role.
	// +kubebuilder:validation:Optional
	AllowAssignGrafanaAdmin *bool `json:"allowAssignGrafanaAdmin,omitempty" tf:"allow_assign_grafana_admin,omitempty"`

	// (Boolean) If not enabled, only existing Grafana users can log in using OAuth.
	// If not enabled, only existing Grafana users can log in using OAuth.
	// +kubebuilder:validation:Optional
	AllowSignUp *bool `json:"allowSignUp,omitempty" tf:"allow_sign_up,omitempty"`

	// or space-separated domains. The user should belong to at least one domain to log in.
	// List of comma- or space-separated domains. The user should belong to at least one domain to log in.
	// +kubebuilder:validation:Optional
	AllowedDomains *string `json:"allowedDomains,omitempty" tf:"allowed_domains,omitempty"`

	// or space-separated groups. The user should be a member of at least one group to log in. For Generic OAuth, if you configure allowed_groups, you must also configure groups_attribute_path.
	// List of comma- or space-separated groups. The user should be a member of at least one group to log in. For Generic OAuth, if you configure allowed_groups, you must also configure groups_attribute_path.
	// +kubebuilder:validation:Optional
	AllowedGroups *string `json:"allowedGroups,omitempty" tf:"allowed_groups,omitempty"`

	// or space-separated organizations. The user should be a member of at least one organization to log in.
	// List of comma- or space-separated organizations. The user should be a member of at least one organization to log in.
	// +kubebuilder:validation:Optional
	AllowedOrganizations *string `json:"allowedOrganizations,omitempty" tf:"allowed_organizations,omitempty"`

	// (String) It determines how client_id and client_secret are sent to Oauth2 provider. Possible values are AutoDetect, InParams, InHeader. Default is AutoDetect.
	// It determines how client_id and client_secret are sent to Oauth2 provider. Possible values are AutoDetect, InParams, InHeader. Default is AutoDetect.
	// +kubebuilder:validation:Optional
	AuthStyle *string `json:"authStyle,omitempty" tf:"auth_style,omitempty"`

	// (String) The authorization endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The authorization endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// +kubebuilder:validation:Optional
	AuthURL *string `json:"authUrl,omitempty" tf:"auth_url,omitempty"`

	// (Boolean) Log in automatically, skipping the login screen.
	// Log in automatically, skipping the login screen.
	// +kubebuilder:validation:Optional
	AutoLogin *bool `json:"autoLogin,omitempty" tf:"auto_login,omitempty"`

	// (String) The client Id of your OAuth2 app.
	// The client Id of your OAuth2 app.
	// +kubebuilder:validation:Optional
	ClientID *string `json:"clientId" tf:"client_id,omitempty"`

	// (String, Sensitive) The client secret of your OAuth2 app.
	// The client secret of your OAuth2 app.
	// +kubebuilder:validation:Optional
	ClientSecretSecretRef *v1.SecretKeySelector `json:"clientSecretSecretRef,omitempty" tf:"-"`

	// (Map of String) Custom fields to configure for OAuth2 such as the force_use_graph_api field.
	// Custom fields to configure for OAuth2 such as the [force_use_graph_api](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/azuread/#force-fetching-groups-from-microsoft-graph-api) field.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Custom map[string]*string `json:"custom,omitempty" tf:"custom,omitempty"`

	// (Boolean) Define allowed groups.
	// Define allowed groups.
	// +kubebuilder:validation:Optional
	DefineAllowedGroups *bool `json:"defineAllowedGroups,omitempty" tf:"define_allowed_groups,omitempty"`

	// (Boolean) Define allowed teams ids.
	// Define allowed teams ids.
	// +kubebuilder:validation:Optional
	DefineAllowedTeamsIds *bool `json:"defineAllowedTeamsIds,omitempty" tf:"define_allowed_teams_ids,omitempty"`

	// (String) Name of the key to use for user email lookup within the attributes map of OAuth2 ID token. Only applicable to Generic OAuth.
	// Name of the key to use for user email lookup within the attributes map of OAuth2 ID token. Only applicable to Generic OAuth.
	// +kubebuilder:validation:Optional
	EmailAttributeName *string `json:"emailAttributeName,omitempty" tf:"email_attribute_name,omitempty"`

	// (String) JMESPath expression to use for user email lookup from the user information. Only applicable to Generic OAuth.
	// JMESPath expression to use for user email lookup from the user information. Only applicable to Generic OAuth.
	// +kubebuilder:validation:Optional
	EmailAttributePath *string `json:"emailAttributePath,omitempty" tf:"email_attribute_path,omitempty"`

	// (Boolean) If enabled, no scopes will be sent to the OAuth2 provider.
	// If enabled, no scopes will be sent to the OAuth2 provider.
	// +kubebuilder:validation:Optional
	EmptyScopes *bool `json:"emptyScopes,omitempty" tf:"empty_scopes,omitempty"`

	// (Boolean) Define whether this configuration is enabled for the specified provider. Defaults to true.
	// Define whether this configuration is enabled for the specified provider. Defaults to `true`.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// (String) JMESPath expression to use for user group lookup. If you configure allowed_groups, you must also configure groups_attribute_path.
	// JMESPath expression to use for user group lookup. If you configure allowed_groups, you must also configure groups_attribute_path.
	// +kubebuilder:validation:Optional
	GroupsAttributePath *string `json:"groupsAttributePath,omitempty" tf:"groups_attribute_path,omitempty"`

	// (String) The name of the key used to extract the ID token from the returned OAuth2 token. Only applicable to Generic OAuth.
	// The name of the key used to extract the ID token from the returned OAuth2 token. Only applicable to Generic OAuth.
	// +kubebuilder:validation:Optional
	IDTokenAttributeName *string `json:"idTokenAttributeName,omitempty" tf:"id_token_attribute_name,omitempty"`

	// (String) JMESPath expression to use for user login lookup from the user ID token. Only applicable to Generic OAuth.
	// JMESPath expression to use for user login lookup from the user ID token. Only applicable to Generic OAuth.
	// +kubebuilder:validation:Optional
	LoginAttributePath *string `json:"loginAttributePath,omitempty" tf:"login_attribute_path,omitempty"`

	// (String) Helpful if you use more than one identity providers or SSO protocols.
	// Helpful if you use more than one identity providers or SSO protocols.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
	// JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
	// +kubebuilder:validation:Optional
	NameAttributePath *string `json:"nameAttributePath,omitempty" tf:"name_attribute_path,omitempty"`

	// (String) JMESPath expression to use for Grafana role lookup.
	// JMESPath expression to use for Grafana role lookup.
	// +kubebuilder:validation:Optional
	RoleAttributePath *string `json:"roleAttributePath,omitempty" tf:"role_attribute_path,omitempty"`

	// (Boolean) If enabled, denies user login if the Grafana role cannot be extracted using Role attribute path.
	// If enabled, denies user login if the Grafana role cannot be extracted using Role attribute path.
	// +kubebuilder:validation:Optional
	RoleAttributeStrict *bool `json:"roleAttributeStrict,omitempty" tf:"role_attribute_strict,omitempty"`

	// or space-separated OAuth2 scopes.
	// List of comma- or space-separated OAuth2 scopes.
	// +kubebuilder:validation:Optional
	Scopes *string `json:"scopes,omitempty" tf:"scopes,omitempty"`

	// (String) The URL to redirect the user to after signing out from Grafana.
	// The URL to redirect the user to after signing out from Grafana.
	// +kubebuilder:validation:Optional
	SignoutRedirectURL *string `json:"signoutRedirectUrl,omitempty" tf:"signout_redirect_url,omitempty"`

	// (Boolean) Prevent synchronizing users’ organization roles from your IdP.
	// Prevent synchronizing users’ organization roles from your IdP.
	// +kubebuilder:validation:Optional
	SkipOrgRoleSync *bool `json:"skipOrgRoleSync,omitempty" tf:"skip_org_role_sync,omitempty"`

	// (String) The path to the trusted certificate authority list. Is not applicable on Grafana Cloud.
	// The path to the trusted certificate authority list. Is not applicable on Grafana Cloud.
	// +kubebuilder:validation:Optional
	TLSClientCA *string `json:"tlsClientCa,omitempty" tf:"tls_client_ca,omitempty"`

	// (String) The path to the certificate. Is not applicable on Grafana Cloud.
	// The path to the certificate. Is not applicable on Grafana Cloud.
	// +kubebuilder:validation:Optional
	TLSClientCert *string `json:"tlsClientCert,omitempty" tf:"tls_client_cert,omitempty"`

	// (String) The path to the key. Is not applicable on Grafana Cloud.
	// The path to the key. Is not applicable on Grafana Cloud.
	// +kubebuilder:validation:Optional
	TLSClientKey *string `json:"tlsClientKey,omitempty" tf:"tls_client_key,omitempty"`

	// in-the-middle attacks.
	// If enabled, the client accepts any certificate presented by the server and any host name in that certificate. You should only use this for testing, because this mode leaves SSL/TLS susceptible to man-in-the-middle attacks.
	// +kubebuilder:validation:Optional
	TLSSkipVerifyInsecure *bool `json:"tlsSkipVerifyInsecure,omitempty" tf:"tls_skip_verify_insecure,omitempty"`

	// (String) String list of Team Ids. If set, the user must be a member of one of the given teams to log in. If you configure team_ids, you must also configure teams_url and team_ids_attribute_path.
	// String list of Team Ids. If set, the user must be a member of one of the given teams to log in. If you configure team_ids, you must also configure teams_url and team_ids_attribute_path.
	// +kubebuilder:validation:Optional
	TeamIds *string `json:"teamIds,omitempty" tf:"team_ids,omitempty"`

	// (String) The JMESPath expression to use for Grafana Team Id lookup within the results returned by the teams_url endpoint. Only applicable to Generic OAuth.
	// The JMESPath expression to use for Grafana Team Id lookup within the results returned by the teams_url endpoint. Only applicable to Generic OAuth.
	// +kubebuilder:validation:Optional
	TeamIdsAttributePath *string `json:"teamIdsAttributePath,omitempty" tf:"team_ids_attribute_path,omitempty"`

	// (String) The URL used to query for Team Ids. If not set, the default value is /teams. If you configure teams_url, you must also configure team_ids_attribute_path. Only applicable to Generic OAuth.
	// The URL used to query for Team Ids. If not set, the default value is /teams. If you configure teams_url, you must also configure team_ids_attribute_path. Only applicable to Generic OAuth.
	// +kubebuilder:validation:Optional
	TeamsURL *string `json:"teamsUrl,omitempty" tf:"teams_url,omitempty"`

	// (String) The token endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// The token endpoint of your OAuth2 provider. Required for azuread, okta and generic_oauth providers.
	// +kubebuilder:validation:Optional
	TokenURL *string `json:"tokenUrl,omitempty" tf:"token_url,omitempty"`

	// (Boolean) If enabled, Grafana will use Proof Key for Code Exchange (PKCE) with the OAuth2 Authorization Code Grant.
	// If enabled, Grafana will use Proof Key for Code Exchange (PKCE) with the OAuth2 Authorization Code Grant.
	// +kubebuilder:validation:Optional
	UsePkce *bool `json:"usePkce,omitempty" tf:"use_pkce,omitempty"`

	// (Boolean) If enabled, Grafana will fetch a new access token using the refresh token provided by the OAuth2 provider.
	// If enabled, Grafana will fetch a new access token using the refresh token provided by the OAuth2 provider.
	// +kubebuilder:validation:Optional
	UseRefreshToken *bool `json:"useRefreshToken,omitempty" tf:"use_refresh_token,omitempty"`
}

func (*Oauth2SettingsParameters) DeepCopy added in v0.11.0

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

func (*Oauth2SettingsParameters) DeepCopyInto added in v0.11.0

func (in *Oauth2SettingsParameters) DeepCopyInto(out *Oauth2SettingsParameters)

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

type Organization added in v0.2.0

type Organization 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   OrganizationSpec   `json:"spec"`
	Status OrganizationStatus `json:"status,omitempty"`
}

Organization is the Schema for the Organizations API. Official documentation https://grafana.com/docs/grafana/latest/administration/organization-management/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/org/ This resource represents an instance-scoped resource and uses Grafana's admin APIs. It does not work with API tokens or service accounts which are org-scoped. You must use basic auth. +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 (*Organization) DeepCopy added in v0.2.0

func (in *Organization) DeepCopy() *Organization

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

func (*Organization) DeepCopyInto added in v0.2.0

func (in *Organization) DeepCopyInto(out *Organization)

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

func (*Organization) DeepCopyObject added in v0.2.0

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

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

func (*Organization) GetCondition added in v0.2.0

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

GetCondition of this Organization.

func (*Organization) GetConnectionDetailsMapping added in v0.2.0

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

GetConnectionDetailsMapping for this Organization

func (*Organization) GetDeletionPolicy added in v0.2.0

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

GetDeletionPolicy of this Organization.

func (*Organization) GetID added in v0.2.0

func (tr *Organization) GetID() string

GetID returns ID of underlying Terraform resource of this Organization

func (*Organization) GetInitParameters added in v0.8.0

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

GetInitParameters of this Organization

func (*Organization) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this Organization.

func (*Organization) GetMergedParameters added in v0.10.1

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

GetInitParameters of this Organization

func (*Organization) GetObservation added in v0.2.0

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

GetObservation of this Organization

func (*Organization) GetParameters added in v0.2.0

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

GetParameters of this Organization

func (*Organization) GetProviderConfigReference added in v0.2.0

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

GetProviderConfigReference of this Organization.

func (*Organization) GetPublishConnectionDetailsTo added in v0.2.0

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

GetPublishConnectionDetailsTo of this Organization.

func (*Organization) GetTerraformResourceType added in v0.2.0

func (mg *Organization) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Organization

func (*Organization) GetTerraformSchemaVersion added in v0.2.0

func (tr *Organization) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Organization) GetWriteConnectionSecretToReference added in v0.2.0

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

GetWriteConnectionSecretToReference of this Organization.

func (*Organization) Hub added in v0.10.1

func (tr *Organization) Hub()

Hub marks this type as a conversion hub.

func (*Organization) LateInitialize added in v0.2.0

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

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

func (*Organization) SetConditions added in v0.2.0

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

SetConditions of this Organization.

func (*Organization) SetDeletionPolicy added in v0.2.0

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

SetDeletionPolicy of this Organization.

func (*Organization) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this Organization.

func (*Organization) SetObservation added in v0.2.0

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

SetObservation for this Organization

func (*Organization) SetParameters added in v0.2.0

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

SetParameters for this Organization

func (*Organization) SetProviderConfigReference added in v0.2.0

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

SetProviderConfigReference of this Organization.

func (*Organization) SetPublishConnectionDetailsTo added in v0.2.0

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

SetPublishConnectionDetailsTo of this Organization.

func (*Organization) SetWriteConnectionSecretToReference added in v0.2.0

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

SetWriteConnectionSecretToReference of this Organization.

type OrganizationInitParameters added in v0.8.0

type OrganizationInitParameters struct {

	// (String) The login name of the configured default admin user for the Grafana
	// installation. If unset, this value defaults to admin, the Grafana default.
	// Defaults to admin.
	// The login name of the configured default admin user for the Grafana
	// installation. If unset, this value defaults to admin, the Grafana default.
	// Defaults to `admin`.
	AdminUser *string `json:"adminUser,omitempty" tf:"admin_user,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given admin
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given admin
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +listType=set
	Admins []*string `json:"admins,omitempty" tf:"admins,omitempty"`

	// (Boolean) Whether or not to create Grafana users specified in the organization's
	// membership if they don't already exist in Grafana. If unspecified, this
	// parameter defaults to true, creating placeholder users with the name, login,
	// and email set to the email of the user, and a random password. Setting this
	// option to false will cause an error to be thrown for any users that do not
	// already exist in Grafana.
	// Defaults to true.
	// Whether or not to create Grafana users specified in the organization's
	// membership if they don't already exist in Grafana. If unspecified, this
	// parameter defaults to true, creating placeholder users with the name, login,
	// and email set to the email of the user, and a random password. Setting this
	// option to false will cause an error to be thrown for any users that do not
	// already exist in Grafana.
	// Defaults to `true`.
	CreateUsers *bool `json:"createUsers,omitempty" tf:"create_users,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given editor
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given editor
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +listType=set
	Editors []*string `json:"editors,omitempty" tf:"editors,omitempty"`

	// (String) The display name for the Grafana organization created.
	// The display name for the Grafana organization created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given none access to the organization.
	// Note: users specified here must already exist in Grafana, unless 'create_users' is
	// set to true. This feature is only available in Grafana 10.2+.
	// A list of email addresses corresponding to users who should be given none access to the organization.
	// Note: users specified here must already exist in Grafana, unless 'create_users' is
	// set to true. This feature is only available in Grafana 10.2+.
	// +listType=set
	UsersWithoutAccess []*string `json:"usersWithoutAccess,omitempty" tf:"users_without_access,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given viewer
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given viewer
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +listType=set
	Viewers []*string `json:"viewers,omitempty" tf:"viewers,omitempty"`
}

func (*OrganizationInitParameters) DeepCopy added in v0.8.0

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

func (*OrganizationInitParameters) DeepCopyInto added in v0.8.0

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

type OrganizationList added in v0.2.0

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

OrganizationList contains a list of Organizations

func (*OrganizationList) DeepCopy added in v0.2.0

func (in *OrganizationList) DeepCopy() *OrganizationList

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

func (*OrganizationList) DeepCopyInto added in v0.2.0

func (in *OrganizationList) DeepCopyInto(out *OrganizationList)

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

func (*OrganizationList) DeepCopyObject added in v0.2.0

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

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

func (*OrganizationList) GetItems added in v0.2.0

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

GetItems of this OrganizationList.

type OrganizationObservation added in v0.2.0

type OrganizationObservation struct {

	// (String) The login name of the configured default admin user for the Grafana
	// installation. If unset, this value defaults to admin, the Grafana default.
	// Defaults to admin.
	// The login name of the configured default admin user for the Grafana
	// installation. If unset, this value defaults to admin, the Grafana default.
	// Defaults to `admin`.
	AdminUser *string `json:"adminUser,omitempty" tf:"admin_user,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given admin
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given admin
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +listType=set
	Admins []*string `json:"admins,omitempty" tf:"admins,omitempty"`

	// (Boolean) Whether or not to create Grafana users specified in the organization's
	// membership if they don't already exist in Grafana. If unspecified, this
	// parameter defaults to true, creating placeholder users with the name, login,
	// and email set to the email of the user, and a random password. Setting this
	// option to false will cause an error to be thrown for any users that do not
	// already exist in Grafana.
	// Defaults to true.
	// Whether or not to create Grafana users specified in the organization's
	// membership if they don't already exist in Grafana. If unspecified, this
	// parameter defaults to true, creating placeholder users with the name, login,
	// and email set to the email of the user, and a random password. Setting this
	// option to false will cause an error to be thrown for any users that do not
	// already exist in Grafana.
	// Defaults to `true`.
	CreateUsers *bool `json:"createUsers,omitempty" tf:"create_users,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given editor
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given editor
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +listType=set
	Editors []*string `json:"editors,omitempty" tf:"editors,omitempty"`

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

	// (String) The display name for the Grafana organization created.
	// The display name for the Grafana organization created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number) The organization id assigned to this organization by Grafana.
	// The organization id assigned to this organization by Grafana.
	OrgID *float64 `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given none access to the organization.
	// Note: users specified here must already exist in Grafana, unless 'create_users' is
	// set to true. This feature is only available in Grafana 10.2+.
	// A list of email addresses corresponding to users who should be given none access to the organization.
	// Note: users specified here must already exist in Grafana, unless 'create_users' is
	// set to true. This feature is only available in Grafana 10.2+.
	// +listType=set
	UsersWithoutAccess []*string `json:"usersWithoutAccess,omitempty" tf:"users_without_access,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given viewer
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given viewer
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +listType=set
	Viewers []*string `json:"viewers,omitempty" tf:"viewers,omitempty"`
}

func (*OrganizationObservation) DeepCopy added in v0.2.0

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

func (*OrganizationObservation) DeepCopyInto added in v0.2.0

func (in *OrganizationObservation) DeepCopyInto(out *OrganizationObservation)

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

type OrganizationParameters added in v0.2.0

type OrganizationParameters struct {

	// (String) The login name of the configured default admin user for the Grafana
	// installation. If unset, this value defaults to admin, the Grafana default.
	// Defaults to admin.
	// The login name of the configured default admin user for the Grafana
	// installation. If unset, this value defaults to admin, the Grafana default.
	// Defaults to `admin`.
	// +kubebuilder:validation:Optional
	AdminUser *string `json:"adminUser,omitempty" tf:"admin_user,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given admin
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given admin
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +kubebuilder:validation:Optional
	// +listType=set
	Admins []*string `json:"admins,omitempty" tf:"admins,omitempty"`

	// (Boolean) Whether or not to create Grafana users specified in the organization's
	// membership if they don't already exist in Grafana. If unspecified, this
	// parameter defaults to true, creating placeholder users with the name, login,
	// and email set to the email of the user, and a random password. Setting this
	// option to false will cause an error to be thrown for any users that do not
	// already exist in Grafana.
	// Defaults to true.
	// Whether or not to create Grafana users specified in the organization's
	// membership if they don't already exist in Grafana. If unspecified, this
	// parameter defaults to true, creating placeholder users with the name, login,
	// and email set to the email of the user, and a random password. Setting this
	// option to false will cause an error to be thrown for any users that do not
	// already exist in Grafana.
	// Defaults to `true`.
	// +kubebuilder:validation:Optional
	CreateUsers *bool `json:"createUsers,omitempty" tf:"create_users,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given editor
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given editor
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +kubebuilder:validation:Optional
	// +listType=set
	Editors []*string `json:"editors,omitempty" tf:"editors,omitempty"`

	// (String) The display name for the Grafana organization created.
	// The display name for the Grafana organization created.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given none access to the organization.
	// Note: users specified here must already exist in Grafana, unless 'create_users' is
	// set to true. This feature is only available in Grafana 10.2+.
	// A list of email addresses corresponding to users who should be given none access to the organization.
	// Note: users specified here must already exist in Grafana, unless 'create_users' is
	// set to true. This feature is only available in Grafana 10.2+.
	// +kubebuilder:validation:Optional
	// +listType=set
	UsersWithoutAccess []*string `json:"usersWithoutAccess,omitempty" tf:"users_without_access,omitempty"`

	// (Set of String) A list of email addresses corresponding to users who should be given viewer
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// A list of email addresses corresponding to users who should be given viewer
	// access to the organization. Note: users specified here must already exist in
	// Grafana unless 'create_users' is set to true.
	// +kubebuilder:validation:Optional
	// +listType=set
	Viewers []*string `json:"viewers,omitempty" tf:"viewers,omitempty"`
}

func (*OrganizationParameters) DeepCopy added in v0.2.0

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

func (*OrganizationParameters) DeepCopyInto added in v0.2.0

func (in *OrganizationParameters) DeepCopyInto(out *OrganizationParameters)

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

type OrganizationPreferences added in v0.7.0

type OrganizationPreferences struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              OrganizationPreferencesSpec   `json:"spec"`
	Status            OrganizationPreferencesStatus `json:"status,omitempty"`
}

OrganizationPreferences is the Schema for the OrganizationPreferencess API. Official documentation https://grafana.com/docs/grafana/latest/administration/organization-management/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/preferences/#get-current-org-prefs +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 (*OrganizationPreferences) DeepCopy added in v0.7.0

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

func (*OrganizationPreferences) DeepCopyInto added in v0.7.0

func (in *OrganizationPreferences) DeepCopyInto(out *OrganizationPreferences)

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

func (*OrganizationPreferences) DeepCopyObject added in v0.7.0

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

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

func (*OrganizationPreferences) GetCondition added in v0.7.0

GetCondition of this OrganizationPreferences.

func (*OrganizationPreferences) GetConnectionDetailsMapping added in v0.7.0

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

GetConnectionDetailsMapping for this OrganizationPreferences

func (*OrganizationPreferences) GetDeletionPolicy added in v0.7.0

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

GetDeletionPolicy of this OrganizationPreferences.

func (*OrganizationPreferences) GetID added in v0.7.0

func (tr *OrganizationPreferences) GetID() string

GetID returns ID of underlying Terraform resource of this OrganizationPreferences

func (*OrganizationPreferences) GetInitParameters added in v0.8.0

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

GetInitParameters of this OrganizationPreferences

func (*OrganizationPreferences) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this OrganizationPreferences.

func (*OrganizationPreferences) GetMergedParameters added in v0.10.1

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

GetInitParameters of this OrganizationPreferences

func (*OrganizationPreferences) GetObservation added in v0.7.0

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

GetObservation of this OrganizationPreferences

func (*OrganizationPreferences) GetParameters added in v0.7.0

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

GetParameters of this OrganizationPreferences

func (*OrganizationPreferences) GetProviderConfigReference added in v0.7.0

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

GetProviderConfigReference of this OrganizationPreferences.

func (*OrganizationPreferences) GetPublishConnectionDetailsTo added in v0.7.0

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

GetPublishConnectionDetailsTo of this OrganizationPreferences.

func (*OrganizationPreferences) GetTerraformResourceType added in v0.7.0

func (mg *OrganizationPreferences) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this OrganizationPreferences

func (*OrganizationPreferences) GetTerraformSchemaVersion added in v0.7.0

func (tr *OrganizationPreferences) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*OrganizationPreferences) GetWriteConnectionSecretToReference added in v0.7.0

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

GetWriteConnectionSecretToReference of this OrganizationPreferences.

func (*OrganizationPreferences) Hub added in v0.10.1

func (tr *OrganizationPreferences) Hub()

Hub marks this type as a conversion hub.

func (*OrganizationPreferences) LateInitialize added in v0.7.0

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

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

func (*OrganizationPreferences) ResolveReferences added in v0.7.0

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

ResolveReferences of this OrganizationPreferences.

func (*OrganizationPreferences) SetConditions added in v0.7.0

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

SetConditions of this OrganizationPreferences.

func (*OrganizationPreferences) SetDeletionPolicy added in v0.7.0

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

SetDeletionPolicy of this OrganizationPreferences.

func (*OrganizationPreferences) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this OrganizationPreferences.

func (*OrganizationPreferences) SetObservation added in v0.7.0

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

SetObservation for this OrganizationPreferences

func (*OrganizationPreferences) SetParameters added in v0.7.0

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

SetParameters for this OrganizationPreferences

func (*OrganizationPreferences) SetProviderConfigReference added in v0.7.0

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

SetProviderConfigReference of this OrganizationPreferences.

func (*OrganizationPreferences) SetPublishConnectionDetailsTo added in v0.7.0

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

SetPublishConnectionDetailsTo of this OrganizationPreferences.

func (*OrganizationPreferences) SetWriteConnectionSecretToReference added in v0.7.0

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

SetWriteConnectionSecretToReference of this OrganizationPreferences.

type OrganizationPreferencesInitParameters added in v0.8.0

type OrganizationPreferencesInitParameters struct {

	// (Number, Deprecated) The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.
	// The Organization home dashboard ID. Deprecated: Use `home_dashboard_uid` instead.
	HomeDashboardID *float64 `json:"homeDashboardId,omitempty" tf:"home_dashboard_id,omitempty"`

	// (String) The Organization home dashboard UID. This is only available in Grafana 9.0+.
	// The Organization home dashboard UID. This is only available in Grafana 9.0+.
	HomeDashboardUID *string `json:"homeDashboardUid,omitempty" tf:"home_dashboard_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) The Organization theme. Available values are light, dark, system, or an empty string for the default.
	// The Organization theme. Available values are `light`, `dark`, `system`, or an empty string for the default.
	Theme *string `json:"theme,omitempty" tf:"theme,omitempty"`

	// (String) The Organization timezone. Available values are utc, browser, or an empty string for the default.
	// The Organization timezone. Available values are `utc`, `browser`, or an empty string for the default.
	Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`

	// (String) The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default. Defaults to “.
	// The Organization week start day. Available values are `sunday`, `monday`, `saturday`, or an empty string for the default. Defaults to “.
	WeekStart *string `json:"weekStart,omitempty" tf:"week_start,omitempty"`
}

func (*OrganizationPreferencesInitParameters) DeepCopy added in v0.8.0

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

func (*OrganizationPreferencesInitParameters) DeepCopyInto added in v0.8.0

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

type OrganizationPreferencesList added in v0.7.0

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

OrganizationPreferencesList contains a list of OrganizationPreferencess

func (*OrganizationPreferencesList) DeepCopy added in v0.7.0

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

func (*OrganizationPreferencesList) DeepCopyInto added in v0.7.0

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

func (*OrganizationPreferencesList) DeepCopyObject added in v0.7.0

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

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

func (*OrganizationPreferencesList) GetItems added in v0.7.0

GetItems of this OrganizationPreferencesList.

type OrganizationPreferencesObservation added in v0.7.0

type OrganizationPreferencesObservation struct {

	// (Number, Deprecated) The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.
	// The Organization home dashboard ID. Deprecated: Use `home_dashboard_uid` instead.
	HomeDashboardID *float64 `json:"homeDashboardId,omitempty" tf:"home_dashboard_id,omitempty"`

	// (String) The Organization home dashboard UID. This is only available in Grafana 9.0+.
	// The Organization home dashboard UID. This is only available in Grafana 9.0+.
	HomeDashboardUID *string `json:"homeDashboardUid,omitempty" tf:"home_dashboard_uid,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (String) The Organization theme. Available values are light, dark, system, or an empty string for the default.
	// The Organization theme. Available values are `light`, `dark`, `system`, or an empty string for the default.
	Theme *string `json:"theme,omitempty" tf:"theme,omitempty"`

	// (String) The Organization timezone. Available values are utc, browser, or an empty string for the default.
	// The Organization timezone. Available values are `utc`, `browser`, or an empty string for the default.
	Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`

	// (String) The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default. Defaults to “.
	// The Organization week start day. Available values are `sunday`, `monday`, `saturday`, or an empty string for the default. Defaults to “.
	WeekStart *string `json:"weekStart,omitempty" tf:"week_start,omitempty"`
}

func (*OrganizationPreferencesObservation) DeepCopy added in v0.7.0

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

func (*OrganizationPreferencesObservation) DeepCopyInto added in v0.7.0

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

type OrganizationPreferencesParameters added in v0.7.0

type OrganizationPreferencesParameters struct {

	// (Number, Deprecated) The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.
	// The Organization home dashboard ID. Deprecated: Use `home_dashboard_uid` instead.
	// +kubebuilder:validation:Optional
	HomeDashboardID *float64 `json:"homeDashboardId,omitempty" tf:"home_dashboard_id,omitempty"`

	// (String) The Organization home dashboard UID. This is only available in Grafana 9.0+.
	// The Organization home dashboard UID. This is only available in Grafana 9.0+.
	// +kubebuilder:validation:Optional
	HomeDashboardUID *string `json:"homeDashboardUid,omitempty" tf:"home_dashboard_uid,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (String) The Organization theme. Available values are light, dark, system, or an empty string for the default.
	// The Organization theme. Available values are `light`, `dark`, `system`, or an empty string for the default.
	// +kubebuilder:validation:Optional
	Theme *string `json:"theme,omitempty" tf:"theme,omitempty"`

	// (String) The Organization timezone. Available values are utc, browser, or an empty string for the default.
	// The Organization timezone. Available values are `utc`, `browser`, or an empty string for the default.
	// +kubebuilder:validation:Optional
	Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`

	// (String) The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default. Defaults to “.
	// The Organization week start day. Available values are `sunday`, `monday`, `saturday`, or an empty string for the default. Defaults to “.
	// +kubebuilder:validation:Optional
	WeekStart *string `json:"weekStart,omitempty" tf:"week_start,omitempty"`
}

func (*OrganizationPreferencesParameters) DeepCopy added in v0.7.0

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

func (*OrganizationPreferencesParameters) DeepCopyInto added in v0.7.0

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

type OrganizationPreferencesSpec added in v0.7.0

type OrganizationPreferencesSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     OrganizationPreferencesParameters `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 OrganizationPreferencesInitParameters `json:"initProvider,omitempty"`
}

OrganizationPreferencesSpec defines the desired state of OrganizationPreferences

func (*OrganizationPreferencesSpec) DeepCopy added in v0.7.0

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

func (*OrganizationPreferencesSpec) DeepCopyInto added in v0.7.0

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

type OrganizationPreferencesStatus added in v0.7.0

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

OrganizationPreferencesStatus defines the observed state of OrganizationPreferences.

func (*OrganizationPreferencesStatus) DeepCopy added in v0.7.0

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

func (*OrganizationPreferencesStatus) DeepCopyInto added in v0.7.0

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

type OrganizationSpec added in v0.2.0

type OrganizationSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     OrganizationParameters `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 OrganizationInitParameters `json:"initProvider,omitempty"`
}

OrganizationSpec defines the desired state of Organization

func (*OrganizationSpec) DeepCopy added in v0.2.0

func (in *OrganizationSpec) DeepCopy() *OrganizationSpec

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

func (*OrganizationSpec) DeepCopyInto added in v0.2.0

func (in *OrganizationSpec) DeepCopyInto(out *OrganizationSpec)

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

type OrganizationStatus added in v0.2.0

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

OrganizationStatus defines the observed state of Organization.

func (*OrganizationStatus) DeepCopy added in v0.2.0

func (in *OrganizationStatus) DeepCopy() *OrganizationStatus

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

func (*OrganizationStatus) DeepCopyInto added in v0.2.0

func (in *OrganizationStatus) DeepCopyInto(out *OrganizationStatus)

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

type PermissionsInitParameters added in v0.8.0

type PermissionsInitParameters struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// (String) Name of the basic role to manage permissions for. Options: Viewer, Editor or Admin.
	// Name of the basic role to manage permissions for. Options: `Viewer`, `Editor` or `Admin`.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRef
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// Reference to a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamRef *v1.Reference `json:"teamRef,omitempty" tf:"-"`

	// Selector for a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRef
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserRef *v1.Reference `json:"userRef,omitempty" tf:"-"`

	// Selector for a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`
}

func (*PermissionsInitParameters) DeepCopy added in v0.8.0

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

func (*PermissionsInitParameters) DeepCopyInto added in v0.8.0

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

type PermissionsObservation

type PermissionsObservation struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// (String) Name of the basic role to manage permissions for. Options: Viewer, Editor or Admin.
	// Name of the basic role to manage permissions for. Options: `Viewer`, `Editor` or `Admin`.
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*PermissionsObservation) DeepCopy

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

func (*PermissionsObservation) DeepCopyInto

func (in *PermissionsObservation) DeepCopyInto(out *PermissionsObservation)

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

type PermissionsParameters

type PermissionsParameters struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	// +kubebuilder:validation:Optional
	Permission *string `json:"permission" tf:"permission,omitempty"`

	// (String) Name of the basic role to manage permissions for. Options: Viewer, Editor or Admin.
	// Name of the basic role to manage permissions for. Options: `Viewer`, `Editor` or `Admin`.
	// +kubebuilder:validation:Optional
	Role *string `json:"role,omitempty" tf:"role,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRef
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	// +kubebuilder:validation:Optional
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// Reference to a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamRef *v1.Reference `json:"teamRef,omitempty" tf:"-"`

	// Selector for a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRef
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	// +kubebuilder:validation:Optional
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserRef *v1.Reference `json:"userRef,omitempty" tf:"-"`

	// Selector for a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`
}

func (*PermissionsParameters) DeepCopy

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

func (*PermissionsParameters) DeepCopyInto

func (in *PermissionsParameters) DeepCopyInto(out *PermissionsParameters)

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

type Playlist added in v0.11.0

type Playlist 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.interval) || (has(self.initProvider) && has(self.initProvider.interval))",message="spec.forProvider.interval is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.item) || (has(self.initProvider) && has(self.initProvider.item))",message="spec.forProvider.item 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"
	Spec   PlaylistSpec   `json:"spec"`
	Status PlaylistStatus `json:"status,omitempty"`
}

Playlist is the Schema for the Playlists API. Official documentation https://grafana.com/docs/grafana/latest/dashboards/create-manage-playlists/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/playlist/ +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 (*Playlist) DeepCopy added in v0.11.0

func (in *Playlist) DeepCopy() *Playlist

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

func (*Playlist) DeepCopyInto added in v0.11.0

func (in *Playlist) DeepCopyInto(out *Playlist)

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

func (*Playlist) DeepCopyObject added in v0.11.0

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

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

func (*Playlist) GetCondition added in v0.11.0

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

GetCondition of this Playlist.

func (*Playlist) GetConnectionDetailsMapping added in v0.11.0

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

GetConnectionDetailsMapping for this Playlist

func (*Playlist) GetDeletionPolicy added in v0.11.0

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

GetDeletionPolicy of this Playlist.

func (*Playlist) GetID added in v0.11.0

func (tr *Playlist) GetID() string

GetID returns ID of underlying Terraform resource of this Playlist

func (*Playlist) GetInitParameters added in v0.11.0

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

GetInitParameters of this Playlist

func (*Playlist) GetManagementPolicies added in v0.11.0

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

GetManagementPolicies of this Playlist.

func (*Playlist) GetMergedParameters added in v0.11.0

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

GetInitParameters of this Playlist

func (*Playlist) GetObservation added in v0.11.0

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

GetObservation of this Playlist

func (*Playlist) GetParameters added in v0.11.0

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

GetParameters of this Playlist

func (*Playlist) GetProviderConfigReference added in v0.11.0

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

GetProviderConfigReference of this Playlist.

func (*Playlist) GetPublishConnectionDetailsTo added in v0.11.0

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

GetPublishConnectionDetailsTo of this Playlist.

func (*Playlist) GetTerraformResourceType added in v0.11.0

func (mg *Playlist) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Playlist

func (*Playlist) GetTerraformSchemaVersion added in v0.11.0

func (tr *Playlist) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Playlist) GetWriteConnectionSecretToReference added in v0.11.0

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

GetWriteConnectionSecretToReference of this Playlist.

func (*Playlist) Hub added in v0.11.0

func (tr *Playlist) Hub()

Hub marks this type as a conversion hub.

func (*Playlist) LateInitialize added in v0.11.0

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

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

func (*Playlist) ResolveReferences added in v0.11.0

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

ResolveReferences of this Playlist.

func (*Playlist) SetConditions added in v0.11.0

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

SetConditions of this Playlist.

func (*Playlist) SetDeletionPolicy added in v0.11.0

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

SetDeletionPolicy of this Playlist.

func (*Playlist) SetManagementPolicies added in v0.11.0

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

SetManagementPolicies of this Playlist.

func (*Playlist) SetObservation added in v0.11.0

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

SetObservation for this Playlist

func (*Playlist) SetParameters added in v0.11.0

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

SetParameters for this Playlist

func (*Playlist) SetProviderConfigReference added in v0.11.0

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

SetProviderConfigReference of this Playlist.

func (*Playlist) SetPublishConnectionDetailsTo added in v0.11.0

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

SetPublishConnectionDetailsTo of this Playlist.

func (*Playlist) SetWriteConnectionSecretToReference added in v0.11.0

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

SetWriteConnectionSecretToReference of this Playlist.

type PlaylistInitParameters added in v0.11.0

type PlaylistInitParameters struct {

	// (String)
	Interval *string `json:"interval,omitempty" tf:"interval,omitempty"`

	// (Block Set, Min: 1) (see below for nested schema)
	Item []ItemInitParameters `json:"item,omitempty" tf:"item,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`
}

func (*PlaylistInitParameters) DeepCopy added in v0.11.0

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

func (*PlaylistInitParameters) DeepCopyInto added in v0.11.0

func (in *PlaylistInitParameters) DeepCopyInto(out *PlaylistInitParameters)

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

type PlaylistList added in v0.11.0

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

PlaylistList contains a list of Playlists

func (*PlaylistList) DeepCopy added in v0.11.0

func (in *PlaylistList) DeepCopy() *PlaylistList

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

func (*PlaylistList) DeepCopyInto added in v0.11.0

func (in *PlaylistList) DeepCopyInto(out *PlaylistList)

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

func (*PlaylistList) DeepCopyObject added in v0.11.0

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

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

func (*PlaylistList) GetItems added in v0.11.0

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

GetItems of this PlaylistList.

type PlaylistObservation added in v0.11.0

type PlaylistObservation struct {

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

	// (String)
	Interval *string `json:"interval,omitempty" tf:"interval,omitempty"`

	// (Block Set, Min: 1) (see below for nested schema)
	Item []ItemObservation `json:"item,omitempty" tf:"item,omitempty"`

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`
}

func (*PlaylistObservation) DeepCopy added in v0.11.0

func (in *PlaylistObservation) DeepCopy() *PlaylistObservation

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

func (*PlaylistObservation) DeepCopyInto added in v0.11.0

func (in *PlaylistObservation) DeepCopyInto(out *PlaylistObservation)

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

type PlaylistParameters added in v0.11.0

type PlaylistParameters struct {

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

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

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`
}

func (*PlaylistParameters) DeepCopy added in v0.11.0

func (in *PlaylistParameters) DeepCopy() *PlaylistParameters

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

func (*PlaylistParameters) DeepCopyInto added in v0.11.0

func (in *PlaylistParameters) DeepCopyInto(out *PlaylistParameters)

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

type PlaylistSpec added in v0.11.0

type PlaylistSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     PlaylistParameters `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 PlaylistInitParameters `json:"initProvider,omitempty"`
}

PlaylistSpec defines the desired state of Playlist

func (*PlaylistSpec) DeepCopy added in v0.11.0

func (in *PlaylistSpec) DeepCopy() *PlaylistSpec

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

func (*PlaylistSpec) DeepCopyInto added in v0.11.0

func (in *PlaylistSpec) DeepCopyInto(out *PlaylistSpec)

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

type PlaylistStatus added in v0.11.0

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

PlaylistStatus defines the observed state of Playlist.

func (*PlaylistStatus) DeepCopy added in v0.11.0

func (in *PlaylistStatus) DeepCopy() *PlaylistStatus

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

func (*PlaylistStatus) DeepCopyInto added in v0.11.0

func (in *PlaylistStatus) DeepCopyInto(out *PlaylistStatus)

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

type PreferencesInitParameters added in v0.8.0

type PreferencesInitParameters struct {

	// (String) The UID of the dashboard to display when a team member logs in. Defaults to “.
	// The UID of the dashboard to display when a team member logs in. Defaults to “.
	HomeDashboardUID *string `json:"homeDashboardUid,omitempty" tf:"home_dashboard_uid,omitempty"`

	// (String) The default theme for this team. Available themes are light, dark, system, or an empty string for the default theme. Defaults to “.
	// The default theme for this team. Available themes are `light`, `dark`, `system`, or an empty string for the default theme. Defaults to “.
	Theme *string `json:"theme,omitempty" tf:"theme,omitempty"`

	// (String) The default timezone for this team. Available values are utc, browser, or an empty string for the default. Defaults to “.
	// The default timezone for this team. Available values are `utc`, `browser`, or an empty string for the default. Defaults to “.
	Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`

	// (String) The default week start day for this team. Available values are sunday, monday, saturday, or an empty string for the default. Defaults to “.
	// The default week start day for this team. Available values are `sunday`, `monday`, `saturday`, or an empty string for the default. Defaults to “.
	WeekStart *string `json:"weekStart,omitempty" tf:"week_start,omitempty"`
}

func (*PreferencesInitParameters) DeepCopy added in v0.8.0

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

func (*PreferencesInitParameters) DeepCopyInto added in v0.8.0

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

type PreferencesObservation added in v0.4.0

type PreferencesObservation struct {

	// (String) The UID of the dashboard to display when a team member logs in. Defaults to “.
	// The UID of the dashboard to display when a team member logs in. Defaults to “.
	HomeDashboardUID *string `json:"homeDashboardUid,omitempty" tf:"home_dashboard_uid,omitempty"`

	// (String) The default theme for this team. Available themes are light, dark, system, or an empty string for the default theme. Defaults to “.
	// The default theme for this team. Available themes are `light`, `dark`, `system`, or an empty string for the default theme. Defaults to “.
	Theme *string `json:"theme,omitempty" tf:"theme,omitempty"`

	// (String) The default timezone for this team. Available values are utc, browser, or an empty string for the default. Defaults to “.
	// The default timezone for this team. Available values are `utc`, `browser`, or an empty string for the default. Defaults to “.
	Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`

	// (String) The default week start day for this team. Available values are sunday, monday, saturday, or an empty string for the default. Defaults to “.
	// The default week start day for this team. Available values are `sunday`, `monday`, `saturday`, or an empty string for the default. Defaults to “.
	WeekStart *string `json:"weekStart,omitempty" tf:"week_start,omitempty"`
}

func (*PreferencesObservation) DeepCopy added in v0.4.0

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

func (*PreferencesObservation) DeepCopyInto added in v0.4.0

func (in *PreferencesObservation) DeepCopyInto(out *PreferencesObservation)

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

type PreferencesParameters added in v0.4.0

type PreferencesParameters struct {

	// (String) The UID of the dashboard to display when a team member logs in. Defaults to “.
	// The UID of the dashboard to display when a team member logs in. Defaults to “.
	// +kubebuilder:validation:Optional
	HomeDashboardUID *string `json:"homeDashboardUid,omitempty" tf:"home_dashboard_uid,omitempty"`

	// (String) The default theme for this team. Available themes are light, dark, system, or an empty string for the default theme. Defaults to “.
	// The default theme for this team. Available themes are `light`, `dark`, `system`, or an empty string for the default theme. Defaults to “.
	// +kubebuilder:validation:Optional
	Theme *string `json:"theme,omitempty" tf:"theme,omitempty"`

	// (String) The default timezone for this team. Available values are utc, browser, or an empty string for the default. Defaults to “.
	// The default timezone for this team. Available values are `utc`, `browser`, or an empty string for the default. Defaults to “.
	// +kubebuilder:validation:Optional
	Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`

	// (String) The default week start day for this team. Available values are sunday, monday, saturday, or an empty string for the default. Defaults to “.
	// The default week start day for this team. Available values are `sunday`, `monday`, `saturday`, or an empty string for the default. Defaults to “.
	// +kubebuilder:validation:Optional
	WeekStart *string `json:"weekStart,omitempty" tf:"week_start,omitempty"`
}

func (*PreferencesParameters) DeepCopy added in v0.4.0

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

func (*PreferencesParameters) DeepCopyInto added in v0.4.0

func (in *PreferencesParameters) DeepCopyInto(out *PreferencesParameters)

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

type SAMLSettingsInitParameters added in v0.15.0

type SAMLSettingsInitParameters struct {

	// initiated login is allowed.
	// Whether SAML IdP-initiated login is allowed.
	AllowIdpInitiated *bool `json:"allowIdpInitiated,omitempty" tf:"allow_idp_initiated,omitempty"`

	// (Boolean) If not enabled, only existing Grafana users can log in using OAuth.
	// Whether to allow new Grafana user creation through SAML login. If set to false, then only existing Grafana users can log in with SAML.
	AllowSignUp *bool `json:"allowSignUp,omitempty" tf:"allow_sign_up,omitempty"`

	// or space-separated organizations. The user should be a member of at least one organization to log in.
	// List of comma- or space-separated organizations. User should be a member of at least one organization to log in.
	AllowedOrganizations *string `json:"allowedOrganizations,omitempty" tf:"allowed_organizations,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user email.
	// Friendly name or name of the attribute within the SAML assertion to use as the user email.
	AssertionAttributeEmail *string `json:"assertionAttributeEmail,omitempty" tf:"assertion_attribute_email,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user groups.
	// Friendly name or name of the attribute within the SAML assertion to use as the user groups.
	AssertionAttributeGroups *string `json:"assertionAttributeGroups,omitempty" tf:"assertion_attribute_groups,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user login handle.
	// Friendly name or name of the attribute within the SAML assertion to use as the user login handle.
	AssertionAttributeLogin *string `json:"assertionAttributeLogin,omitempty" tf:"assertion_attribute_login,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user name. Alternatively, this can be a template with variables that match the names of attributes within the SAML assertion.
	// Friendly name or name of the attribute within the SAML assertion to use as the user name. Alternatively, this can be a template with variables that match the names of attributes within the SAML assertion.
	AssertionAttributeName *string `json:"assertionAttributeName,omitempty" tf:"assertion_attribute_name,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user organization.
	// Friendly name or name of the attribute within the SAML assertion to use as the user organization.
	AssertionAttributeOrg *string `json:"assertionAttributeOrg,omitempty" tf:"assertion_attribute_org,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user roles.
	// Friendly name or name of the attribute within the SAML assertion to use as the user roles.
	AssertionAttributeRole *string `json:"assertionAttributeRole,omitempty" tf:"assertion_attribute_role,omitempty"`

	// (Boolean) Log in automatically, skipping the login screen.
	// Whether SAML auto login is enabled.
	AutoLogin *bool `json:"autoLogin,omitempty" tf:"auto_login,omitempty"`

	// (String) Path for the SP X.509 certificate.
	// Path for the SP X.509 certificate.
	CertificatePath *string `json:"certificatePath,omitempty" tf:"certificate_path,omitempty"`

	// (Boolean) Define whether this configuration is enabled for the specified provider. Defaults to true.
	// Define whether this configuration is enabled for SAML. Defaults to `true`.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// encoded string for the IdP SAML metadata XML.
	// Base64-encoded string for the IdP SAML metadata XML.
	IdpMetadata *string `json:"idpMetadata,omitempty" tf:"idp_metadata,omitempty"`

	// (String) Path for the IdP SAML metadata XML.
	// Path for the IdP SAML metadata XML.
	IdpMetadataPath *string `json:"idpMetadataPath,omitempty" tf:"idp_metadata_path,omitempty"`

	// (String) URL for the IdP SAML metadata XML.
	// URL for the IdP SAML metadata XML.
	IdpMetadataURL *string `json:"idpMetadataUrl,omitempty" tf:"idp_metadata_url,omitempty"`

	// (String) Duration, since the IdP issued a response and the SP is allowed to process it. For example: 90s, 1h.
	// Duration, since the IdP issued a response and the SP is allowed to process it. For example: 90s, 1h.
	MaxIssueDelay *string `json:"maxIssueDelay,omitempty" tf:"max_issue_delay,omitempty"`

	// (String) Duration, for how long the SP metadata is valid. For example: 48h, 5d.
	// Duration, for how long the SP metadata is valid. For example: 48h, 5d.
	MetadataValidDuration *string `json:"metadataValidDuration,omitempty" tf:"metadata_valid_duration,omitempty"`

	// (String) Helpful if you use more than one identity providers or SSO protocols.
	// Name used to refer to the SAML authentication.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// format:transient
	// The Name ID Format to request within the SAML assertion. Defaults to urn:oasis:names:tc:SAML:2.0:nameid-format:transient
	NameIDFormat *string `json:"nameIdFormat,omitempty" tf:"name_id_format,omitempty"`

	// or space-separated Organization:OrgId:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: Viewer, Editor or Admin.
	// List of comma- or space-separated Organization:OrgId:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: Viewer, Editor or Admin.
	OrgMapping *string `json:"orgMapping,omitempty" tf:"org_mapping,omitempty"`

	// (String) Path for the SP private key.
	// Path for the SP private key.
	PrivateKeyPath *string `json:"privateKeyPath,omitempty" tf:"private_key_path,omitempty"`

	// initiated login. Should match relay state configured in IdP.
	// Relay state for IdP-initiated login. Should match relay state configured in IdP.
	RelayState *string `json:"relayState,omitempty" tf:"relay_state,omitempty"`

	// or space-separated roles which will be mapped into the Admin role.
	// List of comma- or space-separated roles which will be mapped into the Admin role.
	RoleValuesAdmin *string `json:"roleValuesAdmin,omitempty" tf:"role_values_admin,omitempty"`

	// or space-separated roles which will be mapped into the Editor role.
	// List of comma- or space-separated roles which will be mapped into the Editor role.
	RoleValuesEditor *string `json:"roleValuesEditor,omitempty" tf:"role_values_editor,omitempty"`

	// or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role.
	// List of comma- or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role.
	RoleValuesGrafanaAdmin *string `json:"roleValuesGrafanaAdmin,omitempty" tf:"role_values_grafana_admin,omitempty"`

	// or space-separated roles which will be mapped into the None role.
	// List of comma- or space-separated roles which will be mapped into the None role.
	RoleValuesNone *string `json:"roleValuesNone,omitempty" tf:"role_values_none,omitempty"`

	// sha1, rsa-sha256, rsa-sha512.
	// Signature algorithm used for signing requests to the IdP. Supported values are rsa-sha1, rsa-sha256, rsa-sha512.
	SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" tf:"signature_algorithm,omitempty"`

	// (Boolean) Whether SAML Single Logout is enabled.
	// Whether SAML Single Logout is enabled.
	SingleLogout *bool `json:"singleLogout,omitempty" tf:"single_logout,omitempty"`
}

func (*SAMLSettingsInitParameters) DeepCopy added in v0.15.0

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

func (*SAMLSettingsInitParameters) DeepCopyInto added in v0.15.0

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

type SAMLSettingsObservation added in v0.15.0

type SAMLSettingsObservation struct {

	// initiated login is allowed.
	// Whether SAML IdP-initiated login is allowed.
	AllowIdpInitiated *bool `json:"allowIdpInitiated,omitempty" tf:"allow_idp_initiated,omitempty"`

	// (Boolean) If not enabled, only existing Grafana users can log in using OAuth.
	// Whether to allow new Grafana user creation through SAML login. If set to false, then only existing Grafana users can log in with SAML.
	AllowSignUp *bool `json:"allowSignUp,omitempty" tf:"allow_sign_up,omitempty"`

	// or space-separated organizations. The user should be a member of at least one organization to log in.
	// List of comma- or space-separated organizations. User should be a member of at least one organization to log in.
	AllowedOrganizations *string `json:"allowedOrganizations,omitempty" tf:"allowed_organizations,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user email.
	// Friendly name or name of the attribute within the SAML assertion to use as the user email.
	AssertionAttributeEmail *string `json:"assertionAttributeEmail,omitempty" tf:"assertion_attribute_email,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user groups.
	// Friendly name or name of the attribute within the SAML assertion to use as the user groups.
	AssertionAttributeGroups *string `json:"assertionAttributeGroups,omitempty" tf:"assertion_attribute_groups,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user login handle.
	// Friendly name or name of the attribute within the SAML assertion to use as the user login handle.
	AssertionAttributeLogin *string `json:"assertionAttributeLogin,omitempty" tf:"assertion_attribute_login,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user name. Alternatively, this can be a template with variables that match the names of attributes within the SAML assertion.
	// Friendly name or name of the attribute within the SAML assertion to use as the user name. Alternatively, this can be a template with variables that match the names of attributes within the SAML assertion.
	AssertionAttributeName *string `json:"assertionAttributeName,omitempty" tf:"assertion_attribute_name,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user organization.
	// Friendly name or name of the attribute within the SAML assertion to use as the user organization.
	AssertionAttributeOrg *string `json:"assertionAttributeOrg,omitempty" tf:"assertion_attribute_org,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user roles.
	// Friendly name or name of the attribute within the SAML assertion to use as the user roles.
	AssertionAttributeRole *string `json:"assertionAttributeRole,omitempty" tf:"assertion_attribute_role,omitempty"`

	// (Boolean) Log in automatically, skipping the login screen.
	// Whether SAML auto login is enabled.
	AutoLogin *bool `json:"autoLogin,omitempty" tf:"auto_login,omitempty"`

	// (String) Path for the SP X.509 certificate.
	// Path for the SP X.509 certificate.
	CertificatePath *string `json:"certificatePath,omitempty" tf:"certificate_path,omitempty"`

	// (Boolean) Define whether this configuration is enabled for the specified provider. Defaults to true.
	// Define whether this configuration is enabled for SAML. Defaults to `true`.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// encoded string for the IdP SAML metadata XML.
	// Base64-encoded string for the IdP SAML metadata XML.
	IdpMetadata *string `json:"idpMetadata,omitempty" tf:"idp_metadata,omitempty"`

	// (String) Path for the IdP SAML metadata XML.
	// Path for the IdP SAML metadata XML.
	IdpMetadataPath *string `json:"idpMetadataPath,omitempty" tf:"idp_metadata_path,omitempty"`

	// (String) URL for the IdP SAML metadata XML.
	// URL for the IdP SAML metadata XML.
	IdpMetadataURL *string `json:"idpMetadataUrl,omitempty" tf:"idp_metadata_url,omitempty"`

	// (String) Duration, since the IdP issued a response and the SP is allowed to process it. For example: 90s, 1h.
	// Duration, since the IdP issued a response and the SP is allowed to process it. For example: 90s, 1h.
	MaxIssueDelay *string `json:"maxIssueDelay,omitempty" tf:"max_issue_delay,omitempty"`

	// (String) Duration, for how long the SP metadata is valid. For example: 48h, 5d.
	// Duration, for how long the SP metadata is valid. For example: 48h, 5d.
	MetadataValidDuration *string `json:"metadataValidDuration,omitempty" tf:"metadata_valid_duration,omitempty"`

	// (String) Helpful if you use more than one identity providers or SSO protocols.
	// Name used to refer to the SAML authentication.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// format:transient
	// The Name ID Format to request within the SAML assertion. Defaults to urn:oasis:names:tc:SAML:2.0:nameid-format:transient
	NameIDFormat *string `json:"nameIdFormat,omitempty" tf:"name_id_format,omitempty"`

	// or space-separated Organization:OrgId:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: Viewer, Editor or Admin.
	// List of comma- or space-separated Organization:OrgId:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: Viewer, Editor or Admin.
	OrgMapping *string `json:"orgMapping,omitempty" tf:"org_mapping,omitempty"`

	// (String) Path for the SP private key.
	// Path for the SP private key.
	PrivateKeyPath *string `json:"privateKeyPath,omitempty" tf:"private_key_path,omitempty"`

	// initiated login. Should match relay state configured in IdP.
	// Relay state for IdP-initiated login. Should match relay state configured in IdP.
	RelayState *string `json:"relayState,omitempty" tf:"relay_state,omitempty"`

	// or space-separated roles which will be mapped into the Admin role.
	// List of comma- or space-separated roles which will be mapped into the Admin role.
	RoleValuesAdmin *string `json:"roleValuesAdmin,omitempty" tf:"role_values_admin,omitempty"`

	// or space-separated roles which will be mapped into the Editor role.
	// List of comma- or space-separated roles which will be mapped into the Editor role.
	RoleValuesEditor *string `json:"roleValuesEditor,omitempty" tf:"role_values_editor,omitempty"`

	// or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role.
	// List of comma- or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role.
	RoleValuesGrafanaAdmin *string `json:"roleValuesGrafanaAdmin,omitempty" tf:"role_values_grafana_admin,omitempty"`

	// or space-separated roles which will be mapped into the None role.
	// List of comma- or space-separated roles which will be mapped into the None role.
	RoleValuesNone *string `json:"roleValuesNone,omitempty" tf:"role_values_none,omitempty"`

	// sha1, rsa-sha256, rsa-sha512.
	// Signature algorithm used for signing requests to the IdP. Supported values are rsa-sha1, rsa-sha256, rsa-sha512.
	SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" tf:"signature_algorithm,omitempty"`

	// (Boolean) Whether SAML Single Logout is enabled.
	// Whether SAML Single Logout is enabled.
	SingleLogout *bool `json:"singleLogout,omitempty" tf:"single_logout,omitempty"`
}

func (*SAMLSettingsObservation) DeepCopy added in v0.15.0

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

func (*SAMLSettingsObservation) DeepCopyInto added in v0.15.0

func (in *SAMLSettingsObservation) DeepCopyInto(out *SAMLSettingsObservation)

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

type SAMLSettingsParameters added in v0.15.0

type SAMLSettingsParameters struct {

	// initiated login is allowed.
	// Whether SAML IdP-initiated login is allowed.
	// +kubebuilder:validation:Optional
	AllowIdpInitiated *bool `json:"allowIdpInitiated,omitempty" tf:"allow_idp_initiated,omitempty"`

	// (Boolean) If not enabled, only existing Grafana users can log in using OAuth.
	// Whether to allow new Grafana user creation through SAML login. If set to false, then only existing Grafana users can log in with SAML.
	// +kubebuilder:validation:Optional
	AllowSignUp *bool `json:"allowSignUp,omitempty" tf:"allow_sign_up,omitempty"`

	// or space-separated organizations. The user should be a member of at least one organization to log in.
	// List of comma- or space-separated organizations. User should be a member of at least one organization to log in.
	// +kubebuilder:validation:Optional
	AllowedOrganizations *string `json:"allowedOrganizations,omitempty" tf:"allowed_organizations,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user email.
	// Friendly name or name of the attribute within the SAML assertion to use as the user email.
	// +kubebuilder:validation:Optional
	AssertionAttributeEmail *string `json:"assertionAttributeEmail,omitempty" tf:"assertion_attribute_email,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user groups.
	// Friendly name or name of the attribute within the SAML assertion to use as the user groups.
	// +kubebuilder:validation:Optional
	AssertionAttributeGroups *string `json:"assertionAttributeGroups,omitempty" tf:"assertion_attribute_groups,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user login handle.
	// Friendly name or name of the attribute within the SAML assertion to use as the user login handle.
	// +kubebuilder:validation:Optional
	AssertionAttributeLogin *string `json:"assertionAttributeLogin,omitempty" tf:"assertion_attribute_login,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user name. Alternatively, this can be a template with variables that match the names of attributes within the SAML assertion.
	// Friendly name or name of the attribute within the SAML assertion to use as the user name. Alternatively, this can be a template with variables that match the names of attributes within the SAML assertion.
	// +kubebuilder:validation:Optional
	AssertionAttributeName *string `json:"assertionAttributeName,omitempty" tf:"assertion_attribute_name,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user organization.
	// Friendly name or name of the attribute within the SAML assertion to use as the user organization.
	// +kubebuilder:validation:Optional
	AssertionAttributeOrg *string `json:"assertionAttributeOrg,omitempty" tf:"assertion_attribute_org,omitempty"`

	// (String) Friendly name or name of the attribute within the SAML assertion to use as the user roles.
	// Friendly name or name of the attribute within the SAML assertion to use as the user roles.
	// +kubebuilder:validation:Optional
	AssertionAttributeRole *string `json:"assertionAttributeRole,omitempty" tf:"assertion_attribute_role,omitempty"`

	// (Boolean) Log in automatically, skipping the login screen.
	// Whether SAML auto login is enabled.
	// +kubebuilder:validation:Optional
	AutoLogin *bool `json:"autoLogin,omitempty" tf:"auto_login,omitempty"`

	// (String) Path for the SP X.509 certificate.
	// Path for the SP X.509 certificate.
	// +kubebuilder:validation:Optional
	CertificatePath *string `json:"certificatePath,omitempty" tf:"certificate_path,omitempty"`

	// encoded string for the SP X.509 certificate.
	// Base64-encoded string for the SP X.509 certificate.
	// +kubebuilder:validation:Optional
	CertificateSecretRef *v1.SecretKeySelector `json:"certificateSecretRef,omitempty" tf:"-"`

	// (Boolean) Define whether this configuration is enabled for the specified provider. Defaults to true.
	// Define whether this configuration is enabled for SAML. Defaults to `true`.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// encoded string for the IdP SAML metadata XML.
	// Base64-encoded string for the IdP SAML metadata XML.
	// +kubebuilder:validation:Optional
	IdpMetadata *string `json:"idpMetadata,omitempty" tf:"idp_metadata,omitempty"`

	// (String) Path for the IdP SAML metadata XML.
	// Path for the IdP SAML metadata XML.
	// +kubebuilder:validation:Optional
	IdpMetadataPath *string `json:"idpMetadataPath,omitempty" tf:"idp_metadata_path,omitempty"`

	// (String) URL for the IdP SAML metadata XML.
	// URL for the IdP SAML metadata XML.
	// +kubebuilder:validation:Optional
	IdpMetadataURL *string `json:"idpMetadataUrl,omitempty" tf:"idp_metadata_url,omitempty"`

	// (String) Duration, since the IdP issued a response and the SP is allowed to process it. For example: 90s, 1h.
	// Duration, since the IdP issued a response and the SP is allowed to process it. For example: 90s, 1h.
	// +kubebuilder:validation:Optional
	MaxIssueDelay *string `json:"maxIssueDelay,omitempty" tf:"max_issue_delay,omitempty"`

	// (String) Duration, for how long the SP metadata is valid. For example: 48h, 5d.
	// Duration, for how long the SP metadata is valid. For example: 48h, 5d.
	// +kubebuilder:validation:Optional
	MetadataValidDuration *string `json:"metadataValidDuration,omitempty" tf:"metadata_valid_duration,omitempty"`

	// (String) Helpful if you use more than one identity providers or SSO protocols.
	// Name used to refer to the SAML authentication.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// format:transient
	// The Name ID Format to request within the SAML assertion. Defaults to urn:oasis:names:tc:SAML:2.0:nameid-format:transient
	// +kubebuilder:validation:Optional
	NameIDFormat *string `json:"nameIdFormat,omitempty" tf:"name_id_format,omitempty"`

	// or space-separated Organization:OrgId:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: Viewer, Editor or Admin.
	// List of comma- or space-separated Organization:OrgId:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: Viewer, Editor or Admin.
	// +kubebuilder:validation:Optional
	OrgMapping *string `json:"orgMapping,omitempty" tf:"org_mapping,omitempty"`

	// (String) Path for the SP private key.
	// Path for the SP private key.
	// +kubebuilder:validation:Optional
	PrivateKeyPath *string `json:"privateKeyPath,omitempty" tf:"private_key_path,omitempty"`

	// encoded string for the SP private key.
	// Base64-encoded string for the SP private key.
	// +kubebuilder:validation:Optional
	PrivateKeySecretRef *v1.SecretKeySelector `json:"privateKeySecretRef,omitempty" tf:"-"`

	// initiated login. Should match relay state configured in IdP.
	// Relay state for IdP-initiated login. Should match relay state configured in IdP.
	// +kubebuilder:validation:Optional
	RelayState *string `json:"relayState,omitempty" tf:"relay_state,omitempty"`

	// or space-separated roles which will be mapped into the Admin role.
	// List of comma- or space-separated roles which will be mapped into the Admin role.
	// +kubebuilder:validation:Optional
	RoleValuesAdmin *string `json:"roleValuesAdmin,omitempty" tf:"role_values_admin,omitempty"`

	// or space-separated roles which will be mapped into the Editor role.
	// List of comma- or space-separated roles which will be mapped into the Editor role.
	// +kubebuilder:validation:Optional
	RoleValuesEditor *string `json:"roleValuesEditor,omitempty" tf:"role_values_editor,omitempty"`

	// or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role.
	// List of comma- or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role.
	// +kubebuilder:validation:Optional
	RoleValuesGrafanaAdmin *string `json:"roleValuesGrafanaAdmin,omitempty" tf:"role_values_grafana_admin,omitempty"`

	// or space-separated roles which will be mapped into the None role.
	// List of comma- or space-separated roles which will be mapped into the None role.
	// +kubebuilder:validation:Optional
	RoleValuesNone *string `json:"roleValuesNone,omitempty" tf:"role_values_none,omitempty"`

	// sha1, rsa-sha256, rsa-sha512.
	// Signature algorithm used for signing requests to the IdP. Supported values are rsa-sha1, rsa-sha256, rsa-sha512.
	// +kubebuilder:validation:Optional
	SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" tf:"signature_algorithm,omitempty"`

	// (Boolean) Whether SAML Single Logout is enabled.
	// Whether SAML Single Logout is enabled.
	// +kubebuilder:validation:Optional
	SingleLogout *bool `json:"singleLogout,omitempty" tf:"single_logout,omitempty"`
}

func (*SAMLSettingsParameters) DeepCopy added in v0.15.0

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

func (*SAMLSettingsParameters) DeepCopyInto added in v0.15.0

func (in *SAMLSettingsParameters) DeepCopyInto(out *SAMLSettingsParameters)

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

type ServiceAccount added in v0.7.0

type ServiceAccount 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   ServiceAccountSpec   `json:"spec"`
	Status ServiceAccountStatus `json:"status,omitempty"`
}

ServiceAccount is the Schema for the ServiceAccounts API. Note: This resource is available only with Grafana 9.1+. 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 +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 (*ServiceAccount) DeepCopy added in v0.7.0

func (in *ServiceAccount) DeepCopy() *ServiceAccount

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

func (*ServiceAccount) DeepCopyInto added in v0.7.0

func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)

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

func (*ServiceAccount) DeepCopyObject added in v0.7.0

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

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

func (*ServiceAccount) GetCondition added in v0.7.0

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

GetCondition of this ServiceAccount.

func (*ServiceAccount) GetConnectionDetailsMapping added in v0.7.0

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

GetConnectionDetailsMapping for this ServiceAccount

func (*ServiceAccount) GetDeletionPolicy added in v0.7.0

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

GetDeletionPolicy of this ServiceAccount.

func (*ServiceAccount) GetID added in v0.7.0

func (tr *ServiceAccount) GetID() string

GetID returns ID of underlying Terraform resource of this ServiceAccount

func (*ServiceAccount) GetInitParameters added in v0.8.0

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

GetInitParameters of this ServiceAccount

func (*ServiceAccount) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this ServiceAccount.

func (*ServiceAccount) GetMergedParameters added in v0.10.1

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

GetInitParameters of this ServiceAccount

func (*ServiceAccount) GetObservation added in v0.7.0

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

GetObservation of this ServiceAccount

func (*ServiceAccount) GetParameters added in v0.7.0

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

GetParameters of this ServiceAccount

func (*ServiceAccount) GetProviderConfigReference added in v0.7.0

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

GetProviderConfigReference of this ServiceAccount.

func (*ServiceAccount) GetPublishConnectionDetailsTo added in v0.7.0

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

GetPublishConnectionDetailsTo of this ServiceAccount.

func (*ServiceAccount) GetTerraformResourceType added in v0.7.0

func (mg *ServiceAccount) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ServiceAccount

func (*ServiceAccount) GetTerraformSchemaVersion added in v0.7.0

func (tr *ServiceAccount) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ServiceAccount) GetWriteConnectionSecretToReference added in v0.7.0

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

GetWriteConnectionSecretToReference of this ServiceAccount.

func (*ServiceAccount) Hub added in v0.10.1

func (tr *ServiceAccount) Hub()

Hub marks this type as a conversion hub.

func (*ServiceAccount) LateInitialize added in v0.7.0

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

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

func (*ServiceAccount) ResolveReferences added in v0.7.0

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

ResolveReferences of this ServiceAccount.

func (*ServiceAccount) SetConditions added in v0.7.0

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

SetConditions of this ServiceAccount.

func (*ServiceAccount) SetDeletionPolicy added in v0.7.0

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

SetDeletionPolicy of this ServiceAccount.

func (*ServiceAccount) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this ServiceAccount.

func (*ServiceAccount) SetObservation added in v0.7.0

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

SetObservation for this ServiceAccount

func (*ServiceAccount) SetParameters added in v0.7.0

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

SetParameters for this ServiceAccount

func (*ServiceAccount) SetProviderConfigReference added in v0.7.0

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

SetProviderConfigReference of this ServiceAccount.

func (*ServiceAccount) SetPublishConnectionDetailsTo added in v0.7.0

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

SetPublishConnectionDetailsTo of this ServiceAccount.

func (*ServiceAccount) SetWriteConnectionSecretToReference added in v0.7.0

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

SetWriteConnectionSecretToReference of this ServiceAccount.

type ServiceAccountInitParameters added in v0.8.0

type ServiceAccountInitParameters struct {

	// (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 Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

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

func (*ServiceAccountInitParameters) DeepCopy added in v0.8.0

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

func (*ServiceAccountInitParameters) DeepCopyInto added in v0.8.0

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

type ServiceAccountList added in v0.7.0

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

ServiceAccountList contains a list of ServiceAccounts

func (*ServiceAccountList) DeepCopy added in v0.7.0

func (in *ServiceAccountList) DeepCopy() *ServiceAccountList

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

func (*ServiceAccountList) DeepCopyInto added in v0.7.0

func (in *ServiceAccountList) DeepCopyInto(out *ServiceAccountList)

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

func (*ServiceAccountList) DeepCopyObject added in v0.7.0

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

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

func (*ServiceAccountList) GetItems added in v0.7.0

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

GetItems of this ServiceAccountList.

type ServiceAccountObservation added in v0.7.0

type ServiceAccountObservation 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 Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,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"`
}

func (*ServiceAccountObservation) DeepCopy added in v0.7.0

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

func (*ServiceAccountObservation) DeepCopyInto added in v0.7.0

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

type ServiceAccountParameters added in v0.7.0

type ServiceAccountParameters struct {

	// (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 Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

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

func (*ServiceAccountParameters) DeepCopy added in v0.7.0

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

func (*ServiceAccountParameters) DeepCopyInto added in v0.7.0

func (in *ServiceAccountParameters) DeepCopyInto(out *ServiceAccountParameters)

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

type ServiceAccountPermission added in v0.7.0

type ServiceAccountPermission struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ServiceAccountPermissionSpec   `json:"spec"`
	Status            ServiceAccountPermissionStatus `json:"status,omitempty"`
}

ServiceAccountPermission is the Schema for the ServiceAccountPermissions API. Manages the entire set of permissions for a service account. Permissions that aren't specified when applying this resource will be removed. Note: This resource is available from Grafana 9.2.4 onwards. Official documentation https://grafana.com/docs/grafana/latest/administration/service-accounts/#manage-users-and-teams-permissions-for-a-service-account-in-grafana +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 (*ServiceAccountPermission) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermission) DeepCopyInto added in v0.7.0

func (in *ServiceAccountPermission) DeepCopyInto(out *ServiceAccountPermission)

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

func (*ServiceAccountPermission) DeepCopyObject added in v0.7.0

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

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

func (*ServiceAccountPermission) GetCondition added in v0.7.0

GetCondition of this ServiceAccountPermission.

func (*ServiceAccountPermission) GetConnectionDetailsMapping added in v0.7.0

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

GetConnectionDetailsMapping for this ServiceAccountPermission

func (*ServiceAccountPermission) GetDeletionPolicy added in v0.7.0

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

GetDeletionPolicy of this ServiceAccountPermission.

func (*ServiceAccountPermission) GetID added in v0.7.0

func (tr *ServiceAccountPermission) GetID() string

GetID returns ID of underlying Terraform resource of this ServiceAccountPermission

func (*ServiceAccountPermission) GetInitParameters added in v0.8.0

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

GetInitParameters of this ServiceAccountPermission

func (*ServiceAccountPermission) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this ServiceAccountPermission.

func (*ServiceAccountPermission) GetMergedParameters added in v0.10.1

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

GetInitParameters of this ServiceAccountPermission

func (*ServiceAccountPermission) GetObservation added in v0.7.0

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

GetObservation of this ServiceAccountPermission

func (*ServiceAccountPermission) GetParameters added in v0.7.0

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

GetParameters of this ServiceAccountPermission

func (*ServiceAccountPermission) GetProviderConfigReference added in v0.7.0

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

GetProviderConfigReference of this ServiceAccountPermission.

func (*ServiceAccountPermission) GetPublishConnectionDetailsTo added in v0.7.0

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

GetPublishConnectionDetailsTo of this ServiceAccountPermission.

func (*ServiceAccountPermission) GetTerraformResourceType added in v0.7.0

func (mg *ServiceAccountPermission) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ServiceAccountPermission

func (*ServiceAccountPermission) GetTerraformSchemaVersion added in v0.7.0

func (tr *ServiceAccountPermission) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ServiceAccountPermission) GetWriteConnectionSecretToReference added in v0.7.0

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

GetWriteConnectionSecretToReference of this ServiceAccountPermission.

func (*ServiceAccountPermission) Hub added in v0.10.1

func (tr *ServiceAccountPermission) Hub()

Hub marks this type as a conversion hub.

func (*ServiceAccountPermission) LateInitialize added in v0.7.0

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

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

func (*ServiceAccountPermission) ResolveReferences added in v0.7.0

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

ResolveReferences of this ServiceAccountPermission.

func (*ServiceAccountPermission) SetConditions added in v0.7.0

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

SetConditions of this ServiceAccountPermission.

func (*ServiceAccountPermission) SetDeletionPolicy added in v0.7.0

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

SetDeletionPolicy of this ServiceAccountPermission.

func (*ServiceAccountPermission) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this ServiceAccountPermission.

func (*ServiceAccountPermission) SetObservation added in v0.7.0

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

SetObservation for this ServiceAccountPermission

func (*ServiceAccountPermission) SetParameters added in v0.7.0

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

SetParameters for this ServiceAccountPermission

func (*ServiceAccountPermission) SetProviderConfigReference added in v0.7.0

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

SetProviderConfigReference of this ServiceAccountPermission.

func (*ServiceAccountPermission) SetPublishConnectionDetailsTo added in v0.7.0

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

SetPublishConnectionDetailsTo of this ServiceAccountPermission.

func (*ServiceAccountPermission) SetWriteConnectionSecretToReference added in v0.7.0

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

SetWriteConnectionSecretToReference of this ServiceAccountPermission.

type ServiceAccountPermissionInitParameters added in v0.8.0

type ServiceAccountPermissionInitParameters struct {

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	Permissions []ServiceAccountPermissionPermissionsInitParameters `json:"permissions,omitempty" tf:"permissions,omitempty"`

	// (String) The id of the service account.
	// The id of the service account.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.ServiceAccount
	// +crossplane:generate:reference:refFieldName=ServiceAccountRef
	// +crossplane:generate:reference:selectorFieldName=ServiceAccountSelector
	ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`

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

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

func (*ServiceAccountPermissionInitParameters) DeepCopy added in v0.8.0

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

func (*ServiceAccountPermissionInitParameters) DeepCopyInto added in v0.8.0

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

type ServiceAccountPermissionList added in v0.7.0

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

ServiceAccountPermissionList contains a list of ServiceAccountPermissions

func (*ServiceAccountPermissionList) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermissionList) DeepCopyInto added in v0.7.0

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

func (*ServiceAccountPermissionList) DeepCopyObject added in v0.7.0

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

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

func (*ServiceAccountPermissionList) GetItems added in v0.7.0

GetItems of this ServiceAccountPermissionList.

type ServiceAccountPermissionObservation added in v0.7.0

type ServiceAccountPermissionObservation struct {

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

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	Permissions []ServiceAccountPermissionPermissionsObservation `json:"permissions,omitempty" tf:"permissions,omitempty"`

	// (String) The id of the service account.
	// The id of the service account.
	ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
}

func (*ServiceAccountPermissionObservation) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermissionObservation) DeepCopyInto added in v0.7.0

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

type ServiceAccountPermissionParameters added in v0.7.0

type ServiceAccountPermissionParameters struct {

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block Set) The permission items to add/update. Items that are omitted from the list will be removed. (see below for nested schema)
	// The permission items to add/update. Items that are omitted from the list will be removed.
	// +kubebuilder:validation:Optional
	Permissions []ServiceAccountPermissionPermissionsParameters `json:"permissions,omitempty" tf:"permissions,omitempty"`

	// (String) The id of the service account.
	// The id of the service account.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.ServiceAccount
	// +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 ServiceAccount in oss to populate serviceAccountId.
	// +kubebuilder:validation:Optional
	ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`

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

func (*ServiceAccountPermissionParameters) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermissionParameters) DeepCopyInto added in v0.7.0

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

type ServiceAccountPermissionPermissionsInitParameters added in v0.8.0

type ServiceAccountPermissionPermissionsInitParameters struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRef
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// Reference to a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamRef *v1.Reference `json:"teamRef,omitempty" tf:"-"`

	// Selector for a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRef
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserRef *v1.Reference `json:"userRef,omitempty" tf:"-"`

	// Selector for a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`
}

func (*ServiceAccountPermissionPermissionsInitParameters) DeepCopy added in v0.8.0

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

func (*ServiceAccountPermissionPermissionsInitParameters) DeepCopyInto added in v0.8.0

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

type ServiceAccountPermissionPermissionsObservation added in v0.7.0

type ServiceAccountPermissionPermissionsObservation struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*ServiceAccountPermissionPermissionsObservation) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermissionPermissionsObservation) DeepCopyInto added in v0.7.0

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

type ServiceAccountPermissionPermissionsParameters added in v0.7.0

type ServiceAccountPermissionPermissionsParameters struct {

	// (String) Permission to associate with item. Must be one of View, Edit, or Admin.
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	// +kubebuilder:validation:Optional
	Permission *string `json:"permission" tf:"permission,omitempty"`

	// (String) ID of the team to manage permissions for. Defaults to 0.
	// ID of the team to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Team
	// +crossplane:generate:reference:refFieldName=TeamRef
	// +crossplane:generate:reference:selectorFieldName=TeamSelector
	// +kubebuilder:validation:Optional
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// Reference to a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamRef *v1.Reference `json:"teamRef,omitempty" tf:"-"`

	// Selector for a Team in oss to populate teamId.
	// +kubebuilder:validation:Optional
	TeamSelector *v1.Selector `json:"teamSelector,omitempty" tf:"-"`

	// (String) ID of the user or service account to manage permissions for. Defaults to 0.
	// ID of the user or service account to manage permissions for. Defaults to `0`.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:refFieldName=UserRef
	// +crossplane:generate:reference:selectorFieldName=UserSelector
	// +kubebuilder:validation:Optional
	UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"`

	// Reference to a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserRef *v1.Reference `json:"userRef,omitempty" tf:"-"`

	// Selector for a User in oss to populate userId.
	// +kubebuilder:validation:Optional
	UserSelector *v1.Selector `json:"userSelector,omitempty" tf:"-"`
}

func (*ServiceAccountPermissionPermissionsParameters) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermissionPermissionsParameters) DeepCopyInto added in v0.7.0

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

type ServiceAccountPermissionSpec added in v0.7.0

type ServiceAccountPermissionSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ServiceAccountPermissionParameters `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 ServiceAccountPermissionInitParameters `json:"initProvider,omitempty"`
}

ServiceAccountPermissionSpec defines the desired state of ServiceAccountPermission

func (*ServiceAccountPermissionSpec) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermissionSpec) DeepCopyInto added in v0.7.0

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

type ServiceAccountPermissionStatus added in v0.7.0

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

ServiceAccountPermissionStatus defines the observed state of ServiceAccountPermission.

func (*ServiceAccountPermissionStatus) DeepCopy added in v0.7.0

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

func (*ServiceAccountPermissionStatus) DeepCopyInto added in v0.7.0

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

type ServiceAccountSpec added in v0.7.0

type ServiceAccountSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ServiceAccountParameters `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 ServiceAccountInitParameters `json:"initProvider,omitempty"`
}

ServiceAccountSpec defines the desired state of ServiceAccount

func (*ServiceAccountSpec) DeepCopy added in v0.7.0

func (in *ServiceAccountSpec) DeepCopy() *ServiceAccountSpec

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

func (*ServiceAccountSpec) DeepCopyInto added in v0.7.0

func (in *ServiceAccountSpec) DeepCopyInto(out *ServiceAccountSpec)

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

type ServiceAccountStatus added in v0.7.0

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

ServiceAccountStatus defines the observed state of ServiceAccount.

func (*ServiceAccountStatus) DeepCopy added in v0.7.0

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

func (*ServiceAccountStatus) DeepCopyInto added in v0.7.0

func (in *ServiceAccountStatus) DeepCopyInto(out *ServiceAccountStatus)

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

type ServiceAccountToken added in v0.7.0

type ServiceAccountToken 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   ServiceAccountTokenSpec   `json:"spec"`
	Status ServiceAccountTokenStatus `json:"status,omitempty"`
}

ServiceAccountToken is the Schema for the ServiceAccountTokens API. Note: This resource is available only with Grafana 9.1+. 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 +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 (*ServiceAccountToken) DeepCopy added in v0.7.0

func (in *ServiceAccountToken) DeepCopy() *ServiceAccountToken

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

func (*ServiceAccountToken) DeepCopyInto added in v0.7.0

func (in *ServiceAccountToken) DeepCopyInto(out *ServiceAccountToken)

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

func (*ServiceAccountToken) DeepCopyObject added in v0.7.0

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

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

func (*ServiceAccountToken) GetCondition added in v0.7.0

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

GetCondition of this ServiceAccountToken.

func (*ServiceAccountToken) GetConnectionDetailsMapping added in v0.7.0

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

GetConnectionDetailsMapping for this ServiceAccountToken

func (*ServiceAccountToken) GetDeletionPolicy added in v0.7.0

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

GetDeletionPolicy of this ServiceAccountToken.

func (*ServiceAccountToken) GetID added in v0.7.0

func (tr *ServiceAccountToken) GetID() string

GetID returns ID of underlying Terraform resource of this ServiceAccountToken

func (*ServiceAccountToken) GetInitParameters added in v0.8.0

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

GetInitParameters of this ServiceAccountToken

func (*ServiceAccountToken) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this ServiceAccountToken.

func (*ServiceAccountToken) GetMergedParameters added in v0.10.1

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

GetInitParameters of this ServiceAccountToken

func (*ServiceAccountToken) GetObservation added in v0.7.0

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

GetObservation of this ServiceAccountToken

func (*ServiceAccountToken) GetParameters added in v0.7.0

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

GetParameters of this ServiceAccountToken

func (*ServiceAccountToken) GetProviderConfigReference added in v0.7.0

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

GetProviderConfigReference of this ServiceAccountToken.

func (*ServiceAccountToken) GetPublishConnectionDetailsTo added in v0.7.0

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

GetPublishConnectionDetailsTo of this ServiceAccountToken.

func (*ServiceAccountToken) GetTerraformResourceType added in v0.7.0

func (mg *ServiceAccountToken) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ServiceAccountToken

func (*ServiceAccountToken) GetTerraformSchemaVersion added in v0.7.0

func (tr *ServiceAccountToken) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ServiceAccountToken) GetWriteConnectionSecretToReference added in v0.7.0

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

GetWriteConnectionSecretToReference of this ServiceAccountToken.

func (*ServiceAccountToken) Hub added in v0.10.1

func (tr *ServiceAccountToken) Hub()

Hub marks this type as a conversion hub.

func (*ServiceAccountToken) LateInitialize added in v0.7.0

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

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

func (*ServiceAccountToken) ResolveReferences added in v0.7.0

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

ResolveReferences of this ServiceAccountToken.

func (*ServiceAccountToken) SetConditions added in v0.7.0

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

SetConditions of this ServiceAccountToken.

func (*ServiceAccountToken) SetDeletionPolicy added in v0.7.0

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

SetDeletionPolicy of this ServiceAccountToken.

func (*ServiceAccountToken) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this ServiceAccountToken.

func (*ServiceAccountToken) SetObservation added in v0.7.0

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

SetObservation for this ServiceAccountToken

func (*ServiceAccountToken) SetParameters added in v0.7.0

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

SetParameters for this ServiceAccountToken

func (*ServiceAccountToken) SetProviderConfigReference added in v0.7.0

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

SetProviderConfigReference of this ServiceAccountToken.

func (*ServiceAccountToken) SetPublishConnectionDetailsTo added in v0.7.0

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

SetPublishConnectionDetailsTo of this ServiceAccountToken.

func (*ServiceAccountToken) SetWriteConnectionSecretToReference added in v0.7.0

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

SetWriteConnectionSecretToReference of this ServiceAccountToken.

type ServiceAccountTokenInitParameters added in v0.8.0

type ServiceAccountTokenInitParameters struct {

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

	// (Number) The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless api_key_max_seconds_to_live configuration option is set) the key will never expire.
	// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will never expire.
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,omitempty"`

	// (String) The ID of the service account to which the token belongs.
	// The ID of the service account to which the token belongs.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.ServiceAccount
	// +crossplane:generate:reference:refFieldName=ServiceAccountRef
	// +crossplane:generate:reference:selectorFieldName=ServiceAccountSelector
	ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`

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

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

func (*ServiceAccountTokenInitParameters) DeepCopy added in v0.8.0

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

func (*ServiceAccountTokenInitParameters) DeepCopyInto added in v0.8.0

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

type ServiceAccountTokenList added in v0.7.0

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

ServiceAccountTokenList contains a list of ServiceAccountTokens

func (*ServiceAccountTokenList) DeepCopy added in v0.7.0

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

func (*ServiceAccountTokenList) DeepCopyInto added in v0.7.0

func (in *ServiceAccountTokenList) DeepCopyInto(out *ServiceAccountTokenList)

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

func (*ServiceAccountTokenList) DeepCopyObject added in v0.7.0

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

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

func (*ServiceAccountTokenList) GetItems added in v0.7.0

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

GetItems of this ServiceAccountTokenList.

type ServiceAccountTokenObservation added in v0.7.0

type ServiceAccountTokenObservation struct {

	// (String) The expiration date of the service account token.
	// The expiration date of the service account token.
	Expiration *string `json:"expiration,omitempty" tf:"expiration,omitempty"`

	// (Boolean) The status of the service account token.
	// The status of the service account token.
	HasExpired *bool `json:"hasExpired,omitempty" tf:"has_expired,omitempty"`

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

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

	// (Number) The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless api_key_max_seconds_to_live configuration option is set) the key will never expire.
	// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will never expire.
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,omitempty"`

	// (String) The ID of the service account to which the token belongs.
	// The ID of the service account to which the token belongs.
	ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
}

func (*ServiceAccountTokenObservation) DeepCopy added in v0.7.0

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

func (*ServiceAccountTokenObservation) DeepCopyInto added in v0.7.0

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

type ServiceAccountTokenParameters added in v0.7.0

type ServiceAccountTokenParameters struct {

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

	// (Number) The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless api_key_max_seconds_to_live configuration option is set) the key will never expire.
	// The key expiration in seconds. It is optional. If it is a positive number an expiration date for the key is set. If it is null, zero or is omitted completely (unless `api_key_max_seconds_to_live` configuration option is set) the key will never expire.
	// +kubebuilder:validation:Optional
	SecondsToLive *float64 `json:"secondsToLive,omitempty" tf:"seconds_to_live,omitempty"`

	// (String) The ID of the service account to which the token belongs.
	// The ID of the service account to which the token belongs.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.ServiceAccount
	// +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 ServiceAccount in oss to populate serviceAccountId.
	// +kubebuilder:validation:Optional
	ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`

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

func (*ServiceAccountTokenParameters) DeepCopy added in v0.7.0

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

func (*ServiceAccountTokenParameters) DeepCopyInto added in v0.7.0

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

type ServiceAccountTokenSpec added in v0.7.0

type ServiceAccountTokenSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ServiceAccountTokenParameters `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 ServiceAccountTokenInitParameters `json:"initProvider,omitempty"`
}

ServiceAccountTokenSpec defines the desired state of ServiceAccountToken

func (*ServiceAccountTokenSpec) DeepCopy added in v0.7.0

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

func (*ServiceAccountTokenSpec) DeepCopyInto added in v0.7.0

func (in *ServiceAccountTokenSpec) DeepCopyInto(out *ServiceAccountTokenSpec)

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

type ServiceAccountTokenStatus added in v0.7.0

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

ServiceAccountTokenStatus defines the observed state of ServiceAccountToken.

func (*ServiceAccountTokenStatus) DeepCopy added in v0.7.0

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

func (*ServiceAccountTokenStatus) DeepCopyInto added in v0.7.0

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

type SsoSettings added in v0.11.0

type SsoSettings 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.providerName) || (has(self.initProvider) && has(self.initProvider.providerName))",message="spec.forProvider.providerName is a required parameter"
	Spec   SsoSettingsSpec   `json:"spec"`
	Status SsoSettingsStatus `json:"status,omitempty"`
}

SsoSettings is the Schema for the SsoSettingss API. Manages Grafana SSO Settings for OAuth2 and SAML. Official documentation https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/sso-settings/ +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 (*SsoSettings) DeepCopy added in v0.11.0

func (in *SsoSettings) DeepCopy() *SsoSettings

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

func (*SsoSettings) DeepCopyInto added in v0.11.0

func (in *SsoSettings) DeepCopyInto(out *SsoSettings)

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

func (*SsoSettings) DeepCopyObject added in v0.11.0

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

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

func (*SsoSettings) GetCondition added in v0.11.0

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

GetCondition of this SsoSettings.

func (*SsoSettings) GetConnectionDetailsMapping added in v0.11.0

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

GetConnectionDetailsMapping for this SsoSettings

func (*SsoSettings) GetDeletionPolicy added in v0.11.0

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

GetDeletionPolicy of this SsoSettings.

func (*SsoSettings) GetID added in v0.11.0

func (tr *SsoSettings) GetID() string

GetID returns ID of underlying Terraform resource of this SsoSettings

func (*SsoSettings) GetInitParameters added in v0.11.0

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

GetInitParameters of this SsoSettings

func (*SsoSettings) GetManagementPolicies added in v0.11.0

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

GetManagementPolicies of this SsoSettings.

func (*SsoSettings) GetMergedParameters added in v0.11.0

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

GetInitParameters of this SsoSettings

func (*SsoSettings) GetObservation added in v0.11.0

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

GetObservation of this SsoSettings

func (*SsoSettings) GetParameters added in v0.11.0

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

GetParameters of this SsoSettings

func (*SsoSettings) GetProviderConfigReference added in v0.11.0

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

GetProviderConfigReference of this SsoSettings.

func (*SsoSettings) GetPublishConnectionDetailsTo added in v0.11.0

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

GetPublishConnectionDetailsTo of this SsoSettings.

func (*SsoSettings) GetTerraformResourceType added in v0.11.0

func (mg *SsoSettings) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this SsoSettings

func (*SsoSettings) GetTerraformSchemaVersion added in v0.11.0

func (tr *SsoSettings) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*SsoSettings) GetWriteConnectionSecretToReference added in v0.11.0

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

GetWriteConnectionSecretToReference of this SsoSettings.

func (*SsoSettings) Hub added in v0.11.0

func (tr *SsoSettings) Hub()

Hub marks this type as a conversion hub.

func (*SsoSettings) LateInitialize added in v0.11.0

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

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

func (*SsoSettings) SetConditions added in v0.11.0

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

SetConditions of this SsoSettings.

func (*SsoSettings) SetDeletionPolicy added in v0.11.0

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

SetDeletionPolicy of this SsoSettings.

func (*SsoSettings) SetManagementPolicies added in v0.11.0

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

SetManagementPolicies of this SsoSettings.

func (*SsoSettings) SetObservation added in v0.11.0

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

SetObservation for this SsoSettings

func (*SsoSettings) SetParameters added in v0.11.0

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

SetParameters for this SsoSettings

func (*SsoSettings) SetProviderConfigReference added in v0.11.0

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

SetProviderConfigReference of this SsoSettings.

func (*SsoSettings) SetPublishConnectionDetailsTo added in v0.11.0

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

SetPublishConnectionDetailsTo of this SsoSettings.

func (*SsoSettings) SetWriteConnectionSecretToReference added in v0.11.0

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

SetWriteConnectionSecretToReference of this SsoSettings.

type SsoSettingsInitParameters added in v0.11.0

type SsoSettingsInitParameters struct {

	// (Block Set, Max: 1) The OAuth2 settings set. Required for github, gitlab, google, azuread, okta, generic_oauth providers. (see below for nested schema)
	// The OAuth2 settings set. Required for github, gitlab, google, azuread, okta, generic_oauth providers.
	Oauth2Settings []Oauth2SettingsInitParameters `json:"oauth2Settings,omitempty" tf:"oauth2_settings,omitempty"`

	// (String) The name of the SSO provider. Supported values: github, gitlab, google, azuread, okta, generic_oauth, saml.
	// The name of the SSO provider. Supported values: github, gitlab, google, azuread, okta, generic_oauth, saml.
	ProviderName *string `json:"providerName,omitempty" tf:"provider_name,omitempty"`

	// (Block Set, Max: 1) The SAML settings set. Required for the saml provider. (see below for nested schema)
	// The SAML settings set. Required for the saml provider.
	SAMLSettings []SAMLSettingsInitParameters `json:"samlSettings,omitempty" tf:"saml_settings,omitempty"`
}

func (*SsoSettingsInitParameters) DeepCopy added in v0.11.0

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

func (*SsoSettingsInitParameters) DeepCopyInto added in v0.11.0

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

type SsoSettingsList added in v0.11.0

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

SsoSettingsList contains a list of SsoSettingss

func (*SsoSettingsList) DeepCopy added in v0.11.0

func (in *SsoSettingsList) DeepCopy() *SsoSettingsList

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

func (*SsoSettingsList) DeepCopyInto added in v0.11.0

func (in *SsoSettingsList) DeepCopyInto(out *SsoSettingsList)

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

func (*SsoSettingsList) DeepCopyObject added in v0.11.0

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

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

func (*SsoSettingsList) GetItems added in v0.11.0

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

GetItems of this SsoSettingsList.

type SsoSettingsObservation added in v0.11.0

type SsoSettingsObservation struct {

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

	// (Block Set, Max: 1) The OAuth2 settings set. Required for github, gitlab, google, azuread, okta, generic_oauth providers. (see below for nested schema)
	// The OAuth2 settings set. Required for github, gitlab, google, azuread, okta, generic_oauth providers.
	Oauth2Settings []Oauth2SettingsObservation `json:"oauth2Settings,omitempty" tf:"oauth2_settings,omitempty"`

	// (String) The name of the SSO provider. Supported values: github, gitlab, google, azuread, okta, generic_oauth, saml.
	// The name of the SSO provider. Supported values: github, gitlab, google, azuread, okta, generic_oauth, saml.
	ProviderName *string `json:"providerName,omitempty" tf:"provider_name,omitempty"`

	// (Block Set, Max: 1) The SAML settings set. Required for the saml provider. (see below for nested schema)
	// The SAML settings set. Required for the saml provider.
	SAMLSettings []SAMLSettingsObservation `json:"samlSettings,omitempty" tf:"saml_settings,omitempty"`
}

func (*SsoSettingsObservation) DeepCopy added in v0.11.0

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

func (*SsoSettingsObservation) DeepCopyInto added in v0.11.0

func (in *SsoSettingsObservation) DeepCopyInto(out *SsoSettingsObservation)

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

type SsoSettingsParameters added in v0.11.0

type SsoSettingsParameters struct {

	// (Block Set, Max: 1) The OAuth2 settings set. Required for github, gitlab, google, azuread, okta, generic_oauth providers. (see below for nested schema)
	// The OAuth2 settings set. Required for github, gitlab, google, azuread, okta, generic_oauth providers.
	// +kubebuilder:validation:Optional
	Oauth2Settings []Oauth2SettingsParameters `json:"oauth2Settings,omitempty" tf:"oauth2_settings,omitempty"`

	// (String) The name of the SSO provider. Supported values: github, gitlab, google, azuread, okta, generic_oauth, saml.
	// The name of the SSO provider. Supported values: github, gitlab, google, azuread, okta, generic_oauth, saml.
	// +kubebuilder:validation:Optional
	ProviderName *string `json:"providerName,omitempty" tf:"provider_name,omitempty"`

	// (Block Set, Max: 1) The SAML settings set. Required for the saml provider. (see below for nested schema)
	// The SAML settings set. Required for the saml provider.
	// +kubebuilder:validation:Optional
	SAMLSettings []SAMLSettingsParameters `json:"samlSettings,omitempty" tf:"saml_settings,omitempty"`
}

func (*SsoSettingsParameters) DeepCopy added in v0.11.0

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

func (*SsoSettingsParameters) DeepCopyInto added in v0.11.0

func (in *SsoSettingsParameters) DeepCopyInto(out *SsoSettingsParameters)

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

type SsoSettingsSpec added in v0.11.0

type SsoSettingsSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     SsoSettingsParameters `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 SsoSettingsInitParameters `json:"initProvider,omitempty"`
}

SsoSettingsSpec defines the desired state of SsoSettings

func (*SsoSettingsSpec) DeepCopy added in v0.11.0

func (in *SsoSettingsSpec) DeepCopy() *SsoSettingsSpec

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

func (*SsoSettingsSpec) DeepCopyInto added in v0.11.0

func (in *SsoSettingsSpec) DeepCopyInto(out *SsoSettingsSpec)

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

type SsoSettingsStatus added in v0.11.0

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

SsoSettingsStatus defines the observed state of SsoSettings.

func (*SsoSettingsStatus) DeepCopy added in v0.11.0

func (in *SsoSettingsStatus) DeepCopy() *SsoSettingsStatus

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

func (*SsoSettingsStatus) DeepCopyInto added in v0.11.0

func (in *SsoSettingsStatus) DeepCopyInto(out *SsoSettingsStatus)

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

type Team

type Team 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   TeamSpec   `json:"spec"`
	Status TeamStatus `json:"status,omitempty"`
}

Team is the Schema for the Teams API. Official documentation https://grafana.com/docs/grafana/latest/administration/team-management/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/team/ +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 (*Team) DeepCopy

func (in *Team) DeepCopy() *Team

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

func (*Team) DeepCopyInto

func (in *Team) DeepCopyInto(out *Team)

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

func (*Team) DeepCopyObject

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

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

func (*Team) GetCondition

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

GetCondition of this Team.

func (*Team) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Team

func (*Team) GetDeletionPolicy

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

GetDeletionPolicy of this Team.

func (*Team) GetID

func (tr *Team) GetID() string

GetID returns ID of underlying Terraform resource of this Team

func (*Team) GetInitParameters added in v0.8.0

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

GetInitParameters of this Team

func (*Team) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this Team.

func (*Team) GetMergedParameters added in v0.10.1

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

GetInitParameters of this Team

func (*Team) GetObservation

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

GetObservation of this Team

func (*Team) GetParameters

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

GetParameters of this Team

func (*Team) GetProviderConfigReference

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

GetProviderConfigReference of this Team.

func (*Team) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Team.

func (*Team) GetTerraformResourceType

func (mg *Team) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Team

func (*Team) GetTerraformSchemaVersion

func (tr *Team) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Team) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Team.

func (*Team) Hub added in v0.10.1

func (tr *Team) Hub()

Hub marks this type as a conversion hub.

func (*Team) LateInitialize

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

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

func (*Team) ResolveReferences

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

ResolveReferences of this Team.

func (*Team) SetConditions

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

SetConditions of this Team.

func (*Team) SetDeletionPolicy

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

SetDeletionPolicy of this Team.

func (*Team) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this Team.

func (*Team) SetObservation

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

SetObservation for this Team

func (*Team) SetParameters

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

SetParameters for this Team

func (*Team) SetProviderConfigReference

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

SetProviderConfigReference of this Team.

func (*Team) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Team.

func (*Team) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Team.

type TeamInitParameters added in v0.8.0

type TeamInitParameters struct {

	// (String) An email address for the team.
	// An email address for the team.
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// (Boolean) Ignores team members that have been added to team by Team Sync.
	// Team Sync can be provisioned using grafana_team_external_group resource.
	// Defaults to true.
	// Ignores team members that have been added to team by [Team Sync](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/).
	// Team Sync can be provisioned using [grafana_team_external_group resource](https://registry.io/providers/grafana/grafana/latest/docs/resources/team_external_group).
	// Defaults to `true`.
	IgnoreExternallySyncedMembers *bool `json:"ignoreExternallySyncedMembers,omitempty" tf:"ignore_externally_synced_members,omitempty"`

	// References to User in oss to populate members.
	// +kubebuilder:validation:Optional
	MemberRefs []v1.Reference `json:"memberRefs,omitempty" tf:"-"`

	// Selector for a list of User in oss to populate members.
	// +kubebuilder:validation:Optional
	MemberSelector *v1.Selector `json:"memberSelector,omitempty" tf:"-"`

	// (Set of String) A set of email addresses corresponding to users who should be given membership
	// to the team. Note: users specified here must already exist in Grafana.
	// A set of email addresses corresponding to users who should be given membership
	// to the team. Note: users specified here must already exist in Grafana.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("email")
	// +crossplane:generate:reference:refFieldName=MemberRefs
	// +crossplane:generate:reference:selectorFieldName=MemberSelector
	// +listType=set
	Members []*string `json:"members,omitempty" tf:"members,omitempty"`

	// (String) The display name for the Grafana team created.
	// The display name for the Grafana team created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block List, Max: 1) (see below for nested schema)
	Preferences []PreferencesInitParameters `json:"preferences,omitempty" tf:"preferences,omitempty"`

	// (Block List, Max: 1) Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise.
	// Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise.
	// * [Official documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/)
	// * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/team_sync/)
	TeamSync []TeamSyncInitParameters `json:"teamSync,omitempty" tf:"team_sync,omitempty"`
}

func (*TeamInitParameters) DeepCopy added in v0.8.0

func (in *TeamInitParameters) DeepCopy() *TeamInitParameters

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

func (*TeamInitParameters) DeepCopyInto added in v0.8.0

func (in *TeamInitParameters) DeepCopyInto(out *TeamInitParameters)

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

type TeamList

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

TeamList contains a list of Teams

func (*TeamList) DeepCopy

func (in *TeamList) DeepCopy() *TeamList

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

func (*TeamList) DeepCopyInto

func (in *TeamList) DeepCopyInto(out *TeamList)

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

func (*TeamList) DeepCopyObject

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

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

func (*TeamList) GetItems

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

GetItems of this TeamList.

type TeamObservation

type TeamObservation struct {

	// (String) An email address for the team.
	// An email address for the team.
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

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

	// (Boolean) Ignores team members that have been added to team by Team Sync.
	// Team Sync can be provisioned using grafana_team_external_group resource.
	// Defaults to true.
	// Ignores team members that have been added to team by [Team Sync](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/).
	// Team Sync can be provisioned using [grafana_team_external_group resource](https://registry.io/providers/grafana/grafana/latest/docs/resources/team_external_group).
	// Defaults to `true`.
	IgnoreExternallySyncedMembers *bool `json:"ignoreExternallySyncedMembers,omitempty" tf:"ignore_externally_synced_members,omitempty"`

	// (Set of String) A set of email addresses corresponding to users who should be given membership
	// to the team. Note: users specified here must already exist in Grafana.
	// A set of email addresses corresponding to users who should be given membership
	// to the team. Note: users specified here must already exist in Grafana.
	// +listType=set
	Members []*string `json:"members,omitempty" tf:"members,omitempty"`

	// (String) The display name for the Grafana team created.
	// The display name for the Grafana team created.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// (Block List, Max: 1) (see below for nested schema)
	Preferences []PreferencesObservation `json:"preferences,omitempty" tf:"preferences,omitempty"`

	// (Number) The team id assigned to this team by Grafana.
	// The team id assigned to this team by Grafana.
	TeamID *float64 `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// (Block List, Max: 1) Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise.
	// Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise.
	// * [Official documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/)
	// * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/team_sync/)
	TeamSync []TeamSyncObservation `json:"teamSync,omitempty" tf:"team_sync,omitempty"`
}

func (*TeamObservation) DeepCopy

func (in *TeamObservation) DeepCopy() *TeamObservation

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

func (*TeamObservation) DeepCopyInto

func (in *TeamObservation) DeepCopyInto(out *TeamObservation)

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

type TeamParameters

type TeamParameters struct {

	// (String) An email address for the team.
	// An email address for the team.
	// +kubebuilder:validation:Optional
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// (Boolean) Ignores team members that have been added to team by Team Sync.
	// Team Sync can be provisioned using grafana_team_external_group resource.
	// Defaults to true.
	// Ignores team members that have been added to team by [Team Sync](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/).
	// Team Sync can be provisioned using [grafana_team_external_group resource](https://registry.io/providers/grafana/grafana/latest/docs/resources/team_external_group).
	// Defaults to `true`.
	// +kubebuilder:validation:Optional
	IgnoreExternallySyncedMembers *bool `json:"ignoreExternallySyncedMembers,omitempty" tf:"ignore_externally_synced_members,omitempty"`

	// References to User in oss to populate members.
	// +kubebuilder:validation:Optional
	MemberRefs []v1.Reference `json:"memberRefs,omitempty" tf:"-"`

	// Selector for a list of User in oss to populate members.
	// +kubebuilder:validation:Optional
	MemberSelector *v1.Selector `json:"memberSelector,omitempty" tf:"-"`

	// (Set of String) A set of email addresses corresponding to users who should be given membership
	// to the team. Note: users specified here must already exist in Grafana.
	// A set of email addresses corresponding to users who should be given membership
	// to the team. Note: users specified here must already exist in Grafana.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.User
	// +crossplane:generate:reference:extractor=github.com/grafana/crossplane-provider-grafana/config/grafana.FieldExtractor("email")
	// +crossplane:generate:reference:refFieldName=MemberRefs
	// +crossplane:generate:reference:selectorFieldName=MemberSelector
	// +kubebuilder:validation:Optional
	// +listType=set
	Members []*string `json:"members,omitempty" tf:"members,omitempty"`

	// (String) The display name for the Grafana team created.
	// The display name for the Grafana team created.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// The Organization ID. If not set, the Org ID defined in the provider block will be used.
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/oss/v1alpha1.Organization
	// +crossplane:generate:reference:refFieldName=OrganizationRef
	// +crossplane:generate:reference:selectorFieldName=OrganizationSelector
	// +kubebuilder:validation:Optional
	OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Reference to a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationRef *v1.Reference `json:"organizationRef,omitempty" tf:"-"`

	// Selector for a Organization in oss to populate orgId.
	// +kubebuilder:validation:Optional
	OrganizationSelector *v1.Selector `json:"organizationSelector,omitempty" tf:"-"`

	// (Block List, Max: 1) (see below for nested schema)
	// +kubebuilder:validation:Optional
	Preferences []PreferencesParameters `json:"preferences,omitempty" tf:"preferences,omitempty"`

	// (Block List, Max: 1) Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise.
	// Sync external auth provider groups with this Grafana team. Only available in Grafana Enterprise.
	// * [Official documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-team-sync/)
	// * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/team_sync/)
	// +kubebuilder:validation:Optional
	TeamSync []TeamSyncParameters `json:"teamSync,omitempty" tf:"team_sync,omitempty"`
}

func (*TeamParameters) DeepCopy

func (in *TeamParameters) DeepCopy() *TeamParameters

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

func (*TeamParameters) DeepCopyInto

func (in *TeamParameters) DeepCopyInto(out *TeamParameters)

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

type TeamSpec

type TeamSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     TeamParameters `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 TeamInitParameters `json:"initProvider,omitempty"`
}

TeamSpec defines the desired state of Team

func (*TeamSpec) DeepCopy

func (in *TeamSpec) DeepCopy() *TeamSpec

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

func (*TeamSpec) DeepCopyInto

func (in *TeamSpec) DeepCopyInto(out *TeamSpec)

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

type TeamStatus

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

TeamStatus defines the observed state of Team.

func (*TeamStatus) DeepCopy

func (in *TeamStatus) DeepCopy() *TeamStatus

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

func (*TeamStatus) DeepCopyInto

func (in *TeamStatus) DeepCopyInto(out *TeamStatus)

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

type TeamSyncInitParameters added in v0.8.0

type TeamSyncInitParameters struct {

	// (Set of String)
	// +listType=set
	Groups []*string `json:"groups,omitempty" tf:"groups,omitempty"`
}

func (*TeamSyncInitParameters) DeepCopy added in v0.8.0

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

func (*TeamSyncInitParameters) DeepCopyInto added in v0.8.0

func (in *TeamSyncInitParameters) DeepCopyInto(out *TeamSyncInitParameters)

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

type TeamSyncObservation added in v0.7.0

type TeamSyncObservation struct {

	// (Set of String)
	// +listType=set
	Groups []*string `json:"groups,omitempty" tf:"groups,omitempty"`
}

func (*TeamSyncObservation) DeepCopy added in v0.7.0

func (in *TeamSyncObservation) DeepCopy() *TeamSyncObservation

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

func (*TeamSyncObservation) DeepCopyInto added in v0.7.0

func (in *TeamSyncObservation) DeepCopyInto(out *TeamSyncObservation)

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

type TeamSyncParameters added in v0.7.0

type TeamSyncParameters struct {

	// (Set of String)
	// +kubebuilder:validation:Optional
	// +listType=set
	Groups []*string `json:"groups,omitempty" tf:"groups,omitempty"`
}

func (*TeamSyncParameters) DeepCopy added in v0.7.0

func (in *TeamSyncParameters) DeepCopy() *TeamSyncParameters

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

func (*TeamSyncParameters) DeepCopyInto added in v0.7.0

func (in *TeamSyncParameters) DeepCopyInto(out *TeamSyncParameters)

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

type User

type User 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.email) || (has(self.initProvider) && has(self.initProvider.email))",message="spec.forProvider.email is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.passwordSecretRef)",message="spec.forProvider.passwordSecretRef is a required parameter"
	Spec   UserSpec   `json:"spec"`
	Status UserStatus `json:"status,omitempty"`
}

User is the Schema for the Users API. Official documentation https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/user/ This resource represents an instance-scoped resource and uses Grafana's admin APIs. It does not work with API tokens or service accounts which are org-scoped. You must use basic auth. +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 (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

func (*User) GetCondition

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

GetCondition of this User.

func (*User) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this User

func (*User) GetDeletionPolicy

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

GetDeletionPolicy of this User.

func (*User) GetID

func (tr *User) GetID() string

GetID returns ID of underlying Terraform resource of this User

func (*User) GetInitParameters added in v0.8.0

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

GetInitParameters of this User

func (*User) GetManagementPolicies added in v0.8.0

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

GetManagementPolicies of this User.

func (*User) GetMergedParameters added in v0.10.1

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

GetInitParameters of this User

func (*User) GetObservation

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

GetObservation of this User

func (*User) GetParameters

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

GetParameters of this User

func (*User) GetProviderConfigReference

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

GetProviderConfigReference of this User.

func (*User) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this User.

func (*User) GetTerraformResourceType

func (mg *User) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this User

func (*User) GetTerraformSchemaVersion

func (tr *User) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*User) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this User.

func (*User) Hub added in v0.10.1

func (tr *User) Hub()

Hub marks this type as a conversion hub.

func (*User) LateInitialize

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

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

func (*User) SetConditions

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

SetConditions of this User.

func (*User) SetDeletionPolicy

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

SetDeletionPolicy of this User.

func (*User) SetManagementPolicies added in v0.8.0

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

SetManagementPolicies of this User.

func (*User) SetObservation

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

SetObservation for this User

func (*User) SetParameters

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

SetParameters for this User

func (*User) SetProviderConfigReference

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

SetProviderConfigReference of this User.

func (*User) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this User.

func (*User) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this User.

type UserInitParameters added in v0.8.0

type UserInitParameters struct {

	// (String) The email address of the Grafana user.
	// The email address of the Grafana user.
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// (Boolean) Whether to make user an admin. Defaults to false.
	// Whether to make user an admin. Defaults to `false`.
	IsAdmin *bool `json:"isAdmin,omitempty" tf:"is_admin,omitempty"`

	// (String) The username for the Grafana user.
	// The username for the Grafana user.
	Login *string `json:"login,omitempty" tf:"login,omitempty"`

	// (String) The display name for the Grafana user.
	// The display name for the Grafana user.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*UserInitParameters) DeepCopy added in v0.8.0

func (in *UserInitParameters) DeepCopy() *UserInitParameters

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

func (*UserInitParameters) DeepCopyInto added in v0.8.0

func (in *UserInitParameters) DeepCopyInto(out *UserInitParameters)

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

type UserList

type UserList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []User `json:"items"`
}

UserList contains a list of Users

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UserList) DeepCopyObject

func (in *UserList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*UserList) GetItems

func (l *UserList) GetItems() []resource.Managed

GetItems of this UserList.

type UserObservation

type UserObservation struct {

	// (String) The email address of the Grafana user.
	// The email address of the Grafana user.
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// (Boolean) Whether to make user an admin. Defaults to false.
	// Whether to make user an admin. Defaults to `false`.
	IsAdmin *bool `json:"isAdmin,omitempty" tf:"is_admin,omitempty"`

	// (String) The username for the Grafana user.
	// The username for the Grafana user.
	Login *string `json:"login,omitempty" tf:"login,omitempty"`

	// (String) The display name for the Grafana user.
	// The display name for the Grafana user.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (Number) The numerical ID of the Grafana user.
	// The numerical ID of the Grafana user.
	UserID *float64 `json:"userId,omitempty" tf:"user_id,omitempty"`
}

func (*UserObservation) DeepCopy

func (in *UserObservation) DeepCopy() *UserObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObservation.

func (*UserObservation) DeepCopyInto

func (in *UserObservation) DeepCopyInto(out *UserObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UserParameters

type UserParameters struct {

	// (String) The email address of the Grafana user.
	// The email address of the Grafana user.
	// +kubebuilder:validation:Optional
	Email *string `json:"email,omitempty" tf:"email,omitempty"`

	// (Boolean) Whether to make user an admin. Defaults to false.
	// Whether to make user an admin. Defaults to `false`.
	// +kubebuilder:validation:Optional
	IsAdmin *bool `json:"isAdmin,omitempty" tf:"is_admin,omitempty"`

	// (String) The username for the Grafana user.
	// The username for the Grafana user.
	// +kubebuilder:validation:Optional
	Login *string `json:"login,omitempty" tf:"login,omitempty"`

	// (String) The display name for the Grafana user.
	// The display name for the Grafana user.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// (String, Sensitive) The password for the Grafana user.
	// The password for the Grafana user.
	// +kubebuilder:validation:Optional
	PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"`
}

func (*UserParameters) DeepCopy

func (in *UserParameters) DeepCopy() *UserParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserParameters.

func (*UserParameters) DeepCopyInto

func (in *UserParameters) DeepCopyInto(out *UserParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UserSpec

type UserSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     UserParameters `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 UserInitParameters `json:"initProvider,omitempty"`
}

UserSpec defines the desired state of User

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec.

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UserStatus

type UserStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        UserObservation `json:"atProvider,omitempty"`
}

UserStatus defines the observed state of User.

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus.

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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