diff --git a/ChangeLog.txt b/ChangeLog.txt index ca61157b5b..f257884f8c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-12-24 Version: v1.63.74 +- Generated 2022-05-30 for `eflo`. +- Supported Jumbo for HDENI and LENI. + 2024-12-23 Version: v1.63.73 - Generated 2020-06-16 for `Alb`. undefined diff --git a/services/eflo/create_elastic_network_interface.go b/services/eflo/create_elastic_network_interface.go index afe5ea9d00..ccba13246b 100644 --- a/services/eflo/create_elastic_network_interface.go +++ b/services/eflo/create_elastic_network_interface.go @@ -71,13 +71,14 @@ func (client *Client) CreateElasticNetworkInterfaceWithCallback(request *CreateE // CreateElasticNetworkInterfaceRequest is the request struct for api CreateElasticNetworkInterface type CreateElasticNetworkInterfaceRequest struct { *requests.RpcRequest - ClientToken string `position:"Body" name:"ClientToken"` - SecurityGroupId string `position:"Body" name:"SecurityGroupId"` - Description string `position:"Body" name:"Description"` - NodeId string `position:"Body" name:"NodeId"` - VSwitchId string `position:"Body" name:"VSwitchId"` - VpcId string `position:"Body" name:"VpcId"` - ZoneId string `position:"Body" name:"ZoneId"` + ClientToken string `position:"Body" name:"ClientToken"` + SecurityGroupId string `position:"Body" name:"SecurityGroupId"` + Description string `position:"Body" name:"Description"` + NodeId string `position:"Body" name:"NodeId"` + EnableJumboFrame requests.Boolean `position:"Body" name:"EnableJumboFrame"` + VSwitchId string `position:"Body" name:"VSwitchId"` + VpcId string `position:"Body" name:"VpcId"` + ZoneId string `position:"Body" name:"ZoneId"` } // CreateElasticNetworkInterfaceResponse is the response struct for api CreateElasticNetworkInterface diff --git a/services/eflo/create_vcc.go b/services/eflo/create_vcc.go index 238f20e24e..e4f6d23b6e 100644 --- a/services/eflo/create_vcc.go +++ b/services/eflo/create_vcc.go @@ -75,6 +75,7 @@ type CreateVccRequest struct { CenId string `position:"Body" name:"CenId"` Description string `position:"Body" name:"Description"` CenOwnerId string `position:"Body" name:"CenOwnerId"` + BgpAsn requests.Integer `position:"Body" name:"BgpAsn"` AccessCouldService requests.Boolean `position:"Body" name:"AccessCouldService"` ResourceGroupId string `position:"Body" name:"ResourceGroupId"` VccName string `position:"Body" name:"VccName"` diff --git a/services/eflo/list_vcc_flow_infos.go b/services/eflo/list_vcc_flow_infos.go new file mode 100644 index 0000000000..d6fdba1bfe --- /dev/null +++ b/services/eflo/list_vcc_flow_infos.go @@ -0,0 +1,106 @@ +package eflo + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListVccFlowInfos invokes the eflo.ListVccFlowInfos API synchronously +func (client *Client) ListVccFlowInfos(request *ListVccFlowInfosRequest) (response *ListVccFlowInfosResponse, err error) { + response = CreateListVccFlowInfosResponse() + err = client.DoAction(request, response) + return +} + +// ListVccFlowInfosWithChan invokes the eflo.ListVccFlowInfos API asynchronously +func (client *Client) ListVccFlowInfosWithChan(request *ListVccFlowInfosRequest) (<-chan *ListVccFlowInfosResponse, <-chan error) { + responseChan := make(chan *ListVccFlowInfosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListVccFlowInfos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListVccFlowInfosWithCallback invokes the eflo.ListVccFlowInfos API asynchronously +func (client *Client) ListVccFlowInfosWithCallback(request *ListVccFlowInfosRequest, callback func(response *ListVccFlowInfosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListVccFlowInfosResponse + var err error + defer close(result) + response, err = client.ListVccFlowInfos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListVccFlowInfosRequest is the request struct for api ListVccFlowInfos +type ListVccFlowInfosRequest struct { + *requests.RpcRequest + From requests.Integer `position:"Body" name:"From"` + To requests.Integer `position:"Body" name:"To"` + VccId string `position:"Body" name:"VccId"` + MetricName string `position:"Body" name:"MetricName"` + Direction string `position:"Body" name:"Direction"` +} + +// ListVccFlowInfosResponse is the response struct for api ListVccFlowInfos +type ListVccFlowInfosResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Content Content `json:"Content" xml:"Content"` +} + +// CreateListVccFlowInfosRequest creates a request to invoke ListVccFlowInfos API +func CreateListVccFlowInfosRequest() (request *ListVccFlowInfosRequest) { + request = &ListVccFlowInfosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("eflo", "2022-05-30", "ListVccFlowInfos", "eflo", "openAPI") + request.Method = requests.POST + return +} + +// CreateListVccFlowInfosResponse creates a response to parse from ListVccFlowInfos response +func CreateListVccFlowInfosResponse() (response *ListVccFlowInfosResponse) { + response = &ListVccFlowInfosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/eflo/struct_content.go b/services/eflo/struct_content.go index a3b916dfa7..07248b0169 100644 --- a/services/eflo/struct_content.go +++ b/services/eflo/struct_content.go @@ -92,6 +92,7 @@ type Content struct { NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` LniSipQuota int `json:"LniSipQuota" xml:"LniSipQuota"` VpcId string `json:"VpcId" xml:"VpcId"` + EnableJumboFrame bool `json:"EnableJumboFrame" xml:"EnableJumboFrame"` ClusterId string `json:"ClusterId" xml:"ClusterId"` Cidr string `json:"Cidr" xml:"Cidr"` VpdId string `json:"VpdId" xml:"VpdId"` @@ -106,6 +107,7 @@ type Content struct { PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` Ncd int `json:"Ncd" xml:"Ncd"` PortType string `json:"PortType" xml:"PortType"` + BgpAsn string `json:"BgpAsn" xml:"BgpAsn"` NodeId string `json:"NodeId" xml:"NodeId"` RegionId string `json:"RegionId" xml:"RegionId"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` @@ -135,6 +137,7 @@ type Content struct { ErAttachments []ErAttachment `json:"ErAttachments" xml:"ErAttachments"` PrivateIpAddresses []PrivateIpAddress `json:"PrivateIpAddresses" xml:"PrivateIpAddresses"` Tags []Tag `json:"Tags" xml:"Tags"` + Ipv6Addresses []Ipv6Addresse `json:"Ipv6Addresses" xml:"Ipv6Addresses"` ErRouteMaps []ErRouteMap `json:"ErRouteMaps" xml:"ErRouteMaps"` AliyunRouterInfo []AliyunRouterInfoItem `json:"AliyunRouterInfo" xml:"AliyunRouterInfo"` PrivateIpAddressMacGroup []PrivateIpAddressMacGroupItem `json:"PrivateIpAddressMacGroup" xml:"PrivateIpAddressMacGroup"` diff --git a/services/eflo/struct_data_in_list_vcc_flow_infos.go b/services/eflo/struct_data_in_list_vcc_flow_infos.go new file mode 100644 index 0000000000..914e1522bf --- /dev/null +++ b/services/eflo/struct_data_in_list_vcc_flow_infos.go @@ -0,0 +1,21 @@ +package eflo + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInListVccFlowInfos is a nested struct in eflo response +type DataInListVccFlowInfos struct { + DataItem []DataItem `json:"Data" xml:"Data"` +} diff --git a/services/eflo/struct_data_item.go b/services/eflo/struct_data_item.go index 3e7333f443..09ad2a9894 100644 --- a/services/eflo/struct_data_item.go +++ b/services/eflo/struct_data_item.go @@ -18,17 +18,12 @@ package eflo // DataItem is a nested struct in eflo response type DataItem struct { ErId string `json:"ErId" xml:"ErId"` - RouteMaps int64 `json:"RouteMaps" xml:"RouteMaps"` - NetworkInterfaceCount int `json:"NetworkInterfaceCount" xml:"NetworkInterfaceCount"` AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` ReceptionInstanceId string `json:"ReceptionInstanceId" xml:"ReceptionInstanceId"` NcType string `json:"NcType" xml:"NcType"` - Mac string `json:"Mac" xml:"Mac"` - Across bool `json:"Across" xml:"Across"` - MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` Used bool `json:"Used" xml:"Used"` InstanceType string `json:"InstanceType" xml:"InstanceType"` - NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + Direction string `json:"Direction" xml:"Direction"` NextHopId string `json:"NextHopId" xml:"NextHopId"` VccName string `json:"VccName" xml:"VccName"` TaskId string `json:"TaskId" xml:"TaskId"` @@ -36,18 +31,14 @@ type DataItem struct { ElasticNetworkInterfaceId string `json:"ElasticNetworkInterfaceId" xml:"ElasticNetworkInterfaceId"` Gateway string `json:"Gateway" xml:"Gateway"` CommodityCode string `json:"CommodityCode" xml:"CommodityCode"` - VpcId string `json:"VpcId" xml:"VpcId"` Type string `json:"Type" xml:"Type"` ReceptionInstanceName string `json:"ReceptionInstanceName" xml:"ReceptionInstanceName"` Message string `json:"Message" xml:"Message"` - Cidr string `json:"Cidr" xml:"Cidr"` IpAddressMac string `json:"IpAddressMac" xml:"IpAddressMac"` - VpdId string `json:"VpdId" xml:"VpdId"` + Timestamp int64 `json:"Timestamp" xml:"Timestamp"` ErAttachmentId string `json:"ErAttachmentId" xml:"ErAttachmentId"` Action string `json:"Action" xml:"Action"` InstanceName string `json:"InstanceName" xml:"InstanceName"` - ReceptionInstanceOwner string `json:"ReceptionInstanceOwner" xml:"ReceptionInstanceOwner"` - VccRouteEntryId string `json:"VccRouteEntryId" xml:"VccRouteEntryId"` CenOwnerId string `json:"CenOwnerId" xml:"CenOwnerId"` IpName string `json:"IpName" xml:"IpName"` LineOperator string `json:"LineOperator" xml:"LineOperator"` @@ -57,11 +48,7 @@ type DataItem struct { ExpirationDate string `json:"ExpirationDate" xml:"ExpirationDate"` ZoneId string `json:"ZoneId" xml:"ZoneId"` TransmissionInstanceType string `json:"TransmissionInstanceType" xml:"TransmissionInstanceType"` - ErName string `json:"ErName" xml:"ErName"` - AutoReceiveAllRoute bool `json:"AutoReceiveAllRoute" xml:"AutoReceiveAllRoute"` Status string `json:"Status" xml:"Status"` - ErRouteMapId string `json:"ErRouteMapId" xml:"ErRouteMapId"` - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` NextHopType string `json:"NextHopType" xml:"NextHopType"` ReceptionInstanceType string `json:"ReceptionInstanceType" xml:"ReceptionInstanceType"` @@ -69,43 +56,61 @@ type DataItem struct { TransmissionInstanceOwner string `json:"TransmissionInstanceOwner" xml:"TransmissionInstanceOwner"` CreateTime string `json:"CreateTime" xml:"CreateTime"` SubnetCount int `json:"SubnetCount" xml:"SubnetCount"` - PortType string `json:"PortType" xml:"PortType"` GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` - NodeId string `json:"NodeId" xml:"NodeId"` - RegionId string `json:"RegionId" xml:"RegionId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SubnetName string `json:"SubnetName" xml:"SubnetName"` Mask string `json:"Mask" xml:"Mask"` InstanceId string `json:"InstanceId" xml:"InstanceId"` SubnetId string `json:"SubnetId" xml:"SubnetId"` RouteMapNum int `json:"RouteMapNum" xml:"RouteMapNum"` - ResourceTenantId string `json:"ResourceTenantId" xml:"ResourceTenantId"` - Description string `json:"Description" xml:"Description"` TenantId string `json:"TenantId" xml:"TenantId"` ErAttachmentName string `json:"ErAttachmentName" xml:"ErAttachmentName"` - Connections int64 `json:"Connections" xml:"Connections"` VpdName string `json:"VpdName" xml:"VpdName"` - Product string `json:"Product" xml:"Product"` - VpdRouteEntryId string `json:"VpdRouteEntryId" xml:"VpdRouteEntryId"` - Dependence map[string]interface{} `json:"Dependence" xml:"Dependence"` Ip string `json:"Ip" xml:"Ip"` VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - GmtModified string `json:"GmtModified" xml:"GmtModified"` Quota int `json:"Quota" xml:"Quota"` - BgpCidr string `json:"BgpCidr" xml:"BgpCidr"` - BandwidthStr string `json:"BandwidthStr" xml:"BandwidthStr"` CenId string `json:"CenId" xml:"CenId"` ConnectionType string `json:"ConnectionType" xml:"ConnectionType"` NcCount int `json:"NcCount" xml:"NcCount"` CurrentNode string `json:"CurrentNode" xml:"CurrentNode"` - TransmissionInstanceName string `json:"TransmissionInstanceName" xml:"TransmissionInstanceName"` - VccId string `json:"VccId" xml:"VccId"` - RouteType string `json:"RouteType" xml:"RouteType"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` GrantTenantId string `json:"GrantTenantId" xml:"GrantTenantId"` TransmissionInstanceId string `json:"TransmissionInstanceId" xml:"TransmissionInstanceId"` ServiceMac string `json:"ServiceMac" xml:"ServiceMac"` + MetricName string `json:"MetricName" xml:"MetricName"` DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + RouteMaps int64 `json:"RouteMaps" xml:"RouteMaps"` + NetworkInterfaceCount int `json:"NetworkInterfaceCount" xml:"NetworkInterfaceCount"` + Mac string `json:"Mac" xml:"Mac"` + Across bool `json:"Across" xml:"Across"` + MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` + NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + VpcId string `json:"VpcId" xml:"VpcId"` + Cidr string `json:"Cidr" xml:"Cidr"` + VpdId string `json:"VpdId" xml:"VpdId"` + ReceptionInstanceOwner string `json:"ReceptionInstanceOwner" xml:"ReceptionInstanceOwner"` + VccRouteEntryId string `json:"VccRouteEntryId" xml:"VccRouteEntryId"` + Value string `json:"Value" xml:"Value"` + ErName string `json:"ErName" xml:"ErName"` + AutoReceiveAllRoute bool `json:"AutoReceiveAllRoute" xml:"AutoReceiveAllRoute"` + ErRouteMapId string `json:"ErRouteMapId" xml:"ErRouteMapId"` + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + PortType string `json:"PortType" xml:"PortType"` + BgpAsn string `json:"BgpAsn" xml:"BgpAsn"` + NodeId string `json:"NodeId" xml:"NodeId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + SubnetName string `json:"SubnetName" xml:"SubnetName"` + ResourceTenantId string `json:"ResourceTenantId" xml:"ResourceTenantId"` + Description string `json:"Description" xml:"Description"` + Connections int64 `json:"Connections" xml:"Connections"` + Product string `json:"Product" xml:"Product"` + VpdRouteEntryId string `json:"VpdRouteEntryId" xml:"VpdRouteEntryId"` + Dependence map[string]interface{} `json:"Dependence" xml:"Dependence"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + BgpCidr string `json:"BgpCidr" xml:"BgpCidr"` + BandwidthStr string `json:"BandwidthStr" xml:"BandwidthStr"` + TransmissionInstanceName string `json:"TransmissionInstanceName" xml:"TransmissionInstanceName"` + VccId string `json:"VccId" xml:"VccId"` + RouteType string `json:"RouteType" xml:"RouteType"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` SecondaryCidrBlocks []string `json:"SecondaryCidrBlocks" xml:"SecondaryCidrBlocks"` Ethernet []string `json:"Ethernet" xml:"Ethernet"` VpdBaseInfo VpdBaseInfo `json:"VpdBaseInfo" xml:"VpdBaseInfo"` diff --git a/services/eflo/struct_ipv6_addresse.go b/services/eflo/struct_ipv6_addresse.go new file mode 100644 index 0000000000..f73af8f9f8 --- /dev/null +++ b/services/eflo/struct_ipv6_addresse.go @@ -0,0 +1,29 @@ +package eflo + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6Addresse is a nested struct in eflo response +type Ipv6Addresse struct { + ElasticNetworkInterfaceId string `json:"ElasticNetworkInterfaceId" xml:"ElasticNetworkInterfaceId"` + IpName string `json:"IpName" xml:"IpName"` + Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + Message string `json:"Message" xml:"Message"` + RegionId string `json:"RegionId" xml:"RegionId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` +} diff --git a/services/eflo/struct_ipv6_addresses.go b/services/eflo/struct_ipv6_addresses.go new file mode 100644 index 0000000000..4fe9637164 --- /dev/null +++ b/services/eflo/struct_ipv6_addresses.go @@ -0,0 +1,21 @@ +package eflo + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6Addresses is a nested struct in eflo response +type Ipv6Addresses struct { + Ipv6Addresse []Ipv6Addresse `json:"Ipv6Addresse" xml:"Ipv6Addresse"` +}