Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 161 additions & 2 deletions modules/mysql/metadata.display.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ spec:
value: NEVER
- label: ON_DEMAND
value: ON_DEMAND
enumValueLabels:
- label: ALWAYS
value: ALWAYS
- label: NEVER
value: NEVER
- label: ON_DEMAND
value: ON_DEMAND
additional_databases:
name: additional_databases
title: Additional Databases
Expand All @@ -57,6 +64,22 @@ spec:
title: Collation
regexValidation: ^[a-z0-9_]+$
validation: Database collation should contain only lowercase letters, numbers, and underscores.
properties:
name:
name: name
title: Database Name
regexValidation: ^[a-zA-Z][a-zA-Z0-9_]{0,63}$
validation: Database names must be between 1 and 64 characters long, start with a letter, and can only contain letters, numbers, and underscores.
charset:
name: charset
title: Charset
regexValidation: ^[a-zA-Z0-9]+$
validation: Database charset should contain only letters and numbers (e.g. 'utf8').
collation:
name: collation
title: Collation
regexValidation: ^[a-z0-9_]+$
validation: Database collation should contain only lowercase letters, numbers, and underscores.
additional_users:
name: additional_users
title: Additional Users
Expand All @@ -82,6 +105,28 @@ spec:
value: CLOUD_IAM_GROUP_USER
- label: CLOUD_IAM_GROUP_SERVICE_ACCOUNT
value: CLOUD_IAM_GROUP_SERVICE_ACCOUNT
properties:
name:
name: name
title: User Name
regexValidation: ^[a-zA-Z][a-zA-Z0-9_]{0,31}$
validation: User names must be between 1 and 32 characters long, start with a letter, and can only contain letters, numbers, and underscores.
type:
name: type
title: Type
enumValueLabels:
- label: BUILT_IN
value: BUILT_IN
- label: CLOUD_IAM_USER
value: CLOUD_IAM_USER
- label: CLOUD_IAM_SERVICE_ACCOUNT
value: CLOUD_IAM_SERVICE_ACCOUNT
- label: CLOUD_IAM_GROUP
value: CLOUD_IAM_GROUP
- label: CLOUD_IAM_GROUP_USER
value: CLOUD_IAM_GROUP_USER
- label: CLOUD_IAM_GROUP_SERVICE_ACCOUNT
value: CLOUD_IAM_GROUP_SERVICE_ACCOUNT
availability_type:
name: availability_type
title: Availability Type
Expand Down Expand Up @@ -110,6 +155,13 @@ spec:
enumValueLabels:
- label: COUNT
value: COUNT
properties:
retention_unit:
name: retention_unit
title: Retention Unit
enumValueLabels:
- label: COUNT
value: COUNT
connector_enforcement:
name: connector_enforcement
title: Connector Enforcement
Expand All @@ -118,6 +170,11 @@ spec:
value: REQUIRED
- label: NOT_REQUIRED
value: NOT_REQUIRED
enumValueLabels:
- label: REQUIRED
value: REQUIRED
- label: NOT_REQUIRED
value: NOT_REQUIRED
create_timeout:
name: create_timeout
title: Create Timeout
Expand Down Expand Up @@ -154,11 +211,15 @@ spec:
title: Db Charset
regexValidation: ^[a-z0-9]+$
validation: Database charset should contain only lowercase letters and numbers.
regexValidation: ^[a-z0-9]+$
validation: Database charset should contain only lowercase letters and numbers.
db_collation:
name: db_collation
title: Db Collation
regexValidation: ^[a-z0-9_]+$
validation: Database collation should contain only lowercase letters, numbers, and underscores.
regexValidation: ^[a-z0-9_]+$
validation: Database collation should contain only lowercase letters, numbers, and underscores.
db_name:
name: db_name
title: Db Name
Expand Down Expand Up @@ -197,6 +258,22 @@ spec:
title: Time
regexValidation: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$
validation: Time must be in HH:MM:SS format (24-hour clock).
properties:
end_date:
name: end_date
title: End Date
regexValidation: ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$
validation: End date must be in YYYY-MM-DD format.
start_date:
name: start_date
title: Start Date
regexValidation: ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$
validation: Start date must be in YYYY-MM-DD format.
time:
name: time
title: Time
regexValidation: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$
validation: Time must be in HH:MM:SS format (24-hour clock).
disk_autoresize:
name: disk_autoresize
title: Disk Autoresize
Expand All @@ -223,6 +300,13 @@ spec:
value: PD_HDD
- label: HYPERDISK_BALANCED
value: HYPERDISK_BALANCED
enumValueLabels:
- label: PD_SSD
value: PD_SSD
- label: PD_HDD
value: PD_HDD
- label: HYPERDISK_BALANCED
value: HYPERDISK_BALANCED
edition:
name: edition
title: Edition
Expand Down Expand Up @@ -265,7 +349,7 @@ spec:
email:
name: email
title: Email
regexValidation: ^([a-zA-Z][a-zA-Z0-9_]{0,15}|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$
regexValidation: "^([a-zA-Z][a-zA-Z0-9_]{0,15}|[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,})$"
validation: Must be a valid email address or a Google service account email.
type:
name: type
Expand Down Expand Up @@ -298,6 +382,15 @@ spec:
value: ON_PREMISES_INSTANCE
- label: READ_REPLICA_INSTANCE
value: READ_REPLICA_INSTANCE
enumValueLabels:
- label: SQL_INSTANCE_TYPE_UNSPECIFIED
value: SQL_INSTANCE_TYPE_UNSPECIFIED
- label: CLOUD_SQL_INSTANCE
value: CLOUD_SQL_INSTANCE
- label: ON_PREMISES_INSTANCE
value: ON_PREMISES_INSTANCE
- label: READ_REPLICA_INSTANCE
value: READ_REPLICA_INSTANCE
ip_configuration:
name: ip_configuration
title: Ip Configuration
Expand Down Expand Up @@ -325,7 +418,7 @@ spec:
value:
name: value
title: Value
regexValidation: ^((25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\/(3[0-2]|[1-2]\d|\d)$
regexValidation: "^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\/(3[0-2]|[1-2][0-9]|[0-9])$"
validation: Must be a valid IPv4 address in CIDR format.
level: 1
maintenance_window_day:
Expand Down Expand Up @@ -358,6 +451,9 @@ spec:
enumValueLabels:
- label: PER_USE
value: PER_USE
enumValueLabels:
- label: PER_USE
value: PER_USE
project_id:
name: project_id
title: Project Id
Expand Down Expand Up @@ -425,6 +521,55 @@ spec:
value: ENCRYPTED_ONLY
- label: TRUSTED_CLIENT_CERTIFICATE_REQUIRED
value: TRUSTED_CLIENT_CERTIFICATE_REQUIRED
properties:
name:
name: name
title: Read Replica Name
regexValidation: ^[a-z][a-z0-9-]{0,95}[a-z0-9]$
validation: Read replica names must be between 1 and 97 characters long, start with a lowercase letter, and end with a lowercase letter or number. Read replica names can only contain lowercase letters, numbers, and hyphens.
edition:
name: edition
title: Edition
enumValueLabels:
- label: ENTERPRISE_PLUS
value: ENTERPRISE_PLUS
- label: ENTERPRISE
value: ENTERPRISE
availability_type:
name: availability_type
title: Availability Type
enumValueLabels:
- label: REGIONAL
value: REGIONAL
- label: ZONAL
value: ZONAL
disk_type:
name: disk_type
title: Disk Type
enumValueLabels:
- label: PD_SSD
value: PD_SSD
- label: PD_HDD
value: PD_HDD
ip_configuration:
name: ip_configuration
title: Ip Configuration
properties:
private_network:
name: private_network
title: Private Network
regexValidation: ^(projects/[a-z0-9-]+/)?global/networks/[a-z0-9-]+$
validation: Invalid format. Expected a valid Google Cloud network resource name, e.g. projects/{project}/global/networks/{network}.
ssl_mode:
name: ssl_mode
title: Ssl Mode
enumValueLabels:
- label: ALLOW_UNENCRYPTED_AND_ENCRYPTED
value: ALLOW_UNENCRYPTED_AND_ENCRYPTED
- label: ENCRYPTED_ONLY
value: ENCRYPTED_ONLY
- label: TRUSTED_CLIENT_CERTIFICATE_REQUIRED
value: TRUSTED_CLIENT_CERTIFICATE_REQUIRED
region:
name: region
title: Region
Expand All @@ -441,6 +586,15 @@ spec:
value: MYSQL_5_6
- label: MYSQL_5_7
value: MYSQL_5_7
enumValueLabels:
- label: MYSQL_8_4
value: MYSQL_8_4
- label: MYSQL_8_0
value: MYSQL_8_0
- label: MYSQL_5_6
value: MYSQL_5_6
- label: MYSQL_5_7
value: MYSQL_5_7
root_password:
name: root_password
title: Root Password
Expand All @@ -464,6 +618,9 @@ spec:
enumValueLabels:
- label: ABANDON
value: ABANDON
enumValueLabels:
- label: ABANDON
value: ABANDON
user_host:
name: user_host
title: User Host
Expand All @@ -476,6 +633,8 @@ spec:
level: 1
regexValidation: ^[a-zA-Z0-9-]{1,16}$
validation: User names must be between 1 and 16 characters long and can contain lowercase letters, numbers, and hyphens.
regexValidation: ^[a-zA-Z0-9-]{1,16}$
validation: User names must be between 1 and 16 characters long and can contain lowercase letters, numbers, and hyphens.
user_password:
name: user_password
title: User Password
Expand Down
Loading