fix tests
regenerate code regenerate code, revendor fix website
This commit is contained in:
parent
e04eaa89e6
commit
c4d0c5505a
|
@ -4,6 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/hashicorp/packer/common/commonsteps"
|
||||||
"github.com/hashicorp/packer/helper/communicator"
|
"github.com/hashicorp/packer/helper/communicator"
|
||||||
"github.com/hashicorp/packer/helper/multistep"
|
"github.com/hashicorp/packer/helper/multistep"
|
||||||
"github.com/hashicorp/packer/packer"
|
"github.com/hashicorp/packer/packer"
|
||||||
|
|
|
@ -64,6 +64,7 @@ type FlatConfig struct {
|
||||||
CdromType *string `mapstructure:"cdrom_type" cty:"cdrom_type" hcl:"cdrom_type"`
|
CdromType *string `mapstructure:"cdrom_type" cty:"cdrom_type" hcl:"cdrom_type"`
|
||||||
ISOPaths []string `mapstructure:"iso_paths" cty:"iso_paths" hcl:"iso_paths"`
|
ISOPaths []string `mapstructure:"iso_paths" cty:"iso_paths" hcl:"iso_paths"`
|
||||||
RemoveCdrom *bool `mapstructure:"remove_cdrom" cty:"remove_cdrom" hcl:"remove_cdrom"`
|
RemoveCdrom *bool `mapstructure:"remove_cdrom" cty:"remove_cdrom" hcl:"remove_cdrom"`
|
||||||
|
FloppyIMGPath *string `mapstructure:"floppy_img_path" cty:"floppy_img_path" hcl:"floppy_img_path"`
|
||||||
FloppyFiles []string `mapstructure:"floppy_files" cty:"floppy_files" hcl:"floppy_files"`
|
FloppyFiles []string `mapstructure:"floppy_files" cty:"floppy_files" hcl:"floppy_files"`
|
||||||
FloppyDirectories []string `mapstructure:"floppy_dirs" cty:"floppy_dirs" hcl:"floppy_dirs"`
|
FloppyDirectories []string `mapstructure:"floppy_dirs" cty:"floppy_dirs" hcl:"floppy_dirs"`
|
||||||
FloppyLabel *string `mapstructure:"floppy_label" cty:"floppy_label" hcl:"floppy_label"`
|
FloppyLabel *string `mapstructure:"floppy_label" cty:"floppy_label" hcl:"floppy_label"`
|
||||||
|
@ -200,6 +201,7 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec {
|
||||||
"cdrom_type": &hcldec.AttrSpec{Name: "cdrom_type", Type: cty.String, Required: false},
|
"cdrom_type": &hcldec.AttrSpec{Name: "cdrom_type", Type: cty.String, Required: false},
|
||||||
"iso_paths": &hcldec.AttrSpec{Name: "iso_paths", Type: cty.List(cty.String), Required: false},
|
"iso_paths": &hcldec.AttrSpec{Name: "iso_paths", Type: cty.List(cty.String), Required: false},
|
||||||
"remove_cdrom": &hcldec.AttrSpec{Name: "remove_cdrom", Type: cty.Bool, Required: false},
|
"remove_cdrom": &hcldec.AttrSpec{Name: "remove_cdrom", Type: cty.Bool, Required: false},
|
||||||
|
"floppy_img_path": &hcldec.AttrSpec{Name: "floppy_img_path", Type: cty.String, Required: false},
|
||||||
"floppy_files": &hcldec.AttrSpec{Name: "floppy_files", Type: cty.List(cty.String), Required: false},
|
"floppy_files": &hcldec.AttrSpec{Name: "floppy_files", Type: cty.List(cty.String), Required: false},
|
||||||
"floppy_dirs": &hcldec.AttrSpec{Name: "floppy_dirs", Type: cty.List(cty.String), Required: false},
|
"floppy_dirs": &hcldec.AttrSpec{Name: "floppy_dirs", Type: cty.List(cty.String), Required: false},
|
||||||
"floppy_label": &hcldec.AttrSpec{Name: "floppy_label", Type: cty.String, Required: false},
|
"floppy_label": &hcldec.AttrSpec{Name: "floppy_label", Type: cty.String, Required: false},
|
||||||
|
|
|
@ -69,6 +69,7 @@ type FlatConfig struct {
|
||||||
CdromType *string `mapstructure:"cdrom_type" cty:"cdrom_type" hcl:"cdrom_type"`
|
CdromType *string `mapstructure:"cdrom_type" cty:"cdrom_type" hcl:"cdrom_type"`
|
||||||
ISOPaths []string `mapstructure:"iso_paths" cty:"iso_paths" hcl:"iso_paths"`
|
ISOPaths []string `mapstructure:"iso_paths" cty:"iso_paths" hcl:"iso_paths"`
|
||||||
RemoveCdrom *bool `mapstructure:"remove_cdrom" cty:"remove_cdrom" hcl:"remove_cdrom"`
|
RemoveCdrom *bool `mapstructure:"remove_cdrom" cty:"remove_cdrom" hcl:"remove_cdrom"`
|
||||||
|
FloppyIMGPath *string `mapstructure:"floppy_img_path" cty:"floppy_img_path" hcl:"floppy_img_path"`
|
||||||
FloppyFiles []string `mapstructure:"floppy_files" cty:"floppy_files" hcl:"floppy_files"`
|
FloppyFiles []string `mapstructure:"floppy_files" cty:"floppy_files" hcl:"floppy_files"`
|
||||||
FloppyDirectories []string `mapstructure:"floppy_dirs" cty:"floppy_dirs" hcl:"floppy_dirs"`
|
FloppyDirectories []string `mapstructure:"floppy_dirs" cty:"floppy_dirs" hcl:"floppy_dirs"`
|
||||||
FloppyLabel *string `mapstructure:"floppy_label" cty:"floppy_label" hcl:"floppy_label"`
|
FloppyLabel *string `mapstructure:"floppy_label" cty:"floppy_label" hcl:"floppy_label"`
|
||||||
|
@ -209,6 +210,7 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec {
|
||||||
"cdrom_type": &hcldec.AttrSpec{Name: "cdrom_type", Type: cty.String, Required: false},
|
"cdrom_type": &hcldec.AttrSpec{Name: "cdrom_type", Type: cty.String, Required: false},
|
||||||
"iso_paths": &hcldec.AttrSpec{Name: "iso_paths", Type: cty.List(cty.String), Required: false},
|
"iso_paths": &hcldec.AttrSpec{Name: "iso_paths", Type: cty.List(cty.String), Required: false},
|
||||||
"remove_cdrom": &hcldec.AttrSpec{Name: "remove_cdrom", Type: cty.Bool, Required: false},
|
"remove_cdrom": &hcldec.AttrSpec{Name: "remove_cdrom", Type: cty.Bool, Required: false},
|
||||||
|
"floppy_img_path": &hcldec.AttrSpec{Name: "floppy_img_path", Type: cty.String, Required: false},
|
||||||
"floppy_files": &hcldec.AttrSpec{Name: "floppy_files", Type: cty.List(cty.String), Required: false},
|
"floppy_files": &hcldec.AttrSpec{Name: "floppy_files", Type: cty.List(cty.String), Required: false},
|
||||||
"floppy_dirs": &hcldec.AttrSpec{Name: "floppy_dirs", Type: cty.List(cty.String), Required: false},
|
"floppy_dirs": &hcldec.AttrSpec{Name: "floppy_dirs", Type: cty.List(cty.String), Required: false},
|
||||||
"floppy_label": &hcldec.AttrSpec{Name: "floppy_label", Type: cty.String, Required: false},
|
"floppy_label": &hcldec.AttrSpec{Name: "floppy_label", Type: cty.String, Required: false},
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
delicious chocolate cake
|
|
|
@ -14,6 +14,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/hashicorp/packer/common/commonsteps"
|
||||||
confighelper "github.com/hashicorp/packer/helper/config"
|
confighelper "github.com/hashicorp/packer/helper/config"
|
||||||
"github.com/hashicorp/packer/packer"
|
"github.com/hashicorp/packer/packer"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
|
@ -11,6 +11,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/hashicorp/packer/common/commonsteps"
|
||||||
"github.com/hashicorp/packer/packer"
|
"github.com/hashicorp/packer/packer"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,6 +7,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/hashicorp/packer/common/commonsteps"
|
||||||
"github.com/hashicorp/packer/packer"
|
"github.com/hashicorp/packer/packer"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/hashicorp/packer/common/commonsteps"
|
||||||
"github.com/hashicorp/packer/packer"
|
"github.com/hashicorp/packer/packer"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type AddNasVolumeAccessControlResponse struct {
|
type AddNasVolumeAccessControlResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type AddPortForwardingRulesResponse struct {
|
type AddPortForwardingRulesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type AssociatePublicIpWithServerInstanceResponse struct {
|
type AssociatePublicIpWithServerInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type AttachBlockStorageInstanceResponse struct {
|
type AttachBlockStorageInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type AttachNetworkInterfaceResponse struct {
|
type AttachNetworkInterfaceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type ChangeNasVolumeSizeResponse struct {
|
type ChangeNasVolumeSizeResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type ChangeServerInstanceSpecResponse struct {
|
type ChangeServerInstanceSpecResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateBlockStorageInstanceResponse struct {
|
type CreateBlockStorageInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateBlockStorageSnapshotInstanceResponse struct {
|
type CreateBlockStorageSnapshotInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateInstanceTagsResponse struct {
|
type CreateInstanceTagsResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateLoginKeyResponse struct {
|
type CreateLoginKeyResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateMemberServerImageResponse struct {
|
type CreateMemberServerImageResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateNasVolumeInstanceResponse struct {
|
type CreateNasVolumeInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateNetworkInterfaceResponse struct {
|
type CreateNetworkInterfaceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreatePublicIpInstanceResponse struct {
|
type CreatePublicIpInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type CreateServerInstancesResponse struct {
|
type CreateServerInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeleteBlockStorageInstancesResponse struct {
|
type DeleteBlockStorageInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeleteBlockStorageSnapshotInstancesResponse struct {
|
type DeleteBlockStorageSnapshotInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeleteInstanceTagsResponse struct {
|
type DeleteInstanceTagsResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeleteLoginKeyResponse struct {
|
type DeleteLoginKeyResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeleteMemberServerImagesResponse struct {
|
type DeleteMemberServerImagesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeleteNasVolumeInstanceResponse struct {
|
type DeleteNasVolumeInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeleteNetworkInterfaceResponse struct {
|
type DeleteNetworkInterfaceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DeletePublicIpInstancesResponse struct {
|
type DeletePublicIpInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DetachBlockStorageInstancesResponse struct {
|
type DetachBlockStorageInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DetachNetworkInterfaceResponse struct {
|
type DetachNetworkInterfaceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type DisassociatePublicIpFromServerInstanceResponse struct {
|
type DisassociatePublicIpFromServerInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetAccessControlGroupListResponse struct {
|
type GetAccessControlGroupListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetAccessControlGroupServerInstanceListResponse struct {
|
type GetAccessControlGroupServerInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetAccessControlRuleListResponse struct {
|
type GetAccessControlRuleListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetBlockStorageInstanceListResponse struct {
|
type GetBlockStorageInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetBlockStorageSnapshotInstanceListResponse struct {
|
type GetBlockStorageSnapshotInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetInstanceTagListResponse struct {
|
type GetInstanceTagListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetLoginKeyListResponse struct {
|
type GetLoginKeyListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetMemberServerImageListResponse struct {
|
type GetMemberServerImageListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetNasVolumeInstanceListResponse struct {
|
type GetNasVolumeInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetNasVolumeInstanceRatingListResponse struct {
|
type GetNasVolumeInstanceRatingListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetNetworkInterfaceListResponse struct {
|
type GetNetworkInterfaceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetPrivateSubnetInstanceListResponse struct {
|
type GetPrivateSubnetInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetPublicIpInstanceListResponse struct {
|
type GetPublicIpInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetPublicIpTargetServerInstanceListResponse struct {
|
type GetPublicIpTargetServerInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetRaidListResponse struct {
|
type GetRaidListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetRegionListResponse struct {
|
type GetRegionListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetRootPasswordResponse struct {
|
type GetRootPasswordResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetServerImageProductListResponse struct {
|
type GetServerImageProductListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetServerInstanceListResponse struct {
|
type GetServerInstanceListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetServerProductListResponse struct {
|
type GetServerProductListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type GetZoneListResponse struct {
|
type GetZoneListResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type ImportLoginKeyResponse struct {
|
type ImportLoginKeyResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type RebootServerInstancesResponse struct {
|
type RebootServerInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type RecreateServerInstanceResponse struct {
|
type RecreateServerInstanceResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
1
vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/region.go
generated
vendored
1
vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/region.go
generated
vendored
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type Region struct {
|
type Region struct {
|
||||||
|
|
||||||
RegionNo *string `json:"regionNo,omitempty"`
|
RegionNo *string `json:"regionNo,omitempty"`
|
||||||
|
|
||||||
RegionCode *string `json:"regionCode,omitempty"`
|
RegionCode *string `json:"regionCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type RemoveNasVolumeAccessControlResponse struct {
|
type RemoveNasVolumeAccessControlResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type SetNasVolumeAccessControlResponse struct {
|
type SetNasVolumeAccessControlResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type StartServerInstancesResponse struct {
|
type StartServerInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type StopServerInstancesResponse struct {
|
type StopServerInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
type TerminateServerInstancesResponse struct {
|
type TerminateServerInstancesResponse struct {
|
||||||
|
|
||||||
RequestId *string `json:"requestId,omitempty"`
|
RequestId *string `json:"requestId,omitempty"`
|
||||||
|
|
||||||
ReturnCode *string `json:"returnCode,omitempty"`
|
ReturnCode *string `json:"returnCode,omitempty"`
|
||||||
|
|
410
vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/v2_api.go
generated
vendored
410
vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/v2_api.go
generated
vendored
File diff suppressed because it is too large
Load Diff
2
vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go
generated
vendored
2
vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go
generated
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
package endpoints
|
package endpoints
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1655,7 +1656,6 @@ const endpointsJson = `{
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}`
|
}`
|
||||||
|
|
||||||
var initOnce sync.Once
|
var initOnce sync.Once
|
||||||
var data interface{}
|
var data interface{}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,6 @@ var debug utils.Debug
|
||||||
func init() {
|
func init() {
|
||||||
debug = utils.Init("sdk")
|
debug = utils.Init("sdk")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unmarshal object from http response body to target Response
|
// Unmarshal object from http response body to target Response
|
||||||
func Unmarshal(response AcsResponse, httpResponse *http.Response, format string) (err error) {
|
func Unmarshal(response AcsResponse, httpResponse *http.Response, format string) (err error) {
|
||||||
err = response.parseFromHttpResponse(httpResponse)
|
err = response.parseFromHttpResponse(httpResponse)
|
||||||
|
|
|
@ -867,6 +867,7 @@ const (
|
||||||
// ProcDomainSetIothreadParams is libvirt's REMOTE_PROC_DOMAIN_SET_IOTHREAD_PARAMS
|
// ProcDomainSetIothreadParams is libvirt's REMOTE_PROC_DOMAIN_SET_IOTHREAD_PARAMS
|
||||||
ProcDomainSetIothreadParams = 402
|
ProcDomainSetIothreadParams = 402
|
||||||
|
|
||||||
|
|
||||||
// From consts:
|
// From consts:
|
||||||
// StringMax is libvirt's REMOTE_STRING_MAX
|
// StringMax is libvirt's REMOTE_STRING_MAX
|
||||||
StringMax = 4194304
|
StringMax = 4194304
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -10,17 +10,14 @@ type (
|
||||||
prev *node
|
prev *node
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
// Create a new stack
|
// Create a new stack
|
||||||
func New() *Stack {
|
func New() *Stack {
|
||||||
return &Stack{nil,0}
|
return &Stack{nil,0}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the number of items in the stack
|
// Return the number of items in the stack
|
||||||
func (this *Stack) Len() int {
|
func (this *Stack) Len() int {
|
||||||
return this.length
|
return this.length
|
||||||
}
|
}
|
||||||
|
|
||||||
// View the top item on the stack
|
// View the top item on the stack
|
||||||
func (this *Stack) Peek() interface{} {
|
func (this *Stack) Peek() interface{} {
|
||||||
if this.length == 0 {
|
if this.length == 0 {
|
||||||
|
@ -28,7 +25,6 @@ func (this *Stack) Peek() interface{} {
|
||||||
}
|
}
|
||||||
return this.top.value
|
return this.top.value
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pop the top item of the stack and return it
|
// Pop the top item of the stack and return it
|
||||||
func (this *Stack) Pop() interface{} {
|
func (this *Stack) Pop() interface{} {
|
||||||
if this.length == 0 {
|
if this.length == 0 {
|
||||||
|
@ -40,7 +36,6 @@ func (this *Stack) Pop() interface{} {
|
||||||
this.length--
|
this.length--
|
||||||
return n.value
|
return n.value
|
||||||
}
|
}
|
||||||
|
|
||||||
// Push a value onto the top of the stack
|
// Push a value onto the top of the stack
|
||||||
func (this *Stack) Push(value interface{}) {
|
func (this *Stack) Push(value interface{}) {
|
||||||
n := &node{value,this.top}
|
n := &node{value,this.top}
|
||||||
|
|
|
@ -1214,7 +1214,7 @@ func parseDefaultIfNameFromIPCmd(routeOut string) (string, error) {
|
||||||
// Android.
|
// Android.
|
||||||
func parseDefaultIfNameFromIPCmdAndroid(routeOut string) (string, error) {
|
func parseDefaultIfNameFromIPCmdAndroid(routeOut string) (string, error) {
|
||||||
parsedLines := parseIfNameFromIPCmd(routeOut)
|
parsedLines := parseIfNameFromIPCmd(routeOut)
|
||||||
if len(parsedLines) > 0 {
|
if (len(parsedLines) > 0) {
|
||||||
ifName := strings.TrimSpace(parsedLines[0][4])
|
ifName := strings.TrimSpace(parsedLines[0][4])
|
||||||
return ifName, nil
|
return ifName, nil
|
||||||
}
|
}
|
||||||
|
@ -1222,6 +1222,7 @@ func parseDefaultIfNameFromIPCmdAndroid(routeOut string) (string, error) {
|
||||||
return "", errors.New("No default interface found")
|
return "", errors.New("No default interface found")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// parseIfNameFromIPCmd parses interfaces from ip(8) for
|
// parseIfNameFromIPCmd parses interfaces from ip(8) for
|
||||||
// Linux.
|
// Linux.
|
||||||
func parseIfNameFromIPCmd(routeOut string) [][]string {
|
func parseIfNameFromIPCmd(routeOut string) [][]string {
|
||||||
|
|
|
@ -25,6 +25,7 @@ func (ri routeInfo) GetDefaultInterfaceName() (string, error) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var ifName string
|
var ifName string
|
||||||
if ifName, err = parseDefaultIfNameFromIPCmdAndroid(string(out)); err != nil {
|
if ifName, err = parseDefaultIfNameFromIPCmdAndroid(string(out)); err != nil {
|
||||||
return "", errors.New("No default interface found")
|
return "", errors.New("No default interface found")
|
||||||
|
|
|
@ -24,6 +24,7 @@ func GenerateRandomBytesWithReader(size int, reader io.Reader) ([]byte, error) {
|
||||||
return buf, nil
|
return buf, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const uuidLen = 16
|
const uuidLen = 16
|
||||||
|
|
||||||
// GenerateUUID is used to generate a random UUID
|
// GenerateUUID is used to generate a random UUID
|
||||||
|
|
|
@ -29,3 +29,4 @@ const (
|
||||||
HeaderJdcloudPrefix = "x-jdcloud"
|
HeaderJdcloudPrefix = "x-jdcloud"
|
||||||
HeaderJdcloudRequestId = "x-jdcloud-request-id"
|
HeaderJdcloudRequestId = "x-jdcloud-request-id"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"fmt"
|
||||||
|
"encoding/json"
|
||||||
|
"encoding/base64"
|
||||||
)
|
)
|
||||||
|
|
||||||
// JDCloudClient is the base struct of service clients
|
// JDCloudClient is the base struct of service clients
|
||||||
|
|
|
@ -40,3 +40,4 @@ func (logger DefaultLogger) Log(level int, message ...interface{}) {
|
||||||
fmt.Println(message...)
|
fmt.Println(message...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,12 @@ package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
urllib "net/url"
|
|
||||||
"reflect"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
"errors"
|
||||||
|
"reflect"
|
||||||
|
urllib "net/url"
|
||||||
)
|
)
|
||||||
|
|
||||||
var baseRequestFields []string
|
var baseRequestFields []string
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"net/http"
|
||||||
|
"io/ioutil"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type ResponseProcessor interface {
|
type ResponseProcessor interface {
|
||||||
|
|
|
@ -17,18 +17,18 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"crypto/hmac"
|
"crypto/hmac"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gofrs/uuid"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"bytes"
|
||||||
|
"github.com/gofrs/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -56,6 +56,7 @@ func init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type Signer struct {
|
type Signer struct {
|
||||||
Credentials Credential
|
Credentials Credential
|
||||||
Logger Logger
|
Logger Logger
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package models
|
package models
|
||||||
|
|
||||||
|
|
||||||
type Charge struct {
|
type Charge struct {
|
||||||
|
|
||||||
/* 支付模式,取值为:prepaid_by_duration,postpaid_by_usage或postpaid_by_duration,prepaid_by_duration表示预付费,postpaid_by_usage表示按用量后付费,postpaid_by_duration表示按配置后付费,默认为postpaid_by_duration (Optional) */
|
/* 支付模式,取值为:prepaid_by_duration,postpaid_by_usage或postpaid_by_duration,prepaid_by_duration表示预付费,postpaid_by_usage表示按用量后付费,postpaid_by_duration表示按配置后付费,默认为postpaid_by_duration (Optional) */
|
||||||
|
|
1
vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models/ChargeSpec.go
generated
vendored
1
vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models/ChargeSpec.go
generated
vendored
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package models
|
package models
|
||||||
|
|
||||||
|
|
||||||
type ChargeSpec struct {
|
type ChargeSpec struct {
|
||||||
|
|
||||||
/* 计费模式,取值为:prepaid_by_duration,postpaid_by_usage或postpaid_by_duration,prepaid_by_duration表示预付费,postpaid_by_usage表示按用量后付费,postpaid_by_duration表示按配置后付费,默认为postpaid_by_duration (Optional) */
|
/* 计费模式,取值为:prepaid_by_duration,postpaid_by_usage或postpaid_by_duration,prepaid_by_duration表示预付费,postpaid_by_usage表示按用量后付费,postpaid_by_duration表示按配置后付费,默认为postpaid_by_duration (Optional) */
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package models
|
package models
|
||||||
|
|
||||||
|
|
||||||
type Filter struct {
|
type Filter struct {
|
||||||
|
|
||||||
/* 过滤条件的名称 */
|
/* 过滤条件的名称 */
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue