v1alpha1

package
v0.0.0-...-b3f0fa4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=ocidb.oracle.com

Index

Constants

View Source
const (
	AutonomousDatabaseKind           = "AutonomousDatabase"
	AutonomousDatabaseResourcePlural = "autonomousdatabases"
	AutonomousDatabaseControllerName = "autonomousdatabases"
)

AutonomousDatabase names

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Register scheme and api resources

View Source
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

View Source
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

func (s *AutonomousDatabase) IsDependentRegistered(kind string, obj runtime.Object) (bool, error)

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

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

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

DeepCopy the backed oci resource

func (*AutonomousDatabaseResource) DeepCopyInto

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL