v1alpha1

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=log.databricks.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "log.databricks.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

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 (
	MwsLogDelivery_Kind             = "MwsLogDelivery"
	MwsLogDelivery_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: MwsLogDelivery_Kind}.String()
	MwsLogDelivery_KindAPIVersion   = MwsLogDelivery_Kind + "." + CRDGroupVersion.String()
	MwsLogDelivery_GroupVersionKind = CRDGroupVersion.WithKind(MwsLogDelivery_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type MwsLogDelivery

type MwsLogDelivery 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.accountId) || (has(self.initProvider) && has(self.initProvider.accountId))",message="spec.forProvider.accountId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.credentialsId) || (has(self.initProvider) && has(self.initProvider.credentialsId))",message="spec.forProvider.credentialsId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.logType) || (has(self.initProvider) && has(self.initProvider.logType))",message="spec.forProvider.logType is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.outputFormat) || (has(self.initProvider) && has(self.initProvider.outputFormat))",message="spec.forProvider.outputFormat is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storageConfigurationId) || (has(self.initProvider) && has(self.initProvider.storageConfigurationId))",message="spec.forProvider.storageConfigurationId is a required parameter"
	Spec   MwsLogDeliverySpec   `json:"spec"`
	Status MwsLogDeliveryStatus `json:"status,omitempty"`
}

MwsLogDelivery is the Schema for the MwsLogDeliverys API. ""subcategory: "Log Delivery" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,databricks}

func (*MwsLogDelivery) DeepCopy

func (in *MwsLogDelivery) DeepCopy() *MwsLogDelivery

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

func (*MwsLogDelivery) DeepCopyInto

func (in *MwsLogDelivery) DeepCopyInto(out *MwsLogDelivery)

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

func (*MwsLogDelivery) DeepCopyObject

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

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

func (*MwsLogDelivery) GetCondition

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

GetCondition of this MwsLogDelivery.

func (*MwsLogDelivery) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this MwsLogDelivery

func (*MwsLogDelivery) GetDeletionPolicy

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

GetDeletionPolicy of this MwsLogDelivery.

func (*MwsLogDelivery) GetID

func (tr *MwsLogDelivery) GetID() string

GetID returns ID of underlying Terraform resource of this MwsLogDelivery

func (*MwsLogDelivery) GetInitParameters

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

GetInitParameters of this MwsLogDelivery

func (*MwsLogDelivery) GetManagementPolicies

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

GetManagementPolicies of this MwsLogDelivery.

func (*MwsLogDelivery) GetMergedParameters

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

GetInitParameters of this MwsLogDelivery

func (*MwsLogDelivery) GetObservation

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

GetObservation of this MwsLogDelivery

func (*MwsLogDelivery) GetParameters

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

GetParameters of this MwsLogDelivery

func (*MwsLogDelivery) GetProviderConfigReference

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

GetProviderConfigReference of this MwsLogDelivery.

func (*MwsLogDelivery) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this MwsLogDelivery.

func (*MwsLogDelivery) GetTerraformResourceType

func (mg *MwsLogDelivery) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this MwsLogDelivery

func (*MwsLogDelivery) GetTerraformSchemaVersion

func (tr *MwsLogDelivery) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*MwsLogDelivery) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this MwsLogDelivery.

func (*MwsLogDelivery) Hub

func (tr *MwsLogDelivery) Hub()

Hub marks this type as a conversion hub.

func (*MwsLogDelivery) LateInitialize

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

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

func (*MwsLogDelivery) SetConditions

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

SetConditions of this MwsLogDelivery.

func (*MwsLogDelivery) SetDeletionPolicy

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

SetDeletionPolicy of this MwsLogDelivery.

func (*MwsLogDelivery) SetManagementPolicies

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

SetManagementPolicies of this MwsLogDelivery.

func (*MwsLogDelivery) SetObservation

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

SetObservation for this MwsLogDelivery

func (*MwsLogDelivery) SetParameters

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

SetParameters for this MwsLogDelivery

func (*MwsLogDelivery) SetProviderConfigReference

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

SetProviderConfigReference of this MwsLogDelivery.

func (*MwsLogDelivery) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this MwsLogDelivery.

func (*MwsLogDelivery) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this MwsLogDelivery.

type MwsLogDeliveryInitParameters

