cvm

package
v0.0.0-...-8e95ba3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cvm provides the client and types for making API requests to Cloud Virtual Machine.

欢迎使用云服务器(Cloud Virtual Machine)

腾讯云服务器(Cloud Virtual Machine,以下又称CVM)运行在腾讯数据中心,它提供了可以弹性伸缩的计算服务,可以根据业务需要来构建和托管软件系统。

云服务器向用户提供弹性的计算、存储和网络资源。用户可以使用本文档介绍的 API,并参照相应的示例,对云服务器进行相关操作:如创建、销毁、更改带宽、重启等;支持的全部操作可参见API概览页 (https://cloud.tencent.com/document/api/213/569)。

See cvm package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/cvm/

Using the Client

To contact Cloud Virtual Machine with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See sdf.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Cloud Virtual Machine client CVM for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/cvm/#New

Index

Examples

Constants

View Source
const (
	ServiceName = "cvm"       // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type CVM

type CVM struct {
	*client.Client
}

CVM provides the API operation methods for making requests to Cloud Virtual Machine. See this package's package overview docs for details on the service.

CVM methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*sdf.Config) *CVM

New creates a new instance of the CVM client with a session. If additional configuration is needed for the client instance use the optional sdf.Config parameter to add your extra config.

Example:

// Create a CVM client from just a session.
svc := cvm.New(mySession)

// Create a CVM client with additional configuration
svc := cvm.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*CVM) DescribeImages

func (c *CVM) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error)

DescribeImages API operation for Cloud Virtual Machine.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation DescribeImages for usage and error information.

func (*CVM) DescribeImagesRequest

func (c *CVM) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput)

DescribeImagesRequest generates a "aws/request.Request" representing the client's request for the DescribeImages operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeImages for more information on using the DescribeImages API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeImagesRequest method.
req, resp := client.DescribeImagesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) DescribeImagesWithContext

func (c *CVM) DescribeImagesWithContext(ctx sdf.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error)

DescribeImagesWithContext is the same as DescribeImages with the addition of the ability to pass a context and additional request options.

See DescribeImages for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) DescribeInstances

func (c *CVM) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error)

DescribeInstances API operation for Cloud Virtual Machine.

本接口 (DescribeInstances) 用于查询一个或多个实例的详细信息。

接口请求域名:cvm.api.qcloud.com

  • 可以根据实例ID、实例名称或者实例计费模式等信息来查询实例的详细信息。过滤信息详细请见过滤器Filter。
  • 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation DescribeInstances for usage and error information.

Example (Shared00)

To describe instances

This example DescribeInstances.

// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.

package main

import (
	"fmt"
	"strings"
	"time"

	"github.com/polefishu/sdk-builder/sdf"
	"github.com/polefishu/sdk-builder/sdf/sdferr"
	"github.com/polefishu/sdk-builder/sdf/session"
	"github.com/polefishu/sdk-builder/service/tencentcloud/cvm"
)

var _ time.Duration
var _ strings.Reader
var _ sdf.Config

func parseTime(layout, value string) *time.Time {
	t, err := time.Parse(layout, value)
	if err != nil {
		panic(err)
	}
	return &t
}

// To describe instances
//
// This example DescribeInstances.
func main() {
	svc := cvm.New(session.New())
	input := &cvm.DescribeInstancesInput{}

	result, err := svc.DescribeInstances(input)
	if err != nil {
		if serr, ok := err.(sdferr.Error); ok {
			switch serr.Code() {
			default:
				fmt.Println(serr.Error())
			}
		} else {
			// Print the error, cast err to sdferr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*CVM) DescribeInstancesPages

func (c *CVM) DescribeInstancesPages(input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool) error

DescribeInstancesPages iterates over the pages of a DescribeInstances operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeInstances method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeInstances operation.
pageNum := 0
err := client.DescribeInstancesPages(params,
    func(page *DescribeInstancesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CVM) DescribeInstancesPagesWithContext

func (c *CVM) DescribeInstancesPagesWithContext(ctx sdf.Context, input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool, opts ...request.Option) error

DescribeInstancesPagesWithContext same as DescribeInstancesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) DescribeInstancesRequest

func (c *CVM) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput)

DescribeInstancesRequest generates a "aws/request.Request" representing the client's request for the DescribeInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeInstances for more information on using the DescribeInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeInstancesRequest method.
req, resp := client.DescribeInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) DescribeInstancesStatus

func (c *CVM) DescribeInstancesStatus(input *DescribeInstancesStatusInput) (*DescribeInstancesStatusOutput, error)

DescribeInstancesStatus API operation for Cloud Virtual Machine.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation DescribeInstancesStatus for usage and error information.

func (*CVM) DescribeInstancesStatusRequest

func (c *CVM) DescribeInstancesStatusRequest(input *DescribeInstancesStatusInput) (req *request.Request, output *DescribeInstancesStatusOutput)

DescribeInstancesStatusRequest generates a "aws/request.Request" representing the client's request for the DescribeInstancesStatus operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeInstancesStatus for more information on using the DescribeInstancesStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeInstancesStatusRequest method.
req, resp := client.DescribeInstancesStatusRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) DescribeInstancesStatusWithContext

func (c *CVM) DescribeInstancesStatusWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.Option) (*DescribeInstancesStatusOutput, error)

DescribeInstancesStatusWithContext is the same as DescribeInstancesStatus with the addition of the ability to pass a context and additional request options.

See DescribeInstancesStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) DescribeInstancesWithContext

func (c *CVM) DescribeInstancesWithContext(ctx sdf.Context, input *DescribeInstancesInput, opts ...request.Option) (*DescribeInstancesOutput, error)

DescribeInstancesWithContext is the same as DescribeInstances with the addition of the ability to pass a context and additional request options.

See DescribeInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) RebootInstances

func (c *CVM) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error)

RebootInstances API operation for Cloud Virtual Machine.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation RebootInstances for usage and error information.

func (*CVM) RebootInstancesRequest

func (c *CVM) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput)

RebootInstancesRequest generates a "aws/request.Request" representing the client's request for the RebootInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RebootInstances for more information on using the RebootInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RebootInstancesRequest method.
req, resp := client.RebootInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) RebootInstancesWithContext

func (c *CVM) RebootInstancesWithContext(ctx sdf.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error)

RebootInstancesWithContext is the same as RebootInstances with the addition of the ability to pass a context and additional request options.

See RebootInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) RunInstances

func (c *CVM) RunInstances(input *RunInstancesInput) (*RunInstancesOutput, error)

RunInstances API operation for Cloud Virtual Machine.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation RunInstances for usage and error information.

func (*CVM) RunInstancesRequest

func (c *CVM) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *RunInstancesOutput)

RunInstancesRequest generates a "aws/request.Request" representing the client's request for the RunInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RunInstances for more information on using the RunInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RunInstancesRequest method.
req, resp := client.RunInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) RunInstancesWithContext

func (c *CVM) RunInstancesWithContext(ctx sdf.Context, input *RunInstancesInput, opts ...request.Option) (*RunInstancesOutput, error)

RunInstancesWithContext is the same as RunInstances with the addition of the ability to pass a context and additional request options.

See RunInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) StartInstances

func (c *CVM) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error)

StartInstances API operation for Cloud Virtual Machine.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation StartInstances for usage and error information.

func (*CVM) StartInstancesRequest

func (c *CVM) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput)

StartInstancesRequest generates a "aws/request.Request" representing the client's request for the StartInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartInstances for more information on using the StartInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartInstancesRequest method.
req, resp := client.StartInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) StartInstancesWithContext

func (c *CVM) StartInstancesWithContext(ctx sdf.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error)

StartInstancesWithContext is the same as StartInstances with the addition of the ability to pass a context and additional request options.

See StartInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) StopInstances

func (c *CVM) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error)

StopInstances API operation for Cloud Virtual Machine.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation StopInstances for usage and error information.

func (*CVM) StopInstancesRequest

func (c *CVM) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput)

StopInstancesRequest generates a "aws/request.Request" representing the client's request for the StopInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopInstances for more information on using the StopInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopInstancesRequest method.
req, resp := client.StopInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) StopInstancesWithContext

func (c *CVM) StopInstancesWithContext(ctx sdf.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error)

StopInstancesWithContext is the same as StopInstances with the addition of the ability to pass a context and additional request options.

See StopInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) TerminateInstances

func (c *CVM) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error)

TerminateInstances API operation for Cloud Virtual Machine.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cloud Virtual Machine's API operation TerminateInstances for usage and error information.

func (*CVM) TerminateInstancesRequest

func (c *CVM) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput)

TerminateInstancesRequest generates a "aws/request.Request" representing the client's request for the TerminateInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TerminateInstances for more information on using the TerminateInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TerminateInstancesRequest method.
req, resp := client.TerminateInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CVM) TerminateInstancesWithContext

func (c *CVM) TerminateInstancesWithContext(ctx sdf.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error)

TerminateInstancesWithContext is the same as TerminateInstances with the addition of the ability to pass a context and additional request options.

See TerminateInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) WaitUntilInstanceRestart

func (c *CVM) WaitUntilInstanceRestart(input *DescribeInstancesStatusInput) error

WaitUntilInstanceRestart uses the CVM API operation DescribeInstancesStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*CVM) WaitUntilInstanceRestartWithContext

func (c *CVM) WaitUntilInstanceRestartWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.WaiterOption) error

WaitUntilInstanceRestartWithContext is an extended version of WaitUntilInstanceRestart. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) WaitUntilInstanceRunning

func (c *CVM) WaitUntilInstanceRunning(input *DescribeInstancesStatusInput) error

WaitUntilInstanceRunning uses the CVM API operation DescribeInstancesStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*CVM) WaitUntilInstanceRunningWithContext

func (c *CVM) WaitUntilInstanceRunningWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.WaiterOption) error

WaitUntilInstanceRunningWithContext is an extended version of WaitUntilInstanceRunning. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CVM) WaitUntilInstanceStopped

func (c *CVM) WaitUntilInstanceStopped(input *DescribeInstancesStatusInput) error

WaitUntilInstanceStopped uses the CVM API operation DescribeInstancesStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*CVM) WaitUntilInstanceStoppedWithContext

func (c *CVM) WaitUntilInstanceStoppedWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.WaiterOption) error

WaitUntilInstanceStoppedWithContext is an extended version of WaitUntilInstanceStopped. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type DataDisk

type DataDisk struct {
	DiskId *string `locationName:"DiskId" type:"string"`

	DiskSize *int64 `locationName:"DiskId" type:"integer"`

	DiskType *string `locationName:"DiskType" type:"string"`
	// contains filtered or unexported fields
}

func (DataDisk) GoString

func (s DataDisk) GoString() string

GoString returns the string representation

func (*DataDisk) SetDiskId

func (s *DataDisk) SetDiskId(v string) *DataDisk

SetDiskId sets the DiskId field's value.

func (*DataDisk) SetDiskSize

func (s *DataDisk) SetDiskSize(v int64) *DataDisk

SetDiskSize sets the DiskSize field's value.

func (*DataDisk) SetDiskType

func (s *DataDisk) SetDiskType(v string) *DataDisk

SetDiskType sets the DiskType field's value.

func (DataDisk) String

func (s DataDisk) String() string

String returns the string representation

type DescribeImagesInput

