From 68fe664e44d29c188999da6f121c9d66b729f586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=97=AE?= Date: Tue, 18 Nov 2025 10:49:30 +0800 Subject: [PATCH 1/4] [oss gateway & util] add structs for SealAppendObject and xxxBucketOverwriteConfig --- .../util/golang/client/structs.go | 321 ++++++++++++++++ .../DeleteBucketOverwriteConfigResponse.java | 34 ++ .../GetBucketOverwriteConfigResponse.java | 45 +++ .../GetBucketOverwriteConfigResponseBody.java | 23 ++ .../PutBucketOverwriteConfigRequest.java | 23 ++ .../PutBucketOverwriteConfigResponse.java | 34 ++ .../alibabacloud_gateway_oss_util/client.py | 1 + .../alibabacloud_gateway_oss_util/structs.py | 342 +++++++++++++++++- 8 files changed, 821 insertions(+), 2 deletions(-) create mode 100644 alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteBucketOverwriteConfigResponse.java create mode 100644 alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponse.java create mode 100644 alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponseBody.java create mode 100644 alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigRequest.java create mode 100644 alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigResponse.java diff --git a/alibabacloud-gateway-oss/util/golang/client/structs.go b/alibabacloud-gateway-oss/util/golang/client/structs.go index d80f7807..ebf81ba7 100644 --- a/alibabacloud-gateway-oss/util/golang/client/structs.go +++ b/alibabacloud-gateway-oss/util/golang/client/structs.go @@ -41980,6 +41980,327 @@ func (s *WriteGetObjectResponseResponse) Validate() error { return dara.Validate(s) } +type OverwriteConfiguration struct { + Rule []*OverwriteConfigurationRule `json:"Rule,omitempty" xml:"Rule,omitempty" type:"Repeated"` +} + +func (s OverwriteConfiguration) String() string { + return dara.Prettify(s) +} + +func (s OverwriteConfiguration) GoString() string { + return s.String() +} + +func (s *OverwriteConfiguration) GetRule() []*OverwriteConfigurationRule { + return s.Rule +} + +func (s *OverwriteConfiguration) SetRule(v []*OverwriteConfigurationRule) *OverwriteConfiguration { + s.Rule = v + return s +} + +func (s *OverwriteConfiguration) Validate() error { + if s.Rule != nil { + for _, item := range s.Rule { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} + +type OverwriteConfigurationRule struct { + // example: + // + // forbid + Action *string `json:"Action,omitempty" xml:"Action,omitempty"` + // example: + // + // forbid-write-rule1 + ID *string `json:"ID,omitempty" xml:"ID,omitempty"` + // example: + // + // a/ + Prefix *string `json:"Prefix,omitempty" xml:"Prefix,omitempty"` + Principals *OverwriteConfigurationRulePrincipals `json:"Principals,omitempty" xml:"Principals,omitempty" type:"Struct"` + // example: + // + // .txt + Suffix *string `json:"Suffix,omitempty" xml:"Suffix,omitempty"` +} + +func (s OverwriteConfigurationRule) String() string { + return dara.Prettify(s) +} + +func (s OverwriteConfigurationRule) GoString() string { + return s.String() +} + +func (s *OverwriteConfigurationRule) GetAction() *string { + return s.Action +} + +func (s *OverwriteConfigurationRule) GetID() *string { + return s.ID +} + +func (s *OverwriteConfigurationRule) GetPrefix() *string { + return s.Prefix +} + +func (s *OverwriteConfigurationRule) GetPrincipals() *OverwriteConfigurationRulePrincipals { + return s.Principals +} + +func (s *OverwriteConfigurationRule) GetSuffix() *string { + return s.Suffix +} + +func (s *OverwriteConfigurationRule) SetAction(v string) *OverwriteConfigurationRule { + s.Action = &v + return s +} + +func (s *OverwriteConfigurationRule) SetID(v string) *OverwriteConfigurationRule { + s.ID = &v + return s +} + +func (s *OverwriteConfigurationRule) SetPrefix(v string) *OverwriteConfigurationRule { + s.Prefix = &v + return s +} + +func (s *OverwriteConfigurationRule) SetPrincipals(v *OverwriteConfigurationRulePrincipals) *OverwriteConfigurationRule { + s.Principals = v + return s +} + +func (s *OverwriteConfigurationRule) SetSuffix(v string) *OverwriteConfigurationRule { + s.Suffix = &v + return s +} + +func (s *OverwriteConfigurationRule) Validate() error { + if s.Principals != nil { + if err := s.Principals.Validate(); err != nil { + return err + } + } + return nil +} + +type OverwriteConfigurationRulePrincipals struct { + Principal []*string `json:"Principal,omitempty" xml:"Principal,omitempty" type:"Repeated"` +} + +func (s OverwriteConfigurationRulePrincipals) String() string { + return dara.Prettify(s) +} + +func (s OverwriteConfigurationRulePrincipals) GoString() string { + return s.String() +} + +func (s *OverwriteConfigurationRulePrincipals) GetPrincipal() []*string { + return s.Principal +} + +func (s *OverwriteConfigurationRulePrincipals) SetPrincipal(v []*string) *OverwriteConfigurationRulePrincipals { + s.Principal = v + return s +} + +func (s *OverwriteConfigurationRulePrincipals) Validate() error { + return dara.Validate(s) +} + +type PutBucketOverwriteConfigRequest struct { + OverwriteConfiguration *OverwriteConfiguration `json:"OverwriteConfiguration,omitempty" xml:"OverwriteConfiguration,omitempty"` +} + +func (s PutBucketOverwriteConfigRequest) String() string { + return dara.Prettify(s) +} + +func (s PutBucketOverwriteConfigRequest) GoString() string { + return s.String() +} + +func (s *PutBucketOverwriteConfigRequest) GetOverwriteConfiguration() *OverwriteConfiguration { + return s.OverwriteConfiguration +} + +func (s *PutBucketOverwriteConfigRequest) SetOverwriteConfiguration(v *OverwriteConfiguration) *PutBucketOverwriteConfigRequest { + s.OverwriteConfiguration = v + return s +} + +func (s *PutBucketOverwriteConfigRequest) Validate() error { + if s.OverwriteConfiguration != nil { + if err := s.OverwriteConfiguration.Validate(); err != nil { + return err + } + } + return nil +} + +type PutBucketOverwriteConfigResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s PutBucketOverwriteConfigResponse) String() string { + return dara.Prettify(s) +} + +func (s PutBucketOverwriteConfigResponse) GoString() string { + return s.String() +} + +func (s *PutBucketOverwriteConfigResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *PutBucketOverwriteConfigResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *PutBucketOverwriteConfigResponse) SetHeaders(v map[string]*string) *PutBucketOverwriteConfigResponse { + s.Headers = v + return s +} + +func (s *PutBucketOverwriteConfigResponse) SetStatusCode(v int32) *PutBucketOverwriteConfigResponse { + s.StatusCode = &v + return s +} + +func (s *PutBucketOverwriteConfigResponse) Validate() error { + return dara.Validate(s) +} + +type GetBucketOverwriteConfigResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetBucketOverwriteConfigResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetBucketOverwriteConfigResponse) String() string { + return dara.Prettify(s) +} + +func (s GetBucketOverwriteConfigResponse) GoString() string { + return s.String() +} + +func (s *GetBucketOverwriteConfigResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetBucketOverwriteConfigResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetBucketOverwriteConfigResponse) GetBody() *GetBucketOverwriteConfigResponseBody { + return s.Body +} + +func (s *GetBucketOverwriteConfigResponse) SetHeaders(v map[string]*string) *GetBucketOverwriteConfigResponse { + s.Headers = v + return s +} + +func (s *GetBucketOverwriteConfigResponse) SetStatusCode(v int32) *GetBucketOverwriteConfigResponse { + s.StatusCode = &v + return s +} + +func (s *GetBucketOverwriteConfigResponse) SetBody(v *GetBucketOverwriteConfigResponseBody) *GetBucketOverwriteConfigResponse { + s.Body = v + return s +} + +func (s *GetBucketOverwriteConfigResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} + +type GetBucketOverwriteConfigResponseBody struct { + OverwriteConfiguration *OverwriteConfiguration `json:"OverwriteConfiguration,omitempty" xml:"OverwriteConfiguration,omitempty"` +} + +func (s GetBucketOverwriteConfigResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetBucketOverwriteConfigResponseBody) GoString() string { + return s.String() +} + +func (s *GetBucketOverwriteConfigResponseBody) GetOverwriteConfiguration() *OverwriteConfiguration { + return s.OverwriteConfiguration +} + +func (s *GetBucketOverwriteConfigResponseBody) SetOverwriteConfiguration(v *OverwriteConfiguration) *GetBucketOverwriteConfigResponseBody { + s.OverwriteConfiguration = v + return s +} + +func (s *GetBucketOverwriteConfigResponseBody) Validate() error { + if s.OverwriteConfiguration != nil { + if err := s.OverwriteConfiguration.Validate(); err != nil { + return err + } + } + return nil +} + +type DeleteBucketOverwriteConfigResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s DeleteBucketOverwriteConfigResponse) String() string { + return dara.Prettify(s) +} + +func (s DeleteBucketOverwriteConfigResponse) GoString() string { + return s.String() +} + +func (s *DeleteBucketOverwriteConfigResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *DeleteBucketOverwriteConfigResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *DeleteBucketOverwriteConfigResponse) SetHeaders(v map[string]*string) *DeleteBucketOverwriteConfigResponse { + s.Headers = v + return s +} + +func (s *DeleteBucketOverwriteConfigResponse) SetStatusCode(v int32) *DeleteBucketOverwriteConfigResponse { + s.StatusCode = &v + return s +} + +func (s *DeleteBucketOverwriteConfigResponse) Validate() error { + return dara.Validate(s) +} + // ================================================================== for hcs-mgw =========================================================== type AddressDetail struct { // This parameter is required. diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteBucketOverwriteConfigResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteBucketOverwriteConfigResponse.java new file mode 100644 index 00000000..d8466582 --- /dev/null +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteBucketOverwriteConfigResponse.java @@ -0,0 +1,34 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.gateway.oss.util.models; + +import com.aliyun.tea.*; + +public class DeleteBucketOverwriteConfigResponse extends TeaModel { + @NameInMap("headers") + public java.util.Map headers; + + @NameInMap("statusCode") + public Integer statusCode; + + public static DeleteBucketOverwriteConfigResponse build(java.util.Map map) throws Exception { + DeleteBucketOverwriteConfigResponse self = new DeleteBucketOverwriteConfigResponse(); + return TeaModel.build(map, self); + } + + public DeleteBucketOverwriteConfigResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public DeleteBucketOverwriteConfigResponse setStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + public Integer getStatusCode() { + return this.statusCode; + } + +} diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponse.java new file mode 100644 index 00000000..cdaccf09 --- /dev/null +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponse.java @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.gateway.oss.util.models; + +import com.aliyun.tea.*; + +public class GetBucketOverwriteConfigResponse extends TeaModel { + @NameInMap("headers") + public java.util.Map headers; + + @NameInMap("statusCode") + public Integer statusCode; + + @NameInMap("body") + public GetBucketOverwriteConfigResponseBody body; + + public static GetBucketOverwriteConfigResponse build(java.util.Map map) throws Exception { + GetBucketOverwriteConfigResponse self = new GetBucketOverwriteConfigResponse(); + return TeaModel.build(map, self); + } + + public GetBucketOverwriteConfigResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public GetBucketOverwriteConfigResponse setStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + public Integer getStatusCode() { + return this.statusCode; + } + + public GetBucketOverwriteConfigResponse setBody(GetBucketOverwriteConfigResponseBody body) { + this.body = body; + return this; + } + public GetBucketOverwriteConfigResponseBody getBody() { + return this.body; + } + +} diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponseBody.java new file mode 100644 index 00000000..54d6dd46 --- /dev/null +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetBucketOverwriteConfigResponseBody.java @@ -0,0 +1,23 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.gateway.oss.util.models; + +import com.aliyun.tea.*; + +public class GetBucketOverwriteConfigResponseBody extends TeaModel { + @NameInMap("OverwriteConfiguration") + public OverwriteConfiguration overwriteConfiguration; + + public static GetBucketOverwriteConfigResponseBody build(java.util.Map map) throws Exception { + GetBucketOverwriteConfigResponseBody self = new GetBucketOverwriteConfigResponseBody(); + return TeaModel.build(map, self); + } + + public GetBucketOverwriteConfigResponseBody setOverwriteConfiguration(OverwriteConfiguration overwriteConfiguration) { + this.overwriteConfiguration = overwriteConfiguration; + return this; + } + public OverwriteConfiguration getOverwriteConfiguration() { + return this.overwriteConfiguration; + } + +} diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigRequest.java new file mode 100644 index 00000000..7a54a6a6 --- /dev/null +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigRequest.java @@ -0,0 +1,23 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.gateway.oss.util.models; + +import com.aliyun.tea.*; + +public class PutBucketOverwriteConfigRequest extends TeaModel { + @NameInMap("OverwriteConfiguration") + public OverwriteConfiguration overwriteConfiguration; + + public static PutBucketOverwriteConfigRequest build(java.util.Map map) throws Exception { + PutBucketOverwriteConfigRequest self = new PutBucketOverwriteConfigRequest(); + return TeaModel.build(map, self); + } + + public PutBucketOverwriteConfigRequest setOverwriteConfiguration(OverwriteConfiguration overwriteConfiguration) { + this.overwriteConfiguration = overwriteConfiguration; + return this; + } + public OverwriteConfiguration getOverwriteConfiguration() { + return this.overwriteConfiguration; + } + +} diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigResponse.java new file mode 100644 index 00000000..097b5e56 --- /dev/null +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/PutBucketOverwriteConfigResponse.java @@ -0,0 +1,34 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.gateway.oss.util.models; + +import com.aliyun.tea.*; + +public class PutBucketOverwriteConfigResponse extends TeaModel { + @NameInMap("headers") + public java.util.Map headers; + + @NameInMap("statusCode") + public Integer statusCode; + + public static PutBucketOverwriteConfigResponse build(java.util.Map map) throws Exception { + PutBucketOverwriteConfigResponse self = new PutBucketOverwriteConfigResponse(); + return TeaModel.build(map, self); + } + + public PutBucketOverwriteConfigResponse setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + public java.util.Map getHeaders() { + return this.headers; + } + + public PutBucketOverwriteConfigResponse setStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + public Integer getStatusCode() { + return this.statusCode; + } + +} diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py index b35cd402..c7e05404 100644 --- a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py @@ -150,6 +150,7 @@ def build_instance_from_model(model): instanceRegistry["StartDataLakeStorageTransferJob"] = build_instance_from_model(StartDataLakeStorageTransferJobResponseBody) instanceRegistry["StartPartUpload"] = build_instance_from_model(StartPartUploadResponseBody) instanceRegistry["UploadPartCopy"] = build_instance_from_model(UploadPartCopyResponseBody) +instanceRegistry["GetBucketOverwriteConfig"] = build_instance_from_model(GetBucketOverwriteConfigResponseBody) # for hcs-mgw diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/structs.py b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/structs.py index ba8b82c4..1248db5e 100644 --- a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/structs.py +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/structs.py @@ -34960,6 +34960,346 @@ def from_map(self, m: dict = None): self.status_code = m.get('statusCode') return self + +class OverwriteConfigurationRulePrincipals(TeaModel): + def __init__( + self, + principal: List[str] = None, + ): + self.principal = principal + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.principal is not None: + result['Principal'] = self.principal + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Principal') is not None: + self.principal = m.get('Principal') + + return self + + +class OverwriteConfigurationRule(TeaModel): + def __init__( + self, + action: str = None, + id: str = None, + prefix: str = None, + principals: OverwriteConfigurationRulePrincipals = None, + suffix: str = None, + ): + self.action = action + self.id = id + self.prefix = prefix + self.principals = principals + self.suffix = suffix + + def validate(self): + if self.principals: + self.principals.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.action is not None: + result['Action'] = self.action + + if self.id is not None: + result['ID'] = self.id + + if self.prefix is not None: + result['Prefix'] = self.prefix + + if self.principals is not None: + result['Principals'] = self.principals.to_map() + + if self.suffix is not None: + result['Suffix'] = self.suffix + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Action') is not None: + self.action = m.get('Action') + + if m.get('ID') is not None: + self.id = m.get('ID') + + if m.get('Prefix') is not None: + self.prefix = m.get('Prefix') + + if m.get('Principals') is not None: + temp_model = OverwriteConfigurationRulePrincipals() + self.principals = temp_model.from_map(m.get('Principals')) + + if m.get('Suffix') is not None: + self.suffix = m.get('Suffix') + + return self + + +class OverwriteConfiguration(TeaModel): + def __init__( + self, + rule: List[OverwriteConfigurationRule] = None, + ): + self.rule = rule + + def validate(self): + if self.rule: + for v1 in self.rule: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['Rule'] = [] + if self.rule is not None: + for k1 in self.rule: + result['Rule'].append(k1.to_map() if k1 else None) + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.rule = [] + if m.get('Rule') is not None: + for k1 in m.get('Rule'): + temp_model = OverwriteConfigurationRule() + self.rule.append(temp_model.from_map(k1)) + + return self + + +class GetBucketOverwriteConfigResponseBody(TeaModel): + def __init__( + self, + overwrite_configuration: OverwriteConfiguration = None, + ): + self.overwrite_configuration = overwrite_configuration + + def validate(self): + if self.overwrite_configuration: + self.overwrite_configuration.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.overwrite_configuration is not None: + result['OverwriteConfiguration'] = self.overwrite_configuration.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('OverwriteConfiguration') is not None: + temp_model = OverwriteConfiguration() + self.overwrite_configuration = temp_model.from_map(m.get('OverwriteConfiguration')) + + return self + + +class GetBucketOverwriteConfigResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: GetBucketOverwriteConfigResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = GetBucketOverwriteConfigResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + + +class PutBucketOverwriteConfigRequest(TeaModel): + def __init__( + self, + overwrite_configuration: OverwriteConfiguration = None, + ): + self.overwrite_configuration = overwrite_configuration + + def validate(self): + if self.overwrite_configuration: + self.overwrite_configuration.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.overwrite_configuration is not None: + result['OverwriteConfiguration'] = self.overwrite_configuration.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('OverwriteConfiguration') is not None: + temp_model = OverwriteConfiguration() + self.overwrite_configuration = temp_model.from_map(m.get('OverwriteConfiguration')) + + return self + + +class PutBucketOverwriteConfigResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + + +class DeleteBucketOverwriteConfigResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + + +class SealAppendObjectResponse(TeaModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + # ================================================================== for hcs-mgw =========================================================== class AddressDetail(TeaModel): @@ -38809,5 +39149,3 @@ def from_map(self, m: dict = None): temp_model = VerifyAddressResponseBody() self.body = temp_model.from_map(m['body']) return self - - From 57467e3ef26b1ead2a6f58e00cf9825f4b35b081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=97=AE?= Date: Wed, 26 Nov 2025 10:31:55 +0800 Subject: [PATCH 2/4] [oss gateway & util] python: split hcs_mgw struct from oss --- alibabacloud-gateway-oss/python/setup.py | 1 + .../alibabacloud_gateway_oss_util/client.py | 43 ++-- .../models/__init__.py | 189 +++++++++++++++ .../models/_address_detail.py | 176 ++++++++++++++ .../models/_audit.py | 33 +++ .../models/_create_address_info.py | 54 +++++ .../models/_create_address_request.py | 37 +++ .../models/_create_address_response.py | 43 ++++ .../models/_create_agent_info.py | 69 ++++++ .../models/_create_agent_request.py | 37 +++ .../models/_create_agent_response.py | 43 ++++ .../models/_create_job_info.py | 186 ++++++++++++++ .../models/_create_job_request.py | 39 +++ .../models/_create_job_response.py | 43 ++++ .../models/_create_report_info.py | 49 ++++ .../models/_create_report_request.py | 37 +++ .../models/_create_report_response.py | 43 ++++ .../models/_create_tunnel_info.py | 44 ++++ .../models/_create_tunnel_request.py | 37 +++ .../models/_create_tunnel_response.py | 43 ++++ .../models/_delete_address_response.py | 43 ++++ .../models/_delete_agent_response.py | 43 ++++ .../models/_delete_job_request.py | 34 +++ .../models/_delete_job_response.py | 43 ++++ .../models/_delete_tunnel_response.py | 43 ++++ .../models/_file_type_filters.py | 41 ++++ .../models/_filter_rule.py | 58 +++++ .../models/_get_address_resp.py | 111 +++++++++ .../models/_get_address_response.py | 54 +++++ .../models/_get_address_response_body.py | 41 ++++ .../models/_get_agent_resp.py | 105 ++++++++ .../models/_get_agent_response.py | 54 +++++ .../models/_get_agent_response_body.py | 37 +++ .../models/_get_agent_status_resp.py | 49 ++++ .../models/_get_agent_status_response.py | 54 +++++ .../models/_get_agent_status_response_body.py | 37 +++ .../models/_get_job_request.py | 34 +++ .../models/_get_job_resp.py | 229 ++++++++++++++++++ .../models/_get_job_response.py | 54 +++++ .../models/_get_job_response_body.py | 37 +++ .../models/_get_job_result_request.py | 36 +++ .../models/_get_job_result_resp.py | 161 ++++++++++++ .../models/_get_job_result_response.py | 54 +++++ .../models/_get_job_result_response_body.py | 37 +++ .../models/_get_report_request.py | 45 ++++ .../models/_get_report_resp.py | 137 +++++++++++ .../models/_get_report_response.py | 54 +++++ .../models/_get_report_response_body.py | 37 +++ .../models/_get_tunnel_resp.py | 76 ++++++ .../models/_get_tunnel_response.py | 54 +++++ .../models/_get_tunnel_response_body.py | 37 +++ .../models/_import_qos.py | 41 ++++ .../models/_job_history.py | 153 ++++++++++++ .../models/_key_filter_item.py | 35 +++ .../models/_key_filters.py | 47 ++++ .../models/_last_modified_filters.py | 47 ++++ .../models/_last_modify_filter_item.py | 44 ++++ .../models/_list_address_request.py | 46 ++++ .../models/_list_address_resp.py | 60 +++++ .../models/_list_address_response.py | 54 +++++ .../models/_list_address_response_body.py | 37 +++ .../models/_list_agent_request.py | 46 ++++ .../models/_list_agent_resp.py | 60 +++++ .../models/_list_agent_response.py | 54 +++++ .../models/_list_agent_response_body.py | 37 +++ .../models/_list_job_history_request.py | 55 +++++ .../models/_list_job_history_resp.py | 60 +++++ .../models/_list_job_history_response.py | 54 +++++ .../models/_list_job_history_response_body.py | 37 +++ .../models/_list_job_info.py | 60 +++++ .../models/_list_job_request.py | 65 +++++ .../models/_list_job_resp.py | 60 +++++ .../models/_list_job_response.py | 54 +++++ .../models/_list_job_response_body.py | 37 +++ .../models/_list_tunnel_request.py | 46 ++++ .../models/_list_tunnel_resp.py | 60 +++++ .../models/_list_tunnel_response.py | 54 +++++ .../models/_list_tunnel_response_body.py | 37 +++ .../models/_schedule_rule.py | 49 ++++ .../models/_time_filter.py | 41 ++++ .../models/_tunnel_qos.py | 41 ++++ .../models/_update_address_info.py | 33 +++ .../models/_update_address_request.py | 37 +++ .../models/_update_address_response.py | 43 ++++ .../models/_update_job_info.py | 44 ++++ .../models/_update_job_request.py | 37 +++ .../models/_update_job_response.py | 43 ++++ .../models/_update_tunnel_info.py | 44 ++++ .../models/_update_tunnel_request.py | 37 +++ .../models/_update_tunnel_response.py | 43 ++++ .../models/_verify_address_resp.py | 57 +++++ .../models/_verify_address_response.py | 54 +++++ .../models/_verify_address_response_body.py | 37 +++ .../models/_verify_resp.py | 49 ++++ 94 files changed, 5284 insertions(+), 20 deletions(-) create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/__init__.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_address_detail.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_audit.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_address_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_agent_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_tunnel_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_file_type_filters.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_filter_rule.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_import_qos.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_job_history.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filter_item.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filters.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modified_filters.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modify_filter_item.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_schedule_rule.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_time_filter.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_tunnel_qos.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_info.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_request.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_resp.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response_body.py create mode 100644 alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_resp.py diff --git a/alibabacloud-gateway-oss/python/setup.py b/alibabacloud-gateway-oss/python/setup.py index c6e1884a..f141922e 100644 --- a/alibabacloud-gateway-oss/python/setup.py +++ b/alibabacloud-gateway-oss/python/setup.py @@ -50,6 +50,7 @@ "alibabacloud_darabonba_signature_util>=0.0.4, <1.0.0", "alibabacloud_darabonba_time>=0.0.1, <1.0.0", "alibabacloud_gateway_oss_util>=0.0.4, <1.0.0", + "darabonba-core>=1.0.4, <2.0.0" ] LONG_DESCRIPTION = '' diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py index c7e05404..e25f1cd8 100644 --- a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/client.py @@ -4,14 +4,14 @@ # import alibabacloud_tea_xml.client from Tea.model import TeaModel -from typing import Dict +from typing import Dict, get_type_hints from xml.etree import ElementTree from collections import defaultdict import inspect from typing_extensions import get_origin, get_args from Tea.exceptions import RequiredArgumentException from .structs import * - +from alibabacloud_hcs_mgw20240626 import models as hcs_mgw_models basic_instance = {} basic_instance[str] = '' @@ -22,16 +22,16 @@ def build_instance_from_model(model): if model in basic_instance: return basic_instance[model] - sig = inspect.signature(model.__init__) params = {} - for para_name, param in sig.parameters.items(): + type_hints = get_type_hints(model.__init__, globalns=globals(), localns=locals()) + for para_name, param in type_hints.items(): if para_name == "self": continue - origin_type = get_origin(param.annotation) + origin_type = get_origin(param) if origin_type is not None and issubclass(origin_type, list): - params[para_name] = [build_instance_from_model(get_args(param.annotation)[0])] + params[para_name] = [build_instance_from_model(get_args(param)[0])] else: - params[para_name] = build_instance_from_model(param.annotation) + params[para_name] = build_instance_from_model(param) return model(**params) @@ -154,24 +154,27 @@ def build_instance_from_model(model): # for hcs-mgw -instanceRegistry["GetAddress"] = build_instance_from_model(GetAddressResponseBody) -instanceRegistry["GetAgent"] = build_instance_from_model(GetAgentResponseBody) -instanceRegistry["GetAgentStatus"] = build_instance_from_model(GetAgentStatusResponseBody) -instanceRegistry["GetJob"] = build_instance_from_model(GetJobResponseBody) -instanceRegistry["GetJobResult"] = build_instance_from_model(GetJobResultResponseBody) -instanceRegistry["GetReport"] = build_instance_from_model(GetReportResponseBody) -instanceRegistry["GetTunnel"] = build_instance_from_model(GetTunnelResponseBody) -instanceRegistry["ListAddress"] = build_instance_from_model(ListAddressResponseBody) -instanceRegistry["ListAgent"] = build_instance_from_model(ListAgentResponseBody) -instanceRegistry["ListJob"] = build_instance_from_model(ListJobResponseBody) -instanceRegistry["ListJobHistory"] = build_instance_from_model(ListJobHistoryResponseBody) -instanceRegistry["ListTunnel"] = build_instance_from_model(ListTunnelResponseBody) -instanceRegistry["VerifyAddress"] = build_instance_from_model(VerifyAddressResponseBody) +main_models = hcs_mgw_models +instanceRegistry["GetAddress"] = build_instance_from_model(main_models.GetAddressResponseBody) +instanceRegistry["GetAgent"] = build_instance_from_model(main_models.GetAgentResponseBody) +instanceRegistry["GetAgentStatus"] = build_instance_from_model(main_models.GetAgentStatusResponseBody) +instanceRegistry["GetJob"] = build_instance_from_model(main_models.GetJobResponseBody) +instanceRegistry["GetJobResult"] = build_instance_from_model(main_models.GetJobResultResponseBody) +instanceRegistry["GetReport"] = build_instance_from_model(main_models.GetReportResponseBody) +instanceRegistry["GetTunnel"] = build_instance_from_model(main_models.GetTunnelResponseBody) +instanceRegistry["ListAddress"] = build_instance_from_model(main_models.ListAddressResponseBody) +instanceRegistry["ListAgent"] = build_instance_from_model(main_models.ListAgentResponseBody) +instanceRegistry["ListJob"] = build_instance_from_model(main_models.ListJobResponseBody) +instanceRegistry["ListJobHistory"] = build_instance_from_model(main_models.ListJobHistoryResponseBody) +instanceRegistry["ListTunnel"] = build_instance_from_model(main_models.ListTunnelResponseBody) +instanceRegistry["VerifyAddress"] = build_instance_from_model(main_models.VerifyAddressResponseBody) class Client: @staticmethod def __parse_xml_impl(t, m): + if t.tag not in m: + return {} d = {t.tag: {} if t.attrib else None} children = list(t) if children: diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/__init__.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/__init__.py new file mode 100644 index 00000000..2ae0261c --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/__init__.py @@ -0,0 +1,189 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from ._address_detail import AddressDetail +from ._audit import Audit +from ._create_address_info import CreateAddressInfo +from ._create_agent_info import CreateAgentInfo +from ._create_job_info import CreateJobInfo +from ._create_report_info import CreateReportInfo +from ._create_tunnel_info import CreateTunnelInfo +from ._file_type_filters import FileTypeFilters +from ._filter_rule import FilterRule +from ._get_address_resp import GetAddressResp +from ._get_agent_resp import GetAgentResp +from ._get_agent_status_resp import GetAgentStatusResp +from ._get_job_resp import GetJobResp +from ._get_job_result_resp import GetJobResultResp +from ._get_report_resp import GetReportResp +from ._get_tunnel_resp import GetTunnelResp +from ._import_qos import ImportQos +from ._job_history import JobHistory +from ._key_filter_item import KeyFilterItem +from ._key_filters import KeyFilters +from ._last_modified_filters import LastModifiedFilters +from ._last_modify_filter_item import LastModifyFilterItem +from ._list_address_resp import ListAddressResp +from ._list_agent_resp import ListAgentResp +from ._list_job_history_resp import ListJobHistoryResp +from ._list_job_info import ListJobInfo +from ._list_job_resp import ListJobResp +from ._list_tunnel_resp import ListTunnelResp +from ._schedule_rule import ScheduleRule +from ._time_filter import TimeFilter +from ._tunnel_qos import TunnelQos +from ._update_address_info import UpdateAddressInfo +from ._update_job_info import UpdateJobInfo +from ._update_tunnel_info import UpdateTunnelInfo +from ._verify_address_resp import VerifyAddressResp +from ._verify_resp import VerifyResp +from ._create_address_request import CreateAddressRequest +from ._create_address_response import CreateAddressResponse +from ._create_agent_request import CreateAgentRequest +from ._create_agent_response import CreateAgentResponse +from ._create_job_request import CreateJobRequest +from ._create_job_response import CreateJobResponse +from ._create_report_request import CreateReportRequest +from ._create_report_response import CreateReportResponse +from ._create_tunnel_request import CreateTunnelRequest +from ._create_tunnel_response import CreateTunnelResponse +from ._delete_address_response import DeleteAddressResponse +from ._delete_agent_response import DeleteAgentResponse +from ._delete_job_request import DeleteJobRequest +from ._delete_job_response import DeleteJobResponse +from ._delete_tunnel_response import DeleteTunnelResponse +from ._get_address_response_body import GetAddressResponseBody +from ._get_address_response import GetAddressResponse +from ._get_agent_response_body import GetAgentResponseBody +from ._get_agent_response import GetAgentResponse +from ._get_agent_status_response_body import GetAgentStatusResponseBody +from ._get_agent_status_response import GetAgentStatusResponse +from ._get_job_request import GetJobRequest +from ._get_job_response_body import GetJobResponseBody +from ._get_job_response import GetJobResponse +from ._get_job_result_request import GetJobResultRequest +from ._get_job_result_response_body import GetJobResultResponseBody +from ._get_job_result_response import GetJobResultResponse +from ._get_report_request import GetReportRequest +from ._get_report_response_body import GetReportResponseBody +from ._get_report_response import GetReportResponse +from ._get_tunnel_response_body import GetTunnelResponseBody +from ._get_tunnel_response import GetTunnelResponse +from ._list_address_request import ListAddressRequest +from ._list_address_response_body import ListAddressResponseBody +from ._list_address_response import ListAddressResponse +from ._list_agent_request import ListAgentRequest +from ._list_agent_response_body import ListAgentResponseBody +from ._list_agent_response import ListAgentResponse +from ._list_job_request import ListJobRequest +from ._list_job_response_body import ListJobResponseBody +from ._list_job_response import ListJobResponse +from ._list_job_history_request import ListJobHistoryRequest +from ._list_job_history_response_body import ListJobHistoryResponseBody +from ._list_job_history_response import ListJobHistoryResponse +from ._list_tunnel_request import ListTunnelRequest +from ._list_tunnel_response_body import ListTunnelResponseBody +from ._list_tunnel_response import ListTunnelResponse +from ._update_address_request import UpdateAddressRequest +from ._update_address_response import UpdateAddressResponse +from ._update_job_request import UpdateJobRequest +from ._update_job_response import UpdateJobResponse +from ._update_tunnel_request import UpdateTunnelRequest +from ._update_tunnel_response import UpdateTunnelResponse +from ._verify_address_response_body import VerifyAddressResponseBody +from ._verify_address_response import VerifyAddressResponse + +__all__ = [ + AddressDetail, + Audit, + CreateAddressInfo, + CreateAgentInfo, + CreateJobInfo, + CreateReportInfo, + CreateTunnelInfo, + FileTypeFilters, + FilterRule, + GetAddressResp, + GetAgentResp, + GetAgentStatusResp, + GetJobResp, + GetJobResultResp, + GetReportResp, + GetTunnelResp, + ImportQos, + JobHistory, + KeyFilterItem, + KeyFilters, + LastModifiedFilters, + LastModifyFilterItem, + ListAddressResp, + ListAgentResp, + ListJobHistoryResp, + ListJobInfo, + ListJobResp, + ListTunnelResp, + ScheduleRule, + TimeFilter, + TunnelQos, + UpdateAddressInfo, + UpdateJobInfo, + UpdateTunnelInfo, + VerifyAddressResp, + VerifyResp, + CreateAddressRequest, + CreateAddressResponse, + CreateAgentRequest, + CreateAgentResponse, + CreateJobRequest, + CreateJobResponse, + CreateReportRequest, + CreateReportResponse, + CreateTunnelRequest, + CreateTunnelResponse, + DeleteAddressResponse, + DeleteAgentResponse, + DeleteJobRequest, + DeleteJobResponse, + DeleteTunnelResponse, + GetAddressResponseBody, + GetAddressResponse, + GetAgentResponseBody, + GetAgentResponse, + GetAgentStatusResponseBody, + GetAgentStatusResponse, + GetJobRequest, + GetJobResponseBody, + GetJobResponse, + GetJobResultRequest, + GetJobResultResponseBody, + GetJobResultResponse, + GetReportRequest, + GetReportResponseBody, + GetReportResponse, + GetTunnelResponseBody, + GetTunnelResponse, + ListAddressRequest, + ListAddressResponseBody, + ListAddressResponse, + ListAgentRequest, + ListAgentResponseBody, + ListAgentResponse, + ListJobRequest, + ListJobResponseBody, + ListJobResponse, + ListJobHistoryRequest, + ListJobHistoryResponseBody, + ListJobHistoryResponse, + ListTunnelRequest, + ListTunnelResponseBody, + ListTunnelResponse, + UpdateAddressRequest, + UpdateAddressResponse, + UpdateJobRequest, + UpdateJobResponse, + UpdateTunnelRequest, + UpdateTunnelResponse, + VerifyAddressResponseBody, + VerifyAddressResponse +] diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_address_detail.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_address_detail.py new file mode 100644 index 00000000..de98f05f --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_address_detail.py @@ -0,0 +1,176 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + + + +class AddressDetail(DaraModel): + def __init__( + self, + access_id: str = None, + access_secret: str = None, + address_type: str = None, + agent_list: str = None, + bucket: str = None, + data_type: str = None, + domain: str = None, + inv_access_id: str = None, + inv_access_secret: str = None, + inv_bucket: str = None, + inv_domain: str = None, + inv_location: str = None, + inv_path: str = None, + inv_region_id: str = None, + inv_role: str = None, + prefix: str = None, + region_id: str = None, + role: str = None, + ): + # This parameter is required. + self.access_id = access_id + # This parameter is required. + self.access_secret = access_secret + # This parameter is required. + self.address_type = address_type + self.agent_list = agent_list + # This parameter is required. + self.bucket = bucket + self.data_type = data_type + # This parameter is required. + self.domain = domain + self.inv_access_id = inv_access_id + self.inv_access_secret = inv_access_secret + self.inv_bucket = inv_bucket + self.inv_domain = inv_domain + self.inv_location = inv_location + self.inv_path = inv_path + self.inv_region_id = inv_region_id + self.inv_role = inv_role + self.prefix = prefix + self.region_id = region_id + self.role = role + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.access_id is not None: + result['AccessId'] = self.access_id + + if self.access_secret is not None: + result['AccessSecret'] = self.access_secret + + if self.address_type is not None: + result['AddressType'] = self.address_type + + if self.agent_list is not None: + result['AgentList'] = self.agent_list + + if self.bucket is not None: + result['Bucket'] = self.bucket + + if self.data_type is not None: + result['DataType'] = self.data_type + + if self.domain is not None: + result['Domain'] = self.domain + + if self.inv_access_id is not None: + result['InvAccessId'] = self.inv_access_id + + if self.inv_access_secret is not None: + result['InvAccessSecret'] = self.inv_access_secret + + if self.inv_bucket is not None: + result['InvBucket'] = self.inv_bucket + + if self.inv_domain is not None: + result['InvDomain'] = self.inv_domain + + if self.inv_location is not None: + result['InvLocation'] = self.inv_location + + if self.inv_path is not None: + result['InvPath'] = self.inv_path + + if self.inv_region_id is not None: + result['InvRegionId'] = self.inv_region_id + + if self.inv_role is not None: + result['InvRole'] = self.inv_role + + if self.prefix is not None: + result['Prefix'] = self.prefix + + if self.region_id is not None: + result['RegionId'] = self.region_id + + if self.role is not None: + result['Role'] = self.role + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AccessId') is not None: + self.access_id = m.get('AccessId') + + if m.get('AccessSecret') is not None: + self.access_secret = m.get('AccessSecret') + + if m.get('AddressType') is not None: + self.address_type = m.get('AddressType') + + if m.get('AgentList') is not None: + self.agent_list = m.get('AgentList') + + if m.get('Bucket') is not None: + self.bucket = m.get('Bucket') + + if m.get('DataType') is not None: + self.data_type = m.get('DataType') + + if m.get('Domain') is not None: + self.domain = m.get('Domain') + + if m.get('InvAccessId') is not None: + self.inv_access_id = m.get('InvAccessId') + + if m.get('InvAccessSecret') is not None: + self.inv_access_secret = m.get('InvAccessSecret') + + if m.get('InvBucket') is not None: + self.inv_bucket = m.get('InvBucket') + + if m.get('InvDomain') is not None: + self.inv_domain = m.get('InvDomain') + + if m.get('InvLocation') is not None: + self.inv_location = m.get('InvLocation') + + if m.get('InvPath') is not None: + self.inv_path = m.get('InvPath') + + if m.get('InvRegionId') is not None: + self.inv_region_id = m.get('InvRegionId') + + if m.get('InvRole') is not None: + self.inv_role = m.get('InvRole') + + if m.get('Prefix') is not None: + self.prefix = m.get('Prefix') + + if m.get('RegionId') is not None: + self.region_id = m.get('RegionId') + + if m.get('Role') is not None: + self.role = m.get('Role') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_audit.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_audit.py new file mode 100644 index 00000000..c19e6c91 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_audit.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class Audit(DaraModel): + def __init__( + self, + log_mode: str = None, + ): + self.log_mode = log_mode + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.log_mode is not None: + result['LogMode'] = self.log_mode + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('LogMode') is not None: + self.log_mode = m.get('LogMode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_info.py new file mode 100644 index 00000000..057f3933 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_info.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateAddressInfo(DaraModel): + def __init__( + self, + address_detail: main_models.AddressDetail = None, + name: str = None, + tags: str = None, + ): + # This parameter is required. + self.address_detail = address_detail + # This parameter is required. + self.name = name + self.tags = tags + + def validate(self): + if self.address_detail: + self.address_detail.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.address_detail is not None: + result['AddressDetail'] = self.address_detail.to_map() + + if self.name is not None: + result['Name'] = self.name + + if self.tags is not None: + result['Tags'] = self.tags + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AddressDetail') is not None: + temp_model = main_models.AddressDetail() + self.address_detail = temp_model.from_map(m.get('AddressDetail')) + + if m.get('Name') is not None: + self.name = m.get('Name') + + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_request.py new file mode 100644 index 00000000..94a10e3c --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_request.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateAddressRequest(DaraModel): + def __init__( + self, + import_address: main_models.CreateAddressInfo = None, + ): + # The details for creating the data address. + self.import_address = import_address + + def validate(self): + if self.import_address: + self.import_address.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_address is not None: + result['ImportAddress'] = self.import_address.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAddress') is not None: + temp_model = main_models.CreateAddressInfo() + self.import_address = temp_model.from_map(m.get('ImportAddress')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_response.py new file mode 100644 index 00000000..701ffc7e --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_address_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class CreateAddressResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_info.py new file mode 100644 index 00000000..7fab5460 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_info.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class CreateAgentInfo(DaraModel): + def __init__( + self, + agent_endpoint: str = None, + deploy_method: str = None, + name: str = None, + tags: str = None, + tunnel_id: str = None, + ): + # This parameter is required. + self.agent_endpoint = agent_endpoint + # This parameter is required. + self.deploy_method = deploy_method + # This parameter is required. + self.name = name + self.tags = tags + # This parameter is required. + self.tunnel_id = tunnel_id + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.agent_endpoint is not None: + result['AgentEndpoint'] = self.agent_endpoint + + if self.deploy_method is not None: + result['DeployMethod'] = self.deploy_method + + if self.name is not None: + result['Name'] = self.name + + if self.tags is not None: + result['Tags'] = self.tags + + if self.tunnel_id is not None: + result['TunnelId'] = self.tunnel_id + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AgentEndpoint') is not None: + self.agent_endpoint = m.get('AgentEndpoint') + + if m.get('DeployMethod') is not None: + self.deploy_method = m.get('DeployMethod') + + if m.get('Name') is not None: + self.name = m.get('Name') + + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('TunnelId') is not None: + self.tunnel_id = m.get('TunnelId') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_request.py new file mode 100644 index 00000000..e9b30af1 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_request.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateAgentRequest(DaraModel): + def __init__( + self, + import_agent: main_models.CreateAgentInfo = None, + ): + # The details for creating the agent. + self.import_agent = import_agent + + def validate(self): + if self.import_agent: + self.import_agent.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_agent is not None: + result['ImportAgent'] = self.import_agent.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAgent') is not None: + temp_model = main_models.CreateAgentInfo() + self.import_agent = temp_model.from_map(m.get('ImportAgent')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_response.py new file mode 100644 index 00000000..eef7c681 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_agent_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class CreateAgentResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_info.py new file mode 100644 index 00000000..4bd3eefd --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_info.py @@ -0,0 +1,186 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateJobInfo(DaraModel): + def __init__( + self, + appendable_to_normal: bool = None, + audit: main_models.Audit = None, + convert_symlink_target: bool = None, + create_report: bool = None, + dest_address: str = None, + enable_multi_versioning: bool = None, + filter_rule: main_models.FilterRule = None, + import_qos: main_models.ImportQos = None, + name: str = None, + overwrite_mode: str = None, + parent_version: str = None, + schedule_rule: main_models.ScheduleRule = None, + src_address: str = None, + tags: str = None, + target_storage_class: str = None, + transfer_mode: str = None, + with_last_modify_time: bool = None, + with_storage_class: bool = None, + ): + self.appendable_to_normal = appendable_to_normal + self.audit = audit + self.convert_symlink_target = convert_symlink_target + self.create_report = create_report + # This parameter is required. + self.dest_address = dest_address + self.enable_multi_versioning = enable_multi_versioning + self.filter_rule = filter_rule + self.import_qos = import_qos + # This parameter is required. + self.name = name + # This parameter is required. + self.overwrite_mode = overwrite_mode + self.parent_version = parent_version + self.schedule_rule = schedule_rule + # This parameter is required. + self.src_address = src_address + self.tags = tags + self.target_storage_class = target_storage_class + # This parameter is required. + self.transfer_mode = transfer_mode + self.with_last_modify_time = with_last_modify_time + self.with_storage_class = with_storage_class + + def validate(self): + if self.audit: + self.audit.validate() + if self.filter_rule: + self.filter_rule.validate() + if self.import_qos: + self.import_qos.validate() + if self.schedule_rule: + self.schedule_rule.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.appendable_to_normal is not None: + result['AppendableToNormal'] = self.appendable_to_normal + + if self.audit is not None: + result['Audit'] = self.audit.to_map() + + if self.convert_symlink_target is not None: + result['ConvertSymlinkTarget'] = self.convert_symlink_target + + if self.create_report is not None: + result['CreateReport'] = self.create_report + + if self.dest_address is not None: + result['DestAddress'] = self.dest_address + + if self.enable_multi_versioning is not None: + result['EnableMultiVersioning'] = self.enable_multi_versioning + + if self.filter_rule is not None: + result['FilterRule'] = self.filter_rule.to_map() + + if self.import_qos is not None: + result['ImportQos'] = self.import_qos.to_map() + + if self.name is not None: + result['Name'] = self.name + + if self.overwrite_mode is not None: + result['OverwriteMode'] = self.overwrite_mode + + if self.parent_version is not None: + result['ParentVersion'] = self.parent_version + + if self.schedule_rule is not None: + result['ScheduleRule'] = self.schedule_rule.to_map() + + if self.src_address is not None: + result['SrcAddress'] = self.src_address + + if self.tags is not None: + result['Tags'] = self.tags + + if self.target_storage_class is not None: + result['TargetStorageClass'] = self.target_storage_class + + if self.transfer_mode is not None: + result['TransferMode'] = self.transfer_mode + + if self.with_last_modify_time is not None: + result['WithLastModifyTime'] = self.with_last_modify_time + + if self.with_storage_class is not None: + result['WithStorageClass'] = self.with_storage_class + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AppendableToNormal') is not None: + self.appendable_to_normal = m.get('AppendableToNormal') + + if m.get('Audit') is not None: + temp_model = main_models.Audit() + self.audit = temp_model.from_map(m.get('Audit')) + + if m.get('ConvertSymlinkTarget') is not None: + self.convert_symlink_target = m.get('ConvertSymlinkTarget') + + if m.get('CreateReport') is not None: + self.create_report = m.get('CreateReport') + + if m.get('DestAddress') is not None: + self.dest_address = m.get('DestAddress') + + if m.get('EnableMultiVersioning') is not None: + self.enable_multi_versioning = m.get('EnableMultiVersioning') + + if m.get('FilterRule') is not None: + temp_model = main_models.FilterRule() + self.filter_rule = temp_model.from_map(m.get('FilterRule')) + + if m.get('ImportQos') is not None: + temp_model = main_models.ImportQos() + self.import_qos = temp_model.from_map(m.get('ImportQos')) + + if m.get('Name') is not None: + self.name = m.get('Name') + + if m.get('OverwriteMode') is not None: + self.overwrite_mode = m.get('OverwriteMode') + + if m.get('ParentVersion') is not None: + self.parent_version = m.get('ParentVersion') + + if m.get('ScheduleRule') is not None: + temp_model = main_models.ScheduleRule() + self.schedule_rule = temp_model.from_map(m.get('ScheduleRule')) + + if m.get('SrcAddress') is not None: + self.src_address = m.get('SrcAddress') + + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('TargetStorageClass') is not None: + self.target_storage_class = m.get('TargetStorageClass') + + if m.get('TransferMode') is not None: + self.transfer_mode = m.get('TransferMode') + + if m.get('WithLastModifyTime') is not None: + self.with_last_modify_time = m.get('WithLastModifyTime') + + if m.get('WithStorageClass') is not None: + self.with_storage_class = m.get('WithStorageClass') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_request.py new file mode 100644 index 00000000..529c204c --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_request.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateJobRequest(DaraModel): + def __init__( + self, + import_job: main_models.CreateJobInfo = None, + ): + # The details for creating the migration task. + # + # This parameter is required. + self.import_job = import_job + + def validate(self): + if self.import_job: + self.import_job.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_job is not None: + result['ImportJob'] = self.import_job.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportJob') is not None: + temp_model = main_models.CreateJobInfo() + self.import_job = temp_model.from_map(m.get('ImportJob')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_response.py new file mode 100644 index 00000000..e87889ba --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_job_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class CreateJobResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_info.py new file mode 100644 index 00000000..3b4fe3a6 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_info.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class CreateReportInfo(DaraModel): + def __init__( + self, + job_name: str = None, + runtime_id: int = None, + version: str = None, + ): + self.job_name = job_name + self.runtime_id = runtime_id + self.version = version + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.job_name is not None: + result['JobName'] = self.job_name + + if self.runtime_id is not None: + result['RuntimeId'] = self.runtime_id + + if self.version is not None: + result['Version'] = self.version + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('JobName') is not None: + self.job_name = m.get('JobName') + + if m.get('RuntimeId') is not None: + self.runtime_id = m.get('RuntimeId') + + if m.get('Version') is not None: + self.version = m.get('Version') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_request.py new file mode 100644 index 00000000..86d62eb7 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_request.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateReportRequest(DaraModel): + def __init__( + self, + create_report: main_models.CreateReportInfo = None, + ): + # The details for creating the migration report. + self.create_report = create_report + + def validate(self): + if self.create_report: + self.create_report.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.create_report is not None: + result['CreateReport'] = self.create_report.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('CreateReport') is not None: + temp_model = main_models.CreateReportInfo() + self.create_report = temp_model.from_map(m.get('CreateReport')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_response.py new file mode 100644 index 00000000..6d045509 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_report_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class CreateReportResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_info.py new file mode 100644 index 00000000..208be798 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_info.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateTunnelInfo(DaraModel): + def __init__( + self, + tags: str = None, + tunnel_qos: main_models.TunnelQos = None, + ): + self.tags = tags + self.tunnel_qos = tunnel_qos + + def validate(self): + if self.tunnel_qos: + self.tunnel_qos.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.tags is not None: + result['Tags'] = self.tags + + if self.tunnel_qos is not None: + result['TunnelQos'] = self.tunnel_qos.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('TunnelQos') is not None: + temp_model = main_models.TunnelQos() + self.tunnel_qos = temp_model.from_map(m.get('TunnelQos')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_request.py new file mode 100644 index 00000000..87bce47f --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_request.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class CreateTunnelRequest(DaraModel): + def __init__( + self, + import_tunnel: main_models.CreateTunnelInfo = None, + ): + # The details for creating the tunnel. + self.import_tunnel = import_tunnel + + def validate(self): + if self.import_tunnel: + self.import_tunnel.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_tunnel is not None: + result['ImportTunnel'] = self.import_tunnel.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportTunnel') is not None: + temp_model = main_models.CreateTunnelInfo() + self.import_tunnel = temp_model.from_map(m.get('ImportTunnel')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_response.py new file mode 100644 index 00000000..c78e16e5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_create_tunnel_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class CreateTunnelResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_address_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_address_response.py new file mode 100644 index 00000000..732c0f4d --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_address_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class DeleteAddressResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_agent_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_agent_response.py new file mode 100644 index 00000000..1b2cc417 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_agent_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class DeleteAgentResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_request.py new file mode 100644 index 00000000..21909898 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_request.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class DeleteJobRequest(DaraModel): + def __init__( + self, + force_delete: bool = None, + ): + # Specifies whether to force delete the subtask. If the task has subtasks and you set this parameter to true, the task and its subtasks are forcibly deleted. If this parameter is set to false, the task and its subtasks fail to be deleted. + self.force_delete = force_delete + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.force_delete is not None: + result['forceDelete'] = self.force_delete + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('forceDelete') is not None: + self.force_delete = m.get('forceDelete') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_response.py new file mode 100644 index 00000000..8adf256f --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_job_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class DeleteJobResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_tunnel_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_tunnel_response.py new file mode 100644 index 00000000..2047e4e8 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_delete_tunnel_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class DeleteTunnelResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_file_type_filters.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_file_type_filters.py new file mode 100644 index 00000000..b98e8fc4 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_file_type_filters.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class FileTypeFilters(DaraModel): + def __init__( + self, + exclude_dir: bool = None, + exclude_symlink: bool = None, + ): + self.exclude_dir = exclude_dir + self.exclude_symlink = exclude_symlink + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.exclude_dir is not None: + result['ExcludeDir'] = self.exclude_dir + + if self.exclude_symlink is not None: + result['ExcludeSymlink'] = self.exclude_symlink + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ExcludeDir') is not None: + self.exclude_dir = m.get('ExcludeDir') + + if m.get('ExcludeSymlink') is not None: + self.exclude_symlink = m.get('ExcludeSymlink') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_filter_rule.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_filter_rule.py new file mode 100644 index 00000000..58d36414 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_filter_rule.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class FilterRule(DaraModel): + def __init__( + self, + file_type_filters: main_models.FileTypeFilters = None, + key_filters: main_models.KeyFilters = None, + last_modified_filters: main_models.LastModifiedFilters = None, + ): + self.file_type_filters = file_type_filters + self.key_filters = key_filters + self.last_modified_filters = last_modified_filters + + def validate(self): + if self.file_type_filters: + self.file_type_filters.validate() + if self.key_filters: + self.key_filters.validate() + if self.last_modified_filters: + self.last_modified_filters.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.file_type_filters is not None: + result['FileTypeFilters'] = self.file_type_filters.to_map() + + if self.key_filters is not None: + result['KeyFilters'] = self.key_filters.to_map() + + if self.last_modified_filters is not None: + result['LastModifiedFilters'] = self.last_modified_filters.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('FileTypeFilters') is not None: + temp_model = main_models.FileTypeFilters() + self.file_type_filters = temp_model.from_map(m.get('FileTypeFilters')) + + if m.get('KeyFilters') is not None: + temp_model = main_models.KeyFilters() + self.key_filters = temp_model.from_map(m.get('KeyFilters')) + + if m.get('LastModifiedFilters') is not None: + temp_model = main_models.LastModifiedFilters() + self.last_modified_filters = temp_model.from_map(m.get('LastModifiedFilters')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_resp.py new file mode 100644 index 00000000..9142feab --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_resp.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetAddressResp(DaraModel): + def __init__( + self, + address_detail: main_models.AddressDetail = None, + create_time: str = None, + modify_time: str = None, + name: str = None, + owner: str = None, + status: str = None, + tags: str = None, + verify_result: main_models.VerifyResp = None, + verify_time: str = None, + version: str = None, + ): + self.address_detail = address_detail + self.create_time = create_time + self.modify_time = modify_time + self.name = name + self.owner = owner + self.status = status + self.tags = tags + self.verify_result = verify_result + self.verify_time = verify_time + self.version = version + + def validate(self): + if self.address_detail: + self.address_detail.validate() + if self.verify_result: + self.verify_result.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.address_detail is not None: + result['AddressDetail'] = self.address_detail.to_map() + + if self.create_time is not None: + result['CreateTime'] = self.create_time + + if self.modify_time is not None: + result['ModifyTime'] = self.modify_time + + if self.name is not None: + result['Name'] = self.name + + if self.owner is not None: + result['Owner'] = self.owner + + if self.status is not None: + result['Status'] = self.status + + if self.tags is not None: + result['Tags'] = self.tags + + if self.verify_result is not None: + result['VerifyResult'] = self.verify_result.to_map() + + if self.verify_time is not None: + result['VerifyTime'] = self.verify_time + + if self.version is not None: + result['Version'] = self.version + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AddressDetail') is not None: + temp_model = main_models.AddressDetail() + self.address_detail = temp_model.from_map(m.get('AddressDetail')) + + if m.get('CreateTime') is not None: + self.create_time = m.get('CreateTime') + + if m.get('ModifyTime') is not None: + self.modify_time = m.get('ModifyTime') + + if m.get('Name') is not None: + self.name = m.get('Name') + + if m.get('Owner') is not None: + self.owner = m.get('Owner') + + if m.get('Status') is not None: + self.status = m.get('Status') + + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('VerifyResult') is not None: + temp_model = main_models.VerifyResp() + self.verify_result = temp_model.from_map(m.get('VerifyResult')) + + if m.get('VerifyTime') is not None: + self.verify_time = m.get('VerifyTime') + + if m.get('Version') is not None: + self.version = m.get('Version') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response.py new file mode 100644 index 00000000..c8f031f0 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetAddressResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.GetAddressResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.GetAddressResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response_body.py new file mode 100644 index 00000000..2d2cf31d --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_address_response_body.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetAddressResponseBody(DaraModel): + def __init__( + self, + import_address: main_models.GetAddressResp = None, + ): + # The details for obtaining the data address. + # + # Valid values: + # + # * 1:1 + self.import_address = import_address + + def validate(self): + if self.import_address: + self.import_address.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_address is not None: + result['ImportAddress'] = self.import_address.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAddress') is not None: + temp_model = main_models.GetAddressResp() + self.import_address = temp_model.from_map(m.get('ImportAddress')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_resp.py new file mode 100644 index 00000000..038326d0 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_resp.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class GetAgentResp(DaraModel): + def __init__( + self, + activation_key: str = None, + agent_endpoint: str = None, + create_time: str = None, + deploy_method: str = None, + modify_time: str = None, + name: str = None, + owner: str = None, + tags: str = None, + tunnel_id: str = None, + version: str = None, + ): + self.activation_key = activation_key + self.agent_endpoint = agent_endpoint + self.create_time = create_time + self.deploy_method = deploy_method + self.modify_time = modify_time + self.name = name + self.owner = owner + self.tags = tags + self.tunnel_id = tunnel_id + self.version = version + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.activation_key is not None: + result['ActivationKey'] = self.activation_key + + if self.agent_endpoint is not None: + result['AgentEndpoint'] = self.agent_endpoint + + if self.create_time is not None: + result['CreateTime'] = self.create_time + + if self.deploy_method is not None: + result['DeployMethod'] = self.deploy_method + + if self.modify_time is not None: + result['ModifyTime'] = self.modify_time + + if self.name is not None: + result['Name'] = self.name + + if self.owner is not None: + result['Owner'] = self.owner + + if self.tags is not None: + result['Tags'] = self.tags + + if self.tunnel_id is not None: + result['TunnelId'] = self.tunnel_id + + if self.version is not None: + result['Version'] = self.version + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ActivationKey') is not None: + self.activation_key = m.get('ActivationKey') + + if m.get('AgentEndpoint') is not None: + self.agent_endpoint = m.get('AgentEndpoint') + + if m.get('CreateTime') is not None: + self.create_time = m.get('CreateTime') + + if m.get('DeployMethod') is not None: + self.deploy_method = m.get('DeployMethod') + + if m.get('ModifyTime') is not None: + self.modify_time = m.get('ModifyTime') + + if m.get('Name') is not None: + self.name = m.get('Name') + + if m.get('Owner') is not None: + self.owner = m.get('Owner') + + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('TunnelId') is not None: + self.tunnel_id = m.get('TunnelId') + + if m.get('Version') is not None: + self.version = m.get('Version') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response.py new file mode 100644 index 00000000..830cf23d --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetAgentResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.GetAgentResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.GetAgentResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response_body.py new file mode 100644 index 00000000..942cb27f --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetAgentResponseBody(DaraModel): + def __init__( + self, + import_agent: main_models.GetAgentResp = None, + ): + # The details for obtaining the details of the agent. + self.import_agent = import_agent + + def validate(self): + if self.import_agent: + self.import_agent.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_agent is not None: + result['ImportAgent'] = self.import_agent.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAgent') is not None: + temp_model = main_models.GetAgentResp() + self.import_agent = temp_model.from_map(m.get('ImportAgent')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_resp.py new file mode 100644 index 00000000..9decfeee --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_resp.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class GetAgentStatusResp(DaraModel): + def __init__( + self, + agent_ip: str = None, + agent_version: str = None, + status: str = None, + ): + self.agent_ip = agent_ip + self.agent_version = agent_version + self.status = status + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.agent_ip is not None: + result['AgentIP'] = self.agent_ip + + if self.agent_version is not None: + result['AgentVersion'] = self.agent_version + + if self.status is not None: + result['Status'] = self.status + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AgentIP') is not None: + self.agent_ip = m.get('AgentIP') + + if m.get('AgentVersion') is not None: + self.agent_version = m.get('AgentVersion') + + if m.get('Status') is not None: + self.status = m.get('Status') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response.py new file mode 100644 index 00000000..046fc148 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetAgentStatusResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.GetAgentStatusResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.GetAgentStatusResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response_body.py new file mode 100644 index 00000000..5ebe4031 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_agent_status_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetAgentStatusResponseBody(DaraModel): + def __init__( + self, + import_agent_status: main_models.GetAgentStatusResp = None, + ): + # The details for obtaining the status of the agent. + self.import_agent_status = import_agent_status + + def validate(self): + if self.import_agent_status: + self.import_agent_status.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_agent_status is not None: + result['ImportAgentStatus'] = self.import_agent_status.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAgentStatus') is not None: + temp_model = main_models.GetAgentStatusResp() + self.import_agent_status = temp_model.from_map(m.get('ImportAgentStatus')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_request.py new file mode 100644 index 00000000..4d3d8f05 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_request.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class GetJobRequest(DaraModel): + def __init__( + self, + by_version: str = None, + ): + # Specifies whether to obtain the details of the migration task by using the task ID. + self.by_version = by_version + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.by_version is not None: + result['byVersion'] = self.by_version + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('byVersion') is not None: + self.by_version = m.get('byVersion') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_resp.py new file mode 100644 index 00000000..ba74ea4d --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_resp.py @@ -0,0 +1,229 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetJobResp(DaraModel): + def __init__( + self, + appendable_to_normal: bool = None, + audit: main_models.Audit = None, + convert_symlink_target: bool = None, + create_report: bool = None, + create_time: str = None, + dest_address: str = None, + enable_multi_versioning: bool = None, + filter_rule: main_models.FilterRule = None, + import_qos: main_models.ImportQos = None, + modify_time: str = None, + name: str = None, + overwrite_mode: str = None, + owner: str = None, + parent_name: str = None, + parent_version: str = None, + schedule_rule: main_models.ScheduleRule = None, + src_address: str = None, + status: str = None, + tags: str = None, + target_storage_class: str = None, + transfer_mode: str = None, + version: str = None, + with_last_modify_time: bool = None, + with_storage_class: bool = None, + ): + self.appendable_to_normal = appendable_to_normal + self.audit = audit + self.convert_symlink_target = convert_symlink_target + self.create_report = create_report + self.create_time = create_time + self.dest_address = dest_address + self.enable_multi_versioning = enable_multi_versioning + self.filter_rule = filter_rule + self.import_qos = import_qos + self.modify_time = modify_time + self.name = name + self.overwrite_mode = overwrite_mode + self.owner = owner + self.parent_name = parent_name + self.parent_version = parent_version + self.schedule_rule = schedule_rule + self.src_address = src_address + self.status = status + self.tags = tags + self.target_storage_class = target_storage_class + self.transfer_mode = transfer_mode + self.version = version + self.with_last_modify_time = with_last_modify_time + self.with_storage_class = with_storage_class + + def validate(self): + if self.audit: + self.audit.validate() + if self.filter_rule: + self.filter_rule.validate() + if self.import_qos: + self.import_qos.validate() + if self.schedule_rule: + self.schedule_rule.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.appendable_to_normal is not None: + result['AppendableToNormal'] = self.appendable_to_normal + + if self.audit is not None: + result['Audit'] = self.audit.to_map() + + if self.convert_symlink_target is not None: + result['ConvertSymlinkTarget'] = self.convert_symlink_target + + if self.create_report is not None: + result['CreateReport'] = self.create_report + + if self.create_time is not None: + result['CreateTime'] = self.create_time + + if self.dest_address is not None: + result['DestAddress'] = self.dest_address + + if self.enable_multi_versioning is not None: + result['EnableMultiVersioning'] = self.enable_multi_versioning + + if self.filter_rule is not None: + result['FilterRule'] = self.filter_rule.to_map() + + if self.import_qos is not None: + result['ImportQos'] = self.import_qos.to_map() + + if self.modify_time is not None: + result['ModifyTime'] = self.modify_time + + if self.name is not None: + result['Name'] = self.name + + if self.overwrite_mode is not None: + result['OverwriteMode'] = self.overwrite_mode + + if self.owner is not None: + result['Owner'] = self.owner + + if self.parent_name is not None: + result['ParentName'] = self.parent_name + + if self.parent_version is not None: + result['ParentVersion'] = self.parent_version + + if self.schedule_rule is not None: + result['ScheduleRule'] = self.schedule_rule.to_map() + + if self.src_address is not None: + result['SrcAddress'] = self.src_address + + if self.status is not None: + result['Status'] = self.status + + if self.tags is not None: + result['Tags'] = self.tags + + if self.target_storage_class is not None: + result['TargetStorageClass'] = self.target_storage_class + + if self.transfer_mode is not None: + result['TransferMode'] = self.transfer_mode + + if self.version is not None: + result['Version'] = self.version + + if self.with_last_modify_time is not None: + result['WithLastModifyTime'] = self.with_last_modify_time + + if self.with_storage_class is not None: + result['WithStorageClass'] = self.with_storage_class + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AppendableToNormal') is not None: + self.appendable_to_normal = m.get('AppendableToNormal') + + if m.get('Audit') is not None: + temp_model = main_models.Audit() + self.audit = temp_model.from_map(m.get('Audit')) + + if m.get('ConvertSymlinkTarget') is not None: + self.convert_symlink_target = m.get('ConvertSymlinkTarget') + + if m.get('CreateReport') is not None: + self.create_report = m.get('CreateReport') + + if m.get('CreateTime') is not None: + self.create_time = m.get('CreateTime') + + if m.get('DestAddress') is not None: + self.dest_address = m.get('DestAddress') + + if m.get('EnableMultiVersioning') is not None: + self.enable_multi_versioning = m.get('EnableMultiVersioning') + + if m.get('FilterRule') is not None: + temp_model = main_models.FilterRule() + self.filter_rule = temp_model.from_map(m.get('FilterRule')) + + if m.get('ImportQos') is not None: + temp_model = main_models.ImportQos() + self.import_qos = temp_model.from_map(m.get('ImportQos')) + + if m.get('ModifyTime') is not None: + self.modify_time = m.get('ModifyTime') + + if m.get('Name') is not None: + self.name = m.get('Name') + + if m.get('OverwriteMode') is not None: + self.overwrite_mode = m.get('OverwriteMode') + + if m.get('Owner') is not None: + self.owner = m.get('Owner') + + if m.get('ParentName') is not None: + self.parent_name = m.get('ParentName') + + if m.get('ParentVersion') is not None: + self.parent_version = m.get('ParentVersion') + + if m.get('ScheduleRule') is not None: + temp_model = main_models.ScheduleRule() + self.schedule_rule = temp_model.from_map(m.get('ScheduleRule')) + + if m.get('SrcAddress') is not None: + self.src_address = m.get('SrcAddress') + + if m.get('Status') is not None: + self.status = m.get('Status') + + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('TargetStorageClass') is not None: + self.target_storage_class = m.get('TargetStorageClass') + + if m.get('TransferMode') is not None: + self.transfer_mode = m.get('TransferMode') + + if m.get('Version') is not None: + self.version = m.get('Version') + + if m.get('WithLastModifyTime') is not None: + self.with_last_modify_time = m.get('WithLastModifyTime') + + if m.get('WithStorageClass') is not None: + self.with_storage_class = m.get('WithStorageClass') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response.py new file mode 100644 index 00000000..054b2b36 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetJobResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.GetJobResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.GetJobResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response_body.py new file mode 100644 index 00000000..609e8a7f --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetJobResponseBody(DaraModel): + def __init__( + self, + import_job: main_models.GetJobResp = None, + ): + # The details for obtaining the details of the migration task. + self.import_job = import_job + + def validate(self): + if self.import_job: + self.import_job.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_job is not None: + result['ImportJob'] = self.import_job.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportJob') is not None: + temp_model = main_models.GetJobResp() + self.import_job = temp_model.from_map(m.get('ImportJob')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_request.py new file mode 100644 index 00000000..160072ea --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_request.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class GetJobResultRequest(DaraModel): + def __init__( + self, + runtime_id: int = None, + ): + # The execution ID of the task. + # + # This parameter is required. + self.runtime_id = runtime_id + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.runtime_id is not None: + result['runtimeId'] = self.runtime_id + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('runtimeId') is not None: + self.runtime_id = m.get('runtimeId') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_resp.py new file mode 100644 index 00000000..0313df7d --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_resp.py @@ -0,0 +1,161 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class GetJobResultResp(DaraModel): + def __init__( + self, + address_type: str = None, + copied_object_count: int = None, + copied_object_size: int = None, + failed_object_count: int = None, + inv_access_id: str = None, + inv_access_secret: str = None, + inv_bucket: str = None, + inv_domain: str = None, + inv_location: str = None, + inv_path: str = None, + inv_region_id: str = None, + ready_retry: str = None, + skipped_object_count: int = None, + skipped_object_size: int = None, + total_object_count: int = None, + total_object_size: int = None, + version: str = None, + ): + self.address_type = address_type + self.copied_object_count = copied_object_count + self.copied_object_size = copied_object_size + self.failed_object_count = failed_object_count + self.inv_access_id = inv_access_id + self.inv_access_secret = inv_access_secret + self.inv_bucket = inv_bucket + self.inv_domain = inv_domain + self.inv_location = inv_location + self.inv_path = inv_path + self.inv_region_id = inv_region_id + self.ready_retry = ready_retry + self.skipped_object_count = skipped_object_count + self.skipped_object_size = skipped_object_size + self.total_object_count = total_object_count + self.total_object_size = total_object_size + self.version = version + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.address_type is not None: + result['AddressType'] = self.address_type + + if self.copied_object_count is not None: + result['CopiedObjectCount'] = self.copied_object_count + + if self.copied_object_size is not None: + result['CopiedObjectSize'] = self.copied_object_size + + if self.failed_object_count is not None: + result['FailedObjectCount'] = self.failed_object_count + + if self.inv_access_id is not None: + result['InvAccessId'] = self.inv_access_id + + if self.inv_access_secret is not None: + result['InvAccessSecret'] = self.inv_access_secret + + if self.inv_bucket is not None: + result['InvBucket'] = self.inv_bucket + + if self.inv_domain is not None: + result['InvDomain'] = self.inv_domain + + if self.inv_location is not None: + result['InvLocation'] = self.inv_location + + if self.inv_path is not None: + result['InvPath'] = self.inv_path + + if self.inv_region_id is not None: + result['InvRegionId'] = self.inv_region_id + + if self.ready_retry is not None: + result['ReadyRetry'] = self.ready_retry + + if self.skipped_object_count is not None: + result['SkippedObjectCount'] = self.skipped_object_count + + if self.skipped_object_size is not None: + result['SkippedObjectSize'] = self.skipped_object_size + + if self.total_object_count is not None: + result['TotalObjectCount'] = self.total_object_count + + if self.total_object_size is not None: + result['TotalObjectSize'] = self.total_object_size + + if self.version is not None: + result['Version'] = self.version + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AddressType') is not None: + self.address_type = m.get('AddressType') + + if m.get('CopiedObjectCount') is not None: + self.copied_object_count = m.get('CopiedObjectCount') + + if m.get('CopiedObjectSize') is not None: + self.copied_object_size = m.get('CopiedObjectSize') + + if m.get('FailedObjectCount') is not None: + self.failed_object_count = m.get('FailedObjectCount') + + if m.get('InvAccessId') is not None: + self.inv_access_id = m.get('InvAccessId') + + if m.get('InvAccessSecret') is not None: + self.inv_access_secret = m.get('InvAccessSecret') + + if m.get('InvBucket') is not None: + self.inv_bucket = m.get('InvBucket') + + if m.get('InvDomain') is not None: + self.inv_domain = m.get('InvDomain') + + if m.get('InvLocation') is not None: + self.inv_location = m.get('InvLocation') + + if m.get('InvPath') is not None: + self.inv_path = m.get('InvPath') + + if m.get('InvRegionId') is not None: + self.inv_region_id = m.get('InvRegionId') + + if m.get('ReadyRetry') is not None: + self.ready_retry = m.get('ReadyRetry') + + if m.get('SkippedObjectCount') is not None: + self.skipped_object_count = m.get('SkippedObjectCount') + + if m.get('SkippedObjectSize') is not None: + self.skipped_object_size = m.get('SkippedObjectSize') + + if m.get('TotalObjectCount') is not None: + self.total_object_count = m.get('TotalObjectCount') + + if m.get('TotalObjectSize') is not None: + self.total_object_size = m.get('TotalObjectSize') + + if m.get('Version') is not None: + self.version = m.get('Version') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response.py new file mode 100644 index 00000000..2a8cbdcb --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetJobResultResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.GetJobResultResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.GetJobResultResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response_body.py new file mode 100644 index 00000000..671fb915 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_job_result_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetJobResultResponseBody(DaraModel): + def __init__( + self, + import_job_result: main_models.GetJobResultResp = None, + ): + # The details for obtaining the retries of the migration task. + self.import_job_result = import_job_result + + def validate(self): + if self.import_job_result: + self.import_job_result.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_job_result is not None: + result['ImportJobResult'] = self.import_job_result.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportJobResult') is not None: + temp_model = main_models.GetJobResultResp() + self.import_job_result = temp_model.from_map(m.get('ImportJobResult')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_request.py new file mode 100644 index 00000000..b8579762 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_request.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class GetReportRequest(DaraModel): + def __init__( + self, + runtime_id: int = None, + version: str = None, + ): + # The execution ID of the migration task. + self.runtime_id = runtime_id + # The ID of the migration task. + # + # This parameter is required. + self.version = version + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.runtime_id is not None: + result['runtimeId'] = self.runtime_id + + if self.version is not None: + result['version'] = self.version + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('runtimeId') is not None: + self.runtime_id = m.get('runtimeId') + + if m.get('version') is not None: + self.version = m.get('version') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_resp.py new file mode 100644 index 00000000..6c8c85fd --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_resp.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class GetReportResp(DaraModel): + def __init__( + self, + copied_count: int = None, + error_message: str = None, + failed_count: int = None, + failed_list_prefix: str = None, + job_create_time: str = None, + job_end_time: str = None, + job_execute_time: str = None, + report_create_time: str = None, + report_end_time: str = None, + skipped_count: int = None, + skipped_list_prefix: str = None, + status: str = None, + total_count: int = None, + total_list_prefix: str = None, + ): + self.copied_count = copied_count + self.error_message = error_message + self.failed_count = failed_count + self.failed_list_prefix = failed_list_prefix + self.job_create_time = job_create_time + self.job_end_time = job_end_time + self.job_execute_time = job_execute_time + self.report_create_time = report_create_time + self.report_end_time = report_end_time + self.skipped_count = skipped_count + self.skipped_list_prefix = skipped_list_prefix + self.status = status + self.total_count = total_count + self.total_list_prefix = total_list_prefix + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.copied_count is not None: + result['CopiedCount'] = self.copied_count + + if self.error_message is not None: + result['ErrorMessage'] = self.error_message + + if self.failed_count is not None: + result['FailedCount'] = self.failed_count + + if self.failed_list_prefix is not None: + result['FailedListPrefix'] = self.failed_list_prefix + + if self.job_create_time is not None: + result['JobCreateTime'] = self.job_create_time + + if self.job_end_time is not None: + result['JobEndTime'] = self.job_end_time + + if self.job_execute_time is not None: + result['JobExecuteTime'] = self.job_execute_time + + if self.report_create_time is not None: + result['ReportCreateTime'] = self.report_create_time + + if self.report_end_time is not None: + result['ReportEndTime'] = self.report_end_time + + if self.skipped_count is not None: + result['SkippedCount'] = self.skipped_count + + if self.skipped_list_prefix is not None: + result['SkippedListPrefix'] = self.skipped_list_prefix + + if self.status is not None: + result['Status'] = self.status + + if self.total_count is not None: + result['TotalCount'] = self.total_count + + if self.total_list_prefix is not None: + result['TotalListPrefix'] = self.total_list_prefix + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('CopiedCount') is not None: + self.copied_count = m.get('CopiedCount') + + if m.get('ErrorMessage') is not None: + self.error_message = m.get('ErrorMessage') + + if m.get('FailedCount') is not None: + self.failed_count = m.get('FailedCount') + + if m.get('FailedListPrefix') is not None: + self.failed_list_prefix = m.get('FailedListPrefix') + + if m.get('JobCreateTime') is not None: + self.job_create_time = m.get('JobCreateTime') + + if m.get('JobEndTime') is not None: + self.job_end_time = m.get('JobEndTime') + + if m.get('JobExecuteTime') is not None: + self.job_execute_time = m.get('JobExecuteTime') + + if m.get('ReportCreateTime') is not None: + self.report_create_time = m.get('ReportCreateTime') + + if m.get('ReportEndTime') is not None: + self.report_end_time = m.get('ReportEndTime') + + if m.get('SkippedCount') is not None: + self.skipped_count = m.get('SkippedCount') + + if m.get('SkippedListPrefix') is not None: + self.skipped_list_prefix = m.get('SkippedListPrefix') + + if m.get('Status') is not None: + self.status = m.get('Status') + + if m.get('TotalCount') is not None: + self.total_count = m.get('TotalCount') + + if m.get('TotalListPrefix') is not None: + self.total_list_prefix = m.get('TotalListPrefix') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response.py new file mode 100644 index 00000000..ffa3c76e --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetReportResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.GetReportResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.GetReportResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response_body.py new file mode 100644 index 00000000..b120da16 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_report_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetReportResponseBody(DaraModel): + def __init__( + self, + get_report_response: main_models.GetReportResp = None, + ): + # The details for obtaining the migration report. + self.get_report_response = get_report_response + + def validate(self): + if self.get_report_response: + self.get_report_response.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.get_report_response is not None: + result['GetReportResponse'] = self.get_report_response.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('GetReportResponse') is not None: + temp_model = main_models.GetReportResp() + self.get_report_response = temp_model.from_map(m.get('GetReportResponse')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_resp.py new file mode 100644 index 00000000..51e37ce5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_resp.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetTunnelResp(DaraModel): + def __init__( + self, + create_time: str = None, + modify_time: str = None, + owner: str = None, + tags: str = None, + tunnel_id: str = None, + tunnel_qos: main_models.TunnelQos = None, + ): + self.create_time = create_time + self.modify_time = modify_time + self.owner = owner + self.tags = tags + self.tunnel_id = tunnel_id + self.tunnel_qos = tunnel_qos + + def validate(self): + if self.tunnel_qos: + self.tunnel_qos.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.create_time is not None: + result['CreateTime'] = self.create_time + + if self.modify_time is not None: + result['ModifyTime'] = self.modify_time + + if self.owner is not None: + result['Owner'] = self.owner + + if self.tags is not None: + result['Tags'] = self.tags + + if self.tunnel_id is not None: + result['TunnelId'] = self.tunnel_id + + if self.tunnel_qos is not None: + result['TunnelQos'] = self.tunnel_qos.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('CreateTime') is not None: + self.create_time = m.get('CreateTime') + + if m.get('ModifyTime') is not None: + self.modify_time = m.get('ModifyTime') + + if m.get('Owner') is not None: + self.owner = m.get('Owner') + + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('TunnelId') is not None: + self.tunnel_id = m.get('TunnelId') + + if m.get('TunnelQos') is not None: + temp_model = main_models.TunnelQos() + self.tunnel_qos = temp_model.from_map(m.get('TunnelQos')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response.py new file mode 100644 index 00000000..5cddb907 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetTunnelResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.GetTunnelResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.GetTunnelResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response_body.py new file mode 100644 index 00000000..b57af796 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_get_tunnel_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class GetTunnelResponseBody(DaraModel): + def __init__( + self, + import_tunnel: main_models.GetTunnelResp = None, + ): + # The details for obtaining the details of the tunnel. + self.import_tunnel = import_tunnel + + def validate(self): + if self.import_tunnel: + self.import_tunnel.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_tunnel is not None: + result['ImportTunnel'] = self.import_tunnel.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportTunnel') is not None: + temp_model = main_models.GetTunnelResp() + self.import_tunnel = temp_model.from_map(m.get('ImportTunnel')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_import_qos.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_import_qos.py new file mode 100644 index 00000000..19110559 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_import_qos.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class ImportQos(DaraModel): + def __init__( + self, + max_band_width: int = None, + max_import_task_qps: int = None, + ): + self.max_band_width = max_band_width + self.max_import_task_qps = max_import_task_qps + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.max_band_width is not None: + result['MaxBandWidth'] = self.max_band_width + + if self.max_import_task_qps is not None: + result['MaxImportTaskQps'] = self.max_import_task_qps + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('MaxBandWidth') is not None: + self.max_band_width = m.get('MaxBandWidth') + + if m.get('MaxImportTaskQps') is not None: + self.max_import_task_qps = m.get('MaxImportTaskQps') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_job_history.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_job_history.py new file mode 100644 index 00000000..d92847d4 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_job_history.py @@ -0,0 +1,153 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class JobHistory(DaraModel): + def __init__( + self, + commit_id: str = None, + copied_count: int = None, + copied_size: int = None, + end_time: str = None, + failed_count: int = None, + job_version: str = None, + list_status: str = None, + message: str = None, + name: str = None, + operator: str = None, + runtime_id: str = None, + runtime_state: str = None, + start_time: str = None, + status: str = None, + total_count: int = None, + total_size: int = None, + ): + self.commit_id = commit_id + self.copied_count = copied_count + self.copied_size = copied_size + self.end_time = end_time + self.failed_count = failed_count + self.job_version = job_version + self.list_status = list_status + self.message = message + self.name = name + self.operator = operator + self.runtime_id = runtime_id + self.runtime_state = runtime_state + self.start_time = start_time + self.status = status + self.total_count = total_count + self.total_size = total_size + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.commit_id is not None: + result['CommitId'] = self.commit_id + + if self.copied_count is not None: + result['CopiedCount'] = self.copied_count + + if self.copied_size is not None: + result['CopiedSize'] = self.copied_size + + if self.end_time is not None: + result['EndTime'] = self.end_time + + if self.failed_count is not None: + result['FailedCount'] = self.failed_count + + if self.job_version is not None: + result['JobVersion'] = self.job_version + + if self.list_status is not None: + result['ListStatus'] = self.list_status + + if self.message is not None: + result['Message'] = self.message + + if self.name is not None: + result['Name'] = self.name + + if self.operator is not None: + result['Operator'] = self.operator + + if self.runtime_id is not None: + result['RuntimeId'] = self.runtime_id + + if self.runtime_state is not None: + result['RuntimeState'] = self.runtime_state + + if self.start_time is not None: + result['StartTime'] = self.start_time + + if self.status is not None: + result['Status'] = self.status + + if self.total_count is not None: + result['TotalCount'] = self.total_count + + if self.total_size is not None: + result['TotalSize'] = self.total_size + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('CommitId') is not None: + self.commit_id = m.get('CommitId') + + if m.get('CopiedCount') is not None: + self.copied_count = m.get('CopiedCount') + + if m.get('CopiedSize') is not None: + self.copied_size = m.get('CopiedSize') + + if m.get('EndTime') is not None: + self.end_time = m.get('EndTime') + + if m.get('FailedCount') is not None: + self.failed_count = m.get('FailedCount') + + if m.get('JobVersion') is not None: + self.job_version = m.get('JobVersion') + + if m.get('ListStatus') is not None: + self.list_status = m.get('ListStatus') + + if m.get('Message') is not None: + self.message = m.get('Message') + + if m.get('Name') is not None: + self.name = m.get('Name') + + if m.get('Operator') is not None: + self.operator = m.get('Operator') + + if m.get('RuntimeId') is not None: + self.runtime_id = m.get('RuntimeId') + + if m.get('RuntimeState') is not None: + self.runtime_state = m.get('RuntimeState') + + if m.get('StartTime') is not None: + self.start_time = m.get('StartTime') + + if m.get('Status') is not None: + self.status = m.get('Status') + + if m.get('TotalCount') is not None: + self.total_count = m.get('TotalCount') + + if m.get('TotalSize') is not None: + self.total_size = m.get('TotalSize') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filter_item.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filter_item.py new file mode 100644 index 00000000..c8ba132a --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filter_item.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from darabonba.model import DaraModel + +class KeyFilterItem(DaraModel): + def __init__( + self, + regex: List[str] = None, + ): + self.regex = regex + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.regex is not None: + result['Regex'] = self.regex + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Regex') is not None: + self.regex = m.get('Regex') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filters.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filters.py new file mode 100644 index 00000000..add695d7 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_key_filters.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class KeyFilters(DaraModel): + def __init__( + self, + excludes: main_models.KeyFilterItem = None, + includes: main_models.KeyFilterItem = None, + ): + self.excludes = excludes + self.includes = includes + + def validate(self): + if self.excludes: + self.excludes.validate() + if self.includes: + self.includes.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.excludes is not None: + result['Excludes'] = self.excludes.to_map() + + if self.includes is not None: + result['Includes'] = self.includes.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Excludes') is not None: + temp_model = main_models.KeyFilterItem() + self.excludes = temp_model.from_map(m.get('Excludes')) + + if m.get('Includes') is not None: + temp_model = main_models.KeyFilterItem() + self.includes = temp_model.from_map(m.get('Includes')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modified_filters.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modified_filters.py new file mode 100644 index 00000000..61bd3658 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modified_filters.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class LastModifiedFilters(DaraModel): + def __init__( + self, + excludes: main_models.LastModifyFilterItem = None, + includes: main_models.LastModifyFilterItem = None, + ): + self.excludes = excludes + self.includes = includes + + def validate(self): + if self.excludes: + self.excludes.validate() + if self.includes: + self.includes.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.excludes is not None: + result['Excludes'] = self.excludes.to_map() + + if self.includes is not None: + result['Includes'] = self.includes.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Excludes') is not None: + temp_model = main_models.LastModifyFilterItem() + self.excludes = temp_model.from_map(m.get('Excludes')) + + if m.get('Includes') is not None: + temp_model = main_models.LastModifyFilterItem() + self.includes = temp_model.from_map(m.get('Includes')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modify_filter_item.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modify_filter_item.py new file mode 100644 index 00000000..195667f6 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_last_modify_filter_item.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class LastModifyFilterItem(DaraModel): + def __init__( + self, + time_filter: List[main_models.TimeFilter] = None, + ): + self.time_filter = time_filter + + def validate(self): + if self.time_filter: + for v1 in self.time_filter: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['TimeFilter'] = [] + if self.time_filter is not None: + for k1 in self.time_filter: + result['TimeFilter'].append(k1.to_map() if k1 else None) + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.time_filter = [] + if m.get('TimeFilter') is not None: + for k1 in m.get('TimeFilter'): + temp_model = main_models.TimeFilter() + self.time_filter.append(temp_model.from_map(k1)) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_request.py new file mode 100644 index 00000000..4e9442df --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_request.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class ListAddressRequest(DaraModel): + def __init__( + self, + count: int = None, + marker: str = None, + ): + # Specifies the number of migration addresses to be returned.\\ + # Valid values: 0 - 1000 (excluding 0).\\ + # Default value: 1000. + self.count = count + # The marker after which the migration addresses are listed.\\ + # By default, this parameter is left empty. + self.marker = marker + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.count is not None: + result['count'] = self.count + + if self.marker is not None: + result['marker'] = self.marker + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('count') is not None: + self.count = m.get('count') + + if m.get('marker') is not None: + self.marker = m.get('marker') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_resp.py new file mode 100644 index 00000000..51ee2c89 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_resp.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListAddressResp(DaraModel): + def __init__( + self, + import_address: List[main_models.GetAddressResp] = None, + next_marker: str = None, + truncated: bool = None, + ): + self.import_address = import_address + self.next_marker = next_marker + self.truncated = truncated + + def validate(self): + if self.import_address: + for v1 in self.import_address: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['ImportAddress'] = [] + if self.import_address is not None: + for k1 in self.import_address: + result['ImportAddress'].append(k1.to_map() if k1 else None) + + if self.next_marker is not None: + result['NextMarker'] = self.next_marker + + if self.truncated is not None: + result['Truncated'] = self.truncated + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.import_address = [] + if m.get('ImportAddress') is not None: + for k1 in m.get('ImportAddress'): + temp_model = main_models.GetAddressResp() + self.import_address.append(temp_model.from_map(k1)) + + if m.get('NextMarker') is not None: + self.next_marker = m.get('NextMarker') + + if m.get('Truncated') is not None: + self.truncated = m.get('Truncated') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response.py new file mode 100644 index 00000000..30f3c895 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListAddressResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.ListAddressResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.ListAddressResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response_body.py new file mode 100644 index 00000000..8c6eb7c4 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_address_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListAddressResponseBody(DaraModel): + def __init__( + self, + import_address_list: main_models.ListAddressResp = None, + ): + # The details of migration addresses. + self.import_address_list = import_address_list + + def validate(self): + if self.import_address_list: + self.import_address_list.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_address_list is not None: + result['ImportAddressList'] = self.import_address_list.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAddressList') is not None: + temp_model = main_models.ListAddressResp() + self.import_address_list = temp_model.from_map(m.get('ImportAddressList')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_request.py new file mode 100644 index 00000000..feecc841 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_request.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class ListAgentRequest(DaraModel): + def __init__( + self, + count: int = None, + marker: str = None, + ): + # Specifies the number of agents to be returned.\\ + # Valid values: 0 - 1000.\\ + # Default value: 1000. + self.count = count + # The marker after which the agents are listed.\\ + # By default, this parameter is left empty. + self.marker = marker + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.count is not None: + result['count'] = self.count + + if self.marker is not None: + result['marker'] = self.marker + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('count') is not None: + self.count = m.get('count') + + if m.get('marker') is not None: + self.marker = m.get('marker') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_resp.py new file mode 100644 index 00000000..a0dd8c28 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_resp.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListAgentResp(DaraModel): + def __init__( + self, + import_agent: List[main_models.GetAgentResp] = None, + next_marker: str = None, + truncated: bool = None, + ): + self.import_agent = import_agent + self.next_marker = next_marker + self.truncated = truncated + + def validate(self): + if self.import_agent: + for v1 in self.import_agent: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['ImportAgent'] = [] + if self.import_agent is not None: + for k1 in self.import_agent: + result['ImportAgent'].append(k1.to_map() if k1 else None) + + if self.next_marker is not None: + result['NextMarker'] = self.next_marker + + if self.truncated is not None: + result['Truncated'] = self.truncated + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.import_agent = [] + if m.get('ImportAgent') is not None: + for k1 in m.get('ImportAgent'): + temp_model = main_models.GetAgentResp() + self.import_agent.append(temp_model.from_map(k1)) + + if m.get('NextMarker') is not None: + self.next_marker = m.get('NextMarker') + + if m.get('Truncated') is not None: + self.truncated = m.get('Truncated') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response.py new file mode 100644 index 00000000..34b843f7 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListAgentResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.ListAgentResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.ListAgentResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response_body.py new file mode 100644 index 00000000..f4a0d731 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_agent_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListAgentResponseBody(DaraModel): + def __init__( + self, + import_agent_list: main_models.ListAgentResp = None, + ): + # The details of the agents. + self.import_agent_list = import_agent_list + + def validate(self): + if self.import_agent_list: + self.import_agent_list.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_agent_list is not None: + result['ImportAgentList'] = self.import_agent_list.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAgentList') is not None: + temp_model = main_models.ListAgentResp() + self.import_agent_list = temp_model.from_map(m.get('ImportAgentList')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_request.py new file mode 100644 index 00000000..5bca666e --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_request.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class ListJobHistoryRequest(DaraModel): + def __init__( + self, + count: int = None, + marker: str = None, + runtime_id: int = None, + ): + # Specifies the number of running records of the migration task to be returned.\\ + # Valid values: 0 - 1000.\\ + # Default value: 1000. + self.count = count + # The marker after which the running history of the task is listed.\\ + # By default, this parameter is left empty. + self.marker = marker + # The execution ID of the task. If you specify an execution ID, only the running history related to the execution ID is listed. + self.runtime_id = runtime_id + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.count is not None: + result['count'] = self.count + + if self.marker is not None: + result['marker'] = self.marker + + if self.runtime_id is not None: + result['runtimeId'] = self.runtime_id + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('count') is not None: + self.count = m.get('count') + + if m.get('marker') is not None: + self.marker = m.get('marker') + + if m.get('runtimeId') is not None: + self.runtime_id = m.get('runtimeId') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_resp.py new file mode 100644 index 00000000..9b16de72 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_resp.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListJobHistoryResp(DaraModel): + def __init__( + self, + job_history: List[main_models.JobHistory] = None, + next_marker: str = None, + truncated: str = None, + ): + self.job_history = job_history + self.next_marker = next_marker + self.truncated = truncated + + def validate(self): + if self.job_history: + for v1 in self.job_history: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['JobHistory'] = [] + if self.job_history is not None: + for k1 in self.job_history: + result['JobHistory'].append(k1.to_map() if k1 else None) + + if self.next_marker is not None: + result['NextMarker'] = self.next_marker + + if self.truncated is not None: + result['Truncated'] = self.truncated + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.job_history = [] + if m.get('JobHistory') is not None: + for k1 in m.get('JobHistory'): + temp_model = main_models.JobHistory() + self.job_history.append(temp_model.from_map(k1)) + + if m.get('NextMarker') is not None: + self.next_marker = m.get('NextMarker') + + if m.get('Truncated') is not None: + self.truncated = m.get('Truncated') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response.py new file mode 100644 index 00000000..fa930f84 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListJobHistoryResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.ListJobHistoryResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.ListJobHistoryResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response_body.py new file mode 100644 index 00000000..5f91fdae --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_history_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListJobHistoryResponseBody(DaraModel): + def __init__( + self, + job_history_list: main_models.ListJobHistoryResp = None, + ): + # The running history of the migration task. + self.job_history_list = job_history_list + + def validate(self): + if self.job_history_list: + self.job_history_list.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.job_history_list is not None: + result['JobHistoryList'] = self.job_history_list.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('JobHistoryList') is not None: + temp_model = main_models.ListJobHistoryResp() + self.job_history_list = temp_model.from_map(m.get('JobHistoryList')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_info.py new file mode 100644 index 00000000..b168e9c0 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_info.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListJobInfo(DaraModel): + def __init__( + self, + import_job: List[main_models.CreateJobInfo] = None, + next_marker: str = None, + truncated: bool = None, + ): + self.import_job = import_job + self.next_marker = next_marker + self.truncated = truncated + + def validate(self): + if self.import_job: + for v1 in self.import_job: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['ImportJob'] = [] + if self.import_job is not None: + for k1 in self.import_job: + result['ImportJob'].append(k1.to_map() if k1 else None) + + if self.next_marker is not None: + result['NextMarker'] = self.next_marker + + if self.truncated is not None: + result['Truncated'] = self.truncated + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.import_job = [] + if m.get('ImportJob') is not None: + for k1 in m.get('ImportJob'): + temp_model = main_models.CreateJobInfo() + self.import_job.append(temp_model.from_map(k1)) + + if m.get('NextMarker') is not None: + self.next_marker = m.get('NextMarker') + + if m.get('Truncated') is not None: + self.truncated = m.get('Truncated') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_request.py new file mode 100644 index 00000000..9ec4ac85 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_request.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class ListJobRequest(DaraModel): + def __init__( + self, + all: bool = None, + count: int = None, + marker: str = None, + parent_name: str = None, + ): + # Specifies whether to return subtasks.\\ + # Valid values: true and false. + self.all = all + # Specifies the number of migration tasks to be returned.\\ + # Valid values: 0 - 1000 (excluding 0).\\ + # Default value: 1000. + self.count = count + # The marker after which the migration tasks are listed.\\ + # By default, this parameter is left empty. + self.marker = marker + # The name of the parent task. If this parameter is specified, all subtasks of the parent task are returned. + self.parent_name = parent_name + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.all is not None: + result['all'] = self.all + + if self.count is not None: + result['count'] = self.count + + if self.marker is not None: + result['marker'] = self.marker + + if self.parent_name is not None: + result['parentName'] = self.parent_name + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('all') is not None: + self.all = m.get('all') + + if m.get('count') is not None: + self.count = m.get('count') + + if m.get('marker') is not None: + self.marker = m.get('marker') + + if m.get('parentName') is not None: + self.parent_name = m.get('parentName') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_resp.py new file mode 100644 index 00000000..aa3feb3e --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_resp.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListJobResp(DaraModel): + def __init__( + self, + import_job: List[main_models.GetJobResp] = None, + next_marker: str = None, + truncated: bool = None, + ): + self.import_job = import_job + self.next_marker = next_marker + self.truncated = truncated + + def validate(self): + if self.import_job: + for v1 in self.import_job: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['ImportJob'] = [] + if self.import_job is not None: + for k1 in self.import_job: + result['ImportJob'].append(k1.to_map() if k1 else None) + + if self.next_marker is not None: + result['NextMarker'] = self.next_marker + + if self.truncated is not None: + result['Truncated'] = self.truncated + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.import_job = [] + if m.get('ImportJob') is not None: + for k1 in m.get('ImportJob'): + temp_model = main_models.GetJobResp() + self.import_job.append(temp_model.from_map(k1)) + + if m.get('NextMarker') is not None: + self.next_marker = m.get('NextMarker') + + if m.get('Truncated') is not None: + self.truncated = m.get('Truncated') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response.py new file mode 100644 index 00000000..d3496920 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListJobResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.ListJobResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.ListJobResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response_body.py new file mode 100644 index 00000000..aa141360 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_job_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListJobResponseBody(DaraModel): + def __init__( + self, + import_job_list: main_models.ListJobResp = None, + ): + # The queried migration tasks. + self.import_job_list = import_job_list + + def validate(self): + if self.import_job_list: + self.import_job_list.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_job_list is not None: + result['ImportJobList'] = self.import_job_list.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportJobList') is not None: + temp_model = main_models.ListJobResp() + self.import_job_list = temp_model.from_map(m.get('ImportJobList')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_request.py new file mode 100644 index 00000000..865be910 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_request.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class ListTunnelRequest(DaraModel): + def __init__( + self, + count: int = None, + marker: str = None, + ): + # Specifies the number of tunnels to be returned.\\ + # Valid values: 0 - 1000.\\ + # Default value: 1000. + self.count = count + # The marker after which tunnels are listed.\\ + # By default, this parameter is left empty. + self.marker = marker + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.count is not None: + result['count'] = self.count + + if self.marker is not None: + result['marker'] = self.marker + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('count') is not None: + self.count = m.get('count') + + if m.get('marker') is not None: + self.marker = m.get('marker') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_resp.py new file mode 100644 index 00000000..c33c5b89 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_resp.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import List + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListTunnelResp(DaraModel): + def __init__( + self, + import_tunnel: List[main_models.GetTunnelResp] = None, + next_marker: str = None, + truncated: bool = None, + ): + self.import_tunnel = import_tunnel + self.next_marker = next_marker + self.truncated = truncated + + def validate(self): + if self.import_tunnel: + for v1 in self.import_tunnel: + if v1: + v1.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + result['ImportTunnel'] = [] + if self.import_tunnel is not None: + for k1 in self.import_tunnel: + result['ImportTunnel'].append(k1.to_map() if k1 else None) + + if self.next_marker is not None: + result['NextMarker'] = self.next_marker + + if self.truncated is not None: + result['Truncated'] = self.truncated + + return result + + def from_map(self, m: dict = None): + m = m or dict() + self.import_tunnel = [] + if m.get('ImportTunnel') is not None: + for k1 in m.get('ImportTunnel'): + temp_model = main_models.GetTunnelResp() + self.import_tunnel.append(temp_model.from_map(k1)) + + if m.get('NextMarker') is not None: + self.next_marker = m.get('NextMarker') + + if m.get('Truncated') is not None: + self.truncated = m.get('Truncated') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response.py new file mode 100644 index 00000000..5124af19 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListTunnelResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.ListTunnelResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.ListTunnelResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response_body.py new file mode 100644 index 00000000..506c7974 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_list_tunnel_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class ListTunnelResponseBody(DaraModel): + def __init__( + self, + import_tunnel_list: main_models.ListTunnelResp = None, + ): + # The details of the tunnels. + self.import_tunnel_list = import_tunnel_list + + def validate(self): + if self.import_tunnel_list: + self.import_tunnel_list.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_tunnel_list is not None: + result['ImportTunnelList'] = self.import_tunnel_list.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportTunnelList') is not None: + temp_model = main_models.ListTunnelResp() + self.import_tunnel_list = temp_model.from_map(m.get('ImportTunnelList')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_schedule_rule.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_schedule_rule.py new file mode 100644 index 00000000..4a689620 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_schedule_rule.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class ScheduleRule(DaraModel): + def __init__( + self, + max_schedule_count: int = None, + start_cron_expression: str = None, + suspend_cron_expression: str = None, + ): + self.max_schedule_count = max_schedule_count + self.start_cron_expression = start_cron_expression + self.suspend_cron_expression = suspend_cron_expression + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.max_schedule_count is not None: + result['MaxScheduleCount'] = self.max_schedule_count + + if self.start_cron_expression is not None: + result['StartCronExpression'] = self.start_cron_expression + + if self.suspend_cron_expression is not None: + result['SuspendCronExpression'] = self.suspend_cron_expression + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('MaxScheduleCount') is not None: + self.max_schedule_count = m.get('MaxScheduleCount') + + if m.get('StartCronExpression') is not None: + self.start_cron_expression = m.get('StartCronExpression') + + if m.get('SuspendCronExpression') is not None: + self.suspend_cron_expression = m.get('SuspendCronExpression') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_time_filter.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_time_filter.py new file mode 100644 index 00000000..4a20f625 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_time_filter.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class TimeFilter(DaraModel): + def __init__( + self, + end_time: str = None, + start_time: str = None, + ): + self.end_time = end_time + self.start_time = start_time + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.end_time is not None: + result['EndTime'] = self.end_time + + if self.start_time is not None: + result['StartTime'] = self.start_time + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('EndTime') is not None: + self.end_time = m.get('EndTime') + + if m.get('StartTime') is not None: + self.start_time = m.get('StartTime') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_tunnel_qos.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_tunnel_qos.py new file mode 100644 index 00000000..32a69621 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_tunnel_qos.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class TunnelQos(DaraModel): + def __init__( + self, + max_bandwidth: int = None, + max_qps: int = None, + ): + self.max_bandwidth = max_bandwidth + self.max_qps = max_qps + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.max_bandwidth is not None: + result['MaxBandwidth'] = self.max_bandwidth + + if self.max_qps is not None: + result['MaxQps'] = self.max_qps + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('MaxBandwidth') is not None: + self.max_bandwidth = m.get('MaxBandwidth') + + if m.get('MaxQps') is not None: + self.max_qps = m.get('MaxQps') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_info.py new file mode 100644 index 00000000..f837a3de --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_info.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class UpdateAddressInfo(DaraModel): + def __init__( + self, + agent_list: str = None, + ): + self.agent_list = agent_list + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.agent_list is not None: + result['AgentList'] = self.agent_list + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('AgentList') is not None: + self.agent_list = m.get('AgentList') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_request.py new file mode 100644 index 00000000..4e9251f3 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_request.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class UpdateAddressRequest(DaraModel): + def __init__( + self, + import_address: main_models.UpdateAddressInfo = None, + ): + # The details for updating the data address. + self.import_address = import_address + + def validate(self): + if self.import_address: + self.import_address.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_address is not None: + result['ImportAddress'] = self.import_address.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportAddress') is not None: + temp_model = main_models.UpdateAddressInfo() + self.import_address = temp_model.from_map(m.get('ImportAddress')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_response.py new file mode 100644 index 00000000..696c9d6e --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_address_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class UpdateAddressResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_info.py new file mode 100644 index 00000000..7fefdde9 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_info.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class UpdateJobInfo(DaraModel): + def __init__( + self, + import_qos: main_models.ImportQos = None, + status: str = None, + ): + self.import_qos = import_qos + self.status = status + + def validate(self): + if self.import_qos: + self.import_qos.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_qos is not None: + result['ImportQos'] = self.import_qos.to_map() + + if self.status is not None: + result['Status'] = self.status + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportQos') is not None: + temp_model = main_models.ImportQos() + self.import_qos = temp_model.from_map(m.get('ImportQos')) + + if m.get('Status') is not None: + self.status = m.get('Status') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_request.py new file mode 100644 index 00000000..5546c9c5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_request.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class UpdateJobRequest(DaraModel): + def __init__( + self, + import_job: main_models.UpdateJobInfo = None, + ): + # The details for updating the task. + self.import_job = import_job + + def validate(self): + if self.import_job: + self.import_job.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_job is not None: + result['ImportJob'] = self.import_job.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportJob') is not None: + temp_model = main_models.UpdateJobInfo() + self.import_job = temp_model.from_map(m.get('ImportJob')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_response.py new file mode 100644 index 00000000..d181d252 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_job_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class UpdateJobResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_info.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_info.py new file mode 100644 index 00000000..87bb94ce --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_info.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class UpdateTunnelInfo(DaraModel): + def __init__( + self, + tags: str = None, + tunnel_qos: main_models.TunnelQos = None, + ): + self.tags = tags + self.tunnel_qos = tunnel_qos + + def validate(self): + if self.tunnel_qos: + self.tunnel_qos.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.tags is not None: + result['Tags'] = self.tags + + if self.tunnel_qos is not None: + result['TunnelQos'] = self.tunnel_qos.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('Tags') is not None: + self.tags = m.get('Tags') + + if m.get('TunnelQos') is not None: + temp_model = main_models.TunnelQos() + self.tunnel_qos = temp_model.from_map(m.get('TunnelQos')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_request.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_request.py new file mode 100644 index 00000000..8b940a69 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_request.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class UpdateTunnelRequest(DaraModel): + def __init__( + self, + import_tunnel: main_models.UpdateTunnelInfo = None, + ): + # The details for updating the tunnel. + self.import_tunnel = import_tunnel + + def validate(self): + if self.import_tunnel: + self.import_tunnel.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.import_tunnel is not None: + result['ImportTunnel'] = self.import_tunnel.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ImportTunnel') is not None: + temp_model = main_models.UpdateTunnelInfo() + self.import_tunnel = temp_model.from_map(m.get('ImportTunnel')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_response.py new file mode 100644 index 00000000..5402e98a --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_update_tunnel_response.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from darabonba.model import DaraModel + +class UpdateTunnelResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + ): + self.headers = headers + self.status_code = status_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_resp.py new file mode 100644 index 00000000..d97ad41a --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_resp.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class VerifyAddressResp(DaraModel): + def __init__( + self, + error_code: str = None, + error_message: str = None, + status: str = None, + verify_time: str = None, + ): + self.error_code = error_code + self.error_message = error_message + self.status = status + self.verify_time = verify_time + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.error_code is not None: + result['ErrorCode'] = self.error_code + + if self.error_message is not None: + result['ErrorMessage'] = self.error_message + + if self.status is not None: + result['Status'] = self.status + + if self.verify_time is not None: + result['VerifyTime'] = self.verify_time + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ErrorCode') is not None: + self.error_code = m.get('ErrorCode') + + if m.get('ErrorMessage') is not None: + self.error_message = m.get('ErrorMessage') + + if m.get('Status') is not None: + self.status = m.get('Status') + + if m.get('VerifyTime') is not None: + self.verify_time = m.get('VerifyTime') + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response.py new file mode 100644 index 00000000..f088bfe3 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from typing import Dict + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class VerifyAddressResponse(DaraModel): + def __init__( + self, + headers: Dict[str, str] = None, + status_code: int = None, + body: main_models.VerifyAddressResponseBody = None, + ): + self.headers = headers + self.status_code = status_code + self.body = body + + def validate(self): + if self.body: + self.body.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.headers is not None: + result['headers'] = self.headers + + if self.status_code is not None: + result['statusCode'] = self.status_code + + if self.body is not None: + result['body'] = self.body.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('headers') is not None: + self.headers = m.get('headers') + + if m.get('statusCode') is not None: + self.status_code = m.get('statusCode') + + if m.get('body') is not None: + temp_model = main_models.VerifyAddressResponseBody() + self.body = temp_model.from_map(m.get('body')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response_body.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response_body.py new file mode 100644 index 00000000..c25d4bd8 --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_address_response_body.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from alibabacloud_hcs_mgw20240626 import models as main_models +from darabonba.model import DaraModel + +class VerifyAddressResponseBody(DaraModel): + def __init__( + self, + verify_address_response: main_models.VerifyAddressResp = None, + ): + # The details for verifying the data address. + self.verify_address_response = verify_address_response + + def validate(self): + if self.verify_address_response: + self.verify_address_response.validate() + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.verify_address_response is not None: + result['VerifyAddressResponse'] = self.verify_address_response.to_map() + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('VerifyAddressResponse') is not None: + temp_model = main_models.VerifyAddressResp() + self.verify_address_response = temp_model.from_map(m.get('VerifyAddressResponse')) + + return self + diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_resp.py b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_resp.py new file mode 100644 index 00000000..4fa7e66c --- /dev/null +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_hcs_mgw20240626/models/_verify_resp.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# This file is auto-generated, don't edit it. Thanks. +from __future__ import annotations + +from darabonba.model import DaraModel + +class VerifyResp(DaraModel): + def __init__( + self, + error_code: str = None, + error_msg: str = None, + http_code: str = None, + ): + self.error_code = error_code + self.error_msg = error_msg + self.http_code = http_code + + def validate(self): + pass + + def to_map(self): + result = dict() + _map = super().to_map() + if _map is not None: + result = _map + if self.error_code is not None: + result['ErrorCode'] = self.error_code + + if self.error_msg is not None: + result['ErrorMsg'] = self.error_msg + + if self.http_code is not None: + result['HttpCode'] = self.http_code + + return result + + def from_map(self, m: dict = None): + m = m or dict() + if m.get('ErrorCode') is not None: + self.error_code = m.get('ErrorCode') + + if m.get('ErrorMsg') is not None: + self.error_msg = m.get('ErrorMsg') + + if m.get('HttpCode') is not None: + self.http_code = m.get('HttpCode') + + return self + From 14998e62e4a3fa6e3b690df8bf9bd539f5866917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=97=AE?= Date: Wed, 26 Nov 2025 12:24:34 +0800 Subject: [PATCH 3/4] [oss gateway & util] java & go: split hcs_mgw struct from oss --- .../util/golang/client/client.go | 28 +- .../hcs_mgw_models/address_detail_model.go | 307 ++ .../client/hcs_mgw_models/audit_model.go | 42 + .../create_address_info_model.go | 77 + .../create_address_request_model.go | 45 + .../create_address_response_model.go | 51 + .../hcs_mgw_models/create_agent_info_model.go | 110 + .../create_agent_request_model.go | 45 + .../create_agent_response_model.go | 51 + .../hcs_mgw_models/create_job_info_model.go | 315 ++ .../create_job_request_model.go | 47 + .../create_job_response_model.go | 51 + .../create_report_info_model.go | 72 + .../create_report_request_model.go | 45 + .../create_report_response_model.go | 51 + .../create_tunnel_info_model.go | 59 + .../create_tunnel_request_model.go | 45 + .../create_tunnel_response_model.go | 51 + .../delete_address_response_model.go | 51 + .../delete_agent_response_model.go | 51 + .../delete_job_request_model.go | 44 + .../delete_job_response_model.go | 51 + .../delete_tunnel_response_model.go | 51 + .../hcs_mgw_models/file_type_filters_model.go | 57 + .../hcs_mgw_models/filter_rule_model.go | 78 + .../hcs_mgw_models/get_address_resp_model.go | 181 + .../get_address_response_body_model.go | 49 + .../get_address_response_model.go | 68 + .../hcs_mgw_models/get_agent_resp_model.go | 174 + .../get_agent_response_body_model.go | 45 + .../get_agent_response_model.go | 68 + .../get_agent_status_resp_model.go | 72 + .../get_agent_status_response_body_model.go | 45 + .../get_agent_status_response_model.go | 68 + .../hcs_mgw_models/get_job_request_model.go | 44 + .../hcs_mgw_models/get_job_resp_model.go | 395 ++ .../get_job_response_body_model.go | 45 + .../hcs_mgw_models/get_job_response_model.go | 68 + .../get_job_result_request_model.go | 46 + .../get_job_result_resp_model.go | 282 ++ .../get_job_result_response_body_model.go | 45 + .../get_job_result_response_model.go | 68 + .../get_report_request_model.go | 63 + .../hcs_mgw_models/get_report_resp_model.go | 225 ++ .../get_report_response_body_model.go | 45 + .../get_report_response_model.go | 68 + .../hcs_mgw_models/get_tunnel_resp_model.go | 119 + .../get_tunnel_response_body_model.go | 45 + .../get_tunnel_response_model.go | 68 + .../client/hcs_mgw_models/import_qos_model.go | 57 + .../hcs_mgw_models/job_history_model.go | 264 ++ .../hcs_mgw_models/key_filter_item_model.go | 39 + .../hcs_mgw_models/key_filters_model.go | 61 + .../last_modified_filters_model.go | 61 + .../last_modify_filter_item_model.go | 48 + .../list_address_request_model.go | 67 + .../hcs_mgw_models/list_address_resp_model.go | 78 + .../list_address_response_body_model.go | 45 + .../list_address_response_model.go | 68 + .../list_agent_request_model.go | 67 + .../hcs_mgw_models/list_agent_resp_model.go | 78 + .../list_agent_response_body_model.go | 45 + .../list_agent_response_model.go | 68 + .../list_job_history_request_model.go | 84 + .../list_job_history_resp_model.go | 78 + .../list_job_history_response_body_model.go | 45 + .../list_job_history_response_model.go | 68 + .../hcs_mgw_models/list_job_info_model.go | 78 + .../hcs_mgw_models/list_job_request_model.go | 103 + .../hcs_mgw_models/list_job_resp_model.go | 78 + .../list_job_response_body_model.go | 45 + .../hcs_mgw_models/list_job_response_model.go | 68 + .../list_tunnel_request_model.go | 67 + .../hcs_mgw_models/list_tunnel_resp_model.go | 72 + .../list_tunnel_response_body_model.go | 45 + .../list_tunnel_response_model.go | 68 + .../hcs_mgw_models/schedule_rule_model.go | 63 + .../hcs_mgw_models/time_filter_model.go | 51 + .../client/hcs_mgw_models/tunnel_qos_model.go | 57 + .../update_address_info_model.go | 39 + .../update_address_request_model.go | 45 + .../update_address_response_model.go | 51 + .../hcs_mgw_models/update_job_info_model.go | 59 + .../update_job_request_model.go | 45 + .../update_job_response_model.go | 51 + .../update_tunnel_info_model.go | 59 + .../update_tunnel_request_model.go | 45 + .../update_tunnel_response_model.go | 51 + .../verify_address_resp_model.go | 81 + .../verify_address_response_body_model.go | 45 + .../verify_address_response_model.go | 68 + .../hcs_mgw_models/verify_resp_model.go | 66 + .../util/golang/client/structs.go | 3225 ----------------- .../com/aliyun/gateway/oss/util/Client.java | 6 +- .../AddressDetail.java | 49 +- .../{models => hcs_mgw_models}/Audit.java | 2 +- .../CreateAddressInfo.java | 4 +- .../CreateAddressRequest.java | 5 +- .../CreateAddressResponse.java | 2 +- .../CreateAgentInfo.java | 2 +- .../CreateAgentRequest.java | 5 +- .../CreateAgentResponse.java | 2 +- .../CreateJobInfo.java | 80 +- .../CreateJobRequest.java | 3 +- .../CreateJobResponse.java | 2 +- .../CreateReportInfo.java | 6 +- .../CreateReportRequest.java | 5 +- .../CreateReportResponse.java | 2 +- .../CreateTunnelInfo.java | 2 +- .../CreateTunnelRequest.java | 5 +- .../CreateTunnelResponse.java | 2 +- .../DeleteAddressResponse.java | 2 +- .../DeleteAgentResponse.java | 2 +- .../DeleteJobRequest.java | 4 +- .../DeleteJobResponse.java | 2 +- .../DeleteTunnelResponse.java | 2 +- .../FileTypeFilters.java | 2 +- .../FilterRule.java | 2 +- .../GetAddressResp.java | 8 +- .../GetAddressResponse.java | 2 +- .../GetAddressResponseBody.java | 8 +- .../GetAgentResp.java | 10 +- .../GetAgentResponse.java | 2 +- .../GetAgentResponseBody.java | 4 +- .../hcs_mgw_models/GetAgentStatusResp.java | 57 + .../GetAgentStatusResponse.java | 2 +- .../GetAgentStatusResponseBody.java | 4 +- .../GetJobRequest.java | 4 +- .../GetJobResp.java | 86 +- .../GetJobResponse.java | 2 +- .../GetJobResponseBody.java | 5 +- .../GetJobResultRequest.java | 3 +- .../GetJobResultResp.java | 46 +- .../GetJobResultResponse.java | 2 +- .../GetJobResultResponseBody.java | 4 +- .../GetReportRequest.java | 5 +- .../GetReportResp.java | 24 +- .../GetReportResponse.java | 2 +- .../GetReportResponseBody.java | 5 +- .../GetTunnelResp.java | 10 +- .../GetTunnelResponse.java | 2 +- .../GetTunnelResponseBody.java | 5 +- .../{models => hcs_mgw_models}/ImportQos.java | 2 +- .../JobHistory.java | 10 +- .../KeyFilterItem.java | 2 +- .../KeyFilters.java | 2 +- .../LastModifiedFilters.java | 2 +- .../LastModifyFilterItem.java | 2 +- .../ListAddressRequest.java | 9 +- .../ListAddressResp.java | 4 +- .../ListAddressResponse.java | 2 +- .../ListAddressResponseBody.java | 5 +- .../ListAgentRequest.java | 9 +- .../ListAgentResp.java | 4 +- .../ListAgentResponse.java | 2 +- .../ListAgentResponseBody.java | 5 +- .../ListJobHistoryRequest.java | 15 +- .../ListJobHistoryResp.java | 4 +- .../ListJobHistoryResponse.java | 2 +- .../ListJobHistoryResponseBody.java | 5 +- .../ListJobInfo.java | 4 +- .../ListJobRequest.java | 14 +- .../ListJobResp.java | 10 +- .../ListJobResponse.java | 2 +- .../ListJobResponseBody.java | 5 +- .../ListTunnelRequest.java | 9 +- .../ListTunnelResp.java | 2 +- .../ListTunnelResponse.java | 2 +- .../ListTunnelResponseBody.java | 4 +- .../ScheduleRule.java | 2 +- .../TimeFilter.java | 2 +- .../{models => hcs_mgw_models}/TunnelQos.java | 2 +- .../UpdateAddressInfo.java | 2 +- .../UpdateAddressRequest.java | 5 +- .../UpdateAddressResponse.java | 2 +- .../UpdateJobInfo.java | 2 +- .../UpdateJobRequest.java | 5 +- .../UpdateJobResponse.java | 2 +- .../UpdateTunnelInfo.java | 6 +- .../UpdateTunnelRequest.java | 5 +- .../UpdateTunnelResponse.java | 2 +- .../VerifyAddressResp.java | 2 +- .../VerifyAddressResponse.java | 2 +- .../VerifyAddressResponseBody.java | 4 +- .../VerifyResp.java | 2 +- .../oss/util/models/GetAgentStatusResp.java | 27 - 186 files changed, 7600 insertions(+), 3431 deletions(-) create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/address_detail_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/audit_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_address_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_agent_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_tunnel_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/file_type_filters_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/filter_rule_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/import_qos_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/job_history_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filter_item_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filters_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modified_filters_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modify_filter_item_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/schedule_rule_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/time_filter_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/tunnel_qos_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_info_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_request_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_resp_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_body_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_model.go create mode 100644 alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_resp_model.go rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/AddressDetail.java (87%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/Audit.java (91%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateAddressInfo.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateAddressRequest.java (84%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateAddressResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateAgentInfo.java (97%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateAgentRequest.java (84%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateAgentResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateJobInfo.java (71%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateJobRequest.java (85%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateJobResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateReportInfo.java (92%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateReportRequest.java (83%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateReportResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateTunnelInfo.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateTunnelRequest.java (84%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/CreateTunnelResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/DeleteAddressResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/DeleteAgentResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/DeleteJobRequest.java (68%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/DeleteJobResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/DeleteTunnelResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/FileTypeFilters.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/FilterRule.java (96%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAddressResp.java (93%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAddressResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAddressResponseBody.java (78%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAgentResp.java (90%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAgentResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAgentResponseBody.java (84%) create mode 100644 alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResp.java rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAgentStatusResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetAgentStatusResponseBody.java (86%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobRequest.java (80%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobResp.java (74%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobResponseBody.java (80%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobResultRequest.java (88%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobResultResp.java (83%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobResultResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetJobResultResponseBody.java (84%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetReportRequest.java (86%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetReportResp.java (91%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetReportResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetReportResponseBody.java (84%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetTunnelResp.java (87%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetTunnelResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/GetTunnelResponseBody.java (82%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ImportQos.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/JobHistory.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/KeyFilterItem.java (91%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/KeyFilters.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/LastModifiedFilters.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/LastModifyFilterItem.java (92%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAddressRequest.java (73%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAddressResp.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAddressResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAddressResponseBody.java (85%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAgentRequest.java (75%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAgentResp.java (93%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAgentResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListAgentResponseBody.java (86%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobHistoryRequest.java (67%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobHistoryResp.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobHistoryResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobHistoryResponseBody.java (85%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobInfo.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobRequest.java (73%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobResp.java (85%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListJobResponseBody.java (85%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListTunnelRequest.java (75%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListTunnelResp.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListTunnelResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ListTunnelResponseBody.java (88%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/ScheduleRule.java (96%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/TimeFilter.java (93%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/TunnelQos.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateAddressInfo.java (91%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateAddressRequest.java (84%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateAddressResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateJobInfo.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateJobRequest.java (83%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateJobResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateTunnelInfo.java (86%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateTunnelRequest.java (84%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/UpdateTunnelResponse.java (94%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/VerifyAddressResp.java (96%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/VerifyAddressResponse.java (95%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/VerifyAddressResponseBody.java (87%) rename alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/{models => hcs_mgw_models}/VerifyResp.java (95%) delete mode 100644 alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResp.java diff --git a/alibabacloud-gateway-oss/util/golang/client/client.go b/alibabacloud-gateway-oss/util/golang/client/client.go index 5959e64a..cee0a0c2 100644 --- a/alibabacloud-gateway-oss/util/golang/client/client.go +++ b/alibabacloud-gateway-oss/util/golang/client/client.go @@ -10,6 +10,7 @@ package client import ( "reflect" + hcs_mgw_models "github.com/alibabacloud-go/alibabacloud-gateway-oss-util/client/hcs_mgw_models" xml "github.com/alibabacloud-go/tea-xml/service" ) @@ -133,21 +134,22 @@ func init() { typeRegistry["StartDataLakeStorageTransferJob"] = reflect.TypeOf(StartDataLakeStorageTransferJobResponseBody{}) typeRegistry["StartPartUpload"] = reflect.TypeOf(StartPartUploadResponseBody{}) typeRegistry["UploadPartCopy"] = reflect.TypeOf(UploadPartCopyResponseBody{}) + typeRegistry["GetBucketOverwriteConfig"] = reflect.TypeOf(GetBucketOverwriteConfigResponseBody{}) // for hcs-mgw - typeRegistry["GetAddress"] = reflect.TypeOf(GetAddressResponseBody{}) - typeRegistry["GetAgent"] = reflect.TypeOf(GetAgentResponseBody{}) - typeRegistry["GetAgentStatus"] = reflect.TypeOf(GetAgentStatusResponseBody{}) - typeRegistry["GetJob"] = reflect.TypeOf(GetJobResponseBody{}) - typeRegistry["GetJobResult"] = reflect.TypeOf(GetJobResultResponseBody{}) - typeRegistry["GetReport"] = reflect.TypeOf(GetReportResponseBody{}) - typeRegistry["GetTunnel"] = reflect.TypeOf(GetTunnelResponseBody{}) - typeRegistry["ListAddress"] = reflect.TypeOf(ListAddressResponseBody{}) - typeRegistry["ListAgent"] = reflect.TypeOf(ListAgentResponseBody{}) - typeRegistry["ListJob"] = reflect.TypeOf(ListJobResponseBody{}) - typeRegistry["ListJobHistory"] = reflect.TypeOf(ListJobHistoryResponseBody{}) - typeRegistry["ListTunnel"] = reflect.TypeOf(ListTunnelResponseBody{}) - typeRegistry["VerifyAddress"] = reflect.TypeOf(VerifyAddressResponseBody{}) + typeRegistry["GetAddress"] = reflect.TypeOf(hcs_mgw_models.GetAddressResponseBody{}) + typeRegistry["GetAgent"] = reflect.TypeOf(hcs_mgw_models.GetAgentResponseBody{}) + typeRegistry["GetAgentStatus"] = reflect.TypeOf(hcs_mgw_models.GetAgentStatusResponseBody{}) + typeRegistry["GetJob"] = reflect.TypeOf(hcs_mgw_models.GetJobResponseBody{}) + typeRegistry["GetJobResult"] = reflect.TypeOf(hcs_mgw_models.GetJobResultResponseBody{}) + typeRegistry["GetReport"] = reflect.TypeOf(hcs_mgw_models.GetReportResponseBody{}) + typeRegistry["GetTunnel"] = reflect.TypeOf(hcs_mgw_models.GetTunnelResponseBody{}) + typeRegistry["ListAddress"] = reflect.TypeOf(hcs_mgw_models.ListAddressResponseBody{}) + typeRegistry["ListAgent"] = reflect.TypeOf(hcs_mgw_models.ListAgentResponseBody{}) + typeRegistry["ListJob"] = reflect.TypeOf(hcs_mgw_models.ListJobResponseBody{}) + typeRegistry["ListJobHistory"] = reflect.TypeOf(hcs_mgw_models.ListJobHistoryResponseBody{}) + typeRegistry["ListTunnel"] = reflect.TypeOf(hcs_mgw_models.ListTunnelResponseBody{}) + typeRegistry["VerifyAddress"] = reflect.TypeOf(hcs_mgw_models.VerifyAddressResponseBody{}) } func ParseXml(bodyStr *string, apiName *string) (_result interface{}, _err error) { diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/address_detail_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/address_detail_model.go new file mode 100644 index 00000000..38615d65 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/address_detail_model.go @@ -0,0 +1,307 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iAddressDetail interface { + dara.Model + String() string + GoString() string + SetAccessId(v string) *AddressDetail + GetAccessId() *string + SetAccessSecret(v string) *AddressDetail + GetAccessSecret() *string + SetAddressType(v string) *AddressDetail + GetAddressType() *string + SetAgentList(v string) *AddressDetail + GetAgentList() *string + SetBucket(v string) *AddressDetail + GetBucket() *string + SetDataType(v string) *AddressDetail + GetDataType() *string + SetDomain(v string) *AddressDetail + GetDomain() *string + SetInvAccessId(v string) *AddressDetail + GetInvAccessId() *string + SetInvAccessSecret(v string) *AddressDetail + GetInvAccessSecret() *string + SetInvBucket(v string) *AddressDetail + GetInvBucket() *string + SetInvDomain(v string) *AddressDetail + GetInvDomain() *string + SetInvLocation(v string) *AddressDetail + GetInvLocation() *string + SetInvPath(v string) *AddressDetail + GetInvPath() *string + SetInvRegionId(v string) *AddressDetail + GetInvRegionId() *string + SetInvRole(v string) *AddressDetail + GetInvRole() *string + SetPrefix(v string) *AddressDetail + GetPrefix() *string + SetRegionId(v string) *AddressDetail + GetRegionId() *string + SetRole(v string) *AddressDetail + GetRole() *string +} + +type AddressDetail struct { + // This parameter is required. + // + // example: + // + // ******************* + AccessId *string `json:"AccessId,omitempty" xml:"AccessId,omitempty"` + // This parameter is required. + // + // example: + // + // ******************* + AccessSecret *string `json:"AccessSecret,omitempty" xml:"AccessSecret,omitempty"` + // This parameter is required. + // + // example: + // + // ossinv + AddressType *string `json:"AddressType,omitempty" xml:"AddressType,omitempty"` + // example: + // + // agnet1,agent2,agent3 + AgentList *string `json:"AgentList,omitempty" xml:"AgentList,omitempty"` + // This parameter is required. + // + // example: + // + // + Bucket *string `json:"Bucket,omitempty" xml:"Bucket,omitempty"` + // example: + // + // oss + DataType *string `json:"DataType,omitempty" xml:"DataType,omitempty"` + // This parameter is required. + // + // example: + // + // oss-cn-hangzhou.aliyuncs.com + Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"` + // example: + // + // ******************* + InvAccessId *string `json:"InvAccessId,omitempty" xml:"InvAccessId,omitempty"` + // example: + // + // ******************* + InvAccessSecret *string `json:"InvAccessSecret,omitempty" xml:"InvAccessSecret,omitempty"` + // example: + // + // + InvBucket *string `json:"InvBucket,omitempty" xml:"InvBucket,omitempty"` + // example: + // + // oss-cn-hangzhou.aliyuncs.com + InvDomain *string `json:"InvDomain,omitempty" xml:"InvDomain,omitempty"` + // example: + // + // oss + InvLocation *string `json:"InvLocation,omitempty" xml:"InvLocation,omitempty"` + // example: + // + // dir/manifest.json + InvPath *string `json:"InvPath,omitempty" xml:"InvPath,omitempty"` + // example: + // + // oss-cn-hangzhou + InvRegionId *string `json:"InvRegionId,omitempty" xml:"InvRegionId,omitempty"` + // example: + // + // + InvRole *string `json:"InvRole,omitempty" xml:"InvRole,omitempty"` + // example: + // + // dir1/dir2/ + Prefix *string `json:"Prefix,omitempty" xml:"Prefix,omitempty"` + // example: + // + // oss-cn-hangzhou + RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` + // example: + // + // + Role *string `json:"Role,omitempty" xml:"Role,omitempty"` +} + +func (s AddressDetail) String() string { + return dara.Prettify(s) +} + +func (s AddressDetail) GoString() string { + return s.String() +} + +func (s *AddressDetail) GetAccessId() *string { + return s.AccessId +} + +func (s *AddressDetail) GetAccessSecret() *string { + return s.AccessSecret +} + +func (s *AddressDetail) GetAddressType() *string { + return s.AddressType +} + +func (s *AddressDetail) GetAgentList() *string { + return s.AgentList +} + +func (s *AddressDetail) GetBucket() *string { + return s.Bucket +} + +func (s *AddressDetail) GetDataType() *string { + return s.DataType +} + +func (s *AddressDetail) GetDomain() *string { + return s.Domain +} + +func (s *AddressDetail) GetInvAccessId() *string { + return s.InvAccessId +} + +func (s *AddressDetail) GetInvAccessSecret() *string { + return s.InvAccessSecret +} + +func (s *AddressDetail) GetInvBucket() *string { + return s.InvBucket +} + +func (s *AddressDetail) GetInvDomain() *string { + return s.InvDomain +} + +func (s *AddressDetail) GetInvLocation() *string { + return s.InvLocation +} + +func (s *AddressDetail) GetInvPath() *string { + return s.InvPath +} + +func (s *AddressDetail) GetInvRegionId() *string { + return s.InvRegionId +} + +func (s *AddressDetail) GetInvRole() *string { + return s.InvRole +} + +func (s *AddressDetail) GetPrefix() *string { + return s.Prefix +} + +func (s *AddressDetail) GetRegionId() *string { + return s.RegionId +} + +func (s *AddressDetail) GetRole() *string { + return s.Role +} + +func (s *AddressDetail) SetAccessId(v string) *AddressDetail { + s.AccessId = &v + return s +} + +func (s *AddressDetail) SetAccessSecret(v string) *AddressDetail { + s.AccessSecret = &v + return s +} + +func (s *AddressDetail) SetAddressType(v string) *AddressDetail { + s.AddressType = &v + return s +} + +func (s *AddressDetail) SetAgentList(v string) *AddressDetail { + s.AgentList = &v + return s +} + +func (s *AddressDetail) SetBucket(v string) *AddressDetail { + s.Bucket = &v + return s +} + +func (s *AddressDetail) SetDataType(v string) *AddressDetail { + s.DataType = &v + return s +} + +func (s *AddressDetail) SetDomain(v string) *AddressDetail { + s.Domain = &v + return s +} + +func (s *AddressDetail) SetInvAccessId(v string) *AddressDetail { + s.InvAccessId = &v + return s +} + +func (s *AddressDetail) SetInvAccessSecret(v string) *AddressDetail { + s.InvAccessSecret = &v + return s +} + +func (s *AddressDetail) SetInvBucket(v string) *AddressDetail { + s.InvBucket = &v + return s +} + +func (s *AddressDetail) SetInvDomain(v string) *AddressDetail { + s.InvDomain = &v + return s +} + +func (s *AddressDetail) SetInvLocation(v string) *AddressDetail { + s.InvLocation = &v + return s +} + +func (s *AddressDetail) SetInvPath(v string) *AddressDetail { + s.InvPath = &v + return s +} + +func (s *AddressDetail) SetInvRegionId(v string) *AddressDetail { + s.InvRegionId = &v + return s +} + +func (s *AddressDetail) SetInvRole(v string) *AddressDetail { + s.InvRole = &v + return s +} + +func (s *AddressDetail) SetPrefix(v string) *AddressDetail { + s.Prefix = &v + return s +} + +func (s *AddressDetail) SetRegionId(v string) *AddressDetail { + s.RegionId = &v + return s +} + +func (s *AddressDetail) SetRole(v string) *AddressDetail { + s.Role = &v + return s +} + +func (s *AddressDetail) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/audit_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/audit_model.go new file mode 100644 index 00000000..acba9bdd --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/audit_model.go @@ -0,0 +1,42 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iAudit interface { + dara.Model + String() string + GoString() string + SetLogMode(v string) *Audit + GetLogMode() *string +} + +type Audit struct { + // example: + // + // off + LogMode *string `json:"LogMode,omitempty" xml:"LogMode,omitempty"` +} + +func (s Audit) String() string { + return dara.Prettify(s) +} + +func (s Audit) GoString() string { + return s.String() +} + +func (s *Audit) GetLogMode() *string { + return s.LogMode +} + +func (s *Audit) SetLogMode(v string) *Audit { + s.LogMode = &v + return s +} + +func (s *Audit) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_info_model.go new file mode 100644 index 00000000..87150b2c --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_info_model.go @@ -0,0 +1,77 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateAddressInfo interface { + dara.Model + String() string + GoString() string + SetAddressDetail(v *AddressDetail) *CreateAddressInfo + GetAddressDetail() *AddressDetail + SetName(v string) *CreateAddressInfo + GetName() *string + SetTags(v string) *CreateAddressInfo + GetTags() *string +} + +type CreateAddressInfo struct { + // This parameter is required. + AddressDetail *AddressDetail `json:"AddressDetail,omitempty" xml:"AddressDetail,omitempty"` + // This parameter is required. + // + // example: + // + // + Name *string `json:"Name,omitempty" xml:"Name,omitempty"` + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` +} + +func (s CreateAddressInfo) String() string { + return dara.Prettify(s) +} + +func (s CreateAddressInfo) GoString() string { + return s.String() +} + +func (s *CreateAddressInfo) GetAddressDetail() *AddressDetail { + return s.AddressDetail +} + +func (s *CreateAddressInfo) GetName() *string { + return s.Name +} + +func (s *CreateAddressInfo) GetTags() *string { + return s.Tags +} + +func (s *CreateAddressInfo) SetAddressDetail(v *AddressDetail) *CreateAddressInfo { + s.AddressDetail = v + return s +} + +func (s *CreateAddressInfo) SetName(v string) *CreateAddressInfo { + s.Name = &v + return s +} + +func (s *CreateAddressInfo) SetTags(v string) *CreateAddressInfo { + s.Tags = &v + return s +} + +func (s *CreateAddressInfo) Validate() error { + if s.AddressDetail != nil { + if err := s.AddressDetail.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_request_model.go new file mode 100644 index 00000000..4c3e4c06 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_request_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateAddressRequest interface { + dara.Model + String() string + GoString() string + SetImportAddress(v *CreateAddressInfo) *CreateAddressRequest + GetImportAddress() *CreateAddressInfo +} + +type CreateAddressRequest struct { + // The details for creating the data address. + ImportAddress *CreateAddressInfo `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty"` +} + +func (s CreateAddressRequest) String() string { + return dara.Prettify(s) +} + +func (s CreateAddressRequest) GoString() string { + return s.String() +} + +func (s *CreateAddressRequest) GetImportAddress() *CreateAddressInfo { + return s.ImportAddress +} + +func (s *CreateAddressRequest) SetImportAddress(v *CreateAddressInfo) *CreateAddressRequest { + s.ImportAddress = v + return s +} + +func (s *CreateAddressRequest) Validate() error { + if s.ImportAddress != nil { + if err := s.ImportAddress.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_response_model.go new file mode 100644 index 00000000..d8515253 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_address_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateAddressResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *CreateAddressResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *CreateAddressResponse + GetStatusCode() *int32 +} + +type CreateAddressResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s CreateAddressResponse) String() string { + return dara.Prettify(s) +} + +func (s CreateAddressResponse) GoString() string { + return s.String() +} + +func (s *CreateAddressResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *CreateAddressResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *CreateAddressResponse) SetHeaders(v map[string]*string) *CreateAddressResponse { + s.Headers = v + return s +} + +func (s *CreateAddressResponse) SetStatusCode(v int32) *CreateAddressResponse { + s.StatusCode = &v + return s +} + +func (s *CreateAddressResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_info_model.go new file mode 100644 index 00000000..d3ba5bda --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_info_model.go @@ -0,0 +1,110 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateAgentInfo interface { + dara.Model + String() string + GoString() string + SetAgentEndpoint(v string) *CreateAgentInfo + GetAgentEndpoint() *string + SetDeployMethod(v string) *CreateAgentInfo + GetDeployMethod() *string + SetName(v string) *CreateAgentInfo + GetName() *string + SetTags(v string) *CreateAgentInfo + GetTags() *string + SetTunnelId(v string) *CreateAgentInfo + GetTunnelId() *string +} + +type CreateAgentInfo struct { + // This parameter is required. + // + // example: + // + // vpc + AgentEndpoint *string `json:"AgentEndpoint,omitempty" xml:"AgentEndpoint,omitempty"` + // This parameter is required. + // + // example: + // + // default + DeployMethod *string `json:"DeployMethod,omitempty" xml:"DeployMethod,omitempty"` + // This parameter is required. + // + // example: + // + // test_name + Name *string `json:"Name,omitempty" xml:"Name,omitempty"` + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + // This parameter is required. + // + // example: + // + // test_tunnel_id + TunnelId *string `json:"TunnelId,omitempty" xml:"TunnelId,omitempty"` +} + +func (s CreateAgentInfo) String() string { + return dara.Prettify(s) +} + +func (s CreateAgentInfo) GoString() string { + return s.String() +} + +func (s *CreateAgentInfo) GetAgentEndpoint() *string { + return s.AgentEndpoint +} + +func (s *CreateAgentInfo) GetDeployMethod() *string { + return s.DeployMethod +} + +func (s *CreateAgentInfo) GetName() *string { + return s.Name +} + +func (s *CreateAgentInfo) GetTags() *string { + return s.Tags +} + +func (s *CreateAgentInfo) GetTunnelId() *string { + return s.TunnelId +} + +func (s *CreateAgentInfo) SetAgentEndpoint(v string) *CreateAgentInfo { + s.AgentEndpoint = &v + return s +} + +func (s *CreateAgentInfo) SetDeployMethod(v string) *CreateAgentInfo { + s.DeployMethod = &v + return s +} + +func (s *CreateAgentInfo) SetName(v string) *CreateAgentInfo { + s.Name = &v + return s +} + +func (s *CreateAgentInfo) SetTags(v string) *CreateAgentInfo { + s.Tags = &v + return s +} + +func (s *CreateAgentInfo) SetTunnelId(v string) *CreateAgentInfo { + s.TunnelId = &v + return s +} + +func (s *CreateAgentInfo) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_request_model.go new file mode 100644 index 00000000..b5d63533 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_request_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateAgentRequest interface { + dara.Model + String() string + GoString() string + SetImportAgent(v *CreateAgentInfo) *CreateAgentRequest + GetImportAgent() *CreateAgentInfo +} + +type CreateAgentRequest struct { + // The details for creating the agent. + ImportAgent *CreateAgentInfo `json:"ImportAgent,omitempty" xml:"ImportAgent,omitempty"` +} + +func (s CreateAgentRequest) String() string { + return dara.Prettify(s) +} + +func (s CreateAgentRequest) GoString() string { + return s.String() +} + +func (s *CreateAgentRequest) GetImportAgent() *CreateAgentInfo { + return s.ImportAgent +} + +func (s *CreateAgentRequest) SetImportAgent(v *CreateAgentInfo) *CreateAgentRequest { + s.ImportAgent = v + return s +} + +func (s *CreateAgentRequest) Validate() error { + if s.ImportAgent != nil { + if err := s.ImportAgent.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_response_model.go new file mode 100644 index 00000000..7e43e371 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_agent_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateAgentResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *CreateAgentResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *CreateAgentResponse + GetStatusCode() *int32 +} + +type CreateAgentResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s CreateAgentResponse) String() string { + return dara.Prettify(s) +} + +func (s CreateAgentResponse) GoString() string { + return s.String() +} + +func (s *CreateAgentResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *CreateAgentResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *CreateAgentResponse) SetHeaders(v map[string]*string) *CreateAgentResponse { + s.Headers = v + return s +} + +func (s *CreateAgentResponse) SetStatusCode(v int32) *CreateAgentResponse { + s.StatusCode = &v + return s +} + +func (s *CreateAgentResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_info_model.go new file mode 100644 index 00000000..b68a3ba5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_info_model.go @@ -0,0 +1,315 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateJobInfo interface { + dara.Model + String() string + GoString() string + SetAppendableToNormal(v bool) *CreateJobInfo + GetAppendableToNormal() *bool + SetAudit(v *Audit) *CreateJobInfo + GetAudit() *Audit + SetConvertSymlinkTarget(v bool) *CreateJobInfo + GetConvertSymlinkTarget() *bool + SetCreateReport(v bool) *CreateJobInfo + GetCreateReport() *bool + SetDestAddress(v string) *CreateJobInfo + GetDestAddress() *string + SetEnableMultiVersioning(v bool) *CreateJobInfo + GetEnableMultiVersioning() *bool + SetFilterRule(v *FilterRule) *CreateJobInfo + GetFilterRule() *FilterRule + SetImportQos(v *ImportQos) *CreateJobInfo + GetImportQos() *ImportQos + SetName(v string) *CreateJobInfo + GetName() *string + SetOverwriteMode(v string) *CreateJobInfo + GetOverwriteMode() *string + SetParentVersion(v string) *CreateJobInfo + GetParentVersion() *string + SetScheduleRule(v *ScheduleRule) *CreateJobInfo + GetScheduleRule() *ScheduleRule + SetSrcAddress(v string) *CreateJobInfo + GetSrcAddress() *string + SetTags(v string) *CreateJobInfo + GetTags() *string + SetTargetStorageClass(v string) *CreateJobInfo + GetTargetStorageClass() *string + SetTransferMode(v string) *CreateJobInfo + GetTransferMode() *string + SetWithLastModifyTime(v bool) *CreateJobInfo + GetWithLastModifyTime() *bool + SetWithStorageClass(v bool) *CreateJobInfo + GetWithStorageClass() *bool +} + +type CreateJobInfo struct { + // example: + // + // false + AppendableToNormal *bool `json:"AppendableToNormal,omitempty" xml:"AppendableToNormal,omitempty"` + Audit *Audit `json:"Audit,omitempty" xml:"Audit,omitempty"` + // example: + // + // false + ConvertSymlinkTarget *bool `json:"ConvertSymlinkTarget,omitempty" xml:"ConvertSymlinkTarget,omitempty"` + // example: + // + // false + CreateReport *bool `json:"CreateReport,omitempty" xml:"CreateReport,omitempty"` + // This parameter is required. + // + // example: + // + // + DestAddress *string `json:"DestAddress,omitempty" xml:"DestAddress,omitempty"` + // example: + // + // false + EnableMultiVersioning *bool `json:"EnableMultiVersioning,omitempty" xml:"EnableMultiVersioning,omitempty"` + FilterRule *FilterRule `json:"FilterRule,omitempty" xml:"FilterRule,omitempty"` + ImportQos *ImportQos `json:"ImportQos,omitempty" xml:"ImportQos,omitempty"` + // This parameter is required. + // + // example: + // + // + Name *string `json:"Name,omitempty" xml:"Name,omitempty"` + // This parameter is required. + // + // example: + // + // always + OverwriteMode *string `json:"OverwriteMode,omitempty" xml:"OverwriteMode,omitempty"` + // example: + // + // + ParentVersion *string `json:"ParentVersion,omitempty" xml:"ParentVersion,omitempty"` + ScheduleRule *ScheduleRule `json:"ScheduleRule,omitempty" xml:"ScheduleRule,omitempty"` + // This parameter is required. + // + // example: + // + // + SrcAddress *string `json:"SrcAddress,omitempty" xml:"SrcAddress,omitempty"` + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + // example: + // + // Standard + TargetStorageClass *string `json:"TargetStorageClass,omitempty" xml:"TargetStorageClass,omitempty"` + // This parameter is required. + // + // example: + // + // all + TransferMode *string `json:"TransferMode,omitempty" xml:"TransferMode,omitempty"` + // example: + // + // true + WithLastModifyTime *bool `json:"WithLastModifyTime,omitempty" xml:"WithLastModifyTime,omitempty"` + // example: + // + // false + WithStorageClass *bool `json:"WithStorageClass,omitempty" xml:"WithStorageClass,omitempty"` +} + +func (s CreateJobInfo) String() string { + return dara.Prettify(s) +} + +func (s CreateJobInfo) GoString() string { + return s.String() +} + +func (s *CreateJobInfo) GetAppendableToNormal() *bool { + return s.AppendableToNormal +} + +func (s *CreateJobInfo) GetAudit() *Audit { + return s.Audit +} + +func (s *CreateJobInfo) GetConvertSymlinkTarget() *bool { + return s.ConvertSymlinkTarget +} + +func (s *CreateJobInfo) GetCreateReport() *bool { + return s.CreateReport +} + +func (s *CreateJobInfo) GetDestAddress() *string { + return s.DestAddress +} + +func (s *CreateJobInfo) GetEnableMultiVersioning() *bool { + return s.EnableMultiVersioning +} + +func (s *CreateJobInfo) GetFilterRule() *FilterRule { + return s.FilterRule +} + +func (s *CreateJobInfo) GetImportQos() *ImportQos { + return s.ImportQos +} + +func (s *CreateJobInfo) GetName() *string { + return s.Name +} + +func (s *CreateJobInfo) GetOverwriteMode() *string { + return s.OverwriteMode +} + +func (s *CreateJobInfo) GetParentVersion() *string { + return s.ParentVersion +} + +func (s *CreateJobInfo) GetScheduleRule() *ScheduleRule { + return s.ScheduleRule +} + +func (s *CreateJobInfo) GetSrcAddress() *string { + return s.SrcAddress +} + +func (s *CreateJobInfo) GetTags() *string { + return s.Tags +} + +func (s *CreateJobInfo) GetTargetStorageClass() *string { + return s.TargetStorageClass +} + +func (s *CreateJobInfo) GetTransferMode() *string { + return s.TransferMode +} + +func (s *CreateJobInfo) GetWithLastModifyTime() *bool { + return s.WithLastModifyTime +} + +func (s *CreateJobInfo) GetWithStorageClass() *bool { + return s.WithStorageClass +} + +func (s *CreateJobInfo) SetAppendableToNormal(v bool) *CreateJobInfo { + s.AppendableToNormal = &v + return s +} + +func (s *CreateJobInfo) SetAudit(v *Audit) *CreateJobInfo { + s.Audit = v + return s +} + +func (s *CreateJobInfo) SetConvertSymlinkTarget(v bool) *CreateJobInfo { + s.ConvertSymlinkTarget = &v + return s +} + +func (s *CreateJobInfo) SetCreateReport(v bool) *CreateJobInfo { + s.CreateReport = &v + return s +} + +func (s *CreateJobInfo) SetDestAddress(v string) *CreateJobInfo { + s.DestAddress = &v + return s +} + +func (s *CreateJobInfo) SetEnableMultiVersioning(v bool) *CreateJobInfo { + s.EnableMultiVersioning = &v + return s +} + +func (s *CreateJobInfo) SetFilterRule(v *FilterRule) *CreateJobInfo { + s.FilterRule = v + return s +} + +func (s *CreateJobInfo) SetImportQos(v *ImportQos) *CreateJobInfo { + s.ImportQos = v + return s +} + +func (s *CreateJobInfo) SetName(v string) *CreateJobInfo { + s.Name = &v + return s +} + +func (s *CreateJobInfo) SetOverwriteMode(v string) *CreateJobInfo { + s.OverwriteMode = &v + return s +} + +func (s *CreateJobInfo) SetParentVersion(v string) *CreateJobInfo { + s.ParentVersion = &v + return s +} + +func (s *CreateJobInfo) SetScheduleRule(v *ScheduleRule) *CreateJobInfo { + s.ScheduleRule = v + return s +} + +func (s *CreateJobInfo) SetSrcAddress(v string) *CreateJobInfo { + s.SrcAddress = &v + return s +} + +func (s *CreateJobInfo) SetTags(v string) *CreateJobInfo { + s.Tags = &v + return s +} + +func (s *CreateJobInfo) SetTargetStorageClass(v string) *CreateJobInfo { + s.TargetStorageClass = &v + return s +} + +func (s *CreateJobInfo) SetTransferMode(v string) *CreateJobInfo { + s.TransferMode = &v + return s +} + +func (s *CreateJobInfo) SetWithLastModifyTime(v bool) *CreateJobInfo { + s.WithLastModifyTime = &v + return s +} + +func (s *CreateJobInfo) SetWithStorageClass(v bool) *CreateJobInfo { + s.WithStorageClass = &v + return s +} + +func (s *CreateJobInfo) Validate() error { + if s.Audit != nil { + if err := s.Audit.Validate(); err != nil { + return err + } + } + if s.FilterRule != nil { + if err := s.FilterRule.Validate(); err != nil { + return err + } + } + if s.ImportQos != nil { + if err := s.ImportQos.Validate(); err != nil { + return err + } + } + if s.ScheduleRule != nil { + if err := s.ScheduleRule.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_request_model.go new file mode 100644 index 00000000..2fd5b989 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_request_model.go @@ -0,0 +1,47 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateJobRequest interface { + dara.Model + String() string + GoString() string + SetImportJob(v *CreateJobInfo) *CreateJobRequest + GetImportJob() *CreateJobInfo +} + +type CreateJobRequest struct { + // The details for creating the migration task. + // + // This parameter is required. + ImportJob *CreateJobInfo `json:"ImportJob,omitempty" xml:"ImportJob,omitempty"` +} + +func (s CreateJobRequest) String() string { + return dara.Prettify(s) +} + +func (s CreateJobRequest) GoString() string { + return s.String() +} + +func (s *CreateJobRequest) GetImportJob() *CreateJobInfo { + return s.ImportJob +} + +func (s *CreateJobRequest) SetImportJob(v *CreateJobInfo) *CreateJobRequest { + s.ImportJob = v + return s +} + +func (s *CreateJobRequest) Validate() error { + if s.ImportJob != nil { + if err := s.ImportJob.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_response_model.go new file mode 100644 index 00000000..6834305c --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_job_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateJobResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *CreateJobResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *CreateJobResponse + GetStatusCode() *int32 +} + +type CreateJobResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s CreateJobResponse) String() string { + return dara.Prettify(s) +} + +func (s CreateJobResponse) GoString() string { + return s.String() +} + +func (s *CreateJobResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *CreateJobResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *CreateJobResponse) SetHeaders(v map[string]*string) *CreateJobResponse { + s.Headers = v + return s +} + +func (s *CreateJobResponse) SetStatusCode(v int32) *CreateJobResponse { + s.StatusCode = &v + return s +} + +func (s *CreateJobResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_info_model.go new file mode 100644 index 00000000..0676354c --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_info_model.go @@ -0,0 +1,72 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateReportInfo interface { + dara.Model + String() string + GoString() string + SetJobName(v string) *CreateReportInfo + GetJobName() *string + SetRuntimeId(v int32) *CreateReportInfo + GetRuntimeId() *int32 + SetVersion(v string) *CreateReportInfo + GetVersion() *string +} + +type CreateReportInfo struct { + // example: + // + // + JobName *string `json:"JobName,omitempty" xml:"JobName,omitempty"` + // example: + // + // 1 + RuntimeId *int32 `json:"RuntimeId,omitempty" xml:"RuntimeId,omitempty"` + // example: + // + // + Version *string `json:"Version,omitempty" xml:"Version,omitempty"` +} + +func (s CreateReportInfo) String() string { + return dara.Prettify(s) +} + +func (s CreateReportInfo) GoString() string { + return s.String() +} + +func (s *CreateReportInfo) GetJobName() *string { + return s.JobName +} + +func (s *CreateReportInfo) GetRuntimeId() *int32 { + return s.RuntimeId +} + +func (s *CreateReportInfo) GetVersion() *string { + return s.Version +} + +func (s *CreateReportInfo) SetJobName(v string) *CreateReportInfo { + s.JobName = &v + return s +} + +func (s *CreateReportInfo) SetRuntimeId(v int32) *CreateReportInfo { + s.RuntimeId = &v + return s +} + +func (s *CreateReportInfo) SetVersion(v string) *CreateReportInfo { + s.Version = &v + return s +} + +func (s *CreateReportInfo) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_request_model.go new file mode 100644 index 00000000..201e3970 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_request_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateReportRequest interface { + dara.Model + String() string + GoString() string + SetCreateReport(v *CreateReportInfo) *CreateReportRequest + GetCreateReport() *CreateReportInfo +} + +type CreateReportRequest struct { + // The details for creating the migration report. + CreateReport *CreateReportInfo `json:"CreateReport,omitempty" xml:"CreateReport,omitempty"` +} + +func (s CreateReportRequest) String() string { + return dara.Prettify(s) +} + +func (s CreateReportRequest) GoString() string { + return s.String() +} + +func (s *CreateReportRequest) GetCreateReport() *CreateReportInfo { + return s.CreateReport +} + +func (s *CreateReportRequest) SetCreateReport(v *CreateReportInfo) *CreateReportRequest { + s.CreateReport = v + return s +} + +func (s *CreateReportRequest) Validate() error { + if s.CreateReport != nil { + if err := s.CreateReport.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_response_model.go new file mode 100644 index 00000000..75c84cfa --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_report_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateReportResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *CreateReportResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *CreateReportResponse + GetStatusCode() *int32 +} + +type CreateReportResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s CreateReportResponse) String() string { + return dara.Prettify(s) +} + +func (s CreateReportResponse) GoString() string { + return s.String() +} + +func (s *CreateReportResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *CreateReportResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *CreateReportResponse) SetHeaders(v map[string]*string) *CreateReportResponse { + s.Headers = v + return s +} + +func (s *CreateReportResponse) SetStatusCode(v int32) *CreateReportResponse { + s.StatusCode = &v + return s +} + +func (s *CreateReportResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_info_model.go new file mode 100644 index 00000000..1fd2d595 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_info_model.go @@ -0,0 +1,59 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateTunnelInfo interface { + dara.Model + String() string + GoString() string + SetTags(v string) *CreateTunnelInfo + GetTags() *string + SetTunnelQos(v *TunnelQos) *CreateTunnelInfo + GetTunnelQos() *TunnelQos +} + +type CreateTunnelInfo struct { + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + TunnelQos *TunnelQos `json:"TunnelQos,omitempty" xml:"TunnelQos,omitempty"` +} + +func (s CreateTunnelInfo) String() string { + return dara.Prettify(s) +} + +func (s CreateTunnelInfo) GoString() string { + return s.String() +} + +func (s *CreateTunnelInfo) GetTags() *string { + return s.Tags +} + +func (s *CreateTunnelInfo) GetTunnelQos() *TunnelQos { + return s.TunnelQos +} + +func (s *CreateTunnelInfo) SetTags(v string) *CreateTunnelInfo { + s.Tags = &v + return s +} + +func (s *CreateTunnelInfo) SetTunnelQos(v *TunnelQos) *CreateTunnelInfo { + s.TunnelQos = v + return s +} + +func (s *CreateTunnelInfo) Validate() error { + if s.TunnelQos != nil { + if err := s.TunnelQos.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_request_model.go new file mode 100644 index 00000000..c94e2682 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_request_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateTunnelRequest interface { + dara.Model + String() string + GoString() string + SetImportTunnel(v *CreateTunnelInfo) *CreateTunnelRequest + GetImportTunnel() *CreateTunnelInfo +} + +type CreateTunnelRequest struct { + // The details for creating the tunnel. + ImportTunnel *CreateTunnelInfo `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty"` +} + +func (s CreateTunnelRequest) String() string { + return dara.Prettify(s) +} + +func (s CreateTunnelRequest) GoString() string { + return s.String() +} + +func (s *CreateTunnelRequest) GetImportTunnel() *CreateTunnelInfo { + return s.ImportTunnel +} + +func (s *CreateTunnelRequest) SetImportTunnel(v *CreateTunnelInfo) *CreateTunnelRequest { + s.ImportTunnel = v + return s +} + +func (s *CreateTunnelRequest) Validate() error { + if s.ImportTunnel != nil { + if err := s.ImportTunnel.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_response_model.go new file mode 100644 index 00000000..0fb9332f --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/create_tunnel_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iCreateTunnelResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *CreateTunnelResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *CreateTunnelResponse + GetStatusCode() *int32 +} + +type CreateTunnelResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s CreateTunnelResponse) String() string { + return dara.Prettify(s) +} + +func (s CreateTunnelResponse) GoString() string { + return s.String() +} + +func (s *CreateTunnelResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *CreateTunnelResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *CreateTunnelResponse) SetHeaders(v map[string]*string) *CreateTunnelResponse { + s.Headers = v + return s +} + +func (s *CreateTunnelResponse) SetStatusCode(v int32) *CreateTunnelResponse { + s.StatusCode = &v + return s +} + +func (s *CreateTunnelResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_address_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_address_response_model.go new file mode 100644 index 00000000..85aea7c9 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_address_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iDeleteAddressResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *DeleteAddressResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *DeleteAddressResponse + GetStatusCode() *int32 +} + +type DeleteAddressResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s DeleteAddressResponse) String() string { + return dara.Prettify(s) +} + +func (s DeleteAddressResponse) GoString() string { + return s.String() +} + +func (s *DeleteAddressResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *DeleteAddressResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *DeleteAddressResponse) SetHeaders(v map[string]*string) *DeleteAddressResponse { + s.Headers = v + return s +} + +func (s *DeleteAddressResponse) SetStatusCode(v int32) *DeleteAddressResponse { + s.StatusCode = &v + return s +} + +func (s *DeleteAddressResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_agent_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_agent_response_model.go new file mode 100644 index 00000000..f8215577 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_agent_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iDeleteAgentResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *DeleteAgentResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *DeleteAgentResponse + GetStatusCode() *int32 +} + +type DeleteAgentResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s DeleteAgentResponse) String() string { + return dara.Prettify(s) +} + +func (s DeleteAgentResponse) GoString() string { + return s.String() +} + +func (s *DeleteAgentResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *DeleteAgentResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *DeleteAgentResponse) SetHeaders(v map[string]*string) *DeleteAgentResponse { + s.Headers = v + return s +} + +func (s *DeleteAgentResponse) SetStatusCode(v int32) *DeleteAgentResponse { + s.StatusCode = &v + return s +} + +func (s *DeleteAgentResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_request_model.go new file mode 100644 index 00000000..ba575314 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_request_model.go @@ -0,0 +1,44 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iDeleteJobRequest interface { + dara.Model + String() string + GoString() string + SetForceDelete(v bool) *DeleteJobRequest + GetForceDelete() *bool +} + +type DeleteJobRequest struct { + // Specifies whether to force delete the subtask. If the task has subtasks and you set this parameter to true, the task and its subtasks are forcibly deleted. If this parameter is set to false, the task and its subtasks fail to be deleted. + // + // example: + // + // true + ForceDelete *bool `json:"forceDelete,omitempty" xml:"forceDelete,omitempty"` +} + +func (s DeleteJobRequest) String() string { + return dara.Prettify(s) +} + +func (s DeleteJobRequest) GoString() string { + return s.String() +} + +func (s *DeleteJobRequest) GetForceDelete() *bool { + return s.ForceDelete +} + +func (s *DeleteJobRequest) SetForceDelete(v bool) *DeleteJobRequest { + s.ForceDelete = &v + return s +} + +func (s *DeleteJobRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_response_model.go new file mode 100644 index 00000000..263d3fdb --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_job_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iDeleteJobResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *DeleteJobResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *DeleteJobResponse + GetStatusCode() *int32 +} + +type DeleteJobResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s DeleteJobResponse) String() string { + return dara.Prettify(s) +} + +func (s DeleteJobResponse) GoString() string { + return s.String() +} + +func (s *DeleteJobResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *DeleteJobResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *DeleteJobResponse) SetHeaders(v map[string]*string) *DeleteJobResponse { + s.Headers = v + return s +} + +func (s *DeleteJobResponse) SetStatusCode(v int32) *DeleteJobResponse { + s.StatusCode = &v + return s +} + +func (s *DeleteJobResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_tunnel_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_tunnel_response_model.go new file mode 100644 index 00000000..bd41431d --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/delete_tunnel_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iDeleteTunnelResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *DeleteTunnelResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *DeleteTunnelResponse + GetStatusCode() *int32 +} + +type DeleteTunnelResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s DeleteTunnelResponse) String() string { + return dara.Prettify(s) +} + +func (s DeleteTunnelResponse) GoString() string { + return s.String() +} + +func (s *DeleteTunnelResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *DeleteTunnelResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *DeleteTunnelResponse) SetHeaders(v map[string]*string) *DeleteTunnelResponse { + s.Headers = v + return s +} + +func (s *DeleteTunnelResponse) SetStatusCode(v int32) *DeleteTunnelResponse { + s.StatusCode = &v + return s +} + +func (s *DeleteTunnelResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/file_type_filters_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/file_type_filters_model.go new file mode 100644 index 00000000..b4e52302 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/file_type_filters_model.go @@ -0,0 +1,57 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iFileTypeFilters interface { + dara.Model + String() string + GoString() string + SetExcludeDir(v bool) *FileTypeFilters + GetExcludeDir() *bool + SetExcludeSymlink(v bool) *FileTypeFilters + GetExcludeSymlink() *bool +} + +type FileTypeFilters struct { + // example: + // + // fasle + ExcludeDir *bool `json:"ExcludeDir,omitempty" xml:"ExcludeDir,omitempty"` + // example: + // + // fasle + ExcludeSymlink *bool `json:"ExcludeSymlink,omitempty" xml:"ExcludeSymlink,omitempty"` +} + +func (s FileTypeFilters) String() string { + return dara.Prettify(s) +} + +func (s FileTypeFilters) GoString() string { + return s.String() +} + +func (s *FileTypeFilters) GetExcludeDir() *bool { + return s.ExcludeDir +} + +func (s *FileTypeFilters) GetExcludeSymlink() *bool { + return s.ExcludeSymlink +} + +func (s *FileTypeFilters) SetExcludeDir(v bool) *FileTypeFilters { + s.ExcludeDir = &v + return s +} + +func (s *FileTypeFilters) SetExcludeSymlink(v bool) *FileTypeFilters { + s.ExcludeSymlink = &v + return s +} + +func (s *FileTypeFilters) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/filter_rule_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/filter_rule_model.go new file mode 100644 index 00000000..e57884aa --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/filter_rule_model.go @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iFilterRule interface { + dara.Model + String() string + GoString() string + SetFileTypeFilters(v *FileTypeFilters) *FilterRule + GetFileTypeFilters() *FileTypeFilters + SetKeyFilters(v *KeyFilters) *FilterRule + GetKeyFilters() *KeyFilters + SetLastModifiedFilters(v *LastModifiedFilters) *FilterRule + GetLastModifiedFilters() *LastModifiedFilters +} + +type FilterRule struct { + FileTypeFilters *FileTypeFilters `json:"FileTypeFilters,omitempty" xml:"FileTypeFilters,omitempty"` + KeyFilters *KeyFilters `json:"KeyFilters,omitempty" xml:"KeyFilters,omitempty"` + LastModifiedFilters *LastModifiedFilters `json:"LastModifiedFilters,omitempty" xml:"LastModifiedFilters,omitempty"` +} + +func (s FilterRule) String() string { + return dara.Prettify(s) +} + +func (s FilterRule) GoString() string { + return s.String() +} + +func (s *FilterRule) GetFileTypeFilters() *FileTypeFilters { + return s.FileTypeFilters +} + +func (s *FilterRule) GetKeyFilters() *KeyFilters { + return s.KeyFilters +} + +func (s *FilterRule) GetLastModifiedFilters() *LastModifiedFilters { + return s.LastModifiedFilters +} + +func (s *FilterRule) SetFileTypeFilters(v *FileTypeFilters) *FilterRule { + s.FileTypeFilters = v + return s +} + +func (s *FilterRule) SetKeyFilters(v *KeyFilters) *FilterRule { + s.KeyFilters = v + return s +} + +func (s *FilterRule) SetLastModifiedFilters(v *LastModifiedFilters) *FilterRule { + s.LastModifiedFilters = v + return s +} + +func (s *FilterRule) Validate() error { + if s.FileTypeFilters != nil { + if err := s.FileTypeFilters.Validate(); err != nil { + return err + } + } + if s.KeyFilters != nil { + if err := s.KeyFilters.Validate(); err != nil { + return err + } + } + if s.LastModifiedFilters != nil { + if err := s.LastModifiedFilters.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_resp_model.go new file mode 100644 index 00000000..d3c9a472 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_resp_model.go @@ -0,0 +1,181 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAddressResp interface { + dara.Model + String() string + GoString() string + SetAddressDetail(v *AddressDetail) *GetAddressResp + GetAddressDetail() *AddressDetail + SetCreateTime(v string) *GetAddressResp + GetCreateTime() *string + SetModifyTime(v string) *GetAddressResp + GetModifyTime() *string + SetName(v string) *GetAddressResp + GetName() *string + SetOwner(v string) *GetAddressResp + GetOwner() *string + SetStatus(v string) *GetAddressResp + GetStatus() *string + SetTags(v string) *GetAddressResp + GetTags() *string + SetVerifyResult(v *VerifyResp) *GetAddressResp + GetVerifyResult() *VerifyResp + SetVerifyTime(v string) *GetAddressResp + GetVerifyTime() *string + SetVersion(v string) *GetAddressResp + GetVersion() *string +} + +type GetAddressResp struct { + AddressDetail *AddressDetail `json:"AddressDetail,omitempty" xml:"AddressDetail,omitempty"` + // example: + // + // 2024-05-01 12:00:00 + CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` + // example: + // + // 2024-05-01 12:00:00 + ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` + // example: + // + // + Name *string `json:"Name,omitempty" xml:"Name,omitempty"` + // example: + // + // 1***90**87***53* + Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` + // example: + // + // avaliable + Status *string `json:"Status,omitempty" xml:"Status,omitempty"` + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + VerifyResult *VerifyResp `json:"VerifyResult,omitempty" xml:"VerifyResult,omitempty"` + // example: + // + // 2024-05-01 12:00:00 + VerifyTime *string `json:"VerifyTime,omitempty" xml:"VerifyTime,omitempty"` + // example: + // + // ****sf-****-0078-****-drfg****df1334 + Version *string `json:"Version,omitempty" xml:"Version,omitempty"` +} + +func (s GetAddressResp) String() string { + return dara.Prettify(s) +} + +func (s GetAddressResp) GoString() string { + return s.String() +} + +func (s *GetAddressResp) GetAddressDetail() *AddressDetail { + return s.AddressDetail +} + +func (s *GetAddressResp) GetCreateTime() *string { + return s.CreateTime +} + +func (s *GetAddressResp) GetModifyTime() *string { + return s.ModifyTime +} + +func (s *GetAddressResp) GetName() *string { + return s.Name +} + +func (s *GetAddressResp) GetOwner() *string { + return s.Owner +} + +func (s *GetAddressResp) GetStatus() *string { + return s.Status +} + +func (s *GetAddressResp) GetTags() *string { + return s.Tags +} + +func (s *GetAddressResp) GetVerifyResult() *VerifyResp { + return s.VerifyResult +} + +func (s *GetAddressResp) GetVerifyTime() *string { + return s.VerifyTime +} + +func (s *GetAddressResp) GetVersion() *string { + return s.Version +} + +func (s *GetAddressResp) SetAddressDetail(v *AddressDetail) *GetAddressResp { + s.AddressDetail = v + return s +} + +func (s *GetAddressResp) SetCreateTime(v string) *GetAddressResp { + s.CreateTime = &v + return s +} + +func (s *GetAddressResp) SetModifyTime(v string) *GetAddressResp { + s.ModifyTime = &v + return s +} + +func (s *GetAddressResp) SetName(v string) *GetAddressResp { + s.Name = &v + return s +} + +func (s *GetAddressResp) SetOwner(v string) *GetAddressResp { + s.Owner = &v + return s +} + +func (s *GetAddressResp) SetStatus(v string) *GetAddressResp { + s.Status = &v + return s +} + +func (s *GetAddressResp) SetTags(v string) *GetAddressResp { + s.Tags = &v + return s +} + +func (s *GetAddressResp) SetVerifyResult(v *VerifyResp) *GetAddressResp { + s.VerifyResult = v + return s +} + +func (s *GetAddressResp) SetVerifyTime(v string) *GetAddressResp { + s.VerifyTime = &v + return s +} + +func (s *GetAddressResp) SetVersion(v string) *GetAddressResp { + s.Version = &v + return s +} + +func (s *GetAddressResp) Validate() error { + if s.AddressDetail != nil { + if err := s.AddressDetail.Validate(); err != nil { + return err + } + } + if s.VerifyResult != nil { + if err := s.VerifyResult.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_body_model.go new file mode 100644 index 00000000..ef594ea0 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_body_model.go @@ -0,0 +1,49 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAddressResponseBody interface { + dara.Model + String() string + GoString() string + SetImportAddress(v *GetAddressResp) *GetAddressResponseBody + GetImportAddress() *GetAddressResp +} + +type GetAddressResponseBody struct { + // The details for obtaining the data address. + // + // Valid values: + // + // - 1:1 + ImportAddress *GetAddressResp `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty"` +} + +func (s GetAddressResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetAddressResponseBody) GoString() string { + return s.String() +} + +func (s *GetAddressResponseBody) GetImportAddress() *GetAddressResp { + return s.ImportAddress +} + +func (s *GetAddressResponseBody) SetImportAddress(v *GetAddressResp) *GetAddressResponseBody { + s.ImportAddress = v + return s +} + +func (s *GetAddressResponseBody) Validate() error { + if s.ImportAddress != nil { + if err := s.ImportAddress.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_model.go new file mode 100644 index 00000000..39025d80 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_address_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAddressResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *GetAddressResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *GetAddressResponse + GetStatusCode() *int32 + SetBody(v *GetAddressResponseBody) *GetAddressResponse + GetBody() *GetAddressResponseBody +} + +type GetAddressResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetAddressResponse) String() string { + return dara.Prettify(s) +} + +func (s GetAddressResponse) GoString() string { + return s.String() +} + +func (s *GetAddressResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetAddressResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetAddressResponse) GetBody() *GetAddressResponseBody { + return s.Body +} + +func (s *GetAddressResponse) SetHeaders(v map[string]*string) *GetAddressResponse { + s.Headers = v + return s +} + +func (s *GetAddressResponse) SetStatusCode(v int32) *GetAddressResponse { + s.StatusCode = &v + return s +} + +func (s *GetAddressResponse) SetBody(v *GetAddressResponseBody) *GetAddressResponse { + s.Body = v + return s +} + +func (s *GetAddressResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_resp_model.go new file mode 100644 index 00000000..c299f723 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_resp_model.go @@ -0,0 +1,174 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAgentResp interface { + dara.Model + String() string + GoString() string + SetActivationKey(v string) *GetAgentResp + GetActivationKey() *string + SetAgentEndpoint(v string) *GetAgentResp + GetAgentEndpoint() *string + SetCreateTime(v string) *GetAgentResp + GetCreateTime() *string + SetDeployMethod(v string) *GetAgentResp + GetDeployMethod() *string + SetModifyTime(v string) *GetAgentResp + GetModifyTime() *string + SetName(v string) *GetAgentResp + GetName() *string + SetOwner(v string) *GetAgentResp + GetOwner() *string + SetTags(v string) *GetAgentResp + GetTags() *string + SetTunnelId(v string) *GetAgentResp + GetTunnelId() *string + SetVersion(v string) *GetAgentResp + GetVersion() *string +} + +type GetAgentResp struct { + ActivationKey *string `json:"ActivationKey,omitempty" xml:"ActivationKey,omitempty"` + // example: + // + // vpc + AgentEndpoint *string `json:"AgentEndpoint,omitempty" xml:"AgentEndpoint,omitempty"` + // example: + // + // 2024-05-01 12:00:00 + CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` + // example: + // + // default + DeployMethod *string `json:"DeployMethod,omitempty" xml:"DeployMethod,omitempty"` + // example: + // + // 2024-05-01 12:00:00 + ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` + // example: + // + // + Name *string `json:"Name,omitempty" xml:"Name,omitempty"` + // example: + // + // 1***90**87***53* + Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + // example: + // + // ****13f-****-0567-****-af8d****446665 + TunnelId *string `json:"TunnelId,omitempty" xml:"TunnelId,omitempty"` + // example: + // + // ****33f-****-4740-****-bc4f****332b3 + Version *string `json:"Version,omitempty" xml:"Version,omitempty"` +} + +func (s GetAgentResp) String() string { + return dara.Prettify(s) +} + +func (s GetAgentResp) GoString() string { + return s.String() +} + +func (s *GetAgentResp) GetActivationKey() *string { + return s.ActivationKey +} + +func (s *GetAgentResp) GetAgentEndpoint() *string { + return s.AgentEndpoint +} + +func (s *GetAgentResp) GetCreateTime() *string { + return s.CreateTime +} + +func (s *GetAgentResp) GetDeployMethod() *string { + return s.DeployMethod +} + +func (s *GetAgentResp) GetModifyTime() *string { + return s.ModifyTime +} + +func (s *GetAgentResp) GetName() *string { + return s.Name +} + +func (s *GetAgentResp) GetOwner() *string { + return s.Owner +} + +func (s *GetAgentResp) GetTags() *string { + return s.Tags +} + +func (s *GetAgentResp) GetTunnelId() *string { + return s.TunnelId +} + +func (s *GetAgentResp) GetVersion() *string { + return s.Version +} + +func (s *GetAgentResp) SetActivationKey(v string) *GetAgentResp { + s.ActivationKey = &v + return s +} + +func (s *GetAgentResp) SetAgentEndpoint(v string) *GetAgentResp { + s.AgentEndpoint = &v + return s +} + +func (s *GetAgentResp) SetCreateTime(v string) *GetAgentResp { + s.CreateTime = &v + return s +} + +func (s *GetAgentResp) SetDeployMethod(v string) *GetAgentResp { + s.DeployMethod = &v + return s +} + +func (s *GetAgentResp) SetModifyTime(v string) *GetAgentResp { + s.ModifyTime = &v + return s +} + +func (s *GetAgentResp) SetName(v string) *GetAgentResp { + s.Name = &v + return s +} + +func (s *GetAgentResp) SetOwner(v string) *GetAgentResp { + s.Owner = &v + return s +} + +func (s *GetAgentResp) SetTags(v string) *GetAgentResp { + s.Tags = &v + return s +} + +func (s *GetAgentResp) SetTunnelId(v string) *GetAgentResp { + s.TunnelId = &v + return s +} + +func (s *GetAgentResp) SetVersion(v string) *GetAgentResp { + s.Version = &v + return s +} + +func (s *GetAgentResp) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_body_model.go new file mode 100644 index 00000000..c4df13c8 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAgentResponseBody interface { + dara.Model + String() string + GoString() string + SetImportAgent(v *GetAgentResp) *GetAgentResponseBody + GetImportAgent() *GetAgentResp +} + +type GetAgentResponseBody struct { + // The details for obtaining the details of the agent. + ImportAgent *GetAgentResp `json:"ImportAgent,omitempty" xml:"ImportAgent,omitempty"` +} + +func (s GetAgentResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetAgentResponseBody) GoString() string { + return s.String() +} + +func (s *GetAgentResponseBody) GetImportAgent() *GetAgentResp { + return s.ImportAgent +} + +func (s *GetAgentResponseBody) SetImportAgent(v *GetAgentResp) *GetAgentResponseBody { + s.ImportAgent = v + return s +} + +func (s *GetAgentResponseBody) Validate() error { + if s.ImportAgent != nil { + if err := s.ImportAgent.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_model.go new file mode 100644 index 00000000..0c011fee --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAgentResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *GetAgentResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *GetAgentResponse + GetStatusCode() *int32 + SetBody(v *GetAgentResponseBody) *GetAgentResponse + GetBody() *GetAgentResponseBody +} + +type GetAgentResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetAgentResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetAgentResponse) String() string { + return dara.Prettify(s) +} + +func (s GetAgentResponse) GoString() string { + return s.String() +} + +func (s *GetAgentResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetAgentResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetAgentResponse) GetBody() *GetAgentResponseBody { + return s.Body +} + +func (s *GetAgentResponse) SetHeaders(v map[string]*string) *GetAgentResponse { + s.Headers = v + return s +} + +func (s *GetAgentResponse) SetStatusCode(v int32) *GetAgentResponse { + s.StatusCode = &v + return s +} + +func (s *GetAgentResponse) SetBody(v *GetAgentResponseBody) *GetAgentResponse { + s.Body = v + return s +} + +func (s *GetAgentResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_resp_model.go new file mode 100644 index 00000000..00db2eec --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_resp_model.go @@ -0,0 +1,72 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAgentStatusResp interface { + dara.Model + String() string + GoString() string + SetAgentIP(v string) *GetAgentStatusResp + GetAgentIP() *string + SetAgentVersion(v string) *GetAgentStatusResp + GetAgentVersion() *string + SetStatus(v string) *GetAgentStatusResp + GetStatus() *string +} + +type GetAgentStatusResp struct { + // example: + // + // 192.168.0.2 + AgentIP *string `json:"AgentIP,omitempty" xml:"AgentIP,omitempty"` + // example: + // + // 1.5.0 + AgentVersion *string `json:"AgentVersion,omitempty" xml:"AgentVersion,omitempty"` + // example: + // + // OK + Status *string `json:"Status,omitempty" xml:"Status,omitempty"` +} + +func (s GetAgentStatusResp) String() string { + return dara.Prettify(s) +} + +func (s GetAgentStatusResp) GoString() string { + return s.String() +} + +func (s *GetAgentStatusResp) GetAgentIP() *string { + return s.AgentIP +} + +func (s *GetAgentStatusResp) GetAgentVersion() *string { + return s.AgentVersion +} + +func (s *GetAgentStatusResp) GetStatus() *string { + return s.Status +} + +func (s *GetAgentStatusResp) SetAgentIP(v string) *GetAgentStatusResp { + s.AgentIP = &v + return s +} + +func (s *GetAgentStatusResp) SetAgentVersion(v string) *GetAgentStatusResp { + s.AgentVersion = &v + return s +} + +func (s *GetAgentStatusResp) SetStatus(v string) *GetAgentStatusResp { + s.Status = &v + return s +} + +func (s *GetAgentStatusResp) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_body_model.go new file mode 100644 index 00000000..e0fcc6a4 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAgentStatusResponseBody interface { + dara.Model + String() string + GoString() string + SetImportAgentStatus(v *GetAgentStatusResp) *GetAgentStatusResponseBody + GetImportAgentStatus() *GetAgentStatusResp +} + +type GetAgentStatusResponseBody struct { + // The details for obtaining the status of the agent. + ImportAgentStatus *GetAgentStatusResp `json:"ImportAgentStatus,omitempty" xml:"ImportAgentStatus,omitempty"` +} + +func (s GetAgentStatusResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetAgentStatusResponseBody) GoString() string { + return s.String() +} + +func (s *GetAgentStatusResponseBody) GetImportAgentStatus() *GetAgentStatusResp { + return s.ImportAgentStatus +} + +func (s *GetAgentStatusResponseBody) SetImportAgentStatus(v *GetAgentStatusResp) *GetAgentStatusResponseBody { + s.ImportAgentStatus = v + return s +} + +func (s *GetAgentStatusResponseBody) Validate() error { + if s.ImportAgentStatus != nil { + if err := s.ImportAgentStatus.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_model.go new file mode 100644 index 00000000..25224c1e --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_agent_status_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetAgentStatusResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *GetAgentStatusResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *GetAgentStatusResponse + GetStatusCode() *int32 + SetBody(v *GetAgentStatusResponseBody) *GetAgentStatusResponse + GetBody() *GetAgentStatusResponseBody +} + +type GetAgentStatusResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetAgentStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetAgentStatusResponse) String() string { + return dara.Prettify(s) +} + +func (s GetAgentStatusResponse) GoString() string { + return s.String() +} + +func (s *GetAgentStatusResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetAgentStatusResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetAgentStatusResponse) GetBody() *GetAgentStatusResponseBody { + return s.Body +} + +func (s *GetAgentStatusResponse) SetHeaders(v map[string]*string) *GetAgentStatusResponse { + s.Headers = v + return s +} + +func (s *GetAgentStatusResponse) SetStatusCode(v int32) *GetAgentStatusResponse { + s.StatusCode = &v + return s +} + +func (s *GetAgentStatusResponse) SetBody(v *GetAgentStatusResponseBody) *GetAgentStatusResponse { + s.Body = v + return s +} + +func (s *GetAgentStatusResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_request_model.go new file mode 100644 index 00000000..37dc31ac --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_request_model.go @@ -0,0 +1,44 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobRequest interface { + dara.Model + String() string + GoString() string + SetByVersion(v string) *GetJobRequest + GetByVersion() *string +} + +type GetJobRequest struct { + // Specifies whether to obtain the details of the migration task by using the task ID. + // + // example: + // + // false + ByVersion *string `json:"byVersion,omitempty" xml:"byVersion,omitempty"` +} + +func (s GetJobRequest) String() string { + return dara.Prettify(s) +} + +func (s GetJobRequest) GoString() string { + return s.String() +} + +func (s *GetJobRequest) GetByVersion() *string { + return s.ByVersion +} + +func (s *GetJobRequest) SetByVersion(v string) *GetJobRequest { + s.ByVersion = &v + return s +} + +func (s *GetJobRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_resp_model.go new file mode 100644 index 00000000..39f7fe05 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_resp_model.go @@ -0,0 +1,395 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobResp interface { + dara.Model + String() string + GoString() string + SetAppendableToNormal(v bool) *GetJobResp + GetAppendableToNormal() *bool + SetAudit(v *Audit) *GetJobResp + GetAudit() *Audit + SetConvertSymlinkTarget(v bool) *GetJobResp + GetConvertSymlinkTarget() *bool + SetCreateReport(v bool) *GetJobResp + GetCreateReport() *bool + SetCreateTime(v string) *GetJobResp + GetCreateTime() *string + SetDestAddress(v string) *GetJobResp + GetDestAddress() *string + SetEnableMultiVersioning(v bool) *GetJobResp + GetEnableMultiVersioning() *bool + SetFilterRule(v *FilterRule) *GetJobResp + GetFilterRule() *FilterRule + SetImportQos(v *ImportQos) *GetJobResp + GetImportQos() *ImportQos + SetModifyTime(v string) *GetJobResp + GetModifyTime() *string + SetName(v string) *GetJobResp + GetName() *string + SetOverwriteMode(v string) *GetJobResp + GetOverwriteMode() *string + SetOwner(v string) *GetJobResp + GetOwner() *string + SetParentName(v string) *GetJobResp + GetParentName() *string + SetParentVersion(v string) *GetJobResp + GetParentVersion() *string + SetScheduleRule(v *ScheduleRule) *GetJobResp + GetScheduleRule() *ScheduleRule + SetSrcAddress(v string) *GetJobResp + GetSrcAddress() *string + SetStatus(v string) *GetJobResp + GetStatus() *string + SetTags(v string) *GetJobResp + GetTags() *string + SetTargetStorageClass(v string) *GetJobResp + GetTargetStorageClass() *string + SetTransferMode(v string) *GetJobResp + GetTransferMode() *string + SetVersion(v string) *GetJobResp + GetVersion() *string + SetWithLastModifyTime(v bool) *GetJobResp + GetWithLastModifyTime() *bool + SetWithStorageClass(v bool) *GetJobResp + GetWithStorageClass() *bool +} + +type GetJobResp struct { + // example: + // + // true + AppendableToNormal *bool `json:"AppendableToNormal,omitempty" xml:"AppendableToNormal,omitempty"` + Audit *Audit `json:"Audit,omitempty" xml:"Audit,omitempty"` + // example: + // + // false + ConvertSymlinkTarget *bool `json:"ConvertSymlinkTarget,omitempty" xml:"ConvertSymlinkTarget,omitempty"` + // example: + // + // false + CreateReport *bool `json:"CreateReport,omitempty" xml:"CreateReport,omitempty"` + // example: + // + // 2025-07-04T06:02:21.000Z + CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` + // example: + // + // + DestAddress *string `json:"DestAddress,omitempty" xml:"DestAddress,omitempty"` + // example: + // + // false + EnableMultiVersioning *bool `json:"EnableMultiVersioning,omitempty" xml:"EnableMultiVersioning,omitempty"` + FilterRule *FilterRule `json:"FilterRule,omitempty" xml:"FilterRule,omitempty"` + ImportQos *ImportQos `json:"ImportQos,omitempty" xml:"ImportQos,omitempty"` + // example: + // + // 2025-07-05T06:02:22.000Z + ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` + // example: + // + // + Name *string `json:"Name,omitempty" xml:"Name,omitempty"` + // example: + // + // always + OverwriteMode *string `json:"OverwriteMode,omitempty" xml:"OverwriteMode,omitempty"` + // example: + // + // 11***9*38***34** + Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` + // example: + // + // + ParentName *string `json:"ParentName,omitempty" xml:"ParentName,omitempty"` + // example: + // + // 3***1a7f-18**-41d9-****-21591***49** + ParentVersion *string `json:"ParentVersion,omitempty" xml:"ParentVersion,omitempty"` + ScheduleRule *ScheduleRule `json:"ScheduleRule,omitempty" xml:"ScheduleRule,omitempty"` + // example: + // + // + SrcAddress *string `json:"SrcAddress,omitempty" xml:"SrcAddress,omitempty"` + // example: + // + // IMPORT_JOB_DOING + Status *string `json:"Status,omitempty" xml:"Status,omitempty"` + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + // example: + // + // Standard + TargetStorageClass *string `json:"TargetStorageClass,omitempty" xml:"TargetStorageClass,omitempty"` + // example: + // + // all + TransferMode *string `json:"TransferMode,omitempty" xml:"TransferMode,omitempty"` + // example: + // + // 31***a7f-188f-****-b266-215***8e49d7 + Version *string `json:"Version,omitempty" xml:"Version,omitempty"` + // example: + // + // true + WithLastModifyTime *bool `json:"WithLastModifyTime,omitempty" xml:"WithLastModifyTime,omitempty"` + // example: + // + // false + WithStorageClass *bool `json:"WithStorageClass,omitempty" xml:"WithStorageClass,omitempty"` +} + +func (s GetJobResp) String() string { + return dara.Prettify(s) +} + +func (s GetJobResp) GoString() string { + return s.String() +} + +func (s *GetJobResp) GetAppendableToNormal() *bool { + return s.AppendableToNormal +} + +func (s *GetJobResp) GetAudit() *Audit { + return s.Audit +} + +func (s *GetJobResp) GetConvertSymlinkTarget() *bool { + return s.ConvertSymlinkTarget +} + +func (s *GetJobResp) GetCreateReport() *bool { + return s.CreateReport +} + +func (s *GetJobResp) GetCreateTime() *string { + return s.CreateTime +} + +func (s *GetJobResp) GetDestAddress() *string { + return s.DestAddress +} + +func (s *GetJobResp) GetEnableMultiVersioning() *bool { + return s.EnableMultiVersioning +} + +func (s *GetJobResp) GetFilterRule() *FilterRule { + return s.FilterRule +} + +func (s *GetJobResp) GetImportQos() *ImportQos { + return s.ImportQos +} + +func (s *GetJobResp) GetModifyTime() *string { + return s.ModifyTime +} + +func (s *GetJobResp) GetName() *string { + return s.Name +} + +func (s *GetJobResp) GetOverwriteMode() *string { + return s.OverwriteMode +} + +func (s *GetJobResp) GetOwner() *string { + return s.Owner +} + +func (s *GetJobResp) GetParentName() *string { + return s.ParentName +} + +func (s *GetJobResp) GetParentVersion() *string { + return s.ParentVersion +} + +func (s *GetJobResp) GetScheduleRule() *ScheduleRule { + return s.ScheduleRule +} + +func (s *GetJobResp) GetSrcAddress() *string { + return s.SrcAddress +} + +func (s *GetJobResp) GetStatus() *string { + return s.Status +} + +func (s *GetJobResp) GetTags() *string { + return s.Tags +} + +func (s *GetJobResp) GetTargetStorageClass() *string { + return s.TargetStorageClass +} + +func (s *GetJobResp) GetTransferMode() *string { + return s.TransferMode +} + +func (s *GetJobResp) GetVersion() *string { + return s.Version +} + +func (s *GetJobResp) GetWithLastModifyTime() *bool { + return s.WithLastModifyTime +} + +func (s *GetJobResp) GetWithStorageClass() *bool { + return s.WithStorageClass +} + +func (s *GetJobResp) SetAppendableToNormal(v bool) *GetJobResp { + s.AppendableToNormal = &v + return s +} + +func (s *GetJobResp) SetAudit(v *Audit) *GetJobResp { + s.Audit = v + return s +} + +func (s *GetJobResp) SetConvertSymlinkTarget(v bool) *GetJobResp { + s.ConvertSymlinkTarget = &v + return s +} + +func (s *GetJobResp) SetCreateReport(v bool) *GetJobResp { + s.CreateReport = &v + return s +} + +func (s *GetJobResp) SetCreateTime(v string) *GetJobResp { + s.CreateTime = &v + return s +} + +func (s *GetJobResp) SetDestAddress(v string) *GetJobResp { + s.DestAddress = &v + return s +} + +func (s *GetJobResp) SetEnableMultiVersioning(v bool) *GetJobResp { + s.EnableMultiVersioning = &v + return s +} + +func (s *GetJobResp) SetFilterRule(v *FilterRule) *GetJobResp { + s.FilterRule = v + return s +} + +func (s *GetJobResp) SetImportQos(v *ImportQos) *GetJobResp { + s.ImportQos = v + return s +} + +func (s *GetJobResp) SetModifyTime(v string) *GetJobResp { + s.ModifyTime = &v + return s +} + +func (s *GetJobResp) SetName(v string) *GetJobResp { + s.Name = &v + return s +} + +func (s *GetJobResp) SetOverwriteMode(v string) *GetJobResp { + s.OverwriteMode = &v + return s +} + +func (s *GetJobResp) SetOwner(v string) *GetJobResp { + s.Owner = &v + return s +} + +func (s *GetJobResp) SetParentName(v string) *GetJobResp { + s.ParentName = &v + return s +} + +func (s *GetJobResp) SetParentVersion(v string) *GetJobResp { + s.ParentVersion = &v + return s +} + +func (s *GetJobResp) SetScheduleRule(v *ScheduleRule) *GetJobResp { + s.ScheduleRule = v + return s +} + +func (s *GetJobResp) SetSrcAddress(v string) *GetJobResp { + s.SrcAddress = &v + return s +} + +func (s *GetJobResp) SetStatus(v string) *GetJobResp { + s.Status = &v + return s +} + +func (s *GetJobResp) SetTags(v string) *GetJobResp { + s.Tags = &v + return s +} + +func (s *GetJobResp) SetTargetStorageClass(v string) *GetJobResp { + s.TargetStorageClass = &v + return s +} + +func (s *GetJobResp) SetTransferMode(v string) *GetJobResp { + s.TransferMode = &v + return s +} + +func (s *GetJobResp) SetVersion(v string) *GetJobResp { + s.Version = &v + return s +} + +func (s *GetJobResp) SetWithLastModifyTime(v bool) *GetJobResp { + s.WithLastModifyTime = &v + return s +} + +func (s *GetJobResp) SetWithStorageClass(v bool) *GetJobResp { + s.WithStorageClass = &v + return s +} + +func (s *GetJobResp) Validate() error { + if s.Audit != nil { + if err := s.Audit.Validate(); err != nil { + return err + } + } + if s.FilterRule != nil { + if err := s.FilterRule.Validate(); err != nil { + return err + } + } + if s.ImportQos != nil { + if err := s.ImportQos.Validate(); err != nil { + return err + } + } + if s.ScheduleRule != nil { + if err := s.ScheduleRule.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_body_model.go new file mode 100644 index 00000000..e7f2b24d --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobResponseBody interface { + dara.Model + String() string + GoString() string + SetImportJob(v *GetJobResp) *GetJobResponseBody + GetImportJob() *GetJobResp +} + +type GetJobResponseBody struct { + // The details for obtaining the details of the migration task. + ImportJob *GetJobResp `json:"ImportJob,omitempty" xml:"ImportJob,omitempty"` +} + +func (s GetJobResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetJobResponseBody) GoString() string { + return s.String() +} + +func (s *GetJobResponseBody) GetImportJob() *GetJobResp { + return s.ImportJob +} + +func (s *GetJobResponseBody) SetImportJob(v *GetJobResp) *GetJobResponseBody { + s.ImportJob = v + return s +} + +func (s *GetJobResponseBody) Validate() error { + if s.ImportJob != nil { + if err := s.ImportJob.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_model.go new file mode 100644 index 00000000..893bb6f9 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *GetJobResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *GetJobResponse + GetStatusCode() *int32 + SetBody(v *GetJobResponseBody) *GetJobResponse + GetBody() *GetJobResponseBody +} + +type GetJobResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetJobResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetJobResponse) String() string { + return dara.Prettify(s) +} + +func (s GetJobResponse) GoString() string { + return s.String() +} + +func (s *GetJobResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetJobResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetJobResponse) GetBody() *GetJobResponseBody { + return s.Body +} + +func (s *GetJobResponse) SetHeaders(v map[string]*string) *GetJobResponse { + s.Headers = v + return s +} + +func (s *GetJobResponse) SetStatusCode(v int32) *GetJobResponse { + s.StatusCode = &v + return s +} + +func (s *GetJobResponse) SetBody(v *GetJobResponseBody) *GetJobResponse { + s.Body = v + return s +} + +func (s *GetJobResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_request_model.go new file mode 100644 index 00000000..60c6cd97 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_request_model.go @@ -0,0 +1,46 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobResultRequest interface { + dara.Model + String() string + GoString() string + SetRuntimeId(v int32) *GetJobResultRequest + GetRuntimeId() *int32 +} + +type GetJobResultRequest struct { + // The execution ID of the task. + // + // This parameter is required. + // + // example: + // + // 2 + RuntimeId *int32 `json:"runtimeId,omitempty" xml:"runtimeId,omitempty"` +} + +func (s GetJobResultRequest) String() string { + return dara.Prettify(s) +} + +func (s GetJobResultRequest) GoString() string { + return s.String() +} + +func (s *GetJobResultRequest) GetRuntimeId() *int32 { + return s.RuntimeId +} + +func (s *GetJobResultRequest) SetRuntimeId(v int32) *GetJobResultRequest { + s.RuntimeId = &v + return s +} + +func (s *GetJobResultRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_resp_model.go new file mode 100644 index 00000000..792e7af8 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_resp_model.go @@ -0,0 +1,282 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobResultResp interface { + dara.Model + String() string + GoString() string + SetAddressType(v string) *GetJobResultResp + GetAddressType() *string + SetCopiedObjectCount(v int64) *GetJobResultResp + GetCopiedObjectCount() *int64 + SetCopiedObjectSize(v int64) *GetJobResultResp + GetCopiedObjectSize() *int64 + SetFailedObjectCount(v int64) *GetJobResultResp + GetFailedObjectCount() *int64 + SetInvAccessId(v string) *GetJobResultResp + GetInvAccessId() *string + SetInvAccessSecret(v string) *GetJobResultResp + GetInvAccessSecret() *string + SetInvBucket(v string) *GetJobResultResp + GetInvBucket() *string + SetInvDomain(v string) *GetJobResultResp + GetInvDomain() *string + SetInvLocation(v string) *GetJobResultResp + GetInvLocation() *string + SetInvPath(v string) *GetJobResultResp + GetInvPath() *string + SetInvRegionId(v string) *GetJobResultResp + GetInvRegionId() *string + SetReadyRetry(v string) *GetJobResultResp + GetReadyRetry() *string + SetSkippedObjectCount(v int64) *GetJobResultResp + GetSkippedObjectCount() *int64 + SetSkippedObjectSize(v int64) *GetJobResultResp + GetSkippedObjectSize() *int64 + SetTotalObjectCount(v int64) *GetJobResultResp + GetTotalObjectCount() *int64 + SetTotalObjectSize(v int64) *GetJobResultResp + GetTotalObjectSize() *int64 + SetVersion(v string) *GetJobResultResp + GetVersion() *string +} + +type GetJobResultResp struct { + // example: + // + // ossinv + AddressType *string `json:"AddressType,omitempty" xml:"AddressType,omitempty"` + // example: + // + // 800 + CopiedObjectCount *int64 `json:"CopiedObjectCount,omitempty" xml:"CopiedObjectCount,omitempty"` + // example: + // + // 800 + CopiedObjectSize *int64 `json:"CopiedObjectSize,omitempty" xml:"CopiedObjectSize,omitempty"` + // example: + // + // 200 + FailedObjectCount *int64 `json:"FailedObjectCount,omitempty" xml:"FailedObjectCount,omitempty"` + // example: + // + // ********************** + InvAccessId *string `json:"InvAccessId,omitempty" xml:"InvAccessId,omitempty"` + // example: + // + // ************************* + InvAccessSecret *string `json:"InvAccessSecret,omitempty" xml:"InvAccessSecret,omitempty"` + // example: + // + // + InvBucket *string `json:"InvBucket,omitempty" xml:"InvBucket,omitempty"` + // example: + // + // oss-cn-hangzhou.aliyuncs.com + InvDomain *string `json:"InvDomain,omitempty" xml:"InvDomain,omitempty"` + // example: + // + // oss + InvLocation *string `json:"InvLocation,omitempty" xml:"InvLocation,omitempty"` + // example: + // + // dir/mainfest.json + InvPath *string `json:"InvPath,omitempty" xml:"InvPath,omitempty"` + // example: + // + // oss-cn-hangzhou + InvRegionId *string `json:"InvRegionId,omitempty" xml:"InvRegionId,omitempty"` + // example: + // + // Ready + ReadyRetry *string `json:"ReadyRetry,omitempty" xml:"ReadyRetry,omitempty"` + // example: + // + // 5000 + SkippedObjectCount *int64 `json:"SkippedObjectCount,omitempty" xml:"SkippedObjectCount,omitempty"` + // example: + // + // 1000000 + SkippedObjectSize *int64 `json:"SkippedObjectSize,omitempty" xml:"SkippedObjectSize,omitempty"` + // example: + // + // 1000 + TotalObjectCount *int64 `json:"TotalObjectCount,omitempty" xml:"TotalObjectCount,omitempty"` + // example: + // + // 1000 + TotalObjectSize *int64 `json:"TotalObjectSize,omitempty" xml:"TotalObjectSize,omitempty"` + // example: + // + // ******-188f-41d9-b266-****** + Version *string `json:"Version,omitempty" xml:"Version,omitempty"` +} + +func (s GetJobResultResp) String() string { + return dara.Prettify(s) +} + +func (s GetJobResultResp) GoString() string { + return s.String() +} + +func (s *GetJobResultResp) GetAddressType() *string { + return s.AddressType +} + +func (s *GetJobResultResp) GetCopiedObjectCount() *int64 { + return s.CopiedObjectCount +} + +func (s *GetJobResultResp) GetCopiedObjectSize() *int64 { + return s.CopiedObjectSize +} + +func (s *GetJobResultResp) GetFailedObjectCount() *int64 { + return s.FailedObjectCount +} + +func (s *GetJobResultResp) GetInvAccessId() *string { + return s.InvAccessId +} + +func (s *GetJobResultResp) GetInvAccessSecret() *string { + return s.InvAccessSecret +} + +func (s *GetJobResultResp) GetInvBucket() *string { + return s.InvBucket +} + +func (s *GetJobResultResp) GetInvDomain() *string { + return s.InvDomain +} + +func (s *GetJobResultResp) GetInvLocation() *string { + return s.InvLocation +} + +func (s *GetJobResultResp) GetInvPath() *string { + return s.InvPath +} + +func (s *GetJobResultResp) GetInvRegionId() *string { + return s.InvRegionId +} + +func (s *GetJobResultResp) GetReadyRetry() *string { + return s.ReadyRetry +} + +func (s *GetJobResultResp) GetSkippedObjectCount() *int64 { + return s.SkippedObjectCount +} + +func (s *GetJobResultResp) GetSkippedObjectSize() *int64 { + return s.SkippedObjectSize +} + +func (s *GetJobResultResp) GetTotalObjectCount() *int64 { + return s.TotalObjectCount +} + +func (s *GetJobResultResp) GetTotalObjectSize() *int64 { + return s.TotalObjectSize +} + +func (s *GetJobResultResp) GetVersion() *string { + return s.Version +} + +func (s *GetJobResultResp) SetAddressType(v string) *GetJobResultResp { + s.AddressType = &v + return s +} + +func (s *GetJobResultResp) SetCopiedObjectCount(v int64) *GetJobResultResp { + s.CopiedObjectCount = &v + return s +} + +func (s *GetJobResultResp) SetCopiedObjectSize(v int64) *GetJobResultResp { + s.CopiedObjectSize = &v + return s +} + +func (s *GetJobResultResp) SetFailedObjectCount(v int64) *GetJobResultResp { + s.FailedObjectCount = &v + return s +} + +func (s *GetJobResultResp) SetInvAccessId(v string) *GetJobResultResp { + s.InvAccessId = &v + return s +} + +func (s *GetJobResultResp) SetInvAccessSecret(v string) *GetJobResultResp { + s.InvAccessSecret = &v + return s +} + +func (s *GetJobResultResp) SetInvBucket(v string) *GetJobResultResp { + s.InvBucket = &v + return s +} + +func (s *GetJobResultResp) SetInvDomain(v string) *GetJobResultResp { + s.InvDomain = &v + return s +} + +func (s *GetJobResultResp) SetInvLocation(v string) *GetJobResultResp { + s.InvLocation = &v + return s +} + +func (s *GetJobResultResp) SetInvPath(v string) *GetJobResultResp { + s.InvPath = &v + return s +} + +func (s *GetJobResultResp) SetInvRegionId(v string) *GetJobResultResp { + s.InvRegionId = &v + return s +} + +func (s *GetJobResultResp) SetReadyRetry(v string) *GetJobResultResp { + s.ReadyRetry = &v + return s +} + +func (s *GetJobResultResp) SetSkippedObjectCount(v int64) *GetJobResultResp { + s.SkippedObjectCount = &v + return s +} + +func (s *GetJobResultResp) SetSkippedObjectSize(v int64) *GetJobResultResp { + s.SkippedObjectSize = &v + return s +} + +func (s *GetJobResultResp) SetTotalObjectCount(v int64) *GetJobResultResp { + s.TotalObjectCount = &v + return s +} + +func (s *GetJobResultResp) SetTotalObjectSize(v int64) *GetJobResultResp { + s.TotalObjectSize = &v + return s +} + +func (s *GetJobResultResp) SetVersion(v string) *GetJobResultResp { + s.Version = &v + return s +} + +func (s *GetJobResultResp) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_body_model.go new file mode 100644 index 00000000..3d4aced5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobResultResponseBody interface { + dara.Model + String() string + GoString() string + SetImportJobResult(v *GetJobResultResp) *GetJobResultResponseBody + GetImportJobResult() *GetJobResultResp +} + +type GetJobResultResponseBody struct { + // The details for obtaining the retries of the migration task. + ImportJobResult *GetJobResultResp `json:"ImportJobResult,omitempty" xml:"ImportJobResult,omitempty"` +} + +func (s GetJobResultResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetJobResultResponseBody) GoString() string { + return s.String() +} + +func (s *GetJobResultResponseBody) GetImportJobResult() *GetJobResultResp { + return s.ImportJobResult +} + +func (s *GetJobResultResponseBody) SetImportJobResult(v *GetJobResultResp) *GetJobResultResponseBody { + s.ImportJobResult = v + return s +} + +func (s *GetJobResultResponseBody) Validate() error { + if s.ImportJobResult != nil { + if err := s.ImportJobResult.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_model.go new file mode 100644 index 00000000..f4e11576 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_job_result_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetJobResultResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *GetJobResultResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *GetJobResultResponse + GetStatusCode() *int32 + SetBody(v *GetJobResultResponseBody) *GetJobResultResponse + GetBody() *GetJobResultResponseBody +} + +type GetJobResultResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetJobResultResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetJobResultResponse) String() string { + return dara.Prettify(s) +} + +func (s GetJobResultResponse) GoString() string { + return s.String() +} + +func (s *GetJobResultResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetJobResultResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetJobResultResponse) GetBody() *GetJobResultResponseBody { + return s.Body +} + +func (s *GetJobResultResponse) SetHeaders(v map[string]*string) *GetJobResultResponse { + s.Headers = v + return s +} + +func (s *GetJobResultResponse) SetStatusCode(v int32) *GetJobResultResponse { + s.StatusCode = &v + return s +} + +func (s *GetJobResultResponse) SetBody(v *GetJobResultResponseBody) *GetJobResultResponse { + s.Body = v + return s +} + +func (s *GetJobResultResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_request_model.go new file mode 100644 index 00000000..0c367b73 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_request_model.go @@ -0,0 +1,63 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetReportRequest interface { + dara.Model + String() string + GoString() string + SetRuntimeId(v int32) *GetReportRequest + GetRuntimeId() *int32 + SetVersion(v string) *GetReportRequest + GetVersion() *string +} + +type GetReportRequest struct { + // The execution ID of the migration task. + // + // example: + // + // 1 + RuntimeId *int32 `json:"runtimeId,omitempty" xml:"runtimeId,omitempty"` + // The ID of the migration task. + // + // This parameter is required. + // + // example: + // + // test_job_id + Version *string `json:"version,omitempty" xml:"version,omitempty"` +} + +func (s GetReportRequest) String() string { + return dara.Prettify(s) +} + +func (s GetReportRequest) GoString() string { + return s.String() +} + +func (s *GetReportRequest) GetRuntimeId() *int32 { + return s.RuntimeId +} + +func (s *GetReportRequest) GetVersion() *string { + return s.Version +} + +func (s *GetReportRequest) SetRuntimeId(v int32) *GetReportRequest { + s.RuntimeId = &v + return s +} + +func (s *GetReportRequest) SetVersion(v string) *GetReportRequest { + s.Version = &v + return s +} + +func (s *GetReportRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_resp_model.go new file mode 100644 index 00000000..bcccf46a --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_resp_model.go @@ -0,0 +1,225 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetReportResp interface { + dara.Model + String() string + GoString() string + SetCopiedCount(v int64) *GetReportResp + GetCopiedCount() *int64 + SetErrorMessage(v string) *GetReportResp + GetErrorMessage() *string + SetFailedCount(v int64) *GetReportResp + GetFailedCount() *int64 + SetFailedListPrefix(v string) *GetReportResp + GetFailedListPrefix() *string + SetJobCreateTime(v string) *GetReportResp + GetJobCreateTime() *string + SetJobEndTime(v string) *GetReportResp + GetJobEndTime() *string + SetJobExecuteTime(v string) *GetReportResp + GetJobExecuteTime() *string + SetReportCreateTime(v string) *GetReportResp + GetReportCreateTime() *string + SetReportEndTime(v string) *GetReportResp + GetReportEndTime() *string + SetSkippedCount(v int64) *GetReportResp + GetSkippedCount() *int64 + SetSkippedListPrefix(v string) *GetReportResp + GetSkippedListPrefix() *string + SetStatus(v string) *GetReportResp + GetStatus() *string + SetTotalCount(v int64) *GetReportResp + GetTotalCount() *int64 + SetTotalListPrefix(v string) *GetReportResp + GetTotalListPrefix() *string +} + +type GetReportResp struct { + // example: + // + // 800 + CopiedCount *int64 `json:"CopiedCount,omitempty" xml:"CopiedCount,omitempty"` + ErrorMessage *string `json:"ErrorMessage,omitempty" xml:"ErrorMessage,omitempty"` + // example: + // + // 100 + FailedCount *int64 `json:"FailedCount,omitempty" xml:"FailedCount,omitempty"` + FailedListPrefix *string `json:"FailedListPrefix,omitempty" xml:"FailedListPrefix,omitempty"` + // example: + // + // 1754445355 + JobCreateTime *string `json:"JobCreateTime,omitempty" xml:"JobCreateTime,omitempty"` + // example: + // + // 1754445355 + JobEndTime *string `json:"JobEndTime,omitempty" xml:"JobEndTime,omitempty"` + // example: + // + // 1000 + JobExecuteTime *string `json:"JobExecuteTime,omitempty" xml:"JobExecuteTime,omitempty"` + // example: + // + // 1748232558 + ReportCreateTime *string `json:"ReportCreateTime,omitempty" xml:"ReportCreateTime,omitempty"` + // example: + // + // 1748232845 + ReportEndTime *string `json:"ReportEndTime,omitempty" xml:"ReportEndTime,omitempty"` + // example: + // + // 100 + SkippedCount *int64 `json:"SkippedCount,omitempty" xml:"SkippedCount,omitempty"` + SkippedListPrefix *string `json:"SkippedListPrefix,omitempty" xml:"SkippedListPrefix,omitempty"` + // example: + // + // Finished + Status *string `json:"Status,omitempty" xml:"Status,omitempty"` + // example: + // + // 1000 + TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` + TotalListPrefix *string `json:"TotalListPrefix,omitempty" xml:"TotalListPrefix,omitempty"` +} + +func (s GetReportResp) String() string { + return dara.Prettify(s) +} + +func (s GetReportResp) GoString() string { + return s.String() +} + +func (s *GetReportResp) GetCopiedCount() *int64 { + return s.CopiedCount +} + +func (s *GetReportResp) GetErrorMessage() *string { + return s.ErrorMessage +} + +func (s *GetReportResp) GetFailedCount() *int64 { + return s.FailedCount +} + +func (s *GetReportResp) GetFailedListPrefix() *string { + return s.FailedListPrefix +} + +func (s *GetReportResp) GetJobCreateTime() *string { + return s.JobCreateTime +} + +func (s *GetReportResp) GetJobEndTime() *string { + return s.JobEndTime +} + +func (s *GetReportResp) GetJobExecuteTime() *string { + return s.JobExecuteTime +} + +func (s *GetReportResp) GetReportCreateTime() *string { + return s.ReportCreateTime +} + +func (s *GetReportResp) GetReportEndTime() *string { + return s.ReportEndTime +} + +func (s *GetReportResp) GetSkippedCount() *int64 { + return s.SkippedCount +} + +func (s *GetReportResp) GetSkippedListPrefix() *string { + return s.SkippedListPrefix +} + +func (s *GetReportResp) GetStatus() *string { + return s.Status +} + +func (s *GetReportResp) GetTotalCount() *int64 { + return s.TotalCount +} + +func (s *GetReportResp) GetTotalListPrefix() *string { + return s.TotalListPrefix +} + +func (s *GetReportResp) SetCopiedCount(v int64) *GetReportResp { + s.CopiedCount = &v + return s +} + +func (s *GetReportResp) SetErrorMessage(v string) *GetReportResp { + s.ErrorMessage = &v + return s +} + +func (s *GetReportResp) SetFailedCount(v int64) *GetReportResp { + s.FailedCount = &v + return s +} + +func (s *GetReportResp) SetFailedListPrefix(v string) *GetReportResp { + s.FailedListPrefix = &v + return s +} + +func (s *GetReportResp) SetJobCreateTime(v string) *GetReportResp { + s.JobCreateTime = &v + return s +} + +func (s *GetReportResp) SetJobEndTime(v string) *GetReportResp { + s.JobEndTime = &v + return s +} + +func (s *GetReportResp) SetJobExecuteTime(v string) *GetReportResp { + s.JobExecuteTime = &v + return s +} + +func (s *GetReportResp) SetReportCreateTime(v string) *GetReportResp { + s.ReportCreateTime = &v + return s +} + +func (s *GetReportResp) SetReportEndTime(v string) *GetReportResp { + s.ReportEndTime = &v + return s +} + +func (s *GetReportResp) SetSkippedCount(v int64) *GetReportResp { + s.SkippedCount = &v + return s +} + +func (s *GetReportResp) SetSkippedListPrefix(v string) *GetReportResp { + s.SkippedListPrefix = &v + return s +} + +func (s *GetReportResp) SetStatus(v string) *GetReportResp { + s.Status = &v + return s +} + +func (s *GetReportResp) SetTotalCount(v int64) *GetReportResp { + s.TotalCount = &v + return s +} + +func (s *GetReportResp) SetTotalListPrefix(v string) *GetReportResp { + s.TotalListPrefix = &v + return s +} + +func (s *GetReportResp) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_body_model.go new file mode 100644 index 00000000..4e6bc4a3 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetReportResponseBody interface { + dara.Model + String() string + GoString() string + SetGetReportResponse(v *GetReportResp) *GetReportResponseBody + GetGetReportResponse() *GetReportResp +} + +type GetReportResponseBody struct { + // The details for obtaining the migration report. + GetReportResponse *GetReportResp `json:"GetReportResponse,omitempty" xml:"GetReportResponse,omitempty"` +} + +func (s GetReportResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetReportResponseBody) GoString() string { + return s.String() +} + +func (s *GetReportResponseBody) GetGetReportResponse() *GetReportResp { + return s.GetReportResponse +} + +func (s *GetReportResponseBody) SetGetReportResponse(v *GetReportResp) *GetReportResponseBody { + s.GetReportResponse = v + return s +} + +func (s *GetReportResponseBody) Validate() error { + if s.GetReportResponse != nil { + if err := s.GetReportResponse.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_model.go new file mode 100644 index 00000000..6a40e242 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_report_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetReportResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *GetReportResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *GetReportResponse + GetStatusCode() *int32 + SetBody(v *GetReportResponseBody) *GetReportResponse + GetBody() *GetReportResponseBody +} + +type GetReportResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetReportResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetReportResponse) String() string { + return dara.Prettify(s) +} + +func (s GetReportResponse) GoString() string { + return s.String() +} + +func (s *GetReportResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetReportResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetReportResponse) GetBody() *GetReportResponseBody { + return s.Body +} + +func (s *GetReportResponse) SetHeaders(v map[string]*string) *GetReportResponse { + s.Headers = v + return s +} + +func (s *GetReportResponse) SetStatusCode(v int32) *GetReportResponse { + s.StatusCode = &v + return s +} + +func (s *GetReportResponse) SetBody(v *GetReportResponseBody) *GetReportResponse { + s.Body = v + return s +} + +func (s *GetReportResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_resp_model.go new file mode 100644 index 00000000..96b4e1d9 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_resp_model.go @@ -0,0 +1,119 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetTunnelResp interface { + dara.Model + String() string + GoString() string + SetCreateTime(v string) *GetTunnelResp + GetCreateTime() *string + SetModifyTime(v string) *GetTunnelResp + GetModifyTime() *string + SetOwner(v string) *GetTunnelResp + GetOwner() *string + SetTags(v string) *GetTunnelResp + GetTags() *string + SetTunnelId(v string) *GetTunnelResp + GetTunnelId() *string + SetTunnelQos(v *TunnelQos) *GetTunnelResp + GetTunnelQos() *TunnelQos +} + +type GetTunnelResp struct { + // example: + // + // 2025-08-03T07:09:25.000Z + CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` + // example: + // + // 2025-08-04T07:09:26.000Z + ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` + // example: + // + // 1*5******7**43* + Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` + // example: + // + // K1:V1,K2:V2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + // example: + // + // ****33f-****-4740-****-bc4f****332b3 + TunnelId *string `json:"TunnelId,omitempty" xml:"TunnelId,omitempty"` + TunnelQos *TunnelQos `json:"TunnelQos,omitempty" xml:"TunnelQos,omitempty"` +} + +func (s GetTunnelResp) String() string { + return dara.Prettify(s) +} + +func (s GetTunnelResp) GoString() string { + return s.String() +} + +func (s *GetTunnelResp) GetCreateTime() *string { + return s.CreateTime +} + +func (s *GetTunnelResp) GetModifyTime() *string { + return s.ModifyTime +} + +func (s *GetTunnelResp) GetOwner() *string { + return s.Owner +} + +func (s *GetTunnelResp) GetTags() *string { + return s.Tags +} + +func (s *GetTunnelResp) GetTunnelId() *string { + return s.TunnelId +} + +func (s *GetTunnelResp) GetTunnelQos() *TunnelQos { + return s.TunnelQos +} + +func (s *GetTunnelResp) SetCreateTime(v string) *GetTunnelResp { + s.CreateTime = &v + return s +} + +func (s *GetTunnelResp) SetModifyTime(v string) *GetTunnelResp { + s.ModifyTime = &v + return s +} + +func (s *GetTunnelResp) SetOwner(v string) *GetTunnelResp { + s.Owner = &v + return s +} + +func (s *GetTunnelResp) SetTags(v string) *GetTunnelResp { + s.Tags = &v + return s +} + +func (s *GetTunnelResp) SetTunnelId(v string) *GetTunnelResp { + s.TunnelId = &v + return s +} + +func (s *GetTunnelResp) SetTunnelQos(v *TunnelQos) *GetTunnelResp { + s.TunnelQos = v + return s +} + +func (s *GetTunnelResp) Validate() error { + if s.TunnelQos != nil { + if err := s.TunnelQos.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_body_model.go new file mode 100644 index 00000000..9d63db8c --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetTunnelResponseBody interface { + dara.Model + String() string + GoString() string + SetImportTunnel(v *GetTunnelResp) *GetTunnelResponseBody + GetImportTunnel() *GetTunnelResp +} + +type GetTunnelResponseBody struct { + // The details for obtaining the details of the tunnel. + ImportTunnel *GetTunnelResp `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty"` +} + +func (s GetTunnelResponseBody) String() string { + return dara.Prettify(s) +} + +func (s GetTunnelResponseBody) GoString() string { + return s.String() +} + +func (s *GetTunnelResponseBody) GetImportTunnel() *GetTunnelResp { + return s.ImportTunnel +} + +func (s *GetTunnelResponseBody) SetImportTunnel(v *GetTunnelResp) *GetTunnelResponseBody { + s.ImportTunnel = v + return s +} + +func (s *GetTunnelResponseBody) Validate() error { + if s.ImportTunnel != nil { + if err := s.ImportTunnel.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_model.go new file mode 100644 index 00000000..dcdd7091 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/get_tunnel_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iGetTunnelResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *GetTunnelResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *GetTunnelResponse + GetStatusCode() *int32 + SetBody(v *GetTunnelResponseBody) *GetTunnelResponse + GetBody() *GetTunnelResponseBody +} + +type GetTunnelResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *GetTunnelResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s GetTunnelResponse) String() string { + return dara.Prettify(s) +} + +func (s GetTunnelResponse) GoString() string { + return s.String() +} + +func (s *GetTunnelResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *GetTunnelResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *GetTunnelResponse) GetBody() *GetTunnelResponseBody { + return s.Body +} + +func (s *GetTunnelResponse) SetHeaders(v map[string]*string) *GetTunnelResponse { + s.Headers = v + return s +} + +func (s *GetTunnelResponse) SetStatusCode(v int32) *GetTunnelResponse { + s.StatusCode = &v + return s +} + +func (s *GetTunnelResponse) SetBody(v *GetTunnelResponseBody) *GetTunnelResponse { + s.Body = v + return s +} + +func (s *GetTunnelResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/import_qos_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/import_qos_model.go new file mode 100644 index 00000000..5901eea5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/import_qos_model.go @@ -0,0 +1,57 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iImportQos interface { + dara.Model + String() string + GoString() string + SetMaxBandWidth(v int64) *ImportQos + GetMaxBandWidth() *int64 + SetMaxImportTaskQps(v int64) *ImportQos + GetMaxImportTaskQps() *int64 +} + +type ImportQos struct { + // example: + // + // 1073741824 + MaxBandWidth *int64 `json:"MaxBandWidth,omitempty" xml:"MaxBandWidth,omitempty"` + // example: + // + // 1000 + MaxImportTaskQps *int64 `json:"MaxImportTaskQps,omitempty" xml:"MaxImportTaskQps,omitempty"` +} + +func (s ImportQos) String() string { + return dara.Prettify(s) +} + +func (s ImportQos) GoString() string { + return s.String() +} + +func (s *ImportQos) GetMaxBandWidth() *int64 { + return s.MaxBandWidth +} + +func (s *ImportQos) GetMaxImportTaskQps() *int64 { + return s.MaxImportTaskQps +} + +func (s *ImportQos) SetMaxBandWidth(v int64) *ImportQos { + s.MaxBandWidth = &v + return s +} + +func (s *ImportQos) SetMaxImportTaskQps(v int64) *ImportQos { + s.MaxImportTaskQps = &v + return s +} + +func (s *ImportQos) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/job_history_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/job_history_model.go new file mode 100644 index 00000000..9335ae9d --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/job_history_model.go @@ -0,0 +1,264 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iJobHistory interface { + dara.Model + String() string + GoString() string + SetCommitId(v string) *JobHistory + GetCommitId() *string + SetCopiedCount(v int64) *JobHistory + GetCopiedCount() *int64 + SetCopiedSize(v int64) *JobHistory + GetCopiedSize() *int64 + SetEndTime(v string) *JobHistory + GetEndTime() *string + SetFailedCount(v int64) *JobHistory + GetFailedCount() *int64 + SetJobVersion(v string) *JobHistory + GetJobVersion() *string + SetListStatus(v string) *JobHistory + GetListStatus() *string + SetMessage(v string) *JobHistory + GetMessage() *string + SetName(v string) *JobHistory + GetName() *string + SetOperator(v string) *JobHistory + GetOperator() *string + SetRuntimeId(v string) *JobHistory + GetRuntimeId() *string + SetRuntimeState(v string) *JobHistory + GetRuntimeState() *string + SetStartTime(v string) *JobHistory + GetStartTime() *string + SetStatus(v string) *JobHistory + GetStatus() *string + SetTotalCount(v int64) *JobHistory + GetTotalCount() *int64 + SetTotalSize(v int64) *JobHistory + GetTotalSize() *int64 +} + +type JobHistory struct { + // example: + // + // 2 + CommitId *string `json:"CommitId,omitempty" xml:"CommitId,omitempty"` + // example: + // + // 900 + CopiedCount *int64 `json:"CopiedCount,omitempty" xml:"CopiedCount,omitempty"` + // example: + // + // 1000 + CopiedSize *int64 `json:"CopiedSize,omitempty" xml:"CopiedSize,omitempty"` + // example: + // + // 2025-07-04T08:09:26.000Z + EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` + // example: + // + // 100 + FailedCount *int64 `json:"FailedCount,omitempty" xml:"FailedCount,omitempty"` + // example: + // + // ****-188f-***-b266-**** + JobVersion *string `json:"JobVersion,omitempty" xml:"JobVersion,omitempty"` + // example: + // + // Listing + ListStatus *string `json:"ListStatus,omitempty" xml:"ListStatus,omitempty"` + Message *string `json:"Message,omitempty" xml:"Message,omitempty"` + // example: + // + // + Name *string `json:"Name,omitempty" xml:"Name,omitempty"` + // example: + // + // user + Operator *string `json:"Operator,omitempty" xml:"Operator,omitempty"` + // example: + // + // 1 + RuntimeId *string `json:"RuntimeId,omitempty" xml:"RuntimeId,omitempty"` + // example: + // + // Normal + RuntimeState *string `json:"RuntimeState,omitempty" xml:"RuntimeState,omitempty"` + // example: + // + // 2025-07-04T07:09:26.000Z + StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` + // example: + // + // IMPORT_JOB_DOING + Status *string `json:"Status,omitempty" xml:"Status,omitempty"` + // example: + // + // 1000 + TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` + // example: + // + // 1000 + TotalSize *int64 `json:"TotalSize,omitempty" xml:"TotalSize,omitempty"` +} + +func (s JobHistory) String() string { + return dara.Prettify(s) +} + +func (s JobHistory) GoString() string { + return s.String() +} + +func (s *JobHistory) GetCommitId() *string { + return s.CommitId +} + +func (s *JobHistory) GetCopiedCount() *int64 { + return s.CopiedCount +} + +func (s *JobHistory) GetCopiedSize() *int64 { + return s.CopiedSize +} + +func (s *JobHistory) GetEndTime() *string { + return s.EndTime +} + +func (s *JobHistory) GetFailedCount() *int64 { + return s.FailedCount +} + +func (s *JobHistory) GetJobVersion() *string { + return s.JobVersion +} + +func (s *JobHistory) GetListStatus() *string { + return s.ListStatus +} + +func (s *JobHistory) GetMessage() *string { + return s.Message +} + +func (s *JobHistory) GetName() *string { + return s.Name +} + +func (s *JobHistory) GetOperator() *string { + return s.Operator +} + +func (s *JobHistory) GetRuntimeId() *string { + return s.RuntimeId +} + +func (s *JobHistory) GetRuntimeState() *string { + return s.RuntimeState +} + +func (s *JobHistory) GetStartTime() *string { + return s.StartTime +} + +func (s *JobHistory) GetStatus() *string { + return s.Status +} + +func (s *JobHistory) GetTotalCount() *int64 { + return s.TotalCount +} + +func (s *JobHistory) GetTotalSize() *int64 { + return s.TotalSize +} + +func (s *JobHistory) SetCommitId(v string) *JobHistory { + s.CommitId = &v + return s +} + +func (s *JobHistory) SetCopiedCount(v int64) *JobHistory { + s.CopiedCount = &v + return s +} + +func (s *JobHistory) SetCopiedSize(v int64) *JobHistory { + s.CopiedSize = &v + return s +} + +func (s *JobHistory) SetEndTime(v string) *JobHistory { + s.EndTime = &v + return s +} + +func (s *JobHistory) SetFailedCount(v int64) *JobHistory { + s.FailedCount = &v + return s +} + +func (s *JobHistory) SetJobVersion(v string) *JobHistory { + s.JobVersion = &v + return s +} + +func (s *JobHistory) SetListStatus(v string) *JobHistory { + s.ListStatus = &v + return s +} + +func (s *JobHistory) SetMessage(v string) *JobHistory { + s.Message = &v + return s +} + +func (s *JobHistory) SetName(v string) *JobHistory { + s.Name = &v + return s +} + +func (s *JobHistory) SetOperator(v string) *JobHistory { + s.Operator = &v + return s +} + +func (s *JobHistory) SetRuntimeId(v string) *JobHistory { + s.RuntimeId = &v + return s +} + +func (s *JobHistory) SetRuntimeState(v string) *JobHistory { + s.RuntimeState = &v + return s +} + +func (s *JobHistory) SetStartTime(v string) *JobHistory { + s.StartTime = &v + return s +} + +func (s *JobHistory) SetStatus(v string) *JobHistory { + s.Status = &v + return s +} + +func (s *JobHistory) SetTotalCount(v int64) *JobHistory { + s.TotalCount = &v + return s +} + +func (s *JobHistory) SetTotalSize(v int64) *JobHistory { + s.TotalSize = &v + return s +} + +func (s *JobHistory) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filter_item_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filter_item_model.go new file mode 100644 index 00000000..9d8fe762 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filter_item_model.go @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iKeyFilterItem interface { + dara.Model + String() string + GoString() string + SetRegex(v []*string) *KeyFilterItem + GetRegex() []*string +} + +type KeyFilterItem struct { + Regex []*string `json:"Regex,omitempty" xml:"Regex,omitempty" type:"Repeated"` +} + +func (s KeyFilterItem) String() string { + return dara.Prettify(s) +} + +func (s KeyFilterItem) GoString() string { + return s.String() +} + +func (s *KeyFilterItem) GetRegex() []*string { + return s.Regex +} + +func (s *KeyFilterItem) SetRegex(v []*string) *KeyFilterItem { + s.Regex = v + return s +} + +func (s *KeyFilterItem) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filters_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filters_model.go new file mode 100644 index 00000000..4aa2c866 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/key_filters_model.go @@ -0,0 +1,61 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iKeyFilters interface { + dara.Model + String() string + GoString() string + SetExcludes(v *KeyFilterItem) *KeyFilters + GetExcludes() *KeyFilterItem + SetIncludes(v *KeyFilterItem) *KeyFilters + GetIncludes() *KeyFilterItem +} + +type KeyFilters struct { + Excludes *KeyFilterItem `json:"Excludes,omitempty" xml:"Excludes,omitempty"` + Includes *KeyFilterItem `json:"Includes,omitempty" xml:"Includes,omitempty"` +} + +func (s KeyFilters) String() string { + return dara.Prettify(s) +} + +func (s KeyFilters) GoString() string { + return s.String() +} + +func (s *KeyFilters) GetExcludes() *KeyFilterItem { + return s.Excludes +} + +func (s *KeyFilters) GetIncludes() *KeyFilterItem { + return s.Includes +} + +func (s *KeyFilters) SetExcludes(v *KeyFilterItem) *KeyFilters { + s.Excludes = v + return s +} + +func (s *KeyFilters) SetIncludes(v *KeyFilterItem) *KeyFilters { + s.Includes = v + return s +} + +func (s *KeyFilters) Validate() error { + if s.Excludes != nil { + if err := s.Excludes.Validate(); err != nil { + return err + } + } + if s.Includes != nil { + if err := s.Includes.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modified_filters_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modified_filters_model.go new file mode 100644 index 00000000..491d93e6 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modified_filters_model.go @@ -0,0 +1,61 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iLastModifiedFilters interface { + dara.Model + String() string + GoString() string + SetExcludes(v *LastModifyFilterItem) *LastModifiedFilters + GetExcludes() *LastModifyFilterItem + SetIncludes(v *LastModifyFilterItem) *LastModifiedFilters + GetIncludes() *LastModifyFilterItem +} + +type LastModifiedFilters struct { + Excludes *LastModifyFilterItem `json:"Excludes,omitempty" xml:"Excludes,omitempty"` + Includes *LastModifyFilterItem `json:"Includes,omitempty" xml:"Includes,omitempty"` +} + +func (s LastModifiedFilters) String() string { + return dara.Prettify(s) +} + +func (s LastModifiedFilters) GoString() string { + return s.String() +} + +func (s *LastModifiedFilters) GetExcludes() *LastModifyFilterItem { + return s.Excludes +} + +func (s *LastModifiedFilters) GetIncludes() *LastModifyFilterItem { + return s.Includes +} + +func (s *LastModifiedFilters) SetExcludes(v *LastModifyFilterItem) *LastModifiedFilters { + s.Excludes = v + return s +} + +func (s *LastModifiedFilters) SetIncludes(v *LastModifyFilterItem) *LastModifiedFilters { + s.Includes = v + return s +} + +func (s *LastModifiedFilters) Validate() error { + if s.Excludes != nil { + if err := s.Excludes.Validate(); err != nil { + return err + } + } + if s.Includes != nil { + if err := s.Includes.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modify_filter_item_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modify_filter_item_model.go new file mode 100644 index 00000000..2a475035 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/last_modify_filter_item_model.go @@ -0,0 +1,48 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iLastModifyFilterItem interface { + dara.Model + String() string + GoString() string + SetTimeFilter(v []*TimeFilter) *LastModifyFilterItem + GetTimeFilter() []*TimeFilter +} + +type LastModifyFilterItem struct { + TimeFilter []*TimeFilter `json:"TimeFilter,omitempty" xml:"TimeFilter,omitempty" type:"Repeated"` +} + +func (s LastModifyFilterItem) String() string { + return dara.Prettify(s) +} + +func (s LastModifyFilterItem) GoString() string { + return s.String() +} + +func (s *LastModifyFilterItem) GetTimeFilter() []*TimeFilter { + return s.TimeFilter +} + +func (s *LastModifyFilterItem) SetTimeFilter(v []*TimeFilter) *LastModifyFilterItem { + s.TimeFilter = v + return s +} + +func (s *LastModifyFilterItem) Validate() error { + if s.TimeFilter != nil { + for _, item := range s.TimeFilter { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_request_model.go new file mode 100644 index 00000000..88a4f398 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_request_model.go @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAddressRequest interface { + dara.Model + String() string + GoString() string + SetCount(v int32) *ListAddressRequest + GetCount() *int32 + SetMarker(v string) *ListAddressRequest + GetMarker() *string +} + +type ListAddressRequest struct { + // Specifies the number of migration addresses to be returned.\\ + // + // Valid values: 0 - 1000 (excluding 0).\\ + // + // Default value: 1000. + // + // example: + // + // 100 + Count *int32 `json:"count,omitempty" xml:"count,omitempty"` + // The marker after which the migration addresses are listed.\\ + // + // By default, this parameter is left empty. + // + // example: + // + // test_marker + Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` +} + +func (s ListAddressRequest) String() string { + return dara.Prettify(s) +} + +func (s ListAddressRequest) GoString() string { + return s.String() +} + +func (s *ListAddressRequest) GetCount() *int32 { + return s.Count +} + +func (s *ListAddressRequest) GetMarker() *string { + return s.Marker +} + +func (s *ListAddressRequest) SetCount(v int32) *ListAddressRequest { + s.Count = &v + return s +} + +func (s *ListAddressRequest) SetMarker(v string) *ListAddressRequest { + s.Marker = &v + return s +} + +func (s *ListAddressRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_resp_model.go new file mode 100644 index 00000000..e05b8eca --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_resp_model.go @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAddressResp interface { + dara.Model + String() string + GoString() string + SetImportAddress(v []*GetAddressResp) *ListAddressResp + GetImportAddress() []*GetAddressResp + SetNextMarker(v string) *ListAddressResp + GetNextMarker() *string + SetTruncated(v bool) *ListAddressResp + GetTruncated() *bool +} + +type ListAddressResp struct { + ImportAddress []*GetAddressResp `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty" type:"Repeated"` + // example: + // + // + NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` + // example: + // + // true + Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` +} + +func (s ListAddressResp) String() string { + return dara.Prettify(s) +} + +func (s ListAddressResp) GoString() string { + return s.String() +} + +func (s *ListAddressResp) GetImportAddress() []*GetAddressResp { + return s.ImportAddress +} + +func (s *ListAddressResp) GetNextMarker() *string { + return s.NextMarker +} + +func (s *ListAddressResp) GetTruncated() *bool { + return s.Truncated +} + +func (s *ListAddressResp) SetImportAddress(v []*GetAddressResp) *ListAddressResp { + s.ImportAddress = v + return s +} + +func (s *ListAddressResp) SetNextMarker(v string) *ListAddressResp { + s.NextMarker = &v + return s +} + +func (s *ListAddressResp) SetTruncated(v bool) *ListAddressResp { + s.Truncated = &v + return s +} + +func (s *ListAddressResp) Validate() error { + if s.ImportAddress != nil { + for _, item := range s.ImportAddress { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_body_model.go new file mode 100644 index 00000000..fff7e346 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAddressResponseBody interface { + dara.Model + String() string + GoString() string + SetImportAddressList(v *ListAddressResp) *ListAddressResponseBody + GetImportAddressList() *ListAddressResp +} + +type ListAddressResponseBody struct { + // The details of migration addresses. + ImportAddressList *ListAddressResp `json:"ImportAddressList,omitempty" xml:"ImportAddressList,omitempty"` +} + +func (s ListAddressResponseBody) String() string { + return dara.Prettify(s) +} + +func (s ListAddressResponseBody) GoString() string { + return s.String() +} + +func (s *ListAddressResponseBody) GetImportAddressList() *ListAddressResp { + return s.ImportAddressList +} + +func (s *ListAddressResponseBody) SetImportAddressList(v *ListAddressResp) *ListAddressResponseBody { + s.ImportAddressList = v + return s +} + +func (s *ListAddressResponseBody) Validate() error { + if s.ImportAddressList != nil { + if err := s.ImportAddressList.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_model.go new file mode 100644 index 00000000..64c839da --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_address_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAddressResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *ListAddressResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *ListAddressResponse + GetStatusCode() *int32 + SetBody(v *ListAddressResponseBody) *ListAddressResponse + GetBody() *ListAddressResponseBody +} + +type ListAddressResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *ListAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s ListAddressResponse) String() string { + return dara.Prettify(s) +} + +func (s ListAddressResponse) GoString() string { + return s.String() +} + +func (s *ListAddressResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *ListAddressResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *ListAddressResponse) GetBody() *ListAddressResponseBody { + return s.Body +} + +func (s *ListAddressResponse) SetHeaders(v map[string]*string) *ListAddressResponse { + s.Headers = v + return s +} + +func (s *ListAddressResponse) SetStatusCode(v int32) *ListAddressResponse { + s.StatusCode = &v + return s +} + +func (s *ListAddressResponse) SetBody(v *ListAddressResponseBody) *ListAddressResponse { + s.Body = v + return s +} + +func (s *ListAddressResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_request_model.go new file mode 100644 index 00000000..59d1dd82 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_request_model.go @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAgentRequest interface { + dara.Model + String() string + GoString() string + SetCount(v int32) *ListAgentRequest + GetCount() *int32 + SetMarker(v string) *ListAgentRequest + GetMarker() *string +} + +type ListAgentRequest struct { + // Specifies the number of agents to be returned.\\ + // + // Valid values: 0 - 1000.\\ + // + // Default value: 1000. + // + // example: + // + // 100 + Count *int32 `json:"count,omitempty" xml:"count,omitempty"` + // The marker after which the agents are listed.\\ + // + // By default, this parameter is left empty. + // + // example: + // + // test_agent + Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` +} + +func (s ListAgentRequest) String() string { + return dara.Prettify(s) +} + +func (s ListAgentRequest) GoString() string { + return s.String() +} + +func (s *ListAgentRequest) GetCount() *int32 { + return s.Count +} + +func (s *ListAgentRequest) GetMarker() *string { + return s.Marker +} + +func (s *ListAgentRequest) SetCount(v int32) *ListAgentRequest { + s.Count = &v + return s +} + +func (s *ListAgentRequest) SetMarker(v string) *ListAgentRequest { + s.Marker = &v + return s +} + +func (s *ListAgentRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_resp_model.go new file mode 100644 index 00000000..d2332e3c --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_resp_model.go @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAgentResp interface { + dara.Model + String() string + GoString() string + SetImportAgent(v []*GetAgentResp) *ListAgentResp + GetImportAgent() []*GetAgentResp + SetNextMarker(v string) *ListAgentResp + GetNextMarker() *string + SetTruncated(v bool) *ListAgentResp + GetTruncated() *bool +} + +type ListAgentResp struct { + ImportAgent []*GetAgentResp `json:"ImportAgent,omitempty" xml:"ImportAgent,omitempty" type:"Repeated"` + // example: + // + // + NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` + // example: + // + // true + Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` +} + +func (s ListAgentResp) String() string { + return dara.Prettify(s) +} + +func (s ListAgentResp) GoString() string { + return s.String() +} + +func (s *ListAgentResp) GetImportAgent() []*GetAgentResp { + return s.ImportAgent +} + +func (s *ListAgentResp) GetNextMarker() *string { + return s.NextMarker +} + +func (s *ListAgentResp) GetTruncated() *bool { + return s.Truncated +} + +func (s *ListAgentResp) SetImportAgent(v []*GetAgentResp) *ListAgentResp { + s.ImportAgent = v + return s +} + +func (s *ListAgentResp) SetNextMarker(v string) *ListAgentResp { + s.NextMarker = &v + return s +} + +func (s *ListAgentResp) SetTruncated(v bool) *ListAgentResp { + s.Truncated = &v + return s +} + +func (s *ListAgentResp) Validate() error { + if s.ImportAgent != nil { + for _, item := range s.ImportAgent { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_body_model.go new file mode 100644 index 00000000..dd692acb --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAgentResponseBody interface { + dara.Model + String() string + GoString() string + SetImportAgentList(v *ListAgentResp) *ListAgentResponseBody + GetImportAgentList() *ListAgentResp +} + +type ListAgentResponseBody struct { + // The details of the agents. + ImportAgentList *ListAgentResp `json:"ImportAgentList,omitempty" xml:"ImportAgentList,omitempty"` +} + +func (s ListAgentResponseBody) String() string { + return dara.Prettify(s) +} + +func (s ListAgentResponseBody) GoString() string { + return s.String() +} + +func (s *ListAgentResponseBody) GetImportAgentList() *ListAgentResp { + return s.ImportAgentList +} + +func (s *ListAgentResponseBody) SetImportAgentList(v *ListAgentResp) *ListAgentResponseBody { + s.ImportAgentList = v + return s +} + +func (s *ListAgentResponseBody) Validate() error { + if s.ImportAgentList != nil { + if err := s.ImportAgentList.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_model.go new file mode 100644 index 00000000..792a9d3e --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_agent_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListAgentResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *ListAgentResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *ListAgentResponse + GetStatusCode() *int32 + SetBody(v *ListAgentResponseBody) *ListAgentResponse + GetBody() *ListAgentResponseBody +} + +type ListAgentResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *ListAgentResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s ListAgentResponse) String() string { + return dara.Prettify(s) +} + +func (s ListAgentResponse) GoString() string { + return s.String() +} + +func (s *ListAgentResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *ListAgentResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *ListAgentResponse) GetBody() *ListAgentResponseBody { + return s.Body +} + +func (s *ListAgentResponse) SetHeaders(v map[string]*string) *ListAgentResponse { + s.Headers = v + return s +} + +func (s *ListAgentResponse) SetStatusCode(v int32) *ListAgentResponse { + s.StatusCode = &v + return s +} + +func (s *ListAgentResponse) SetBody(v *ListAgentResponseBody) *ListAgentResponse { + s.Body = v + return s +} + +func (s *ListAgentResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_request_model.go new file mode 100644 index 00000000..aca0c9f1 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_request_model.go @@ -0,0 +1,84 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobHistoryRequest interface { + dara.Model + String() string + GoString() string + SetCount(v int32) *ListJobHistoryRequest + GetCount() *int32 + SetMarker(v string) *ListJobHistoryRequest + GetMarker() *string + SetRuntimeId(v int32) *ListJobHistoryRequest + GetRuntimeId() *int32 +} + +type ListJobHistoryRequest struct { + // Specifies the number of running records of the migration task to be returned.\\ + // + // Valid values: 0 - 1000.\\ + // + // Default value: 1000. + // + // example: + // + // 100 + Count *int32 `json:"count,omitempty" xml:"count,omitempty"` + // The marker after which the running history of the task is listed.\\ + // + // By default, this parameter is left empty. + // + // example: + // + // test_marker + Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` + // The execution ID of the task. If you specify an execution ID, only the running history related to the execution ID is listed. + // + // example: + // + // 1 + RuntimeId *int32 `json:"runtimeId,omitempty" xml:"runtimeId,omitempty"` +} + +func (s ListJobHistoryRequest) String() string { + return dara.Prettify(s) +} + +func (s ListJobHistoryRequest) GoString() string { + return s.String() +} + +func (s *ListJobHistoryRequest) GetCount() *int32 { + return s.Count +} + +func (s *ListJobHistoryRequest) GetMarker() *string { + return s.Marker +} + +func (s *ListJobHistoryRequest) GetRuntimeId() *int32 { + return s.RuntimeId +} + +func (s *ListJobHistoryRequest) SetCount(v int32) *ListJobHistoryRequest { + s.Count = &v + return s +} + +func (s *ListJobHistoryRequest) SetMarker(v string) *ListJobHistoryRequest { + s.Marker = &v + return s +} + +func (s *ListJobHistoryRequest) SetRuntimeId(v int32) *ListJobHistoryRequest { + s.RuntimeId = &v + return s +} + +func (s *ListJobHistoryRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_resp_model.go new file mode 100644 index 00000000..97e28db0 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_resp_model.go @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobHistoryResp interface { + dara.Model + String() string + GoString() string + SetJobHistory(v []*JobHistory) *ListJobHistoryResp + GetJobHistory() []*JobHistory + SetNextMarker(v string) *ListJobHistoryResp + GetNextMarker() *string + SetTruncated(v string) *ListJobHistoryResp + GetTruncated() *string +} + +type ListJobHistoryResp struct { + JobHistory []*JobHistory `json:"JobHistory,omitempty" xml:"JobHistory,omitempty" type:"Repeated"` + // example: + // + // 1#3 + NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` + // example: + // + // true + Truncated *string `json:"Truncated,omitempty" xml:"Truncated,omitempty"` +} + +func (s ListJobHistoryResp) String() string { + return dara.Prettify(s) +} + +func (s ListJobHistoryResp) GoString() string { + return s.String() +} + +func (s *ListJobHistoryResp) GetJobHistory() []*JobHistory { + return s.JobHistory +} + +func (s *ListJobHistoryResp) GetNextMarker() *string { + return s.NextMarker +} + +func (s *ListJobHistoryResp) GetTruncated() *string { + return s.Truncated +} + +func (s *ListJobHistoryResp) SetJobHistory(v []*JobHistory) *ListJobHistoryResp { + s.JobHistory = v + return s +} + +func (s *ListJobHistoryResp) SetNextMarker(v string) *ListJobHistoryResp { + s.NextMarker = &v + return s +} + +func (s *ListJobHistoryResp) SetTruncated(v string) *ListJobHistoryResp { + s.Truncated = &v + return s +} + +func (s *ListJobHistoryResp) Validate() error { + if s.JobHistory != nil { + for _, item := range s.JobHistory { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_body_model.go new file mode 100644 index 00000000..06a10748 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobHistoryResponseBody interface { + dara.Model + String() string + GoString() string + SetJobHistoryList(v *ListJobHistoryResp) *ListJobHistoryResponseBody + GetJobHistoryList() *ListJobHistoryResp +} + +type ListJobHistoryResponseBody struct { + // The running history of the migration task. + JobHistoryList *ListJobHistoryResp `json:"JobHistoryList,omitempty" xml:"JobHistoryList,omitempty"` +} + +func (s ListJobHistoryResponseBody) String() string { + return dara.Prettify(s) +} + +func (s ListJobHistoryResponseBody) GoString() string { + return s.String() +} + +func (s *ListJobHistoryResponseBody) GetJobHistoryList() *ListJobHistoryResp { + return s.JobHistoryList +} + +func (s *ListJobHistoryResponseBody) SetJobHistoryList(v *ListJobHistoryResp) *ListJobHistoryResponseBody { + s.JobHistoryList = v + return s +} + +func (s *ListJobHistoryResponseBody) Validate() error { + if s.JobHistoryList != nil { + if err := s.JobHistoryList.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_model.go new file mode 100644 index 00000000..e271883a --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_history_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobHistoryResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *ListJobHistoryResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *ListJobHistoryResponse + GetStatusCode() *int32 + SetBody(v *ListJobHistoryResponseBody) *ListJobHistoryResponse + GetBody() *ListJobHistoryResponseBody +} + +type ListJobHistoryResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *ListJobHistoryResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s ListJobHistoryResponse) String() string { + return dara.Prettify(s) +} + +func (s ListJobHistoryResponse) GoString() string { + return s.String() +} + +func (s *ListJobHistoryResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *ListJobHistoryResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *ListJobHistoryResponse) GetBody() *ListJobHistoryResponseBody { + return s.Body +} + +func (s *ListJobHistoryResponse) SetHeaders(v map[string]*string) *ListJobHistoryResponse { + s.Headers = v + return s +} + +func (s *ListJobHistoryResponse) SetStatusCode(v int32) *ListJobHistoryResponse { + s.StatusCode = &v + return s +} + +func (s *ListJobHistoryResponse) SetBody(v *ListJobHistoryResponseBody) *ListJobHistoryResponse { + s.Body = v + return s +} + +func (s *ListJobHistoryResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_info_model.go new file mode 100644 index 00000000..401120c4 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_info_model.go @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobInfo interface { + dara.Model + String() string + GoString() string + SetImportJob(v []*CreateJobInfo) *ListJobInfo + GetImportJob() []*CreateJobInfo + SetNextMarker(v string) *ListJobInfo + GetNextMarker() *string + SetTruncated(v bool) *ListJobInfo + GetTruncated() *bool +} + +type ListJobInfo struct { + ImportJob []*CreateJobInfo `json:"ImportJob,omitempty" xml:"ImportJob,omitempty" type:"Repeated"` + // example: + // + // + NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` + // example: + // + // true + Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` +} + +func (s ListJobInfo) String() string { + return dara.Prettify(s) +} + +func (s ListJobInfo) GoString() string { + return s.String() +} + +func (s *ListJobInfo) GetImportJob() []*CreateJobInfo { + return s.ImportJob +} + +func (s *ListJobInfo) GetNextMarker() *string { + return s.NextMarker +} + +func (s *ListJobInfo) GetTruncated() *bool { + return s.Truncated +} + +func (s *ListJobInfo) SetImportJob(v []*CreateJobInfo) *ListJobInfo { + s.ImportJob = v + return s +} + +func (s *ListJobInfo) SetNextMarker(v string) *ListJobInfo { + s.NextMarker = &v + return s +} + +func (s *ListJobInfo) SetTruncated(v bool) *ListJobInfo { + s.Truncated = &v + return s +} + +func (s *ListJobInfo) Validate() error { + if s.ImportJob != nil { + for _, item := range s.ImportJob { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_request_model.go new file mode 100644 index 00000000..9babb08e --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_request_model.go @@ -0,0 +1,103 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobRequest interface { + dara.Model + String() string + GoString() string + SetAll(v bool) *ListJobRequest + GetAll() *bool + SetCount(v int32) *ListJobRequest + GetCount() *int32 + SetMarker(v string) *ListJobRequest + GetMarker() *string + SetParentName(v string) *ListJobRequest + GetParentName() *string +} + +type ListJobRequest struct { + // Specifies whether to return subtasks.\\ + // + // Valid values: true and false. + // + // example: + // + // true + All *bool `json:"all,omitempty" xml:"all,omitempty"` + // Specifies the number of migration tasks to be returned.\\ + // + // Valid values: 0 - 1000 (excluding 0).\\ + // + // Default value: 1000. + // + // example: + // + // 1000 + Count *int32 `json:"count,omitempty" xml:"count,omitempty"` + // The marker after which the migration tasks are listed.\\ + // + // By default, this parameter is left empty. + // + // example: + // + // test_marker + Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` + // The name of the parent task. If this parameter is specified, all subtasks of the parent task are returned. + // + // example: + // + // test_parent_job_name + ParentName *string `json:"parentName,omitempty" xml:"parentName,omitempty"` +} + +func (s ListJobRequest) String() string { + return dara.Prettify(s) +} + +func (s ListJobRequest) GoString() string { + return s.String() +} + +func (s *ListJobRequest) GetAll() *bool { + return s.All +} + +func (s *ListJobRequest) GetCount() *int32 { + return s.Count +} + +func (s *ListJobRequest) GetMarker() *string { + return s.Marker +} + +func (s *ListJobRequest) GetParentName() *string { + return s.ParentName +} + +func (s *ListJobRequest) SetAll(v bool) *ListJobRequest { + s.All = &v + return s +} + +func (s *ListJobRequest) SetCount(v int32) *ListJobRequest { + s.Count = &v + return s +} + +func (s *ListJobRequest) SetMarker(v string) *ListJobRequest { + s.Marker = &v + return s +} + +func (s *ListJobRequest) SetParentName(v string) *ListJobRequest { + s.ParentName = &v + return s +} + +func (s *ListJobRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_resp_model.go new file mode 100644 index 00000000..17845e28 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_resp_model.go @@ -0,0 +1,78 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobResp interface { + dara.Model + String() string + GoString() string + SetImportJob(v []*GetJobResp) *ListJobResp + GetImportJob() []*GetJobResp + SetNextMarker(v string) *ListJobResp + GetNextMarker() *string + SetTruncated(v bool) *ListJobResp + GetTruncated() *bool +} + +type ListJobResp struct { + ImportJob []*GetJobResp `json:"ImportJob,omitempty" xml:"ImportJob,omitempty" type:"Repeated"` + // example: + // + // + NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` + // example: + // + // true + Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` +} + +func (s ListJobResp) String() string { + return dara.Prettify(s) +} + +func (s ListJobResp) GoString() string { + return s.String() +} + +func (s *ListJobResp) GetImportJob() []*GetJobResp { + return s.ImportJob +} + +func (s *ListJobResp) GetNextMarker() *string { + return s.NextMarker +} + +func (s *ListJobResp) GetTruncated() *bool { + return s.Truncated +} + +func (s *ListJobResp) SetImportJob(v []*GetJobResp) *ListJobResp { + s.ImportJob = v + return s +} + +func (s *ListJobResp) SetNextMarker(v string) *ListJobResp { + s.NextMarker = &v + return s +} + +func (s *ListJobResp) SetTruncated(v bool) *ListJobResp { + s.Truncated = &v + return s +} + +func (s *ListJobResp) Validate() error { + if s.ImportJob != nil { + for _, item := range s.ImportJob { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_body_model.go new file mode 100644 index 00000000..0ba79ab8 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobResponseBody interface { + dara.Model + String() string + GoString() string + SetImportJobList(v *ListJobResp) *ListJobResponseBody + GetImportJobList() *ListJobResp +} + +type ListJobResponseBody struct { + // The queried migration tasks. + ImportJobList *ListJobResp `json:"ImportJobList,omitempty" xml:"ImportJobList,omitempty"` +} + +func (s ListJobResponseBody) String() string { + return dara.Prettify(s) +} + +func (s ListJobResponseBody) GoString() string { + return s.String() +} + +func (s *ListJobResponseBody) GetImportJobList() *ListJobResp { + return s.ImportJobList +} + +func (s *ListJobResponseBody) SetImportJobList(v *ListJobResp) *ListJobResponseBody { + s.ImportJobList = v + return s +} + +func (s *ListJobResponseBody) Validate() error { + if s.ImportJobList != nil { + if err := s.ImportJobList.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_model.go new file mode 100644 index 00000000..c61482e4 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_job_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListJobResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *ListJobResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *ListJobResponse + GetStatusCode() *int32 + SetBody(v *ListJobResponseBody) *ListJobResponse + GetBody() *ListJobResponseBody +} + +type ListJobResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *ListJobResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s ListJobResponse) String() string { + return dara.Prettify(s) +} + +func (s ListJobResponse) GoString() string { + return s.String() +} + +func (s *ListJobResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *ListJobResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *ListJobResponse) GetBody() *ListJobResponseBody { + return s.Body +} + +func (s *ListJobResponse) SetHeaders(v map[string]*string) *ListJobResponse { + s.Headers = v + return s +} + +func (s *ListJobResponse) SetStatusCode(v int32) *ListJobResponse { + s.StatusCode = &v + return s +} + +func (s *ListJobResponse) SetBody(v *ListJobResponseBody) *ListJobResponse { + s.Body = v + return s +} + +func (s *ListJobResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_request_model.go new file mode 100644 index 00000000..a0953d84 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_request_model.go @@ -0,0 +1,67 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListTunnelRequest interface { + dara.Model + String() string + GoString() string + SetCount(v int32) *ListTunnelRequest + GetCount() *int32 + SetMarker(v string) *ListTunnelRequest + GetMarker() *string +} + +type ListTunnelRequest struct { + // Specifies the number of tunnels to be returned.\\ + // + // Valid values: 0 - 1000.\\ + // + // Default value: 1000. + // + // example: + // + // 2 + Count *int32 `json:"count,omitempty" xml:"count,omitempty"` + // The marker after which tunnels are listed.\\ + // + // By default, this parameter is left empty. + // + // example: + // + // 1 + Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` +} + +func (s ListTunnelRequest) String() string { + return dara.Prettify(s) +} + +func (s ListTunnelRequest) GoString() string { + return s.String() +} + +func (s *ListTunnelRequest) GetCount() *int32 { + return s.Count +} + +func (s *ListTunnelRequest) GetMarker() *string { + return s.Marker +} + +func (s *ListTunnelRequest) SetCount(v int32) *ListTunnelRequest { + s.Count = &v + return s +} + +func (s *ListTunnelRequest) SetMarker(v string) *ListTunnelRequest { + s.Marker = &v + return s +} + +func (s *ListTunnelRequest) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_resp_model.go new file mode 100644 index 00000000..8fc154c7 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_resp_model.go @@ -0,0 +1,72 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListTunnelResp interface { + dara.Model + String() string + GoString() string + SetImportTunnel(v []*GetTunnelResp) *ListTunnelResp + GetImportTunnel() []*GetTunnelResp + SetNextMarker(v string) *ListTunnelResp + GetNextMarker() *string + SetTruncated(v bool) *ListTunnelResp + GetTruncated() *bool +} + +type ListTunnelResp struct { + ImportTunnel []*GetTunnelResp `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty" type:"Repeated"` + NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` + Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` +} + +func (s ListTunnelResp) String() string { + return dara.Prettify(s) +} + +func (s ListTunnelResp) GoString() string { + return s.String() +} + +func (s *ListTunnelResp) GetImportTunnel() []*GetTunnelResp { + return s.ImportTunnel +} + +func (s *ListTunnelResp) GetNextMarker() *string { + return s.NextMarker +} + +func (s *ListTunnelResp) GetTruncated() *bool { + return s.Truncated +} + +func (s *ListTunnelResp) SetImportTunnel(v []*GetTunnelResp) *ListTunnelResp { + s.ImportTunnel = v + return s +} + +func (s *ListTunnelResp) SetNextMarker(v string) *ListTunnelResp { + s.NextMarker = &v + return s +} + +func (s *ListTunnelResp) SetTruncated(v bool) *ListTunnelResp { + s.Truncated = &v + return s +} + +func (s *ListTunnelResp) Validate() error { + if s.ImportTunnel != nil { + for _, item := range s.ImportTunnel { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_body_model.go new file mode 100644 index 00000000..feb0c5b5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListTunnelResponseBody interface { + dara.Model + String() string + GoString() string + SetImportTunnelList(v *ListTunnelResp) *ListTunnelResponseBody + GetImportTunnelList() *ListTunnelResp +} + +type ListTunnelResponseBody struct { + // The details of the tunnels. + ImportTunnelList *ListTunnelResp `json:"ImportTunnelList,omitempty" xml:"ImportTunnelList,omitempty"` +} + +func (s ListTunnelResponseBody) String() string { + return dara.Prettify(s) +} + +func (s ListTunnelResponseBody) GoString() string { + return s.String() +} + +func (s *ListTunnelResponseBody) GetImportTunnelList() *ListTunnelResp { + return s.ImportTunnelList +} + +func (s *ListTunnelResponseBody) SetImportTunnelList(v *ListTunnelResp) *ListTunnelResponseBody { + s.ImportTunnelList = v + return s +} + +func (s *ListTunnelResponseBody) Validate() error { + if s.ImportTunnelList != nil { + if err := s.ImportTunnelList.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_model.go new file mode 100644 index 00000000..e0a2d5de --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/list_tunnel_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListTunnelResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *ListTunnelResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *ListTunnelResponse + GetStatusCode() *int32 + SetBody(v *ListTunnelResponseBody) *ListTunnelResponse + GetBody() *ListTunnelResponseBody +} + +type ListTunnelResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *ListTunnelResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s ListTunnelResponse) String() string { + return dara.Prettify(s) +} + +func (s ListTunnelResponse) GoString() string { + return s.String() +} + +func (s *ListTunnelResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *ListTunnelResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *ListTunnelResponse) GetBody() *ListTunnelResponseBody { + return s.Body +} + +func (s *ListTunnelResponse) SetHeaders(v map[string]*string) *ListTunnelResponse { + s.Headers = v + return s +} + +func (s *ListTunnelResponse) SetStatusCode(v int32) *ListTunnelResponse { + s.StatusCode = &v + return s +} + +func (s *ListTunnelResponse) SetBody(v *ListTunnelResponseBody) *ListTunnelResponse { + s.Body = v + return s +} + +func (s *ListTunnelResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/schedule_rule_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/schedule_rule_model.go new file mode 100644 index 00000000..2fa6f05a --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/schedule_rule_model.go @@ -0,0 +1,63 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iScheduleRule interface { + dara.Model + String() string + GoString() string + SetMaxScheduleCount(v int64) *ScheduleRule + GetMaxScheduleCount() *int64 + SetStartCronExpression(v string) *ScheduleRule + GetStartCronExpression() *string + SetSuspendCronExpression(v string) *ScheduleRule + GetSuspendCronExpression() *string +} + +type ScheduleRule struct { + MaxScheduleCount *int64 `json:"MaxScheduleCount,omitempty" xml:"MaxScheduleCount,omitempty"` + StartCronExpression *string `json:"StartCronExpression,omitempty" xml:"StartCronExpression,omitempty"` + SuspendCronExpression *string `json:"SuspendCronExpression,omitempty" xml:"SuspendCronExpression,omitempty"` +} + +func (s ScheduleRule) String() string { + return dara.Prettify(s) +} + +func (s ScheduleRule) GoString() string { + return s.String() +} + +func (s *ScheduleRule) GetMaxScheduleCount() *int64 { + return s.MaxScheduleCount +} + +func (s *ScheduleRule) GetStartCronExpression() *string { + return s.StartCronExpression +} + +func (s *ScheduleRule) GetSuspendCronExpression() *string { + return s.SuspendCronExpression +} + +func (s *ScheduleRule) SetMaxScheduleCount(v int64) *ScheduleRule { + s.MaxScheduleCount = &v + return s +} + +func (s *ScheduleRule) SetStartCronExpression(v string) *ScheduleRule { + s.StartCronExpression = &v + return s +} + +func (s *ScheduleRule) SetSuspendCronExpression(v string) *ScheduleRule { + s.SuspendCronExpression = &v + return s +} + +func (s *ScheduleRule) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/time_filter_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/time_filter_model.go new file mode 100644 index 00000000..b8467797 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/time_filter_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iTimeFilter interface { + dara.Model + String() string + GoString() string + SetEndTime(v string) *TimeFilter + GetEndTime() *string + SetStartTime(v string) *TimeFilter + GetStartTime() *string +} + +type TimeFilter struct { + EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` + StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` +} + +func (s TimeFilter) String() string { + return dara.Prettify(s) +} + +func (s TimeFilter) GoString() string { + return s.String() +} + +func (s *TimeFilter) GetEndTime() *string { + return s.EndTime +} + +func (s *TimeFilter) GetStartTime() *string { + return s.StartTime +} + +func (s *TimeFilter) SetEndTime(v string) *TimeFilter { + s.EndTime = &v + return s +} + +func (s *TimeFilter) SetStartTime(v string) *TimeFilter { + s.StartTime = &v + return s +} + +func (s *TimeFilter) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/tunnel_qos_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/tunnel_qos_model.go new file mode 100644 index 00000000..552306e4 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/tunnel_qos_model.go @@ -0,0 +1,57 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iTunnelQos interface { + dara.Model + String() string + GoString() string + SetMaxBandwidth(v int64) *TunnelQos + GetMaxBandwidth() *int64 + SetMaxQps(v int32) *TunnelQos + GetMaxQps() *int32 +} + +type TunnelQos struct { + // example: + // + // 1073741824 + MaxBandwidth *int64 `json:"MaxBandwidth,omitempty" xml:"MaxBandwidth,omitempty"` + // example: + // + // 100 + MaxQps *int32 `json:"MaxQps,omitempty" xml:"MaxQps,omitempty"` +} + +func (s TunnelQos) String() string { + return dara.Prettify(s) +} + +func (s TunnelQos) GoString() string { + return s.String() +} + +func (s *TunnelQos) GetMaxBandwidth() *int64 { + return s.MaxBandwidth +} + +func (s *TunnelQos) GetMaxQps() *int32 { + return s.MaxQps +} + +func (s *TunnelQos) SetMaxBandwidth(v int64) *TunnelQos { + s.MaxBandwidth = &v + return s +} + +func (s *TunnelQos) SetMaxQps(v int32) *TunnelQos { + s.MaxQps = &v + return s +} + +func (s *TunnelQos) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_info_model.go new file mode 100644 index 00000000..160d684f --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_info_model.go @@ -0,0 +1,39 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateAddressInfo interface { + dara.Model + String() string + GoString() string + SetAgentList(v string) *UpdateAddressInfo + GetAgentList() *string +} + +type UpdateAddressInfo struct { + AgentList *string `json:"AgentList,omitempty" xml:"AgentList,omitempty"` +} + +func (s UpdateAddressInfo) String() string { + return dara.Prettify(s) +} + +func (s UpdateAddressInfo) GoString() string { + return s.String() +} + +func (s *UpdateAddressInfo) GetAgentList() *string { + return s.AgentList +} + +func (s *UpdateAddressInfo) SetAgentList(v string) *UpdateAddressInfo { + s.AgentList = &v + return s +} + +func (s *UpdateAddressInfo) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_request_model.go new file mode 100644 index 00000000..0267d7fd --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_request_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateAddressRequest interface { + dara.Model + String() string + GoString() string + SetImportAddress(v *UpdateAddressInfo) *UpdateAddressRequest + GetImportAddress() *UpdateAddressInfo +} + +type UpdateAddressRequest struct { + // The details for updating the data address. + ImportAddress *UpdateAddressInfo `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty"` +} + +func (s UpdateAddressRequest) String() string { + return dara.Prettify(s) +} + +func (s UpdateAddressRequest) GoString() string { + return s.String() +} + +func (s *UpdateAddressRequest) GetImportAddress() *UpdateAddressInfo { + return s.ImportAddress +} + +func (s *UpdateAddressRequest) SetImportAddress(v *UpdateAddressInfo) *UpdateAddressRequest { + s.ImportAddress = v + return s +} + +func (s *UpdateAddressRequest) Validate() error { + if s.ImportAddress != nil { + if err := s.ImportAddress.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_response_model.go new file mode 100644 index 00000000..2c1a4256 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_address_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateAddressResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *UpdateAddressResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *UpdateAddressResponse + GetStatusCode() *int32 +} + +type UpdateAddressResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s UpdateAddressResponse) String() string { + return dara.Prettify(s) +} + +func (s UpdateAddressResponse) GoString() string { + return s.String() +} + +func (s *UpdateAddressResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *UpdateAddressResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *UpdateAddressResponse) SetHeaders(v map[string]*string) *UpdateAddressResponse { + s.Headers = v + return s +} + +func (s *UpdateAddressResponse) SetStatusCode(v int32) *UpdateAddressResponse { + s.StatusCode = &v + return s +} + +func (s *UpdateAddressResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_info_model.go new file mode 100644 index 00000000..2d71e09c --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_info_model.go @@ -0,0 +1,59 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateJobInfo interface { + dara.Model + String() string + GoString() string + SetImportQos(v *ImportQos) *UpdateJobInfo + GetImportQos() *ImportQos + SetStatus(v string) *UpdateJobInfo + GetStatus() *string +} + +type UpdateJobInfo struct { + ImportQos *ImportQos `json:"ImportQos,omitempty" xml:"ImportQos,omitempty"` + // example: + // + // IMPORT_JOB_LAUNCHING + Status *string `json:"Status,omitempty" xml:"Status,omitempty"` +} + +func (s UpdateJobInfo) String() string { + return dara.Prettify(s) +} + +func (s UpdateJobInfo) GoString() string { + return s.String() +} + +func (s *UpdateJobInfo) GetImportQos() *ImportQos { + return s.ImportQos +} + +func (s *UpdateJobInfo) GetStatus() *string { + return s.Status +} + +func (s *UpdateJobInfo) SetImportQos(v *ImportQos) *UpdateJobInfo { + s.ImportQos = v + return s +} + +func (s *UpdateJobInfo) SetStatus(v string) *UpdateJobInfo { + s.Status = &v + return s +} + +func (s *UpdateJobInfo) Validate() error { + if s.ImportQos != nil { + if err := s.ImportQos.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_request_model.go new file mode 100644 index 00000000..25e25691 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_request_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateJobRequest interface { + dara.Model + String() string + GoString() string + SetImportJob(v *UpdateJobInfo) *UpdateJobRequest + GetImportJob() *UpdateJobInfo +} + +type UpdateJobRequest struct { + // The details for updating the task. + ImportJob *UpdateJobInfo `json:"ImportJob,omitempty" xml:"ImportJob,omitempty"` +} + +func (s UpdateJobRequest) String() string { + return dara.Prettify(s) +} + +func (s UpdateJobRequest) GoString() string { + return s.String() +} + +func (s *UpdateJobRequest) GetImportJob() *UpdateJobInfo { + return s.ImportJob +} + +func (s *UpdateJobRequest) SetImportJob(v *UpdateJobInfo) *UpdateJobRequest { + s.ImportJob = v + return s +} + +func (s *UpdateJobRequest) Validate() error { + if s.ImportJob != nil { + if err := s.ImportJob.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_response_model.go new file mode 100644 index 00000000..8e7c0012 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_job_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateJobResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *UpdateJobResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *UpdateJobResponse + GetStatusCode() *int32 +} + +type UpdateJobResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s UpdateJobResponse) String() string { + return dara.Prettify(s) +} + +func (s UpdateJobResponse) GoString() string { + return s.String() +} + +func (s *UpdateJobResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *UpdateJobResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *UpdateJobResponse) SetHeaders(v map[string]*string) *UpdateJobResponse { + s.Headers = v + return s +} + +func (s *UpdateJobResponse) SetStatusCode(v int32) *UpdateJobResponse { + s.StatusCode = &v + return s +} + +func (s *UpdateJobResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_info_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_info_model.go new file mode 100644 index 00000000..b5daf71d --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_info_model.go @@ -0,0 +1,59 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateTunnelInfo interface { + dara.Model + String() string + GoString() string + SetTags(v string) *UpdateTunnelInfo + GetTags() *string + SetTunnelQos(v *TunnelQos) *UpdateTunnelInfo + GetTunnelQos() *TunnelQos +} + +type UpdateTunnelInfo struct { + // example: + // + // k1=v1;k2=v2 + Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` + TunnelQos *TunnelQos `json:"TunnelQos,omitempty" xml:"TunnelQos,omitempty"` +} + +func (s UpdateTunnelInfo) String() string { + return dara.Prettify(s) +} + +func (s UpdateTunnelInfo) GoString() string { + return s.String() +} + +func (s *UpdateTunnelInfo) GetTags() *string { + return s.Tags +} + +func (s *UpdateTunnelInfo) GetTunnelQos() *TunnelQos { + return s.TunnelQos +} + +func (s *UpdateTunnelInfo) SetTags(v string) *UpdateTunnelInfo { + s.Tags = &v + return s +} + +func (s *UpdateTunnelInfo) SetTunnelQos(v *TunnelQos) *UpdateTunnelInfo { + s.TunnelQos = v + return s +} + +func (s *UpdateTunnelInfo) Validate() error { + if s.TunnelQos != nil { + if err := s.TunnelQos.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_request_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_request_model.go new file mode 100644 index 00000000..6dba0bfa --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_request_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateTunnelRequest interface { + dara.Model + String() string + GoString() string + SetImportTunnel(v *UpdateTunnelInfo) *UpdateTunnelRequest + GetImportTunnel() *UpdateTunnelInfo +} + +type UpdateTunnelRequest struct { + // The details for updating the tunnel. + ImportTunnel *UpdateTunnelInfo `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty"` +} + +func (s UpdateTunnelRequest) String() string { + return dara.Prettify(s) +} + +func (s UpdateTunnelRequest) GoString() string { + return s.String() +} + +func (s *UpdateTunnelRequest) GetImportTunnel() *UpdateTunnelInfo { + return s.ImportTunnel +} + +func (s *UpdateTunnelRequest) SetImportTunnel(v *UpdateTunnelInfo) *UpdateTunnelRequest { + s.ImportTunnel = v + return s +} + +func (s *UpdateTunnelRequest) Validate() error { + if s.ImportTunnel != nil { + if err := s.ImportTunnel.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_response_model.go new file mode 100644 index 00000000..9f27777f --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/update_tunnel_response_model.go @@ -0,0 +1,51 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iUpdateTunnelResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *UpdateTunnelResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *UpdateTunnelResponse + GetStatusCode() *int32 +} + +type UpdateTunnelResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` +} + +func (s UpdateTunnelResponse) String() string { + return dara.Prettify(s) +} + +func (s UpdateTunnelResponse) GoString() string { + return s.String() +} + +func (s *UpdateTunnelResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *UpdateTunnelResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *UpdateTunnelResponse) SetHeaders(v map[string]*string) *UpdateTunnelResponse { + s.Headers = v + return s +} + +func (s *UpdateTunnelResponse) SetStatusCode(v int32) *UpdateTunnelResponse { + s.StatusCode = &v + return s +} + +func (s *UpdateTunnelResponse) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_resp_model.go new file mode 100644 index 00000000..8216f4e5 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_resp_model.go @@ -0,0 +1,81 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iVerifyAddressResp interface { + dara.Model + String() string + GoString() string + SetErrorCode(v string) *VerifyAddressResp + GetErrorCode() *string + SetErrorMessage(v string) *VerifyAddressResp + GetErrorMessage() *string + SetStatus(v string) *VerifyAddressResp + GetStatus() *string + SetVerifyTime(v string) *VerifyAddressResp + GetVerifyTime() *string +} + +type VerifyAddressResp struct { + ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` + ErrorMessage *string `json:"ErrorMessage,omitempty" xml:"ErrorMessage,omitempty"` + // example: + // + // avaliable + Status *string `json:"Status,omitempty" xml:"Status,omitempty"` + // example: + // + // 2024-05-01 12:00:00 + VerifyTime *string `json:"VerifyTime,omitempty" xml:"VerifyTime,omitempty"` +} + +func (s VerifyAddressResp) String() string { + return dara.Prettify(s) +} + +func (s VerifyAddressResp) GoString() string { + return s.String() +} + +func (s *VerifyAddressResp) GetErrorCode() *string { + return s.ErrorCode +} + +func (s *VerifyAddressResp) GetErrorMessage() *string { + return s.ErrorMessage +} + +func (s *VerifyAddressResp) GetStatus() *string { + return s.Status +} + +func (s *VerifyAddressResp) GetVerifyTime() *string { + return s.VerifyTime +} + +func (s *VerifyAddressResp) SetErrorCode(v string) *VerifyAddressResp { + s.ErrorCode = &v + return s +} + +func (s *VerifyAddressResp) SetErrorMessage(v string) *VerifyAddressResp { + s.ErrorMessage = &v + return s +} + +func (s *VerifyAddressResp) SetStatus(v string) *VerifyAddressResp { + s.Status = &v + return s +} + +func (s *VerifyAddressResp) SetVerifyTime(v string) *VerifyAddressResp { + s.VerifyTime = &v + return s +} + +func (s *VerifyAddressResp) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_body_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_body_model.go new file mode 100644 index 00000000..194337fe --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_body_model.go @@ -0,0 +1,45 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iVerifyAddressResponseBody interface { + dara.Model + String() string + GoString() string + SetVerifyAddressResponse(v *VerifyAddressResp) *VerifyAddressResponseBody + GetVerifyAddressResponse() *VerifyAddressResp +} + +type VerifyAddressResponseBody struct { + // The details for verifying the data address. + VerifyAddressResponse *VerifyAddressResp `json:"VerifyAddressResponse,omitempty" xml:"VerifyAddressResponse,omitempty"` +} + +func (s VerifyAddressResponseBody) String() string { + return dara.Prettify(s) +} + +func (s VerifyAddressResponseBody) GoString() string { + return s.String() +} + +func (s *VerifyAddressResponseBody) GetVerifyAddressResponse() *VerifyAddressResp { + return s.VerifyAddressResponse +} + +func (s *VerifyAddressResponseBody) SetVerifyAddressResponse(v *VerifyAddressResp) *VerifyAddressResponseBody { + s.VerifyAddressResponse = v + return s +} + +func (s *VerifyAddressResponseBody) Validate() error { + if s.VerifyAddressResponse != nil { + if err := s.VerifyAddressResponse.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_model.go new file mode 100644 index 00000000..75b0df8b --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_address_response_model.go @@ -0,0 +1,68 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iVerifyAddressResponse interface { + dara.Model + String() string + GoString() string + SetHeaders(v map[string]*string) *VerifyAddressResponse + GetHeaders() map[string]*string + SetStatusCode(v int32) *VerifyAddressResponse + GetStatusCode() *int32 + SetBody(v *VerifyAddressResponseBody) *VerifyAddressResponse + GetBody() *VerifyAddressResponseBody +} + +type VerifyAddressResponse struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Body *VerifyAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` +} + +func (s VerifyAddressResponse) String() string { + return dara.Prettify(s) +} + +func (s VerifyAddressResponse) GoString() string { + return s.String() +} + +func (s *VerifyAddressResponse) GetHeaders() map[string]*string { + return s.Headers +} + +func (s *VerifyAddressResponse) GetStatusCode() *int32 { + return s.StatusCode +} + +func (s *VerifyAddressResponse) GetBody() *VerifyAddressResponseBody { + return s.Body +} + +func (s *VerifyAddressResponse) SetHeaders(v map[string]*string) *VerifyAddressResponse { + s.Headers = v + return s +} + +func (s *VerifyAddressResponse) SetStatusCode(v int32) *VerifyAddressResponse { + s.StatusCode = &v + return s +} + +func (s *VerifyAddressResponse) SetBody(v *VerifyAddressResponseBody) *VerifyAddressResponse { + s.Body = v + return s +} + +func (s *VerifyAddressResponse) Validate() error { + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + return err + } + } + return nil +} diff --git a/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_resp_model.go b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_resp_model.go new file mode 100644 index 00000000..8e6eea21 --- /dev/null +++ b/alibabacloud-gateway-oss/util/golang/client/hcs_mgw_models/verify_resp_model.go @@ -0,0 +1,66 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iVerifyResp interface { + dara.Model + String() string + GoString() string + SetErrorCode(v string) *VerifyResp + GetErrorCode() *string + SetErrorMsg(v string) *VerifyResp + GetErrorMsg() *string + SetHttpCode(v string) *VerifyResp + GetHttpCode() *string +} + +type VerifyResp struct { + ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` + ErrorMsg *string `json:"ErrorMsg,omitempty" xml:"ErrorMsg,omitempty"` + // example: + // + // 200 + HttpCode *string `json:"HttpCode,omitempty" xml:"HttpCode,omitempty"` +} + +func (s VerifyResp) String() string { + return dara.Prettify(s) +} + +func (s VerifyResp) GoString() string { + return s.String() +} + +func (s *VerifyResp) GetErrorCode() *string { + return s.ErrorCode +} + +func (s *VerifyResp) GetErrorMsg() *string { + return s.ErrorMsg +} + +func (s *VerifyResp) GetHttpCode() *string { + return s.HttpCode +} + +func (s *VerifyResp) SetErrorCode(v string) *VerifyResp { + s.ErrorCode = &v + return s +} + +func (s *VerifyResp) SetErrorMsg(v string) *VerifyResp { + s.ErrorMsg = &v + return s +} + +func (s *VerifyResp) SetHttpCode(v string) *VerifyResp { + s.HttpCode = &v + return s +} + +func (s *VerifyResp) Validate() error { + return dara.Validate(s) +} diff --git a/alibabacloud-gateway-oss/util/golang/client/structs.go b/alibabacloud-gateway-oss/util/golang/client/structs.go index ebf81ba7..9c115849 100644 --- a/alibabacloud-gateway-oss/util/golang/client/structs.go +++ b/alibabacloud-gateway-oss/util/golang/client/structs.go @@ -42300,3228 +42300,3 @@ func (s *DeleteBucketOverwriteConfigResponse) SetStatusCode(v int32) *DeleteBuck func (s *DeleteBucketOverwriteConfigResponse) Validate() error { return dara.Validate(s) } - -// ================================================================== for hcs-mgw =========================================================== -type AddressDetail struct { - // This parameter is required. - // - // example: - // - // test_access_id - AccessId *string `json:"AccessId,omitempty" xml:"AccessId,omitempty"` - // This parameter is required. - // - // example: - // - // test_secret_key - AccessSecret *string `json:"AccessSecret,omitempty" xml:"AccessSecret,omitempty"` - // This parameter is required. - // - // example: - // - // ossinv - AddressType *string `json:"AddressType,omitempty" xml:"AddressType,omitempty"` - AgentList *string `json:"AgentList,omitempty" xml:"AgentList,omitempty"` - // This parameter is required. - // - // example: - // - // test_bucket - Bucket *string `json:"Bucket,omitempty" xml:"Bucket,omitempty"` - // This parameter is required. - // - // example: - // - // test_domain - Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"` - // example: - // - // test_inv_access_id - InvAccessId *string `json:"InvAccessId,omitempty" xml:"InvAccessId,omitempty"` - // example: - // - // test_inv_secret_key - InvAccessSecret *string `json:"InvAccessSecret,omitempty" xml:"InvAccessSecret,omitempty"` - // example: - // - // test_inv_bucket - InvBucket *string `json:"InvBucket,omitempty" xml:"InvBucket,omitempty"` - // example: - // - // test_inv_domain - InvDomain *string `json:"InvDomain,omitempty" xml:"InvDomain,omitempty"` - // example: - // - // oss - InvLocation *string `json:"InvLocation,omitempty" xml:"InvLocation,omitempty"` - // example: - // - // manifest.json - InvPath *string `json:"InvPath,omitempty" xml:"InvPath,omitempty"` - // example: - // - // test_inv_region_id - InvRegionId *string `json:"InvRegionId,omitempty" xml:"InvRegionId,omitempty"` - // example: - // - // test_inv_role - InvRole *string `json:"InvRole,omitempty" xml:"InvRole,omitempty"` - // example: - // - // test_prefix - Prefix *string `json:"Prefix,omitempty" xml:"Prefix,omitempty"` - // example: - // - // test_region_id - RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` - // example: - // - // test_role - Role *string `json:"Role,omitempty" xml:"Role,omitempty"` -} - -func (s AddressDetail) String() string { - return dara.Prettify(s) -} - -func (s AddressDetail) GoString() string { - return s.String() -} - -func (s *AddressDetail) SetAccessId(v string) *AddressDetail { - s.AccessId = &v - return s -} - -func (s *AddressDetail) SetAccessSecret(v string) *AddressDetail { - s.AccessSecret = &v - return s -} - -func (s *AddressDetail) SetAddressType(v string) *AddressDetail { - s.AddressType = &v - return s -} - -func (s *AddressDetail) SetAgentList(v string) *AddressDetail { - s.AgentList = &v - return s -} - -func (s *AddressDetail) SetBucket(v string) *AddressDetail { - s.Bucket = &v - return s -} - -func (s *AddressDetail) SetDomain(v string) *AddressDetail { - s.Domain = &v - return s -} - -func (s *AddressDetail) SetInvAccessId(v string) *AddressDetail { - s.InvAccessId = &v - return s -} - -func (s *AddressDetail) SetInvAccessSecret(v string) *AddressDetail { - s.InvAccessSecret = &v - return s -} - -func (s *AddressDetail) SetInvBucket(v string) *AddressDetail { - s.InvBucket = &v - return s -} - -func (s *AddressDetail) SetInvDomain(v string) *AddressDetail { - s.InvDomain = &v - return s -} - -func (s *AddressDetail) SetInvLocation(v string) *AddressDetail { - s.InvLocation = &v - return s -} - -func (s *AddressDetail) SetInvPath(v string) *AddressDetail { - s.InvPath = &v - return s -} - -func (s *AddressDetail) SetInvRegionId(v string) *AddressDetail { - s.InvRegionId = &v - return s -} - -func (s *AddressDetail) SetInvRole(v string) *AddressDetail { - s.InvRole = &v - return s -} - -func (s *AddressDetail) SetPrefix(v string) *AddressDetail { - s.Prefix = &v - return s -} - -func (s *AddressDetail) SetRegionId(v string) *AddressDetail { - s.RegionId = &v - return s -} - -func (s *AddressDetail) SetRole(v string) *AddressDetail { - s.Role = &v - return s -} - -type Audit struct { - // example: - // - // off - LogMode *string `json:"LogMode,omitempty" xml:"LogMode,omitempty"` -} - -func (s Audit) String() string { - return dara.Prettify(s) -} - -func (s Audit) GoString() string { - return s.String() -} - -func (s *Audit) SetLogMode(v string) *Audit { - s.LogMode = &v - return s -} - -type CreateAddressInfo struct { - // This parameter is required. - AddressDetail *AddressDetail `json:"AddressDetail,omitempty" xml:"AddressDetail,omitempty"` - // This parameter is required. - // - // example: - // - // test_name - Name *string `json:"Name,omitempty" xml:"Name,omitempty"` - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` -} - -func (s CreateAddressInfo) String() string { - return dara.Prettify(s) -} - -func (s CreateAddressInfo) GoString() string { - return s.String() -} - -func (s *CreateAddressInfo) SetAddressDetail(v *AddressDetail) *CreateAddressInfo { - s.AddressDetail = v - return s -} - -func (s *CreateAddressInfo) SetName(v string) *CreateAddressInfo { - s.Name = &v - return s -} - -func (s *CreateAddressInfo) SetTags(v string) *CreateAddressInfo { - s.Tags = &v - return s -} - -type CreateAgentInfo struct { - // This parameter is required. - // - // example: - // - // vpc - AgentEndpoint *string `json:"AgentEndpoint,omitempty" xml:"AgentEndpoint,omitempty"` - // This parameter is required. - // - // example: - // - // default - DeployMethod *string `json:"DeployMethod,omitempty" xml:"DeployMethod,omitempty"` - // This parameter is required. - // - // example: - // - // test_name - Name *string `json:"Name,omitempty" xml:"Name,omitempty"` - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - // This parameter is required. - // - // example: - // - // test_tunnel_id - TunnelId *string `json:"TunnelId,omitempty" xml:"TunnelId,omitempty"` -} - -func (s CreateAgentInfo) String() string { - return dara.Prettify(s) -} - -func (s CreateAgentInfo) GoString() string { - return s.String() -} - -func (s *CreateAgentInfo) SetAgentEndpoint(v string) *CreateAgentInfo { - s.AgentEndpoint = &v - return s -} - -func (s *CreateAgentInfo) SetDeployMethod(v string) *CreateAgentInfo { - s.DeployMethod = &v - return s -} - -func (s *CreateAgentInfo) SetName(v string) *CreateAgentInfo { - s.Name = &v - return s -} - -func (s *CreateAgentInfo) SetTags(v string) *CreateAgentInfo { - s.Tags = &v - return s -} - -func (s *CreateAgentInfo) SetTunnelId(v string) *CreateAgentInfo { - s.TunnelId = &v - return s -} - -type CreateJobInfo struct { - Audit *Audit `json:"Audit,omitempty" xml:"Audit,omitempty"` - // example: - // - // false - ConvertSymlinkTarget *bool `json:"ConvertSymlinkTarget,omitempty" xml:"ConvertSymlinkTarget,omitempty"` - CreateReport *bool `json:"CreateReport,omitempty" xml:"CreateReport,omitempty"` - // This parameter is required. - // - // example: - // - // test_dest_address - DestAddress *string `json:"DestAddress,omitempty" xml:"DestAddress,omitempty"` - EnableMultiVersioning *bool `json:"EnableMultiVersioning,omitempty" xml:"EnableMultiVersioning,omitempty"` - FilterRule *FilterRule `json:"FilterRule,omitempty" xml:"FilterRule,omitempty"` - ImportQos *ImportQos `json:"ImportQos,omitempty" xml:"ImportQos,omitempty"` - // This parameter is required. - // - // example: - // - // test_name - Name *string `json:"Name,omitempty" xml:"Name,omitempty"` - // This parameter is required. - // - // example: - // - // always - OverwriteMode *string `json:"OverwriteMode,omitempty" xml:"OverwriteMode,omitempty"` - ParentVersion *string `json:"ParentVersion,omitempty" xml:"ParentVersion,omitempty"` - ScheduleRule *ScheduleRule `json:"ScheduleRule,omitempty" xml:"ScheduleRule,omitempty"` - // This parameter is required. - // - // example: - // - // test_src_address - SrcAddress *string `json:"SrcAddress,omitempty" xml:"SrcAddress,omitempty"` - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - // This parameter is required. - // - // example: - // - // all - TransferMode *string `json:"TransferMode,omitempty" xml:"TransferMode,omitempty"` -} - -func (s CreateJobInfo) String() string { - return dara.Prettify(s) -} - -func (s CreateJobInfo) GoString() string { - return s.String() -} - -func (s *CreateJobInfo) SetAudit(v *Audit) *CreateJobInfo { - s.Audit = v - return s -} - -func (s *CreateJobInfo) SetConvertSymlinkTarget(v bool) *CreateJobInfo { - s.ConvertSymlinkTarget = &v - return s -} - -func (s *CreateJobInfo) SetCreateReport(v bool) *CreateJobInfo { - s.CreateReport = &v - return s -} - -func (s *CreateJobInfo) SetDestAddress(v string) *CreateJobInfo { - s.DestAddress = &v - return s -} - -func (s *CreateJobInfo) SetEnableMultiVersioning(v bool) *CreateJobInfo { - s.EnableMultiVersioning = &v - return s -} - -func (s *CreateJobInfo) SetFilterRule(v *FilterRule) *CreateJobInfo { - s.FilterRule = v - return s -} - -func (s *CreateJobInfo) SetImportQos(v *ImportQos) *CreateJobInfo { - s.ImportQos = v - return s -} - -func (s *CreateJobInfo) SetName(v string) *CreateJobInfo { - s.Name = &v - return s -} - -func (s *CreateJobInfo) SetOverwriteMode(v string) *CreateJobInfo { - s.OverwriteMode = &v - return s -} - -func (s *CreateJobInfo) SetParentVersion(v string) *CreateJobInfo { - s.ParentVersion = &v - return s -} - -func (s *CreateJobInfo) SetScheduleRule(v *ScheduleRule) *CreateJobInfo { - s.ScheduleRule = v - return s -} - -func (s *CreateJobInfo) SetSrcAddress(v string) *CreateJobInfo { - s.SrcAddress = &v - return s -} - -func (s *CreateJobInfo) SetTags(v string) *CreateJobInfo { - s.Tags = &v - return s -} - -func (s *CreateJobInfo) SetTransferMode(v string) *CreateJobInfo { - s.TransferMode = &v - return s -} - -type CreateReportInfo struct { - // example: - // - // test_job_name - JobName *string `json:"JobName,omitempty" xml:"JobName,omitempty"` - // example: - // - // 1 - RuntimeId *int32 `json:"RuntimeId,omitempty" xml:"RuntimeId,omitempty"` - // example: - // - // test_job_id - Version *string `json:"Version,omitempty" xml:"Version,omitempty"` -} - -func (s CreateReportInfo) String() string { - return dara.Prettify(s) -} - -func (s CreateReportInfo) GoString() string { - return s.String() -} - -func (s *CreateReportInfo) SetJobName(v string) *CreateReportInfo { - s.JobName = &v - return s -} - -func (s *CreateReportInfo) SetRuntimeId(v int32) *CreateReportInfo { - s.RuntimeId = &v - return s -} - -func (s *CreateReportInfo) SetVersion(v string) *CreateReportInfo { - s.Version = &v - return s -} - -type CreateTunnelInfo struct { - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - TunnelQos *TunnelQos `json:"TunnelQos,omitempty" xml:"TunnelQos,omitempty"` -} - -func (s CreateTunnelInfo) String() string { - return dara.Prettify(s) -} - -func (s CreateTunnelInfo) GoString() string { - return s.String() -} - -func (s *CreateTunnelInfo) SetTags(v string) *CreateTunnelInfo { - s.Tags = &v - return s -} - -func (s *CreateTunnelInfo) SetTunnelQos(v *TunnelQos) *CreateTunnelInfo { - s.TunnelQos = v - return s -} - -type FileTypeFilters struct { - // example: - // - // fasle - ExcludeDir *bool `json:"ExcludeDir,omitempty" xml:"ExcludeDir,omitempty"` - // example: - // - // fasle - ExcludeSymlink *bool `json:"ExcludeSymlink,omitempty" xml:"ExcludeSymlink,omitempty"` -} - -func (s FileTypeFilters) String() string { - return dara.Prettify(s) -} - -func (s FileTypeFilters) GoString() string { - return s.String() -} - -func (s *FileTypeFilters) SetExcludeDir(v bool) *FileTypeFilters { - s.ExcludeDir = &v - return s -} - -func (s *FileTypeFilters) SetExcludeSymlink(v bool) *FileTypeFilters { - s.ExcludeSymlink = &v - return s -} - -type FilterRule struct { - FileTypeFilters *FileTypeFilters `json:"FileTypeFilters,omitempty" xml:"FileTypeFilters,omitempty"` - KeyFilters *KeyFilters `json:"KeyFilters,omitempty" xml:"KeyFilters,omitempty"` - LastModifiedFilters *LastModifiedFilters `json:"LastModifiedFilters,omitempty" xml:"LastModifiedFilters,omitempty"` -} - -func (s FilterRule) String() string { - return dara.Prettify(s) -} - -func (s FilterRule) GoString() string { - return s.String() -} - -func (s *FilterRule) SetFileTypeFilters(v *FileTypeFilters) *FilterRule { - s.FileTypeFilters = v - return s -} - -func (s *FilterRule) SetKeyFilters(v *KeyFilters) *FilterRule { - s.KeyFilters = v - return s -} - -func (s *FilterRule) SetLastModifiedFilters(v *LastModifiedFilters) *FilterRule { - s.LastModifiedFilters = v - return s -} - -type GetAddressResp struct { - AddressDetail *AddressDetail `json:"AddressDetail,omitempty" xml:"AddressDetail,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` - // example: - // - // test_name - Name *string `json:"Name,omitempty" xml:"Name,omitempty"` - // example: - // - // test_owner - Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` - // example: - // - // avaliable - Status *string `json:"Status,omitempty" xml:"Status,omitempty"` - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - VerifyResult *VerifyResp `json:"VerifyResult,omitempty" xml:"VerifyResult,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - VerifyTime *string `json:"VerifyTime,omitempty" xml:"VerifyTime,omitempty"` - // example: - // - // test_id - Version *string `json:"Version,omitempty" xml:"Version,omitempty"` -} - -func (s GetAddressResp) String() string { - return dara.Prettify(s) -} - -func (s GetAddressResp) GoString() string { - return s.String() -} - -func (s *GetAddressResp) SetAddressDetail(v *AddressDetail) *GetAddressResp { - s.AddressDetail = v - return s -} - -func (s *GetAddressResp) SetCreateTime(v string) *GetAddressResp { - s.CreateTime = &v - return s -} - -func (s *GetAddressResp) SetModifyTime(v string) *GetAddressResp { - s.ModifyTime = &v - return s -} - -func (s *GetAddressResp) SetName(v string) *GetAddressResp { - s.Name = &v - return s -} - -func (s *GetAddressResp) SetOwner(v string) *GetAddressResp { - s.Owner = &v - return s -} - -func (s *GetAddressResp) SetStatus(v string) *GetAddressResp { - s.Status = &v - return s -} - -func (s *GetAddressResp) SetTags(v string) *GetAddressResp { - s.Tags = &v - return s -} - -func (s *GetAddressResp) SetVerifyResult(v *VerifyResp) *GetAddressResp { - s.VerifyResult = v - return s -} - -func (s *GetAddressResp) SetVerifyTime(v string) *GetAddressResp { - s.VerifyTime = &v - return s -} - -func (s *GetAddressResp) SetVersion(v string) *GetAddressResp { - s.Version = &v - return s -} - -type GetAgentResp struct { - ActivationKey *string `json:"ActivationKey,omitempty" xml:"ActivationKey,omitempty"` - // example: - // - // vpc - AgentEndpoint *string `json:"AgentEndpoint,omitempty" xml:"AgentEndpoint,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` - // example: - // - // default - DeployMethod *string `json:"DeployMethod,omitempty" xml:"DeployMethod,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` - // example: - // - // test_name - Name *string `json:"Name,omitempty" xml:"Name,omitempty"` - // example: - // - // test_owner - Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - // example: - // - // test_tunnel_id - TunnelId *string `json:"TunnelId,omitempty" xml:"TunnelId,omitempty"` - // example: - // - // test_agent_id - Version *string `json:"Version,omitempty" xml:"Version,omitempty"` -} - -func (s GetAgentResp) String() string { - return dara.Prettify(s) -} - -func (s GetAgentResp) GoString() string { - return s.String() -} - -func (s *GetAgentResp) SetActivationKey(v string) *GetAgentResp { - s.ActivationKey = &v - return s -} - -func (s *GetAgentResp) SetAgentEndpoint(v string) *GetAgentResp { - s.AgentEndpoint = &v - return s -} - -func (s *GetAgentResp) SetCreateTime(v string) *GetAgentResp { - s.CreateTime = &v - return s -} - -func (s *GetAgentResp) SetDeployMethod(v string) *GetAgentResp { - s.DeployMethod = &v - return s -} - -func (s *GetAgentResp) SetModifyTime(v string) *GetAgentResp { - s.ModifyTime = &v - return s -} - -func (s *GetAgentResp) SetName(v string) *GetAgentResp { - s.Name = &v - return s -} - -func (s *GetAgentResp) SetOwner(v string) *GetAgentResp { - s.Owner = &v - return s -} - -func (s *GetAgentResp) SetTags(v string) *GetAgentResp { - s.Tags = &v - return s -} - -func (s *GetAgentResp) SetTunnelId(v string) *GetAgentResp { - s.TunnelId = &v - return s -} - -func (s *GetAgentResp) SetVersion(v string) *GetAgentResp { - s.Version = &v - return s -} - -type GetAgentStatusResp struct { - // example: - // - // OK - Status *string `json:"Status,omitempty" xml:"Status,omitempty"` -} - -func (s GetAgentStatusResp) String() string { - return dara.Prettify(s) -} - -func (s GetAgentStatusResp) GoString() string { - return s.String() -} - -func (s *GetAgentStatusResp) SetStatus(v string) *GetAgentStatusResp { - s.Status = &v - return s -} - -type GetJobResp struct { - Audit *Audit `json:"Audit,omitempty" xml:"Audit,omitempty"` - // example: - // - // false - ConvertSymlinkTarget *bool `json:"ConvertSymlinkTarget,omitempty" xml:"ConvertSymlinkTarget,omitempty"` - // example: - // - // false - CreateReport *bool `json:"CreateReport,omitempty" xml:"CreateReport,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` - // example: - // - // test_dest_address - DestAddress *string `json:"DestAddress,omitempty" xml:"DestAddress,omitempty"` - // example: - // - // false - EnableMultiVersioning *bool `json:"EnableMultiVersioning,omitempty" xml:"EnableMultiVersioning,omitempty"` - FilterRule *FilterRule `json:"FilterRule,omitempty" xml:"FilterRule,omitempty"` - ImportQos *ImportQos `json:"ImportQos,omitempty" xml:"ImportQos,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` - // example: - // - // test_name - Name *string `json:"Name,omitempty" xml:"Name,omitempty"` - // example: - // - // always - OverwriteMode *string `json:"OverwriteMode,omitempty" xml:"OverwriteMode,omitempty"` - Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` - ParentName *string `json:"ParentName,omitempty" xml:"ParentName,omitempty"` - ParentVersion *string `json:"ParentVersion,omitempty" xml:"ParentVersion,omitempty"` - ScheduleRule *ScheduleRule `json:"ScheduleRule,omitempty" xml:"ScheduleRule,omitempty"` - // example: - // - // test_src_address - SrcAddress *string `json:"SrcAddress,omitempty" xml:"SrcAddress,omitempty"` - // example: - // - // IMPORT_JOB_DOING - Status *string `json:"Status,omitempty" xml:"Status,omitempty"` - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - // example: - // - // all - TransferMode *string `json:"TransferMode,omitempty" xml:"TransferMode,omitempty"` - // example: - // - // test_id - Version *string `json:"Version,omitempty" xml:"Version,omitempty"` -} - -func (s GetJobResp) String() string { - return dara.Prettify(s) -} - -func (s GetJobResp) GoString() string { - return s.String() -} - -func (s *GetJobResp) SetAudit(v *Audit) *GetJobResp { - s.Audit = v - return s -} - -func (s *GetJobResp) SetConvertSymlinkTarget(v bool) *GetJobResp { - s.ConvertSymlinkTarget = &v - return s -} - -func (s *GetJobResp) SetCreateReport(v bool) *GetJobResp { - s.CreateReport = &v - return s -} - -func (s *GetJobResp) SetCreateTime(v string) *GetJobResp { - s.CreateTime = &v - return s -} - -func (s *GetJobResp) SetDestAddress(v string) *GetJobResp { - s.DestAddress = &v - return s -} - -func (s *GetJobResp) SetEnableMultiVersioning(v bool) *GetJobResp { - s.EnableMultiVersioning = &v - return s -} - -func (s *GetJobResp) SetFilterRule(v *FilterRule) *GetJobResp { - s.FilterRule = v - return s -} - -func (s *GetJobResp) SetImportQos(v *ImportQos) *GetJobResp { - s.ImportQos = v - return s -} - -func (s *GetJobResp) SetModifyTime(v string) *GetJobResp { - s.ModifyTime = &v - return s -} - -func (s *GetJobResp) SetName(v string) *GetJobResp { - s.Name = &v - return s -} - -func (s *GetJobResp) SetOverwriteMode(v string) *GetJobResp { - s.OverwriteMode = &v - return s -} - -func (s *GetJobResp) SetOwner(v string) *GetJobResp { - s.Owner = &v - return s -} - -func (s *GetJobResp) SetParentName(v string) *GetJobResp { - s.ParentName = &v - return s -} - -func (s *GetJobResp) SetParentVersion(v string) *GetJobResp { - s.ParentVersion = &v - return s -} - -func (s *GetJobResp) SetScheduleRule(v *ScheduleRule) *GetJobResp { - s.ScheduleRule = v - return s -} - -func (s *GetJobResp) SetSrcAddress(v string) *GetJobResp { - s.SrcAddress = &v - return s -} - -func (s *GetJobResp) SetStatus(v string) *GetJobResp { - s.Status = &v - return s -} - -func (s *GetJobResp) SetTags(v string) *GetJobResp { - s.Tags = &v - return s -} - -func (s *GetJobResp) SetTransferMode(v string) *GetJobResp { - s.TransferMode = &v - return s -} - -func (s *GetJobResp) SetVersion(v string) *GetJobResp { - s.Version = &v - return s -} - -type GetJobResultResp struct { - // example: - // - // ossinv - AddressType *string `json:"AddressType,omitempty" xml:"AddressType,omitempty"` - // example: - // - // 800 - CopiedObjectCount *int64 `json:"CopiedObjectCount,omitempty" xml:"CopiedObjectCount,omitempty"` - // example: - // - // 800 - CopiedObjectSize *int64 `json:"CopiedObjectSize,omitempty" xml:"CopiedObjectSize,omitempty"` - // example: - // - // 200 - FailedObjectCount *int64 `json:"FailedObjectCount,omitempty" xml:"FailedObjectCount,omitempty"` - // example: - // - // test_access_id - InvAccessId *string `json:"InvAccessId,omitempty" xml:"InvAccessId,omitempty"` - // example: - // - // test_secret_key - InvAccessSecret *string `json:"InvAccessSecret,omitempty" xml:"InvAccessSecret,omitempty"` - // example: - // - // test_sys_bucket - InvBucket *string `json:"InvBucket,omitempty" xml:"InvBucket,omitempty"` - // example: - // - // test_domain - InvDomain *string `json:"InvDomain,omitempty" xml:"InvDomain,omitempty"` - // example: - // - // oss - InvLocation *string `json:"InvLocation,omitempty" xml:"InvLocation,omitempty"` - // example: - // - // mainfest.json - InvPath *string `json:"InvPath,omitempty" xml:"InvPath,omitempty"` - // example: - // - // test_region_id - InvRegionId *string `json:"InvRegionId,omitempty" xml:"InvRegionId,omitempty"` - // example: - // - // Ready - ReadyRetry *string `json:"ReadyRetry,omitempty" xml:"ReadyRetry,omitempty"` - // example: - // - // 1000 - TotalObjectCount *int64 `json:"TotalObjectCount,omitempty" xml:"TotalObjectCount,omitempty"` - // example: - // - // 1000 - TotalObjectSize *int64 `json:"TotalObjectSize,omitempty" xml:"TotalObjectSize,omitempty"` - // example: - // - // test_job_id - Version *string `json:"Version,omitempty" xml:"Version,omitempty"` -} - -func (s GetJobResultResp) String() string { - return dara.Prettify(s) -} - -func (s GetJobResultResp) GoString() string { - return s.String() -} - -func (s *GetJobResultResp) SetAddressType(v string) *GetJobResultResp { - s.AddressType = &v - return s -} - -func (s *GetJobResultResp) SetCopiedObjectCount(v int64) *GetJobResultResp { - s.CopiedObjectCount = &v - return s -} - -func (s *GetJobResultResp) SetCopiedObjectSize(v int64) *GetJobResultResp { - s.CopiedObjectSize = &v - return s -} - -func (s *GetJobResultResp) SetFailedObjectCount(v int64) *GetJobResultResp { - s.FailedObjectCount = &v - return s -} - -func (s *GetJobResultResp) SetInvAccessId(v string) *GetJobResultResp { - s.InvAccessId = &v - return s -} - -func (s *GetJobResultResp) SetInvAccessSecret(v string) *GetJobResultResp { - s.InvAccessSecret = &v - return s -} - -func (s *GetJobResultResp) SetInvBucket(v string) *GetJobResultResp { - s.InvBucket = &v - return s -} - -func (s *GetJobResultResp) SetInvDomain(v string) *GetJobResultResp { - s.InvDomain = &v - return s -} - -func (s *GetJobResultResp) SetInvLocation(v string) *GetJobResultResp { - s.InvLocation = &v - return s -} - -func (s *GetJobResultResp) SetInvPath(v string) *GetJobResultResp { - s.InvPath = &v - return s -} - -func (s *GetJobResultResp) SetInvRegionId(v string) *GetJobResultResp { - s.InvRegionId = &v - return s -} - -func (s *GetJobResultResp) SetReadyRetry(v string) *GetJobResultResp { - s.ReadyRetry = &v - return s -} - -func (s *GetJobResultResp) SetTotalObjectCount(v int64) *GetJobResultResp { - s.TotalObjectCount = &v - return s -} - -func (s *GetJobResultResp) SetTotalObjectSize(v int64) *GetJobResultResp { - s.TotalObjectSize = &v - return s -} - -func (s *GetJobResultResp) SetVersion(v string) *GetJobResultResp { - s.Version = &v - return s -} - -type GetReportResp struct { - // example: - // - // 800 - CopiedCount *int64 `json:"CopiedCount,omitempty" xml:"CopiedCount,omitempty"` - ErrorMessage *string `json:"ErrorMessage,omitempty" xml:"ErrorMessage,omitempty"` - // example: - // - // 100 - FailedCount *int64 `json:"FailedCount,omitempty" xml:"FailedCount,omitempty"` - // example: - // - // test_failed_prefix/ - FailedListPrefix *string `json:"FailedListPrefix,omitempty" xml:"FailedListPrefix,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - JobCreateTime *string `json:"JobCreateTime,omitempty" xml:"JobCreateTime,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - JobEndTime *string `json:"JobEndTime,omitempty" xml:"JobEndTime,omitempty"` - // example: - // - // 1000 - JobExecuteTime *string `json:"JobExecuteTime,omitempty" xml:"JobExecuteTime,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - ReportCreateTime *string `json:"ReportCreateTime,omitempty" xml:"ReportCreateTime,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - ReportEndTime *string `json:"ReportEndTime,omitempty" xml:"ReportEndTime,omitempty"` - // example: - // - // 100 - SkippedCount *int64 `json:"SkippedCount,omitempty" xml:"SkippedCount,omitempty"` - // example: - // - // test_skipped_prefix/ - SkippedListPrefix *string `json:"SkippedListPrefix,omitempty" xml:"SkippedListPrefix,omitempty"` - // example: - // - // Running - Status *string `json:"Status,omitempty" xml:"Status,omitempty"` - // example: - // - // 1000 - TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` - // example: - // - // test_total_prefix/ - TotalListPrefix *string `json:"TotalListPrefix,omitempty" xml:"TotalListPrefix,omitempty"` -} - -func (s GetReportResp) String() string { - return dara.Prettify(s) -} - -func (s GetReportResp) GoString() string { - return s.String() -} - -func (s *GetReportResp) SetCopiedCount(v int64) *GetReportResp { - s.CopiedCount = &v - return s -} - -func (s *GetReportResp) SetErrorMessage(v string) *GetReportResp { - s.ErrorMessage = &v - return s -} - -func (s *GetReportResp) SetFailedCount(v int64) *GetReportResp { - s.FailedCount = &v - return s -} - -func (s *GetReportResp) SetFailedListPrefix(v string) *GetReportResp { - s.FailedListPrefix = &v - return s -} - -func (s *GetReportResp) SetJobCreateTime(v string) *GetReportResp { - s.JobCreateTime = &v - return s -} - -func (s *GetReportResp) SetJobEndTime(v string) *GetReportResp { - s.JobEndTime = &v - return s -} - -func (s *GetReportResp) SetJobExecuteTime(v string) *GetReportResp { - s.JobExecuteTime = &v - return s -} - -func (s *GetReportResp) SetReportCreateTime(v string) *GetReportResp { - s.ReportCreateTime = &v - return s -} - -func (s *GetReportResp) SetReportEndTime(v string) *GetReportResp { - s.ReportEndTime = &v - return s -} - -func (s *GetReportResp) SetSkippedCount(v int64) *GetReportResp { - s.SkippedCount = &v - return s -} - -func (s *GetReportResp) SetSkippedListPrefix(v string) *GetReportResp { - s.SkippedListPrefix = &v - return s -} - -func (s *GetReportResp) SetStatus(v string) *GetReportResp { - s.Status = &v - return s -} - -func (s *GetReportResp) SetTotalCount(v int64) *GetReportResp { - s.TotalCount = &v - return s -} - -func (s *GetReportResp) SetTotalListPrefix(v string) *GetReportResp { - s.TotalListPrefix = &v - return s -} - -type GetTunnelResp struct { - // example: - // - // 2024-05-01 12:00:00 - CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - ModifyTime *string `json:"ModifyTime,omitempty" xml:"ModifyTime,omitempty"` - // example: - // - // test_owner - Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` - // example: - // - // K1:V1,K2:V2 - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - // example: - // - // test_tunnel_id - TunnelId *string `json:"TunnelId,omitempty" xml:"TunnelId,omitempty"` - TunnelQos *TunnelQos `json:"TunnelQos,omitempty" xml:"TunnelQos,omitempty"` -} - -func (s GetTunnelResp) String() string { - return dara.Prettify(s) -} - -func (s GetTunnelResp) GoString() string { - return s.String() -} - -func (s *GetTunnelResp) SetCreateTime(v string) *GetTunnelResp { - s.CreateTime = &v - return s -} - -func (s *GetTunnelResp) SetModifyTime(v string) *GetTunnelResp { - s.ModifyTime = &v - return s -} - -func (s *GetTunnelResp) SetOwner(v string) *GetTunnelResp { - s.Owner = &v - return s -} - -func (s *GetTunnelResp) SetTags(v string) *GetTunnelResp { - s.Tags = &v - return s -} - -func (s *GetTunnelResp) SetTunnelId(v string) *GetTunnelResp { - s.TunnelId = &v - return s -} - -func (s *GetTunnelResp) SetTunnelQos(v *TunnelQos) *GetTunnelResp { - s.TunnelQos = v - return s -} - -type ImportQos struct { - // example: - // - // 1073741824 - MaxBandWidth *int64 `json:"MaxBandWidth,omitempty" xml:"MaxBandWidth,omitempty"` - // example: - // - // 1000 - MaxImportTaskQps *int64 `json:"MaxImportTaskQps,omitempty" xml:"MaxImportTaskQps,omitempty"` -} - -func (s ImportQos) String() string { - return dara.Prettify(s) -} - -func (s ImportQos) GoString() string { - return s.String() -} - -func (s *ImportQos) SetMaxBandWidth(v int64) *ImportQos { - s.MaxBandWidth = &v - return s -} - -func (s *ImportQos) SetMaxImportTaskQps(v int64) *ImportQos { - s.MaxImportTaskQps = &v - return s -} - -type JobHistory struct { - // example: - // - // 2 - CommitId *string `json:"CommitId,omitempty" xml:"CommitId,omitempty"` - // example: - // - // 900 - CopiedCount *int64 `json:"CopiedCount,omitempty" xml:"CopiedCount,omitempty"` - // example: - // - // 1000 - CopiedSize *int64 `json:"CopiedSize,omitempty" xml:"CopiedSize,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` - // example: - // - // 100 - FailedCount *int64 `json:"FailedCount,omitempty" xml:"FailedCount,omitempty"` - // example: - // - // test_id - JobVersion *string `json:"JobVersion,omitempty" xml:"JobVersion,omitempty"` - // example: - // - // Listing - ListStatus *string `json:"ListStatus,omitempty" xml:"ListStatus,omitempty"` - Message *string `json:"Message,omitempty" xml:"Message,omitempty"` - // example: - // - // test_name - Name *string `json:"Name,omitempty" xml:"Name,omitempty"` - // example: - // - // user - Operator *string `json:"Operator,omitempty" xml:"Operator,omitempty"` - // example: - // - // 1 - RuntimeId *string `json:"RuntimeId,omitempty" xml:"RuntimeId,omitempty"` - // example: - // - // Normal - RuntimeState *string `json:"RuntimeState,omitempty" xml:"RuntimeState,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` - // example: - // - // IMPORT_JOB_DOING - Status *string `json:"Status,omitempty" xml:"Status,omitempty"` - // example: - // - // 1000 - TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` - // example: - // - // 1000 - TotalSize *int64 `json:"TotalSize,omitempty" xml:"TotalSize,omitempty"` -} - -func (s JobHistory) String() string { - return dara.Prettify(s) -} - -func (s JobHistory) GoString() string { - return s.String() -} - -func (s *JobHistory) SetCommitId(v string) *JobHistory { - s.CommitId = &v - return s -} - -func (s *JobHistory) SetCopiedCount(v int64) *JobHistory { - s.CopiedCount = &v - return s -} - -func (s *JobHistory) SetCopiedSize(v int64) *JobHistory { - s.CopiedSize = &v - return s -} - -func (s *JobHistory) SetEndTime(v string) *JobHistory { - s.EndTime = &v - return s -} - -func (s *JobHistory) SetFailedCount(v int64) *JobHistory { - s.FailedCount = &v - return s -} - -func (s *JobHistory) SetJobVersion(v string) *JobHistory { - s.JobVersion = &v - return s -} - -func (s *JobHistory) SetListStatus(v string) *JobHistory { - s.ListStatus = &v - return s -} - -func (s *JobHistory) SetMessage(v string) *JobHistory { - s.Message = &v - return s -} - -func (s *JobHistory) SetName(v string) *JobHistory { - s.Name = &v - return s -} - -func (s *JobHistory) SetOperator(v string) *JobHistory { - s.Operator = &v - return s -} - -func (s *JobHistory) SetRuntimeId(v string) *JobHistory { - s.RuntimeId = &v - return s -} - -func (s *JobHistory) SetRuntimeState(v string) *JobHistory { - s.RuntimeState = &v - return s -} - -func (s *JobHistory) SetStartTime(v string) *JobHistory { - s.StartTime = &v - return s -} - -func (s *JobHistory) SetStatus(v string) *JobHistory { - s.Status = &v - return s -} - -func (s *JobHistory) SetTotalCount(v int64) *JobHistory { - s.TotalCount = &v - return s -} - -func (s *JobHistory) SetTotalSize(v int64) *JobHistory { - s.TotalSize = &v - return s -} - -type KeyFilterItem struct { - Regex []*string `json:"Regex,omitempty" xml:"Regex,omitempty" type:"Repeated"` -} - -func (s KeyFilterItem) String() string { - return dara.Prettify(s) -} - -func (s KeyFilterItem) GoString() string { - return s.String() -} - -func (s *KeyFilterItem) SetRegex(v []*string) *KeyFilterItem { - s.Regex = v - return s -} - -type KeyFilters struct { - Excludes *KeyFilterItem `json:"Excludes,omitempty" xml:"Excludes,omitempty"` - Includes *KeyFilterItem `json:"Includes,omitempty" xml:"Includes,omitempty"` -} - -func (s KeyFilters) String() string { - return dara.Prettify(s) -} - -func (s KeyFilters) GoString() string { - return s.String() -} - -func (s *KeyFilters) SetExcludes(v *KeyFilterItem) *KeyFilters { - s.Excludes = v - return s -} - -func (s *KeyFilters) SetIncludes(v *KeyFilterItem) *KeyFilters { - s.Includes = v - return s -} - -type LastModifiedFilters struct { - Excludes *LastModifyFilterItem `json:"Excludes,omitempty" xml:"Excludes,omitempty"` - Includes *LastModifyFilterItem `json:"Includes,omitempty" xml:"Includes,omitempty"` -} - -func (s LastModifiedFilters) String() string { - return dara.Prettify(s) -} - -func (s LastModifiedFilters) GoString() string { - return s.String() -} - -func (s *LastModifiedFilters) SetExcludes(v *LastModifyFilterItem) *LastModifiedFilters { - s.Excludes = v - return s -} - -func (s *LastModifiedFilters) SetIncludes(v *LastModifyFilterItem) *LastModifiedFilters { - s.Includes = v - return s -} - -type LastModifyFilterItem struct { - TimeFilter []*TimeFilter `json:"TimeFilter,omitempty" xml:"TimeFilter,omitempty" type:"Repeated"` -} - -func (s LastModifyFilterItem) String() string { - return dara.Prettify(s) -} - -func (s LastModifyFilterItem) GoString() string { - return s.String() -} - -func (s *LastModifyFilterItem) SetTimeFilter(v []*TimeFilter) *LastModifyFilterItem { - s.TimeFilter = v - return s -} - -type ListAddressResp struct { - ImportAddress []*GetAddressResp `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty" type:"Repeated"` - // example: - // - // test_marker - NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` - // example: - // - // true - Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` -} - -func (s ListAddressResp) String() string { - return dara.Prettify(s) -} - -func (s ListAddressResp) GoString() string { - return s.String() -} - -func (s *ListAddressResp) SetImportAddress(v []*GetAddressResp) *ListAddressResp { - s.ImportAddress = v - return s -} - -func (s *ListAddressResp) SetNextMarker(v string) *ListAddressResp { - s.NextMarker = &v - return s -} - -func (s *ListAddressResp) SetTruncated(v bool) *ListAddressResp { - s.Truncated = &v - return s -} - -type ListAgentResp struct { - ImportAgent []*GetAgentResp `json:"ImportAgent,omitempty" xml:"ImportAgent,omitempty" type:"Repeated"` - // example: - // - // test_next_marker - NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` - // example: - // - // true - Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` -} - -func (s ListAgentResp) String() string { - return dara.Prettify(s) -} - -func (s ListAgentResp) GoString() string { - return s.String() -} - -func (s *ListAgentResp) SetImportAgent(v []*GetAgentResp) *ListAgentResp { - s.ImportAgent = v - return s -} - -func (s *ListAgentResp) SetNextMarker(v string) *ListAgentResp { - s.NextMarker = &v - return s -} - -func (s *ListAgentResp) SetTruncated(v bool) *ListAgentResp { - s.Truncated = &v - return s -} - -type ListJobHistoryResp struct { - JobHistory []*JobHistory `json:"JobHistory,omitempty" xml:"JobHistory,omitempty" type:"Repeated"` - // example: - // - // test_next_marker - NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` - // example: - // - // true - Truncated *string `json:"Truncated,omitempty" xml:"Truncated,omitempty"` -} - -func (s ListJobHistoryResp) String() string { - return dara.Prettify(s) -} - -func (s ListJobHistoryResp) GoString() string { - return s.String() -} - -func (s *ListJobHistoryResp) SetJobHistory(v []*JobHistory) *ListJobHistoryResp { - s.JobHistory = v - return s -} - -func (s *ListJobHistoryResp) SetNextMarker(v string) *ListJobHistoryResp { - s.NextMarker = &v - return s -} - -func (s *ListJobHistoryResp) SetTruncated(v string) *ListJobHistoryResp { - s.Truncated = &v - return s -} - -type ListJobInfo struct { - ImportJob []*CreateJobInfo `json:"ImportJob,omitempty" xml:"ImportJob,omitempty" type:"Repeated"` - // example: - // - // test_next_marker - NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` - // example: - // - // true - Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` -} - -func (s ListJobInfo) String() string { - return dara.Prettify(s) -} - -func (s ListJobInfo) GoString() string { - return s.String() -} - -func (s *ListJobInfo) SetImportJob(v []*CreateJobInfo) *ListJobInfo { - s.ImportJob = v - return s -} - -func (s *ListJobInfo) SetNextMarker(v string) *ListJobInfo { - s.NextMarker = &v - return s -} - -func (s *ListJobInfo) SetTruncated(v bool) *ListJobInfo { - s.Truncated = &v - return s -} - -type ListJobResp struct { - ImportJob []*GetJobResp `json:"ImportJob,omitempty" xml:"ImportJob,omitempty" type:"Repeated"` - NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` - Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` -} - -func (s ListJobResp) String() string { - return dara.Prettify(s) -} - -func (s ListJobResp) GoString() string { - return s.String() -} - -func (s *ListJobResp) SetImportJob(v []*GetJobResp) *ListJobResp { - s.ImportJob = v - return s -} - -func (s *ListJobResp) SetNextMarker(v string) *ListJobResp { - s.NextMarker = &v - return s -} - -func (s *ListJobResp) SetTruncated(v bool) *ListJobResp { - s.Truncated = &v - return s -} - -type ListTunnelResp struct { - ImportTunnel []*GetTunnelResp `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty" type:"Repeated"` - NextMarker *string `json:"NextMarker,omitempty" xml:"NextMarker,omitempty"` - Truncated *bool `json:"Truncated,omitempty" xml:"Truncated,omitempty"` -} - -func (s ListTunnelResp) String() string { - return dara.Prettify(s) -} - -func (s ListTunnelResp) GoString() string { - return s.String() -} - -func (s *ListTunnelResp) SetImportTunnel(v []*GetTunnelResp) *ListTunnelResp { - s.ImportTunnel = v - return s -} - -func (s *ListTunnelResp) SetNextMarker(v string) *ListTunnelResp { - s.NextMarker = &v - return s -} - -func (s *ListTunnelResp) SetTruncated(v bool) *ListTunnelResp { - s.Truncated = &v - return s -} - -type ScheduleRule struct { - MaxScheduleCount *int64 `json:"MaxScheduleCount,omitempty" xml:"MaxScheduleCount,omitempty"` - StartCronExpression *string `json:"StartCronExpression,omitempty" xml:"StartCronExpression,omitempty"` - SuspendCronExpression *string `json:"SuspendCronExpression,omitempty" xml:"SuspendCronExpression,omitempty"` -} - -func (s ScheduleRule) String() string { - return dara.Prettify(s) -} - -func (s ScheduleRule) GoString() string { - return s.String() -} - -func (s *ScheduleRule) SetMaxScheduleCount(v int64) *ScheduleRule { - s.MaxScheduleCount = &v - return s -} - -func (s *ScheduleRule) SetStartCronExpression(v string) *ScheduleRule { - s.StartCronExpression = &v - return s -} - -func (s *ScheduleRule) SetSuspendCronExpression(v string) *ScheduleRule { - s.SuspendCronExpression = &v - return s -} - -type TimeFilter struct { - EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` - StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` -} - -func (s TimeFilter) String() string { - return dara.Prettify(s) -} - -func (s TimeFilter) GoString() string { - return s.String() -} - -func (s *TimeFilter) SetEndTime(v string) *TimeFilter { - s.EndTime = &v - return s -} - -func (s *TimeFilter) SetStartTime(v string) *TimeFilter { - s.StartTime = &v - return s -} - -type TunnelQos struct { - // example: - // - // 1073741824 - MaxBandwidth *int64 `json:"MaxBandwidth,omitempty" xml:"MaxBandwidth,omitempty"` - // example: - // - // 100 - MaxQps *int32 `json:"MaxQps,omitempty" xml:"MaxQps,omitempty"` -} - -func (s TunnelQos) String() string { - return dara.Prettify(s) -} - -func (s TunnelQos) GoString() string { - return s.String() -} - -func (s *TunnelQos) SetMaxBandwidth(v int64) *TunnelQos { - s.MaxBandwidth = &v - return s -} - -func (s *TunnelQos) SetMaxQps(v int32) *TunnelQos { - s.MaxQps = &v - return s -} - -type UpdateAddressInfo struct { - AgentList *string `json:"AgentList,omitempty" xml:"AgentList,omitempty"` -} - -func (s UpdateAddressInfo) String() string { - return dara.Prettify(s) -} - -func (s UpdateAddressInfo) GoString() string { - return s.String() -} - -func (s *UpdateAddressInfo) SetAgentList(v string) *UpdateAddressInfo { - s.AgentList = &v - return s -} - -type UpdateJobInfo struct { - ImportQos *ImportQos `json:"ImportQos,omitempty" xml:"ImportQos,omitempty"` - // example: - // - // IMPORT_JOB_LAUNCHING - Status *string `json:"Status,omitempty" xml:"Status,omitempty"` -} - -func (s UpdateJobInfo) String() string { - return dara.Prettify(s) -} - -func (s UpdateJobInfo) GoString() string { - return s.String() -} - -func (s *UpdateJobInfo) SetImportQos(v *ImportQos) *UpdateJobInfo { - s.ImportQos = v - return s -} - -func (s *UpdateJobInfo) SetStatus(v string) *UpdateJobInfo { - s.Status = &v - return s -} - -type UpdateTunnelInfo struct { - Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"` - TunnelQos *TunnelQos `json:"TunnelQos,omitempty" xml:"TunnelQos,omitempty"` -} - -func (s UpdateTunnelInfo) String() string { - return dara.Prettify(s) -} - -func (s UpdateTunnelInfo) GoString() string { - return s.String() -} - -func (s *UpdateTunnelInfo) SetTags(v string) *UpdateTunnelInfo { - s.Tags = &v - return s -} - -func (s *UpdateTunnelInfo) SetTunnelQos(v *TunnelQos) *UpdateTunnelInfo { - s.TunnelQos = v - return s -} - -type VerifyAddressResp struct { - ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` - ErrorMessage *string `json:"ErrorMessage,omitempty" xml:"ErrorMessage,omitempty"` - // example: - // - // avaliable - Status *string `json:"Status,omitempty" xml:"Status,omitempty"` - // example: - // - // 2024-05-01 12:00:00 - VerifyTime *string `json:"VerifyTime,omitempty" xml:"VerifyTime,omitempty"` -} - -func (s VerifyAddressResp) String() string { - return dara.Prettify(s) -} - -func (s VerifyAddressResp) GoString() string { - return s.String() -} - -func (s *VerifyAddressResp) SetErrorCode(v string) *VerifyAddressResp { - s.ErrorCode = &v - return s -} - -func (s *VerifyAddressResp) SetErrorMessage(v string) *VerifyAddressResp { - s.ErrorMessage = &v - return s -} - -func (s *VerifyAddressResp) SetStatus(v string) *VerifyAddressResp { - s.Status = &v - return s -} - -func (s *VerifyAddressResp) SetVerifyTime(v string) *VerifyAddressResp { - s.VerifyTime = &v - return s -} - -type VerifyResp struct { - ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` - ErrorMsg *string `json:"ErrorMsg,omitempty" xml:"ErrorMsg,omitempty"` - // example: - // - // 200 - HttpCode *string `json:"HttpCode,omitempty" xml:"HttpCode,omitempty"` -} - -func (s VerifyResp) String() string { - return dara.Prettify(s) -} - -func (s VerifyResp) GoString() string { - return s.String() -} - -func (s *VerifyResp) SetErrorCode(v string) *VerifyResp { - s.ErrorCode = &v - return s -} - -func (s *VerifyResp) SetErrorMsg(v string) *VerifyResp { - s.ErrorMsg = &v - return s -} - -func (s *VerifyResp) SetHttpCode(v string) *VerifyResp { - s.HttpCode = &v - return s -} - -type CreateAddressRequest struct { - ImportAddress *CreateAddressInfo `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty"` -} - -func (s CreateAddressRequest) String() string { - return dara.Prettify(s) -} - -func (s CreateAddressRequest) GoString() string { - return s.String() -} - -func (s *CreateAddressRequest) SetImportAddress(v *CreateAddressInfo) *CreateAddressRequest { - s.ImportAddress = v - return s -} - -type CreateAddressResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s CreateAddressResponse) String() string { - return dara.Prettify(s) -} - -func (s CreateAddressResponse) GoString() string { - return s.String() -} - -func (s *CreateAddressResponse) SetHeaders(v map[string]*string) *CreateAddressResponse { - s.Headers = v - return s -} - -func (s *CreateAddressResponse) SetStatusCode(v int32) *CreateAddressResponse { - s.StatusCode = &v - return s -} - -type CreateAgentRequest struct { - ImportAgent *CreateAgentInfo `json:"ImportAgent,omitempty" xml:"ImportAgent,omitempty"` -} - -func (s CreateAgentRequest) String() string { - return dara.Prettify(s) -} - -func (s CreateAgentRequest) GoString() string { - return s.String() -} - -func (s *CreateAgentRequest) SetImportAgent(v *CreateAgentInfo) *CreateAgentRequest { - s.ImportAgent = v - return s -} - -type CreateAgentResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s CreateAgentResponse) String() string { - return dara.Prettify(s) -} - -func (s CreateAgentResponse) GoString() string { - return s.String() -} - -func (s *CreateAgentResponse) SetHeaders(v map[string]*string) *CreateAgentResponse { - s.Headers = v - return s -} - -func (s *CreateAgentResponse) SetStatusCode(v int32) *CreateAgentResponse { - s.StatusCode = &v - return s -} - -type CreateJobRequest struct { - // This parameter is required. - ImportJob *CreateJobInfo `json:"ImportJob,omitempty" xml:"ImportJob,omitempty"` -} - -func (s CreateJobRequest) String() string { - return dara.Prettify(s) -} - -func (s CreateJobRequest) GoString() string { - return s.String() -} - -func (s *CreateJobRequest) SetImportJob(v *CreateJobInfo) *CreateJobRequest { - s.ImportJob = v - return s -} - -type CreateJobResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s CreateJobResponse) String() string { - return dara.Prettify(s) -} - -func (s CreateJobResponse) GoString() string { - return s.String() -} - -func (s *CreateJobResponse) SetHeaders(v map[string]*string) *CreateJobResponse { - s.Headers = v - return s -} - -func (s *CreateJobResponse) SetStatusCode(v int32) *CreateJobResponse { - s.StatusCode = &v - return s -} - -type CreateReportRequest struct { - CreateReport *CreateReportInfo `json:"CreateReport,omitempty" xml:"CreateReport,omitempty"` -} - -func (s CreateReportRequest) String() string { - return dara.Prettify(s) -} - -func (s CreateReportRequest) GoString() string { - return s.String() -} - -func (s *CreateReportRequest) SetCreateReport(v *CreateReportInfo) *CreateReportRequest { - s.CreateReport = v - return s -} - -type CreateReportResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s CreateReportResponse) String() string { - return dara.Prettify(s) -} - -func (s CreateReportResponse) GoString() string { - return s.String() -} - -func (s *CreateReportResponse) SetHeaders(v map[string]*string) *CreateReportResponse { - s.Headers = v - return s -} - -func (s *CreateReportResponse) SetStatusCode(v int32) *CreateReportResponse { - s.StatusCode = &v - return s -} - -type CreateTunnelRequest struct { - ImportTunnel *CreateTunnelInfo `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty"` -} - -func (s CreateTunnelRequest) String() string { - return dara.Prettify(s) -} - -func (s CreateTunnelRequest) GoString() string { - return s.String() -} - -func (s *CreateTunnelRequest) SetImportTunnel(v *CreateTunnelInfo) *CreateTunnelRequest { - s.ImportTunnel = v - return s -} - -type CreateTunnelResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s CreateTunnelResponse) String() string { - return dara.Prettify(s) -} - -func (s CreateTunnelResponse) GoString() string { - return s.String() -} - -func (s *CreateTunnelResponse) SetHeaders(v map[string]*string) *CreateTunnelResponse { - s.Headers = v - return s -} - -func (s *CreateTunnelResponse) SetStatusCode(v int32) *CreateTunnelResponse { - s.StatusCode = &v - return s -} - -type DeleteAddressResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s DeleteAddressResponse) String() string { - return dara.Prettify(s) -} - -func (s DeleteAddressResponse) GoString() string { - return s.String() -} - -func (s *DeleteAddressResponse) SetHeaders(v map[string]*string) *DeleteAddressResponse { - s.Headers = v - return s -} - -func (s *DeleteAddressResponse) SetStatusCode(v int32) *DeleteAddressResponse { - s.StatusCode = &v - return s -} - -type DeleteAgentResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s DeleteAgentResponse) String() string { - return dara.Prettify(s) -} - -func (s DeleteAgentResponse) GoString() string { - return s.String() -} - -func (s *DeleteAgentResponse) SetHeaders(v map[string]*string) *DeleteAgentResponse { - s.Headers = v - return s -} - -func (s *DeleteAgentResponse) SetStatusCode(v int32) *DeleteAgentResponse { - s.StatusCode = &v - return s -} - -type DeleteJobRequest struct { - // example: - // - // true - ForceDelete *bool `json:"forceDelete,omitempty" xml:"forceDelete,omitempty"` -} - -func (s DeleteJobRequest) String() string { - return dara.Prettify(s) -} - -func (s DeleteJobRequest) GoString() string { - return s.String() -} - -func (s *DeleteJobRequest) SetForceDelete(v bool) *DeleteJobRequest { - s.ForceDelete = &v - return s -} - -type DeleteJobResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s DeleteJobResponse) String() string { - return dara.Prettify(s) -} - -func (s DeleteJobResponse) GoString() string { - return s.String() -} - -func (s *DeleteJobResponse) SetHeaders(v map[string]*string) *DeleteJobResponse { - s.Headers = v - return s -} - -func (s *DeleteJobResponse) SetStatusCode(v int32) *DeleteJobResponse { - s.StatusCode = &v - return s -} - -type DeleteTunnelResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s DeleteTunnelResponse) String() string { - return dara.Prettify(s) -} - -func (s DeleteTunnelResponse) GoString() string { - return s.String() -} - -func (s *DeleteTunnelResponse) SetHeaders(v map[string]*string) *DeleteTunnelResponse { - s.Headers = v - return s -} - -func (s *DeleteTunnelResponse) SetStatusCode(v int32) *DeleteTunnelResponse { - s.StatusCode = &v - return s -} - -type GetAddressResponseBody struct { - // 222 - ImportAddress *GetAddressResp `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty"` -} - -func (s GetAddressResponseBody) String() string { - return dara.Prettify(s) -} - -func (s GetAddressResponseBody) GoString() string { - return s.String() -} - -func (s *GetAddressResponseBody) SetImportAddress(v *GetAddressResp) *GetAddressResponseBody { - s.ImportAddress = v - return s -} - -type GetAddressResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *GetAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s GetAddressResponse) String() string { - return dara.Prettify(s) -} - -func (s GetAddressResponse) GoString() string { - return s.String() -} - -func (s *GetAddressResponse) SetHeaders(v map[string]*string) *GetAddressResponse { - s.Headers = v - return s -} - -func (s *GetAddressResponse) SetStatusCode(v int32) *GetAddressResponse { - s.StatusCode = &v - return s -} - -func (s *GetAddressResponse) SetBody(v *GetAddressResponseBody) *GetAddressResponse { - s.Body = v - return s -} - -type GetAgentResponseBody struct { - // 2 - ImportAgent *GetAgentResp `json:"ImportAgent,omitempty" xml:"ImportAgent,omitempty"` -} - -func (s GetAgentResponseBody) String() string { - return dara.Prettify(s) -} - -func (s GetAgentResponseBody) GoString() string { - return s.String() -} - -func (s *GetAgentResponseBody) SetImportAgent(v *GetAgentResp) *GetAgentResponseBody { - s.ImportAgent = v - return s -} - -type GetAgentResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *GetAgentResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s GetAgentResponse) String() string { - return dara.Prettify(s) -} - -func (s GetAgentResponse) GoString() string { - return s.String() -} - -func (s *GetAgentResponse) SetHeaders(v map[string]*string) *GetAgentResponse { - s.Headers = v - return s -} - -func (s *GetAgentResponse) SetStatusCode(v int32) *GetAgentResponse { - s.StatusCode = &v - return s -} - -func (s *GetAgentResponse) SetBody(v *GetAgentResponseBody) *GetAgentResponse { - s.Body = v - return s -} - -type GetAgentStatusResponseBody struct { - // 2 - ImportAgentStatus *GetAgentStatusResp `json:"ImportAgentStatus,omitempty" xml:"ImportAgentStatus,omitempty"` -} - -func (s GetAgentStatusResponseBody) String() string { - return dara.Prettify(s) -} - -func (s GetAgentStatusResponseBody) GoString() string { - return s.String() -} - -func (s *GetAgentStatusResponseBody) SetImportAgentStatus(v *GetAgentStatusResp) *GetAgentStatusResponseBody { - s.ImportAgentStatus = v - return s -} - -type GetAgentStatusResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *GetAgentStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s GetAgentStatusResponse) String() string { - return dara.Prettify(s) -} - -func (s GetAgentStatusResponse) GoString() string { - return s.String() -} - -func (s *GetAgentStatusResponse) SetHeaders(v map[string]*string) *GetAgentStatusResponse { - s.Headers = v - return s -} - -func (s *GetAgentStatusResponse) SetStatusCode(v int32) *GetAgentStatusResponse { - s.StatusCode = &v - return s -} - -func (s *GetAgentStatusResponse) SetBody(v *GetAgentStatusResponseBody) *GetAgentStatusResponse { - s.Body = v - return s -} - -type GetJobRequest struct { - // example: - // - // false - ByVersion *string `json:"byVersion,omitempty" xml:"byVersion,omitempty"` -} - -func (s GetJobRequest) String() string { - return dara.Prettify(s) -} - -func (s GetJobRequest) GoString() string { - return s.String() -} - -func (s *GetJobRequest) SetByVersion(v string) *GetJobRequest { - s.ByVersion = &v - return s -} - -type GetJobResponseBody struct { - ImportJob *GetJobResp `json:"ImportJob,omitempty" xml:"ImportJob,omitempty"` -} - -func (s GetJobResponseBody) String() string { - return dara.Prettify(s) -} - -func (s GetJobResponseBody) GoString() string { - return s.String() -} - -func (s *GetJobResponseBody) SetImportJob(v *GetJobResp) *GetJobResponseBody { - s.ImportJob = v - return s -} - -type GetJobResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *GetJobResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s GetJobResponse) String() string { - return dara.Prettify(s) -} - -func (s GetJobResponse) GoString() string { - return s.String() -} - -func (s *GetJobResponse) SetHeaders(v map[string]*string) *GetJobResponse { - s.Headers = v - return s -} - -func (s *GetJobResponse) SetStatusCode(v int32) *GetJobResponse { - s.StatusCode = &v - return s -} - -func (s *GetJobResponse) SetBody(v *GetJobResponseBody) *GetJobResponse { - s.Body = v - return s -} - -type GetJobResultRequest struct { - // This parameter is required. - // - // example: - // - // 2 - RuntimeId *int32 `json:"runtimeId,omitempty" xml:"runtimeId,omitempty"` -} - -func (s GetJobResultRequest) String() string { - return dara.Prettify(s) -} - -func (s GetJobResultRequest) GoString() string { - return s.String() -} - -func (s *GetJobResultRequest) SetRuntimeId(v int32) *GetJobResultRequest { - s.RuntimeId = &v - return s -} - -type GetJobResultResponseBody struct { - // 1 - ImportJobResult *GetJobResultResp `json:"ImportJobResult,omitempty" xml:"ImportJobResult,omitempty"` -} - -func (s GetJobResultResponseBody) String() string { - return dara.Prettify(s) -} - -func (s GetJobResultResponseBody) GoString() string { - return s.String() -} - -func (s *GetJobResultResponseBody) SetImportJobResult(v *GetJobResultResp) *GetJobResultResponseBody { - s.ImportJobResult = v - return s -} - -type GetJobResultResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *GetJobResultResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s GetJobResultResponse) String() string { - return dara.Prettify(s) -} - -func (s GetJobResultResponse) GoString() string { - return s.String() -} - -func (s *GetJobResultResponse) SetHeaders(v map[string]*string) *GetJobResultResponse { - s.Headers = v - return s -} - -func (s *GetJobResultResponse) SetStatusCode(v int32) *GetJobResultResponse { - s.StatusCode = &v - return s -} - -func (s *GetJobResultResponse) SetBody(v *GetJobResultResponseBody) *GetJobResultResponse { - s.Body = v - return s -} - -type GetReportRequest struct { - // example: - // - // 1 - RuntimeId *int32 `json:"runtimeId,omitempty" xml:"runtimeId,omitempty"` - // This parameter is required. - // - // example: - // - // test_job_id - Version *string `json:"version,omitempty" xml:"version,omitempty"` -} - -func (s GetReportRequest) String() string { - return dara.Prettify(s) -} - -func (s GetReportRequest) GoString() string { - return s.String() -} - -func (s *GetReportRequest) SetRuntimeId(v int32) *GetReportRequest { - s.RuntimeId = &v - return s -} - -func (s *GetReportRequest) SetVersion(v string) *GetReportRequest { - s.Version = &v - return s -} - -type GetReportResponseBody struct { - GetReportResponse *GetReportResp `json:"GetReportResponse,omitempty" xml:"GetReportResponse,omitempty"` -} - -func (s GetReportResponseBody) String() string { - return dara.Prettify(s) -} - -func (s GetReportResponseBody) GoString() string { - return s.String() -} - -func (s *GetReportResponseBody) SetGetReportResponse(v *GetReportResp) *GetReportResponseBody { - s.GetReportResponse = v - return s -} - -type GetReportResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *GetReportResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s GetReportResponse) String() string { - return dara.Prettify(s) -} - -func (s GetReportResponse) GoString() string { - return s.String() -} - -func (s *GetReportResponse) SetHeaders(v map[string]*string) *GetReportResponse { - s.Headers = v - return s -} - -func (s *GetReportResponse) SetStatusCode(v int32) *GetReportResponse { - s.StatusCode = &v - return s -} - -func (s *GetReportResponse) SetBody(v *GetReportResponseBody) *GetReportResponse { - s.Body = v - return s -} - -type GetTunnelResponseBody struct { - ImportTunnel *GetTunnelResp `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty"` -} - -func (s GetTunnelResponseBody) String() string { - return dara.Prettify(s) -} - -func (s GetTunnelResponseBody) GoString() string { - return s.String() -} - -func (s *GetTunnelResponseBody) SetImportTunnel(v *GetTunnelResp) *GetTunnelResponseBody { - s.ImportTunnel = v - return s -} - -type GetTunnelResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *GetTunnelResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s GetTunnelResponse) String() string { - return dara.Prettify(s) -} - -func (s GetTunnelResponse) GoString() string { - return s.String() -} - -func (s *GetTunnelResponse) SetHeaders(v map[string]*string) *GetTunnelResponse { - s.Headers = v - return s -} - -func (s *GetTunnelResponse) SetStatusCode(v int32) *GetTunnelResponse { - s.StatusCode = &v - return s -} - -func (s *GetTunnelResponse) SetBody(v *GetTunnelResponseBody) *GetTunnelResponse { - s.Body = v - return s -} - -type ListAddressRequest struct { - // example: - // - // 100 - Count *int32 `json:"count,omitempty" xml:"count,omitempty"` - // example: - // - // test_marker - Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` -} - -func (s ListAddressRequest) String() string { - return dara.Prettify(s) -} - -func (s ListAddressRequest) GoString() string { - return s.String() -} - -func (s *ListAddressRequest) SetCount(v int32) *ListAddressRequest { - s.Count = &v - return s -} - -func (s *ListAddressRequest) SetMarker(v string) *ListAddressRequest { - s.Marker = &v - return s -} - -type ListAddressResponseBody struct { - ImportAddressList *ListAddressResp `json:"ImportAddressList,omitempty" xml:"ImportAddressList,omitempty"` -} - -func (s ListAddressResponseBody) String() string { - return dara.Prettify(s) -} - -func (s ListAddressResponseBody) GoString() string { - return s.String() -} - -func (s *ListAddressResponseBody) SetImportAddressList(v *ListAddressResp) *ListAddressResponseBody { - s.ImportAddressList = v - return s -} - -type ListAddressResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *ListAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s ListAddressResponse) String() string { - return dara.Prettify(s) -} - -func (s ListAddressResponse) GoString() string { - return s.String() -} - -func (s *ListAddressResponse) SetHeaders(v map[string]*string) *ListAddressResponse { - s.Headers = v - return s -} - -func (s *ListAddressResponse) SetStatusCode(v int32) *ListAddressResponse { - s.StatusCode = &v - return s -} - -func (s *ListAddressResponse) SetBody(v *ListAddressResponseBody) *ListAddressResponse { - s.Body = v - return s -} - -type ListAgentRequest struct { - // example: - // - // 100 - Count *int32 `json:"count,omitempty" xml:"count,omitempty"` - // example: - // - // test_agent - Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` -} - -func (s ListAgentRequest) String() string { - return dara.Prettify(s) -} - -func (s ListAgentRequest) GoString() string { - return s.String() -} - -func (s *ListAgentRequest) SetCount(v int32) *ListAgentRequest { - s.Count = &v - return s -} - -func (s *ListAgentRequest) SetMarker(v string) *ListAgentRequest { - s.Marker = &v - return s -} - -type ListAgentResponseBody struct { - ImportAgentList *ListAgentResp `json:"ImportAgentList,omitempty" xml:"ImportAgentList,omitempty"` -} - -func (s ListAgentResponseBody) String() string { - return dara.Prettify(s) -} - -func (s ListAgentResponseBody) GoString() string { - return s.String() -} - -func (s *ListAgentResponseBody) SetImportAgentList(v *ListAgentResp) *ListAgentResponseBody { - s.ImportAgentList = v - return s -} - -type ListAgentResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *ListAgentResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s ListAgentResponse) String() string { - return dara.Prettify(s) -} - -func (s ListAgentResponse) GoString() string { - return s.String() -} - -func (s *ListAgentResponse) SetHeaders(v map[string]*string) *ListAgentResponse { - s.Headers = v - return s -} - -func (s *ListAgentResponse) SetStatusCode(v int32) *ListAgentResponse { - s.StatusCode = &v - return s -} - -func (s *ListAgentResponse) SetBody(v *ListAgentResponseBody) *ListAgentResponse { - s.Body = v - return s -} - -type ListJobRequest struct { - // example: - // - // true - All *bool `json:"all,omitempty" xml:"all,omitempty"` - // example: - // - // 1000 - Count *int32 `json:"count,omitempty" xml:"count,omitempty"` - // example: - // - // test_marker - Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` - // example: - // - // test_parent_job_name - ParentName *string `json:"parentName,omitempty" xml:"parentName,omitempty"` -} - -func (s ListJobRequest) String() string { - return dara.Prettify(s) -} - -func (s ListJobRequest) GoString() string { - return s.String() -} - -func (s *ListJobRequest) SetAll(v bool) *ListJobRequest { - s.All = &v - return s -} - -func (s *ListJobRequest) SetCount(v int32) *ListJobRequest { - s.Count = &v - return s -} - -func (s *ListJobRequest) SetMarker(v string) *ListJobRequest { - s.Marker = &v - return s -} - -func (s *ListJobRequest) SetParentName(v string) *ListJobRequest { - s.ParentName = &v - return s -} - -type ListJobResponseBody struct { - ImportJobList *ListJobResp `json:"ImportJobList,omitempty" xml:"ImportJobList,omitempty"` -} - -func (s ListJobResponseBody) String() string { - return dara.Prettify(s) -} - -func (s ListJobResponseBody) GoString() string { - return s.String() -} - -func (s *ListJobResponseBody) SetImportJobList(v *ListJobResp) *ListJobResponseBody { - s.ImportJobList = v - return s -} - -type ListJobResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *ListJobResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s ListJobResponse) String() string { - return dara.Prettify(s) -} - -func (s ListJobResponse) GoString() string { - return s.String() -} - -func (s *ListJobResponse) SetHeaders(v map[string]*string) *ListJobResponse { - s.Headers = v - return s -} - -func (s *ListJobResponse) SetStatusCode(v int32) *ListJobResponse { - s.StatusCode = &v - return s -} - -func (s *ListJobResponse) SetBody(v *ListJobResponseBody) *ListJobResponse { - s.Body = v - return s -} - -type ListJobHistoryRequest struct { - // example: - // - // 100 - Count *int32 `json:"count,omitempty" xml:"count,omitempty"` - Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` - // example: - // - // 1 - RuntimeId *int32 `json:"runtimeId,omitempty" xml:"runtimeId,omitempty"` -} - -func (s ListJobHistoryRequest) String() string { - return dara.Prettify(s) -} - -func (s ListJobHistoryRequest) GoString() string { - return s.String() -} - -func (s *ListJobHistoryRequest) SetCount(v int32) *ListJobHistoryRequest { - s.Count = &v - return s -} - -func (s *ListJobHistoryRequest) SetMarker(v string) *ListJobHistoryRequest { - s.Marker = &v - return s -} - -func (s *ListJobHistoryRequest) SetRuntimeId(v int32) *ListJobHistoryRequest { - s.RuntimeId = &v - return s -} - -type ListJobHistoryResponseBody struct { - JobHistoryList *ListJobHistoryResp `json:"JobHistoryList,omitempty" xml:"JobHistoryList,omitempty"` -} - -func (s ListJobHistoryResponseBody) String() string { - return dara.Prettify(s) -} - -func (s ListJobHistoryResponseBody) GoString() string { - return s.String() -} - -func (s *ListJobHistoryResponseBody) SetJobHistoryList(v *ListJobHistoryResp) *ListJobHistoryResponseBody { - s.JobHistoryList = v - return s -} - -type ListJobHistoryResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *ListJobHistoryResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s ListJobHistoryResponse) String() string { - return dara.Prettify(s) -} - -func (s ListJobHistoryResponse) GoString() string { - return s.String() -} - -func (s *ListJobHistoryResponse) SetHeaders(v map[string]*string) *ListJobHistoryResponse { - s.Headers = v - return s -} - -func (s *ListJobHistoryResponse) SetStatusCode(v int32) *ListJobHistoryResponse { - s.StatusCode = &v - return s -} - -func (s *ListJobHistoryResponse) SetBody(v *ListJobHistoryResponseBody) *ListJobHistoryResponse { - s.Body = v - return s -} - -type ListTunnelRequest struct { - // example: - // - // 2 - Count *int32 `json:"count,omitempty" xml:"count,omitempty"` - // example: - // - // 1 - Marker *string `json:"marker,omitempty" xml:"marker,omitempty"` -} - -func (s ListTunnelRequest) String() string { - return dara.Prettify(s) -} - -func (s ListTunnelRequest) GoString() string { - return s.String() -} - -func (s *ListTunnelRequest) SetCount(v int32) *ListTunnelRequest { - s.Count = &v - return s -} - -func (s *ListTunnelRequest) SetMarker(v string) *ListTunnelRequest { - s.Marker = &v - return s -} - -type ListTunnelResponseBody struct { - // 2 - ImportTunnelList *ListTunnelResp `json:"ImportTunnelList,omitempty" xml:"ImportTunnelList,omitempty"` -} - -func (s ListTunnelResponseBody) String() string { - return dara.Prettify(s) -} - -func (s ListTunnelResponseBody) GoString() string { - return s.String() -} - -func (s *ListTunnelResponseBody) SetImportTunnelList(v *ListTunnelResp) *ListTunnelResponseBody { - s.ImportTunnelList = v - return s -} - -type ListTunnelResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *ListTunnelResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s ListTunnelResponse) String() string { - return dara.Prettify(s) -} - -func (s ListTunnelResponse) GoString() string { - return s.String() -} - -func (s *ListTunnelResponse) SetHeaders(v map[string]*string) *ListTunnelResponse { - s.Headers = v - return s -} - -func (s *ListTunnelResponse) SetStatusCode(v int32) *ListTunnelResponse { - s.StatusCode = &v - return s -} - -func (s *ListTunnelResponse) SetBody(v *ListTunnelResponseBody) *ListTunnelResponse { - s.Body = v - return s -} - -type UpdateAddressRequest struct { - ImportAddress *UpdateAddressInfo `json:"ImportAddress,omitempty" xml:"ImportAddress,omitempty"` -} - -func (s UpdateAddressRequest) String() string { - return dara.Prettify(s) -} - -func (s UpdateAddressRequest) GoString() string { - return s.String() -} - -func (s *UpdateAddressRequest) SetImportAddress(v *UpdateAddressInfo) *UpdateAddressRequest { - s.ImportAddress = v - return s -} - -type UpdateAddressResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s UpdateAddressResponse) String() string { - return dara.Prettify(s) -} - -func (s UpdateAddressResponse) GoString() string { - return s.String() -} - -func (s *UpdateAddressResponse) SetHeaders(v map[string]*string) *UpdateAddressResponse { - s.Headers = v - return s -} - -func (s *UpdateAddressResponse) SetStatusCode(v int32) *UpdateAddressResponse { - s.StatusCode = &v - return s -} - -type UpdateJobRequest struct { - ImportJob *UpdateJobInfo `json:"ImportJob,omitempty" xml:"ImportJob,omitempty"` -} - -func (s UpdateJobRequest) String() string { - return dara.Prettify(s) -} - -func (s UpdateJobRequest) GoString() string { - return s.String() -} - -func (s *UpdateJobRequest) SetImportJob(v *UpdateJobInfo) *UpdateJobRequest { - s.ImportJob = v - return s -} - -type UpdateJobResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s UpdateJobResponse) String() string { - return dara.Prettify(s) -} - -func (s UpdateJobResponse) GoString() string { - return s.String() -} - -func (s *UpdateJobResponse) SetHeaders(v map[string]*string) *UpdateJobResponse { - s.Headers = v - return s -} - -func (s *UpdateJobResponse) SetStatusCode(v int32) *UpdateJobResponse { - s.StatusCode = &v - return s -} - -type UpdateTunnelRequest struct { - ImportTunnel *UpdateTunnelInfo `json:"ImportTunnel,omitempty" xml:"ImportTunnel,omitempty"` -} - -func (s UpdateTunnelRequest) String() string { - return dara.Prettify(s) -} - -func (s UpdateTunnelRequest) GoString() string { - return s.String() -} - -func (s *UpdateTunnelRequest) SetImportTunnel(v *UpdateTunnelInfo) *UpdateTunnelRequest { - s.ImportTunnel = v - return s -} - -type UpdateTunnelResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` -} - -func (s UpdateTunnelResponse) String() string { - return dara.Prettify(s) -} - -func (s UpdateTunnelResponse) GoString() string { - return s.String() -} - -func (s *UpdateTunnelResponse) SetHeaders(v map[string]*string) *UpdateTunnelResponse { - s.Headers = v - return s -} - -func (s *UpdateTunnelResponse) SetStatusCode(v int32) *UpdateTunnelResponse { - s.StatusCode = &v - return s -} - -type VerifyAddressResponseBody struct { - // 1 - VerifyAddressResponse *VerifyAddressResp `json:"VerifyAddressResponse,omitempty" xml:"VerifyAddressResponse,omitempty"` -} - -func (s VerifyAddressResponseBody) String() string { - return dara.Prettify(s) -} - -func (s VerifyAddressResponseBody) GoString() string { - return s.String() -} - -func (s *VerifyAddressResponseBody) SetVerifyAddressResponse(v *VerifyAddressResp) *VerifyAddressResponseBody { - s.VerifyAddressResponse = v - return s -} - -type VerifyAddressResponse struct { - Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` - StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` - Body *VerifyAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` -} - -func (s VerifyAddressResponse) String() string { - return dara.Prettify(s) -} - -func (s VerifyAddressResponse) GoString() string { - return s.String() -} - -func (s *VerifyAddressResponse) SetHeaders(v map[string]*string) *VerifyAddressResponse { - s.Headers = v - return s -} - -func (s *VerifyAddressResponse) SetStatusCode(v int32) *VerifyAddressResponse { - s.StatusCode = &v - return s -} - -func (s *VerifyAddressResponse) SetBody(v *VerifyAddressResponseBody) *VerifyAddressResponse { - s.Body = v - return s -} diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/Client.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/Client.java index db7b4ead..67882741 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/Client.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/Client.java @@ -10,7 +10,11 @@ public static Object parseXml(String bodyStr, String apiName) throws Exception { try { try { bodyClass = Class.forName("com.aliyun.gateway.oss.util.models." + apiName + "ResponseBody"); - } catch (ClassNotFoundException e) {} + } catch (ClassNotFoundException e) { + try { + bodyClass = Class.forName("com.aliyun.gateway.oss.util.hcs_mgw_models." + apiName + "ResponseBody"); + } catch (ClassNotFoundException e) {} + } return com.aliyun.teaxml.Client.parseXml(bodyStr, bodyClass); } catch (Exception e) { throw new TeaException(TeaConverter.buildMap( diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/AddressDetail.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/AddressDetail.java similarity index 87% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/AddressDetail.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/AddressDetail.java index 634b25b6..f77a92df 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/AddressDetail.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/AddressDetail.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -8,7 +8,7 @@ public class AddressDetail extends TeaModel { *

This parameter is required.

* * example: - *

test_access_id

+ *
*/ @NameInMap("AccessId") public String accessId; @@ -17,7 +17,7 @@ public class AddressDetail extends TeaModel { *

This parameter is required.

* * example: - *

test_secret_key

+ *
*/ @NameInMap("AccessSecret") public String accessSecret; @@ -31,6 +31,10 @@ public class AddressDetail extends TeaModel { @NameInMap("AddressType") public String addressType; + /** + * example: + *

agnet1,agent2,agent3

+ */ @NameInMap("AgentList") public String agentList; @@ -38,44 +42,51 @@ public class AddressDetail extends TeaModel { *

This parameter is required.

* * example: - *

test_bucket

+ * */ @NameInMap("Bucket") public String bucket; + /** + * example: + *

oss

+ */ + @NameInMap("DataType") + public String dataType; + /** *

This parameter is required.

* * example: - *

test_domain

+ *

oss-cn-hangzhou.aliyuncs.com

*/ @NameInMap("Domain") public String domain; /** * example: - *

test_inv_access_id

+ *
*/ @NameInMap("InvAccessId") public String invAccessId; /** * example: - *

test_inv_secret_key

+ *
*/ @NameInMap("InvAccessSecret") public String invAccessSecret; /** * example: - *

test_inv_bucket

+ * */ @NameInMap("InvBucket") public String invBucket; /** * example: - *

test_inv_domain

+ *

oss-cn-hangzhou.aliyuncs.com

*/ @NameInMap("InvDomain") public String invDomain; @@ -89,42 +100,42 @@ public class AddressDetail extends TeaModel { /** * example: - *

manifest.json

+ *

dir/manifest.json

*/ @NameInMap("InvPath") public String invPath; /** * example: - *

test_inv_region_id

+ *

oss-cn-hangzhou

*/ @NameInMap("InvRegionId") public String invRegionId; /** * example: - *

test_inv_role

+ * */ @NameInMap("InvRole") public String invRole; /** * example: - *

test_prefix

+ *

dir1/dir2/

*/ @NameInMap("Prefix") public String prefix; /** * example: - *

test_region_id

+ *

oss-cn-hangzhou

*/ @NameInMap("RegionId") public String regionId; /** * example: - *

test_role

+ * */ @NameInMap("Role") public String role; @@ -174,6 +185,14 @@ public String getBucket() { return this.bucket; } + public AddressDetail setDataType(String dataType) { + this.dataType = dataType; + return this; + } + public String getDataType() { + return this.dataType; + } + public AddressDetail setDomain(String domain) { this.domain = domain; return this; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/Audit.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/Audit.java similarity index 91% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/Audit.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/Audit.java index 24eb0ea8..bcfe9a63 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/Audit.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/Audit.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressInfo.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressInfo.java index 8c3618a9..5fdef0ba 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressInfo.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -14,7 +14,7 @@ public class CreateAddressInfo extends TeaModel { *

This parameter is required.

* * example: - *

test_name

+ * */ @NameInMap("Name") public String name; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressRequest.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressRequest.java index 0903c5d4..566ff238 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressRequest.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class CreateAddressRequest extends TeaModel { + /** + *

The details for creating the data address.

+ */ @NameInMap("ImportAddress") public CreateAddressInfo importAddress; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressResponse.java index 71e7003c..beb72975 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAddressResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAddressResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentInfo.java similarity index 97% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentInfo.java index edbe0ab2..7f5316ea 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentInfo.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentRequest.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentRequest.java index 0caad673..62374494 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentRequest.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class CreateAgentRequest extends TeaModel { + /** + *

The details for creating the agent.

+ */ @NameInMap("ImportAgent") public CreateAgentInfo importAgent; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentResponse.java index ae8b39a2..50456842 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateAgentResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateAgentResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobInfo.java similarity index 71% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobInfo.java index 60f9b088..42281123 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobInfo.java @@ -1,9 +1,16 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class CreateJobInfo extends TeaModel { + /** + * example: + *

false

+ */ + @NameInMap("AppendableToNormal") + public Boolean appendableToNormal; + @NameInMap("Audit") public Audit audit; @@ -14,6 +21,10 @@ public class CreateJobInfo extends TeaModel { @NameInMap("ConvertSymlinkTarget") public Boolean convertSymlinkTarget; + /** + * example: + *

false

+ */ @NameInMap("CreateReport") public Boolean createReport; @@ -21,11 +32,15 @@ public class CreateJobInfo extends TeaModel { *

This parameter is required.

* * example: - *

test_dest_address

+ * */ @NameInMap("DestAddress") public String destAddress; + /** + * example: + *

false

+ */ @NameInMap("EnableMultiVersioning") public Boolean enableMultiVersioning; @@ -39,7 +54,7 @@ public class CreateJobInfo extends TeaModel { *

This parameter is required.

* * example: - *

test_name

+ * */ @NameInMap("Name") public String name; @@ -53,6 +68,10 @@ public class CreateJobInfo extends TeaModel { @NameInMap("OverwriteMode") public String overwriteMode; + /** + * example: + * + */ @NameInMap("ParentVersion") public String parentVersion; @@ -63,7 +82,7 @@ public class CreateJobInfo extends TeaModel { *

This parameter is required.

* * example: - *

test_src_address

+ * */ @NameInMap("SrcAddress") public String srcAddress; @@ -75,6 +94,13 @@ public class CreateJobInfo extends TeaModel { @NameInMap("Tags") public String tags; + /** + * example: + *

Standard

+ */ + @NameInMap("TargetStorageClass") + public String targetStorageClass; + /** *

This parameter is required.

* @@ -84,11 +110,33 @@ public class CreateJobInfo extends TeaModel { @NameInMap("TransferMode") public String transferMode; + /** + * example: + *

true

+ */ + @NameInMap("WithLastModifyTime") + public Boolean withLastModifyTime; + + /** + * example: + *

false

+ */ + @NameInMap("WithStorageClass") + public Boolean withStorageClass; + public static CreateJobInfo build(java.util.Map map) throws Exception { CreateJobInfo self = new CreateJobInfo(); return TeaModel.build(map, self); } + public CreateJobInfo setAppendableToNormal(Boolean appendableToNormal) { + this.appendableToNormal = appendableToNormal; + return this; + } + public Boolean getAppendableToNormal() { + return this.appendableToNormal; + } + public CreateJobInfo setAudit(Audit audit) { this.audit = audit; return this; @@ -193,6 +241,14 @@ public String getTags() { return this.tags; } + public CreateJobInfo setTargetStorageClass(String targetStorageClass) { + this.targetStorageClass = targetStorageClass; + return this; + } + public String getTargetStorageClass() { + return this.targetStorageClass; + } + public CreateJobInfo setTransferMode(String transferMode) { this.transferMode = transferMode; return this; @@ -201,4 +257,20 @@ public String getTransferMode() { return this.transferMode; } + public CreateJobInfo setWithLastModifyTime(Boolean withLastModifyTime) { + this.withLastModifyTime = withLastModifyTime; + return this; + } + public Boolean getWithLastModifyTime() { + return this.withLastModifyTime; + } + + public CreateJobInfo setWithStorageClass(Boolean withStorageClass) { + this.withStorageClass = withStorageClass; + return this; + } + public Boolean getWithStorageClass() { + return this.withStorageClass; + } + } diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobRequest.java similarity index 85% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobRequest.java index b3dc8e62..a264aa72 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobRequest.java @@ -1,10 +1,11 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class CreateJobRequest extends TeaModel { /** + *

The details for creating the migration task.

*

This parameter is required.

*/ @NameInMap("ImportJob") diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobResponse.java index dc88be09..dc454b96 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateJobResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateJobResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportInfo.java similarity index 92% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportInfo.java index 88462fe0..57ad311a 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportInfo.java @@ -1,12 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class CreateReportInfo extends TeaModel { /** * example: - *

test_job_name

+ * */ @NameInMap("JobName") public String jobName; @@ -20,7 +20,7 @@ public class CreateReportInfo extends TeaModel { /** * example: - *

test_job_id

+ * */ @NameInMap("Version") public String version; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportRequest.java similarity index 83% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportRequest.java index ee93d04b..21e3cd61 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportRequest.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class CreateReportRequest extends TeaModel { + /** + *

The details for creating the migration report.

+ */ @NameInMap("CreateReport") public CreateReportInfo createReport; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportResponse.java index 3ff94d9c..ec21c870 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateReportResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateReportResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelInfo.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelInfo.java index b6a969bd..a47f38fc 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelInfo.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelRequest.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelRequest.java index ca185355..ce3db711 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelRequest.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class CreateTunnelRequest extends TeaModel { + /** + *

The details for creating the tunnel.

+ */ @NameInMap("ImportTunnel") public CreateTunnelInfo importTunnel; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelResponse.java index f0db71ce..13998dca 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/CreateTunnelResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/CreateTunnelResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteAddressResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteAddressResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteAddressResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteAddressResponse.java index ab36d799..fc49df41 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteAddressResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteAddressResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteAgentResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteAgentResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteAgentResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteAgentResponse.java index 74cbfd0d..5011af8c 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteAgentResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteAgentResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteJobRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteJobRequest.java similarity index 68% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteJobRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteJobRequest.java index b022d8e2..d67a0082 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteJobRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteJobRequest.java @@ -1,10 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class DeleteJobRequest extends TeaModel { /** + *

Specifies whether to force delete the subtask. If the task has subtasks and you set this parameter to true, the task and its subtasks are forcibly deleted. If this parameter is set to false, the task and its subtasks fail to be deleted.

+ * * example: *

true

*/ diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteJobResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteJobResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteJobResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteJobResponse.java index ea83acba..87ea9615 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteJobResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteJobResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteTunnelResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteTunnelResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteTunnelResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteTunnelResponse.java index 7ad03788..be3040dc 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/DeleteTunnelResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/DeleteTunnelResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/FileTypeFilters.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/FileTypeFilters.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/FileTypeFilters.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/FileTypeFilters.java index 89218724..375d4ee1 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/FileTypeFilters.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/FileTypeFilters.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/FilterRule.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/FilterRule.java similarity index 96% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/FilterRule.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/FilterRule.java index d2639806..5c7842f1 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/FilterRule.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/FilterRule.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResp.java similarity index 93% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResp.java index 22054670..14098729 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -23,14 +23,14 @@ public class GetAddressResp extends TeaModel { /** * example: - *

test_name

+ * */ @NameInMap("Name") public String name; /** * example: - *

test_owner

+ *

19087*53

*/ @NameInMap("Owner") public String owner; @@ -61,7 +61,7 @@ public class GetAddressResp extends TeaModel { /** * example: - *

test_id

+ *

sf--0078--drfgdf1334

*/ @NameInMap("Version") public String version; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResponse.java index 9bd823a3..52cbb1ad 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResponseBody.java similarity index 78% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResponseBody.java index aa9505d6..d90c80f1 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAddressResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAddressResponseBody.java @@ -1,11 +1,15 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetAddressResponseBody extends TeaModel { /** - *

222

+ *

The details for obtaining the data address.

+ *

Valid values:

+ *
    + *
  • 1:1
  • + *
*/ @NameInMap("ImportAddress") public GetAddressResp importAddress; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResp.java similarity index 90% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResp.java index 793d082f..31c271f4 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -37,14 +37,14 @@ public class GetAgentResp extends TeaModel { /** * example: - *

test_name

+ * */ @NameInMap("Name") public String name; /** * example: - *

test_owner

+ *

19087*53

*/ @NameInMap("Owner") public String owner; @@ -58,14 +58,14 @@ public class GetAgentResp extends TeaModel { /** * example: - *

test_tunnel_id

+ *

13f--0567--af8d446665

*/ @NameInMap("TunnelId") public String tunnelId; /** * example: - *

test_agent_id

+ *

33f--4740--bc4f332b3

*/ @NameInMap("Version") public String version; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResponse.java index f11fc54d..378b24c8 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResponseBody.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResponseBody.java index 89bf421f..f07ae31a 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentResponseBody.java @@ -1,11 +1,11 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetAgentResponseBody extends TeaModel { /** - *

2

+ *

The details for obtaining the details of the agent.

*/ @NameInMap("ImportAgent") public GetAgentResp importAgent; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResp.java new file mode 100644 index 00000000..821c90ba --- /dev/null +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResp.java @@ -0,0 +1,57 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.gateway.oss.util.hcs_mgw_models; + +import com.aliyun.tea.*; + +public class GetAgentStatusResp extends TeaModel { + /** + * example: + *

192.168.0.2

+ */ + @NameInMap("AgentIP") + public String agentIP; + + /** + * example: + *

1.5.0

+ */ + @NameInMap("AgentVersion") + public String agentVersion; + + /** + * example: + *

OK

+ */ + @NameInMap("Status") + public String status; + + public static GetAgentStatusResp build(java.util.Map map) throws Exception { + GetAgentStatusResp self = new GetAgentStatusResp(); + return TeaModel.build(map, self); + } + + public GetAgentStatusResp setAgentIP(String agentIP) { + this.agentIP = agentIP; + return this; + } + public String getAgentIP() { + return this.agentIP; + } + + public GetAgentStatusResp setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + return this; + } + public String getAgentVersion() { + return this.agentVersion; + } + + public GetAgentStatusResp setStatus(String status) { + this.status = status; + return this; + } + public String getStatus() { + return this.status; + } + +} diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResponse.java index cbb00ccb..02445a6c 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResponseBody.java similarity index 86% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResponseBody.java index a1aaf021..4bf8f621 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetAgentStatusResponseBody.java @@ -1,11 +1,11 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetAgentStatusResponseBody extends TeaModel { /** - *

2

+ *

The details for obtaining the status of the agent.

*/ @NameInMap("ImportAgentStatus") public GetAgentStatusResp importAgentStatus; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobRequest.java similarity index 80% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobRequest.java index 7075da21..ea18a3a0 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobRequest.java @@ -1,10 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetJobRequest extends TeaModel { /** + *

Specifies whether to obtain the details of the migration task by using the task ID.

+ * * example: *

false

*/ diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResp.java similarity index 74% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResp.java index a4ae4b7c..bfae4210 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResp.java @@ -1,9 +1,16 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetJobResp extends TeaModel { + /** + * example: + *

true

+ */ + @NameInMap("AppendableToNormal") + public Boolean appendableToNormal; + @NameInMap("Audit") public Audit audit; @@ -23,14 +30,14 @@ public class GetJobResp extends TeaModel { /** * example: - *

2024-05-01 12:00:00

+ *

2025-07-04T06:02:21.000Z

*/ @NameInMap("CreateTime") public String createTime; /** * example: - *

test_dest_address

+ * */ @NameInMap("DestAddress") public String destAddress; @@ -50,14 +57,14 @@ public class GetJobResp extends TeaModel { /** * example: - *

2024-05-01 12:00:00

+ *

2025-07-05T06:02:22.000Z

*/ @NameInMap("ModifyTime") public String modifyTime; /** * example: - *

test_name

+ * */ @NameInMap("Name") public String name; @@ -69,12 +76,24 @@ public class GetJobResp extends TeaModel { @NameInMap("OverwriteMode") public String overwriteMode; + /** + * example: + *

1193834*

+ */ @NameInMap("Owner") public String owner; + /** + * example: + * + */ @NameInMap("ParentName") public String parentName; + /** + * example: + *

31a7f-18-41d9--2159149**

+ */ @NameInMap("ParentVersion") public String parentVersion; @@ -83,7 +102,7 @@ public class GetJobResp extends TeaModel { /** * example: - *

test_src_address

+ * */ @NameInMap("SrcAddress") public String srcAddress; @@ -102,6 +121,13 @@ public class GetJobResp extends TeaModel { @NameInMap("Tags") public String tags; + /** + * example: + *

Standard

+ */ + @NameInMap("TargetStorageClass") + public String targetStorageClass; + /** * example: *

all

@@ -111,16 +137,38 @@ public class GetJobResp extends TeaModel { /** * example: - *

test_id

+ *

31a7f-188f--b266-215**8e49d7

*/ @NameInMap("Version") public String version; + /** + * example: + *

true

+ */ + @NameInMap("WithLastModifyTime") + public Boolean withLastModifyTime; + + /** + * example: + *

false

+ */ + @NameInMap("WithStorageClass") + public Boolean withStorageClass; + public static GetJobResp build(java.util.Map map) throws Exception { GetJobResp self = new GetJobResp(); return TeaModel.build(map, self); } + public GetJobResp setAppendableToNormal(Boolean appendableToNormal) { + this.appendableToNormal = appendableToNormal; + return this; + } + public Boolean getAppendableToNormal() { + return this.appendableToNormal; + } + public GetJobResp setAudit(Audit audit) { this.audit = audit; return this; @@ -265,6 +313,14 @@ public String getTags() { return this.tags; } + public GetJobResp setTargetStorageClass(String targetStorageClass) { + this.targetStorageClass = targetStorageClass; + return this; + } + public String getTargetStorageClass() { + return this.targetStorageClass; + } + public GetJobResp setTransferMode(String transferMode) { this.transferMode = transferMode; return this; @@ -281,4 +337,20 @@ public String getVersion() { return this.version; } + public GetJobResp setWithLastModifyTime(Boolean withLastModifyTime) { + this.withLastModifyTime = withLastModifyTime; + return this; + } + public Boolean getWithLastModifyTime() { + return this.withLastModifyTime; + } + + public GetJobResp setWithStorageClass(Boolean withStorageClass) { + this.withStorageClass = withStorageClass; + return this; + } + public Boolean getWithStorageClass() { + return this.withStorageClass; + } + } diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResponse.java index 4f64ad64..be115a45 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResponseBody.java similarity index 80% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResponseBody.java index 188710e3..bb70773d 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResponseBody.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetJobResponseBody extends TeaModel { + /** + *

The details for obtaining the details of the migration task.

+ */ @NameInMap("ImportJob") public GetJobResp importJob; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultRequest.java similarity index 88% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultRequest.java index c0ef2126..0f73677e 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultRequest.java @@ -1,10 +1,11 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetJobResultRequest extends TeaModel { /** + *

The execution ID of the task.

*

This parameter is required.

* * example: diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResp.java similarity index 83% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResp.java index 25c8a5cb..d1963252 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -34,28 +34,28 @@ public class GetJobResultResp extends TeaModel { /** * example: - *

test_access_id

+ *
*/ @NameInMap("InvAccessId") public String invAccessId; /** * example: - *

test_secret_key

+ *
*/ @NameInMap("InvAccessSecret") public String invAccessSecret; /** * example: - *

test_sys_bucket

+ * */ @NameInMap("InvBucket") public String invBucket; /** * example: - *

test_domain

+ *

oss-cn-hangzhou.aliyuncs.com

*/ @NameInMap("InvDomain") public String invDomain; @@ -69,14 +69,14 @@ public class GetJobResultResp extends TeaModel { /** * example: - *

mainfest.json

+ *

dir/mainfest.json

*/ @NameInMap("InvPath") public String invPath; /** * example: - *

test_region_id

+ *

oss-cn-hangzhou

*/ @NameInMap("InvRegionId") public String invRegionId; @@ -88,6 +88,20 @@ public class GetJobResultResp extends TeaModel { @NameInMap("ReadyRetry") public String readyRetry; + /** + * example: + *

5000

+ */ + @NameInMap("SkippedObjectCount") + public Long skippedObjectCount; + + /** + * example: + *

1000000

+ */ + @NameInMap("SkippedObjectSize") + public Long skippedObjectSize; + /** * example: *

1000

@@ -104,7 +118,7 @@ public class GetJobResultResp extends TeaModel { /** * example: - *

test_job_id

+ *

-188f-41d9-b266-

*/ @NameInMap("Version") public String version; @@ -210,6 +224,22 @@ public String getReadyRetry() { return this.readyRetry; } + public GetJobResultResp setSkippedObjectCount(Long skippedObjectCount) { + this.skippedObjectCount = skippedObjectCount; + return this; + } + public Long getSkippedObjectCount() { + return this.skippedObjectCount; + } + + public GetJobResultResp setSkippedObjectSize(Long skippedObjectSize) { + this.skippedObjectSize = skippedObjectSize; + return this; + } + public Long getSkippedObjectSize() { + return this.skippedObjectSize; + } + public GetJobResultResp setTotalObjectCount(Long totalObjectCount) { this.totalObjectCount = totalObjectCount; return this; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResponse.java index 10a29b63..8e16fcdd 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResponseBody.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResponseBody.java index 2fd8fbdc..6d465212 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetJobResultResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetJobResultResponseBody.java @@ -1,11 +1,11 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetJobResultResponseBody extends TeaModel { /** - *

1

+ *

The details for obtaining the retries of the migration task.

*/ @NameInMap("ImportJobResult") public GetJobResultResp importJobResult; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportRequest.java similarity index 86% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportRequest.java index fa14496e..069a8a44 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportRequest.java @@ -1,10 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetReportRequest extends TeaModel { /** + *

The execution ID of the migration task.

+ * * example: *

1

*/ @@ -12,6 +14,7 @@ public class GetReportRequest extends TeaModel { public Integer runtimeId; /** + *

The ID of the migration task.

*

This parameter is required.

* * example: diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResp.java similarity index 91% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResp.java index fd676f6b..64e0186c 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -21,23 +21,19 @@ public class GetReportResp extends TeaModel { @NameInMap("FailedCount") public Long failedCount; - /** - * example: - *

test_failed_prefix/

- */ @NameInMap("FailedListPrefix") public String failedListPrefix; /** * example: - *

2024-05-01 12:00:00

+ *

1754445355

*/ @NameInMap("JobCreateTime") public String jobCreateTime; /** * example: - *

2024-05-01 12:00:00

+ *

1754445355

*/ @NameInMap("JobEndTime") public String jobEndTime; @@ -51,14 +47,14 @@ public class GetReportResp extends TeaModel { /** * example: - *

2024-05-01 12:00:00

+ *

1748232558

*/ @NameInMap("ReportCreateTime") public String reportCreateTime; /** * example: - *

2024-05-01 12:00:00

+ *

1748232845

*/ @NameInMap("ReportEndTime") public String reportEndTime; @@ -70,16 +66,12 @@ public class GetReportResp extends TeaModel { @NameInMap("SkippedCount") public Long skippedCount; - /** - * example: - *

test_skipped_prefix/

- */ @NameInMap("SkippedListPrefix") public String skippedListPrefix; /** * example: - *

Running

+ *

Finished

*/ @NameInMap("Status") public String status; @@ -91,10 +83,6 @@ public class GetReportResp extends TeaModel { @NameInMap("TotalCount") public Long totalCount; - /** - * example: - *

test_total_prefix/

- */ @NameInMap("TotalListPrefix") public String totalListPrefix; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResponse.java index 696c9955..8d8f7e84 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResponseBody.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResponseBody.java index 6c495f2e..cd5fe9e4 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetReportResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetReportResponseBody.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetReportResponseBody extends TeaModel { + /** + *

The details for obtaining the migration report.

+ */ @NameInMap("GetReportResponse") public GetReportResp getReportResponse; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResp.java similarity index 87% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResp.java index 373354b1..6f9f2652 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResp.java @@ -1,26 +1,26 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetTunnelResp extends TeaModel { /** * example: - *

2024-05-01 12:00:00

+ *

2025-08-03T07:09:25.000Z

*/ @NameInMap("CreateTime") public String createTime; /** * example: - *

2024-05-01 12:00:00

+ *

2025-08-04T07:09:26.000Z

*/ @NameInMap("ModifyTime") public String modifyTime; /** * example: - *

test_owner

+ *

15**743

*/ @NameInMap("Owner") public String owner; @@ -34,7 +34,7 @@ public class GetTunnelResp extends TeaModel { /** * example: - *

test_tunnel_id

+ *

33f--4740--bc4f332b3

*/ @NameInMap("TunnelId") public String tunnelId; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResponse.java index fd773b98..047ce0c1 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResponseBody.java similarity index 82% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResponseBody.java index 83b4a279..41f6561e 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetTunnelResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/GetTunnelResponseBody.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class GetTunnelResponseBody extends TeaModel { + /** + *

The details for obtaining the details of the tunnel.

+ */ @NameInMap("ImportTunnel") public GetTunnelResp importTunnel; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ImportQos.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ImportQos.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ImportQos.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ImportQos.java index a3086976..87ab2d00 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ImportQos.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ImportQos.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/JobHistory.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/JobHistory.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/JobHistory.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/JobHistory.java index 7e590fcd..10d21cf8 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/JobHistory.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/JobHistory.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -27,7 +27,7 @@ public class JobHistory extends TeaModel { /** * example: - *

2024-05-01 12:00:00

+ *

2025-07-04T08:09:26.000Z

*/ @NameInMap("EndTime") public String endTime; @@ -41,7 +41,7 @@ public class JobHistory extends TeaModel { /** * example: - *

test_id

+ *

-188f--b266-***

*/ @NameInMap("JobVersion") public String jobVersion; @@ -58,7 +58,7 @@ public class JobHistory extends TeaModel { /** * example: - *

test_name

+ * */ @NameInMap("Name") public String name; @@ -86,7 +86,7 @@ public class JobHistory extends TeaModel { /** * example: - *

2024-05-01 12:00:00

+ *

2025-07-04T07:09:26.000Z

*/ @NameInMap("StartTime") public String startTime; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/KeyFilterItem.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/KeyFilterItem.java similarity index 91% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/KeyFilterItem.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/KeyFilterItem.java index 3c7170e8..6ca62df8 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/KeyFilterItem.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/KeyFilterItem.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/KeyFilters.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/KeyFilters.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/KeyFilters.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/KeyFilters.java index 1177c46b..0aab398c 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/KeyFilters.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/KeyFilters.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/LastModifiedFilters.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/LastModifiedFilters.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/LastModifiedFilters.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/LastModifiedFilters.java index 8fa4814b..a4c230d2 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/LastModifiedFilters.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/LastModifiedFilters.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/LastModifyFilterItem.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/LastModifyFilterItem.java similarity index 92% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/LastModifyFilterItem.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/LastModifyFilterItem.java index fadade6a..afdc9974 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/LastModifyFilterItem.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/LastModifyFilterItem.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressRequest.java similarity index 73% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressRequest.java index f05f043c..f3258b11 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressRequest.java @@ -1,10 +1,14 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListAddressRequest extends TeaModel { /** + *

Specifies the number of migration addresses to be returned.\ + * Valid values: 0 - 1000 (excluding 0).\ + * Default value: 1000.

+ * * example: *

100

*/ @@ -12,6 +16,9 @@ public class ListAddressRequest extends TeaModel { public Integer count; /** + *

The marker after which the migration addresses are listed.\ + * By default, this parameter is left empty.

+ * * example: *

test_marker

*/ diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResp.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResp.java index c95f3b39..6ad6df1f 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -9,7 +9,7 @@ public class ListAddressResp extends TeaModel { /** * example: - *

test_marker

+ * */ @NameInMap("NextMarker") public String nextMarker; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResponse.java index d4562645..01ecc310 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResponseBody.java similarity index 85% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResponseBody.java index c8084e2f..5645e9d2 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAddressResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAddressResponseBody.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListAddressResponseBody extends TeaModel { + /** + *

The details of migration addresses.

+ */ @NameInMap("ImportAddressList") public ListAddressResp importAddressList; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentRequest.java similarity index 75% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentRequest.java index a8adfd33..f0e9db41 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentRequest.java @@ -1,10 +1,14 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListAgentRequest extends TeaModel { /** + *

Specifies the number of agents to be returned.\ + * Valid values: 0 - 1000.\ + * Default value: 1000.

+ * * example: *

100

*/ @@ -12,6 +16,9 @@ public class ListAgentRequest extends TeaModel { public Integer count; /** + *

The marker after which the agents are listed.\ + * By default, this parameter is left empty.

+ * * example: *

test_agent

*/ diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResp.java similarity index 93% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResp.java index c2b69f97..53b0ee27 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -9,7 +9,7 @@ public class ListAgentResp extends TeaModel { /** * example: - *

test_next_marker

+ * */ @NameInMap("NextMarker") public String nextMarker; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResponse.java index 3d6ef435..bb29760d 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResponseBody.java similarity index 86% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResponseBody.java index d17dcf37..22ddc535 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListAgentResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListAgentResponseBody.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListAgentResponseBody extends TeaModel { + /** + *

The details of the agents.

+ */ @NameInMap("ImportAgentList") public ListAgentResp importAgentList; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryRequest.java similarity index 67% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryRequest.java index cef09fe3..c0d5dd4d 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryRequest.java @@ -1,20 +1,33 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListJobHistoryRequest extends TeaModel { /** + *

Specifies the number of running records of the migration task to be returned.\ + * Valid values: 0 - 1000.\ + * Default value: 1000.

+ * * example: *

100

*/ @NameInMap("count") public Integer count; + /** + *

The marker after which the running history of the task is listed.\ + * By default, this parameter is left empty.

+ * + * example: + *

test_marker

+ */ @NameInMap("marker") public String marker; /** + *

The execution ID of the task. If you specify an execution ID, only the running history related to the execution ID is listed.

+ * * example: *

1

*/ diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResp.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResp.java index 1208c72d..4018d00e 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -9,7 +9,7 @@ public class ListJobHistoryResp extends TeaModel { /** * example: - *

test_next_marker

+ *

1#3

*/ @NameInMap("NextMarker") public String nextMarker; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResponse.java index 23d9acfd..0b4330d0 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResponseBody.java similarity index 85% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResponseBody.java index c09f20df..71288206 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobHistoryResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobHistoryResponseBody.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListJobHistoryResponseBody extends TeaModel { + /** + *

The running history of the migration task.

+ */ @NameInMap("JobHistoryList") public ListJobHistoryResp jobHistoryList; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobInfo.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobInfo.java index df508da2..fcfe36d3 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobInfo.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -9,7 +9,7 @@ public class ListJobInfo extends TeaModel { /** * example: - *

test_next_marker

+ * */ @NameInMap("NextMarker") public String nextMarker; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobRequest.java similarity index 73% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobRequest.java index c3a56a2b..59351e33 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobRequest.java @@ -1,10 +1,13 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListJobRequest extends TeaModel { /** + *

Specifies whether to return subtasks.\ + * Valid values: true and false.

+ * * example: *

true

*/ @@ -12,6 +15,10 @@ public class ListJobRequest extends TeaModel { public Boolean all; /** + *

Specifies the number of migration tasks to be returned.\ + * Valid values: 0 - 1000 (excluding 0).\ + * Default value: 1000.

+ * * example: *

1000

*/ @@ -19,6 +26,9 @@ public class ListJobRequest extends TeaModel { public Integer count; /** + *

The marker after which the migration tasks are listed.\ + * By default, this parameter is left empty.

+ * * example: *

test_marker

*/ @@ -26,6 +36,8 @@ public class ListJobRequest extends TeaModel { public String marker; /** + *

The name of the parent task. If this parameter is specified, all subtasks of the parent task are returned.

+ * * example: *

test_parent_job_name

*/ diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResp.java similarity index 85% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResp.java index 24ae142f..d35602b3 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; @@ -7,9 +7,17 @@ public class ListJobResp extends TeaModel { @NameInMap("ImportJob") public java.util.List importJob; + /** + * example: + * + */ @NameInMap("NextMarker") public String nextMarker; + /** + * example: + *

true

+ */ @NameInMap("Truncated") public Boolean truncated; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResponse.java index fbd9a75e..dff7ee69 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResponseBody.java similarity index 85% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResponseBody.java index 73780ce1..3ada06eb 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListJobResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListJobResponseBody.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListJobResponseBody extends TeaModel { + /** + *

The queried migration tasks.

+ */ @NameInMap("ImportJobList") public ListJobResp importJobList; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelRequest.java similarity index 75% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelRequest.java index 17e07f50..e8f5f55c 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelRequest.java @@ -1,10 +1,14 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListTunnelRequest extends TeaModel { /** + *

Specifies the number of tunnels to be returned.\ + * Valid values: 0 - 1000.\ + * Default value: 1000.

+ * * example: *

2

*/ @@ -12,6 +16,9 @@ public class ListTunnelRequest extends TeaModel { public Integer count; /** + *

The marker after which tunnels are listed.\ + * By default, this parameter is left empty.

+ * * example: *

1

*/ diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResp.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResp.java index 0d40d005..143d3046 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResponse.java index 33634c97..51d31461 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResponseBody.java similarity index 88% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResponseBody.java index b6f8ccf2..5197414c 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ListTunnelResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ListTunnelResponseBody.java @@ -1,11 +1,11 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class ListTunnelResponseBody extends TeaModel { /** - *

2

+ *

The details of the tunnels.

*/ @NameInMap("ImportTunnelList") public ListTunnelResp importTunnelList; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ScheduleRule.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ScheduleRule.java similarity index 96% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ScheduleRule.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ScheduleRule.java index 6af7cd82..0a16801c 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/ScheduleRule.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/ScheduleRule.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/TimeFilter.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/TimeFilter.java similarity index 93% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/TimeFilter.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/TimeFilter.java index 73e2db5b..b053dda5 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/TimeFilter.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/TimeFilter.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/TunnelQos.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/TunnelQos.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/TunnelQos.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/TunnelQos.java index dece8b85..8d5310a9 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/TunnelQos.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/TunnelQos.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressInfo.java similarity index 91% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressInfo.java index a44d5877..4e9b1307 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressInfo.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressRequest.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressRequest.java index 6a3801b8..f59ccd6f 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressRequest.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class UpdateAddressRequest extends TeaModel { + /** + *

The details for updating the data address.

+ */ @NameInMap("ImportAddress") public UpdateAddressInfo importAddress; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressResponse.java index ca8e16a0..89b27605 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateAddressResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateAddressResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobInfo.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobInfo.java index b929d306..e5135686 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobInfo.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobRequest.java similarity index 83% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobRequest.java index 1148ae5e..9d145a99 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobRequest.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class UpdateJobRequest extends TeaModel { + /** + *

The details for updating the task.

+ */ @NameInMap("ImportJob") public UpdateJobInfo importJob; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobResponse.java index adf2b5cf..3bff107a 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateJobResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateJobResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelInfo.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelInfo.java similarity index 86% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelInfo.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelInfo.java index 39614561..1193df16 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelInfo.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelInfo.java @@ -1,9 +1,13 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class UpdateTunnelInfo extends TeaModel { + /** + * example: + *

k1=v1;k2=v2

+ */ @NameInMap("Tags") public String tags; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelRequest.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelRequest.java similarity index 84% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelRequest.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelRequest.java index f0a9a2c6..147a44e0 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelRequest.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelRequest.java @@ -1,9 +1,12 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class UpdateTunnelRequest extends TeaModel { + /** + *

The details for updating the tunnel.

+ */ @NameInMap("ImportTunnel") public UpdateTunnelInfo importTunnel; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelResponse.java similarity index 94% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelResponse.java index 97251230..9b888eed 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/UpdateTunnelResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/UpdateTunnelResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResp.java similarity index 96% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResp.java index e7b59658..f5706c5d 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResponse.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResponse.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResponse.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResponse.java index 950ed966..2969067a 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResponse.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResponse.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResponseBody.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResponseBody.java similarity index 87% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResponseBody.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResponseBody.java index 7b2e865d..75e9cdac 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyAddressResponseBody.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyAddressResponseBody.java @@ -1,11 +1,11 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; public class VerifyAddressResponseBody extends TeaModel { /** - *

1

+ *

The details for verifying the data address.

*/ @NameInMap("VerifyAddressResponse") public VerifyAddressResp verifyAddressResponse; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyResp.java similarity index 95% rename from alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyResp.java rename to alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyResp.java index 64a93aec..25531d1b 100644 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/VerifyResp.java +++ b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/hcs_mgw_models/VerifyResp.java @@ -1,5 +1,5 @@ // This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; +package com.aliyun.gateway.oss.util.hcs_mgw_models; import com.aliyun.tea.*; diff --git a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResp.java b/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResp.java deleted file mode 100644 index 93093a45..00000000 --- a/alibabacloud-gateway-oss/util/java/src/main/java/com/aliyun/gateway/oss/util/models/GetAgentStatusResp.java +++ /dev/null @@ -1,27 +0,0 @@ -// This file is auto-generated, don't edit it. Thanks. -package com.aliyun.gateway.oss.util.models; - -import com.aliyun.tea.*; - -public class GetAgentStatusResp extends TeaModel { - /** - * example: - *

OK

- */ - @NameInMap("Status") - public String status; - - public static GetAgentStatusResp build(java.util.Map map) throws Exception { - GetAgentStatusResp self = new GetAgentStatusResp(); - return TeaModel.build(map, self); - } - - public GetAgentStatusResp setStatus(String status) { - this.status = status; - return this; - } - public String getStatus() { - return this.status; - } - -} From df0661f8996f3f1bb5f301a5345a82d2ee41c4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=97=AE?= Date: Wed, 26 Nov 2025 14:58:59 +0800 Subject: [PATCH 4/4] [oss gateway & util] gateway sdk: bump go v0.0.22, java, v0.0.21, python v0.0.19; gateway util: bump go v0.0.11, java v0.0.9, python v0.0.5 --- alibabacloud-gateway-oss/Teafile | 6 +++--- alibabacloud-gateway-oss/golang/go.mod | 2 +- alibabacloud-gateway-oss/java/pom.xml | 4 ++-- .../python/alibabacloud_gateway_oss/__init__.py | 2 +- alibabacloud-gateway-oss/python/setup.py | 2 +- alibabacloud-gateway-oss/util/Teafile | 8 ++++---- alibabacloud-gateway-oss/util/java/pom.xml | 2 +- .../util/python/alibabacloud_gateway_oss_util/__init__.py | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/alibabacloud-gateway-oss/Teafile b/alibabacloud-gateway-oss/Teafile index 126a41b0..25cbaf68 100644 --- a/alibabacloud-gateway-oss/Teafile +++ b/alibabacloud-gateway-oss/Teafile @@ -26,9 +26,9 @@ }, "releases": { "ts": "@alicloud/gateway-oss:^0.0.9", - "go": "github.com/alibabacloud-go/alibabacloud-gateway-oss/client:v0.0.21", - "java": "com.aliyun:alibabacloud-gateway-oss:0.0.20", - "python": "alibabacloud_gateway_oss:0.0.18", + "go": "github.com/alibabacloud-go/alibabacloud-gateway-oss/client:v0.0.22", + "java": "com.aliyun:alibabacloud-gateway-oss:0.0.21", + "python": "alibabacloud_gateway_oss:0.0.19", "python2": "alibabacloud_gateway_oss_py2:0.0.9", "csharp": "AlibabaCloud.GatewayOss:0.0.10", "php": "alibabacloud/gateway-oss:^0.0.9" diff --git a/alibabacloud-gateway-oss/golang/go.mod b/alibabacloud-gateway-oss/golang/go.mod index e13a7453..41834d49 100644 --- a/alibabacloud-gateway-oss/golang/go.mod +++ b/alibabacloud-gateway-oss/golang/go.mod @@ -3,7 +3,7 @@ module github.com/alibabacloud-go/alibabacloud-gateway-oss go 1.14 require ( - github.com/alibabacloud-go/alibabacloud-gateway-oss-util v0.0.10 + github.com/alibabacloud-go/alibabacloud-gateway-oss-util v0.0.11 github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 github.com/alibabacloud-go/darabonba-array v0.1.0 github.com/alibabacloud-go/darabonba-encode-util v0.0.2 diff --git a/alibabacloud-gateway-oss/java/pom.xml b/alibabacloud-gateway-oss/java/pom.xml index 346991da..e1e43a67 100644 --- a/alibabacloud-gateway-oss/java/pom.xml +++ b/alibabacloud-gateway-oss/java/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.aliyun alibabacloud-gateway-oss - 0.0.20 + 0.0.21 jar alibabacloud-gateway-oss @@ -119,7 +119,7 @@ com.aliyun alibabacloud-gateway-oss-util - 0.0.8 + 0.0.9 diff --git a/alibabacloud-gateway-oss/python/alibabacloud_gateway_oss/__init__.py b/alibabacloud-gateway-oss/python/alibabacloud_gateway_oss/__init__.py index 1f658a48..a11f0b41 100644 --- a/alibabacloud-gateway-oss/python/alibabacloud_gateway_oss/__init__.py +++ b/alibabacloud-gateway-oss/python/alibabacloud_gateway_oss/__init__.py @@ -1 +1 @@ -__version__ = "0.0.17" +__version__ = "0.0.19" diff --git a/alibabacloud-gateway-oss/python/setup.py b/alibabacloud-gateway-oss/python/setup.py index f141922e..98df771b 100644 --- a/alibabacloud-gateway-oss/python/setup.py +++ b/alibabacloud-gateway-oss/python/setup.py @@ -49,7 +49,7 @@ "alibabacloud_darabonba_encode_util>=0.0.2, <1.0.0", "alibabacloud_darabonba_signature_util>=0.0.4, <1.0.0", "alibabacloud_darabonba_time>=0.0.1, <1.0.0", - "alibabacloud_gateway_oss_util>=0.0.4, <1.0.0", + "alibabacloud_gateway_oss_util>=0.0.5, <1.0.0", "darabonba-core>=1.0.4, <2.0.0" ] diff --git a/alibabacloud-gateway-oss/util/Teafile b/alibabacloud-gateway-oss/util/Teafile index becf2e39..939b461b 100644 --- a/alibabacloud-gateway-oss/util/Teafile +++ b/alibabacloud-gateway-oss/util/Teafile @@ -1,7 +1,7 @@ { "scope": "alibabacloud", "name": "GatewayOSS_Util", - "version": "0.0.13", + "version": "0.0.14", "main": "./main.tea", "maintainers": [ { @@ -12,9 +12,9 @@ "libraries": { }, "releases": { - "go": "github.com/alibabacloud-go/alibabacloud-gateway-oss-util/client:v0.0.10", - "java": "com.aliyun:alibabacloud-gateway-oss-util:0.0.8", - "python": "alibabacloud_gateway_oss_util:0.0.4" + "go": "github.com/alibabacloud-go/alibabacloud-gateway-oss-util/client:v0.0.11", + "java": "com.aliyun:alibabacloud-gateway-oss-util:0.0.9", + "python": "alibabacloud_gateway_oss_util:0.0.5" }, "csharp": { "namespace": "AlibabaCloud.GatewayOss_Util", diff --git a/alibabacloud-gateway-oss/util/java/pom.xml b/alibabacloud-gateway-oss/util/java/pom.xml index 8e79dbf6..02b5c8b2 100644 --- a/alibabacloud-gateway-oss/util/java/pom.xml +++ b/alibabacloud-gateway-oss/util/java/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.aliyun alibabacloud-gateway-oss-util - 0.0.8 + 0.0.9 jar alibabacloud-gateway-oss-util diff --git a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/__init__.py b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/__init__.py index 27fdca49..b1a19e32 100644 --- a/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/__init__.py +++ b/alibabacloud-gateway-oss/util/python/alibabacloud_gateway_oss_util/__init__.py @@ -1 +1 @@ -__version__ = "0.0.3" +__version__ = "0.0.5"