Skip to content

Commit

Permalink
Supported adjust PTS scene speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 9, 2023
1 parent b42e891 commit ccab23b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
@@ -1,3 +1,7 @@
2023-01-09 Version: v2.0.1
- Supported adjust PTS scene speed.
- Supported open PTS product.

2022-09-23 Version: v2.0.0
- Generated golang 2020-10-20 for PTS.

Expand Down
23 changes: 16 additions & 7 deletions client/client.go
Expand Up @@ -2309,6 +2309,7 @@ func (s *GetPtsReportDetailsResponseBodySceneSnapShotRelationList) SetRelationNa
}

type GetPtsReportDetailsResponseBodySceneSnapShotRelationListApiList struct {
// API ID。
ApiId *string `json:"ApiId,omitempty" xml:"ApiId,omitempty"`
ApiName *string `json:"ApiName,omitempty" xml:"ApiName,omitempty"`
Body *GetPtsReportDetailsResponseBodySceneSnapShotRelationListApiListBody `json:"Body,omitempty" xml:"Body,omitempty" type:"Struct"`
Expand Down Expand Up @@ -3749,6 +3750,7 @@ type GetPtsSceneRunningDataResponseBody struct {
Status *int32 `json:"Status,omitempty" xml:"Status,omitempty"`
Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
TotalAgents *int32 `json:"TotalAgents,omitempty" xml:"TotalAgents,omitempty"`
TotalRealQps *int32 `json:"TotalRealQps,omitempty" xml:"TotalRealQps,omitempty"`
TotalRequestCount *int64 `json:"TotalRequestCount,omitempty" xml:"TotalRequestCount,omitempty"`
TpsLimit *int32 `json:"TpsLimit,omitempty" xml:"TpsLimit,omitempty"`
Vum *int64 `json:"Vum,omitempty" xml:"Vum,omitempty"`
Expand Down Expand Up @@ -3862,6 +3864,11 @@ func (s *GetPtsSceneRunningDataResponseBody) SetTotalAgents(v int32) *GetPtsScen
return s
}

func (s *GetPtsSceneRunningDataResponseBody) SetTotalRealQps(v int32) *GetPtsSceneRunningDataResponseBody {
s.TotalRealQps = &v
return s
}

func (s *GetPtsSceneRunningDataResponseBody) SetTotalRequestCount(v int64) *GetPtsSceneRunningDataResponseBody {
s.TotalRequestCount = &v
return s
Expand Down Expand Up @@ -6540,6 +6547,7 @@ func (s *SavePtsSceneRequestSceneLoadConfig) SetVpcLoadConfig(v *SavePtsSceneReq
}

type SavePtsSceneRequestSceneLoadConfigApiLoadConfigList struct {
// API ID。
ApiId *string `json:"ApiId,omitempty" xml:"ApiId,omitempty"`
RpsBegin *int32 `json:"RpsBegin,omitempty" xml:"RpsBegin,omitempty"`
RpsLimit *int32 `json:"RpsLimit,omitempty" xml:"RpsLimit,omitempty"`
Expand Down Expand Up @@ -6636,7 +6644,8 @@ type SavePtsSceneRequestSceneLoadConfigVpcLoadConfig struct {
RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"`
VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"`
VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"`
// VPC ID。
VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"`
}

func (s SavePtsSceneRequestSceneLoadConfigVpcLoadConfig) String() string {
Expand Down Expand Up @@ -9360,8 +9369,8 @@ func (client *Client) SaveEnvWithOptions(tmpReq *SaveEnvRequest, runtime *util.R
}
request := &SaveEnvShrinkRequest{}
openapiutil.Convert(tmpReq, request)
if !tea.BoolValue(util.IsUnset(tea.ToMap(tmpReq.Env))) {
request.EnvShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tea.ToMap(tmpReq.Env), tea.String("Env"), tea.String("json"))
if !tea.BoolValue(util.IsUnset(tmpReq.Env)) {
request.EnvShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.Env, tea.String("Env"), tea.String("json"))
}

query := map[string]interface{}{}
Expand Down Expand Up @@ -9410,8 +9419,8 @@ func (client *Client) SaveOpenJMeterSceneWithOptions(tmpReq *SaveOpenJMeterScene
}
request := &SaveOpenJMeterSceneShrinkRequest{}
openapiutil.Convert(tmpReq, request)
if !tea.BoolValue(util.IsUnset(tea.ToMap(tmpReq.OpenJMeterScene))) {
request.OpenJMeterSceneShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tea.ToMap(tmpReq.OpenJMeterScene), tea.String("OpenJMeterScene"), tea.String("json"))
if !tea.BoolValue(util.IsUnset(tmpReq.OpenJMeterScene)) {
request.OpenJMeterSceneShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.OpenJMeterScene, tea.String("OpenJMeterScene"), tea.String("json"))
}

query := map[string]interface{}{}
Expand Down Expand Up @@ -9460,8 +9469,8 @@ func (client *Client) SavePtsSceneWithOptions(tmpReq *SavePtsSceneRequest, runti
}
request := &SavePtsSceneShrinkRequest{}
openapiutil.Convert(tmpReq, request)
if !tea.BoolValue(util.IsUnset(tea.ToMap(tmpReq.Scene))) {
request.SceneShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tea.ToMap(tmpReq.Scene), tea.String("Scene"), tea.String("json"))
if !tea.BoolValue(util.IsUnset(tmpReq.Scene)) {
request.SceneShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.Scene, tea.String("Scene"), tea.String("json"))
}

query := map[string]interface{}{}
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Expand Up @@ -3,9 +3,9 @@ module github.com/alibabacloud-go/pts-20201020/v2
go 1.15

require (
github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.0
github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.2
github.com/alibabacloud-go/endpoint-util v1.1.0
github.com/alibabacloud-go/openapi-util v0.0.11
github.com/alibabacloud-go/openapi-util v0.1.0
github.com/alibabacloud-go/tea v1.1.19
github.com/alibabacloud-go/tea-utils/v2 v2.0.0
github.com/alibabacloud-go/tea-utils/v2 v2.0.1
)

0 comments on commit ccab23b

Please sign in to comment.