Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=ocidb.oracle.com
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type AutonomousDatabase
- func (s *AutonomousDatabase) AddDependent(kind string, obj runtime.Object) error
- func (in *AutonomousDatabase) DeepCopy() *AutonomousDatabase
- func (in *AutonomousDatabase) DeepCopyInto(out *AutonomousDatabase)
- func (in *AutonomousDatabase) DeepCopyObject() runtime.Object
- func (s *AutonomousDatabase) GetGroupVersionResource() schema.GroupVersionResource
- func (s *AutonomousDatabase) GetResourceID() string
- func (s *AutonomousDatabase) GetResourceLifecycleState() string
- func (s *AutonomousDatabase) GetResourcePlural() string
- func (s *AutonomousDatabase) GetResourceState() common.ResourceState
- func (s *AutonomousDatabase) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)
- func (s *AutonomousDatabase) IsResource() bool
- func (s *AutonomousDatabase) RemoveDependent(kind string, obj runtime.Object) error
- func (s *AutonomousDatabase) SetResource(r *ocidb.AutonomousDatabase) *AutonomousDatabase
- type AutonomousDatabaseList
- type AutonomousDatabaseResource
- type AutonomousDatabaseSpec
- type AutonomousDatabaseStatus
Constants ¶
const ( AutonomousDatabaseKind = "AutonomousDatabase" AutonomousDatabaseResourcePlural = "autonomousdatabases" AutonomousDatabaseControllerName = "autonomousdatabases" )
AutonomousDatabase names
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Register scheme and api resources
var AutonomousDatabaseValidation = apiextv1beta1.CustomResourceValidation{ OpenAPIV3Schema: &apiextv1beta1.JSONSchemaProps{ Properties: map[string]apiextv1beta1.JSONSchemaProps{ "metadata": common.MetaDataValidation, "spec": { Required: []string{"compartmentRef", "cpuCoreCount", "dataStorageSizeInTBs"}, Properties: map[string]apiextv1beta1.JSONSchemaProps{ "compartmentRef": { Type: common.ValidationTypeString, Pattern: common.AnyStringValidationRegex, }, "cpuCoreCount": { Type: common.ValidationTypeInteger, }, "dataStorageSizeInTBs": { Type: common.ValidationTypeInteger, }, }, }, }, }, }
AutonomousDatabaseValidation describes the AutonomousDatabase validation schema
var SchemeGroupVersion = schema.GroupVersion{Group: group.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is the group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group-qualified GroupResource.
Types ¶
type AutonomousDatabase ¶
type AutonomousDatabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec AutonomousDatabaseSpec `json:"spec"` Status AutonomousDatabaseStatus `json:"status,omitempty"` }
AutonomousDatabase describes a AutonomousDatabase
func (*AutonomousDatabase) AddDependent ¶
func (s *AutonomousDatabase) AddDependent(kind string, obj runtime.Object) error
AddDependent adds a AutonomousDatabase dependent
func (*AutonomousDatabase) DeepCopy ¶
func (in *AutonomousDatabase) DeepCopy() *AutonomousDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutonomousDatabase.
func (*AutonomousDatabase) DeepCopyInto ¶
func (in *AutonomousDatabase) DeepCopyInto(out *AutonomousDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutonomousDatabase) DeepCopyObject ¶
func (in *AutonomousDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AutonomousDatabase) GetGroupVersionResource ¶
func (s *AutonomousDatabase) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns the group version of the AutonomousDatabase type
func (*AutonomousDatabase) GetResourceID ¶
func (s *AutonomousDatabase) GetResourceID() string
GetResourceID returns the oci id of the AutonomousDatabase
func (*AutonomousDatabase) GetResourceLifecycleState ¶
func (s *AutonomousDatabase) GetResourceLifecycleState() string
GetResourceLifecycleState returns the current state of the instance
func (*AutonomousDatabase) GetResourcePlural ¶
func (s *AutonomousDatabase) GetResourcePlural() string
GetResourcePlural returns the plural name of the AutonomousDatabase type
func (*AutonomousDatabase) GetResourceState ¶
func (s *AutonomousDatabase) GetResourceState() common.ResourceState
GetResourceState returns the current state of the iresource
func (*AutonomousDatabase) IsDependentRegistered ¶
IsDependentRegistered returns true if the AutonomousDatabase dependent is registered
func (*AutonomousDatabase) IsResource ¶
func (s *AutonomousDatabase) IsResource() bool
IsResource returns true if there is an oci id and it's in a running state, otherwise false
func (*AutonomousDatabase) RemoveDependent ¶
func (s *AutonomousDatabase) RemoveDependent(kind string, obj runtime.Object) error
RemoveDependent removes a AutonomousDatabase dependent
func (*AutonomousDatabase) SetResource ¶
func (s *AutonomousDatabase) SetResource(r *ocidb.AutonomousDatabase) *AutonomousDatabase
SetResource sets the resource in AutonomousDatabase status
type AutonomousDatabaseList ¶
type AutonomousDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AutonomousDatabase `json:"items"` }
AutonomousDatabaseList is a list of AutonomousDatabase items
func (*AutonomousDatabaseList) DeepCopy ¶
func (in *AutonomousDatabaseList) DeepCopy() *AutonomousDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutonomousDatabaseList.
func (*AutonomousDatabaseList) DeepCopyInto ¶
func (in *AutonomousDatabaseList) DeepCopyInto(out *AutonomousDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutonomousDatabaseList) DeepCopyObject ¶
func (in *AutonomousDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutonomousDatabaseResource ¶
type AutonomousDatabaseResource struct {
*ocidb.AutonomousDatabase
}
AutonomousDatabaseResource describes a AutonomousDatabase resource from oci
func (*AutonomousDatabaseResource) DeepCopy ¶
func (in *AutonomousDatabaseResource) DeepCopy() (out *AutonomousDatabaseResource)
DeepCopy the backed oci resource
func (*AutonomousDatabaseResource) DeepCopyInto ¶
func (in *AutonomousDatabaseResource) DeepCopyInto(out *AutonomousDatabaseResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutonomousDatabaseSpec ¶
type AutonomousDatabaseSpec struct { CompartmentRef string `json:"compartmentRef"` // The number of CPU cores to be made available to the database. CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"` // The quantity of data in the database, in terabytes. DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName string `mandatory:"false" json:"displayName"` // The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE. LicenseModel ocidb.AutonomousDatabaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` common.Dependency }
AutonomousDatabaseSpec describes a AutonomousDatabase spec
func (*AutonomousDatabaseSpec) DeepCopy ¶
func (in *AutonomousDatabaseSpec) DeepCopy() *AutonomousDatabaseSpec
DeepCopy the AutonomousDatabase spec
func (*AutonomousDatabaseSpec) DeepCopyInto ¶
func (in *AutonomousDatabaseSpec) DeepCopyInto(out *AutonomousDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutonomousDatabaseStatus ¶
type AutonomousDatabaseStatus struct { common.ResourceStatus Resource *AutonomousDatabaseResource `json:"resource,omitempty"` }
AutonomousDatabaseStatus describes a AutonomousDatabase status
func (*AutonomousDatabaseStatus) DeepCopy ¶
func (in *AutonomousDatabaseStatus) DeepCopy() *AutonomousDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutonomousDatabaseStatus.
func (*AutonomousDatabaseStatus) DeepCopyInto ¶
func (in *AutonomousDatabaseStatus) DeepCopyInto(out *AutonomousDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.