| 1 |
package common |
| 2 |
|
| 3 |
type InternetChargeType string |
| 4 |
|
| 5 |
const ( |
| 6 |
PayByBandwidth = InternetChargeType("PayByBandwidth") |
| 7 |
PayByTraffic = InternetChargeType("PayByTraffic") |
| 8 |
) |
| 9 |
|
| 10 |
type InstanceChargeType string |
| 11 |
|
| 12 |
const ( |
| 13 |
PrePaid = InstanceChargeType("PrePaid") |
| 14 |
PostPaid = InstanceChargeType("PostPaid") |
| 15 |
) |
| 16 |
|
| 17 |
type DescribeEndpointArgs struct { |
| 18 |
Id Region |
| 19 |
ServiceCode string |
| 20 |
Type string |
| 21 |
} |
| 22 |
|
| 23 |
type EndpointItem struct { |
| 24 |
Protocols struct { |
| 25 |
Protocols []string |
| 26 |
} |
| 27 |
Type string |
| 28 |
Namespace string |
| 29 |
Id Region |
| 30 |
SerivceCode string |
| 31 |
Endpoint string |
| 32 |
} |
| 33 |
|
| 34 |
type DescribeEndpointResponse struct { |
| 35 |
Response |
| 36 |
EndpointItem |
| 37 |
} |
| 38 |
|
| 39 |
type DescribeEndpointsArgs struct { |
| 40 |
Id Region |
| 41 |
ServiceCode string |
| 42 |
Type string |
| 43 |
} |
| 44 |
|
| 45 |
type DescribeEndpointsResponse struct { |
| 46 |
Response |
| 47 |
Endpoints APIEndpoints |
| 48 |
RequestId string |
| 49 |
Success bool |
| 50 |
} |
| 51 |
|
| 52 |
type APIEndpoints struct { |
| 53 |
Endpoint []EndpointItem |
| 54 |
} |
| 55 |
|
| 56 |
type NetType string |
| 57 |
|
| 58 |
const ( |
| 59 |
Internet = NetType("Internet") |
| 60 |
Intranet = NetType("Intranet") |
| 61 |
) |
| 62 |
|
| 63 |
type TimeType string |
| 64 |
|
| 65 |
const ( |
| 66 |
Hour = TimeType("Hour") |
| 67 |
Day = TimeType("Day") |
| 68 |
Week = TimeType("Week") |
| 69 |
Month = TimeType("Month") |
| 70 |
Year = TimeType("Year") |
| 71 |
) |
| 72 |
|
| 73 |
type NetworkType string |
| 74 |
|
| 75 |
const ( |
| 76 |
Classic = NetworkType("Classic") |
| 77 |
VPC = NetworkType("VPC") |
| 78 |
) |
| 79 |
|
| 80 |
type BusinessInfo struct { |
| 81 |
Pack string `json:"pack,omitempty"` |
| 82 |
ActivityId string `json:"activityId,omitempty"` |
| 83 |
} |
| 84 |
|
| 85 |
|
| 86 |
type Endpoints struct { |
| 87 |
Endpoint []Endpoint `xml:"Endpoint"` |
| 88 |
} |
| 89 |
|
| 90 |
type Endpoint struct { |
| 91 |
Name string `xml:"name,attr"` |
| 92 |
RegionIds RegionIds `xml:"RegionIds"` |
| 93 |
Products Products `xml:"Products"` |
| 94 |
} |
| 95 |
|
| 96 |
type RegionIds struct { |
| 97 |
RegionId string `xml:"RegionId"` |
| 98 |
} |
| 99 |
|
| 100 |
type Products struct { |
| 101 |
Product []Product `xml:"Product"` |
| 102 |
} |
| 103 |
|
| 104 |
type Product struct { |
| 105 |
ProductName string `xml:"ProductName"` |
| 106 |
DomainName string `xml:"DomainName"` |
| 107 |
} |