Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=flavorprofile.vmware.vra +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type FlavorMappingInitParameters
- type FlavorMappingObservation
- type FlavorMappingParameters
- type LinksInitParameters
- type LinksObservation
- type LinksParameters
- type Profile
- func (in *Profile) DeepCopy() *Profile
- func (in *Profile) DeepCopyInto(out *Profile)
- func (in *Profile) DeepCopyObject() runtime.Object
- func (mg *Profile) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Profile) GetConnectionDetailsMapping() map[string]string
- func (mg *Profile) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Profile) GetID() string
- func (tr *Profile) GetInitParameters() (map[string]any, error)
- func (mg *Profile) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Profile) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Profile) GetObservation() (map[string]any, error)
- func (tr *Profile) GetParameters() (map[string]any, error)
- func (mg *Profile) GetProviderConfigReference() *xpv1.Reference
- func (mg *Profile) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Profile) GetTerraformResourceType() string
- func (tr *Profile) GetTerraformSchemaVersion() int
- func (mg *Profile) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Profile) Hub()
- func (tr *Profile) LateInitialize(attrs []byte) (bool, error)
- func (mg *Profile) SetConditions(c ...xpv1.Condition)
- func (mg *Profile) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Profile) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Profile) SetObservation(obs map[string]any) error
- func (tr *Profile) SetParameters(params map[string]any) error
- func (mg *Profile) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Profile) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Profile) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ProfileInitParameters
- type ProfileList
- type ProfileObservation
- type ProfileParameters
- type ProfileSpec
- type ProfileStatus
Constants ¶
const ( CRDGroup = "flavorprofile.vmware.vra" 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 ( Profile_Kind = "Profile" Profile_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Profile_Kind}.String() Profile_KindAPIVersion = Profile_Kind + "." + CRDGroupVersion.String() Profile_GroupVersionKind = CRDGroupVersion.WithKind(Profile_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type FlavorMappingInitParameters ¶
type FlavorMappingInitParameters struct { // Number of CPU cores. Mandatory for private clouds such as vSphere. Only `instance_type` or `cpu_count`/`memory` must be specified. CPUCount *float64 `json:"cpuCount,omitempty" tf:"cpu_count,omitempty"` // The value of the instance type in the corresponding cloud. Mandatory for public clouds. Only `instance_type` or `cpu_count`/`memory` must be specified. InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"` // Total amount of memory (in megabytes). Mandatory for private clouds such as vSphere. Only `instance_type` or `cpu_count`/`memory` must be specified. Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"` // The name of the flavor mapping. Name *string `json:"name,omitempty" tf:"name,omitempty"` }
func (*FlavorMappingInitParameters) DeepCopy ¶
func (in *FlavorMappingInitParameters) DeepCopy() *FlavorMappingInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlavorMappingInitParameters.
func (*FlavorMappingInitParameters) DeepCopyInto ¶
func (in *FlavorMappingInitParameters) DeepCopyInto(out *FlavorMappingInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FlavorMappingObservation ¶
type FlavorMappingObservation struct { // Number of CPU cores. Mandatory for private clouds such as vSphere. Only `instance_type` or `cpu_count`/`memory` must be specified. CPUCount *float64 `json:"cpuCount,omitempty" tf:"cpu_count,omitempty"` // The value of the instance type in the corresponding cloud. Mandatory for public clouds. Only `instance_type` or `cpu_count`/`memory` must be specified. InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"` // Total amount of memory (in megabytes). Mandatory for private clouds such as vSphere. Only `instance_type` or `cpu_count`/`memory` must be specified. Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"` // The name of the flavor mapping. Name *string `json:"name,omitempty" tf:"name,omitempty"` }
func (*FlavorMappingObservation) DeepCopy ¶
func (in *FlavorMappingObservation) DeepCopy() *FlavorMappingObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlavorMappingObservation.
func (*FlavorMappingObservation) DeepCopyInto ¶
func (in *FlavorMappingObservation) DeepCopyInto(out *FlavorMappingObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FlavorMappingParameters ¶
type FlavorMappingParameters struct { // Number of CPU cores. Mandatory for private clouds such as vSphere. Only `instance_type` or `cpu_count`/`memory` must be specified. // +kubebuilder:validation:Optional CPUCount *float64 `json:"cpuCount,omitempty" tf:"cpu_count,omitempty"` // The value of the instance type in the corresponding cloud. Mandatory for public clouds. Only `instance_type` or `cpu_count`/`memory` must be specified. // +kubebuilder:validation:Optional InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"` // Total amount of memory (in megabytes). Mandatory for private clouds such as vSphere. Only `instance_type` or `cpu_count`/`memory` must be specified. // +kubebuilder:validation:Optional Memory *float64 `json:"memory,omitempty" tf:"memory,omitempty"` // The name of the flavor mapping. // +kubebuilder:validation:Optional Name *string `json:"name" tf:"name,omitempty"` }
func (*FlavorMappingParameters) DeepCopy ¶
func (in *FlavorMappingParameters) DeepCopy() *FlavorMappingParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlavorMappingParameters.
func (*FlavorMappingParameters) DeepCopyInto ¶
func (in *FlavorMappingParameters) DeepCopyInto(out *FlavorMappingParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LinksInitParameters ¶
type LinksInitParameters struct { }
func (*LinksInitParameters) DeepCopy ¶
func (in *LinksInitParameters) DeepCopy() *LinksInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinksInitParameters.
func (*LinksInitParameters) DeepCopyInto ¶
func (in *LinksInitParameters) DeepCopyInto(out *LinksInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LinksObservation ¶
type LinksObservation struct { Href *string `json:"href,omitempty" tf:"href,omitempty"` // +listType=set Hrefs []*string `json:"hrefs,omitempty" tf:"hrefs,omitempty"` Rel *string `json:"rel,omitempty" tf:"rel,omitempty"` }
func (*LinksObservation) DeepCopy ¶
func (in *LinksObservation) DeepCopy() *LinksObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinksObservation.
func (*LinksObservation) DeepCopyInto ¶
func (in *LinksObservation) DeepCopyInto(out *LinksObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LinksParameters ¶
type LinksParameters struct { }
func (*LinksParameters) DeepCopy ¶
func (in *LinksParameters) DeepCopy() *LinksParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinksParameters.
func (*LinksParameters) DeepCopyInto ¶
func (in *LinksParameters) DeepCopyInto(out *LinksParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Profile ¶
type Profile 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.regionId) || (has(self.initProvider) && has(self.initProvider.regionId))",message="spec.forProvider.regionId is a required parameter" Spec ProfileSpec `json:"spec"` Status ProfileStatus `json:"status,omitempty"` }
Profile is the Schema for the Profiles API. <no value> +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,vra8}
func (*Profile) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Profile.
func (*Profile) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Profile) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Profile) GetCondition ¶
func (mg *Profile) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Profile.
func (*Profile) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Profile
func (*Profile) GetDeletionPolicy ¶
func (mg *Profile) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Profile.
func (*Profile) GetInitParameters ¶
GetInitParameters of this Profile
func (*Profile) GetManagementPolicies ¶
func (mg *Profile) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Profile.
func (*Profile) GetMergedParameters ¶
GetInitParameters of this Profile
func (*Profile) GetObservation ¶
GetObservation of this Profile
func (*Profile) GetParameters ¶
GetParameters of this Profile
func (*Profile) GetProviderConfigReference ¶
GetProviderConfigReference of this Profile.
func (*Profile) GetPublishConnectionDetailsTo ¶
func (mg *Profile) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Profile.
func (*Profile) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Profile
func (*Profile) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Profile) GetWriteConnectionSecretToReference ¶
func (mg *Profile) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Profile.
func (*Profile) LateInitialize ¶
LateInitialize this Profile using its observed tfState. returns True if there are any spec changes for the resource.
func (*Profile) SetConditions ¶
SetConditions of this Profile.
func (*Profile) SetDeletionPolicy ¶
func (mg *Profile) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Profile.
func (*Profile) SetManagementPolicies ¶
func (mg *Profile) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Profile.
func (*Profile) SetObservation ¶
SetObservation for this Profile
func (*Profile) SetParameters ¶
SetParameters for this Profile
func (*Profile) SetProviderConfigReference ¶
SetProviderConfigReference of this Profile.
func (*Profile) SetPublishConnectionDetailsTo ¶
func (mg *Profile) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Profile.
func (*Profile) SetWriteConnectionSecretToReference ¶
func (mg *Profile) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Profile.
type ProfileInitParameters ¶
type ProfileInitParameters struct { // A human-friendly description. Description *string `json:"description,omitempty" tf:"description,omitempty"` // A list of the flavor mappings defined for the corresponding cloud end-point region. FlavorMapping []FlavorMappingInitParameters `json:"flavorMapping,omitempty" tf:"flavor_mapping,omitempty"` // A human-friendly name used as an identifier in APIs that support this option. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The id of the region for which this profile is defined RegionID *string `json:"regionId,omitempty" tf:"region_id,omitempty"` }
func (*ProfileInitParameters) DeepCopy ¶
func (in *ProfileInitParameters) DeepCopy() *ProfileInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileInitParameters.
func (*ProfileInitParameters) DeepCopyInto ¶
func (in *ProfileInitParameters) DeepCopyInto(out *ProfileInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileList ¶
type ProfileList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Profile `json:"items"` }
ProfileList contains a list of Profiles
func (*ProfileList) DeepCopy ¶
func (in *ProfileList) DeepCopy() *ProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileList.
func (*ProfileList) DeepCopyInto ¶
func (in *ProfileList) DeepCopyInto(out *ProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProfileList) DeepCopyObject ¶
func (in *ProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProfileList) GetItems ¶
func (l *ProfileList) GetItems() []resource.Managed
GetItems of this ProfileList.
type ProfileObservation ¶
type ProfileObservation struct { // Id of the cloud account this flavor profile belongs to. CloudAccountID *string `json:"cloudAccountId,omitempty" tf:"cloud_account_id,omitempty"` // Date when the entity was created. The date is in ISO 8601 and UTC. CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"` // A human-friendly description. Description *string `json:"description,omitempty" tf:"description,omitempty"` // The id of the region for which this profile is defined. ExternalRegionID *string `json:"externalRegionId,omitempty" tf:"external_region_id,omitempty"` // A list of the flavor mappings defined for the corresponding cloud end-point region. FlavorMapping []FlavorMappingObservation `json:"flavorMapping,omitempty" tf:"flavor_mapping,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` Links []LinksObservation `json:"links,omitempty" tf:"links,omitempty"` // A human-friendly name used as an identifier in APIs that support this option. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The id of the organization this entity belongs to. OrgID *string `json:"orgId,omitempty" tf:"org_id,omitempty"` // Email of the user that owns the entity. Owner *string `json:"owner,omitempty" tf:"owner,omitempty"` // The id of the region for which this profile is defined RegionID *string `json:"regionId,omitempty" tf:"region_id,omitempty"` // Date when the entity was last updated. The date is ISO 8601 and UTC. UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"` }
func (*ProfileObservation) DeepCopy ¶
func (in *ProfileObservation) DeepCopy() *ProfileObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileObservation.
func (*ProfileObservation) DeepCopyInto ¶
func (in *ProfileObservation) DeepCopyInto(out *ProfileObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileParameters ¶
type ProfileParameters struct { // A human-friendly description. // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // A list of the flavor mappings defined for the corresponding cloud end-point region. // +kubebuilder:validation:Optional FlavorMapping []FlavorMappingParameters `json:"flavorMapping,omitempty" tf:"flavor_mapping,omitempty"` // A human-friendly name used as an identifier in APIs that support this option. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // The id of the region for which this profile is defined // +kubebuilder:validation:Optional RegionID *string `json:"regionId,omitempty" tf:"region_id,omitempty"` }
func (*ProfileParameters) DeepCopy ¶
func (in *ProfileParameters) DeepCopy() *ProfileParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileParameters.
func (*ProfileParameters) DeepCopyInto ¶
func (in *ProfileParameters) DeepCopyInto(out *ProfileParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileSpec ¶
type ProfileSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ProfileParameters `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 ProfileInitParameters `json:"initProvider,omitempty"` }
ProfileSpec defines the desired state of Profile
func (*ProfileSpec) DeepCopy ¶
func (in *ProfileSpec) DeepCopy() *ProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileSpec.
func (*ProfileSpec) DeepCopyInto ¶
func (in *ProfileSpec) DeepCopyInto(out *ProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileStatus ¶
type ProfileStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ProfileObservation `json:"atProvider,omitempty"` }
ProfileStatus defines the observed state of Profile.
func (*ProfileStatus) DeepCopy ¶
func (in *ProfileStatus) DeepCopy() *ProfileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileStatus.
func (*ProfileStatus) DeepCopyInto ¶
func (in *ProfileStatus) DeepCopyInto(out *ProfileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.