From 465ba4d8738a054cd6fc1a0574a4da30500757a7 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 5 Sep 2024 09:56:49 +0000 Subject: [PATCH] Generated 2016-08-08 for Biz-ipdb. --- ChangeLog.txt | 4 + services/biz-ipdb/add_ip_policy.go | 102 ++++++++++++++++ services/biz-ipdb/add_location_attribute.go | 103 ++++++++++++++++ services/biz-ipdb/allocate_ip_segment.go | 105 ++++++++++++++++ services/biz-ipdb/client.go | 104 ++++++++++++++++ services/biz-ipdb/create_biz_line.go | 103 ++++++++++++++++ services/biz-ipdb/create_ip_segment.go | 111 +++++++++++++++++ services/biz-ipdb/create_ip_type.go | 107 ++++++++++++++++ services/biz-ipdb/delete_ip_policy.go | 99 +++++++++++++++ services/biz-ipdb/describe_biz_lines.go | 101 +++++++++++++++ services/biz-ipdb/describe_ip_segments.go | 107 ++++++++++++++++ services/biz-ipdb/describe_ip_types.go | 101 +++++++++++++++ .../biz-ipdb/detail_location_attribute.go | 101 +++++++++++++++ services/biz-ipdb/detail_net_cluster.go | 109 +++++++++++++++++ services/biz-ipdb/find_ip_attribute.go | 115 ++++++++++++++++++ services/biz-ipdb/find_ip_info.go | 114 +++++++++++++++++ services/biz-ipdb/list_location_tree.go | 101 +++++++++++++++ services/biz-ipdb/map_ip_segment.go | 103 ++++++++++++++++ services/biz-ipdb/query_ip_policy.go | 100 +++++++++++++++ .../biz-ipdb/query_ip_segment_by_node_type.go | 109 +++++++++++++++++ .../biz-ipdb/query_pre_mapping_ip_segments.go | 109 +++++++++++++++++ services/biz-ipdb/struct_attribute.go | 28 +++++ services/biz-ipdb/struct_attributes.go | 21 ++++ services/biz-ipdb/struct_biz_line.go | 24 ++++ services/biz-ipdb/struct_biz_line_set.go | 21 ++++ services/biz-ipdb/struct_ip_policies.go | 21 ++++ services/biz-ipdb/struct_ip_policy.go | 25 ++++ services/biz-ipdb/struct_ip_segment.go | 46 +++++++ services/biz-ipdb/struct_ip_segment_set.go | 21 ++++ ...uct_ip_segments_in_describe_ip_segments.go | 21 ++++ ...gments_in_query_ip_segment_by_node_type.go | 21 ++++ services/biz-ipdb/struct_ip_type.go | 27 ++++ services/biz-ipdb/struct_ip_type_set.go | 21 ++++ services/biz-ipdb/struct_location.go | 26 ++++ services/biz-ipdb/struct_locations.go | 21 ++++ 35 files changed, 2452 insertions(+) create mode 100644 services/biz-ipdb/add_ip_policy.go create mode 100644 services/biz-ipdb/add_location_attribute.go create mode 100644 services/biz-ipdb/allocate_ip_segment.go create mode 100644 services/biz-ipdb/client.go create mode 100644 services/biz-ipdb/create_biz_line.go create mode 100644 services/biz-ipdb/create_ip_segment.go create mode 100644 services/biz-ipdb/create_ip_type.go create mode 100644 services/biz-ipdb/delete_ip_policy.go create mode 100644 services/biz-ipdb/describe_biz_lines.go create mode 100644 services/biz-ipdb/describe_ip_segments.go create mode 100644 services/biz-ipdb/describe_ip_types.go create mode 100644 services/biz-ipdb/detail_location_attribute.go create mode 100644 services/biz-ipdb/detail_net_cluster.go create mode 100644 services/biz-ipdb/find_ip_attribute.go create mode 100644 services/biz-ipdb/find_ip_info.go create mode 100644 services/biz-ipdb/list_location_tree.go create mode 100644 services/biz-ipdb/map_ip_segment.go create mode 100644 services/biz-ipdb/query_ip_policy.go create mode 100644 services/biz-ipdb/query_ip_segment_by_node_type.go create mode 100644 services/biz-ipdb/query_pre_mapping_ip_segments.go create mode 100644 services/biz-ipdb/struct_attribute.go create mode 100644 services/biz-ipdb/struct_attributes.go create mode 100644 services/biz-ipdb/struct_biz_line.go create mode 100644 services/biz-ipdb/struct_biz_line_set.go create mode 100644 services/biz-ipdb/struct_ip_policies.go create mode 100644 services/biz-ipdb/struct_ip_policy.go create mode 100644 services/biz-ipdb/struct_ip_segment.go create mode 100644 services/biz-ipdb/struct_ip_segment_set.go create mode 100644 services/biz-ipdb/struct_ip_segments_in_describe_ip_segments.go create mode 100644 services/biz-ipdb/struct_ip_segments_in_query_ip_segment_by_node_type.go create mode 100644 services/biz-ipdb/struct_ip_type.go create mode 100644 services/biz-ipdb/struct_ip_type_set.go create mode 100644 services/biz-ipdb/struct_location.go create mode 100644 services/biz-ipdb/struct_locations.go diff --git a/ChangeLog.txt b/ChangeLog.txt index b9a0c18c05..44c2e7c021 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-09-05 Version: v1.63.13 +- Generated 2016-08-08 for `Biz-ipdb`. +undefined + 2024-09-04 Version: v1.63.12 - Generated 2023-06-21 for `PaiFeatureStore`. - Add RealTimePartitionCountValue in ExportTranSetTable API. diff --git a/services/biz-ipdb/add_ip_policy.go b/services/biz-ipdb/add_ip_policy.go new file mode 100644 index 0000000000..a6381e0500 --- /dev/null +++ b/services/biz-ipdb/add_ip_policy.go @@ -0,0 +1,102 @@ +package biz_ipdb + +//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" +) + +// AddIpPolicy invokes the biz_ipdb.AddIpPolicy API synchronously +func (client *Client) AddIpPolicy(request *AddIpPolicyRequest) (response *AddIpPolicyResponse, err error) { + response = CreateAddIpPolicyResponse() + err = client.DoAction(request, response) + return +} + +// AddIpPolicyWithChan invokes the biz_ipdb.AddIpPolicy API asynchronously +func (client *Client) AddIpPolicyWithChan(request *AddIpPolicyRequest) (<-chan *AddIpPolicyResponse, <-chan error) { + responseChan := make(chan *AddIpPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddIpPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddIpPolicyWithCallback invokes the biz_ipdb.AddIpPolicy API asynchronously +func (client *Client) AddIpPolicyWithCallback(request *AddIpPolicyRequest, callback func(response *AddIpPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddIpPolicyResponse + var err error + defer close(result) + response, err = client.AddIpPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddIpPolicyRequest is the request struct for api AddIpPolicy +type AddIpPolicyRequest struct { + *requests.RpcRequest + PairValue string `position:"Query" name:"PairValue"` + ActionTag requests.Integer `position:"Query" name:"ActionTag"` + Description string `position:"Query" name:"Description"` + Value string `position:"Query" name:"Value"` +} + +// AddIpPolicyResponse is the response struct for api AddIpPolicy +type AddIpPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddIpPolicyRequest creates a request to invoke AddIpPolicy API +func CreateAddIpPolicyRequest() (request *AddIpPolicyRequest) { + request = &AddIpPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "AddIpPolicy", "", "") + request.Method = requests.POST + return +} + +// CreateAddIpPolicyResponse creates a response to parse from AddIpPolicy response +func CreateAddIpPolicyResponse() (response *AddIpPolicyResponse) { + response = &AddIpPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/add_location_attribute.go b/services/biz-ipdb/add_location_attribute.go new file mode 100644 index 0000000000..31b2492751 --- /dev/null +++ b/services/biz-ipdb/add_location_attribute.go @@ -0,0 +1,103 @@ +package biz_ipdb + +//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" +) + +// AddLocationAttribute invokes the biz_ipdb.AddLocationAttribute API synchronously +func (client *Client) AddLocationAttribute(request *AddLocationAttributeRequest) (response *AddLocationAttributeResponse, err error) { + response = CreateAddLocationAttributeResponse() + err = client.DoAction(request, response) + return +} + +// AddLocationAttributeWithChan invokes the biz_ipdb.AddLocationAttribute API asynchronously +func (client *Client) AddLocationAttributeWithChan(request *AddLocationAttributeRequest) (<-chan *AddLocationAttributeResponse, <-chan error) { + responseChan := make(chan *AddLocationAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLocationAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLocationAttributeWithCallback invokes the biz_ipdb.AddLocationAttribute API asynchronously +func (client *Client) AddLocationAttributeWithCallback(request *AddLocationAttributeRequest, callback func(response *AddLocationAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLocationAttributeResponse + var err error + defer close(result) + response, err = client.AddLocationAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLocationAttributeRequest is the request struct for api AddLocationAttribute +type AddLocationAttributeRequest struct { + *requests.RpcRequest + LocationNo string `position:"Query" name:"LocationNo"` + LocationType string `position:"Query" name:"LocationType"` + Value string `position:"Query" name:"Value"` + BizLine string `position:"Query" name:"BizLine"` + Key string `position:"Query" name:"Key"` +} + +// AddLocationAttributeResponse is the response struct for api AddLocationAttribute +type AddLocationAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLocationAttributeRequest creates a request to invoke AddLocationAttribute API +func CreateAddLocationAttributeRequest() (request *AddLocationAttributeRequest) { + request = &AddLocationAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "AddLocationAttribute", "", "") + request.Method = requests.POST + return +} + +// CreateAddLocationAttributeResponse creates a response to parse from AddLocationAttribute response +func CreateAddLocationAttributeResponse() (response *AddLocationAttributeResponse) { + response = &AddLocationAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/allocate_ip_segment.go b/services/biz-ipdb/allocate_ip_segment.go new file mode 100644 index 0000000000..e79719d940 --- /dev/null +++ b/services/biz-ipdb/allocate_ip_segment.go @@ -0,0 +1,105 @@ +package biz_ipdb + +//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" +) + +// AllocateIpSegment invokes the biz_ipdb.AllocateIpSegment API synchronously +func (client *Client) AllocateIpSegment(request *AllocateIpSegmentRequest) (response *AllocateIpSegmentResponse, err error) { + response = CreateAllocateIpSegmentResponse() + err = client.DoAction(request, response) + return +} + +// AllocateIpSegmentWithChan invokes the biz_ipdb.AllocateIpSegment API asynchronously +func (client *Client) AllocateIpSegmentWithChan(request *AllocateIpSegmentRequest) (<-chan *AllocateIpSegmentResponse, <-chan error) { + responseChan := make(chan *AllocateIpSegmentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocateIpSegment(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocateIpSegmentWithCallback invokes the biz_ipdb.AllocateIpSegment API asynchronously +func (client *Client) AllocateIpSegmentWithCallback(request *AllocateIpSegmentRequest, callback func(response *AllocateIpSegmentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocateIpSegmentResponse + var err error + defer close(result) + response, err = client.AllocateIpSegment(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocateIpSegmentRequest is the request struct for api AllocateIpSegment +type AllocateIpSegmentRequest struct { + *requests.RpcRequest + LocationNo string `position:"Query" name:"LocationNo"` + Submitter string `position:"Query" name:"Submitter"` + Segment string `position:"Query" name:"Segment"` + LocationType string `position:"Query" name:"LocationType"` + IpType string `position:"Query" name:"IpType"` + BizLine string `position:"Query" name:"BizLine"` +} + +// AllocateIpSegmentResponse is the response struct for api AllocateIpSegment +type AllocateIpSegmentResponse struct { + *responses.BaseResponse + Id int64 `json:"Id" xml:"Id"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAllocateIpSegmentRequest creates a request to invoke AllocateIpSegment API +func CreateAllocateIpSegmentRequest() (request *AllocateIpSegmentRequest) { + request = &AllocateIpSegmentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "AllocateIpSegment", "", "") + request.Method = requests.POST + return +} + +// CreateAllocateIpSegmentResponse creates a response to parse from AllocateIpSegment response +func CreateAllocateIpSegmentResponse() (response *AllocateIpSegmentResponse) { + response = &AllocateIpSegmentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/client.go b/services/biz-ipdb/client.go new file mode 100644 index 0000000000..ddf6d55a9a --- /dev/null +++ b/services/biz-ipdb/client.go @@ -0,0 +1,104 @@ +package biz_ipdb + +//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" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" +) + +// Client is the sdk client struct, each func corresponds to an OpenAPI +type Client struct { + sdk.Client +} + +// NewClient creates a sdk client with environment variables +func NewClient() (client *Client, err error) { + client = &Client{} + err = client.Init() + return +} + +// NewClientWithProvider creates a sdk client with providers +// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md +func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { + client = &Client{} + var pc provider.Provider + if len(providers) == 0 { + pc = provider.DefaultChain + } else { + pc = provider.NewProviderChain(providers) + } + err = client.InitWithProviderChain(regionId, pc) + return +} + +// NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential +// this is the common api to create a sdk client +func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) { + client = &Client{} + err = client.InitWithOptions(regionId, config, credential) + return +} + +// NewClientWithAccessKey is a shortcut to create sdk client with accesskey +// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md +func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { + client = &Client{} + err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + return +} + +// NewClientWithStsToken is a shortcut to create sdk client with sts token +// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md +func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { + client = &Client{} + err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn +// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md +func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + return +} + +// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy +// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md +func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { + client = &Client{} + err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) + return +} + +// NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role +// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md +func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { + client = &Client{} + err = client.InitWithEcsRamRole(regionId, roleName) + return +} + +// NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair +// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md +func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { + client = &Client{} + err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + return +} diff --git a/services/biz-ipdb/create_biz_line.go b/services/biz-ipdb/create_biz_line.go new file mode 100644 index 0000000000..853f876c42 --- /dev/null +++ b/services/biz-ipdb/create_biz_line.go @@ -0,0 +1,103 @@ +package biz_ipdb + +//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" +) + +// CreateBizLine invokes the biz_ipdb.CreateBizLine API synchronously +func (client *Client) CreateBizLine(request *CreateBizLineRequest) (response *CreateBizLineResponse, err error) { + response = CreateCreateBizLineResponse() + err = client.DoAction(request, response) + return +} + +// CreateBizLineWithChan invokes the biz_ipdb.CreateBizLine API asynchronously +func (client *Client) CreateBizLineWithChan(request *CreateBizLineRequest) (<-chan *CreateBizLineResponse, <-chan error) { + responseChan := make(chan *CreateBizLineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateBizLine(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateBizLineWithCallback invokes the biz_ipdb.CreateBizLine API asynchronously +func (client *Client) CreateBizLineWithCallback(request *CreateBizLineRequest, callback func(response *CreateBizLineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateBizLineResponse + var err error + defer close(result) + response, err = client.CreateBizLine(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateBizLineRequest is the request struct for api CreateBizLine +type CreateBizLineRequest struct { + *requests.RpcRequest + Partner requests.Boolean `position:"Query" name:"Partner"` + CnName string `position:"Query" name:"CnName"` + BizLine string `position:"Query" name:"BizLine"` + EnName string `position:"Query" name:"EnName"` +} + +// CreateBizLineResponse is the response struct for api CreateBizLine +type CreateBizLineResponse struct { + *responses.BaseResponse + Id int64 `json:"Id" xml:"Id"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateBizLineRequest creates a request to invoke CreateBizLine API +func CreateCreateBizLineRequest() (request *CreateBizLineRequest) { + request = &CreateBizLineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "CreateBizLine", "", "") + request.Method = requests.POST + return +} + +// CreateCreateBizLineResponse creates a response to parse from CreateBizLine response +func CreateCreateBizLineResponse() (response *CreateBizLineResponse) { + response = &CreateBizLineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/create_ip_segment.go b/services/biz-ipdb/create_ip_segment.go new file mode 100644 index 0000000000..f93394f07b --- /dev/null +++ b/services/biz-ipdb/create_ip_segment.go @@ -0,0 +1,111 @@ +package biz_ipdb + +//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" +) + +// CreateIpSegment invokes the biz_ipdb.CreateIpSegment API synchronously +func (client *Client) CreateIpSegment(request *CreateIpSegmentRequest) (response *CreateIpSegmentResponse, err error) { + response = CreateCreateIpSegmentResponse() + err = client.DoAction(request, response) + return +} + +// CreateIpSegmentWithChan invokes the biz_ipdb.CreateIpSegment API asynchronously +func (client *Client) CreateIpSegmentWithChan(request *CreateIpSegmentRequest) (<-chan *CreateIpSegmentResponse, <-chan error) { + responseChan := make(chan *CreateIpSegmentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateIpSegment(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateIpSegmentWithCallback invokes the biz_ipdb.CreateIpSegment API asynchronously +func (client *Client) CreateIpSegmentWithCallback(request *CreateIpSegmentRequest, callback func(response *CreateIpSegmentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateIpSegmentResponse + var err error + defer close(result) + response, err = client.CreateIpSegment(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateIpSegmentRequest is the request struct for api CreateIpSegment +type CreateIpSegmentRequest struct { + *requests.RpcRequest + Cluster string `position:"Query" name:"Cluster"` + Pod string `position:"Query" name:"Pod"` + Description string `position:"Query" name:"Description"` + IpType string `position:"Query" name:"IpType"` + House string `position:"Query" name:"House"` + ThirdParty requests.Boolean `position:"Query" name:"ThirdParty"` + Vlan string `position:"Query" name:"Vlan"` + LocationId string `position:"Query" name:"LocationId"` + Force requests.Boolean `position:"Query" name:"Force"` + Id requests.Integer `position:"Query" name:"Id"` + Value string `position:"Query" name:"Value"` + BizLine string `position:"Query" name:"BizLine"` +} + +// CreateIpSegmentResponse is the response struct for api CreateIpSegment +type CreateIpSegmentResponse struct { + *responses.BaseResponse + Id int64 `json:"Id" xml:"Id"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateIpSegmentRequest creates a request to invoke CreateIpSegment API +func CreateCreateIpSegmentRequest() (request *CreateIpSegmentRequest) { + request = &CreateIpSegmentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "CreateIpSegment", "", "") + request.Method = requests.POST + return +} + +// CreateCreateIpSegmentResponse creates a response to parse from CreateIpSegment response +func CreateCreateIpSegmentResponse() (response *CreateIpSegmentResponse) { + response = &CreateIpSegmentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/create_ip_type.go b/services/biz-ipdb/create_ip_type.go new file mode 100644 index 0000000000..de238199e3 --- /dev/null +++ b/services/biz-ipdb/create_ip_type.go @@ -0,0 +1,107 @@ +package biz_ipdb + +//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" +) + +// CreateIpType invokes the biz_ipdb.CreateIpType API synchronously +func (client *Client) CreateIpType(request *CreateIpTypeRequest) (response *CreateIpTypeResponse, err error) { + response = CreateCreateIpTypeResponse() + err = client.DoAction(request, response) + return +} + +// CreateIpTypeWithChan invokes the biz_ipdb.CreateIpType API asynchronously +func (client *Client) CreateIpTypeWithChan(request *CreateIpTypeRequest) (<-chan *CreateIpTypeResponse, <-chan error) { + responseChan := make(chan *CreateIpTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateIpType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateIpTypeWithCallback invokes the biz_ipdb.CreateIpType API asynchronously +func (client *Client) CreateIpTypeWithCallback(request *CreateIpTypeRequest, callback func(response *CreateIpTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateIpTypeResponse + var err error + defer close(result) + response, err = client.CreateIpType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateIpTypeRequest is the request struct for api CreateIpType +type CreateIpTypeRequest struct { + *requests.RpcRequest + NetIpType string `position:"Query" name:"NetIpType"` + NodeType string `position:"Query" name:"NodeType"` + IpPublic requests.Boolean `position:"Query" name:"IpPublic"` + CheckPod requests.Boolean `position:"Query" name:"CheckPod"` + Description string `position:"Query" name:"Description"` + IpType string `position:"Query" name:"IpType"` + SysOwner string `position:"Query" name:"SysOwner"` + BizLine string `position:"Query" name:"BizLine"` +} + +// CreateIpTypeResponse is the response struct for api CreateIpType +type CreateIpTypeResponse struct { + *responses.BaseResponse + Id int64 `json:"Id" xml:"Id"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateIpTypeRequest creates a request to invoke CreateIpType API +func CreateCreateIpTypeRequest() (request *CreateIpTypeRequest) { + request = &CreateIpTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "CreateIpType", "", "") + request.Method = requests.POST + return +} + +// CreateCreateIpTypeResponse creates a response to parse from CreateIpType response +func CreateCreateIpTypeResponse() (response *CreateIpTypeResponse) { + response = &CreateIpTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/delete_ip_policy.go b/services/biz-ipdb/delete_ip_policy.go new file mode 100644 index 0000000000..5944879949 --- /dev/null +++ b/services/biz-ipdb/delete_ip_policy.go @@ -0,0 +1,99 @@ +package biz_ipdb + +//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" +) + +// DeleteIpPolicy invokes the biz_ipdb.DeleteIpPolicy API synchronously +func (client *Client) DeleteIpPolicy(request *DeleteIpPolicyRequest) (response *DeleteIpPolicyResponse, err error) { + response = CreateDeleteIpPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DeleteIpPolicyWithChan invokes the biz_ipdb.DeleteIpPolicy API asynchronously +func (client *Client) DeleteIpPolicyWithChan(request *DeleteIpPolicyRequest) (<-chan *DeleteIpPolicyResponse, <-chan error) { + responseChan := make(chan *DeleteIpPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteIpPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteIpPolicyWithCallback invokes the biz_ipdb.DeleteIpPolicy API asynchronously +func (client *Client) DeleteIpPolicyWithCallback(request *DeleteIpPolicyRequest, callback func(response *DeleteIpPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteIpPolicyResponse + var err error + defer close(result) + response, err = client.DeleteIpPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteIpPolicyRequest is the request struct for api DeleteIpPolicy +type DeleteIpPolicyRequest struct { + *requests.RpcRequest + PolicyId requests.Integer `position:"Query" name:"PolicyId"` +} + +// DeleteIpPolicyResponse is the response struct for api DeleteIpPolicy +type DeleteIpPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteIpPolicyRequest creates a request to invoke DeleteIpPolicy API +func CreateDeleteIpPolicyRequest() (request *DeleteIpPolicyRequest) { + request = &DeleteIpPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "DeleteIpPolicy", "", "") + request.Method = requests.POST + return +} + +// CreateDeleteIpPolicyResponse creates a response to parse from DeleteIpPolicy response +func CreateDeleteIpPolicyResponse() (response *DeleteIpPolicyResponse) { + response = &DeleteIpPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/describe_biz_lines.go b/services/biz-ipdb/describe_biz_lines.go new file mode 100644 index 0000000000..38c87eeaab --- /dev/null +++ b/services/biz-ipdb/describe_biz_lines.go @@ -0,0 +1,101 @@ +package biz_ipdb + +//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" +) + +// DescribeBizLines invokes the biz_ipdb.DescribeBizLines API synchronously +func (client *Client) DescribeBizLines(request *DescribeBizLinesRequest) (response *DescribeBizLinesResponse, err error) { + response = CreateDescribeBizLinesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeBizLinesWithChan invokes the biz_ipdb.DescribeBizLines API asynchronously +func (client *Client) DescribeBizLinesWithChan(request *DescribeBizLinesRequest) (<-chan *DescribeBizLinesResponse, <-chan error) { + responseChan := make(chan *DescribeBizLinesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeBizLines(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeBizLinesWithCallback invokes the biz_ipdb.DescribeBizLines API asynchronously +func (client *Client) DescribeBizLinesWithCallback(request *DescribeBizLinesRequest, callback func(response *DescribeBizLinesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeBizLinesResponse + var err error + defer close(result) + response, err = client.DescribeBizLines(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeBizLinesRequest is the request struct for api DescribeBizLines +type DescribeBizLinesRequest struct { + *requests.RpcRequest + BizLine string `position:"Query" name:"BizLine"` +} + +// DescribeBizLinesResponse is the response struct for api DescribeBizLines +type DescribeBizLinesResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + BizLineSet BizLineSet `json:"BizLineSet" xml:"BizLineSet"` +} + +// CreateDescribeBizLinesRequest creates a request to invoke DescribeBizLines API +func CreateDescribeBizLinesRequest() (request *DescribeBizLinesRequest) { + request = &DescribeBizLinesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "DescribeBizLines", "", "") + request.Method = requests.POST + return +} + +// CreateDescribeBizLinesResponse creates a response to parse from DescribeBizLines response +func CreateDescribeBizLinesResponse() (response *DescribeBizLinesResponse) { + response = &DescribeBizLinesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/describe_ip_segments.go b/services/biz-ipdb/describe_ip_segments.go new file mode 100644 index 0000000000..213da3e241 --- /dev/null +++ b/services/biz-ipdb/describe_ip_segments.go @@ -0,0 +1,107 @@ +package biz_ipdb + +//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" +) + +// DescribeIpSegments invokes the biz_ipdb.DescribeIpSegments API synchronously +func (client *Client) DescribeIpSegments(request *DescribeIpSegmentsRequest) (response *DescribeIpSegmentsResponse, err error) { + response = CreateDescribeIpSegmentsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpSegmentsWithChan invokes the biz_ipdb.DescribeIpSegments API asynchronously +func (client *Client) DescribeIpSegmentsWithChan(request *DescribeIpSegmentsRequest) (<-chan *DescribeIpSegmentsResponse, <-chan error) { + responseChan := make(chan *DescribeIpSegmentsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpSegments(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpSegmentsWithCallback invokes the biz_ipdb.DescribeIpSegments API asynchronously +func (client *Client) DescribeIpSegmentsWithCallback(request *DescribeIpSegmentsRequest, callback func(response *DescribeIpSegmentsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpSegmentsResponse + var err error + defer close(result) + response, err = client.DescribeIpSegments(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpSegmentsRequest is the request struct for api DescribeIpSegments +type DescribeIpSegmentsRequest struct { + *requests.RpcRequest + PageSize string `position:"Query" name:"PageSize"` + BizLine string `position:"Query" name:"BizLine"` + PageNumber string `position:"Query" name:"PageNumber"` + NetworkScope string `position:"Query" name:"NetworkScope"` + RegionNo string `position:"Query" name:"RegionNo"` +} + +// DescribeIpSegmentsResponse is the response struct for api DescribeIpSegments +type DescribeIpSegmentsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + IpSegments IpSegmentsInDescribeIpSegments `json:"IpSegments" xml:"IpSegments"` +} + +// CreateDescribeIpSegmentsRequest creates a request to invoke DescribeIpSegments API +func CreateDescribeIpSegmentsRequest() (request *DescribeIpSegmentsRequest) { + request = &DescribeIpSegmentsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "DescribeIpSegments", "", "") + request.Method = requests.POST + return +} + +// CreateDescribeIpSegmentsResponse creates a response to parse from DescribeIpSegments response +func CreateDescribeIpSegmentsResponse() (response *DescribeIpSegmentsResponse) { + response = &DescribeIpSegmentsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/describe_ip_types.go b/services/biz-ipdb/describe_ip_types.go new file mode 100644 index 0000000000..eddf93aa06 --- /dev/null +++ b/services/biz-ipdb/describe_ip_types.go @@ -0,0 +1,101 @@ +package biz_ipdb + +//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" +) + +// DescribeIpTypes invokes the biz_ipdb.DescribeIpTypes API synchronously +func (client *Client) DescribeIpTypes(request *DescribeIpTypesRequest) (response *DescribeIpTypesResponse, err error) { + response = CreateDescribeIpTypesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeIpTypesWithChan invokes the biz_ipdb.DescribeIpTypes API asynchronously +func (client *Client) DescribeIpTypesWithChan(request *DescribeIpTypesRequest) (<-chan *DescribeIpTypesResponse, <-chan error) { + responseChan := make(chan *DescribeIpTypesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeIpTypes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeIpTypesWithCallback invokes the biz_ipdb.DescribeIpTypes API asynchronously +func (client *Client) DescribeIpTypesWithCallback(request *DescribeIpTypesRequest, callback func(response *DescribeIpTypesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeIpTypesResponse + var err error + defer close(result) + response, err = client.DescribeIpTypes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeIpTypesRequest is the request struct for api DescribeIpTypes +type DescribeIpTypesRequest struct { + *requests.RpcRequest + BizLine string `position:"Query" name:"BizLine"` +} + +// DescribeIpTypesResponse is the response struct for api DescribeIpTypes +type DescribeIpTypesResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + IpTypeSet IpTypeSet `json:"IpTypeSet" xml:"IpTypeSet"` +} + +// CreateDescribeIpTypesRequest creates a request to invoke DescribeIpTypes API +func CreateDescribeIpTypesRequest() (request *DescribeIpTypesRequest) { + request = &DescribeIpTypesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "DescribeIpTypes", "", "") + request.Method = requests.POST + return +} + +// CreateDescribeIpTypesResponse creates a response to parse from DescribeIpTypes response +func CreateDescribeIpTypesResponse() (response *DescribeIpTypesResponse) { + response = &DescribeIpTypesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/detail_location_attribute.go b/services/biz-ipdb/detail_location_attribute.go new file mode 100644 index 0000000000..a5f496ff7e --- /dev/null +++ b/services/biz-ipdb/detail_location_attribute.go @@ -0,0 +1,101 @@ +package biz_ipdb + +//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" +) + +// DetailLocationAttribute invokes the biz_ipdb.DetailLocationAttribute API synchronously +func (client *Client) DetailLocationAttribute(request *DetailLocationAttributeRequest) (response *DetailLocationAttributeResponse, err error) { + response = CreateDetailLocationAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DetailLocationAttributeWithChan invokes the biz_ipdb.DetailLocationAttribute API asynchronously +func (client *Client) DetailLocationAttributeWithChan(request *DetailLocationAttributeRequest) (<-chan *DetailLocationAttributeResponse, <-chan error) { + responseChan := make(chan *DetailLocationAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetailLocationAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetailLocationAttributeWithCallback invokes the biz_ipdb.DetailLocationAttribute API asynchronously +func (client *Client) DetailLocationAttributeWithCallback(request *DetailLocationAttributeRequest, callback func(response *DetailLocationAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetailLocationAttributeResponse + var err error + defer close(result) + response, err = client.DetailLocationAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetailLocationAttributeRequest is the request struct for api DetailLocationAttribute +type DetailLocationAttributeRequest struct { + *requests.RpcRequest + LocationId requests.Integer `position:"Query" name:"LocationId"` +} + +// DetailLocationAttributeResponse is the response struct for api DetailLocationAttribute +type DetailLocationAttributeResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Attributes Attributes `json:"Attributes" xml:"Attributes"` +} + +// CreateDetailLocationAttributeRequest creates a request to invoke DetailLocationAttribute API +func CreateDetailLocationAttributeRequest() (request *DetailLocationAttributeRequest) { + request = &DetailLocationAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "DetailLocationAttribute", "", "") + request.Method = requests.POST + return +} + +// CreateDetailLocationAttributeResponse creates a response to parse from DetailLocationAttribute response +func CreateDetailLocationAttributeResponse() (response *DetailLocationAttributeResponse) { + response = &DetailLocationAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/detail_net_cluster.go b/services/biz-ipdb/detail_net_cluster.go new file mode 100644 index 0000000000..59daf94a96 --- /dev/null +++ b/services/biz-ipdb/detail_net_cluster.go @@ -0,0 +1,109 @@ +package biz_ipdb + +//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" +) + +// DetailNetCluster invokes the biz_ipdb.DetailNetCluster API synchronously +func (client *Client) DetailNetCluster(request *DetailNetClusterRequest) (response *DetailNetClusterResponse, err error) { + response = CreateDetailNetClusterResponse() + err = client.DoAction(request, response) + return +} + +// DetailNetClusterWithChan invokes the biz_ipdb.DetailNetCluster API asynchronously +func (client *Client) DetailNetClusterWithChan(request *DetailNetClusterRequest) (<-chan *DetailNetClusterResponse, <-chan error) { + responseChan := make(chan *DetailNetClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetailNetCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetailNetClusterWithCallback invokes the biz_ipdb.DetailNetCluster API asynchronously +func (client *Client) DetailNetClusterWithCallback(request *DetailNetClusterRequest, callback func(response *DetailNetClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetailNetClusterResponse + var err error + defer close(result) + response, err = client.DetailNetCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetailNetClusterRequest is the request struct for api DetailNetCluster +type DetailNetClusterRequest struct { + *requests.RpcRequest + LocationNo string `position:"Query" name:"LocationNo"` + LocationId requests.Integer `position:"Query" name:"LocationId"` + LocationType string `position:"Query" name:"LocationType"` + BizLine string `position:"Query" name:"BizLine"` +} + +// DetailNetClusterResponse is the response struct for api DetailNetCluster +type DetailNetClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LocationType string `json:"LocationType" xml:"LocationType"` + BizLine string `json:"BizLine" xml:"BizLine"` + LocationId int64 `json:"LocationId" xml:"LocationId"` + LocationNo string `json:"LocationNo" xml:"LocationNo"` + Clusters string `json:"Clusters" xml:"Clusters"` + LogicPod string `json:"LogicPod" xml:"LogicPod"` + Id int64 `json:"Id" xml:"Id"` +} + +// CreateDetailNetClusterRequest creates a request to invoke DetailNetCluster API +func CreateDetailNetClusterRequest() (request *DetailNetClusterRequest) { + request = &DetailNetClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "DetailNetCluster", "", "") + request.Method = requests.POST + return +} + +// CreateDetailNetClusterResponse creates a response to parse from DetailNetCluster response +func CreateDetailNetClusterResponse() (response *DetailNetClusterResponse) { + response = &DetailNetClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/find_ip_attribute.go b/services/biz-ipdb/find_ip_attribute.go new file mode 100644 index 0000000000..4501a1b16e --- /dev/null +++ b/services/biz-ipdb/find_ip_attribute.go @@ -0,0 +1,115 @@ +package biz_ipdb + +//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" +) + +// FindIpAttribute invokes the biz_ipdb.FindIpAttribute API synchronously +func (client *Client) FindIpAttribute(request *FindIpAttributeRequest) (response *FindIpAttributeResponse, err error) { + response = CreateFindIpAttributeResponse() + err = client.DoAction(request, response) + return +} + +// FindIpAttributeWithChan invokes the biz_ipdb.FindIpAttribute API asynchronously +func (client *Client) FindIpAttributeWithChan(request *FindIpAttributeRequest) (<-chan *FindIpAttributeResponse, <-chan error) { + responseChan := make(chan *FindIpAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindIpAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindIpAttributeWithCallback invokes the biz_ipdb.FindIpAttribute API asynchronously +func (client *Client) FindIpAttributeWithCallback(request *FindIpAttributeRequest, callback func(response *FindIpAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindIpAttributeResponse + var err error + defer close(result) + response, err = client.FindIpAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindIpAttributeRequest is the request struct for api FindIpAttribute +type FindIpAttributeRequest struct { + *requests.RpcRequest + Ip string `position:"Query" name:"Ip"` +} + +// FindIpAttributeResponse is the response struct for api FindIpAttribute +type FindIpAttributeResponse struct { + *responses.BaseResponse + Pod string `json:"Pod" xml:"Pod"` + HighIp string `json:"HighIp" xml:"HighIp"` + Cluster string `json:"Cluster" xml:"Cluster"` + Gateway string `json:"Gateway" xml:"Gateway"` + SysOwner string `json:"SysOwner" xml:"SysOwner"` + LowIp string `json:"LowIp" xml:"LowIp"` + Vlan string `json:"Vlan" xml:"Vlan"` + RegionId string `json:"RegionId" xml:"RegionId"` + Value string `json:"Value" xml:"Value"` + IpType string `json:"IpType" xml:"IpType"` + RequestId string `json:"RequestId" xml:"RequestId"` + IpPublic bool `json:"IpPublic" xml:"IpPublic"` + BizLine string `json:"BizLine" xml:"BizLine"` + HighIpNumber int64 `json:"HighIpNumber" xml:"HighIpNumber"` + Attributes map[string]interface{} `json:"Attributes" xml:"Attributes"` + LocationId string `json:"LocationId" xml:"LocationId"` + LowIpNumber int64 `json:"LowIpNumber" xml:"LowIpNumber"` +} + +// CreateFindIpAttributeRequest creates a request to invoke FindIpAttribute API +func CreateFindIpAttributeRequest() (request *FindIpAttributeRequest) { + request = &FindIpAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "FindIpAttribute", "", "") + request.Method = requests.POST + return +} + +// CreateFindIpAttributeResponse creates a response to parse from FindIpAttribute response +func CreateFindIpAttributeResponse() (response *FindIpAttributeResponse) { + response = &FindIpAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/find_ip_info.go b/services/biz-ipdb/find_ip_info.go new file mode 100644 index 0000000000..c0a53f21a1 --- /dev/null +++ b/services/biz-ipdb/find_ip_info.go @@ -0,0 +1,114 @@ +package biz_ipdb + +//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" +) + +// FindIpInfo invokes the biz_ipdb.FindIpInfo API synchronously +func (client *Client) FindIpInfo(request *FindIpInfoRequest) (response *FindIpInfoResponse, err error) { + response = CreateFindIpInfoResponse() + err = client.DoAction(request, response) + return +} + +// FindIpInfoWithChan invokes the biz_ipdb.FindIpInfo API asynchronously +func (client *Client) FindIpInfoWithChan(request *FindIpInfoRequest) (<-chan *FindIpInfoResponse, <-chan error) { + responseChan := make(chan *FindIpInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.FindIpInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// FindIpInfoWithCallback invokes the biz_ipdb.FindIpInfo API asynchronously +func (client *Client) FindIpInfoWithCallback(request *FindIpInfoRequest, callback func(response *FindIpInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *FindIpInfoResponse + var err error + defer close(result) + response, err = client.FindIpInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// FindIpInfoRequest is the request struct for api FindIpInfo +type FindIpInfoRequest struct { + *requests.RpcRequest + Ip string `position:"Query" name:"Ip"` +} + +// FindIpInfoResponse is the response struct for api FindIpInfo +type FindIpInfoResponse struct { + *responses.BaseResponse + Pod string `json:"Pod" xml:"Pod"` + HighIp string `json:"HighIp" xml:"HighIp"` + Cluster string `json:"Cluster" xml:"Cluster"` + Gateway string `json:"Gateway" xml:"Gateway"` + SysOwner string `json:"SysOwner" xml:"SysOwner"` + LowIp string `json:"LowIp" xml:"LowIp"` + Vlan string `json:"Vlan" xml:"Vlan"` + RegionId string `json:"RegionId" xml:"RegionId"` + IpType string `json:"IpType" xml:"IpType"` + Value string `json:"Value" xml:"Value"` + RequestId string `json:"RequestId" xml:"RequestId"` + IpPublic bool `json:"IpPublic" xml:"IpPublic"` + BizLine string `json:"BizLine" xml:"BizLine"` + HighIpNumber int64 `json:"HighIpNumber" xml:"HighIpNumber"` + LocationId string `json:"LocationId" xml:"LocationId"` + LowIpNumber int64 `json:"LowIpNumber" xml:"LowIpNumber"` +} + +// CreateFindIpInfoRequest creates a request to invoke FindIpInfo API +func CreateFindIpInfoRequest() (request *FindIpInfoRequest) { + request = &FindIpInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "FindIpInfo", "", "") + request.Method = requests.POST + return +} + +// CreateFindIpInfoResponse creates a response to parse from FindIpInfo response +func CreateFindIpInfoResponse() (response *FindIpInfoResponse) { + response = &FindIpInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/list_location_tree.go b/services/biz-ipdb/list_location_tree.go new file mode 100644 index 0000000000..21a2a3e983 --- /dev/null +++ b/services/biz-ipdb/list_location_tree.go @@ -0,0 +1,101 @@ +package biz_ipdb + +//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" +) + +// ListLocationTree invokes the biz_ipdb.ListLocationTree API synchronously +func (client *Client) ListLocationTree(request *ListLocationTreeRequest) (response *ListLocationTreeResponse, err error) { + response = CreateListLocationTreeResponse() + err = client.DoAction(request, response) + return +} + +// ListLocationTreeWithChan invokes the biz_ipdb.ListLocationTree API asynchronously +func (client *Client) ListLocationTreeWithChan(request *ListLocationTreeRequest) (<-chan *ListLocationTreeResponse, <-chan error) { + responseChan := make(chan *ListLocationTreeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListLocationTree(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListLocationTreeWithCallback invokes the biz_ipdb.ListLocationTree API asynchronously +func (client *Client) ListLocationTreeWithCallback(request *ListLocationTreeRequest, callback func(response *ListLocationTreeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListLocationTreeResponse + var err error + defer close(result) + response, err = client.ListLocationTree(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListLocationTreeRequest is the request struct for api ListLocationTree +type ListLocationTreeRequest struct { + *requests.RpcRequest + BizLine string `position:"Query" name:"BizLine"` +} + +// ListLocationTreeResponse is the response struct for api ListLocationTree +type ListLocationTreeResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + Locations Locations `json:"Locations" xml:"Locations"` +} + +// CreateListLocationTreeRequest creates a request to invoke ListLocationTree API +func CreateListLocationTreeRequest() (request *ListLocationTreeRequest) { + request = &ListLocationTreeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "ListLocationTree", "", "") + request.Method = requests.POST + return +} + +// CreateListLocationTreeResponse creates a response to parse from ListLocationTree response +func CreateListLocationTreeResponse() (response *ListLocationTreeResponse) { + response = &ListLocationTreeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/map_ip_segment.go b/services/biz-ipdb/map_ip_segment.go new file mode 100644 index 0000000000..1dc865b412 --- /dev/null +++ b/services/biz-ipdb/map_ip_segment.go @@ -0,0 +1,103 @@ +package biz_ipdb + +//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" +) + +// MapIpSegment invokes the biz_ipdb.MapIpSegment API synchronously +func (client *Client) MapIpSegment(request *MapIpSegmentRequest) (response *MapIpSegmentResponse, err error) { + response = CreateMapIpSegmentResponse() + err = client.DoAction(request, response) + return +} + +// MapIpSegmentWithChan invokes the biz_ipdb.MapIpSegment API asynchronously +func (client *Client) MapIpSegmentWithChan(request *MapIpSegmentRequest) (<-chan *MapIpSegmentResponse, <-chan error) { + responseChan := make(chan *MapIpSegmentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MapIpSegment(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MapIpSegmentWithCallback invokes the biz_ipdb.MapIpSegment API asynchronously +func (client *Client) MapIpSegmentWithCallback(request *MapIpSegmentRequest, callback func(response *MapIpSegmentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MapIpSegmentResponse + var err error + defer close(result) + response, err = client.MapIpSegment(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MapIpSegmentRequest is the request struct for api MapIpSegment +type MapIpSegmentRequest struct { + *requests.RpcRequest + Cluster string `position:"Query" name:"Cluster"` + LocationId string `position:"Query" name:"LocationId"` + IpType string `position:"Query" name:"IpType"` + Value string `position:"Query" name:"Value"` + BizLine string `position:"Query" name:"BizLine"` +} + +// MapIpSegmentResponse is the response struct for api MapIpSegment +type MapIpSegmentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateMapIpSegmentRequest creates a request to invoke MapIpSegment API +func CreateMapIpSegmentRequest() (request *MapIpSegmentRequest) { + request = &MapIpSegmentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "MapIpSegment", "", "") + request.Method = requests.POST + return +} + +// CreateMapIpSegmentResponse creates a response to parse from MapIpSegment response +func CreateMapIpSegmentResponse() (response *MapIpSegmentResponse) { + response = &MapIpSegmentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/query_ip_policy.go b/services/biz-ipdb/query_ip_policy.go new file mode 100644 index 0000000000..26d52249a4 --- /dev/null +++ b/services/biz-ipdb/query_ip_policy.go @@ -0,0 +1,100 @@ +package biz_ipdb + +//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" +) + +// QueryIpPolicy invokes the biz_ipdb.QueryIpPolicy API synchronously +func (client *Client) QueryIpPolicy(request *QueryIpPolicyRequest) (response *QueryIpPolicyResponse, err error) { + response = CreateQueryIpPolicyResponse() + err = client.DoAction(request, response) + return +} + +// QueryIpPolicyWithChan invokes the biz_ipdb.QueryIpPolicy API asynchronously +func (client *Client) QueryIpPolicyWithChan(request *QueryIpPolicyRequest) (<-chan *QueryIpPolicyResponse, <-chan error) { + responseChan := make(chan *QueryIpPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryIpPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryIpPolicyWithCallback invokes the biz_ipdb.QueryIpPolicy API asynchronously +func (client *Client) QueryIpPolicyWithCallback(request *QueryIpPolicyRequest, callback func(response *QueryIpPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryIpPolicyResponse + var err error + defer close(result) + response, err = client.QueryIpPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryIpPolicyRequest is the request struct for api QueryIpPolicy +type QueryIpPolicyRequest struct { + *requests.RpcRequest + ListAll requests.Boolean `position:"Query" name:"ListAll"` +} + +// QueryIpPolicyResponse is the response struct for api QueryIpPolicy +type QueryIpPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + IpPolicies IpPolicies `json:"IpPolicies" xml:"IpPolicies"` +} + +// CreateQueryIpPolicyRequest creates a request to invoke QueryIpPolicy API +func CreateQueryIpPolicyRequest() (request *QueryIpPolicyRequest) { + request = &QueryIpPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "QueryIpPolicy", "", "") + request.Method = requests.POST + return +} + +// CreateQueryIpPolicyResponse creates a response to parse from QueryIpPolicy response +func CreateQueryIpPolicyResponse() (response *QueryIpPolicyResponse) { + response = &QueryIpPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/query_ip_segment_by_node_type.go b/services/biz-ipdb/query_ip_segment_by_node_type.go new file mode 100644 index 0000000000..240b00c3dc --- /dev/null +++ b/services/biz-ipdb/query_ip_segment_by_node_type.go @@ -0,0 +1,109 @@ +package biz_ipdb + +//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" +) + +// QueryIpSegmentByNodeType invokes the biz_ipdb.QueryIpSegmentByNodeType API synchronously +func (client *Client) QueryIpSegmentByNodeType(request *QueryIpSegmentByNodeTypeRequest) (response *QueryIpSegmentByNodeTypeResponse, err error) { + response = CreateQueryIpSegmentByNodeTypeResponse() + err = client.DoAction(request, response) + return +} + +// QueryIpSegmentByNodeTypeWithChan invokes the biz_ipdb.QueryIpSegmentByNodeType API asynchronously +func (client *Client) QueryIpSegmentByNodeTypeWithChan(request *QueryIpSegmentByNodeTypeRequest) (<-chan *QueryIpSegmentByNodeTypeResponse, <-chan error) { + responseChan := make(chan *QueryIpSegmentByNodeTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryIpSegmentByNodeType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryIpSegmentByNodeTypeWithCallback invokes the biz_ipdb.QueryIpSegmentByNodeType API asynchronously +func (client *Client) QueryIpSegmentByNodeTypeWithCallback(request *QueryIpSegmentByNodeTypeRequest, callback func(response *QueryIpSegmentByNodeTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryIpSegmentByNodeTypeResponse + var err error + defer close(result) + response, err = client.QueryIpSegmentByNodeType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryIpSegmentByNodeTypeRequest is the request struct for api QueryIpSegmentByNodeType +type QueryIpSegmentByNodeTypeRequest struct { + *requests.RpcRequest + NodeType string `position:"Query" name:"NodeType"` + PageNumber string `position:"Query" name:"PageNumber"` + NetworkScope string `position:"Query" name:"NetworkScope"` + NodeName string `position:"Query" name:"NodeName"` + PageSize string `position:"Query" name:"PageSize"` + IpVersion string `position:"Query" name:"IpVersion"` + BizLine string `position:"Query" name:"BizLine"` +} + +// QueryIpSegmentByNodeTypeResponse is the response struct for api QueryIpSegmentByNodeType +type QueryIpSegmentByNodeTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + IpSegments IpSegmentsInQueryIpSegmentByNodeType `json:"IpSegments" xml:"IpSegments"` +} + +// CreateQueryIpSegmentByNodeTypeRequest creates a request to invoke QueryIpSegmentByNodeType API +func CreateQueryIpSegmentByNodeTypeRequest() (request *QueryIpSegmentByNodeTypeRequest) { + request = &QueryIpSegmentByNodeTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "QueryIpSegmentByNodeType", "", "") + request.Method = requests.POST + return +} + +// CreateQueryIpSegmentByNodeTypeResponse creates a response to parse from QueryIpSegmentByNodeType response +func CreateQueryIpSegmentByNodeTypeResponse() (response *QueryIpSegmentByNodeTypeResponse) { + response = &QueryIpSegmentByNodeTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/query_pre_mapping_ip_segments.go b/services/biz-ipdb/query_pre_mapping_ip_segments.go new file mode 100644 index 0000000000..e42c2eb952 --- /dev/null +++ b/services/biz-ipdb/query_pre_mapping_ip_segments.go @@ -0,0 +1,109 @@ +package biz_ipdb + +//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" +) + +// QueryPreMappingIpSegments invokes the biz_ipdb.QueryPreMappingIpSegments API synchronously +func (client *Client) QueryPreMappingIpSegments(request *QueryPreMappingIpSegmentsRequest) (response *QueryPreMappingIpSegmentsResponse, err error) { + response = CreateQueryPreMappingIpSegmentsResponse() + err = client.DoAction(request, response) + return +} + +// QueryPreMappingIpSegmentsWithChan invokes the biz_ipdb.QueryPreMappingIpSegments API asynchronously +func (client *Client) QueryPreMappingIpSegmentsWithChan(request *QueryPreMappingIpSegmentsRequest) (<-chan *QueryPreMappingIpSegmentsResponse, <-chan error) { + responseChan := make(chan *QueryPreMappingIpSegmentsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryPreMappingIpSegments(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryPreMappingIpSegmentsWithCallback invokes the biz_ipdb.QueryPreMappingIpSegments API asynchronously +func (client *Client) QueryPreMappingIpSegmentsWithCallback(request *QueryPreMappingIpSegmentsRequest, callback func(response *QueryPreMappingIpSegmentsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryPreMappingIpSegmentsResponse + var err error + defer close(result) + response, err = client.QueryPreMappingIpSegments(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryPreMappingIpSegmentsRequest is the request struct for api QueryPreMappingIpSegments +type QueryPreMappingIpSegmentsRequest struct { + *requests.RpcRequest + Cluster string `position:"Query" name:"Cluster"` + Pod string `position:"Query" name:"Pod"` + SysOwner string `position:"Query" name:"SysOwner"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Page requests.Integer `position:"Query" name:"Page"` + Value string `position:"Query" name:"Value"` + BizLine string `position:"Query" name:"BizLine"` +} + +// QueryPreMappingIpSegmentsResponse is the response struct for api QueryPreMappingIpSegments +type QueryPreMappingIpSegmentsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Page int `json:"Page" xml:"Page"` + IpSegmentSet IpSegmentSet `json:"IpSegmentSet" xml:"IpSegmentSet"` +} + +// CreateQueryPreMappingIpSegmentsRequest creates a request to invoke QueryPreMappingIpSegments API +func CreateQueryPreMappingIpSegmentsRequest() (request *QueryPreMappingIpSegmentsRequest) { + request = &QueryPreMappingIpSegmentsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Biz-ipdb", "2016-08-08", "QueryPreMappingIpSegments", "", "") + request.Method = requests.POST + return +} + +// CreateQueryPreMappingIpSegmentsResponse creates a response to parse from QueryPreMappingIpSegments response +func CreateQueryPreMappingIpSegmentsResponse() (response *QueryPreMappingIpSegmentsResponse) { + response = &QueryPreMappingIpSegmentsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/biz-ipdb/struct_attribute.go b/services/biz-ipdb/struct_attribute.go new file mode 100644 index 0000000000..7849bed252 --- /dev/null +++ b/services/biz-ipdb/struct_attribute.go @@ -0,0 +1,28 @@ +package biz_ipdb + +//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. + +// Attribute is a nested struct in biz_ipdb response +type Attribute struct { + Key string `json:"Key" xml:"Key"` + RelationType string `json:"RelationType" xml:"RelationType"` + Value string `json:"Value" xml:"Value"` + LocationType string `json:"LocationType" xml:"LocationType"` + BizLine string `json:"BizLine" xml:"BizLine"` + LocationId int64 `json:"LocationId" xml:"LocationId"` + LocationNo string `json:"LocationNo" xml:"LocationNo"` + Id int64 `json:"Id" xml:"Id"` +} diff --git a/services/biz-ipdb/struct_attributes.go b/services/biz-ipdb/struct_attributes.go new file mode 100644 index 0000000000..0b6113a6c5 --- /dev/null +++ b/services/biz-ipdb/struct_attributes.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// Attributes is a nested struct in biz_ipdb response +type Attributes struct { + Attribute []Attribute `json:"Attribute" xml:"Attribute"` +} diff --git a/services/biz-ipdb/struct_biz_line.go b/services/biz-ipdb/struct_biz_line.go new file mode 100644 index 0000000000..e034d60c07 --- /dev/null +++ b/services/biz-ipdb/struct_biz_line.go @@ -0,0 +1,24 @@ +package biz_ipdb + +//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. + +// BizLine is a nested struct in biz_ipdb response +type BizLine struct { + CnName string `json:"CnName" xml:"CnName"` + BizLine string `json:"BizLine" xml:"BizLine"` + EnName string `json:"EnName" xml:"EnName"` + Id int64 `json:"Id" xml:"Id"` +} diff --git a/services/biz-ipdb/struct_biz_line_set.go b/services/biz-ipdb/struct_biz_line_set.go new file mode 100644 index 0000000000..0a626bbc0b --- /dev/null +++ b/services/biz-ipdb/struct_biz_line_set.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// BizLineSet is a nested struct in biz_ipdb response +type BizLineSet struct { + BizLine []BizLine `json:"BizLine" xml:"BizLine"` +} diff --git a/services/biz-ipdb/struct_ip_policies.go b/services/biz-ipdb/struct_ip_policies.go new file mode 100644 index 0000000000..aa653af86f --- /dev/null +++ b/services/biz-ipdb/struct_ip_policies.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// IpPolicies is a nested struct in biz_ipdb response +type IpPolicies struct { + IpPolicy []IpPolicy `json:"IpPolicy" xml:"IpPolicy"` +} diff --git a/services/biz-ipdb/struct_ip_policy.go b/services/biz-ipdb/struct_ip_policy.go new file mode 100644 index 0000000000..b603474f32 --- /dev/null +++ b/services/biz-ipdb/struct_ip_policy.go @@ -0,0 +1,25 @@ +package biz_ipdb + +//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. + +// IpPolicy is a nested struct in biz_ipdb response +type IpPolicy struct { + PairValue string `json:"PairValue" xml:"PairValue"` + Value string `json:"Value" xml:"Value"` + PolicyId int64 `json:"PolicyId" xml:"PolicyId"` + Description string `json:"Description" xml:"Description"` + ActionTag int `json:"ActionTag" xml:"ActionTag"` +} diff --git a/services/biz-ipdb/struct_ip_segment.go b/services/biz-ipdb/struct_ip_segment.go new file mode 100644 index 0000000000..02fa177579 --- /dev/null +++ b/services/biz-ipdb/struct_ip_segment.go @@ -0,0 +1,46 @@ +package biz_ipdb + +//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. + +// IpSegment is a nested struct in biz_ipdb response +type IpSegment struct { + HighIpNumber int64 `json:"HighIpNumber" xml:"HighIpNumber"` + BizLine string `json:"BizLine" xml:"BizLine"` + LocationId string `json:"LocationId" xml:"LocationId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + RegionId string `json:"RegionId" xml:"RegionId"` + Vlan string `json:"Vlan" xml:"Vlan"` + GmtModify string `json:"GmtModify" xml:"GmtModify"` + SysOwner string `json:"SysOwner" xml:"SysOwner"` + Gateway string `json:"Gateway" xml:"Gateway"` + Pod string `json:"Pod" xml:"Pod"` + Description string `json:"Description" xml:"Description"` + Deleted bool `json:"deleted" xml:"deleted"` + Id int64 `json:"Id" xml:"Id"` + Status string `json:"status" xml:"status"` + IpType string `json:"IpType" xml:"IpType"` + Cluster string `json:"Cluster" xml:"Cluster"` + House string `json:"House" xml:"House"` + Value string `json:"Value" xml:"Value"` + AopsId string `json:"AopsId" xml:"AopsId"` + IpSegment string `json:"IpSegment" xml:"IpSegment"` + LowIpNumber int64 `json:"LowIpNumber" xml:"LowIpNumber"` + Confirmed bool `json:"Confirmed" xml:"Confirmed"` + ThirdParty bool `json:"ThirdParty" xml:"ThirdParty"` + IpPublic bool `json:"IpPublic" xml:"IpPublic"` + AzId string `json:"AzId" xml:"AzId"` + IsPublic bool `json:"IsPublic" xml:"IsPublic"` +} diff --git a/services/biz-ipdb/struct_ip_segment_set.go b/services/biz-ipdb/struct_ip_segment_set.go new file mode 100644 index 0000000000..cb16ba271b --- /dev/null +++ b/services/biz-ipdb/struct_ip_segment_set.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// IpSegmentSet is a nested struct in biz_ipdb response +type IpSegmentSet struct { + IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` +} diff --git a/services/biz-ipdb/struct_ip_segments_in_describe_ip_segments.go b/services/biz-ipdb/struct_ip_segments_in_describe_ip_segments.go new file mode 100644 index 0000000000..24f93b3ecc --- /dev/null +++ b/services/biz-ipdb/struct_ip_segments_in_describe_ip_segments.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// IpSegmentsInDescribeIpSegments is a nested struct in biz_ipdb response +type IpSegmentsInDescribeIpSegments struct { + IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` +} diff --git a/services/biz-ipdb/struct_ip_segments_in_query_ip_segment_by_node_type.go b/services/biz-ipdb/struct_ip_segments_in_query_ip_segment_by_node_type.go new file mode 100644 index 0000000000..883fff3096 --- /dev/null +++ b/services/biz-ipdb/struct_ip_segments_in_query_ip_segment_by_node_type.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// IpSegmentsInQueryIpSegmentByNodeType is a nested struct in biz_ipdb response +type IpSegmentsInQueryIpSegmentByNodeType struct { + IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` +} diff --git a/services/biz-ipdb/struct_ip_type.go b/services/biz-ipdb/struct_ip_type.go new file mode 100644 index 0000000000..c2d80c34cb --- /dev/null +++ b/services/biz-ipdb/struct_ip_type.go @@ -0,0 +1,27 @@ +package biz_ipdb + +//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. + +// IpType is a nested struct in biz_ipdb response +type IpType struct { + IpType string `json:"IpType" xml:"IpType"` + NodeType string `json:"NodeType" xml:"NodeType"` + Description string `json:"Description" xml:"Description"` + IpPublic bool `json:"IpPublic" xml:"IpPublic"` + BizLine string `json:"BizLine" xml:"BizLine"` + CheckPod bool `json:"CheckPod" xml:"CheckPod"` + Id int64 `json:"Id" xml:"Id"` +} diff --git a/services/biz-ipdb/struct_ip_type_set.go b/services/biz-ipdb/struct_ip_type_set.go new file mode 100644 index 0000000000..f541db639f --- /dev/null +++ b/services/biz-ipdb/struct_ip_type_set.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// IpTypeSet is a nested struct in biz_ipdb response +type IpTypeSet struct { + IpType []IpType `json:"IpType" xml:"IpType"` +} diff --git a/services/biz-ipdb/struct_location.go b/services/biz-ipdb/struct_location.go new file mode 100644 index 0000000000..a9a5803753 --- /dev/null +++ b/services/biz-ipdb/struct_location.go @@ -0,0 +1,26 @@ +package biz_ipdb + +//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. + +// Location is a nested struct in biz_ipdb response +type Location struct { + Type string `json:"Type" xml:"Type"` + ChildIds string `json:"ChildIds" xml:"ChildIds"` + Description string `json:"Description" xml:"Description"` + BizLine string `json:"BizLine" xml:"BizLine"` + LocationNo string `json:"LocationNo" xml:"LocationNo"` + Id int64 `json:"Id" xml:"Id"` +} diff --git a/services/biz-ipdb/struct_locations.go b/services/biz-ipdb/struct_locations.go new file mode 100644 index 0000000000..7862b5c889 --- /dev/null +++ b/services/biz-ipdb/struct_locations.go @@ -0,0 +1,21 @@ +package biz_ipdb + +//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. + +// Locations is a nested struct in biz_ipdb response +type Locations struct { + Location []Location `json:"Location" xml:"Location"` +}