Skip to content

Commit

Permalink
feat(GaussDBforNoSQL): gausdb redis instance support az detail (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
houpeng80 authored Oct 24, 2024
1 parent 6dc73cc commit a96c848
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions openstack/geminidb/v3/instances/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import (
"github.com/chnsz/golangsdk/pagination"
)

type AvailabilityZoneDetailOpt struct {
PrimaryAvailabilityZone string `json:"primary_availability_zone" required:"true"`
SecondaryAvailabilityZone string `json:"secondary_availability_zone" required:"true"`
}

type FlavorOpt struct {
Num string `json:"num" required:"true"`
Size int `json:"size" required:"true"`
Expand All @@ -28,23 +33,24 @@ type ChargeInfoOpt struct {
}

type CreateGeminiDBOpts struct {
Name string `json:"name" required:"true"`
Region string `json:"region" required:"true"`
AvailabilityZone string `json:"availability_zone" required:"true"`
VpcId string `json:"vpc_id" required:"true"`
SubnetId string `json:"subnet_id" required:"true"`
SecurityGroupId string `json:"security_group_id,omitempty"`
Password string `json:"password" required:"true"`
Mode string `json:"mode" required:"true"`
ConfigurationId string `json:"configuration_id,omitempty"`
EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
DedicatedResourceId string `json:"dedicated_resource_id,omitempty"`
Ssl string `json:"ssl_option,omitempty"`
Port string `json:"port,omitempty"`
DataStore DataStore `json:"datastore" required:"true"`
Flavor []FlavorOpt `json:"flavor" required:"true"`
BackupStrategy *BackupStrategyOpt `json:"backup_strategy,omitempty"`
ChargeInfo *ChargeInfoOpt `json:"charge_info,omitempty"`
Name string `json:"name" required:"true"`
Region string `json:"region" required:"true"`
AvailabilityZone string `json:"availability_zone" required:"true"`
AvailabilityZoneDetail *AvailabilityZoneDetailOpt `json:"availability_zone_detail,omitempty"`
VpcId string `json:"vpc_id" required:"true"`
SubnetId string `json:"subnet_id" required:"true"`
SecurityGroupId string `json:"security_group_id,omitempty"`
Password string `json:"password" required:"true"`
Mode string `json:"mode" required:"true"`
ConfigurationId string `json:"configuration_id,omitempty"`
EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
DedicatedResourceId string `json:"dedicated_resource_id,omitempty"`
Ssl string `json:"ssl_option,omitempty"`
Port string `json:"port,omitempty"`
DataStore DataStore `json:"datastore" required:"true"`
Flavor []FlavorOpt `json:"flavor" required:"true"`
BackupStrategy *BackupStrategyOpt `json:"backup_strategy,omitempty"`
ChargeInfo *ChargeInfoOpt `json:"charge_info,omitempty"`
}

type CreateGeminiDBBuilder interface {
Expand Down

0 comments on commit a96c848

Please sign in to comment.