v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=sql.google.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: sql.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Database

type Database struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DatabaseSpec   `json:"spec,omitempty"`
	Status            DatabaseStatus `json:"status,omitempty"`
}

func (*Database) DeepCopy

func (in *Database) DeepCopy() *Database

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

func (*Database) DeepCopyInto

func (in *Database) DeepCopyInto(out *Database)

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

func (*Database) DeepCopyObject

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

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

func (*Database) SetupWebhookWithManager

func (r *Database) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Database) ValidateCreate

func (r *Database) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Database) ValidateDelete

func (r *Database) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Database) ValidateUpdate

func (r *Database) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type DatabaseInstance

type DatabaseInstance struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DatabaseInstanceSpec   `json:"spec,omitempty"`
	Status            DatabaseInstanceStatus `json:"status,omitempty"`
}

func (*DatabaseInstance) DeepCopy

func (in *DatabaseInstance) DeepCopy() *DatabaseInstance

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

func (*DatabaseInstance) DeepCopyInto

func (in *DatabaseInstance) DeepCopyInto(out *DatabaseInstance)

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

func (*DatabaseInstance) DeepCopyObject

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

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

func (*DatabaseInstance) SetupWebhookWithManager

func (r *DatabaseInstance) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*DatabaseInstance) ValidateCreate

func (r *DatabaseInstance) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseInstance) ValidateDelete

func (r *DatabaseInstance) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*DatabaseInstance) ValidateUpdate

func (r *DatabaseInstance) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type DatabaseInstanceList

type DatabaseInstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of DatabaseInstance CRD objects
	Items []DatabaseInstance `json:"items,omitempty"`
}

DatabaseInstanceList is a list of DatabaseInstances

func (*DatabaseInstanceList) DeepCopy

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

func (*DatabaseInstanceList) DeepCopyInto

func (in *DatabaseInstanceList) DeepCopyInto(out *DatabaseInstanceList)

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

func (*DatabaseInstanceList) DeepCopyObject

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

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

type DatabaseInstanceSpec

type DatabaseInstanceSpec struct {
	State *DatabaseInstanceSpecResource `json:"state,omitempty" tf:"-"`

	Resource DatabaseInstanceSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*DatabaseInstanceSpec) DeepCopy

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

func (*DatabaseInstanceSpec) DeepCopyInto

func (in *DatabaseInstanceSpec) DeepCopyInto(out *DatabaseInstanceSpec)

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

type DatabaseInstanceSpecClone

type DatabaseInstanceSpecClone struct {
	// The timestamp of the point in time that should be restored.
	// +optional
	PointInTime *string `json:"pointInTime,omitempty" tf:"point_in_time"`
	// The name of the instance from which the point in time should be restored.
	SourceInstanceName *string `json:"sourceInstanceName" tf:"source_instance_name"`
}

func (*DatabaseInstanceSpecClone) DeepCopy

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

func (*DatabaseInstanceSpecClone) DeepCopyInto

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

type DatabaseInstanceSpecCloneCodec

type DatabaseInstanceSpecCloneCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecCloneCodec) Decode

func (DatabaseInstanceSpecCloneCodec) Encode

func (DatabaseInstanceSpecCloneCodec) IsEmpty

type DatabaseInstanceSpecIpAddress

type DatabaseInstanceSpecIpAddress struct {
	// +optional
	IpAddress *string `json:"ipAddress,omitempty" tf:"ip_address"`
	// +optional
	TimeToRetire *string `json:"timeToRetire,omitempty" tf:"time_to_retire"`
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
}

func (*DatabaseInstanceSpecIpAddress) DeepCopy

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

func (*DatabaseInstanceSpecIpAddress) DeepCopyInto

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

type DatabaseInstanceSpecReplicaConfiguration