type MwsLogDeliveryInitParameters struct {

	// Account Id that could be found in the top right corner of Accounts Console.
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Databricks log delivery configuration ID.
	ConfigID *string `json:"configId,omitempty" tf:"config_id,omitempty"`

	// The optional human-readable name of the log delivery configuration. Defaults to empty.
	ConfigName *string `json:"configName,omitempty" tf:"config_name,omitempty"`

	// The ID for a Databricks credential configuration that represents the AWS IAM role with policy and trust relationship as described in the main billable usage documentation page.
	CredentialsID *string `json:"credentialsId,omitempty" tf:"credentials_id,omitempty"`

	// Defaults to empty, which means that logs are delivered to the root of the bucket. The value must be a valid S3 object key. It must not start or end with a slash character.
	DeliveryPathPrefix *string `json:"deliveryPathPrefix,omitempty" tf:"delivery_path_prefix,omitempty"`

	// The optional start month and year for delivery, specified in YYYY-MM format. Defaults to current year and month. Usage is not available before 2019-03.
	DeliveryStartTime *string `json:"deliveryStartTime,omitempty" tf:"delivery_start_time,omitempty"`

	// The type of log delivery. BILLABLE_USAGE and AUDIT_LOGS are supported.
	LogType *string `json:"logType,omitempty" tf:"log_type,omitempty"`

	// The file type of log delivery. Currently CSV (for BILLABLE_USAGE) and JSON (for AUDIT_LOGS) are supported.
	OutputFormat *string `json:"outputFormat,omitempty" tf:"output_format,omitempty"`

	// Status of log delivery configuration. Set to ENABLED or DISABLED. Defaults to ENABLED. This is the only field you can update.
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	// The ID for a Databricks storage configuration that represents the S3 bucket with bucket policy as described in the main billable usage documentation page.
	StorageConfigurationID *string `json:"storageConfigurationId,omitempty" tf:"storage_configuration_id,omitempty"`

	// By default, this log configuration applies to all workspaces associated with your account ID. If your account is on the multitenant version of the platform or on a select custom plan that allows multiple workspaces per account, you may have multiple workspaces associated with your account ID. You can optionally set the field as mentioned earlier to an array of workspace IDs. If you plan to use different log delivery configurations for several workspaces, set this explicitly rather than leaving it blank. If you leave this blank and your account ID gets additional workspaces in the future, this configuration will also apply to the new workspaces.
	WorkspaceIdsFilter []*float64 `json:"workspaceIdsFilter,omitempty" tf:"workspace_ids_filter,omitempty"`
}

func (*MwsLogDeliveryInitParameters) DeepCopy

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

func (*MwsLogDeliveryInitParameters) DeepCopyInto

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

type MwsLogDeliveryList

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

MwsLogDeliveryList contains a list of MwsLogDeliverys

func (*MwsLogDeliveryList) DeepCopy

func (in *MwsLogDeliveryList) DeepCopy() *MwsLogDeliveryList

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

func (*MwsLogDeliveryList) DeepCopyInto

func (in *MwsLogDeliveryList) DeepCopyInto(out *MwsLogDeliveryList)

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

func (*MwsLogDeliveryList) DeepCopyObject

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

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

func (*MwsLogDeliveryList) GetItems

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

GetItems of this MwsLogDeliveryList.

type MwsLogDeliveryObservation

type MwsLogDeliveryObservation struct {

	// Account Id that could be found in the top right corner of Accounts Console.
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Databricks log delivery configuration ID.
	ConfigID *string `json:"configId,omitempty" tf:"config_id,omitempty"`

	// The optional human-readable name of the log delivery configuration. Defaults to empty.
	ConfigName *string `json:"configName,omitempty" tf:"config_name,omitempty"`

	// The ID for a Databricks credential configuration that represents the AWS IAM role with policy and trust relationship as described in the main billable usage documentation page.
	CredentialsID *string `json:"credentialsId,omitempty" tf:"credentials_id,omitempty"`

	// Defaults to empty, which means that logs are delivered to the root of the bucket. The value must be a valid S3 object key. It must not start or end with a slash character.
	DeliveryPathPrefix *string `json:"deliveryPathPrefix,omitempty" tf:"delivery_path_prefix,omitempty"`

	// The optional start month and year for delivery, specified in YYYY-MM format. Defaults to current year and month. Usage is not available before 2019-03.
	DeliveryStartTime *string `json:"deliveryStartTime,omitempty" tf:"delivery_start_time,omitempty"`

	// the ID of log delivery configuration in form of account_id|config_id.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The type of log delivery. BILLABLE_USAGE and AUDIT_LOGS are supported.
	LogType *string `json:"logType,omitempty" tf:"log_type,omitempty"`

	// The file type of log delivery. Currently CSV (for BILLABLE_USAGE) and JSON (for AUDIT_LOGS) are supported.
	OutputFormat *string `json:"outputFormat,omitempty" tf:"output_format,omitempty"`

	// Status of log delivery configuration. Set to ENABLED or DISABLED. Defaults to ENABLED. This is the only field you can update.
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	// The ID for a Databricks storage configuration that represents the S3 bucket with bucket policy as described in the main billable usage documentation page.
	StorageConfigurationID *string `json:"storageConfigurationId,omitempty" tf:"storage_configuration_id,omitempty"`

	// By default, this log configuration applies to all workspaces associated with your account ID. If your account is on the multitenant version of the platform or on a select custom plan that allows multiple workspaces per account, you may have multiple workspaces associated with your account ID. You can optionally set the field as mentioned earlier to an array of workspace IDs. If you plan to use different log delivery configurations for several workspaces, set this explicitly rather than leaving it blank. If you leave this blank and your account ID gets additional workspaces in the future, this configuration will also apply to the new workspaces.
	WorkspaceIdsFilter []*float64 `json:"workspaceIdsFilter,omitempty" tf:"workspace_ids_filter,omitempty"`
}

