dfw

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: 7 Imported by: 0

Documentation

Overview

Package dfw provides the client and types for making API requests to SecurityGroup.

欢迎使用安全组(SecurityGroup)

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

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

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

Using the Client

To contact SecurityGroup 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 SecurityGroup client DFW for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/dfw/#New

Index

Examples

Constants

View Source
const (
	// RegionEnumApBeijing is a RegionEnum enum value
	RegionEnumApBeijing = "ap-beijing"

	// RegionEnumApChengdu is a RegionEnum enum value
	RegionEnumApChengdu = "ap-chengdu"

	// RegionEnumApGuangzhou is a RegionEnum enum value
	RegionEnumApGuangzhou = "ap-guangzhou"

	// RegionEnumApGuangzhouOpen is a RegionEnum enum value
	RegionEnumApGuangzhouOpen = "ap-guangzhou-open"

	// RegionEnumApHongkong is a RegionEnum enum value
	RegionEnumApHongkong = "ap-hongkong"

	// RegionEnumApShanghai is a RegionEnum enum value
	RegionEnumApShanghai = "ap-shanghai"

	// RegionEnumApSingapore is a RegionEnum enum value
	RegionEnumApSingapore = "ap-singapore"

	// RegionEnumEuFrankfurt is a RegionEnum enum value
	RegionEnumEuFrankfurt = "eu-frankfurt"

	// RegionEnumNaSiliconvalley is a RegionEnum enum value
	RegionEnumNaSiliconvalley = "na-siliconvalley"

	// RegionEnumNaToronto is a RegionEnum enum value
	RegionEnumNaToronto = "na-toronto"

	// RegionEnumApShanghaiFsi is a RegionEnum enum value
	RegionEnumApShanghaiFsi = "ap-shanghai-fsi"

	// RegionEnumApShenzhenFsi is a RegionEnum enum value
	RegionEnumApShenzhenFsi = "ap-shenzhen-fsi"
)
View Source
const (
	ServiceName = "dfw"       // 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 CreateSecurityGroupInput

type CreateSecurityGroupInput struct {
	ProjectId *int64 `locationName:"projectId" type:"integer"`

	SgName *string `locationName:"sgName" type:"string"`

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

func (CreateSecurityGroupInput) GoString

func (s CreateSecurityGroupInput) GoString() string

GoString returns the string representation

func (*CreateSecurityGroupInput) SetProjectId

SetProjectId sets the ProjectId field's value.

func (*CreateSecurityGroupInput) SetSgName

SetSgName sets the SgName field's value.

func (*CreateSecurityGroupInput) SetSgRemark

SetSgRemark sets the SgRemark field's value.

func (CreateSecurityGroupInput) String

func (s CreateSecurityGroupInput) String() string

String returns the string representation

type CreateSecurityGroupOutput

type CreateSecurityGroupOutput struct {
	Code *int64 `locationName:"codc" type:"integer"`

	CodeDesc *string `locationName:"codeDesc" type:"string"`

	Data *SecurityGroup `locationName:"data" type:"structure"`

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

func (CreateSecurityGroupOutput) GoString

func (s CreateSecurityGroupOutput) GoString() string

GoString returns the string representation

func (*CreateSecurityGroupOutput) SetCode

SetCode sets the Code field's value.

func (*CreateSecurityGroupOutput) SetCodeDesc

SetCodeDesc sets the CodeDesc field's value.

func (*CreateSecurityGroupOutput) SetData

SetData sets the Data field's value.

func (*CreateSecurityGroupOutput) SetMessage

SetMessage sets the Message field's value.

func (CreateSecurityGroupOutput) String

func (s CreateSecurityGroupOutput) String() string

String returns the string representation

type CreateSecurityGroupPolicyInput

type CreateSecurityGroupPolicyInput struct {
	Direction *string `locationName:"direction" type:"string"`

	Index *int64 `locationName:"index" type:"integer"`

	Policys []*SecurityGroupPolicy `locationName:"policys" type:"list" flattened:"true"`

	SgId *string `locationName:"sgId" type:"string"`

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

func (CreateSecurityGroupPolicyInput) GoString

GoString returns the string representation

func (*CreateSecurityGroupPolicyInput) SetDirection

SetDirection sets the Direction field's value.

func (*CreateSecurityGroupPolicyInput) SetIndex

SetIndex sets the Index field's value.

func (*CreateSecurityGroupPolicyInput) SetPolicys

SetPolicys sets the Policys field's value.

func (*CreateSecurityGroupPolicyInput) SetSgId

SetSgId sets the SgId field's value.

func (*CreateSecurityGroupPolicyInput) SetVersion

SetVersion sets the Version field's value.

func (CreateSecurityGroupPolicyInput) String

String returns the string representation

type CreateSecurityGroupPolicyOutput

type CreateSecurityGroupPolicyOutput struct {
	Code *int64 `locationName:"code" type:"integer"`

	CodeDesc *string `locationName:"codeDesc" type:"string"`

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

func (CreateSecurityGroupPolicyOutput) GoString

GoString returns the string representation

func (*CreateSecurityGroupPolicyOutput) SetCode

SetCode sets the Code field's value.

func (*CreateSecurityGroupPolicyOutput) SetCodeDesc

SetCodeDesc sets the CodeDesc field's value.

func (*CreateSecurityGroupPolicyOutput) SetMessage

SetMessage sets the Message field's value.

func (CreateSecurityGroupPolicyOutput) String

String returns the string representation

type DFW

type DFW struct {
	*client.Client
}

DFW provides the API operation methods for making requests to SecurityGroup. See this package's package overview docs for details on the service.

DFW 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) *DFW

New creates a new instance of the DFW 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 DFW client from just a session.
svc := dfw.New(mySession)

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

func (*DFW) CreateSecurityGroup

func (c *DFW) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error)

CreateSecurityGroup API operation for SecurityGroup.

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 SecurityGroup's API operation CreateSecurityGroup for usage and error information.

func (*DFW) CreateSecurityGroupPolicy

func (c *DFW) CreateSecurityGroupPolicy(input *CreateSecurityGroupPolicyInput) (*CreateSecurityGroupPolicyOutput, error)

CreateSecurityGroupPolicy API operation for SecurityGroup.

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 SecurityGroup's API operation CreateSecurityGroupPolicy for usage and error information.

func (*DFW) CreateSecurityGroupPolicyRequest

func (c *DFW) CreateSecurityGroupPolicyRequest(input *CreateSecurityGroupPolicyInput) (req *request.Request, output *CreateSecurityGroupPolicyOutput)

CreateSecurityGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the CreateSecurityGroupPolicy 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 CreateSecurityGroupPolicy for more information on using the CreateSecurityGroupPolicy 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 CreateSecurityGroupPolicyRequest method.
req, resp := client.CreateSecurityGroupPolicyRequest(params)

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

func (*DFW) CreateSecurityGroupPolicyWithContext

func (c *DFW) CreateSecurityGroupPolicyWithContext(ctx sdf.Context, input *CreateSecurityGroupPolicyInput, opts ...request.Option) (*CreateSecurityGroupPolicyOutput, error)

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

See CreateSecurityGroupPolicy 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 (*DFW) CreateSecurityGroupRequest

func (c *DFW) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput)

CreateSecurityGroupRequest generates a "aws/request.Request" representing the client's request for the CreateSecurityGroup 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 CreateSecurityGroup for more information on using the CreateSecurityGroup 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 CreateSecurityGroupRequest method.
req, resp := client.CreateSecurityGroupRequest(params)

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

func (*DFW) CreateSecurityGroupWithContext

func (c *DFW) CreateSecurityGroupWithContext(ctx sdf.Context, input *CreateSecurityGroupInput, opts ...request.Option) (*CreateSecurityGroupOutput, error)

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

See CreateSecurityGroup 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 (*DFW) DeleteSecurityGroup

func (c *DFW) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error)

DeleteSecurityGroup API operation for SecurityGroup.

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 SecurityGroup's API operation DeleteSecurityGroup for usage and error information.

func (*DFW) DeleteSecurityGroupPolicy

func (c *DFW) DeleteSecurityGroupPolicy(input *DeleteSecurityGroupPolicyInput) (*DeleteSecurityGroupPolicyOutput, error)

DeleteSecurityGroupPolicy API operation for SecurityGroup.

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 SecurityGroup's API operation DeleteSecurityGroupPolicy for usage and error information.

func (*DFW) DeleteSecurityGroupPolicyRequest

func (c *DFW) DeleteSecurityGroupPolicyRequest(input *DeleteSecurityGroupPolicyInput) (req *request.Request, output *DeleteSecurityGroupPolicyOutput)

DeleteSecurityGroupPolicyRequest generates a "aws/request.Request" representing the client's request for the DeleteSecurityGroupPolicy 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 DeleteSecurityGroupPolicy for more information on using the DeleteSecurityGroupPolicy 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 DeleteSecurityGroupPolicyRequest method.
req, resp := client.DeleteSecurityGroupPolicyRequest(params)

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

func (*DFW) DeleteSecurityGroupPolicyWithContext

func (c *DFW) DeleteSecurityGroupPolicyWithContext(ctx sdf.Context, input *DeleteSecurityGroupPolicyInput, opts ...request.Option) (*DeleteSecurityGroupPolicyOutput, error)

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

See DeleteSecurityGroupPolicy 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 (*DFW) DeleteSecurityGroupRequest

func (c *DFW) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput)

DeleteSecurityGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteSecurityGroup 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 DeleteSecurityGroup for more information on using the DeleteSecurityGroup 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 DeleteSecurityGroupRequest method.
req, resp := client.DeleteSecurityGroupRequest(params)

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

func (*DFW) DeleteSecurityGroupWithContext

func (c *DFW) DeleteSecurityGroupWithContext(ctx sdf.Context, input *DeleteSecurityGroupInput, opts ...request.Option) (*DeleteSecurityGroupOutput, error)

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

See DeleteSecurityGroup 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 (*DFW) DescribeSecurityGroupPolicys

func (c *DFW) DescribeSecurityGroupPolicys(input *DescribeSecurityGroupPolicysInput) (*DescribeSecurityGroupPolicysOutput, error)

DescribeSecurityGroupPolicys API operation for SecurityGroup.

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 SecurityGroup's API operation DescribeSecurityGroupPolicys for usage and error information.

func (*DFW) DescribeSecurityGroupPolicysRequest

func (c *DFW) DescribeSecurityGroupPolicysRequest(input *DescribeSecurityGroupPolicysInput) (req *request.Request, output *DescribeSecurityGroupPolicysOutput)

DescribeSecurityGroupPolicysRequest generates a "aws/request.Request" representing the client's request for the DescribeSecurityGroupPolicys 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 DescribeSecurityGroupPolicys for more information on using the DescribeSecurityGroupPolicys 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 DescribeSecurityGroupPolicysRequest method.
req, resp := client.DescribeSecurityGroupPolicysRequest(params)

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

func (*DFW) DescribeSecurityGroupPolicysWithContext

func (c *DFW) DescribeSecurityGroupPolicysWithContext(ctx sdf.Context, input *DescribeSecurityGroupPolicysInput, opts ...request.Option) (*DescribeSecurityGroupPolicysOutput, error)

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

See DescribeSecurityGroupPolicys 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 (*DFW) DescribeSecurityGroups

func (c *DFW) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error)

DescribeSecurityGroups API operation for SecurityGroup.

本接口 (DescribeSecurityGroup) )用于根据多种索引查询一个或多个安全组的基本信息。

接口请求域名:dfw.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 SecurityGroup's API operation DescribeSecurityGroups for usage and error information.

Example (Shared00)

To describe SecurityGroup

This example DescribeSecurityGroup.

Output:

func (*DFW) DescribeSecurityGroupsPages

func (c *DFW) DescribeSecurityGroupsPages(input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool) error

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

See DescribeSecurityGroups 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 DescribeSecurityGroups operation.
pageNum := 0
err := client.DescribeSecurityGroupsPages(params,
    func(page *DescribeSecurityGroupsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*DFW) DescribeSecurityGroupsPagesWithContext

func (c *DFW) DescribeSecurityGroupsPagesWithContext(ctx sdf.Context, input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool, opts ...request.Option) error

DescribeSecurityGroupsPagesWithContext same as DescribeSecurityGroupsPages 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 (*DFW) DescribeSecurityGroupsRequest

func (c *DFW) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput)

DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeSecurityGroups 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 DescribeSecurityGroups for more information on using the DescribeSecurityGroups 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 DescribeSecurityGroupsRequest method.
req, resp := client.DescribeSecurityGroupsRequest(params)

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

func (*DFW) DescribeSecurityGroupsWithContext

func (c *DFW) DescribeSecurityGroupsWithContext(ctx sdf.Context, input *DescribeSecurityGroupsInput, opts ...request.Option) (*DescribeSecurityGroupsOutput, error)

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

See DescribeSecurityGroups 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.

type DeleteSecurityGroupInput

type DeleteSecurityGroupInput struct {
	Region *string `locationName:"Region" type:"string" enum:"RegionEnum"`

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

func (DeleteSecurityGroupInput) GoString

func (s DeleteSecurityGroupInput) GoString() string

GoString returns the string representation

func (*DeleteSecurityGroupInput) SetRegion

SetRegion sets the Region field's value.

func (*DeleteSecurityGroupInput) SetSgId

SetSgId sets the SgId field's value.

func (DeleteSecurityGroupInput) String

func (s DeleteSecurityGroupInput) String() string

String returns the string representation

type DeleteSecurityGroupOutput

type DeleteSecurityGroupOutput struct {
	Code *int64 `locationName:"code" type:"integer"`

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

func (DeleteSecurityGroupOutput) GoString

func (s DeleteSecurityGroupOutput) GoString() string

GoString returns the string representation

func (*DeleteSecurityGroupOutput) SetCode

SetCode sets the Code field's value.

func (*DeleteSecurityGroupOutput) SetMessage

SetMessage sets the Message field's value.

func (DeleteSecurityGroupOutput) String

func (s DeleteSecurityGroupOutput) String() string

String returns the string representation

type DeleteSecurityGroupPolicyInput

type DeleteSecurityGroupPolicyInput struct {
	Direction *string `locationName:"direction" type:"string"`

	Indexes []*int64 `locationName:"indexes" type:"list"`

	SgId *string `locationName:"sgId" type:"string"`

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

func (DeleteSecurityGroupPolicyInput) GoString

GoString returns the string representation

func (*DeleteSecurityGroupPolicyInput) SetDirection

SetDirection sets the Direction field's value.

func (*DeleteSecurityGroupPolicyInput) SetIndexes

SetIndexes sets the Indexes field's value.

func (*DeleteSecurityGroupPolicyInput) SetSgId

SetSgId sets the SgId field's value.

func (*DeleteSecurityGroupPolicyInput) SetVersion

SetVersion sets the Version field's value.

func (DeleteSecurityGroupPolicyInput) String

String returns the string representation

type DeleteSecurityGroupPolicyOutput

type DeleteSecurityGroupPolicyOutput struct {
	Code *int64 `locationName:"code" type:"integer"`

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

func (DeleteSecurityGroupPolicyOutput) GoString

GoString returns the string representation

func (*DeleteSecurityGroupPolicyOutput) SetCode

SetCode sets the Code field's value.

func (*DeleteSecurityGroupPolicyOutput) SetMessage

SetMessage sets the Message field's value.

func (DeleteSecurityGroupPolicyOutput) String

String returns the string representation

type DescribeSecurityGroupData

type DescribeSecurityGroupData struct {
	Detail []*SecurityGroup `locationName:"detail" type:"list"`

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

func (DescribeSecurityGroupData) GoString

func (s DescribeSecurityGroupData) GoString() string

GoString returns the string representation

func (*DescribeSecurityGroupData) SetDetail

SetDetail sets the Detail field's value.

func (*DescribeSecurityGroupData) SetTotalNum

SetTotalNum sets the TotalNum field's value.

func (DescribeSecurityGroupData) String

func (s DescribeSecurityGroupData) String() string

String returns the string representation

type DescribeSecurityGroupPolicyData

type DescribeSecurityGroupPolicyData struct {
	Egress []*SecurityGroupPolicy `locationName:"egress" type:"list" flattened:"true"`

	Ingress []*SecurityGroupPolicy `locationName:"ingress" type:"list" flattened:"true"`
	// contains filtered or unexported fields
}

func (DescribeSecurityGroupPolicyData) GoString

GoString returns the string representation

func (*DescribeSecurityGroupPolicyData) SetEgress

SetEgress sets the Egress field's value.

func (*DescribeSecurityGroupPolicyData) SetIngress

SetIngress sets the Ingress field's value.

func (DescribeSecurityGroupPolicyData) String

String returns the string representation

type DescribeSecurityGroupPolicysInput

type DescribeSecurityGroupPolicysInput struct {
	SgId *string `locationName:"sgId" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeSecurityGroupPolicysInput) GoString

GoString returns the string representation

func (*DescribeSecurityGroupPolicysInput) SetSgId

SetSgId sets the SgId field's value.

func (DescribeSecurityGroupPolicysInput) String

String returns the string representation

type DescribeSecurityGroupPolicysOutput

type DescribeSecurityGroupPolicysOutput struct {
	Code *int64 `locationName:"code" type:"integer"`

	CodeDesc *string `locationName:"codeDesc" type:"string"`

	Data *DescribeSecurityGroupPolicyData `locationName:"data" type:"structure"`

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

func (DescribeSecurityGroupPolicysOutput) GoString

GoString returns the string representation

func (*DescribeSecurityGroupPolicysOutput) SetCode

SetCode sets the Code field's value.

func (*DescribeSecurityGroupPolicysOutput) SetCodeDesc

SetCodeDesc sets the CodeDesc field's value.

func (*DescribeSecurityGroupPolicysOutput) SetData

SetData sets the Data field's value.

func (*DescribeSecurityGroupPolicysOutput) SetMessage

SetMessage sets the Message field's value.

func (DescribeSecurityGroupPolicysOutput) String

String returns the string representation

type DescribeSecurityGroupsInput

type DescribeSecurityGroupsInput struct {
	Limit *int64 `locationName:"Limit," type:"integer"`

	Offset *int64 `locationName:"Offset," type:"integer"`

	OffsetLine *int64 `locationName:"OffsetLine," type:"integer"`

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

	SgId *string `locationName:"SgId" type:"string"`

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

func (DescribeSecurityGroupsInput) GoString

func (s DescribeSecurityGroupsInput) GoString() string

GoString returns the string representation

func (*DescribeSecurityGroupsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeSecurityGroupsInput) SetOffset

SetOffset sets the Offset field's value.

func (*DescribeSecurityGroupsInput) SetOffsetLine

SetOffsetLine sets the OffsetLine field's value.

func (*DescribeSecurityGroupsInput) SetProjectId

SetProjectId sets the ProjectId field's value.

func (*DescribeSecurityGroupsInput) SetSgId

SetSgId sets the SgId field's value.

func (*DescribeSecurityGroupsInput) SetSgName

SetSgName sets the SgName field's value.

func (DescribeSecurityGroupsInput) String

String returns the string representation

type DescribeSecurityGroupsOutput

type DescribeSecurityGroupsOutput struct {
	Code *int64 `locationName:"code" type:"integer"`

	CodeDesc *string `locationName:"codeDesc" type:"string"`

	Data *DescribeSecurityGroupData `locationName:"data" type:"structure"`

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

func (DescribeSecurityGroupsOutput) GoString

func (s DescribeSecurityGroupsOutput) GoString() string

GoString returns the string representation

func (*DescribeSecurityGroupsOutput) SetCode

SetCode sets the Code field's value.

func (*DescribeSecurityGroupsOutput) SetCodeDesc

SetCodeDesc sets the CodeDesc field's value.

func (*DescribeSecurityGroupsOutput) SetData

SetData sets the Data field's value.

func (*DescribeSecurityGroupsOutput) SetMessage

SetMessage sets the Message field's value.

func (DescribeSecurityGroupsOutput) String

String returns the string representation

type SecurityGroup

type SecurityGroup struct {
	BeAssociateCount *int64 `locationName:"beAssociateCount" type:"integer"`

	CreateTime *string `locationName:"createTime" type:"string"`

	SgId *string `locationName:"sgId" type:"string"`

	SgName *string `locationName:"sgName" type:"string"`

	SgRemark *string `locationName:"sgRemark" type:"string"`

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

func (SecurityGroup) GoString

func (s SecurityGroup) GoString() string

GoString returns the string representation

func (*SecurityGroup) SetBeAssociateCount

func (s *SecurityGroup) SetBeAssociateCount(v int64) *SecurityGroup

SetBeAssociateCount sets the BeAssociateCount field's value.

func (*SecurityGroup) SetCreateTime

func (s *SecurityGroup) SetCreateTime(v string) *SecurityGroup

SetCreateTime sets the CreateTime field's value.

func (*SecurityGroup) SetSgId

func (s *SecurityGroup) SetSgId(v string) *SecurityGroup

SetSgId sets the SgId field's value.

func (*SecurityGroup) SetSgName

func (s *SecurityGroup) SetSgName(v string) *SecurityGroup

SetSgName sets the SgName field's value.

func (*SecurityGroup) SetSgRemark

func (s *SecurityGroup) SetSgRemark(v string) *SecurityGroup

SetSgRemark sets the SgRemark field's value.

func (*SecurityGroup) SetVersion

func (s *SecurityGroup) SetVersion(v int64) *SecurityGroup

SetVersion sets the Version field's value.

func (SecurityGroup) String

func (s SecurityGroup) String() string

String returns the string representation

type SecurityGroupPolicy

type SecurityGroupPolicy struct {
	Action *string `locationName:"action" type:"string"`

	AddressModule *string `locationName:"addressModule" type:"string"`

	CidrIp *string `locationName:"cidrIp" type:"string"`

	Desc *string `locationName:"desc" type:"string"`

	IpProtocol *string `locationName:"ipProtocol" type:"string"`

	Key *int64 `locationName:"key" type:"integer"`

	PortRange *string `locationName:"portRange" type:"string"`

	ServiceModule *string `locationName:"serviceModule" type:"string"`

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

func (SecurityGroupPolicy) GoString

func (s SecurityGroupPolicy) GoString() string

GoString returns the string representation

func (*SecurityGroupPolicy) SetAction

SetAction sets the Action field's value.

func (*SecurityGroupPolicy) SetAddressModule

func (s *SecurityGroupPolicy) SetAddressModule(v string) *SecurityGroupPolicy

SetAddressModule sets the AddressModule field's value.

func (*SecurityGroupPolicy) SetCidrIp

SetCidrIp sets the CidrIp field's value.

func (*SecurityGroupPolicy) SetDesc

SetDesc sets the Desc field's value.

func (*SecurityGroupPolicy) SetIpProtocol

func (s *SecurityGroupPolicy) SetIpProtocol(v string) *SecurityGroupPolicy

SetIpProtocol sets the IpProtocol field's value.

func (*SecurityGroupPolicy) SetKey

SetKey sets the Key field's value.

func (*SecurityGroupPolicy) SetPortRange

func (s *SecurityGroupPolicy) SetPortRange(v string) *SecurityGroupPolicy

SetPortRange sets the PortRange field's value.

func (*SecurityGroupPolicy) SetServiceModule

func (s *SecurityGroupPolicy) SetServiceModule(v string) *SecurityGroupPolicy

SetServiceModule sets the ServiceModule field's value.

func (*SecurityGroupPolicy) SetSgId

SetSgId sets the SgId field's value.

func (SecurityGroupPolicy) String

func (s SecurityGroupPolicy) String() string

String returns the string representation

Directories

Path Synopsis
Package dfwiface provides an interface to enable mocking the SecurityGroup service client for testing your code.
Package dfwiface provides an interface to enable mocking the SecurityGroup service client for testing your code.

Jump to

Keyboard shortcuts

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