type DatabaseInstanceSpecReplicaConfiguration struct {
	// PEM representation of the trusted CA's x509 certificate.
	// +optional
	CaCertificate *string `json:"caCertificate,omitempty" tf:"ca_certificate"`
	// PEM representation of the replica's x509 certificate.
	// +optional
	ClientCertificate *string `json:"clientCertificate,omitempty" tf:"client_certificate"`
	// PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
	// +optional
	ClientKey *string `json:"clientKey,omitempty" tf:"client_key"`
	// The number of seconds between connect retries.
	// +optional
	ConnectRetryInterval *int64 `json:"connectRetryInterval,omitempty" tf:"connect_retry_interval"`
	// Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
	// +optional
	DumpFilePath *string `json:"dumpFilePath,omitempty" tf:"dump_file_path"`
	// Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance.
	// +optional
	FailoverTarget *bool `json:"failoverTarget,omitempty" tf:"failover_target"`
	// Time in ms between replication heartbeats.
	// +optional
	MasterHeartbeatPeriod *int64 `json:"masterHeartbeatPeriod,omitempty" tf:"master_heartbeat_period"`
	// Password for the replication connection.
	// +optional
	Password *string `json:"-" sensitive:"true" tf:"password"`
	// Permissible ciphers for use in SSL encryption.
	// +optional
	SslCipher *string `json:"sslCipher,omitempty" tf:"ssl_cipher"`
	// Username for replication connection.
	// +optional
	Username *string `json:"username,omitempty" tf:"username"`
	// True if the master's common name value is checked during the SSL handshake.
	// +optional
	VerifyServerCertificate *bool `json:"verifyServerCertificate,omitempty" tf:"verify_server_certificate"`
}

func (*DatabaseInstanceSpecReplicaConfiguration) DeepCopy

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

func (*DatabaseInstanceSpecReplicaConfiguration) DeepCopyInto

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

type DatabaseInstanceSpecReplicaConfigurationCodec

type DatabaseInstanceSpecReplicaConfigurationCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecReplicaConfigurationCodec) Decode

func (DatabaseInstanceSpecReplicaConfigurationCodec) Encode

func (DatabaseInstanceSpecReplicaConfigurationCodec) IsEmpty

type DatabaseInstanceSpecResource

type DatabaseInstanceSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Configuration for creating a new instance as a clone of another instance.
	// +optional
	Clone *DatabaseInstanceSpecClone `json:"clone,omitempty" tf:"clone"`
	// The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
	// +optional
	ConnectionName *string `json:"connectionName,omitempty" tf:"connection_name"`
	// The MySQL, PostgreSQL or SQL Server (beta) version to use. Supported values include MYSQL_5_6, MYSQL_5_7, MYSQL_8_0, POSTGRES_9_6, POSTGRES_10, POSTGRES_11, POSTGRES_12, POSTGRES_13, SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB. Database Version Policies includes an up-to-date reference of supported versions.
	// +optional
	DatabaseVersion *string `json:"databaseVersion,omitempty" tf:"database_version"`
	// Used to block Terraform from deleting a SQL Instance.
	// +optional
	DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection"`
	// The first IPv4 address of any type assigned. This is to support accessing the first address in the list in a terraform output when the resource is configured with a count.
	// +optional
	FirstIPAddress *string `json:"firstIPAddress,omitempty" tf:"first_ip_address"`
	// +optional
	IpAddress []DatabaseInstanceSpecIpAddress `json:"ipAddress,omitempty" tf:"ip_address"`
	// The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binary_log_enabled set, as well as existing backups.
	// +optional
	MasterInstanceName *string `json:"masterInstanceName,omitempty" tf:"master_instance_name"`
	// The name of the instance. If the name is left blank, Terraform will randomly generate one when the instance is first created. This is done because after a name is used, it cannot be reused for up to one week.
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// IPv4 address assigned. This is a workaround for an issue fixed in Terraform 0.12 but also provides a convenient way to access an IP of a specific type without performing filtering in a Terraform config.
	// +optional
	PrivateIPAddress *string `json:"privateIPAddress,omitempty" tf:"private_ip_address"`
	// The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// IPv4 address assigned. This is a workaround for an issue fixed in Terraform 0.12 but also provides a convenient way to access an IP of a specific type without performing filtering in a Terraform config.
	// +optional
	PublicIPAddress *string `json:"publicIPAddress,omitempty" tf:"public_ip_address"`
	// The region the instance will sit in. Note, Cloud SQL is not available in all regions. A valid region must be provided to use this resource. If a region is not provided in the resource definition, the provider region will be used instead, but this will be an apply-time error for instances if the provider region is not supported with Cloud SQL. If you choose not to provide the region argument for this resource, make sure you understand this.
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
	// The configuration for replication.
	// +optional
	ReplicaConfiguration *DatabaseInstanceSpecReplicaConfiguration `json:"replicaConfiguration,omitempty" tf:"replica_configuration"`
	// +optional
	RestoreBackupContext *DatabaseInstanceSpecRestoreBackupContext `json:"restoreBackupContext,omitempty" tf:"restore_backup_context"`
	// Initial root password. Required for MS SQL Server, ignored by MySQL and PostgreSQL.
	// +optional
	RootPassword *string `json:"-" sensitive:"true" tf:"root_password"`
	// The URI of the created resource.
	// +optional
	SelfLink *string `json:"selfLink,omitempty" tf:"self_link"`
	// +optional
	ServerCaCert []DatabaseInstanceSpecServerCaCert `json:"serverCaCert,omitempty" tf:"server_ca_cert"`
	// The service account email address assigned to the instance.
	// +optional
	ServiceAccountEmailAddress *string `json:"serviceAccountEmailAddress,omitempty" tf:"service_account_email_address"`
	// The settings to use for the database. The configuration is detailed below.
	// +optional
	Settings *DatabaseInstanceSpecSettings `json:"settings,omitempty" tf:"settings"`
}

func (*DatabaseInstanceSpecResource) DeepCopy

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

func (*DatabaseInstanceSpecResource) DeepCopyInto

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

type DatabaseInstanceSpecRestoreBackupContext

type DatabaseInstanceSpecRestoreBackupContext struct {
	// The ID of the backup run to restore from.
	BackupRunID *int64 `json:"backupRunID" tf:"backup_run_id"`
	// The ID of the instance that the backup was taken from.
	// +optional
	InstanceID *string `json:"instanceID,omitempty" tf:"instance_id"`
	// The full project ID of the source instance.
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
}

func (*DatabaseInstanceSpecRestoreBackupContext) DeepCopy

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

func (*DatabaseInstanceSpecRestoreBackupContext) DeepCopyInto

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

type DatabaseInstanceSpecRestoreBackupContextCodec

type DatabaseInstanceSpecRestoreBackupContextCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecRestoreBackupContextCodec) Decode

func (DatabaseInstanceSpecRestoreBackupContextCodec) Encode

func (DatabaseInstanceSpecRestoreBackupContextCodec) IsEmpty

type DatabaseInstanceSpecServerCaCert

type DatabaseInstanceSpecServerCaCert struct {
	// The CA Certificate used to connect to the SQL Instance via SSL.
	// +optional
	Cert *string `json:"cert,omitempty" tf:"cert"`
	// The CN valid for the CA Cert.
	// +optional
	CommonName *string `json:"commonName,omitempty" tf:"common_name"`
	// Creation time of the CA Cert.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// Expiration time of the CA Cert.
	// +optional
	ExpirationTime *string `json:"expirationTime,omitempty" tf:"expiration_time"`
	// SHA Fingerprint of the CA Cert.
	// +optional
	Sha1Fingerprint *string `json:"sha1Fingerprint,omitempty" tf:"sha1_fingerprint"`
}

func (*DatabaseInstanceSpecServerCaCert) DeepCopy

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

func (*DatabaseInstanceSpecServerCaCert) DeepCopyInto

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

type DatabaseInstanceSpecSettings

type DatabaseInstanceSpecSettings struct {
	// This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.
	// +optional
	ActivationPolicy *string `json:"activationPolicy,omitempty" tf:"activation_policy"`
	// This property is only applicable to First Generation instances. First Generation instances are now deprecated, see https://cloud.google.com/sql/docs/mysql/deprecation-notice for information on how to upgrade to Second Generation instances. A list of Google App Engine project names that are allowed to access this instance.
	// +optional
	// Deprecated
	AuthorizedGaeApplications []string `json:"authorizedGaeApplications,omitempty" tf:"authorized_gae_applications"`
	// The availability type of the Cloud SQL instance, high availability
	// (REGIONAL) or single zone (ZONAL). For MySQL instances, ensure that
	// settings.backup_configuration.enabled and
	// settings.backup_configuration.binary_log_enabled are both set to true.
	// +optional
	AvailabilityType *string `json:"availabilityType,omitempty" tf:"availability_type"`
	// +optional
	BackupConfiguration *DatabaseInstanceSpecSettingsBackupConfiguration `json:"backupConfiguration,omitempty" tf:"backup_configuration"`
	// The name of server instance collation.
	// +optional
	Collation *string `json:"collation,omitempty" tf:"collation"`
	// This property is only applicable to First Generation instances. First Generation instances are now deprecated, see here for information on how to upgrade to Second Generation instances. Specific to read instances, indicates when crash-safe replication flags are enabled.
	// +optional
	// Deprecated
	CrashSafeReplication *bool `json:"crashSafeReplication,omitempty" tf:"crash_safe_replication"`
	// +optional
	DatabaseFlags []DatabaseInstanceSpecSettingsDatabaseFlags `json:"databaseFlags,omitempty" tf:"database_flags"`
	// Configuration to increase storage size automatically.  Note that future terraform apply calls will attempt to resize the disk to the value specified in disk_size - if this is set, do not set disk_size.
	// +optional
	DiskAutoresize *bool `json:"diskAutoresize,omitempty" tf:"disk_autoresize"`
	// The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
	// +optional
	DiskAutoresizeLimit *int64 `json:"diskAutoresizeLimit,omitempty" tf:"disk_autoresize_limit"`
	// The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased.
	// +optional
	DiskSize *int64 `json:"diskSize,omitempty" tf:"disk_size"`
	// The type of data disk: PD_SSD or PD_HDD.
	// +optional
	DiskType *string `json:"diskType,omitempty" tf:"disk_type"`
	// Configuration of Query Insights.
	// +optional
	InsightsConfig *DatabaseInstanceSpecSettingsInsightsConfig `json:"insightsConfig,omitempty" tf:"insights_config"`
	// +optional
	IpConfiguration *DatabaseInstanceSpecSettingsIpConfiguration `json:"ipConfiguration,omitempty" tf:"ip_configuration"`
	// +optional
	LocationPreference *DatabaseInstanceSpecSettingsLocationPreference `json:"locationPreference,omitempty" tf:"location_preference"`
	// Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
	// +optional
	MaintenanceWindow *DatabaseInstanceSpecSettingsMaintenanceWindow `json:"maintenanceWindow,omitempty" tf:"maintenance_window"`
	// Pricing plan for this instance, can only be PER_USE.
	// +optional
	PricingPlan *string `json:"pricingPlan,omitempty" tf:"pricing_plan"`
	// This property is only applicable to First Generation instances. First Generation instances are now deprecated, see here for information on how to upgrade to Second Generation instances. Replication type for this instance, can be one of ASYNCHRONOUS or SYNCHRONOUS.
	// +optional
	// Deprecated
	ReplicationType *string `json:"replicationType,omitempty" tf:"replication_type"`
	// The machine type to use. See tiers for more details and supported versions. Postgres supports only shared-core machine types, and custom machine types such as db-custom-2-13312. See the Custom Machine Type Documentation to learn about specifying custom machine types.
	Tier *string `json:"tier" tf:"tier"`
	// A set of key/value user label pairs to assign to the instance.
	// +optional
	UserLabels *map[string]string `json:"userLabels,omitempty" tf:"user_labels"`
	// Used to make sure changes to the settings block are atomic.
	// +optional
	Version *int64 `json:"version,omitempty" tf:"version"`
}

func (*DatabaseInstanceSpecSettings) DeepCopy

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

func (*DatabaseInstanceSpecSettings) DeepCopyInto

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

type DatabaseInstanceSpecSettingsBackupConfiguration

type DatabaseInstanceSpecSettingsBackupConfiguration struct {
	// +optional
	BackupRetentionSettings *DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettings `json:"backupRetentionSettings,omitempty" tf:"backup_retention_settings"`
	// True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Cannot be used with Postgres.
	// +optional
	BinaryLogEnabled *bool `json:"binaryLogEnabled,omitempty" tf:"binary_log_enabled"`
	// True if backup configuration is enabled.
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// Location of the backup configuration.
	// +optional
	Location *string `json:"location,omitempty" tf:"location"`
	// True if Point-in-time recovery is enabled.
	// +optional
	PointInTimeRecoveryEnabled *bool `json:"pointInTimeRecoveryEnabled,omitempty" tf:"point_in_time_recovery_enabled"`
	// HH:MM format time indicating when backup configuration starts.
	// +optional
	StartTime *string `json:"startTime,omitempty" tf:"start_time"`
	// The number of days of transaction logs we retain for point in time restore, from 1-7.
	// +optional
	TransactionLogRetentionDays *int64 `json:"transactionLogRetentionDays,omitempty" tf:"transaction_log_retention_days"`
}

func (*DatabaseInstanceSpecSettingsBackupConfiguration) DeepCopy

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

func (*DatabaseInstanceSpecSettingsBackupConfiguration) DeepCopyInto

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

type DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettings

type DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettings struct {
	// Number of backups to retain.
	RetainedBackups *int64 `json:"retainedBackups" tf:"retained_backups"`
	// The unit that 'retainedBackups' represents. Defaults to COUNT
	// +optional
	RetentionUnit *string `json:"retentionUnit,omitempty" tf:"retention_unit"`
}

func (*DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettings) DeepCopy

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

func (*DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettings) DeepCopyInto

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

type DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettingsCodec

type DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettingsCodec) Decode

func (DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettingsCodec) Encode

func (DatabaseInstanceSpecSettingsBackupConfigurationBackupRetentionSettingsCodec) IsEmpty

type DatabaseInstanceSpecSettingsBackupConfigurationCodec

type DatabaseInstanceSpecSettingsBackupConfigurationCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecSettingsBackupConfigurationCodec) Decode

func (DatabaseInstanceSpecSettingsBackupConfigurationCodec) Encode

func (DatabaseInstanceSpecSettingsBackupConfigurationCodec) IsEmpty

type DatabaseInstanceSpecSettingsCodec

type DatabaseInstanceSpecSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecSettingsCodec) Decode

func (DatabaseInstanceSpecSettingsCodec) Encode

func (DatabaseInstanceSpecSettingsCodec) IsEmpty

type DatabaseInstanceSpecSettingsDatabaseFlags

type DatabaseInstanceSpecSettingsDatabaseFlags struct {
	// Name of the flag.
	Name *string `json:"name" tf:"name"`
	// Value of the flag.
	Value *string `json:"value" tf:"value"`
}

func (*DatabaseInstanceSpecSettingsDatabaseFlags) DeepCopy

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

func (*DatabaseInstanceSpecSettingsDatabaseFlags) DeepCopyInto

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

type DatabaseInstanceSpecSettingsInsightsConfig

type DatabaseInstanceSpecSettingsInsightsConfig struct {
	// True if Query Insights feature is enabled.
	// +optional
	QueryInsightsEnabled *bool `json:"queryInsightsEnabled,omitempty" tf:"query_insights_enabled"`
	// Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
	// +optional
	QueryStringLength *int64 `json:"queryStringLength,omitempty" tf:"query_string_length"`
	// True if Query Insights will record application tags from query when enabled.
	// +optional
	RecordApplicationTags *bool `json:"recordApplicationTags,omitempty" tf:"record_application_tags"`
	// True if Query Insights will record client address when enabled.
	// +optional
	RecordClientAddress *bool `json:"recordClientAddress,omitempty" tf:"record_client_address"`
}

func (*DatabaseInstanceSpecSettingsInsightsConfig) DeepCopy

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

func (*DatabaseInstanceSpecSettingsInsightsConfig) DeepCopyInto

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

type DatabaseInstanceSpecSettingsInsightsConfigCodec

type DatabaseInstanceSpecSettingsInsightsConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecSettingsInsightsConfigCodec) Decode

func (DatabaseInstanceSpecSettingsInsightsConfigCodec) Encode

func (DatabaseInstanceSpecSettingsInsightsConfigCodec) IsEmpty

type DatabaseInstanceSpecSettingsIpConfiguration

type DatabaseInstanceSpecSettingsIpConfiguration struct {
	// +optional
	AuthorizedNetworks []DatabaseInstanceSpecSettingsIpConfigurationAuthorizedNetworks `json:"authorizedNetworks,omitempty" tf:"authorized_networks"`
	// Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
	// +optional
	Ipv4Enabled *bool `json:"ipv4Enabled,omitempty" tf:"ipv4_enabled"`
	// The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
	// +optional
	PrivateNetwork *string `json:"privateNetwork,omitempty" tf:"private_network"`
	// +optional
	RequireSsl *bool `json:"requireSsl,omitempty" tf:"require_ssl"`
}

func (*DatabaseInstanceSpecSettingsIpConfiguration) DeepCopy

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

func (*DatabaseInstanceSpecSettingsIpConfiguration) DeepCopyInto

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

type DatabaseInstanceSpecSettingsIpConfigurationAuthorizedNetworks

type DatabaseInstanceSpecSettingsIpConfigurationAuthorizedNetworks struct {
	// +optional
	ExpirationTime *string `json:"expirationTime,omitempty" tf:"expiration_time"`
	// +optional
	Name  *string `json:"name,omitempty" tf:"name"`
	Value *string `json:"value" tf:"value"`
}

func (*DatabaseInstanceSpecSettingsIpConfigurationAuthorizedNetworks) DeepCopy

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

func (*DatabaseInstanceSpecSettingsIpConfigurationAuthorizedNetworks) DeepCopyInto

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

type DatabaseInstanceSpecSettingsIpConfigurationCodec

type DatabaseInstanceSpecSettingsIpConfigurationCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecSettingsIpConfigurationCodec) Decode

func (DatabaseInstanceSpecSettingsIpConfigurationCodec) Encode

func (DatabaseInstanceSpecSettingsIpConfigurationCodec) IsEmpty

type DatabaseInstanceSpecSettingsLocationPreference

type DatabaseInstanceSpecSettingsLocationPreference struct {
	// A Google App Engine application whose zone to remain in. Must be in the same region as this instance.
	// +optional
	FollowGaeApplication *string `json:"followGaeApplication,omitempty" tf:"follow_gae_application"`
	// The preferred compute engine zone.
	// +optional
	Zone *string `json:"zone,omitempty" tf:"zone"`
}

func (*DatabaseInstanceSpecSettingsLocationPreference) DeepCopy

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

func (*DatabaseInstanceSpecSettingsLocationPreference) DeepCopyInto

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

type DatabaseInstanceSpecSettingsLocationPreferenceCodec

type DatabaseInstanceSpecSettingsLocationPreferenceCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecSettingsLocationPreferenceCodec) Decode

func (DatabaseInstanceSpecSettingsLocationPreferenceCodec) Encode

func (DatabaseInstanceSpecSettingsLocationPreferenceCodec) IsEmpty

type DatabaseInstanceSpecSettingsMaintenanceWindow

type DatabaseInstanceSpecSettingsMaintenanceWindow struct {
	// Day of week (1-7), starting on Monday
	// +optional
	Day *int64 `json:"day,omitempty" tf:"day"`
	// Hour of day (0-23), ignored if day not set
	// +optional
	Hour *int64 `json:"hour,omitempty" tf:"hour"`
	// Receive updates earlier (canary) or later (stable)
	// +optional
	UpdateTrack *string `json:"updateTrack,omitempty" tf:"update_track"`
}

func (*DatabaseInstanceSpecSettingsMaintenanceWindow) DeepCopy

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

func (*DatabaseInstanceSpecSettingsMaintenanceWindow) DeepCopyInto

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

type DatabaseInstanceSpecSettingsMaintenanceWindowCodec

type DatabaseInstanceSpecSettingsMaintenanceWindowCodec struct {
}

+k8s:deepcopy-gen=false

func (DatabaseInstanceSpecSettingsMaintenanceWindowCodec) Decode

func (DatabaseInstanceSpecSettingsMaintenanceWindowCodec) Encode

func (DatabaseInstanceSpecSettingsMaintenanceWindowCodec) IsEmpty

type DatabaseInstanceStatus

type DatabaseInstanceStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*DatabaseInstanceStatus) DeepCopy

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

func (*DatabaseInstanceStatus) DeepCopyInto

func (in *DatabaseInstanceStatus) DeepCopyInto(out *DatabaseInstanceStatus)

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

type DatabaseList

type DatabaseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Database CRD objects
	Items []Database `json:"items,omitempty"`
}

DatabaseList is a list of Databases

func (*DatabaseList) DeepCopy

func (in *DatabaseList) DeepCopy() *DatabaseList

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

func (*DatabaseList) DeepCopyInto

func (in *DatabaseList) DeepCopyInto(out *DatabaseList)

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

func (*DatabaseList) DeepCopyObject

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

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

type DatabaseSpec

type DatabaseSpec struct {
	State *DatabaseSpecResource `json:"state,omitempty" tf:"-"`

	Resource DatabaseSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*DatabaseSpec) DeepCopy

func (in *DatabaseSpec) DeepCopy() *DatabaseSpec

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

func (*DatabaseSpec) DeepCopyInto

func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)

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

type DatabaseSpecResource

type DatabaseSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The charset value. See MySQL's
	// [Supported Character Sets and Collations](https://dev.mysql.com/doc/refman/5.7/en/charset-charsets.html)
	// and Postgres' [Character Set Support](https://www.postgresql.org/docs/9.6/static/multibyte.html)
	// for more details and supported values. Postgres databases only support
	// a value of 'UTF8' at creation time.
	// +optional
	Charset *string `json:"charset,omitempty" tf:"charset"`
	// The collation value. See MySQL's
	// [Supported Character Sets and Collations](https://dev.mysql.com/doc/refman/5.7/en/charset-charsets.html)
	// and Postgres' [Collation Support](https://www.postgresql.org/docs/9.6/static/collation.html)
	// for more details and supported values. Postgres databases only support
	// a value of 'en_US.UTF8' at creation time.
	// +optional
	Collation *string `json:"collation,omitempty" tf:"collation"`
	// The name of the Cloud SQL instance. This does not include the project
	// ID.
	Instance *string `json:"instance" tf:"instance"`
	// The name of the database in the Cloud SQL instance.
	// This does not include the project ID or instance name.
	Name *string `json:"name" tf:"name"`
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// +optional
	SelfLink *string `json:"selfLink,omitempty" tf:"self_link"`
}

func (*DatabaseSpecResource) DeepCopy

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

func (*DatabaseSpecResource) DeepCopyInto

func (in *DatabaseSpecResource) DeepCopyInto(out *DatabaseSpecResource)

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

type DatabaseStatus

type DatabaseStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*DatabaseStatus) DeepCopy

func (in *DatabaseStatus) DeepCopy() *DatabaseStatus

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

func (*DatabaseStatus) DeepCopyInto

func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)

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

type SourceRepresentationInstance

type SourceRepresentationInstance struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SourceRepresentationInstanceSpec   `json:"spec,omitempty"`
	Status            SourceRepresentationInstanceStatus `json:"status,omitempty"`
}

func (*SourceRepresentationInstance) DeepCopy

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

func (*SourceRepresentationInstance) DeepCopyInto

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

func (*SourceRepresentationInstance) DeepCopyObject

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

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

func (*SourceRepresentationInstance) SetupWebhookWithManager

func (r *SourceRepresentationInstance) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*SourceRepresentationInstance) ValidateCreate

func (r *SourceRepresentationInstance) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*SourceRepresentationInstance) ValidateDelete

func (r *SourceRepresentationInstance) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*SourceRepresentationInstance) ValidateUpdate

func (r *SourceRepresentationInstance) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type SourceRepresentationInstanceList

type SourceRepresentationInstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of SourceRepresentationInstance CRD objects
	Items []SourceRepresentationInstance `json:"items,omitempty"`
}

SourceRepresentationInstanceList is a list of SourceRepresentationInstances

func (*SourceRepresentationInstanceList) DeepCopy

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

func (*SourceRepresentationInstanceList) DeepCopyInto

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

func (*SourceRepresentationInstanceList) DeepCopyObject

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

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

type SourceRepresentationInstanceSpec

type SourceRepresentationInstanceSpec struct {
	State *SourceRepresentationInstanceSpecResource `json:"state,omitempty" tf:"-"`

	Resource SourceRepresentationInstanceSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*SourceRepresentationInstanceSpec) DeepCopy

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

func (*SourceRepresentationInstanceSpec) DeepCopyInto

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

type SourceRepresentationInstanceSpecResource

type SourceRepresentationInstanceSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The MySQL version running on your source database server. Possible values: ["MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", "MYSQL_8_0"]
	DatabaseVersion *string `json:"databaseVersion" tf:"database_version"`
	// The externally accessible IPv4 address for the source database server.
	Host *string `json:"host" tf:"host"`
	// The name of the source representation instance. Use any valid Cloud SQL instance name.
	Name *string `json:"name" tf:"name"`
	// The externally accessible port for the source database server.
	// Defaults to 3306.
	// +optional
	Port *int64 `json:"port,omitempty" tf:"port"`
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// The Region in which the created instance should reside.
	// If it is not provided, the provider region is used.
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
}

func (*SourceRepresentationInstanceSpecResource) DeepCopy

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

func (*SourceRepresentationInstanceSpecResource) DeepCopyInto

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

type SourceRepresentationInstanceStatus

type SourceRepresentationInstanceStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*SourceRepresentationInstanceStatus) DeepCopy

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

func (*SourceRepresentationInstanceStatus) DeepCopyInto

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

type SslCert

type SslCert struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SslCertSpec   `json:"spec,omitempty"`
	Status            SslCertStatus `json:"status,omitempty"`
}

func (*SslCert) DeepCopy

func (in *SslCert) DeepCopy() *SslCert

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

func (*SslCert) DeepCopyInto

func (in *SslCert) DeepCopyInto(out *SslCert)

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

func (*SslCert) DeepCopyObject

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

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

func (*SslCert) SetupWebhookWithManager

func (r *SslCert) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*SslCert) ValidateCreate

func (r *SslCert) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*SslCert) ValidateDelete

func (r *SslCert) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*SslCert) ValidateUpdate

func (r *SslCert) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type SslCertList

type SslCertList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of SslCert CRD objects
	Items []SslCert `json:"items,omitempty"`
}

SslCertList is a list of SslCerts

func (*SslCertList) DeepCopy

func (in *SslCertList) DeepCopy() *SslCertList

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

func (*SslCertList) DeepCopyInto

func (in *SslCertList) DeepCopyInto(out *SslCertList)

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

func (*SslCertList) DeepCopyObject

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

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

type SslCertSpec

type SslCertSpec struct {
	State *SslCertSpecResource `json:"state,omitempty" tf:"-"`

	Resource SslCertSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*SslCertSpec) DeepCopy

