ros

package
v1.33.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) CreateStack

func (client *Client) CreateStack(request *CreateStackRequest) (response *CreateStackResponse, err error)

CreateStack invokes the ros.CreateStack API synchronously api document: https://www.alibabacloud.com/help/doc-detail/132086.htm

func (*Client) DeleteStack

func (client *Client) DeleteStack(request *DeleteStackRequest) (response *DeleteStackResponse, err error)

DeleteStack invokes the ros.DeleteStack API synchronously api document: https://www.alibabacloud.com/help/doc-detail/132113.htm

func (*Client) GetStack

func (client *Client) GetStack(request *GetStackRequest) (response *GetStackResponse, err error)

GetStack invokes the ros.GetStack API synchronously api document: https://www.alibabacloud.com/help/doc-detail/132088.htm

func (*Client) ListStacks

func (client *Client) ListStacks(request *ListStacksRequest) (response *ListStacksResponse, err error)

ListStacks invokes the ros.ListStacks API synchronously api document: https://www.alibabacloud.com/help/doc-detail/132117.htm

type CreateStackParameters

type CreateStackParameters struct {
	ParameterValue string `name:"ParameterValue"`
	ParameterKey   string `name:"ParameterKey"`
}

CreateStackParameters is a repeated param struct in CreateStackRequest

type CreateStackRequest

type CreateStackRequest struct {
	*requests.RpcRequest
	ClientToken        string                   `position:"Query" name:"ClientToken"`
	TemplateBody       string                   `position:"Query" name:"TemplateBody"`
	DisableRollback    requests.Boolean         `position:"Query" name:"DisableRollback"`
	TimeoutInMinutes   requests.Integer         `position:"Query" name:"TimeoutInMinutes"`
	OrderSource        string                   `position:"Query" name:"OrderSource"`
	TemplateURL        string                   `position:"Query" name:"TemplateURL"`
	ActivityId         string                   `position:"Query" name:"ActivityId"`
	NotificationURLs   *[]string                `position:"Query" name:"NotificationURLs"  type:"Repeated"`
	StackPolicyURL     string                   `position:"Query" name:"StackPolicyURL"`
	StackName          string                   `position:"Query" name:"StackName"`
	Parameters         *[]CreateStackParameters `position:"Query" name:"Parameters"  type:"Repeated"`
	StackPolicyBody    string                   `position:"Query" name:"StackPolicyBody"`
	DeletionProtection string                   `position:"Query" name:"DeletionProtection"`
	Tags               *[]Tag                   `position:"Query" name:"Tags"  type:"Repeated"`
}

CreateStackRequest is the request struct for api CreateStack

func CreateCreateStackRequest

func CreateCreateStackRequest() (request *CreateStackRequest)

CreateCreateStackRequest creates a request to invoke CreateStack API

type CreateStackResponse

type CreateStackResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	StackId   string `json:"StackId" xml:"StackId"`
}

CreateStackResponse is the response struct for api CreateStack

func CreateCreateStackResponse

func CreateCreateStackResponse() (response *CreateStackResponse)

CreateCreateStackResponse creates a response to parse from CreateStack response

type DeleteStackRequest

type DeleteStackRequest struct {
	*requests.RpcRequest
	RetainAllResources requests.Boolean `position:"Query" name:"RetainAllResources"`
	StackId            string           `position:"Query" name:"StackId"`
}

DeleteStackRequest is the request struct for api DeleteStack

func CreateDeleteStackRequest

func CreateDeleteStackRequest() (request *DeleteStackRequest)

CreateDeleteStackRequest creates a request to invoke DeleteStack API

type DeleteStackResponse

type DeleteStackResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DeleteStackResponse is the response struct for api DeleteStack

func CreateDeleteStackResponse

func CreateDeleteStackResponse() (response *DeleteStackResponse)

CreateDeleteStackResponse creates a response to parse from DeleteStack response

type GetStackRequest

type GetStackRequest struct {
	*requests.RpcRequest
	ClientToken string `position:"Query" name:"ClientToken"`
	StackId     string `position:"Query" name:"StackId"`
}

GetStackRequest is the request struct for api GetStack

func CreateGetStackRequest

func CreateGetStackRequest() (request *GetStackRequest)

CreateGetStackRequest creates a request to invoke GetStack API

type GetStackResponse

type GetStackResponse struct {
	*responses.BaseResponse
	CreateTime          string              `json:"CreateTime" xml:"CreateTime"`
	Description         string              `json:"Description" xml:"Description"`
	DisableRollback     bool                `json:"DisableRollback" xml:"DisableRollback"`
	RegionId            string              `json:"RegionId" xml:"RegionId"`
	RequestId           string              `json:"RequestId" xml:"RequestId"`
	StackId             string              `json:"StackId" xml:"StackId"`
	StackName           string              `json:"StackName" xml:"StackName"`
	Status              string              `json:"Status" xml:"Status"`
	StatusReason        string              `json:"StatusReason" xml:"StatusReason"`
	TemplateDescription string              `json:"TemplateDescription" xml:"TemplateDescription"`
	TimeoutInMinutes    int                 `json:"TimeoutInMinutes" xml:"TimeoutInMinutes"`
	UpdateTime          string              `json:"UpdateTime" xml:"UpdateTime"`
	ParentStackId       string              `json:"ParentStackId" xml:"ParentStackId"`
	Outputs             []map[string]string `json:"Outputs" xml:"Outputs"`
	NotificationURLs    []string            `json:"NotificationURLs" xml:"NotificationURLs"`
	Parameters          []Parameter         `json:"Parameters" xml:"Parameters"`
}

GetStackResponse is the response struct for api GetStack

func CreateGetStackResponse

func CreateGetStackResponse() (response *GetStackResponse)

CreateGetStackResponse creates a response to parse from GetStack response

type ListStacksRequest

type ListStacksRequest struct {
	*requests.RpcRequest
	StackName *[]string `position:"Query" name:"StackName"  type:"Repeated"`
}

ListStacksRequest is the request struct for api ListStacks

func CreateListStacksRequest

func CreateListStacksRequest() (request *ListStacksRequest)

CreateListStacksRequest creates a request to invoke ListStacks API

type ListStacksResponse

type ListStacksResponse struct {
	*responses.BaseResponse
	PageNumber int     `json:"PageNumber" xml:"PageNumber"`
	PageSize   int     `json:"PageSize" xml:"PageSize"`
	RequestId  string  `json:"RequestId" xml:"RequestId"`
	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
	Stacks     []Stack `json:"Stacks" xml:"Stacks"`
}

ListStacksResponse is the response struct for api ListStacks

func CreateListStacksResponse

func CreateListStacksResponse() (response *ListStacksResponse)

CreateListStacksResponse creates a response to parse from ListStacks response

type Parameter

type Parameter struct {
	ParameterKey   string `json:"ParameterKey" xml:"ParameterKey"`
	ParameterValue string `json:"ParameterValue" xml:"ParameterValue"`
}

Parameter is a nested struct in ros response

type Stack

type Stack struct {
	CreateTime       string `json:"CreateTime" xml:"CreateTime"`
	DisableRollback  bool   `json:"DisableRollback" xml:"DisableRollback"`
	RegionId         string `json:"RegionId" xml:"RegionId"`
	StackId          string `json:"StackId" xml:"StackId"`
	StackName        string `json:"StackName" xml:"StackName"`
	Status           string `json:"Status" xml:"Status"`
	StatusReason     string `json:"StatusReason" xml:"StatusReason"`
	TimeoutInMinutes int    `json:"TimeoutInMinutes" xml:"TimeoutInMinutes"`
	ParentStackId    string `json:"ParentStackId" xml:"ParentStackId"`
	UpdateTime       string `json:"UpdateTime" xml:"UpdateTime"`
}

Stack is a nested struct in ros response

type Tag

type Tag struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

Tag is a repeated param struct in CreateStackRequest

Jump to

Keyboard shortcuts

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