v1alpha1

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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 (
	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 (
	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 (
	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 (
	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 (
	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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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 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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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.UIDExtractor()
	// +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.UIDExtractor()
	// +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. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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.UIDExtractor()
	// +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.UIDExtractor()
	// +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 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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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.UIDExtractor()
	// +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.UIDExtractor()
	// +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. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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.UIDExtractor()
	// +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.UIDExtractor()
	// +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) Manage permissions for Viewer or Editor roles.
	// Manage permissions for `Viewer` or `Editor` roles.
	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) Manage permissions for Viewer or Editor roles.
	// Manage permissions for `Viewer` or `Editor` roles.
	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) Manage permissions for Viewer or Editor roles.
	// Manage permissions for `Viewer` or `Editor` roles.
	// +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 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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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) Manage permissions for Viewer or Editor roles.
	// Manage permissions for `Viewer` or `Editor` roles.
	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) Manage permissions for Viewer or Editor roles.
	// Manage permissions for `Viewer` or `Editor` roles.
	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) Manage permissions for Viewer or Editor roles.
	// Manage permissions for `Viewer` or `Editor` roles.
	// +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 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 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"
	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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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 Edit or Admin.
	// Permission to associate with item. Must be `Edit` or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// (String) ID of the team to manage permissions for. Specify either this or user_id. Defaults to 0.
	// ID of the team to manage permissions for. Specify either this or `user_id`. 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. Specify either this or team_id. Defaults to 0.
	// ID of the user or service account to manage permissions for. Specify either this or `team_id`. 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 Edit or Admin.
	// Permission to associate with item. Must be `Edit` or `Admin`.
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

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

	// (String) ID of the user or service account to manage permissions for. Specify either this or team_id. Defaults to 0.
	// ID of the user or service account to manage permissions for. Specify either this or `team_id`. 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 Edit or Admin.
	// Permission to associate with item. Must be `Edit` or `Admin`.
	// +kubebuilder:validation:Optional
	Permission *string `json:"permission" tf:"permission,omitempty"`

	// (String) ID of the team to manage permissions for. Specify either this or user_id. Defaults to 0.
	// ID of the team to manage permissions for. Specify either this or `user_id`. 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. Specify either this or team_id. Defaults to 0.
	// ID of the user or service account to manage permissions for. Specify either this or `team_id`. 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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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)
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

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

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/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)
	Expiration *string `json:"expiration,omitempty" tf:"expiration,omitempty"`

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

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

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

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

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

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

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

	// (String)
	// +crossplane:generate:reference:type=github.com/grafana/crossplane-provider-grafana/apis/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 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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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.UserEmailExtractor()
	// +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.UserEmailExtractor()
	// +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="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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