Skip to content

Commit

Permalink
sdk: rolling update for 0.22.4 (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Jul 10, 2023
1 parent ff40a83 commit f4c2ebc
Show file tree
Hide file tree
Showing 23 changed files with 598 additions and 404 deletions.
24 changes: 12 additions & 12 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,18 @@ type SrcAreaInfo struct {
FlagUnicode string
}

/*
AccelerationAreaInfos - 加速大区信息
*/
type AccelerationAreaInfos struct {

// 加速区code
AccelerationArea string

// 加速节点信息
AccelerationNodes []SrcAreaInfo
}

/*
ForwardTask - 全球统一接入转发端口任务信息
*/
Expand All @@ -245,18 +257,6 @@ type ForwardTask struct {
RSPort int
}

/*
AccelerationAreaInfos - 加速大区信息
*/
type AccelerationAreaInfos struct {

// 加速区code
AccelerationArea string

// 加速节点信息
AccelerationNodes []SrcAreaInfo
}

/*
OutPublicIpInfo - 线路回源IP信息
*/
Expand Down
66 changes: 66 additions & 0 deletions services/sts/apis.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// Code is generated by ucloud-model, DO NOT EDIT IT.

package sts

import (
"github.com/ucloud/ucloud-sdk-go/ucloud/request"
"github.com/ucloud/ucloud-sdk-go/ucloud/response"
)

// STS API Schema

// AssumeRoleRequest is request schema for AssumeRole action
type AssumeRoleRequest struct {
request.CommonBase

// Token有效期。
DurationSeconds *int `required:"false"`

// 为STS Token额外添加的一个权限策略,进一步限制STS Token的权限。
Policy *string `required:"false"`

// 角色会话名称。
RoleSessionName *string `required:"true"`

// 要扮演的RAM角色URN。
RoleUrn *string `required:"true"`
}

// AssumeRoleResponse is response schema for AssumeRole action
type AssumeRoleResponse struct {
response.CommonBase

// 访问凭证。
Credentials Credentials
}

// NewAssumeRoleRequest will create request of AssumeRole action.
func (c *STSClient) NewAssumeRoleRequest() *AssumeRoleRequest {
req := &AssumeRoleRequest{}

// setup request with client config
c.Client.SetupRequest(req)

// setup retryable with default retry policy (retry for non-create action and common error)
req.SetRetryable(true)
return req
}

/*
API: AssumeRole
获取扮演角色的临时身份凭证
*/
func (c *STSClient) AssumeRole(req *AssumeRoleRequest) (*AssumeRoleResponse, error) {
var err error
var res AssumeRoleResponse

reqCopier := *req

err = c.Client.InvokeAction("AssumeRole", &reqCopier, &res)
if err != nil {
return &res, err
}

return &res, nil
}
22 changes: 22 additions & 0 deletions services/sts/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Code is generated by ucloud-model, DO NOT EDIT IT.

package sts

import (
"github.com/ucloud/ucloud-sdk-go/ucloud"
"github.com/ucloud/ucloud-sdk-go/ucloud/auth"
)

// STSClient is the client of STS
type STSClient struct {
*ucloud.Client
}

// NewClient will return a instance of STSClient
func NewClient(config *ucloud.Config, credential *auth.Credential) *STSClient {
meta := ucloud.ClientMeta{Product: "STS"}
client := ucloud.NewClientWithMeta(config, credential, meta)
return &STSClient{
client,
}
}
13 changes: 13 additions & 0 deletions services/sts/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Code is generated by ucloud-model, DO NOT EDIT IT.

/*
Package sts include resources of ucloud sts product
See also
- API: https://docs.ucloud.cn/api/sts-api/index
- Product: https://www.ucloud.cn/site/product/sts.html
for detail.
*/
package sts
21 changes: 21 additions & 0 deletions services/sts/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Code is generated by ucloud-model, DO NOT EDIT IT.

package sts

/*
Credentials -
*/
type Credentials struct {

// 密钥ID。
AccessKeyId string

// 密钥Secret。
AccessKeySecret string

// Token到期失效时间(UTC时间)。
Expiration string

// 安全令牌。
SecurityToken string
}
20 changes: 10 additions & 10 deletions services/ubill/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,26 @@ type AccountInfo struct {
}

/*
ItemDetail - 产品配置
ResourceExtendInfo - 资源标识
*/
type ItemDetail struct {
type ResourceExtendInfo struct {

// 产品小类名称
ProductName string
// 资源标识健
KeyId string

// 产品小类规格
// 资源标识值
Value string
}

/*
ResourceExtendInfo - 资源标识
ItemDetail - 产品配置
*/
type ResourceExtendInfo struct {
type ItemDetail struct {

// 资源标识健
KeyId string
// 产品小类名称
ProductName string

// 资源标识值
// 产品小类规格
Value string
}

Expand Down
72 changes: 36 additions & 36 deletions services/ucdn/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,21 @@ type BandwidthTrafficInfo struct {
Traffic float64
}

/*
ReferConf - refer配置
*/
type ReferConf struct {

// ReferType为白名单时(删除),NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问
NullRefer int

// Refer防盗链规则列表,支持正则表达式
ReferList []string

// Refer防盗链配置 0白名单,1黑名单
ReferType int
}

/*
CacheKeyInfo - 忽略参数缓存配置
*/
Expand All @@ -564,18 +579,15 @@ type CacheKeyInfo struct {
}

/*
ReferConf - refer配置
AccessControlConf - 访问控制配置参数
*/
type ReferConf struct {

// ReferType为白名单时(删除),NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问
NullRefer int
type AccessControlConf struct {

// Refer防盗链规则列表,支持正则表达式
ReferList []string
// ip黑名单,多个ip,可表示为:IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2
IpBlackList []string

// Refer防盗链配置 0白名单,1黑名单
ReferType int
// refer配置
ReferConf ReferConf
}

/*
Expand All @@ -596,27 +608,6 @@ type CacheAllConfig struct {
HttpCodeCacheList []CacheConf
}

/*
AdvancedConf - 域名高级配置
*/
type AdvancedConf struct {

// http转https回源 true是,false否
Http2Https bool

// 客户端响应http头列表
HttpClientHeader []string

// 源站http头列表
HttpOriginHeader []string

// 是否开启quic
QuicEnable bool

// 是否开启websocket
WebSocketEnable bool
}

/*
OriginConf - 回源配置
*/
Expand Down Expand Up @@ -654,15 +645,24 @@ type OriginConf struct {
}

/*
AccessControlConf - 访问控制配置参数
AdvancedConf - 域名高级配置
*/
type AccessControlConf struct {
type AdvancedConf struct {

// ip黑名单,多个ip,可表示为:IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2
IpBlackList []string
// http转https回源 true是,false否
Http2Https bool

// refer配置
ReferConf ReferConf
// 客户端响应http头列表
HttpClientHeader []string

// 源站http头列表
HttpOriginHeader []string

// 是否开启quic
QuicEnable bool

// 是否开启websocket
WebSocketEnable bool
}

/*
Expand Down
Loading

0 comments on commit f4c2ebc

Please sign in to comment.