type DescribeImagesInput struct {
	Filters []*Filter `locationName:"Filters" locationNameList:"Filter" type:"list" flattened:"true"`

	ImageIds []*string `locationName:"ImageIds" type:"list"`

	InstanceType *string `type:"string"`

	Limit *int64 `type:"integer"`

	Offset *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (DescribeImagesInput) GoString

func (s DescribeImagesInput) GoString() string

GoString returns the string representation

func (*DescribeImagesInput) SetFilters

func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput

SetFilters sets the Filters field's value.

func (*DescribeImagesInput) SetImageIds

func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput

SetImageIds sets the ImageIds field's value.

func (*DescribeImagesInput) SetInstanceType

func (s *DescribeImagesInput) SetInstanceType(v string) *DescribeImagesInput

SetInstanceType sets the InstanceType field's value.

func (*DescribeImagesInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeImagesInput) SetOffset

SetOffset sets the Offset field's value.

func (DescribeImagesInput) String

func (s DescribeImagesInput) String() string

String returns the string representation

type DescribeImagesOutput

type DescribeImagesOutput struct {
	Response *ImageResponse `type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeImagesOutput) GoString

func (s DescribeImagesOutput) GoString() string

GoString returns the string representation

func (*DescribeImagesOutput) SetResponse

SetResponse sets the Response field's value.

func (DescribeImagesOutput) String

func (s DescribeImagesOutput) String() string

String returns the string representation

type DescribeInstancesInput

type DescribeInstancesInput struct {
	Filters []*Filter `locationName:"Filters" locationNameList:"Filter" type:"list" flattened:"true"`

	InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"`

	// test
	Limit *int64 `type:"integer"`

	// test
	Offset *int64 `type:"integer"`
	// contains filtered or unexported fields
}

test

func (DescribeInstancesInput) GoString

func (s DescribeInstancesInput) GoString() string

GoString returns the string representation

func (*DescribeInstancesInput) SetFilters

SetFilters sets the Filters field's value.

func (*DescribeInstancesInput) SetInstanceIds

func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput

SetInstanceIds sets the InstanceIds field's value.

func (*DescribeInstancesInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeInstancesInput) SetOffset

SetOffset sets the Offset field's value.

func (DescribeInstancesInput) String

func (s DescribeInstancesInput) String() string

String returns the string representation

type DescribeInstancesOutput

type DescribeInstancesOutput struct {

	// test
	Response *Response `type:"structure"`
	// contains filtered or unexported fields
}

test

func (DescribeInstancesOutput) GoString

func (s DescribeInstancesOutput) GoString() string

GoString returns the string representation

func (*DescribeInstancesOutput) SetResponse

SetResponse sets the Response field's value.

func (DescribeInstancesOutput) String

func (s DescribeInstancesOutput) String() string

String returns the string representation

type DescribeInstancesStatusInput

type DescribeInstancesStatusInput struct {
	InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"`

	Limit *int64 `type:"integer"`

	Offset *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (DescribeInstancesStatusInput) GoString

func (s DescribeInstancesStatusInput) GoString() string

GoString returns the string representation

func (*DescribeInstancesStatusInput) SetInstanceIds

SetInstanceIds sets the InstanceIds field's value.

func (*DescribeInstancesStatusInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeInstancesStatusInput) SetOffset

SetOffset sets the Offset field's value.

func (DescribeInstancesStatusInput) String

String returns the string representation

type DescribeInstancesStatusOutput

type DescribeInstancesStatusOutput struct {
	Response *StatusResponse `type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeInstancesStatusOutput) GoString

GoString returns the string representation

func (*DescribeInstancesStatusOutput) SetResponse

SetResponse sets the Response field's value.

func (DescribeInstancesStatusOutput) String

String returns the string representation

type EnhancedService

type EnhancedService struct {
	MonitorService *RunMonitorServiceEnabled `locationName:"SecurityService" type:"structure"`

	SecurityService *RunSecurityServiceEnabled `locationName:"SecurityService" type:"structure"`
	// contains filtered or unexported fields
}

func (EnhancedService) GoString

func (s EnhancedService) GoString() string

GoString returns the string representation

func (*EnhancedService) SetMonitorService

func (s *EnhancedService) SetMonitorService(v *RunMonitorServiceEnabled) *EnhancedService

SetMonitorService sets the MonitorService field's value.

func (*EnhancedService) SetSecurityService

func (s *EnhancedService) SetSecurityService(v *RunSecurityServiceEnabled) *EnhancedService

SetSecurityService sets the SecurityService field's value.

func (EnhancedService) String

func (s EnhancedService) String() string

String returns the string representation

type Filter

type Filter struct {
	Name *string `type:"string"`

	Values []*string `type:"list" flattened:"true"`
	// contains filtered or unexported fields
}

func (Filter) GoString

func (s Filter) GoString() string

GoString returns the string representation

func (*Filter) SetName

func (s *Filter) SetName(v string) *Filter

SetName sets the Name field's value.

func (*Filter) SetValues

func (s *Filter) SetValues(v []*string) *Filter

SetValues sets the Values field's value.

func (Filter) String

func (s Filter) String() string

String returns the string representation

type Image

type Image struct {
	Architecture *string `locationName:"Architecture" type:"string"`

	CreatedTime *string `locationName:"CreatedTime" type:"string"`

	ImageCreator *string `locationName:"ImageCreator" type:"string"`

	ImageDescription *string `locationName:"ImageDescription" type:"string"`

	ImageID *string `locationName:"ImageId" type:"string"`

	ImageName *string `locationName:"ImageName" type:"string"`

	ImageSize *string `locationName:"Integer" type:"string"`

	ImageSource *string `locationName:"ImageSource" type:"string"`

	ImageState *string `locationName:"ImageState" type:"string"`

	ImageType *string `locationName:"ImageType" type:"string"`

	OsName *string `locationName:"OsName" type:"string"`

	Platform *string `locationName:"Platform" type:"string"`
	// contains filtered or unexported fields
}

func (Image) GoString

func (s Image) GoString() string

GoString returns the string representation

func (*Image) SetArchitecture

func (s *Image) SetArchitecture(v string) *Image

SetArchitecture sets the Architecture field's value.

func (*Image) SetCreatedTime

func (s *Image) SetCreatedTime(v string) *Image

SetCreatedTime sets the CreatedTime field's value.

func (*Image) SetImageCreator

func (s *Image) SetImageCreator(v string) *Image

SetImageCreator sets the ImageCreator field's value.

func (*Image) SetImageDescription

func (s *Image) SetImageDescription(v string) *Image

SetImageDescription sets the ImageDescription field's value.

func (*Image) SetImageID

func (s *Image) SetImageID(v string) *Image

SetImageID sets the ImageID field's value.

func (*Image) SetImageName

func (s *Image) SetImageName(v string) *Image

SetImageName sets the ImageName field's value.

func (*Image) SetImageSize

func (s *Image) SetImageSize(v string) *Image

SetImageSize sets the ImageSize field's value.

func (*Image) SetImageSource

func (s *Image) SetImageSource(v string) *Image

SetImageSource sets the ImageSource field's value.

func (*Image) SetImageState

func (s *Image) SetImageState(v string) *Image

SetImageState sets the ImageState field's value.

func (*Image) SetImageType

func (s *Image) SetImageType(v string) *Image

SetImageType sets the ImageType field's value.

func (*Image) SetOsName

func (s *Image) SetOsName(v string) *Image

SetOsName sets the OsName field's value.

func (*Image) SetPlatform

func (s *Image) SetPlatform(v string) *Image

SetPlatform sets the Platform field's value.

func (Image) String

func (s Image) String() string

String returns the string representation

type ImageResponse

type ImageResponse struct {
	ImageSet []*Image `locationName:"ImageSet" type:"list"`

	RequestID *string `locationName:"RequestId" type:"string"`

	TotalCount *int64 `locationName:"TotalCount" type:"integer"`
	// contains filtered or unexported fields
}

func (ImageResponse) GoString

func (s ImageResponse) GoString() string

GoString returns the string representation

func (*ImageResponse) SetImageSet

func (s *ImageResponse) SetImageSet(v []*Image) *ImageResponse

SetImageSet sets the ImageSet field's value.

func (*ImageResponse) SetRequestID

func (s *ImageResponse) SetRequestID(v string) *ImageResponse

SetRequestID sets the RequestID field's value.

func (*ImageResponse) SetTotalCount

func (s *ImageResponse) SetTotalCount(v int64) *ImageResponse

SetTotalCount sets the TotalCount field's value.

func (ImageResponse) String

func (s ImageResponse) String() string

String returns the string representation

type Instance

type Instance struct {

	// test
	CPU *int64 `locationName:"CPU" type:"integer"`

	CreatedTime *string `locationName:"CreatedTime" type:"string"`

	DataDisks []*DataDisk `type:"list"`

	ExpiredTime *string `locationName:"ExpiredTime" type:"string"`

	ImageID *string `locationName:"ImageId" type:"string"`

	InstanceChargeType *string `locationName:"InstanceChargeType" type:"string"`

	InstanceID *string `locationName:"InstanceId" type:"string"`

	InstanceName *string `locationName:"InstanceName" type:"string"`

	InstanceState *string `locationName:"InstanceState" type:"string"`

	// test
	InstanceType *string `locationName:"InstanceType" type:"string"`

	InternetAccessible *InternetAccessible `type:"structure"`

	LoginSettings *LoginSettings `type:"structure"`

	// test
	Memory *int64 `locationName:"Memory" type:"integer"`

	OsName *string `locationName:"OsName" type:"string"`

	Placement *Placement `type:"structure"`

	// test
	PrivateIpAddresses []*string `locationName:"PrivateIpAddresses" type:"list"`

	// test
	PublicIpAddresses []*string `locationName:"PublicIpAddresses" type:"list"`

	RenewFlag *string `locationName:"RenewFlag" type:"string"`

	RestrictState *string `locationName:"RestrictState" type:"string"`

	SecurityGroupIds []*string `locationName:"SecurityGroupIds" type:"list"`

	SystemDisk *SystemDisk `type:"structure"`

	VirtualPrivateCloud *VirtualPrivateCloud `type:"structure" flattened:"true"`
	// contains filtered or unexported fields
}

item

func (Instance) GoString

func (s Instance) GoString() string

GoString returns the string representation

func (*Instance) SetCPU

func (s *Instance) SetCPU(v int64) *Instance

SetCPU sets the CPU field's value.

func (*Instance) SetCreatedTime

func (s *Instance) SetCreatedTime(v string) *Instance

SetCreatedTime sets the CreatedTime field's value.

func (*Instance) SetDataDisks

func (s *Instance) SetDataDisks(v []*DataDisk) *Instance

SetDataDisks sets the DataDisks field's value.

func (*Instance) SetExpiredTime

func (s *Instance) SetExpiredTime(v string) *Instance

SetExpiredTime sets the ExpiredTime field's value.

func (*Instance) SetImageID

func (s *Instance) SetImageID(v string) *Instance

SetImageID sets the ImageID field's value.

func (*Instance) SetInstanceChargeType

func (s *Instance) SetInstanceChargeType(v string) *Instance

SetInstanceChargeType sets the InstanceChargeType field's value.

func (*Instance) SetInstanceID

func (s *Instance) SetInstanceID(v string) *Instance

SetInstanceID sets the InstanceID field's value.

func (*Instance) SetInstanceName

func (s *Instance) SetInstanceName(v string) *Instance

SetInstanceName sets the InstanceName field's value.

func (*Instance) SetInstanceState

func (s *Instance) SetInstanceState(v string) *Instance

SetInstanceState sets the InstanceState field's value.

func (*Instance) SetInstanceType

func (s *Instance) SetInstanceType(v string) *Instance

SetInstanceType sets the InstanceType field's value.

func (*Instance) SetInternetAccessible

func (s *Instance) SetInternetAccessible(v *InternetAccessible) *Instance

SetInternetAccessible sets the InternetAccessible field's value.

func (*Instance) SetLoginSettings

func (s *Instance) SetLoginSettings(v *LoginSettings) *Instance

SetLoginSettings sets the LoginSettings field's value.

func (*Instance) SetMemory

func (s *Instance) SetMemory(v int64) *Instance

SetMemory sets the Memory field's value.

func (*Instance) SetOsName

func (s *Instance) SetOsName(v string) *Instance

SetOsName sets the OsName field's value.

func (*Instance) SetPlacement

func (s *Instance) SetPlacement(v *Placement) *Instance

SetPlacement sets the Placement field's value.

func (*Instance) SetPrivateIpAddresses

func (s *Instance) SetPrivateIpAddresses(v []*string) *Instance

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

func (*Instance) SetPublicIpAddresses

func (s *Instance) SetPublicIpAddresses(v []*string) *Instance

SetPublicIpAddresses sets the PublicIpAddresses field's value.

func (*Instance) SetRenewFlag

func (s *Instance) SetRenewFlag(v string) *Instance

SetRenewFlag sets the RenewFlag field's value.

func (*Instance) SetRestrictState

func (s *Instance) SetRestrictState(v string) *Instance

SetRestrictState sets the RestrictState field's value.

func (*Instance) SetSecurityGroupIds

func (s *Instance) SetSecurityGroupIds(v []*string) *Instance

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (*Instance) SetSystemDisk

func (s *Instance) SetSystemDisk(v *SystemDisk) *Instance

SetSystemDisk sets the SystemDisk field's value.

func (*Instance) SetVirtualPrivateCloud

func (s *Instance) SetVirtualPrivateCloud(v *VirtualPrivateCloud) *Instance

SetVirtualPrivateCloud sets the VirtualPrivateCloud field's value.

func (Instance) String

func (s Instance) String() string

String returns the string representation

type InstanceChargePrepaid

type InstanceChargePrepaid struct {
	Period *int64 `locationName:"Period" type:"integer"`

	RenewFlag *string `locationName:"RenewFlag" type:"string"`
	// contains filtered or unexported fields
}

func (InstanceChargePrepaid) GoString

func (s InstanceChargePrepaid) GoString() string

GoString returns the string representation

func (*InstanceChargePrepaid) SetPeriod

SetPeriod sets the Period field's value.

func (*InstanceChargePrepaid) SetRenewFlag

SetRenewFlag sets the RenewFlag field's value.

func (InstanceChargePrepaid) String

func (s InstanceChargePrepaid) String() string

String returns the string representation

type InstanceStatus

type InstanceStatus struct {
	InstanceID *string `locationName:"InstanceId" type:"string"`

	InstanceState *string `locationName:"InstanceState" type:"string"`
	// contains filtered or unexported fields
}

func (InstanceStatus) GoString

func (s InstanceStatus) GoString() string

GoString returns the string representation

func (*InstanceStatus) SetInstanceID

func (s *InstanceStatus) SetInstanceID(v string) *InstanceStatus

SetInstanceID sets the InstanceID field's value.

func (*InstanceStatus) SetInstanceState

func (s *InstanceStatus) SetInstanceState(v string) *InstanceStatus

SetInstanceState sets the InstanceState field's value.

func (InstanceStatus) String

func (s InstanceStatus) String() string

String returns the string representation

type InternetAccessible

type InternetAccessible struct {
	InternetChargeType *string `locationName:"InternetChargeType" type:"string"`

	InternetMaxBandwidthOut *int64 `locationName:"InternetMaxBandwidthOut" type:"integer"`

	PublicIpAssigned *bool `locationName:"PublicIpAssigned" type:"boolean"`
	// contains filtered or unexported fields
}

func (InternetAccessible) GoString

func (s InternetAccessible) GoString() string

GoString returns the string representation

func (*InternetAccessible) SetInternetChargeType

func (s *InternetAccessible) SetInternetChargeType(v string) *InternetAccessible

SetInternetChargeType sets the InternetChargeType field's value.

func (*InternetAccessible) SetInternetMaxBandwidthOut

func (s *InternetAccessible) SetInternetMaxBandwidthOut(v int64) *InternetAccessible

SetInternetMaxBandwidthOut sets the InternetMaxBandwidthOut field's value.

func (*InternetAccessible) SetPublicIpAssigned

func (s *InternetAccessible) SetPublicIpAssigned(v bool) *InternetAccessible

SetPublicIpAssigned sets the PublicIpAssigned field's value.

func (InternetAccessible) String

func (s InternetAccessible) String() string

String returns the string representation

type LoginSettings

type LoginSettings struct {
	KeepImageLogin *bool `locationName:"KeepImageLogin" type:"boolean"`

	KeyIds []*string `locationName:"KeyIds" type:"list" flattened:"true"`

	Password *string `locationName:"Password" type:"string"`
	// contains filtered or unexported fields
}

func (LoginSettings) GoString

func (s LoginSettings) GoString() string

GoString returns the string representation

func (*LoginSettings) SetKeepImageLogin

func (s *LoginSettings) SetKeepImageLogin(v bool) *LoginSettings

SetKeepImageLogin sets the KeepImageLogin field's value.

func (*LoginSettings) SetKeyIds

func (s *LoginSettings) SetKeyIds(v []*string) *LoginSettings

SetKeyIds sets the KeyIds field's value.

func (*LoginSettings) SetPassword

func (s *LoginSettings) SetPassword(v string) *LoginSettings

SetPassword sets the Password field's value.

func (LoginSettings) String

func (s LoginSettings) String() string

String returns the string representation

type OperateInstancesResponse

type OperateInstancesResponse struct {
	RequestID *string `locationName:"RequestId" type:"string"`
	// contains filtered or unexported fields
}

func (OperateInstancesResponse) GoString

func (s OperateInstancesResponse) GoString() string

GoString returns the string representation

func (*OperateInstancesResponse) SetRequestID

SetRequestID sets the RequestID field's value.

func (OperateInstancesResponse) String

func (s OperateInstancesResponse) String() string

String returns the string representation

type Placement

type Placement struct {
	HostIds []*string `locationName:"HostIds" type:"list"`

	ProjectId *int64 `locationName:"ProjectId" type:"integer"`

	Zone *string `locationName:"Zone" type:"string"`
	// contains filtered or unexported fields
}

func (Placement) GoString

func (s Placement) GoString() string

GoString returns the string representation

func (*Placement) SetHostIds

func (s *Placement) SetHostIds(v []*string) *Placement

SetHostIds sets the HostIds field's value.

func (*Placement) SetProjectId

func (s *Placement) SetProjectId(v int64) *Placement

SetProjectId sets the ProjectId field's value.

func (*Placement) SetZone

func (s *Placement) SetZone(v string) *Placement

SetZone sets the Zone field's value.

func (Placement) String

func (s Placement) String() string

String returns the string representation

type RebootInstancesInput

type RebootInstancesInput struct {
	ForceReboot *bool `type:"boolean"`

	InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"`
	// contains filtered or unexported fields
}

func (RebootInstancesInput) GoString

func (s RebootInstancesInput) GoString() string

GoString returns the string representation

func (*RebootInstancesInput) SetForceReboot

func (s *RebootInstancesInput) SetForceReboot(v bool) *RebootInstancesInput

SetForceReboot sets the ForceReboot field's value.

func (*RebootInstancesInput) SetInstanceIds

func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput

SetInstanceIds sets the InstanceIds field's value.

func (RebootInstancesInput) String

func (s RebootInstancesInput) String() string

String returns the string representation

type RebootInstancesOutput

type RebootInstancesOutput struct {
	Response *OperateInstancesResponse `type:"structure"`
	// contains filtered or unexported fields
}

func (RebootInstancesOutput) GoString

func (s RebootInstancesOutput) GoString() string

GoString returns the string representation

func (*RebootInstancesOutput) SetResponse

SetResponse sets the Response field's value.

func (RebootInstancesOutput) String

func (s RebootInstancesOutput) String() string

String returns the string representation

type Response

type Response struct {

	// test
	InstanceSet []*Instance `locationName:"InstanceSet" type:"list"`

	RequestID *string `locationName:"RequestId" type:"string"`

	TotalCount *int64 `locationName:"TotalCount" type:"integer"`
	// contains filtered or unexported fields
}

Response item

func (Response) GoString

func (s Response) GoString() string

GoString returns the string representation

func (*Response) SetInstanceSet

func (s *Response) SetInstanceSet(v []*Instance) *Response

SetInstanceSet sets the InstanceSet field's value.

func (*Response) SetRequestID

func (s *Response) SetRequestID(v string) *Response

SetRequestID sets the RequestID field's value.

func (*Response) SetTotalCount

func (s *Response) SetTotalCount(v int64) *Response

SetTotalCount sets the TotalCount field's value.

func (Response) String

func (s Response) String() string

String returns the string representation

type RunInstancesInput

type RunInstancesInput struct {
	ClientToken *string `locationName:"ClientToken" type:"string"`

	DataDisks []*DataDisk `locationName:"DataDisks" type:"list"`

	EnhancedService *EnhancedService `type:"structure"`

	HostName *string `type:"string"`

	ImageId *string `type:"string"`

	InstanceChargePrepaid *InstanceChargePrepaid `locationName:"InstanceChargePrepaid" type:"structure"`

	InstanceChargeType *string `locationName:"InstanceChargeType" type:"string"`

	InstanceCount *int64 `locationName:"InstanceCount" type:"integer"`

	InstanceName *string `locationName:"InstanceName" type:"string"`

	InstanceType *string `locationName:"InstanceType" type:"string"`

	InternetAccessible *InternetAccessible `locationName:"InternetAccessible" type:"structure"`

	LoginSettings *LoginSettings `locationName:"LoginSettings" type:"structure"`

	Placement *Placement `locationName:"Placement" type:"structure"`

	SecurityGroupIds []*string `locationName:"SecurityGroupIds" type:"list" flattened:"true"`

	SystemDisk *SystemDisk `locationName:"SystemDisk" type:"structure"`

	TagSpecification []*TagSpecification `type:"list"`

	UserData *string `type:"string"`

	VirtualPrivateCloud *VirtualPrivateCloud `locationName:"VirtualPrivateCloud" type:"structure" flattened:"true"`
	// contains filtered or unexported fields
}

func (RunInstancesInput) GoString

func (s RunInstancesInput) GoString() string

GoString returns the string representation

func (*RunInstancesInput) SetClientToken

func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput

SetClientToken sets the ClientToken field's value.

func (*RunInstancesInput) SetDataDisks

func (s *RunInstancesInput) SetDataDisks(v []*DataDisk) *RunInstancesInput

SetDataDisks sets the DataDisks field's value.

func (*RunInstancesInput) SetEnhancedService

func (s *RunInstancesInput) SetEnhancedService(v *EnhancedService) *RunInstancesInput

SetEnhancedService sets the EnhancedService field's value.

func (*RunInstancesInput) SetHostName

func (s *RunInstancesInput) SetHostName(v string) *RunInstancesInput

SetHostName sets the HostName field's value.

func (*RunInstancesInput) SetImageId

func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput

SetImageId sets the ImageId field's value.

func (*RunInstancesInput) SetInstanceChargePrepaid

func (s *RunInstancesInput) SetInstanceChargePrepaid(v *InstanceChargePrepaid) *RunInstancesInput

SetInstanceChargePrepaid sets the InstanceChargePrepaid field's value.

func (*RunInstancesInput) SetInstanceChargeType

func (s *RunInstancesInput) SetInstanceChargeType(v string) *RunInstancesInput

SetInstanceChargeType sets the InstanceChargeType field's value.

func (*RunInstancesInput) SetInstanceCount

func (s *RunInstancesInput) SetInstanceCount(v int64) *RunInstancesInput

SetInstanceCount sets the InstanceCount field's value.

func (*RunInstancesInput) SetInstanceName

func (s *RunInstancesInput) SetInstanceName(v string) *RunInstancesInput

SetInstanceName sets the InstanceName field's value.

func (*RunInstancesInput) SetInstanceType

func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput

SetInstanceType sets the InstanceType field's value.

func (*RunInstancesInput) SetInternetAccessible

func (s *RunInstancesInput) SetInternetAccessible(v *InternetAccessible) *RunInstancesInput

SetInternetAccessible sets the InternetAccessible field's value.

func (*RunInstancesInput) SetLoginSettings

func (s *RunInstancesInput) SetLoginSettings(v *LoginSettings) *RunInstancesInput

SetLoginSettings sets the LoginSettings field's value.

func (*RunInstancesInput) SetPlacement

func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput

SetPlacement sets the Placement field's value.

func (*RunInstancesInput) SetSecurityGroupIds

func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (*RunInstancesInput) SetSystemDisk

func (s *RunInstancesInput) SetSystemDisk(v *SystemDisk) *RunInstancesInput

SetSystemDisk sets the SystemDisk field's value.

func (*RunInstancesInput) SetTagSpecification

func (s *RunInstancesInput) SetTagSpecification(v []*TagSpecification) *RunInstancesInput

SetTagSpecification sets the TagSpecification field's value.

func (*RunInstancesInput) SetUserData

func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput

SetUserData sets the UserData field's value.

func (*RunInstancesInput) SetVirtualPrivateCloud

func (s *RunInstancesInput) SetVirtualPrivateCloud(v *VirtualPrivateCloud) *RunInstancesInput

SetVirtualPrivateCloud sets the VirtualPrivateCloud field's value.

func (RunInstancesInput) String

func (s RunInstancesInput) String() string

String returns the string representation

type RunInstancesOutput

type RunInstancesOutput struct {
	Response *RunInstancesResponse `type:"structure"`
	// contains filtered or unexported fields
}

func (RunInstancesOutput) GoString

func (s RunInstancesOutput) GoString() string

GoString returns the string representation

func (*RunInstancesOutput) SetResponse

SetResponse sets the Response field's value.

func (RunInstancesOutput) String

func (s RunInstancesOutput) String() string

String returns the string representation

type RunInstancesResponse

type RunInstancesResponse struct {
	InstanceIdSet []*string `type:"list"`

	RequestId *string `locationName:"InstanceIds" type:"string"`
	// contains filtered or unexported fields
}

func (RunInstancesResponse) GoString

func (s RunInstancesResponse) GoString() string

GoString returns the string representation

func (*RunInstancesResponse) SetInstanceIdSet

func (s *RunInstancesResponse) SetInstanceIdSet(v []*string) *RunInstancesResponse

SetInstanceIdSet sets the InstanceIdSet field's value.

func (*RunInstancesResponse) SetRequestId

func (s *RunInstancesResponse) SetRequestId(v string) *RunInstancesResponse

SetRequestId sets the RequestId field's value.

func (RunInstancesResponse) String

func (s RunInstancesResponse) String() string

String returns the string representation

type RunMonitorServiceEnabled

type RunMonitorServiceEnabled struct {
	Enabled *bool `locationName:"Enabled" type:"boolean"`
	// contains filtered or unexported fields
}

func (RunMonitorServiceEnabled) GoString

func (s RunMonitorServiceEnabled) GoString() string

GoString returns the string representation

func (*RunMonitorServiceEnabled) SetEnabled

SetEnabled sets the Enabled field's value.

func (RunMonitorServiceEnabled) String

func (s RunMonitorServiceEnabled) String() string

String returns the string representation

type RunSecurityServiceEnabled

type RunSecurityServiceEnabled struct {
	Enabled *bool `locationName:"Enabled" type:"boolean"`
	// contains filtered or unexported fields
}

func (RunSecurityServiceEnabled) GoString

func (s RunSecurityServiceEnabled) GoString() string

GoString returns the string representation

func (*RunSecurityServiceEnabled) SetEnabled

SetEnabled sets the Enabled field's value.

func (RunSecurityServiceEnabled) String

func (s RunSecurityServiceEnabled) String() string

String returns the string representation

type StartInstancesInput

type StartInstancesInput struct {
	InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"`
	// contains filtered or unexported fields
}

func (StartInstancesInput) GoString

func (s StartInstancesInput) GoString() string

GoString returns the string representation

func (*StartInstancesInput) SetInstanceIds

func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput

SetInstanceIds sets the InstanceIds field's value.

func (StartInstancesInput) String

func (s StartInstancesInput) String() string

String returns the string representation

type StartInstancesOutput

type StartInstancesOutput struct {
	Response *OperateInstancesResponse `type:"structure"`
	// contains filtered or unexported fields
}

func (StartInstancesOutput) GoString

func (s StartInstancesOutput) GoString() string

GoString returns the string representation

func (*StartInstancesOutput) SetResponse

SetResponse sets the Response field's value.

func (StartInstancesOutput) String

func (s StartInstancesOutput) String() string

String returns the string representation

type StatusResponse

type StatusResponse struct {
	InstanceStatusSet []*InstanceStatus `locationName:"InstanceStatusSet" type:"list"`

	RequestID *string `locationName:"RequestId" type:"string"`

	TotalCount *int64 `locationName:"TotalCount" type:"integer"`
	// contains filtered or unexported fields
}

func (StatusResponse) GoString

func (s StatusResponse) GoString() string

GoString returns the string representation

func (*StatusResponse) SetInstanceStatusSet

func (s *StatusResponse) SetInstanceStatusSet(v []*InstanceStatus) *StatusResponse

SetInstanceStatusSet sets the InstanceStatusSet field's value.

func (*StatusResponse) SetRequestID

func (s *StatusResponse) SetRequestID(v string) *StatusResponse

SetRequestID sets the RequestID field's value.

func (*StatusResponse) SetTotalCount

func (s *StatusResponse) SetTotalCount(v int64) *StatusResponse

SetTotalCount sets the TotalCount field's value.

func (StatusResponse) String

func (s StatusResponse) String() string

String returns the string representation

type StopInstancesInput

type StopInstancesInput struct {
	ForceStop *bool `locationName:"ForceStop" type:"boolean"`

	InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"`

	StopType *string `type:"string"`

	StoppedMode *string `type:"string"`
	// contains filtered or unexported fields
}

func (StopInstancesInput) GoString

func (s StopInstancesInput) GoString() string

GoString returns the string representation

func (*StopInstancesInput) SetForceStop

func (s *StopInstancesInput) SetForceStop(v bool) *StopInstancesInput

SetForceStop sets the ForceStop field's value.

func (*StopInstancesInput) SetInstanceIds

func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput

SetInstanceIds sets the InstanceIds field's value.

func (*StopInstancesInput) SetStopType

func (s *StopInstancesInput) SetStopType(v string) *StopInstancesInput

SetStopType sets the StopType field's value.

func (*StopInstancesInput) SetStoppedMode

func (s *StopInstancesInput) SetStoppedMode(v string) *StopInstancesInput

SetStoppedMode sets the StoppedMode field's value.

func (StopInstancesInput) String

func (s StopInstancesInput) String() string

String returns the string representation

type StopInstancesOutput

type StopInstancesOutput struct {
	Response *OperateInstancesResponse `type:"structure"`
	// contains filtered or unexported fields
}

func (StopInstancesOutput) GoString

func (s StopInstancesOutput) GoString() string

GoString returns the string representation

func (*StopInstancesOutput) SetResponse

SetResponse sets the Response field's value.

func (StopInstancesOutput) String

func (s StopInstancesOutput) String() string

String returns the string representation

type SystemDisk

type SystemDisk struct {
	DiskId *string `locationName:"DiskId" type:"string"`

	DiskSize *int64 `locationName:"DiskSize" type:"integer"`

	DiskType *string `locationName:"DiskType" type:"string"`
	// contains filtered or unexported fields
}

func (SystemDisk) GoString

func (s SystemDisk) GoString() string

GoString returns the string representation

func (*SystemDisk) SetDiskId

func (s *SystemDisk) SetDiskId(v string) *SystemDisk

SetDiskId sets the DiskId field's value.

func (*SystemDisk) SetDiskSize

func (s *SystemDisk) SetDiskSize(v int64) *SystemDisk

SetDiskSize sets the DiskSize field's value.

func (*SystemDisk) SetDiskType

func (s *SystemDisk) SetDiskType(v string) *SystemDisk

SetDiskType sets the DiskType field's value.

func (SystemDisk) String

func (s SystemDisk) String() string

String returns the string representation

type Tag

type Tag struct {
	Key *string `type:"string"`

	Value *string `type:"string"`
	// contains filtered or unexported fields
}

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (*Tag) SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation

type TagSpecification

type TagSpecification struct {
	ResourceType *string `type:"string"`

	Tags []*Tag `type:"list"`
	// contains filtered or unexported fields
}

func (TagSpecification) GoString

func (s TagSpecification) GoString() string

GoString returns the string representation

func (*TagSpecification) SetResourceType

func (s *TagSpecification) SetResourceType(v string) *TagSpecification

SetResourceType sets the ResourceType field's value.

func (*TagSpecification) SetTags

func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification

SetTags sets the Tags field's value.

func (TagSpecification) String

func (s TagSpecification) String() string

String returns the string representation

type TerminateInstancesInput

type TerminateInstancesInput struct {
	InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"`
	// contains filtered or unexported fields
}

func (TerminateInstancesInput) GoString

func (s TerminateInstancesInput) GoString() string

GoString returns the string representation

func (*TerminateInstancesInput) SetInstanceIds

func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput

SetInstanceIds sets the InstanceIds field's value.

func (TerminateInstancesInput) String

func (s TerminateInstancesInput) String() string

String returns the string representation

type TerminateInstancesOutput

type TerminateInstancesOutput struct {
	Response *OperateInstancesResponse `type:"structure"`
	// contains filtered or unexported fields
}

func (TerminateInstancesOutput) GoString

func (s TerminateInstancesOutput) GoString() string

GoString returns the string representation

func (*TerminateInstancesOutput) SetResponse

SetResponse sets the Response field's value.

func (TerminateInstancesOutput) String

func (s TerminateInstancesOutput) String() string

String returns the string representation

type VirtualPrivateCloud

type VirtualPrivateCloud struct {
	AsVpcGateway *bool `locationName:"AsVpcGateway" type:"boolean"`

	PrivateIpAddresses []*string `locationName:"PrivateIpAddresses" type:"list" flattened:"true"`

	SubnetId *string `locationName:"SubnetId" type:"string"`

	VpcId *string `locationName:"VpcId" type:"string"`
	// contains filtered or unexported fields
}

func (VirtualPrivateCloud) GoString

func (s VirtualPrivateCloud) GoString() string

GoString returns the string representation

func (*VirtualPrivateCloud) SetAsVpcGateway

func (s *VirtualPrivateCloud) SetAsVpcGateway(v bool) *VirtualPrivateCloud

SetAsVpcGateway sets the AsVpcGateway field's value.

func (*VirtualPrivateCloud) SetPrivateIpAddresses

func (s *VirtualPrivateCloud) SetPrivateIpAddresses(v []*string) *VirtualPrivateCloud

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

func (*VirtualPrivateCloud) SetSubnetId

func (s *VirtualPrivateCloud) SetSubnetId(v string) *VirtualPrivateCloud

SetSubnetId sets the SubnetId field's value.

func (*VirtualPrivateCloud) SetVpcId

SetVpcId sets the VpcId field's value.

func (VirtualPrivateCloud) String

func (s VirtualPrivateCloud) String() string

String returns the string representation

Directories

Path Synopsis
Package cvmiface provides an interface to enable mocking the Cloud Virtual Machine service client for testing your code.
Package cvmiface provides an interface to enable mocking the Cloud Virtual Machine service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL