Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=playlist.spotify.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Playlist
- func (in *Playlist) DeepCopy() *Playlist
- func (in *Playlist) DeepCopyInto(out *Playlist)
- func (in *Playlist) DeepCopyObject() runtime.Object
- func (mg *Playlist) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Playlist) GetConnectionDetailsMapping() map[string]string
- func (mg *Playlist) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Playlist) GetID() string
- func (tr *Playlist) GetInitParameters() (map[string]any, error)
- func (mg *Playlist) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Playlist) GetObservation() (map[string]any, error)
- func (tr *Playlist) GetParameters() (map[string]any, error)
- func (mg *Playlist) GetProviderConfigReference() *xpv1.Reference
- func (mg *Playlist) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Playlist) GetTerraformResourceType() string
- func (tr *Playlist) GetTerraformSchemaVersion() int
- func (mg *Playlist) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Playlist) LateInitialize(attrs []byte) (bool, error)
- func (mg *Playlist) SetConditions(c ...xpv1.Condition)
- func (mg *Playlist) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Playlist) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Playlist) SetObservation(obs map[string]any) error
- func (tr *Playlist) SetParameters(params map[string]any) error
- func (mg *Playlist) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Playlist) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Playlist) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type PlaylistInitParameters
- type PlaylistList
- type PlaylistObservation
- type PlaylistParameters
- type PlaylistSpec
- type PlaylistStatus
Constants ¶
const ( CRDGroup = "playlist.spotify.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
var ( Playlist_Kind = "Playlist" Playlist_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Playlist_Kind}.String() Playlist_KindAPIVersion = Playlist_Kind + "." + CRDGroupVersion.String() Playlist_GroupVersionKind = CRDGroupVersion.WithKind(Playlist_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Playlist ¶
type Playlist struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.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.tracks) || (has(self.initProvider) && has(self.initProvider.tracks))",message="spec.forProvider.tracks is a required parameter" Spec PlaylistSpec `json:"spec"` Status PlaylistStatus `json:"status,omitempty"` }
Playlist is the Schema for the Playlists API. Resource to manage a spotify playlist. +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:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,spotify}
func (*Playlist) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Playlist.
func (*Playlist) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Playlist) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Playlist) GetCondition ¶
func (mg *Playlist) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Playlist.
func (*Playlist) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Playlist
func (*Playlist) GetDeletionPolicy ¶
func (mg *Playlist) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Playlist.
func (*Playlist) GetInitParameters ¶
GetInitParameters of this Playlist
func (*Playlist) GetManagementPolicies ¶
func (mg *Playlist) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Playlist.
func (*Playlist) GetObservation ¶
GetObservation of this Playlist
func (*Playlist) GetParameters ¶
GetParameters of this Playlist
func (*Playlist) GetProviderConfigReference ¶
GetProviderConfigReference of this Playlist.
func (*Playlist) GetPublishConnectionDetailsTo ¶
func (mg *Playlist) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Playlist.
func (*Playlist) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Playlist
func (*Playlist) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Playlist) GetWriteConnectionSecretToReference ¶
func (mg *Playlist) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Playlist.
func (*Playlist) LateInitialize ¶
LateInitialize this Playlist using its observed tfState. returns True if there are any spec changes for the resource.
func (*Playlist) SetConditions ¶
SetConditions of this Playlist.
func (*Playlist) SetDeletionPolicy ¶
func (mg *Playlist) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Playlist.
func (*Playlist) SetManagementPolicies ¶
func (mg *Playlist) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Playlist.
func (*Playlist) SetObservation ¶
SetObservation for this Playlist
func (*Playlist) SetParameters ¶
SetParameters for this Playlist
func (*Playlist) SetProviderConfigReference ¶
SetProviderConfigReference of this Playlist.
func (*Playlist) SetPublishConnectionDetailsTo ¶
func (mg *Playlist) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Playlist.
func (*Playlist) SetWriteConnectionSecretToReference ¶
func (mg *Playlist) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Playlist.
type PlaylistInitParameters ¶
type PlaylistInitParameters struct { // The description of the resulting playlist Description *string `json:"description,omitempty" tf:"description,omitempty"` // The name of the resulting playlist Name *string `json:"name,omitempty" tf:"name,omitempty"` // Whether the playlist can be accessed publically Public *bool `json:"public,omitempty" tf:"public,omitempty"` // A set of tracks for the playlist to contain Tracks []*string `json:"tracks,omitempty" tf:"tracks,omitempty"` }
func (*PlaylistInitParameters) DeepCopy ¶
func (in *PlaylistInitParameters) DeepCopy() *PlaylistInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaylistInitParameters.
func (*PlaylistInitParameters) DeepCopyInto ¶
func (in *PlaylistInitParameters) DeepCopyInto(out *PlaylistInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlaylistList ¶
type PlaylistList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Playlist `json:"items"` }
PlaylistList contains a list of Playlists
func (*PlaylistList) DeepCopy ¶
func (in *PlaylistList) DeepCopy() *PlaylistList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaylistList.
func (*PlaylistList) DeepCopyInto ¶
func (in *PlaylistList) DeepCopyInto(out *PlaylistList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlaylistList) DeepCopyObject ¶
func (in *PlaylistList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PlaylistList) GetItems ¶
func (l *PlaylistList) GetItems() []resource.Managed
GetItems of this PlaylistList.
type PlaylistObservation ¶
type PlaylistObservation struct { // The description of the resulting playlist Description *string `json:"description,omitempty" tf:"description,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // The name of the resulting playlist Name *string `json:"name,omitempty" tf:"name,omitempty"` // Whether the playlist can be accessed publically Public *bool `json:"public,omitempty" tf:"public,omitempty"` SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"` // A set of tracks for the playlist to contain Tracks []*string `json:"tracks,omitempty" tf:"tracks,omitempty"` }
func (*PlaylistObservation) DeepCopy ¶
func (in *PlaylistObservation) DeepCopy() *PlaylistObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaylistObservation.
func (*PlaylistObservation) DeepCopyInto ¶
func (in *PlaylistObservation) DeepCopyInto(out *PlaylistObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlaylistParameters ¶
type PlaylistParameters struct { // The description of the resulting playlist // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // The name of the resulting playlist // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // Whether the playlist can be accessed publically // +kubebuilder:validation:Optional Public *bool `json:"public,omitempty" tf:"public,omitempty"` // A set of tracks for the playlist to contain // +kubebuilder:validation:Optional Tracks []*string `json:"tracks,omitempty" tf:"tracks,omitempty"` }
func (*PlaylistParameters) DeepCopy ¶
func (in *PlaylistParameters) DeepCopy() *PlaylistParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaylistParameters.
func (*PlaylistParameters) DeepCopyInto ¶
func (in *PlaylistParameters) DeepCopyInto(out *PlaylistParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlaylistSpec ¶
type PlaylistSpec struct { v1.ResourceSpec `json:",inline"` ForProvider PlaylistParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider PlaylistInitParameters `json:"initProvider,omitempty"` }
PlaylistSpec defines the desired state of Playlist
func (*PlaylistSpec) DeepCopy ¶
func (in *PlaylistSpec) DeepCopy() *PlaylistSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaylistSpec.
func (*PlaylistSpec) DeepCopyInto ¶
func (in *PlaylistSpec) DeepCopyInto(out *PlaylistSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlaylistStatus ¶
type PlaylistStatus struct { v1.ResourceStatus `json:",inline"` AtProvider PlaylistObservation `json:"atProvider,omitempty"` }
PlaylistStatus defines the observed state of Playlist.
func (*PlaylistStatus) DeepCopy ¶
func (in *PlaylistStatus) DeepCopy() *PlaylistStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaylistStatus.
func (*PlaylistStatus) DeepCopyInto ¶
func (in *PlaylistStatus) DeepCopyInto(out *PlaylistStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.