func (*MwsLogDeliveryObservation) DeepCopy

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

func (*MwsLogDeliveryObservation) DeepCopyInto

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

type MwsLogDeliveryParameters

type MwsLogDeliveryParameters struct {

	// Account Id that could be found in the top right corner of Accounts Console.
	// +kubebuilder:validation:Optional
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Databricks log delivery configuration ID.
	// +kubebuilder:validation:Optional
	ConfigID *string `json:"configId,omitempty" tf:"config_id,omitempty"`

	// The optional human-readable name of the log delivery configuration. Defaults to empty.
	// +kubebuilder:validation:Optional
	ConfigName *string `json:"configName,omitempty" tf:"config_name,omitempty"`

	// The ID for a Databricks credential configuration that represents the AWS IAM role with policy and trust relationship as described in the main billable usage documentation page.
	// +kubebuilder:validation:Optional
	CredentialsID *string `json:"credentialsId,omitempty" tf:"credentials_id,omitempty"`

	// Defaults to empty, which means that logs are delivered to the root of the bucket. The value must be a valid S3 object key. It must not start or end with a slash character.
	// +kubebuilder:validation:Optional
	DeliveryPathPrefix *string `json:"deliveryPathPrefix,omitempty" tf:"delivery_path_prefix,omitempty"`

	// The optional start month and year for delivery, specified in YYYY-MM format. Defaults to current year and month. Usage is not available before 2019-03.
	// +kubebuilder:validation:Optional
	DeliveryStartTime *string `json:"deliveryStartTime,omitempty" tf:"delivery_start_time,omitempty"`

	// The type of log delivery. BILLABLE_USAGE and AUDIT_LOGS are supported.
	// +kubebuilder:validation:Optional
	LogType *string `json:"logType,omitempty" tf:"log_type,omitempty"`

	// The file type of log delivery. Currently CSV (for BILLABLE_USAGE) and JSON (for AUDIT_LOGS) are supported.
	// +kubebuilder:validation:Optional
	OutputFormat *string `json:"outputFormat,omitempty" tf:"output_format,omitempty"`

	// Status of log delivery configuration. Set to ENABLED or DISABLED. Defaults to ENABLED. This is the only field you can update.
	// +kubebuilder:validation:Optional
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	// The ID for a Databricks storage configuration that represents the S3 bucket with bucket policy as described in the main billable usage documentation page.
	// +kubebuilder:validation:Optional
	StorageConfigurationID *string `json:"storageConfigurationId,omitempty" tf:"storage_configuration_id,omitempty"`

	// By default, this log configuration applies to all workspaces associated with your account ID. If your account is on the multitenant version of the platform or on a select custom plan that allows multiple workspaces per account, you may have multiple workspaces associated with your account ID. You can optionally set the field as mentioned earlier to an array of workspace IDs. If you plan to use different log delivery configurations for several workspaces, set this explicitly rather than leaving it blank. If you leave this blank and your account ID gets additional workspaces in the future, this configuration will also apply to the new workspaces.
	// +kubebuilder:validation:Optional
	WorkspaceIdsFilter []*float64 `json:"workspaceIdsFilter,omitempty" tf:"workspace_ids_filter,omitempty"`
}

func (*MwsLogDeliveryParameters) DeepCopy

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

func (*MwsLogDeliveryParameters) DeepCopyInto

func (in *MwsLogDeliveryParameters) DeepCopyInto(out *MwsLogDeliveryParameters)

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

type MwsLogDeliverySpec

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

MwsLogDeliverySpec defines the desired state of MwsLogDelivery

func (*MwsLogDeliverySpec) DeepCopy

func (in *MwsLogDeliverySpec) DeepCopy() *MwsLogDeliverySpec

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

func (*MwsLogDeliverySpec) DeepCopyInto

func (in *MwsLogDeliverySpec) DeepCopyInto(out *MwsLogDeliverySpec)

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

type MwsLogDeliveryStatus

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

MwsLogDeliveryStatus defines the observed state of MwsLogDelivery.

func (*MwsLogDeliveryStatus) DeepCopy

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

func (*MwsLogDeliveryStatus) DeepCopyInto

func (in *MwsLogDeliveryStatus) DeepCopyInto(out *MwsLogDeliveryStatus)

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