func (in *SslCertSpec) DeepCopy() *SslCertSpec

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

func (*SslCertSpec) DeepCopyInto

func (in *SslCertSpec) DeepCopyInto(out *SslCertSpec)

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

type SslCertSpecResource

type SslCertSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The actual certificate data for this client certificate.
	// +optional
	Cert *string `json:"cert,omitempty" tf:"cert"`
	// The serial number extracted from the certificate data.
	// +optional
	CertSerialNumber *string `json:"certSerialNumber,omitempty" tf:"cert_serial_number"`
	// The common name to be used in the certificate to identify the client. Constrained to [a-zA-Z.-_ ]+. Changing this forces a new resource to be created.
	CommonName *string `json:"commonName" tf:"common_name"`
	// The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// The time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
	// +optional
	ExpirationTime *string `json:"expirationTime,omitempty" tf:"expiration_time"`
	// The name of the Cloud SQL instance. Changing this forces a new resource to be created.
	Instance *string `json:"instance" tf:"instance"`
	// The private key associated with the client certificate.
	// +optional
	PrivateKey *string `json:"-" sensitive:"true" tf:"private_key"`
	// The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// The CA cert of the server this client cert was generated from.
	// +optional
	ServerCaCert *string `json:"serverCaCert,omitempty" tf:"server_ca_cert"`
	// The SHA1 Fingerprint of the certificate.
	// +optional
	Sha1Fingerprint *string `json:"sha1Fingerprint,omitempty" tf:"sha1_fingerprint"`
}

func (*SslCertSpecResource) DeepCopy

func (in *SslCertSpecResource) DeepCopy() *SslCertSpecResource

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

func (*SslCertSpecResource) DeepCopyInto

func (in *SslCertSpecResource) DeepCopyInto(out *SslCertSpecResource)

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

type SslCertStatus

type SslCertStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*SslCertStatus) DeepCopy

func (in *SslCertStatus) DeepCopy() *SslCertStatus

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

func (*SslCertStatus) DeepCopyInto

func (in *SslCertStatus) DeepCopyInto(out *SslCertStatus)

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

type User

type User struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              UserSpec   `json:"spec,omitempty"`
	Status            UserStatus `json:"status,omitempty"`
}

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

func (*User) SetupWebhookWithManager

func (r *User) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*User) ValidateCreate

func (r *User) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*User) ValidateDelete

func (r *User) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*User) ValidateUpdate

func (r *User) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type UserList

type UserList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of User CRD objects
	Items []User `json:"items,omitempty"`
}

UserList is a list of Users

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

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

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

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

func (*UserList) DeepCopyObject

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

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

type UserSpec

type UserSpec struct {
	State *UserSpecResource `json:"state,omitempty" tf:"-"`

	Resource UserSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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

type UserSpecResource

type UserSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The deletion policy for the user. Setting ABANDON allows the resource
	// 				to be abandoned rather than deleted. This is useful for Postgres, where users cannot be deleted from the API if they
	// 				have been granted SQL roles. Possible values are: "ABANDON".
	// +optional
	DeletionPolicy *string `json:"deletionPolicy,omitempty" tf:"deletion_policy"`
	// The host the user can connect from. This is only supported for MySQL instances. Don't set this field for PostgreSQL instances. Can be an IP address. Changing this forces a new resource to be created.
	// +optional
	Host *string `json:"host,omitempty" tf:"host"`
	// The name of the Cloud SQL instance. Changing this forces a new resource to be created.
	Instance *string `json:"instance" tf:"instance"`
	// The name of the user. Changing this forces a new resource to be created.
	Name *string `json:"name" tf:"name"`
	// The password for the user. Can be updated. For Postgres instances this is a Required field, unless type is set to
	//                 either CLOUD_IAM_USER or CLOUD_IAM_SERVICE_ACCOUNT.
	// +optional
	Password *string `json:"-" sensitive:"true" tf:"password"`
	// The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// The user type. It determines the method to authenticate the user during login.
	//                 The default is the database's built-in user type. Flags include "BUILT_IN", "CLOUD_IAM_USER", or "CLOUD_IAM_SERVICE_ACCOUNT".
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
}

func (*UserSpecResource) DeepCopy

func (in *UserSpecResource) DeepCopy() *UserSpecResource

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

func (*UserSpecResource) DeepCopyInto

func (in *UserSpecResource) DeepCopyInto(out *UserSpecResource)

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

type UserStatus

type UserStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

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

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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