Skip to content

Commit

Permalink
Support userdata where creating bcc
Browse files Browse the repository at this point in the history
  • Loading branch information
duanliguo committed May 23, 2022
1 parent 207f87a commit 174778d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bce/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

// Constants and default values for the package bce
const (
SDK_VERSION = "0.9.115"
SDK_VERSION = "0.9.116"
URI_PREFIX = "/" // now support uri without prefix "v1" so just set root path
DEFAULT_DOMAIN = "baidubce.com"
DEFAULT_PROTOCOL = "http"
Expand Down
3 changes: 3 additions & 0 deletions services/bcc/api/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ type CreateInstanceArgs struct {
KeypairId string `json:"keypairId,omitempty"`
AspId string `json:"aspId,omitempty"`
InternetChargeType string `json:"internetChargeType,omitempty"`
UserData string `json:"userData,omitempty"`
InternalIps []string `json:"internalIps,omitempty"`
ClientToken string `json:"-"`
RequestToken string `json:"requestToken"`
Expand Down Expand Up @@ -390,6 +391,7 @@ type CreateInstanceBySpecArgs struct {
AspId string `json:"aspId"`
InternalIps []string `json:"internalIps,omitempty"`
DeployId string `json:"deployId,omitempty"`
UserData string `json:"userData,omitempty"`
ClientToken string `json:"-"`
RequestToken string `json:"requestToken"`
DeployIdList []string `json:"deployIdList"`
Expand Down Expand Up @@ -426,6 +428,7 @@ type CreateSpecialInstanceBySpecArgs struct {
Name string `json:"name,omitempty"`
Hostname string `json:"hostname,omitempty"`
IsOpenHostnameDomain bool `json:"isOpenHostnameDomain,omitempty"`
UserData string `json:"userData,omitempty"`
AutoSeqSuffix bool `json:"autoSeqSuffix,omitempty"`
AdminPass string `json:"adminPass,omitempty"`
Billing Billing `json:"billing"`
Expand Down

0 comments on commit 174778d

Please sign in to comment.