diff --git a/ChangeLog.txt b/ChangeLog.txt index f7247defc..df843148c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-08-16 Version: v1.62.512 +- Generated 2023-01-20 for `csas`. +- Supported dynamicRoute. + 2023-08-15 Version: v1.62.511 - Generated 2020-06-15 for `hitsdb`. - Update endpoints. diff --git a/services/csas/attach_application2_connector.go b/services/csas/attach_application2_connector.go new file mode 100644 index 000000000..a7ae32ef5 --- /dev/null +++ b/services/csas/attach_application2_connector.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// AttachApplication2Connector invokes the csas.AttachApplication2Connector API synchronously +func (client *Client) AttachApplication2Connector(request *AttachApplication2ConnectorRequest) (response *AttachApplication2ConnectorResponse, err error) { + response = CreateAttachApplication2ConnectorResponse() + err = client.DoAction(request, response) + return +} + +// AttachApplication2ConnectorWithChan invokes the csas.AttachApplication2Connector API asynchronously +func (client *Client) AttachApplication2ConnectorWithChan(request *AttachApplication2ConnectorRequest) (<-chan *AttachApplication2ConnectorResponse, <-chan error) { + responseChan := make(chan *AttachApplication2ConnectorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AttachApplication2Connector(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AttachApplication2ConnectorWithCallback invokes the csas.AttachApplication2Connector API asynchronously +func (client *Client) AttachApplication2ConnectorWithCallback(request *AttachApplication2ConnectorRequest, callback func(response *AttachApplication2ConnectorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AttachApplication2ConnectorResponse + var err error + defer close(result) + response, err = client.AttachApplication2Connector(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AttachApplication2ConnectorRequest is the request struct for api AttachApplication2Connector +type AttachApplication2ConnectorRequest struct { + *requests.RpcRequest + ConnectorId string `position:"Body" name:"ConnectorId"` + ApplicationIds *[]string `position:"Body" name:"ApplicationIds" type:"Json"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// AttachApplication2ConnectorResponse is the response struct for api AttachApplication2Connector +type AttachApplication2ConnectorResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAttachApplication2ConnectorRequest creates a request to invoke AttachApplication2Connector API +func CreateAttachApplication2ConnectorRequest() (request *AttachApplication2ConnectorRequest) { + request = &AttachApplication2ConnectorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "AttachApplication2Connector", "", "") + request.Method = requests.POST + return +} + +// CreateAttachApplication2ConnectorResponse creates a response to parse from AttachApplication2Connector response +func CreateAttachApplication2ConnectorResponse() (response *AttachApplication2ConnectorResponse) { + response = &AttachApplication2ConnectorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/client.go b/services/csas/client.go new file mode 100644 index 000000000..03abd56e4 --- /dev/null +++ b/services/csas/client.go @@ -0,0 +1,104 @@ +package csas + +//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/csas/create_dynamic_route.go b/services/csas/create_dynamic_route.go new file mode 100644 index 000000000..139c5f7db --- /dev/null +++ b/services/csas/create_dynamic_route.go @@ -0,0 +1,110 @@ +package csas + +//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" +) + +// CreateDynamicRoute invokes the csas.CreateDynamicRoute API synchronously +func (client *Client) CreateDynamicRoute(request *CreateDynamicRouteRequest) (response *CreateDynamicRouteResponse, err error) { + response = CreateCreateDynamicRouteResponse() + err = client.DoAction(request, response) + return +} + +// CreateDynamicRouteWithChan invokes the csas.CreateDynamicRoute API asynchronously +func (client *Client) CreateDynamicRouteWithChan(request *CreateDynamicRouteRequest) (<-chan *CreateDynamicRouteResponse, <-chan error) { + responseChan := make(chan *CreateDynamicRouteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDynamicRoute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDynamicRouteWithCallback invokes the csas.CreateDynamicRoute API asynchronously +func (client *Client) CreateDynamicRouteWithCallback(request *CreateDynamicRouteRequest, callback func(response *CreateDynamicRouteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDynamicRouteResponse + var err error + defer close(result) + response, err = client.CreateDynamicRoute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDynamicRouteRequest is the request struct for api CreateDynamicRoute +type CreateDynamicRouteRequest struct { + *requests.RpcRequest + Description string `position:"Body" name:"Description"` + SourceIp string `position:"Query" name:"SourceIp"` + DynamicRouteType string `position:"Body" name:"DynamicRouteType"` + TagIds *[]string `position:"Body" name:"TagIds" type:"Repeated"` + RegionIds *[]string `position:"Body" name:"RegionIds" type:"Repeated"` + Priority requests.Integer `position:"Body" name:"Priority"` + NextHop string `position:"Body" name:"NextHop"` + ApplicationIds *[]string `position:"Body" name:"ApplicationIds" type:"Repeated"` + Name string `position:"Body" name:"Name"` + ApplicationType string `position:"Body" name:"ApplicationType"` + Status string `position:"Body" name:"Status"` +} + +// CreateDynamicRouteResponse is the response struct for api CreateDynamicRoute +type CreateDynamicRouteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DynamicRouteId string `json:"DynamicRouteId" xml:"DynamicRouteId"` +} + +// CreateCreateDynamicRouteRequest creates a request to invoke CreateDynamicRoute API +func CreateCreateDynamicRouteRequest() (request *CreateDynamicRouteRequest) { + request = &CreateDynamicRouteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "CreateDynamicRoute", "", "") + request.Method = requests.POST + return +} + +// CreateCreateDynamicRouteResponse creates a response to parse from CreateDynamicRoute response +func CreateCreateDynamicRouteResponse() (response *CreateDynamicRouteResponse) { + response = &CreateDynamicRouteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/create_private_access_application.go b/services/csas/create_private_access_application.go new file mode 100644 index 000000000..d3199def8 --- /dev/null +++ b/services/csas/create_private_access_application.go @@ -0,0 +1,113 @@ +package csas + +//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" +) + +// CreatePrivateAccessApplication invokes the csas.CreatePrivateAccessApplication API synchronously +func (client *Client) CreatePrivateAccessApplication(request *CreatePrivateAccessApplicationRequest) (response *CreatePrivateAccessApplicationResponse, err error) { + response = CreateCreatePrivateAccessApplicationResponse() + err = client.DoAction(request, response) + return +} + +// CreatePrivateAccessApplicationWithChan invokes the csas.CreatePrivateAccessApplication API asynchronously +func (client *Client) CreatePrivateAccessApplicationWithChan(request *CreatePrivateAccessApplicationRequest) (<-chan *CreatePrivateAccessApplicationResponse, <-chan error) { + responseChan := make(chan *CreatePrivateAccessApplicationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePrivateAccessApplication(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePrivateAccessApplicationWithCallback invokes the csas.CreatePrivateAccessApplication API asynchronously +func (client *Client) CreatePrivateAccessApplicationWithCallback(request *CreatePrivateAccessApplicationRequest, callback func(response *CreatePrivateAccessApplicationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePrivateAccessApplicationResponse + var err error + defer close(result) + response, err = client.CreatePrivateAccessApplication(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePrivateAccessApplicationRequest is the request struct for api CreatePrivateAccessApplication +type CreatePrivateAccessApplicationRequest struct { + *requests.RpcRequest + Addresses *[]string `position:"Body" name:"Addresses" type:"Json"` + Description string `position:"Body" name:"Description"` + Protocol string `position:"Body" name:"Protocol"` + SourceIp string `position:"Query" name:"SourceIp"` + TagIds *[]string `position:"Body" name:"TagIds" type:"Json"` + PortRanges *[]CreatePrivateAccessApplicationPortRanges `position:"Body" name:"PortRanges" type:"Json"` + Name string `position:"Body" name:"Name"` + Status string `position:"Body" name:"Status"` +} + +// CreatePrivateAccessApplicationPortRanges is a repeated param struct in CreatePrivateAccessApplicationRequest +type CreatePrivateAccessApplicationPortRanges struct { + End string `name:"End"` + Begin string `name:"Begin"` +} + +// CreatePrivateAccessApplicationResponse is the response struct for api CreatePrivateAccessApplication +type CreatePrivateAccessApplicationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ApplicationId string `json:"ApplicationId" xml:"ApplicationId"` +} + +// CreateCreatePrivateAccessApplicationRequest creates a request to invoke CreatePrivateAccessApplication API +func CreateCreatePrivateAccessApplicationRequest() (request *CreatePrivateAccessApplicationRequest) { + request = &CreatePrivateAccessApplicationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "CreatePrivateAccessApplication", "", "") + request.Method = requests.POST + return +} + +// CreateCreatePrivateAccessApplicationResponse creates a response to parse from CreatePrivateAccessApplication response +func CreateCreatePrivateAccessApplicationResponse() (response *CreatePrivateAccessApplicationResponse) { + response = &CreatePrivateAccessApplicationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/create_private_access_policy.go b/services/csas/create_private_access_policy.go new file mode 100644 index 000000000..c693b4dd8 --- /dev/null +++ b/services/csas/create_private_access_policy.go @@ -0,0 +1,119 @@ +package csas + +//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" +) + +// CreatePrivateAccessPolicy invokes the csas.CreatePrivateAccessPolicy API synchronously +func (client *Client) CreatePrivateAccessPolicy(request *CreatePrivateAccessPolicyRequest) (response *CreatePrivateAccessPolicyResponse, err error) { + response = CreateCreatePrivateAccessPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CreatePrivateAccessPolicyWithChan invokes the csas.CreatePrivateAccessPolicy API asynchronously +func (client *Client) CreatePrivateAccessPolicyWithChan(request *CreatePrivateAccessPolicyRequest) (<-chan *CreatePrivateAccessPolicyResponse, <-chan error) { + responseChan := make(chan *CreatePrivateAccessPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePrivateAccessPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePrivateAccessPolicyWithCallback invokes the csas.CreatePrivateAccessPolicy API asynchronously +func (client *Client) CreatePrivateAccessPolicyWithCallback(request *CreatePrivateAccessPolicyRequest, callback func(response *CreatePrivateAccessPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePrivateAccessPolicyResponse + var err error + defer close(result) + response, err = client.CreatePrivateAccessPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePrivateAccessPolicyRequest is the request struct for api CreatePrivateAccessPolicy +type CreatePrivateAccessPolicyRequest struct { + *requests.RpcRequest + Description string `position:"Body" name:"Description"` + SourceIp string `position:"Query" name:"SourceIp"` + CustomUserAttributes *[]CreatePrivateAccessPolicyCustomUserAttributes `position:"Body" name:"CustomUserAttributes" type:"Json"` + TagIds *[]string `position:"Body" name:"TagIds" type:"Json"` + UserGroupIds *[]string `position:"Body" name:"UserGroupIds" type:"Json"` + PolicyAction string `position:"Body" name:"PolicyAction"` + Priority requests.Integer `position:"Body" name:"Priority"` + ApplicationIds *[]string `position:"Body" name:"ApplicationIds" type:"Json"` + UserGroupMode string `position:"Body" name:"UserGroupMode"` + Name string `position:"Body" name:"Name"` + ApplicationType string `position:"Body" name:"ApplicationType"` + Status string `position:"Body" name:"Status"` +} + +// CreatePrivateAccessPolicyCustomUserAttributes is a repeated param struct in CreatePrivateAccessPolicyRequest +type CreatePrivateAccessPolicyCustomUserAttributes struct { + UserGroupType string `name:"UserGroupType"` + IdpId string `name:"IdpId"` + Value string `name:"Value"` + Relation string `name:"Relation"` +} + +// CreatePrivateAccessPolicyResponse is the response struct for api CreatePrivateAccessPolicy +type CreatePrivateAccessPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PolicyId string `json:"PolicyId" xml:"PolicyId"` +} + +// CreateCreatePrivateAccessPolicyRequest creates a request to invoke CreatePrivateAccessPolicy API +func CreateCreatePrivateAccessPolicyRequest() (request *CreatePrivateAccessPolicyRequest) { + request = &CreatePrivateAccessPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "CreatePrivateAccessPolicy", "", "") + request.Method = requests.POST + return +} + +// CreateCreatePrivateAccessPolicyResponse creates a response to parse from CreatePrivateAccessPolicy response +func CreateCreatePrivateAccessPolicyResponse() (response *CreatePrivateAccessPolicyResponse) { + response = &CreatePrivateAccessPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/create_private_access_tag.go b/services/csas/create_private_access_tag.go new file mode 100644 index 000000000..76e279fa5 --- /dev/null +++ b/services/csas/create_private_access_tag.go @@ -0,0 +1,102 @@ +package csas + +//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" +) + +// CreatePrivateAccessTag invokes the csas.CreatePrivateAccessTag API synchronously +func (client *Client) CreatePrivateAccessTag(request *CreatePrivateAccessTagRequest) (response *CreatePrivateAccessTagResponse, err error) { + response = CreateCreatePrivateAccessTagResponse() + err = client.DoAction(request, response) + return +} + +// CreatePrivateAccessTagWithChan invokes the csas.CreatePrivateAccessTag API asynchronously +func (client *Client) CreatePrivateAccessTagWithChan(request *CreatePrivateAccessTagRequest) (<-chan *CreatePrivateAccessTagResponse, <-chan error) { + responseChan := make(chan *CreatePrivateAccessTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePrivateAccessTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePrivateAccessTagWithCallback invokes the csas.CreatePrivateAccessTag API asynchronously +func (client *Client) CreatePrivateAccessTagWithCallback(request *CreatePrivateAccessTagRequest, callback func(response *CreatePrivateAccessTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePrivateAccessTagResponse + var err error + defer close(result) + response, err = client.CreatePrivateAccessTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePrivateAccessTagRequest is the request struct for api CreatePrivateAccessTag +type CreatePrivateAccessTagRequest struct { + *requests.RpcRequest + Description string `position:"Body" name:"Description"` + SourceIp string `position:"Query" name:"SourceIp"` + Name string `position:"Body" name:"Name"` +} + +// CreatePrivateAccessTagResponse is the response struct for api CreatePrivateAccessTag +type CreatePrivateAccessTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TagId string `json:"TagId" xml:"TagId"` +} + +// CreateCreatePrivateAccessTagRequest creates a request to invoke CreatePrivateAccessTag API +func CreateCreatePrivateAccessTagRequest() (request *CreatePrivateAccessTagRequest) { + request = &CreatePrivateAccessTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "CreatePrivateAccessTag", "", "") + request.Method = requests.POST + return +} + +// CreateCreatePrivateAccessTagResponse creates a response to parse from CreatePrivateAccessTag response +func CreateCreatePrivateAccessTagResponse() (response *CreatePrivateAccessTagResponse) { + response = &CreatePrivateAccessTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/create_user_group.go b/services/csas/create_user_group.go new file mode 100644 index 000000000..532b4b34d --- /dev/null +++ b/services/csas/create_user_group.go @@ -0,0 +1,111 @@ +package csas + +//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" +) + +// CreateUserGroup invokes the csas.CreateUserGroup API synchronously +func (client *Client) CreateUserGroup(request *CreateUserGroupRequest) (response *CreateUserGroupResponse, err error) { + response = CreateCreateUserGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateUserGroupWithChan invokes the csas.CreateUserGroup API asynchronously +func (client *Client) CreateUserGroupWithChan(request *CreateUserGroupRequest) (<-chan *CreateUserGroupResponse, <-chan error) { + responseChan := make(chan *CreateUserGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateUserGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateUserGroupWithCallback invokes the csas.CreateUserGroup API asynchronously +func (client *Client) CreateUserGroupWithCallback(request *CreateUserGroupRequest, callback func(response *CreateUserGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateUserGroupResponse + var err error + defer close(result) + response, err = client.CreateUserGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateUserGroupRequest is the request struct for api CreateUserGroup +type CreateUserGroupRequest struct { + *requests.RpcRequest + Description string `position:"Body" name:"Description"` + SourceIp string `position:"Query" name:"SourceIp"` + Name string `position:"Body" name:"Name"` + Attributes *[]CreateUserGroupAttributes `position:"Body" name:"Attributes" type:"Repeated"` +} + +// CreateUserGroupAttributes is a repeated param struct in CreateUserGroupRequest +type CreateUserGroupAttributes struct { + UserGroupType string `name:"UserGroupType"` + IdpId string `name:"IdpId"` + Value string `name:"Value"` + Relation string `name:"Relation"` +} + +// CreateUserGroupResponse is the response struct for api CreateUserGroup +type CreateUserGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UserGroupId string `json:"UserGroupId" xml:"UserGroupId"` +} + +// CreateCreateUserGroupRequest creates a request to invoke CreateUserGroup API +func CreateCreateUserGroupRequest() (request *CreateUserGroupRequest) { + request = &CreateUserGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "CreateUserGroup", "", "") + request.Method = requests.POST + return +} + +// CreateCreateUserGroupResponse creates a response to parse from CreateUserGroup response +func CreateCreateUserGroupResponse() (response *CreateUserGroupResponse) { + response = &CreateUserGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/delete_dynamic_route.go b/services/csas/delete_dynamic_route.go new file mode 100644 index 000000000..5a828aadd --- /dev/null +++ b/services/csas/delete_dynamic_route.go @@ -0,0 +1,100 @@ +package csas + +//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" +) + +// DeleteDynamicRoute invokes the csas.DeleteDynamicRoute API synchronously +func (client *Client) DeleteDynamicRoute(request *DeleteDynamicRouteRequest) (response *DeleteDynamicRouteResponse, err error) { + response = CreateDeleteDynamicRouteResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDynamicRouteWithChan invokes the csas.DeleteDynamicRoute API asynchronously +func (client *Client) DeleteDynamicRouteWithChan(request *DeleteDynamicRouteRequest) (<-chan *DeleteDynamicRouteResponse, <-chan error) { + responseChan := make(chan *DeleteDynamicRouteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDynamicRoute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDynamicRouteWithCallback invokes the csas.DeleteDynamicRoute API asynchronously +func (client *Client) DeleteDynamicRouteWithCallback(request *DeleteDynamicRouteRequest, callback func(response *DeleteDynamicRouteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDynamicRouteResponse + var err error + defer close(result) + response, err = client.DeleteDynamicRoute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDynamicRouteRequest is the request struct for api DeleteDynamicRoute +type DeleteDynamicRouteRequest struct { + *requests.RpcRequest + DynamicRouteId string `position:"Query" name:"DynamicRouteId"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// DeleteDynamicRouteResponse is the response struct for api DeleteDynamicRoute +type DeleteDynamicRouteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDynamicRouteRequest creates a request to invoke DeleteDynamicRoute API +func CreateDeleteDynamicRouteRequest() (request *DeleteDynamicRouteRequest) { + request = &DeleteDynamicRouteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "DeleteDynamicRoute", "", "") + request.Method = requests.POST + return +} + +// CreateDeleteDynamicRouteResponse creates a response to parse from DeleteDynamicRoute response +func CreateDeleteDynamicRouteResponse() (response *DeleteDynamicRouteResponse) { + response = &DeleteDynamicRouteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/delete_private_access_application.go b/services/csas/delete_private_access_application.go new file mode 100644 index 000000000..467c42c31 --- /dev/null +++ b/services/csas/delete_private_access_application.go @@ -0,0 +1,100 @@ +package csas + +//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" +) + +// DeletePrivateAccessApplication invokes the csas.DeletePrivateAccessApplication API synchronously +func (client *Client) DeletePrivateAccessApplication(request *DeletePrivateAccessApplicationRequest) (response *DeletePrivateAccessApplicationResponse, err error) { + response = CreateDeletePrivateAccessApplicationResponse() + err = client.DoAction(request, response) + return +} + +// DeletePrivateAccessApplicationWithChan invokes the csas.DeletePrivateAccessApplication API asynchronously +func (client *Client) DeletePrivateAccessApplicationWithChan(request *DeletePrivateAccessApplicationRequest) (<-chan *DeletePrivateAccessApplicationResponse, <-chan error) { + responseChan := make(chan *DeletePrivateAccessApplicationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePrivateAccessApplication(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePrivateAccessApplicationWithCallback invokes the csas.DeletePrivateAccessApplication API asynchronously +func (client *Client) DeletePrivateAccessApplicationWithCallback(request *DeletePrivateAccessApplicationRequest, callback func(response *DeletePrivateAccessApplicationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePrivateAccessApplicationResponse + var err error + defer close(result) + response, err = client.DeletePrivateAccessApplication(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePrivateAccessApplicationRequest is the request struct for api DeletePrivateAccessApplication +type DeletePrivateAccessApplicationRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ApplicationId string `position:"Body" name:"ApplicationId"` +} + +// DeletePrivateAccessApplicationResponse is the response struct for api DeletePrivateAccessApplication +type DeletePrivateAccessApplicationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePrivateAccessApplicationRequest creates a request to invoke DeletePrivateAccessApplication API +func CreateDeletePrivateAccessApplicationRequest() (request *DeletePrivateAccessApplicationRequest) { + request = &DeletePrivateAccessApplicationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "DeletePrivateAccessApplication", "", "") + request.Method = requests.POST + return +} + +// CreateDeletePrivateAccessApplicationResponse creates a response to parse from DeletePrivateAccessApplication response +func CreateDeletePrivateAccessApplicationResponse() (response *DeletePrivateAccessApplicationResponse) { + response = &DeletePrivateAccessApplicationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/delete_private_access_policy.go b/services/csas/delete_private_access_policy.go new file mode 100644 index 000000000..031b1b776 --- /dev/null +++ b/services/csas/delete_private_access_policy.go @@ -0,0 +1,100 @@ +package csas + +//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" +) + +// DeletePrivateAccessPolicy invokes the csas.DeletePrivateAccessPolicy API synchronously +func (client *Client) DeletePrivateAccessPolicy(request *DeletePrivateAccessPolicyRequest) (response *DeletePrivateAccessPolicyResponse, err error) { + response = CreateDeletePrivateAccessPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DeletePrivateAccessPolicyWithChan invokes the csas.DeletePrivateAccessPolicy API asynchronously +func (client *Client) DeletePrivateAccessPolicyWithChan(request *DeletePrivateAccessPolicyRequest) (<-chan *DeletePrivateAccessPolicyResponse, <-chan error) { + responseChan := make(chan *DeletePrivateAccessPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePrivateAccessPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePrivateAccessPolicyWithCallback invokes the csas.DeletePrivateAccessPolicy API asynchronously +func (client *Client) DeletePrivateAccessPolicyWithCallback(request *DeletePrivateAccessPolicyRequest, callback func(response *DeletePrivateAccessPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePrivateAccessPolicyResponse + var err error + defer close(result) + response, err = client.DeletePrivateAccessPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePrivateAccessPolicyRequest is the request struct for api DeletePrivateAccessPolicy +type DeletePrivateAccessPolicyRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PolicyId string `position:"Body" name:"PolicyId"` +} + +// DeletePrivateAccessPolicyResponse is the response struct for api DeletePrivateAccessPolicy +type DeletePrivateAccessPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePrivateAccessPolicyRequest creates a request to invoke DeletePrivateAccessPolicy API +func CreateDeletePrivateAccessPolicyRequest() (request *DeletePrivateAccessPolicyRequest) { + request = &DeletePrivateAccessPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "DeletePrivateAccessPolicy", "", "") + request.Method = requests.POST + return +} + +// CreateDeletePrivateAccessPolicyResponse creates a response to parse from DeletePrivateAccessPolicy response +func CreateDeletePrivateAccessPolicyResponse() (response *DeletePrivateAccessPolicyResponse) { + response = &DeletePrivateAccessPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/delete_private_access_tag.go b/services/csas/delete_private_access_tag.go new file mode 100644 index 000000000..2cc7d3aed --- /dev/null +++ b/services/csas/delete_private_access_tag.go @@ -0,0 +1,100 @@ +package csas + +//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" +) + +// DeletePrivateAccessTag invokes the csas.DeletePrivateAccessTag API synchronously +func (client *Client) DeletePrivateAccessTag(request *DeletePrivateAccessTagRequest) (response *DeletePrivateAccessTagResponse, err error) { + response = CreateDeletePrivateAccessTagResponse() + err = client.DoAction(request, response) + return +} + +// DeletePrivateAccessTagWithChan invokes the csas.DeletePrivateAccessTag API asynchronously +func (client *Client) DeletePrivateAccessTagWithChan(request *DeletePrivateAccessTagRequest) (<-chan *DeletePrivateAccessTagResponse, <-chan error) { + responseChan := make(chan *DeletePrivateAccessTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePrivateAccessTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePrivateAccessTagWithCallback invokes the csas.DeletePrivateAccessTag API asynchronously +func (client *Client) DeletePrivateAccessTagWithCallback(request *DeletePrivateAccessTagRequest, callback func(response *DeletePrivateAccessTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePrivateAccessTagResponse + var err error + defer close(result) + response, err = client.DeletePrivateAccessTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePrivateAccessTagRequest is the request struct for api DeletePrivateAccessTag +type DeletePrivateAccessTagRequest struct { + *requests.RpcRequest + TagId string `position:"Body" name:"TagId"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// DeletePrivateAccessTagResponse is the response struct for api DeletePrivateAccessTag +type DeletePrivateAccessTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePrivateAccessTagRequest creates a request to invoke DeletePrivateAccessTag API +func CreateDeletePrivateAccessTagRequest() (request *DeletePrivateAccessTagRequest) { + request = &DeletePrivateAccessTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "DeletePrivateAccessTag", "", "") + request.Method = requests.POST + return +} + +// CreateDeletePrivateAccessTagResponse creates a response to parse from DeletePrivateAccessTag response +func CreateDeletePrivateAccessTagResponse() (response *DeletePrivateAccessTagResponse) { + response = &DeletePrivateAccessTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/delete_user_group.go b/services/csas/delete_user_group.go new file mode 100644 index 000000000..05d53a96c --- /dev/null +++ b/services/csas/delete_user_group.go @@ -0,0 +1,100 @@ +package csas + +//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" +) + +// DeleteUserGroup invokes the csas.DeleteUserGroup API synchronously +func (client *Client) DeleteUserGroup(request *DeleteUserGroupRequest) (response *DeleteUserGroupResponse, err error) { + response = CreateDeleteUserGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteUserGroupWithChan invokes the csas.DeleteUserGroup API asynchronously +func (client *Client) DeleteUserGroupWithChan(request *DeleteUserGroupRequest) (<-chan *DeleteUserGroupResponse, <-chan error) { + responseChan := make(chan *DeleteUserGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteUserGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteUserGroupWithCallback invokes the csas.DeleteUserGroup API asynchronously +func (client *Client) DeleteUserGroupWithCallback(request *DeleteUserGroupRequest, callback func(response *DeleteUserGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteUserGroupResponse + var err error + defer close(result) + response, err = client.DeleteUserGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteUserGroupRequest is the request struct for api DeleteUserGroup +type DeleteUserGroupRequest struct { + *requests.RpcRequest + UserGroupId string `position:"Body" name:"UserGroupId"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// DeleteUserGroupResponse is the response struct for api DeleteUserGroup +type DeleteUserGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteUserGroupRequest creates a request to invoke DeleteUserGroup API +func CreateDeleteUserGroupRequest() (request *DeleteUserGroupRequest) { + request = &DeleteUserGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "DeleteUserGroup", "", "") + request.Method = requests.POST + return +} + +// CreateDeleteUserGroupResponse creates a response to parse from DeleteUserGroup response +func CreateDeleteUserGroupResponse() (response *DeleteUserGroupResponse) { + response = &DeleteUserGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/detach_application2_connector.go b/services/csas/detach_application2_connector.go new file mode 100644 index 000000000..e285e0e5f --- /dev/null +++ b/services/csas/detach_application2_connector.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// DetachApplication2Connector invokes the csas.DetachApplication2Connector API synchronously +func (client *Client) DetachApplication2Connector(request *DetachApplication2ConnectorRequest) (response *DetachApplication2ConnectorResponse, err error) { + response = CreateDetachApplication2ConnectorResponse() + err = client.DoAction(request, response) + return +} + +// DetachApplication2ConnectorWithChan invokes the csas.DetachApplication2Connector API asynchronously +func (client *Client) DetachApplication2ConnectorWithChan(request *DetachApplication2ConnectorRequest) (<-chan *DetachApplication2ConnectorResponse, <-chan error) { + responseChan := make(chan *DetachApplication2ConnectorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DetachApplication2Connector(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DetachApplication2ConnectorWithCallback invokes the csas.DetachApplication2Connector API asynchronously +func (client *Client) DetachApplication2ConnectorWithCallback(request *DetachApplication2ConnectorRequest, callback func(response *DetachApplication2ConnectorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DetachApplication2ConnectorResponse + var err error + defer close(result) + response, err = client.DetachApplication2Connector(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DetachApplication2ConnectorRequest is the request struct for api DetachApplication2Connector +type DetachApplication2ConnectorRequest struct { + *requests.RpcRequest + ConnectorId string `position:"Body" name:"ConnectorId"` + ApplicationIds *[]string `position:"Body" name:"ApplicationIds" type:"Json"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// DetachApplication2ConnectorResponse is the response struct for api DetachApplication2Connector +type DetachApplication2ConnectorResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDetachApplication2ConnectorRequest creates a request to invoke DetachApplication2Connector API +func CreateDetachApplication2ConnectorRequest() (request *DetachApplication2ConnectorRequest) { + request = &DetachApplication2ConnectorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "DetachApplication2Connector", "", "") + request.Method = requests.POST + return +} + +// CreateDetachApplication2ConnectorResponse creates a response to parse from DetachApplication2Connector response +func CreateDetachApplication2ConnectorResponse() (response *DetachApplication2ConnectorResponse) { + response = &DetachApplication2ConnectorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/get_dynamic_route.go b/services/csas/get_dynamic_route.go new file mode 100644 index 000000000..44f111e9e --- /dev/null +++ b/services/csas/get_dynamic_route.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// GetDynamicRoute invokes the csas.GetDynamicRoute API synchronously +func (client *Client) GetDynamicRoute(request *GetDynamicRouteRequest) (response *GetDynamicRouteResponse, err error) { + response = CreateGetDynamicRouteResponse() + err = client.DoAction(request, response) + return +} + +// GetDynamicRouteWithChan invokes the csas.GetDynamicRoute API asynchronously +func (client *Client) GetDynamicRouteWithChan(request *GetDynamicRouteRequest) (<-chan *GetDynamicRouteResponse, <-chan error) { + responseChan := make(chan *GetDynamicRouteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetDynamicRoute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetDynamicRouteWithCallback invokes the csas.GetDynamicRoute API asynchronously +func (client *Client) GetDynamicRouteWithCallback(request *GetDynamicRouteRequest, callback func(response *GetDynamicRouteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetDynamicRouteResponse + var err error + defer close(result) + response, err = client.GetDynamicRoute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetDynamicRouteRequest is the request struct for api GetDynamicRoute +type GetDynamicRouteRequest struct { + *requests.RpcRequest + DynamicRouteId string `position:"Query" name:"DynamicRouteId"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// GetDynamicRouteResponse is the response struct for api GetDynamicRoute +type GetDynamicRouteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DynamicRoute DynamicRoute `json:"DynamicRoute" xml:"DynamicRoute"` +} + +// CreateGetDynamicRouteRequest creates a request to invoke GetDynamicRoute API +func CreateGetDynamicRouteRequest() (request *GetDynamicRouteRequest) { + request = &GetDynamicRouteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "GetDynamicRoute", "", "") + request.Method = requests.GET + return +} + +// CreateGetDynamicRouteResponse creates a response to parse from GetDynamicRoute response +func CreateGetDynamicRouteResponse() (response *GetDynamicRouteResponse) { + response = &GetDynamicRouteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/get_private_access_application.go b/services/csas/get_private_access_application.go new file mode 100644 index 000000000..9444325b0 --- /dev/null +++ b/services/csas/get_private_access_application.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// GetPrivateAccessApplication invokes the csas.GetPrivateAccessApplication API synchronously +func (client *Client) GetPrivateAccessApplication(request *GetPrivateAccessApplicationRequest) (response *GetPrivateAccessApplicationResponse, err error) { + response = CreateGetPrivateAccessApplicationResponse() + err = client.DoAction(request, response) + return +} + +// GetPrivateAccessApplicationWithChan invokes the csas.GetPrivateAccessApplication API asynchronously +func (client *Client) GetPrivateAccessApplicationWithChan(request *GetPrivateAccessApplicationRequest) (<-chan *GetPrivateAccessApplicationResponse, <-chan error) { + responseChan := make(chan *GetPrivateAccessApplicationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPrivateAccessApplication(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPrivateAccessApplicationWithCallback invokes the csas.GetPrivateAccessApplication API asynchronously +func (client *Client) GetPrivateAccessApplicationWithCallback(request *GetPrivateAccessApplicationRequest, callback func(response *GetPrivateAccessApplicationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPrivateAccessApplicationResponse + var err error + defer close(result) + response, err = client.GetPrivateAccessApplication(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPrivateAccessApplicationRequest is the request struct for api GetPrivateAccessApplication +type GetPrivateAccessApplicationRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + ApplicationId string `position:"Query" name:"ApplicationId"` +} + +// GetPrivateAccessApplicationResponse is the response struct for api GetPrivateAccessApplication +type GetPrivateAccessApplicationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Application Application `json:"Application" xml:"Application"` +} + +// CreateGetPrivateAccessApplicationRequest creates a request to invoke GetPrivateAccessApplication API +func CreateGetPrivateAccessApplicationRequest() (request *GetPrivateAccessApplicationRequest) { + request = &GetPrivateAccessApplicationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "GetPrivateAccessApplication", "", "") + request.Method = requests.GET + return +} + +// CreateGetPrivateAccessApplicationResponse creates a response to parse from GetPrivateAccessApplication response +func CreateGetPrivateAccessApplicationResponse() (response *GetPrivateAccessApplicationResponse) { + response = &GetPrivateAccessApplicationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/get_private_access_policy.go b/services/csas/get_private_access_policy.go new file mode 100644 index 000000000..4e3a5051e --- /dev/null +++ b/services/csas/get_private_access_policy.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// GetPrivateAccessPolicy invokes the csas.GetPrivateAccessPolicy API synchronously +func (client *Client) GetPrivateAccessPolicy(request *GetPrivateAccessPolicyRequest) (response *GetPrivateAccessPolicyResponse, err error) { + response = CreateGetPrivateAccessPolicyResponse() + err = client.DoAction(request, response) + return +} + +// GetPrivateAccessPolicyWithChan invokes the csas.GetPrivateAccessPolicy API asynchronously +func (client *Client) GetPrivateAccessPolicyWithChan(request *GetPrivateAccessPolicyRequest) (<-chan *GetPrivateAccessPolicyResponse, <-chan error) { + responseChan := make(chan *GetPrivateAccessPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPrivateAccessPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPrivateAccessPolicyWithCallback invokes the csas.GetPrivateAccessPolicy API asynchronously +func (client *Client) GetPrivateAccessPolicyWithCallback(request *GetPrivateAccessPolicyRequest, callback func(response *GetPrivateAccessPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPrivateAccessPolicyResponse + var err error + defer close(result) + response, err = client.GetPrivateAccessPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPrivateAccessPolicyRequest is the request struct for api GetPrivateAccessPolicy +type GetPrivateAccessPolicyRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PolicyId string `position:"Query" name:"PolicyId"` +} + +// GetPrivateAccessPolicyResponse is the response struct for api GetPrivateAccessPolicy +type GetPrivateAccessPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Policy Policy `json:"Policy" xml:"Policy"` +} + +// CreateGetPrivateAccessPolicyRequest creates a request to invoke GetPrivateAccessPolicy API +func CreateGetPrivateAccessPolicyRequest() (request *GetPrivateAccessPolicyRequest) { + request = &GetPrivateAccessPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "GetPrivateAccessPolicy", "", "") + request.Method = requests.GET + return +} + +// CreateGetPrivateAccessPolicyResponse creates a response to parse from GetPrivateAccessPolicy response +func CreateGetPrivateAccessPolicyResponse() (response *GetPrivateAccessPolicyResponse) { + response = &GetPrivateAccessPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/get_user_group.go b/services/csas/get_user_group.go new file mode 100644 index 000000000..3d8755d33 --- /dev/null +++ b/services/csas/get_user_group.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// GetUserGroup invokes the csas.GetUserGroup API synchronously +func (client *Client) GetUserGroup(request *GetUserGroupRequest) (response *GetUserGroupResponse, err error) { + response = CreateGetUserGroupResponse() + err = client.DoAction(request, response) + return +} + +// GetUserGroupWithChan invokes the csas.GetUserGroup API asynchronously +func (client *Client) GetUserGroupWithChan(request *GetUserGroupRequest) (<-chan *GetUserGroupResponse, <-chan error) { + responseChan := make(chan *GetUserGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetUserGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetUserGroupWithCallback invokes the csas.GetUserGroup API asynchronously +func (client *Client) GetUserGroupWithCallback(request *GetUserGroupRequest, callback func(response *GetUserGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetUserGroupResponse + var err error + defer close(result) + response, err = client.GetUserGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetUserGroupRequest is the request struct for api GetUserGroup +type GetUserGroupRequest struct { + *requests.RpcRequest + UserGroupId string `position:"Query" name:"UserGroupId"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// GetUserGroupResponse is the response struct for api GetUserGroup +type GetUserGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UserGroup UserGroup `json:"UserGroup" xml:"UserGroup"` +} + +// CreateGetUserGroupRequest creates a request to invoke GetUserGroup API +func CreateGetUserGroupRequest() (request *GetUserGroupRequest) { + request = &GetUserGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "GetUserGroup", "", "") + request.Method = requests.GET + return +} + +// CreateGetUserGroupResponse creates a response to parse from GetUserGroup response +func CreateGetUserGroupResponse() (response *GetUserGroupResponse) { + response = &GetUserGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_applications_for_private_access_policy.go b/services/csas/list_applications_for_private_access_policy.go new file mode 100644 index 000000000..70e4e18b8 --- /dev/null +++ b/services/csas/list_applications_for_private_access_policy.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListApplicationsForPrivateAccessPolicy invokes the csas.ListApplicationsForPrivateAccessPolicy API synchronously +func (client *Client) ListApplicationsForPrivateAccessPolicy(request *ListApplicationsForPrivateAccessPolicyRequest) (response *ListApplicationsForPrivateAccessPolicyResponse, err error) { + response = CreateListApplicationsForPrivateAccessPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ListApplicationsForPrivateAccessPolicyWithChan invokes the csas.ListApplicationsForPrivateAccessPolicy API asynchronously +func (client *Client) ListApplicationsForPrivateAccessPolicyWithChan(request *ListApplicationsForPrivateAccessPolicyRequest) (<-chan *ListApplicationsForPrivateAccessPolicyResponse, <-chan error) { + responseChan := make(chan *ListApplicationsForPrivateAccessPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListApplicationsForPrivateAccessPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListApplicationsForPrivateAccessPolicyWithCallback invokes the csas.ListApplicationsForPrivateAccessPolicy API asynchronously +func (client *Client) ListApplicationsForPrivateAccessPolicyWithCallback(request *ListApplicationsForPrivateAccessPolicyRequest, callback func(response *ListApplicationsForPrivateAccessPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListApplicationsForPrivateAccessPolicyResponse + var err error + defer close(result) + response, err = client.ListApplicationsForPrivateAccessPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListApplicationsForPrivateAccessPolicyRequest is the request struct for api ListApplicationsForPrivateAccessPolicy +type ListApplicationsForPrivateAccessPolicyRequest struct { + *requests.RpcRequest + PolicyIds *[]string `position:"Query" name:"PolicyIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListApplicationsForPrivateAccessPolicyResponse is the response struct for api ListApplicationsForPrivateAccessPolicy +type ListApplicationsForPrivateAccessPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Polices []Policy `json:"Polices" xml:"Polices"` +} + +// CreateListApplicationsForPrivateAccessPolicyRequest creates a request to invoke ListApplicationsForPrivateAccessPolicy API +func CreateListApplicationsForPrivateAccessPolicyRequest() (request *ListApplicationsForPrivateAccessPolicyRequest) { + request = &ListApplicationsForPrivateAccessPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListApplicationsForPrivateAccessPolicy", "", "") + request.Method = requests.GET + return +} + +// CreateListApplicationsForPrivateAccessPolicyResponse creates a response to parse from ListApplicationsForPrivateAccessPolicy response +func CreateListApplicationsForPrivateAccessPolicyResponse() (response *ListApplicationsForPrivateAccessPolicyResponse) { + response = &ListApplicationsForPrivateAccessPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_applications_for_private_access_tag.go b/services/csas/list_applications_for_private_access_tag.go new file mode 100644 index 000000000..b5cfcf072 --- /dev/null +++ b/services/csas/list_applications_for_private_access_tag.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListApplicationsForPrivateAccessTag invokes the csas.ListApplicationsForPrivateAccessTag API synchronously +func (client *Client) ListApplicationsForPrivateAccessTag(request *ListApplicationsForPrivateAccessTagRequest) (response *ListApplicationsForPrivateAccessTagResponse, err error) { + response = CreateListApplicationsForPrivateAccessTagResponse() + err = client.DoAction(request, response) + return +} + +// ListApplicationsForPrivateAccessTagWithChan invokes the csas.ListApplicationsForPrivateAccessTag API asynchronously +func (client *Client) ListApplicationsForPrivateAccessTagWithChan(request *ListApplicationsForPrivateAccessTagRequest) (<-chan *ListApplicationsForPrivateAccessTagResponse, <-chan error) { + responseChan := make(chan *ListApplicationsForPrivateAccessTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListApplicationsForPrivateAccessTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListApplicationsForPrivateAccessTagWithCallback invokes the csas.ListApplicationsForPrivateAccessTag API asynchronously +func (client *Client) ListApplicationsForPrivateAccessTagWithCallback(request *ListApplicationsForPrivateAccessTagRequest, callback func(response *ListApplicationsForPrivateAccessTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListApplicationsForPrivateAccessTagResponse + var err error + defer close(result) + response, err = client.ListApplicationsForPrivateAccessTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListApplicationsForPrivateAccessTagRequest is the request struct for api ListApplicationsForPrivateAccessTag +type ListApplicationsForPrivateAccessTagRequest struct { + *requests.RpcRequest + TagIds *[]string `position:"Query" name:"TagIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListApplicationsForPrivateAccessTagResponse is the response struct for api ListApplicationsForPrivateAccessTag +type ListApplicationsForPrivateAccessTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Tags []Tag `json:"Tags" xml:"Tags"` +} + +// CreateListApplicationsForPrivateAccessTagRequest creates a request to invoke ListApplicationsForPrivateAccessTag API +func CreateListApplicationsForPrivateAccessTagRequest() (request *ListApplicationsForPrivateAccessTagRequest) { + request = &ListApplicationsForPrivateAccessTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListApplicationsForPrivateAccessTag", "", "") + request.Method = requests.GET + return +} + +// CreateListApplicationsForPrivateAccessTagResponse creates a response to parse from ListApplicationsForPrivateAccessTag response +func CreateListApplicationsForPrivateAccessTagResponse() (response *ListApplicationsForPrivateAccessTagResponse) { + response = &ListApplicationsForPrivateAccessTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_connectors.go b/services/csas/list_connectors.go new file mode 100644 index 000000000..496d14a32 --- /dev/null +++ b/services/csas/list_connectors.go @@ -0,0 +1,107 @@ +package csas + +//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" +) + +// ListConnectors invokes the csas.ListConnectors API synchronously +func (client *Client) ListConnectors(request *ListConnectorsRequest) (response *ListConnectorsResponse, err error) { + response = CreateListConnectorsResponse() + err = client.DoAction(request, response) + return +} + +// ListConnectorsWithChan invokes the csas.ListConnectors API asynchronously +func (client *Client) ListConnectorsWithChan(request *ListConnectorsRequest) (<-chan *ListConnectorsResponse, <-chan error) { + responseChan := make(chan *ListConnectorsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListConnectors(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListConnectorsWithCallback invokes the csas.ListConnectors API asynchronously +func (client *Client) ListConnectorsWithCallback(request *ListConnectorsRequest, callback func(response *ListConnectorsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListConnectorsResponse + var err error + defer close(result) + response, err = client.ListConnectors(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListConnectorsRequest is the request struct for api ListConnectors +type ListConnectorsRequest struct { + *requests.RpcRequest + SwitchStatus string `position:"Query" name:"SwitchStatus"` + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + Name string `position:"Query" name:"Name"` + ConnectorIds *[]string `position:"Query" name:"ConnectorIds" type:"Repeated"` + Status string `position:"Query" name:"Status"` +} + +// ListConnectorsResponse is the response struct for api ListConnectors +type ListConnectorsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + Connectors []Connector `json:"Connectors" xml:"Connectors"` +} + +// CreateListConnectorsRequest creates a request to invoke ListConnectors API +func CreateListConnectorsRequest() (request *ListConnectorsRequest) { + request = &ListConnectorsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListConnectors", "", "") + request.Method = requests.GET + return +} + +// CreateListConnectorsResponse creates a response to parse from ListConnectors response +func CreateListConnectorsResponse() (response *ListConnectorsResponse) { + response = &ListConnectorsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_dynamic_route_regions.go b/services/csas/list_dynamic_route_regions.go new file mode 100644 index 000000000..6d1ad80cf --- /dev/null +++ b/services/csas/list_dynamic_route_regions.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListDynamicRouteRegions invokes the csas.ListDynamicRouteRegions API synchronously +func (client *Client) ListDynamicRouteRegions(request *ListDynamicRouteRegionsRequest) (response *ListDynamicRouteRegionsResponse, err error) { + response = CreateListDynamicRouteRegionsResponse() + err = client.DoAction(request, response) + return +} + +// ListDynamicRouteRegionsWithChan invokes the csas.ListDynamicRouteRegions API asynchronously +func (client *Client) ListDynamicRouteRegionsWithChan(request *ListDynamicRouteRegionsRequest) (<-chan *ListDynamicRouteRegionsResponse, <-chan error) { + responseChan := make(chan *ListDynamicRouteRegionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListDynamicRouteRegions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListDynamicRouteRegionsWithCallback invokes the csas.ListDynamicRouteRegions API asynchronously +func (client *Client) ListDynamicRouteRegionsWithCallback(request *ListDynamicRouteRegionsRequest, callback func(response *ListDynamicRouteRegionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListDynamicRouteRegionsResponse + var err error + defer close(result) + response, err = client.ListDynamicRouteRegions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListDynamicRouteRegionsRequest is the request struct for api ListDynamicRouteRegions +type ListDynamicRouteRegionsRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListDynamicRouteRegionsResponse is the response struct for api ListDynamicRouteRegions +type ListDynamicRouteRegionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + Regions []string `json:"Regions" xml:"Regions"` +} + +// CreateListDynamicRouteRegionsRequest creates a request to invoke ListDynamicRouteRegions API +func CreateListDynamicRouteRegionsRequest() (request *ListDynamicRouteRegionsRequest) { + request = &ListDynamicRouteRegionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListDynamicRouteRegions", "", "") + request.Method = requests.GET + return +} + +// CreateListDynamicRouteRegionsResponse creates a response to parse from ListDynamicRouteRegions response +func CreateListDynamicRouteRegionsResponse() (response *ListDynamicRouteRegionsResponse) { + response = &ListDynamicRouteRegionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_dynamic_routes.go b/services/csas/list_dynamic_routes.go new file mode 100644 index 000000000..84471a069 --- /dev/null +++ b/services/csas/list_dynamic_routes.go @@ -0,0 +1,110 @@ +package csas + +//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" +) + +// ListDynamicRoutes invokes the csas.ListDynamicRoutes API synchronously +func (client *Client) ListDynamicRoutes(request *ListDynamicRoutesRequest) (response *ListDynamicRoutesResponse, err error) { + response = CreateListDynamicRoutesResponse() + err = client.DoAction(request, response) + return +} + +// ListDynamicRoutesWithChan invokes the csas.ListDynamicRoutes API asynchronously +func (client *Client) ListDynamicRoutesWithChan(request *ListDynamicRoutesRequest) (<-chan *ListDynamicRoutesResponse, <-chan error) { + responseChan := make(chan *ListDynamicRoutesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListDynamicRoutes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListDynamicRoutesWithCallback invokes the csas.ListDynamicRoutes API asynchronously +func (client *Client) ListDynamicRoutesWithCallback(request *ListDynamicRoutesRequest, callback func(response *ListDynamicRoutesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListDynamicRoutesResponse + var err error + defer close(result) + response, err = client.ListDynamicRoutes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListDynamicRoutesRequest is the request struct for api ListDynamicRoutes +type ListDynamicRoutesRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ApplicationId string `position:"Query" name:"ApplicationId"` + DynamicRouteIds *[]string `position:"Query" name:"DynamicRouteIds" type:"Repeated"` + TagId string `position:"Query" name:"TagId"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + RegionIds *[]string `position:"Query" name:"RegionIds" type:"Repeated"` + NextHop string `position:"Query" name:"NextHop"` + Name string `position:"Query" name:"Name"` + Status string `position:"Query" name:"Status"` +} + +// ListDynamicRoutesResponse is the response struct for api ListDynamicRoutes +type ListDynamicRoutesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + DynamicRoutes []DynamicRoute `json:"DynamicRoutes" xml:"DynamicRoutes"` +} + +// CreateListDynamicRoutesRequest creates a request to invoke ListDynamicRoutes API +func CreateListDynamicRoutesRequest() (request *ListDynamicRoutesRequest) { + request = &ListDynamicRoutesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListDynamicRoutes", "", "") + request.Method = requests.GET + return +} + +// CreateListDynamicRoutesResponse creates a response to parse from ListDynamicRoutes response +func CreateListDynamicRoutesResponse() (response *ListDynamicRoutesResponse) { + response = &ListDynamicRoutesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_polices_for_private_access_application.go b/services/csas/list_polices_for_private_access_application.go new file mode 100644 index 000000000..a5328bee6 --- /dev/null +++ b/services/csas/list_polices_for_private_access_application.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListPolicesForPrivateAccessApplication invokes the csas.ListPolicesForPrivateAccessApplication API synchronously +func (client *Client) ListPolicesForPrivateAccessApplication(request *ListPolicesForPrivateAccessApplicationRequest) (response *ListPolicesForPrivateAccessApplicationResponse, err error) { + response = CreateListPolicesForPrivateAccessApplicationResponse() + err = client.DoAction(request, response) + return +} + +// ListPolicesForPrivateAccessApplicationWithChan invokes the csas.ListPolicesForPrivateAccessApplication API asynchronously +func (client *Client) ListPolicesForPrivateAccessApplicationWithChan(request *ListPolicesForPrivateAccessApplicationRequest) (<-chan *ListPolicesForPrivateAccessApplicationResponse, <-chan error) { + responseChan := make(chan *ListPolicesForPrivateAccessApplicationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPolicesForPrivateAccessApplication(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPolicesForPrivateAccessApplicationWithCallback invokes the csas.ListPolicesForPrivateAccessApplication API asynchronously +func (client *Client) ListPolicesForPrivateAccessApplicationWithCallback(request *ListPolicesForPrivateAccessApplicationRequest, callback func(response *ListPolicesForPrivateAccessApplicationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPolicesForPrivateAccessApplicationResponse + var err error + defer close(result) + response, err = client.ListPolicesForPrivateAccessApplication(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPolicesForPrivateAccessApplicationRequest is the request struct for api ListPolicesForPrivateAccessApplication +type ListPolicesForPrivateAccessApplicationRequest struct { + *requests.RpcRequest + ApplicationIds *[]string `position:"Query" name:"ApplicationIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListPolicesForPrivateAccessApplicationResponse is the response struct for api ListPolicesForPrivateAccessApplication +type ListPolicesForPrivateAccessApplicationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Applications []Application `json:"Applications" xml:"Applications"` +} + +// CreateListPolicesForPrivateAccessApplicationRequest creates a request to invoke ListPolicesForPrivateAccessApplication API +func CreateListPolicesForPrivateAccessApplicationRequest() (request *ListPolicesForPrivateAccessApplicationRequest) { + request = &ListPolicesForPrivateAccessApplicationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPolicesForPrivateAccessApplication", "", "") + request.Method = requests.GET + return +} + +// CreateListPolicesForPrivateAccessApplicationResponse creates a response to parse from ListPolicesForPrivateAccessApplication response +func CreateListPolicesForPrivateAccessApplicationResponse() (response *ListPolicesForPrivateAccessApplicationResponse) { + response = &ListPolicesForPrivateAccessApplicationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_polices_for_private_access_tag.go b/services/csas/list_polices_for_private_access_tag.go new file mode 100644 index 000000000..af02de9a8 --- /dev/null +++ b/services/csas/list_polices_for_private_access_tag.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListPolicesForPrivateAccessTag invokes the csas.ListPolicesForPrivateAccessTag API synchronously +func (client *Client) ListPolicesForPrivateAccessTag(request *ListPolicesForPrivateAccessTagRequest) (response *ListPolicesForPrivateAccessTagResponse, err error) { + response = CreateListPolicesForPrivateAccessTagResponse() + err = client.DoAction(request, response) + return +} + +// ListPolicesForPrivateAccessTagWithChan invokes the csas.ListPolicesForPrivateAccessTag API asynchronously +func (client *Client) ListPolicesForPrivateAccessTagWithChan(request *ListPolicesForPrivateAccessTagRequest) (<-chan *ListPolicesForPrivateAccessTagResponse, <-chan error) { + responseChan := make(chan *ListPolicesForPrivateAccessTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPolicesForPrivateAccessTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPolicesForPrivateAccessTagWithCallback invokes the csas.ListPolicesForPrivateAccessTag API asynchronously +func (client *Client) ListPolicesForPrivateAccessTagWithCallback(request *ListPolicesForPrivateAccessTagRequest, callback func(response *ListPolicesForPrivateAccessTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPolicesForPrivateAccessTagResponse + var err error + defer close(result) + response, err = client.ListPolicesForPrivateAccessTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPolicesForPrivateAccessTagRequest is the request struct for api ListPolicesForPrivateAccessTag +type ListPolicesForPrivateAccessTagRequest struct { + *requests.RpcRequest + TagIds *[]string `position:"Query" name:"TagIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListPolicesForPrivateAccessTagResponse is the response struct for api ListPolicesForPrivateAccessTag +type ListPolicesForPrivateAccessTagResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Tags []Tag `json:"Tags" xml:"Tags"` +} + +// CreateListPolicesForPrivateAccessTagRequest creates a request to invoke ListPolicesForPrivateAccessTag API +func CreateListPolicesForPrivateAccessTagRequest() (request *ListPolicesForPrivateAccessTagRequest) { + request = &ListPolicesForPrivateAccessTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPolicesForPrivateAccessTag", "", "") + request.Method = requests.GET + return +} + +// CreateListPolicesForPrivateAccessTagResponse creates a response to parse from ListPolicesForPrivateAccessTag response +func CreateListPolicesForPrivateAccessTagResponse() (response *ListPolicesForPrivateAccessTagResponse) { + response = &ListPolicesForPrivateAccessTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_polices_for_user_group.go b/services/csas/list_polices_for_user_group.go new file mode 100644 index 000000000..293c7d501 --- /dev/null +++ b/services/csas/list_polices_for_user_group.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListPolicesForUserGroup invokes the csas.ListPolicesForUserGroup API synchronously +func (client *Client) ListPolicesForUserGroup(request *ListPolicesForUserGroupRequest) (response *ListPolicesForUserGroupResponse, err error) { + response = CreateListPolicesForUserGroupResponse() + err = client.DoAction(request, response) + return +} + +// ListPolicesForUserGroupWithChan invokes the csas.ListPolicesForUserGroup API asynchronously +func (client *Client) ListPolicesForUserGroupWithChan(request *ListPolicesForUserGroupRequest) (<-chan *ListPolicesForUserGroupResponse, <-chan error) { + responseChan := make(chan *ListPolicesForUserGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPolicesForUserGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPolicesForUserGroupWithCallback invokes the csas.ListPolicesForUserGroup API asynchronously +func (client *Client) ListPolicesForUserGroupWithCallback(request *ListPolicesForUserGroupRequest, callback func(response *ListPolicesForUserGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPolicesForUserGroupResponse + var err error + defer close(result) + response, err = client.ListPolicesForUserGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPolicesForUserGroupRequest is the request struct for api ListPolicesForUserGroup +type ListPolicesForUserGroupRequest struct { + *requests.RpcRequest + UserGroupIds *[]string `position:"Query" name:"UserGroupIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListPolicesForUserGroupResponse is the response struct for api ListPolicesForUserGroup +type ListPolicesForUserGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + UserGroups []UserGroup `json:"UserGroups" xml:"UserGroups"` +} + +// CreateListPolicesForUserGroupRequest creates a request to invoke ListPolicesForUserGroup API +func CreateListPolicesForUserGroupRequest() (request *ListPolicesForUserGroupRequest) { + request = &ListPolicesForUserGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPolicesForUserGroup", "", "") + request.Method = requests.GET + return +} + +// CreateListPolicesForUserGroupResponse creates a response to parse from ListPolicesForUserGroup response +func CreateListPolicesForUserGroupResponse() (response *ListPolicesForUserGroupResponse) { + response = &ListPolicesForUserGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_private_access_applications.go b/services/csas/list_private_access_applications.go new file mode 100644 index 000000000..3b69fd9be --- /dev/null +++ b/services/csas/list_private_access_applications.go @@ -0,0 +1,109 @@ +package csas + +//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" +) + +// ListPrivateAccessApplications invokes the csas.ListPrivateAccessApplications API synchronously +func (client *Client) ListPrivateAccessApplications(request *ListPrivateAccessApplicationsRequest) (response *ListPrivateAccessApplicationsResponse, err error) { + response = CreateListPrivateAccessApplicationsResponse() + err = client.DoAction(request, response) + return +} + +// ListPrivateAccessApplicationsWithChan invokes the csas.ListPrivateAccessApplications API asynchronously +func (client *Client) ListPrivateAccessApplicationsWithChan(request *ListPrivateAccessApplicationsRequest) (<-chan *ListPrivateAccessApplicationsResponse, <-chan error) { + responseChan := make(chan *ListPrivateAccessApplicationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPrivateAccessApplications(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPrivateAccessApplicationsWithCallback invokes the csas.ListPrivateAccessApplications API asynchronously +func (client *Client) ListPrivateAccessApplicationsWithCallback(request *ListPrivateAccessApplicationsRequest, callback func(response *ListPrivateAccessApplicationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPrivateAccessApplicationsResponse + var err error + defer close(result) + response, err = client.ListPrivateAccessApplications(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPrivateAccessApplicationsRequest is the request struct for api ListPrivateAccessApplications +type ListPrivateAccessApplicationsRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PolicyId string `position:"Query" name:"PolicyId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Address string `position:"Query" name:"Address"` + TagId string `position:"Query" name:"TagId"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + ApplicationIds *[]string `position:"Query" name:"ApplicationIds" type:"Repeated"` + Name string `position:"Query" name:"Name"` + Status string `position:"Query" name:"Status"` +} + +// ListPrivateAccessApplicationsResponse is the response struct for api ListPrivateAccessApplications +type ListPrivateAccessApplicationsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + Applications []Application `json:"Applications" xml:"Applications"` +} + +// CreateListPrivateAccessApplicationsRequest creates a request to invoke ListPrivateAccessApplications API +func CreateListPrivateAccessApplicationsRequest() (request *ListPrivateAccessApplicationsRequest) { + request = &ListPrivateAccessApplicationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPrivateAccessApplications", "", "") + request.Method = requests.GET + return +} + +// CreateListPrivateAccessApplicationsResponse creates a response to parse from ListPrivateAccessApplications response +func CreateListPrivateAccessApplicationsResponse() (response *ListPrivateAccessApplicationsResponse) { + response = &ListPrivateAccessApplicationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_private_access_applications_for_dynamic_route.go b/services/csas/list_private_access_applications_for_dynamic_route.go new file mode 100644 index 000000000..b3f8c0b44 --- /dev/null +++ b/services/csas/list_private_access_applications_for_dynamic_route.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListPrivateAccessApplicationsForDynamicRoute invokes the csas.ListPrivateAccessApplicationsForDynamicRoute API synchronously +func (client *Client) ListPrivateAccessApplicationsForDynamicRoute(request *ListPrivateAccessApplicationsForDynamicRouteRequest) (response *ListPrivateAccessApplicationsForDynamicRouteResponse, err error) { + response = CreateListPrivateAccessApplicationsForDynamicRouteResponse() + err = client.DoAction(request, response) + return +} + +// ListPrivateAccessApplicationsForDynamicRouteWithChan invokes the csas.ListPrivateAccessApplicationsForDynamicRoute API asynchronously +func (client *Client) ListPrivateAccessApplicationsForDynamicRouteWithChan(request *ListPrivateAccessApplicationsForDynamicRouteRequest) (<-chan *ListPrivateAccessApplicationsForDynamicRouteResponse, <-chan error) { + responseChan := make(chan *ListPrivateAccessApplicationsForDynamicRouteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPrivateAccessApplicationsForDynamicRoute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPrivateAccessApplicationsForDynamicRouteWithCallback invokes the csas.ListPrivateAccessApplicationsForDynamicRoute API asynchronously +func (client *Client) ListPrivateAccessApplicationsForDynamicRouteWithCallback(request *ListPrivateAccessApplicationsForDynamicRouteRequest, callback func(response *ListPrivateAccessApplicationsForDynamicRouteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPrivateAccessApplicationsForDynamicRouteResponse + var err error + defer close(result) + response, err = client.ListPrivateAccessApplicationsForDynamicRoute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPrivateAccessApplicationsForDynamicRouteRequest is the request struct for api ListPrivateAccessApplicationsForDynamicRoute +type ListPrivateAccessApplicationsForDynamicRouteRequest struct { + *requests.RpcRequest + DynamicRouteIds *[]string `position:"Query" name:"DynamicRouteIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListPrivateAccessApplicationsForDynamicRouteResponse is the response struct for api ListPrivateAccessApplicationsForDynamicRoute +type ListPrivateAccessApplicationsForDynamicRouteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DynamicRoutes []DynamicRoute `json:"DynamicRoutes" xml:"DynamicRoutes"` +} + +// CreateListPrivateAccessApplicationsForDynamicRouteRequest creates a request to invoke ListPrivateAccessApplicationsForDynamicRoute API +func CreateListPrivateAccessApplicationsForDynamicRouteRequest() (request *ListPrivateAccessApplicationsForDynamicRouteRequest) { + request = &ListPrivateAccessApplicationsForDynamicRouteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPrivateAccessApplicationsForDynamicRoute", "", "") + request.Method = requests.GET + return +} + +// CreateListPrivateAccessApplicationsForDynamicRouteResponse creates a response to parse from ListPrivateAccessApplicationsForDynamicRoute response +func CreateListPrivateAccessApplicationsForDynamicRouteResponse() (response *ListPrivateAccessApplicationsForDynamicRouteResponse) { + response = &ListPrivateAccessApplicationsForDynamicRouteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_private_access_polices.go b/services/csas/list_private_access_polices.go new file mode 100644 index 000000000..9c94c8a67 --- /dev/null +++ b/services/csas/list_private_access_polices.go @@ -0,0 +1,110 @@ +package csas + +//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" +) + +// ListPrivateAccessPolices invokes the csas.ListPrivateAccessPolices API synchronously +func (client *Client) ListPrivateAccessPolices(request *ListPrivateAccessPolicesRequest) (response *ListPrivateAccessPolicesResponse, err error) { + response = CreateListPrivateAccessPolicesResponse() + err = client.DoAction(request, response) + return +} + +// ListPrivateAccessPolicesWithChan invokes the csas.ListPrivateAccessPolices API asynchronously +func (client *Client) ListPrivateAccessPolicesWithChan(request *ListPrivateAccessPolicesRequest) (<-chan *ListPrivateAccessPolicesResponse, <-chan error) { + responseChan := make(chan *ListPrivateAccessPolicesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPrivateAccessPolices(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPrivateAccessPolicesWithCallback invokes the csas.ListPrivateAccessPolices API asynchronously +func (client *Client) ListPrivateAccessPolicesWithCallback(request *ListPrivateAccessPolicesRequest, callback func(response *ListPrivateAccessPolicesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPrivateAccessPolicesResponse + var err error + defer close(result) + response, err = client.ListPrivateAccessPolices(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPrivateAccessPolicesRequest is the request struct for api ListPrivateAccessPolices +type ListPrivateAccessPolicesRequest struct { + *requests.RpcRequest + PolicyIds *[]string `position:"Query" name:"PolicyIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ApplicationId string `position:"Query" name:"ApplicationId"` + TagId string `position:"Query" name:"TagId"` + UserGroupId string `position:"Query" name:"UserGroupId"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + PolicyAction string `position:"Query" name:"PolicyAction"` + Name string `position:"Query" name:"Name"` + Status string `position:"Query" name:"Status"` +} + +// ListPrivateAccessPolicesResponse is the response struct for api ListPrivateAccessPolices +type ListPrivateAccessPolicesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + Polices []Policy `json:"Polices" xml:"Polices"` +} + +// CreateListPrivateAccessPolicesRequest creates a request to invoke ListPrivateAccessPolices API +func CreateListPrivateAccessPolicesRequest() (request *ListPrivateAccessPolicesRequest) { + request = &ListPrivateAccessPolicesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPrivateAccessPolices", "", "") + request.Method = requests.GET + return +} + +// CreateListPrivateAccessPolicesResponse creates a response to parse from ListPrivateAccessPolices response +func CreateListPrivateAccessPolicesResponse() (response *ListPrivateAccessPolicesResponse) { + response = &ListPrivateAccessPolicesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_private_access_tags.go b/services/csas/list_private_access_tags.go new file mode 100644 index 000000000..b4e81b6b5 --- /dev/null +++ b/services/csas/list_private_access_tags.go @@ -0,0 +1,107 @@ +package csas + +//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" +) + +// ListPrivateAccessTags invokes the csas.ListPrivateAccessTags API synchronously +func (client *Client) ListPrivateAccessTags(request *ListPrivateAccessTagsRequest) (response *ListPrivateAccessTagsResponse, err error) { + response = CreateListPrivateAccessTagsResponse() + err = client.DoAction(request, response) + return +} + +// ListPrivateAccessTagsWithChan invokes the csas.ListPrivateAccessTags API asynchronously +func (client *Client) ListPrivateAccessTagsWithChan(request *ListPrivateAccessTagsRequest) (<-chan *ListPrivateAccessTagsResponse, <-chan error) { + responseChan := make(chan *ListPrivateAccessTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPrivateAccessTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPrivateAccessTagsWithCallback invokes the csas.ListPrivateAccessTags API asynchronously +func (client *Client) ListPrivateAccessTagsWithCallback(request *ListPrivateAccessTagsRequest, callback func(response *ListPrivateAccessTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPrivateAccessTagsResponse + var err error + defer close(result) + response, err = client.ListPrivateAccessTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPrivateAccessTagsRequest is the request struct for api ListPrivateAccessTags +type ListPrivateAccessTagsRequest struct { + *requests.RpcRequest + SourceIp string `position:"Query" name:"SourceIp"` + PolicyId string `position:"Query" name:"PolicyId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ApplicationId string `position:"Query" name:"ApplicationId"` + TagIds *[]string `position:"Query" name:"TagIds" type:"Repeated"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + Name string `position:"Query" name:"Name"` +} + +// ListPrivateAccessTagsResponse is the response struct for api ListPrivateAccessTags +type ListPrivateAccessTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + Tags []Tag `json:"Tags" xml:"Tags"` +} + +// CreateListPrivateAccessTagsRequest creates a request to invoke ListPrivateAccessTags API +func CreateListPrivateAccessTagsRequest() (request *ListPrivateAccessTagsRequest) { + request = &ListPrivateAccessTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPrivateAccessTags", "", "") + request.Method = requests.GET + return +} + +// CreateListPrivateAccessTagsResponse creates a response to parse from ListPrivateAccessTags response +func CreateListPrivateAccessTagsResponse() (response *ListPrivateAccessTagsResponse) { + response = &ListPrivateAccessTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_private_access_tags_for_dynamic_route.go b/services/csas/list_private_access_tags_for_dynamic_route.go new file mode 100644 index 000000000..a05d106b6 --- /dev/null +++ b/services/csas/list_private_access_tags_for_dynamic_route.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListPrivateAccessTagsForDynamicRoute invokes the csas.ListPrivateAccessTagsForDynamicRoute API synchronously +func (client *Client) ListPrivateAccessTagsForDynamicRoute(request *ListPrivateAccessTagsForDynamicRouteRequest) (response *ListPrivateAccessTagsForDynamicRouteResponse, err error) { + response = CreateListPrivateAccessTagsForDynamicRouteResponse() + err = client.DoAction(request, response) + return +} + +// ListPrivateAccessTagsForDynamicRouteWithChan invokes the csas.ListPrivateAccessTagsForDynamicRoute API asynchronously +func (client *Client) ListPrivateAccessTagsForDynamicRouteWithChan(request *ListPrivateAccessTagsForDynamicRouteRequest) (<-chan *ListPrivateAccessTagsForDynamicRouteResponse, <-chan error) { + responseChan := make(chan *ListPrivateAccessTagsForDynamicRouteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPrivateAccessTagsForDynamicRoute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPrivateAccessTagsForDynamicRouteWithCallback invokes the csas.ListPrivateAccessTagsForDynamicRoute API asynchronously +func (client *Client) ListPrivateAccessTagsForDynamicRouteWithCallback(request *ListPrivateAccessTagsForDynamicRouteRequest, callback func(response *ListPrivateAccessTagsForDynamicRouteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPrivateAccessTagsForDynamicRouteResponse + var err error + defer close(result) + response, err = client.ListPrivateAccessTagsForDynamicRoute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPrivateAccessTagsForDynamicRouteRequest is the request struct for api ListPrivateAccessTagsForDynamicRoute +type ListPrivateAccessTagsForDynamicRouteRequest struct { + *requests.RpcRequest + DynamicRouteIds *[]string `position:"Query" name:"DynamicRouteIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListPrivateAccessTagsForDynamicRouteResponse is the response struct for api ListPrivateAccessTagsForDynamicRoute +type ListPrivateAccessTagsForDynamicRouteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DynamicRoutes []DynamicRoute `json:"DynamicRoutes" xml:"DynamicRoutes"` +} + +// CreateListPrivateAccessTagsForDynamicRouteRequest creates a request to invoke ListPrivateAccessTagsForDynamicRoute API +func CreateListPrivateAccessTagsForDynamicRouteRequest() (request *ListPrivateAccessTagsForDynamicRouteRequest) { + request = &ListPrivateAccessTagsForDynamicRouteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListPrivateAccessTagsForDynamicRoute", "", "") + request.Method = requests.GET + return +} + +// CreateListPrivateAccessTagsForDynamicRouteResponse creates a response to parse from ListPrivateAccessTagsForDynamicRoute response +func CreateListPrivateAccessTagsForDynamicRouteResponse() (response *ListPrivateAccessTagsForDynamicRouteResponse) { + response = &ListPrivateAccessTagsForDynamicRouteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_tags_for_private_access_application.go b/services/csas/list_tags_for_private_access_application.go new file mode 100644 index 000000000..8b22b18f7 --- /dev/null +++ b/services/csas/list_tags_for_private_access_application.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListTagsForPrivateAccessApplication invokes the csas.ListTagsForPrivateAccessApplication API synchronously +func (client *Client) ListTagsForPrivateAccessApplication(request *ListTagsForPrivateAccessApplicationRequest) (response *ListTagsForPrivateAccessApplicationResponse, err error) { + response = CreateListTagsForPrivateAccessApplicationResponse() + err = client.DoAction(request, response) + return +} + +// ListTagsForPrivateAccessApplicationWithChan invokes the csas.ListTagsForPrivateAccessApplication API asynchronously +func (client *Client) ListTagsForPrivateAccessApplicationWithChan(request *ListTagsForPrivateAccessApplicationRequest) (<-chan *ListTagsForPrivateAccessApplicationResponse, <-chan error) { + responseChan := make(chan *ListTagsForPrivateAccessApplicationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTagsForPrivateAccessApplication(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagsForPrivateAccessApplicationWithCallback invokes the csas.ListTagsForPrivateAccessApplication API asynchronously +func (client *Client) ListTagsForPrivateAccessApplicationWithCallback(request *ListTagsForPrivateAccessApplicationRequest, callback func(response *ListTagsForPrivateAccessApplicationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagsForPrivateAccessApplicationResponse + var err error + defer close(result) + response, err = client.ListTagsForPrivateAccessApplication(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagsForPrivateAccessApplicationRequest is the request struct for api ListTagsForPrivateAccessApplication +type ListTagsForPrivateAccessApplicationRequest struct { + *requests.RpcRequest + ApplicationIds *[]string `position:"Query" name:"ApplicationIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListTagsForPrivateAccessApplicationResponse is the response struct for api ListTagsForPrivateAccessApplication +type ListTagsForPrivateAccessApplicationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Applications []Application `json:"Applications" xml:"Applications"` +} + +// CreateListTagsForPrivateAccessApplicationRequest creates a request to invoke ListTagsForPrivateAccessApplication API +func CreateListTagsForPrivateAccessApplicationRequest() (request *ListTagsForPrivateAccessApplicationRequest) { + request = &ListTagsForPrivateAccessApplicationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListTagsForPrivateAccessApplication", "", "") + request.Method = requests.GET + return +} + +// CreateListTagsForPrivateAccessApplicationResponse creates a response to parse from ListTagsForPrivateAccessApplication response +func CreateListTagsForPrivateAccessApplicationResponse() (response *ListTagsForPrivateAccessApplicationResponse) { + response = &ListTagsForPrivateAccessApplicationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_tags_for_private_access_policy.go b/services/csas/list_tags_for_private_access_policy.go new file mode 100644 index 000000000..eb066c567 --- /dev/null +++ b/services/csas/list_tags_for_private_access_policy.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListTagsForPrivateAccessPolicy invokes the csas.ListTagsForPrivateAccessPolicy API synchronously +func (client *Client) ListTagsForPrivateAccessPolicy(request *ListTagsForPrivateAccessPolicyRequest) (response *ListTagsForPrivateAccessPolicyResponse, err error) { + response = CreateListTagsForPrivateAccessPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ListTagsForPrivateAccessPolicyWithChan invokes the csas.ListTagsForPrivateAccessPolicy API asynchronously +func (client *Client) ListTagsForPrivateAccessPolicyWithChan(request *ListTagsForPrivateAccessPolicyRequest) (<-chan *ListTagsForPrivateAccessPolicyResponse, <-chan error) { + responseChan := make(chan *ListTagsForPrivateAccessPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTagsForPrivateAccessPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagsForPrivateAccessPolicyWithCallback invokes the csas.ListTagsForPrivateAccessPolicy API asynchronously +func (client *Client) ListTagsForPrivateAccessPolicyWithCallback(request *ListTagsForPrivateAccessPolicyRequest, callback func(response *ListTagsForPrivateAccessPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagsForPrivateAccessPolicyResponse + var err error + defer close(result) + response, err = client.ListTagsForPrivateAccessPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagsForPrivateAccessPolicyRequest is the request struct for api ListTagsForPrivateAccessPolicy +type ListTagsForPrivateAccessPolicyRequest struct { + *requests.RpcRequest + PolicyIds *[]string `position:"Query" name:"PolicyIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListTagsForPrivateAccessPolicyResponse is the response struct for api ListTagsForPrivateAccessPolicy +type ListTagsForPrivateAccessPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Polices []Policy `json:"Polices" xml:"Polices"` +} + +// CreateListTagsForPrivateAccessPolicyRequest creates a request to invoke ListTagsForPrivateAccessPolicy API +func CreateListTagsForPrivateAccessPolicyRequest() (request *ListTagsForPrivateAccessPolicyRequest) { + request = &ListTagsForPrivateAccessPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListTagsForPrivateAccessPolicy", "", "") + request.Method = requests.GET + return +} + +// CreateListTagsForPrivateAccessPolicyResponse creates a response to parse from ListTagsForPrivateAccessPolicy response +func CreateListTagsForPrivateAccessPolicyResponse() (response *ListTagsForPrivateAccessPolicyResponse) { + response = &ListTagsForPrivateAccessPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_user_groups.go b/services/csas/list_user_groups.go new file mode 100644 index 000000000..67c4b3656 --- /dev/null +++ b/services/csas/list_user_groups.go @@ -0,0 +1,107 @@ +package csas + +//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" +) + +// ListUserGroups invokes the csas.ListUserGroups API synchronously +func (client *Client) ListUserGroups(request *ListUserGroupsRequest) (response *ListUserGroupsResponse, err error) { + response = CreateListUserGroupsResponse() + err = client.DoAction(request, response) + return +} + +// ListUserGroupsWithChan invokes the csas.ListUserGroups API asynchronously +func (client *Client) ListUserGroupsWithChan(request *ListUserGroupsRequest) (<-chan *ListUserGroupsResponse, <-chan error) { + responseChan := make(chan *ListUserGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUserGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUserGroupsWithCallback invokes the csas.ListUserGroups API asynchronously +func (client *Client) ListUserGroupsWithCallback(request *ListUserGroupsRequest, callback func(response *ListUserGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUserGroupsResponse + var err error + defer close(result) + response, err = client.ListUserGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUserGroupsRequest is the request struct for api ListUserGroups +type ListUserGroupsRequest struct { + *requests.RpcRequest + AttributeValue string `position:"Query" name:"AttributeValue"` + SourceIp string `position:"Query" name:"SourceIp"` + PAPolicyId string `position:"Query" name:"PAPolicyId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + CurrentPage requests.Integer `position:"Query" name:"CurrentPage"` + UserGroupIds *[]string `position:"Query" name:"UserGroupIds" type:"Repeated"` + Name string `position:"Query" name:"Name"` +} + +// ListUserGroupsResponse is the response struct for api ListUserGroups +type ListUserGroupsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalNum int `json:"TotalNum" xml:"TotalNum"` + UserGroups []UserGroup `json:"UserGroups" xml:"UserGroups"` +} + +// CreateListUserGroupsRequest creates a request to invoke ListUserGroups API +func CreateListUserGroupsRequest() (request *ListUserGroupsRequest) { + request = &ListUserGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListUserGroups", "", "") + request.Method = requests.GET + return +} + +// CreateListUserGroupsResponse creates a response to parse from ListUserGroups response +func CreateListUserGroupsResponse() (response *ListUserGroupsResponse) { + response = &ListUserGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/list_user_groups_for_private_access_policy.go b/services/csas/list_user_groups_for_private_access_policy.go new file mode 100644 index 000000000..0c0cb6445 --- /dev/null +++ b/services/csas/list_user_groups_for_private_access_policy.go @@ -0,0 +1,101 @@ +package csas + +//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" +) + +// ListUserGroupsForPrivateAccessPolicy invokes the csas.ListUserGroupsForPrivateAccessPolicy API synchronously +func (client *Client) ListUserGroupsForPrivateAccessPolicy(request *ListUserGroupsForPrivateAccessPolicyRequest) (response *ListUserGroupsForPrivateAccessPolicyResponse, err error) { + response = CreateListUserGroupsForPrivateAccessPolicyResponse() + err = client.DoAction(request, response) + return +} + +// ListUserGroupsForPrivateAccessPolicyWithChan invokes the csas.ListUserGroupsForPrivateAccessPolicy API asynchronously +func (client *Client) ListUserGroupsForPrivateAccessPolicyWithChan(request *ListUserGroupsForPrivateAccessPolicyRequest) (<-chan *ListUserGroupsForPrivateAccessPolicyResponse, <-chan error) { + responseChan := make(chan *ListUserGroupsForPrivateAccessPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUserGroupsForPrivateAccessPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUserGroupsForPrivateAccessPolicyWithCallback invokes the csas.ListUserGroupsForPrivateAccessPolicy API asynchronously +func (client *Client) ListUserGroupsForPrivateAccessPolicyWithCallback(request *ListUserGroupsForPrivateAccessPolicyRequest, callback func(response *ListUserGroupsForPrivateAccessPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUserGroupsForPrivateAccessPolicyResponse + var err error + defer close(result) + response, err = client.ListUserGroupsForPrivateAccessPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUserGroupsForPrivateAccessPolicyRequest is the request struct for api ListUserGroupsForPrivateAccessPolicy +type ListUserGroupsForPrivateAccessPolicyRequest struct { + *requests.RpcRequest + PolicyIds *[]string `position:"Query" name:"PolicyIds" type:"Repeated"` + SourceIp string `position:"Query" name:"SourceIp"` +} + +// ListUserGroupsForPrivateAccessPolicyResponse is the response struct for api ListUserGroupsForPrivateAccessPolicy +type ListUserGroupsForPrivateAccessPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Polices []Policy `json:"Polices" xml:"Polices"` +} + +// CreateListUserGroupsForPrivateAccessPolicyRequest creates a request to invoke ListUserGroupsForPrivateAccessPolicy API +func CreateListUserGroupsForPrivateAccessPolicyRequest() (request *ListUserGroupsForPrivateAccessPolicyRequest) { + request = &ListUserGroupsForPrivateAccessPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "ListUserGroupsForPrivateAccessPolicy", "", "") + request.Method = requests.GET + return +} + +// CreateListUserGroupsForPrivateAccessPolicyResponse creates a response to parse from ListUserGroupsForPrivateAccessPolicy response +func CreateListUserGroupsForPrivateAccessPolicyResponse() (response *ListUserGroupsForPrivateAccessPolicyResponse) { + response = &ListUserGroupsForPrivateAccessPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/struct_addresses_in_get_private_access_application.go b/services/csas/struct_addresses_in_get_private_access_application.go new file mode 100644 index 000000000..8bbc2775d --- /dev/null +++ b/services/csas/struct_addresses_in_get_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AddressesInGetPrivateAccessApplication is a nested struct in csas response +type AddressesInGetPrivateAccessApplication struct { + Address []string `json:"address" xml:"address"` +} diff --git a/services/csas/struct_addresses_in_list_applications_for_private_access_policy.go b/services/csas/struct_addresses_in_list_applications_for_private_access_policy.go new file mode 100644 index 000000000..c6c1bf004 --- /dev/null +++ b/services/csas/struct_addresses_in_list_applications_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AddressesInListApplicationsForPrivateAccessPolicy is a nested struct in csas response +type AddressesInListApplicationsForPrivateAccessPolicy struct { + Address []string `json:"address" xml:"address"` +} diff --git a/services/csas/struct_addresses_in_list_applications_for_private_access_tag.go b/services/csas/struct_addresses_in_list_applications_for_private_access_tag.go new file mode 100644 index 000000000..468fb49d6 --- /dev/null +++ b/services/csas/struct_addresses_in_list_applications_for_private_access_tag.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AddressesInListApplicationsForPrivateAccessTag is a nested struct in csas response +type AddressesInListApplicationsForPrivateAccessTag struct { + Address []string `json:"address" xml:"address"` +} diff --git a/services/csas/struct_addresses_in_list_private_access_applications.go b/services/csas/struct_addresses_in_list_private_access_applications.go new file mode 100644 index 000000000..8a02e4b04 --- /dev/null +++ b/services/csas/struct_addresses_in_list_private_access_applications.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AddressesInListPrivateAccessApplications is a nested struct in csas response +type AddressesInListPrivateAccessApplications struct { + Address []string `json:"address" xml:"address"` +} diff --git a/services/csas/struct_addresses_in_list_private_access_applications_for_dynamic_route.go b/services/csas/struct_addresses_in_list_private_access_applications_for_dynamic_route.go new file mode 100644 index 000000000..e1e7931a8 --- /dev/null +++ b/services/csas/struct_addresses_in_list_private_access_applications_for_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AddressesInListPrivateAccessApplicationsForDynamicRoute is a nested struct in csas response +type AddressesInListPrivateAccessApplicationsForDynamicRoute struct { + Address []string `json:"address" xml:"address"` +} diff --git a/services/csas/struct_application.go b/services/csas/struct_application.go new file mode 100644 index 000000000..f39b6a686 --- /dev/null +++ b/services/csas/struct_application.go @@ -0,0 +1,33 @@ +package csas + +//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. + +// Application is a nested struct in csas response +type Application struct { + Name string `json:"Name" xml:"Name"` + ApplicationId string `json:"ApplicationId" xml:"ApplicationId"` + Protocol string `json:"Protocol" xml:"Protocol"` + ApplicationName string `json:"ApplicationName" xml:"ApplicationName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + Addresses []string `json:"Addresses" xml:"Addresses"` + PolicyIds []string `json:"PolicyIds" xml:"PolicyIds"` + TagIds []string `json:"TagIds" xml:"TagIds"` + Tags []Tag `json:"Tags" xml:"Tags"` + PortRanges []PortRange `json:"PortRanges" xml:"PortRanges"` + Policies []Policy `json:"Policies" xml:"Policies"` +} diff --git a/services/csas/struct_application_ids_in_get_dynamic_route.go b/services/csas/struct_application_ids_in_get_dynamic_route.go new file mode 100644 index 000000000..f3961f0b5 --- /dev/null +++ b/services/csas/struct_application_ids_in_get_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationIdsInGetDynamicRoute is a nested struct in csas response +type ApplicationIdsInGetDynamicRoute struct { + ApplicationId []string `json:"applicationId" xml:"applicationId"` +} diff --git a/services/csas/struct_application_ids_in_get_private_access_policy.go b/services/csas/struct_application_ids_in_get_private_access_policy.go new file mode 100644 index 000000000..8619a9c90 --- /dev/null +++ b/services/csas/struct_application_ids_in_get_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationIdsInGetPrivateAccessPolicy is a nested struct in csas response +type ApplicationIdsInGetPrivateAccessPolicy struct { + ApplicationId []string `json:"applicationId" xml:"applicationId"` +} diff --git a/services/csas/struct_application_ids_in_list_dynamic_routes.go b/services/csas/struct_application_ids_in_list_dynamic_routes.go new file mode 100644 index 000000000..800da142c --- /dev/null +++ b/services/csas/struct_application_ids_in_list_dynamic_routes.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationIdsInListDynamicRoutes is a nested struct in csas response +type ApplicationIdsInListDynamicRoutes struct { + ApplicationId []string `json:"applicationId" xml:"applicationId"` +} diff --git a/services/csas/struct_application_ids_in_list_private_access_polices.go b/services/csas/struct_application_ids_in_list_private_access_polices.go new file mode 100644 index 000000000..1bba089d6 --- /dev/null +++ b/services/csas/struct_application_ids_in_list_private_access_polices.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationIdsInListPrivateAccessPolices is a nested struct in csas response +type ApplicationIdsInListPrivateAccessPolices struct { + ApplicationId []string `json:"applicationId" xml:"applicationId"` +} diff --git a/services/csas/struct_application_ids_in_list_private_access_tags.go b/services/csas/struct_application_ids_in_list_private_access_tags.go new file mode 100644 index 000000000..7e5cea74c --- /dev/null +++ b/services/csas/struct_application_ids_in_list_private_access_tags.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationIdsInListPrivateAccessTags is a nested struct in csas response +type ApplicationIdsInListPrivateAccessTags struct { + ApplicationId []string `json:"applicationId" xml:"applicationId"` +} diff --git a/services/csas/struct_applications_in_list_applications_for_private_access_policy.go b/services/csas/struct_applications_in_list_applications_for_private_access_policy.go new file mode 100644 index 000000000..2bd42d026 --- /dev/null +++ b/services/csas/struct_applications_in_list_applications_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationsInListApplicationsForPrivateAccessPolicy is a nested struct in csas response +type ApplicationsInListApplicationsForPrivateAccessPolicy struct { + Application []Application `json:"application" xml:"application"` +} diff --git a/services/csas/struct_applications_in_list_applications_for_private_access_tag.go b/services/csas/struct_applications_in_list_applications_for_private_access_tag.go new file mode 100644 index 000000000..80f396f29 --- /dev/null +++ b/services/csas/struct_applications_in_list_applications_for_private_access_tag.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationsInListApplicationsForPrivateAccessTag is a nested struct in csas response +type ApplicationsInListApplicationsForPrivateAccessTag struct { + Application []Application `json:"application" xml:"application"` +} diff --git a/services/csas/struct_applications_in_list_connectors.go b/services/csas/struct_applications_in_list_connectors.go new file mode 100644 index 000000000..92eb94ed1 --- /dev/null +++ b/services/csas/struct_applications_in_list_connectors.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationsInListConnectors is a nested struct in csas response +type ApplicationsInListConnectors struct { + Application []Application `json:"application" xml:"application"` +} diff --git a/services/csas/struct_applications_in_list_polices_for_private_access_application.go b/services/csas/struct_applications_in_list_polices_for_private_access_application.go new file mode 100644 index 000000000..7b47a015a --- /dev/null +++ b/services/csas/struct_applications_in_list_polices_for_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationsInListPolicesForPrivateAccessApplication is a nested struct in csas response +type ApplicationsInListPolicesForPrivateAccessApplication struct { + Application []Application `json:"application" xml:"application"` +} diff --git a/services/csas/struct_applications_in_list_private_access_applications.go b/services/csas/struct_applications_in_list_private_access_applications.go new file mode 100644 index 000000000..430a4e6aa --- /dev/null +++ b/services/csas/struct_applications_in_list_private_access_applications.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationsInListPrivateAccessApplications is a nested struct in csas response +type ApplicationsInListPrivateAccessApplications struct { + Application []Application `json:"application" xml:"application"` +} diff --git a/services/csas/struct_applications_in_list_private_access_applications_for_dynamic_route.go b/services/csas/struct_applications_in_list_private_access_applications_for_dynamic_route.go new file mode 100644 index 000000000..2d001e08f --- /dev/null +++ b/services/csas/struct_applications_in_list_private_access_applications_for_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationsInListPrivateAccessApplicationsForDynamicRoute is a nested struct in csas response +type ApplicationsInListPrivateAccessApplicationsForDynamicRoute struct { + Application []Application `json:"application" xml:"application"` +} diff --git a/services/csas/struct_applications_in_list_tags_for_private_access_application.go b/services/csas/struct_applications_in_list_tags_for_private_access_application.go new file mode 100644 index 000000000..13e16b115 --- /dev/null +++ b/services/csas/struct_applications_in_list_tags_for_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// ApplicationsInListTagsForPrivateAccessApplication is a nested struct in csas response +type ApplicationsInListTagsForPrivateAccessApplication struct { + Application []Application `json:"application" xml:"application"` +} diff --git a/services/csas/struct_attribute.go b/services/csas/struct_attribute.go new file mode 100644 index 000000000..6343dda08 --- /dev/null +++ b/services/csas/struct_attribute.go @@ -0,0 +1,24 @@ +package csas + +//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 csas response +type Attribute struct { + Value string `json:"Value" xml:"Value"` + UserGroupType string `json:"UserGroupType" xml:"UserGroupType"` + Relation string `json:"Relation" xml:"Relation"` + IdpId int `json:"IdpId" xml:"IdpId"` +} diff --git a/services/csas/struct_attributes_in_get_user_group.go b/services/csas/struct_attributes_in_get_user_group.go new file mode 100644 index 000000000..167949bdc --- /dev/null +++ b/services/csas/struct_attributes_in_get_user_group.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AttributesInGetUserGroup is a nested struct in csas response +type AttributesInGetUserGroup struct { + Attribute []Attribute `json:"attribute" xml:"attribute"` +} diff --git a/services/csas/struct_attributes_in_list_user_groups.go b/services/csas/struct_attributes_in_list_user_groups.go new file mode 100644 index 000000000..1f46de164 --- /dev/null +++ b/services/csas/struct_attributes_in_list_user_groups.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AttributesInListUserGroups is a nested struct in csas response +type AttributesInListUserGroups struct { + Attribute []Attribute `json:"attribute" xml:"attribute"` +} diff --git a/services/csas/struct_attributes_in_list_user_groups_for_private_access_policy.go b/services/csas/struct_attributes_in_list_user_groups_for_private_access_policy.go new file mode 100644 index 000000000..716a1c973 --- /dev/null +++ b/services/csas/struct_attributes_in_list_user_groups_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// AttributesInListUserGroupsForPrivateAccessPolicy is a nested struct in csas response +type AttributesInListUserGroupsForPrivateAccessPolicy struct { + Attribute []Attribute `json:"attribute" xml:"attribute"` +} diff --git a/services/csas/struct_connector.go b/services/csas/struct_connector.go new file mode 100644 index 000000000..2e765ed93 --- /dev/null +++ b/services/csas/struct_connector.go @@ -0,0 +1,28 @@ +package csas + +//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. + +// Connector is a nested struct in csas response +type Connector struct { + ConnectorId string `json:"ConnectorId" xml:"ConnectorId"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` + SwitchStatus string `json:"SwitchStatus" xml:"SwitchStatus"` + Status string `json:"Status" xml:"Status"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UpgradeTime UpgradeTime `json:"UpgradeTime" xml:"UpgradeTime"` + Applications []Application `json:"Applications" xml:"Applications"` +} diff --git a/services/csas/struct_connectors.go b/services/csas/struct_connectors.go new file mode 100644 index 000000000..02de809ad --- /dev/null +++ b/services/csas/struct_connectors.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// Connectors is a nested struct in csas response +type Connectors struct { + Connector []Connector `json:"connector" xml:"connector"` +} diff --git a/services/csas/struct_custom_user_attribute.go b/services/csas/struct_custom_user_attribute.go new file mode 100644 index 000000000..181292694 --- /dev/null +++ b/services/csas/struct_custom_user_attribute.go @@ -0,0 +1,24 @@ +package csas + +//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. + +// CustomUserAttribute is a nested struct in csas response +type CustomUserAttribute struct { + Value string `json:"Value" xml:"Value"` + UserGroupType string `json:"UserGroupType" xml:"UserGroupType"` + Relation string `json:"Relation" xml:"Relation"` + IdpId int `json:"IdpId" xml:"IdpId"` +} diff --git a/services/csas/struct_custom_user_attributes_in_get_private_access_policy.go b/services/csas/struct_custom_user_attributes_in_get_private_access_policy.go new file mode 100644 index 000000000..c87035c74 --- /dev/null +++ b/services/csas/struct_custom_user_attributes_in_get_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// CustomUserAttributesInGetPrivateAccessPolicy is a nested struct in csas response +type CustomUserAttributesInGetPrivateAccessPolicy struct { + CustomUserAttribute []CustomUserAttribute `json:"customUserAttribute" xml:"customUserAttribute"` +} diff --git a/services/csas/struct_custom_user_attributes_in_list_polices_for_private_access_application.go b/services/csas/struct_custom_user_attributes_in_list_polices_for_private_access_application.go new file mode 100644 index 000000000..4c00ad1bc --- /dev/null +++ b/services/csas/struct_custom_user_attributes_in_list_polices_for_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// CustomUserAttributesInListPolicesForPrivateAccessApplication is a nested struct in csas response +type CustomUserAttributesInListPolicesForPrivateAccessApplication struct { + CustomUserAttribute []CustomUserAttribute `json:"customUserAttribute" xml:"customUserAttribute"` +} diff --git a/services/csas/struct_custom_user_attributes_in_list_polices_for_private_access_tag.go b/services/csas/struct_custom_user_attributes_in_list_polices_for_private_access_tag.go new file mode 100644 index 000000000..c553d8ef1 --- /dev/null +++ b/services/csas/struct_custom_user_attributes_in_list_polices_for_private_access_tag.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// CustomUserAttributesInListPolicesForPrivateAccessTag is a nested struct in csas response +type CustomUserAttributesInListPolicesForPrivateAccessTag struct { + CustomUserAttribute []CustomUserAttribute `json:"customUserAttribute" xml:"customUserAttribute"` +} diff --git a/services/csas/struct_custom_user_attributes_in_list_private_access_polices.go b/services/csas/struct_custom_user_attributes_in_list_private_access_polices.go new file mode 100644 index 000000000..a0a41d741 --- /dev/null +++ b/services/csas/struct_custom_user_attributes_in_list_private_access_polices.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// CustomUserAttributesInListPrivateAccessPolices is a nested struct in csas response +type CustomUserAttributesInListPrivateAccessPolices struct { + CustomUserAttribute []CustomUserAttribute `json:"customUserAttribute" xml:"customUserAttribute"` +} diff --git a/services/csas/struct_dynamic_route.go b/services/csas/struct_dynamic_route.go new file mode 100644 index 000000000..15676fb7a --- /dev/null +++ b/services/csas/struct_dynamic_route.go @@ -0,0 +1,34 @@ +package csas + +//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. + +// DynamicRoute is a nested struct in csas response +type DynamicRoute struct { + Name string `json:"Name" xml:"Name"` + DynamicRouteId string `json:"DynamicRouteId" xml:"DynamicRouteId"` + Priority int `json:"Priority" xml:"Priority"` + DynamicRouteType string `json:"DynamicRouteType" xml:"DynamicRouteType"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + NextHop string `json:"NextHop" xml:"NextHop"` + Status string `json:"Status" xml:"Status"` + ApplicationType string `json:"ApplicationType" xml:"ApplicationType"` + Description string `json:"Description" xml:"Description"` + RegionIds []string `json:"RegionIds" xml:"RegionIds"` + ApplicationIds []string `json:"ApplicationIds" xml:"ApplicationIds"` + TagIds []string `json:"TagIds" xml:"TagIds"` + Tags []Tag `json:"Tags" xml:"Tags"` + Applications []Application `json:"Applications" xml:"Applications"` +} diff --git a/services/csas/struct_dynamic_routes_in_list_dynamic_routes.go b/services/csas/struct_dynamic_routes_in_list_dynamic_routes.go new file mode 100644 index 000000000..f9e12684c --- /dev/null +++ b/services/csas/struct_dynamic_routes_in_list_dynamic_routes.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// DynamicRoutesInListDynamicRoutes is a nested struct in csas response +type DynamicRoutesInListDynamicRoutes struct { + DynamicRoute []DynamicRoute `json:"dynamicRoute" xml:"dynamicRoute"` +} diff --git a/services/csas/struct_dynamic_routes_in_list_private_access_applications_for_dynamic_route.go b/services/csas/struct_dynamic_routes_in_list_private_access_applications_for_dynamic_route.go new file mode 100644 index 000000000..55504bb00 --- /dev/null +++ b/services/csas/struct_dynamic_routes_in_list_private_access_applications_for_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// DynamicRoutesInListPrivateAccessApplicationsForDynamicRoute is a nested struct in csas response +type DynamicRoutesInListPrivateAccessApplicationsForDynamicRoute struct { + DynamicRoute []DynamicRoute `json:"dynamicRoute" xml:"dynamicRoute"` +} diff --git a/services/csas/struct_dynamic_routes_in_list_private_access_tags_for_dynamic_route.go b/services/csas/struct_dynamic_routes_in_list_private_access_tags_for_dynamic_route.go new file mode 100644 index 000000000..6c96a3217 --- /dev/null +++ b/services/csas/struct_dynamic_routes_in_list_private_access_tags_for_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// DynamicRoutesInListPrivateAccessTagsForDynamicRoute is a nested struct in csas response +type DynamicRoutesInListPrivateAccessTagsForDynamicRoute struct { + DynamicRoute []DynamicRoute `json:"dynamicRoute" xml:"dynamicRoute"` +} diff --git a/services/csas/struct_polices_in_list_applications_for_private_access_policy.go b/services/csas/struct_polices_in_list_applications_for_private_access_policy.go new file mode 100644 index 000000000..4d28a803e --- /dev/null +++ b/services/csas/struct_polices_in_list_applications_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicesInListApplicationsForPrivateAccessPolicy is a nested struct in csas response +type PolicesInListApplicationsForPrivateAccessPolicy struct { + Policy []Policy `json:"policy" xml:"policy"` +} diff --git a/services/csas/struct_polices_in_list_polices_for_private_access_tag.go b/services/csas/struct_polices_in_list_polices_for_private_access_tag.go new file mode 100644 index 000000000..bcef04004 --- /dev/null +++ b/services/csas/struct_polices_in_list_polices_for_private_access_tag.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicesInListPolicesForPrivateAccessTag is a nested struct in csas response +type PolicesInListPolicesForPrivateAccessTag struct { + Policy []Policy `json:"policy" xml:"policy"` +} diff --git a/services/csas/struct_polices_in_list_polices_for_user_group.go b/services/csas/struct_polices_in_list_polices_for_user_group.go new file mode 100644 index 000000000..3434a3b44 --- /dev/null +++ b/services/csas/struct_polices_in_list_polices_for_user_group.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicesInListPolicesForUserGroup is a nested struct in csas response +type PolicesInListPolicesForUserGroup struct { + Policy []Policy `json:"policy" xml:"policy"` +} diff --git a/services/csas/struct_polices_in_list_private_access_polices.go b/services/csas/struct_polices_in_list_private_access_polices.go new file mode 100644 index 000000000..0570d8555 --- /dev/null +++ b/services/csas/struct_polices_in_list_private_access_polices.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicesInListPrivateAccessPolices is a nested struct in csas response +type PolicesInListPrivateAccessPolices struct { + Policy []Policy `json:"policy" xml:"policy"` +} diff --git a/services/csas/struct_polices_in_list_tags_for_private_access_policy.go b/services/csas/struct_polices_in_list_tags_for_private_access_policy.go new file mode 100644 index 000000000..f486723ee --- /dev/null +++ b/services/csas/struct_polices_in_list_tags_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicesInListTagsForPrivateAccessPolicy is a nested struct in csas response +type PolicesInListTagsForPrivateAccessPolicy struct { + Policy []Policy `json:"policy" xml:"policy"` +} diff --git a/services/csas/struct_polices_in_list_user_groups_for_private_access_policy.go b/services/csas/struct_polices_in_list_user_groups_for_private_access_policy.go new file mode 100644 index 000000000..6b7baac4f --- /dev/null +++ b/services/csas/struct_polices_in_list_user_groups_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicesInListUserGroupsForPrivateAccessPolicy is a nested struct in csas response +type PolicesInListUserGroupsForPrivateAccessPolicy struct { + Policy []Policy `json:"policy" xml:"policy"` +} diff --git a/services/csas/struct_policies.go b/services/csas/struct_policies.go new file mode 100644 index 000000000..1ebcdb943 --- /dev/null +++ b/services/csas/struct_policies.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// Policies is a nested struct in csas response +type Policies struct { + Policy []Policy `json:"policy" xml:"policy"` +} diff --git a/services/csas/struct_policy.go b/services/csas/struct_policy.go new file mode 100644 index 000000000..28b9e86a7 --- /dev/null +++ b/services/csas/struct_policy.go @@ -0,0 +1,38 @@ +package csas + +//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. + +// Policy is a nested struct in csas response +type Policy struct { + Name string `json:"Name" xml:"Name"` + Priority int `json:"Priority" xml:"Priority"` + PolicyType string `json:"PolicyType" xml:"PolicyType"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + PolicyAction string `json:"PolicyAction" xml:"PolicyAction"` + PolicyId string `json:"PolicyId" xml:"PolicyId"` + UserGroupType string `json:"UserGroupType" xml:"UserGroupType"` + UserGroupMode string `json:"UserGroupMode" xml:"UserGroupMode"` + Status string `json:"Status" xml:"Status"` + ApplicationType string `json:"ApplicationType" xml:"ApplicationType"` + Description string `json:"Description" xml:"Description"` + UserGroupIds []string `json:"UserGroupIds" xml:"UserGroupIds"` + ApplicationIds []string `json:"ApplicationIds" xml:"ApplicationIds"` + TagIds []string `json:"TagIds" xml:"TagIds"` + Tags []Tag `json:"Tags" xml:"Tags"` + CustomUserAttributes []CustomUserAttribute `json:"CustomUserAttributes" xml:"CustomUserAttributes"` + UserGroups []UserGroup `json:"UserGroups" xml:"UserGroups"` + Applications []Application `json:"Applications" xml:"Applications"` +} diff --git a/services/csas/struct_policy_ids_in_get_private_access_application.go b/services/csas/struct_policy_ids_in_get_private_access_application.go new file mode 100644 index 000000000..613df7d05 --- /dev/null +++ b/services/csas/struct_policy_ids_in_get_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicyIdsInGetPrivateAccessApplication is a nested struct in csas response +type PolicyIdsInGetPrivateAccessApplication struct { + PolicyId []string `json:"policyId" xml:"policyId"` +} diff --git a/services/csas/struct_policy_ids_in_list_private_access_applications.go b/services/csas/struct_policy_ids_in_list_private_access_applications.go new file mode 100644 index 000000000..06bcebc9a --- /dev/null +++ b/services/csas/struct_policy_ids_in_list_private_access_applications.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicyIdsInListPrivateAccessApplications is a nested struct in csas response +type PolicyIdsInListPrivateAccessApplications struct { + PolicyId []string `json:"policyId" xml:"policyId"` +} diff --git a/services/csas/struct_policy_ids_in_list_private_access_tags.go b/services/csas/struct_policy_ids_in_list_private_access_tags.go new file mode 100644 index 000000000..b3de458a3 --- /dev/null +++ b/services/csas/struct_policy_ids_in_list_private_access_tags.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PolicyIdsInListPrivateAccessTags is a nested struct in csas response +type PolicyIdsInListPrivateAccessTags struct { + PolicyId []string `json:"policyId" xml:"policyId"` +} diff --git a/services/csas/struct_port_range.go b/services/csas/struct_port_range.go new file mode 100644 index 000000000..60ab2206b --- /dev/null +++ b/services/csas/struct_port_range.go @@ -0,0 +1,22 @@ +package csas + +//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. + +// PortRange is a nested struct in csas response +type PortRange struct { + Begin int `json:"Begin" xml:"Begin"` + End int `json:"End" xml:"End"` +} diff --git a/services/csas/struct_port_ranges_in_get_private_access_application.go b/services/csas/struct_port_ranges_in_get_private_access_application.go new file mode 100644 index 000000000..16a903317 --- /dev/null +++ b/services/csas/struct_port_ranges_in_get_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PortRangesInGetPrivateAccessApplication is a nested struct in csas response +type PortRangesInGetPrivateAccessApplication struct { + PortRange []PortRange `json:"portRange" xml:"portRange"` +} diff --git a/services/csas/struct_port_ranges_in_list_applications_for_private_access_policy.go b/services/csas/struct_port_ranges_in_list_applications_for_private_access_policy.go new file mode 100644 index 000000000..9b77fd2d5 --- /dev/null +++ b/services/csas/struct_port_ranges_in_list_applications_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PortRangesInListApplicationsForPrivateAccessPolicy is a nested struct in csas response +type PortRangesInListApplicationsForPrivateAccessPolicy struct { + PortRange []PortRange `json:"portRange" xml:"portRange"` +} diff --git a/services/csas/struct_port_ranges_in_list_applications_for_private_access_tag.go b/services/csas/struct_port_ranges_in_list_applications_for_private_access_tag.go new file mode 100644 index 000000000..325ea874f --- /dev/null +++ b/services/csas/struct_port_ranges_in_list_applications_for_private_access_tag.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PortRangesInListApplicationsForPrivateAccessTag is a nested struct in csas response +type PortRangesInListApplicationsForPrivateAccessTag struct { + PortRange []PortRange `json:"portRange" xml:"portRange"` +} diff --git a/services/csas/struct_port_ranges_in_list_private_access_applications.go b/services/csas/struct_port_ranges_in_list_private_access_applications.go new file mode 100644 index 000000000..8fee64695 --- /dev/null +++ b/services/csas/struct_port_ranges_in_list_private_access_applications.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PortRangesInListPrivateAccessApplications is a nested struct in csas response +type PortRangesInListPrivateAccessApplications struct { + PortRange []PortRange `json:"portRange" xml:"portRange"` +} diff --git a/services/csas/struct_port_ranges_in_list_private_access_applications_for_dynamic_route.go b/services/csas/struct_port_ranges_in_list_private_access_applications_for_dynamic_route.go new file mode 100644 index 000000000..2a8697886 --- /dev/null +++ b/services/csas/struct_port_ranges_in_list_private_access_applications_for_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// PortRangesInListPrivateAccessApplicationsForDynamicRoute is a nested struct in csas response +type PortRangesInListPrivateAccessApplicationsForDynamicRoute struct { + PortRange []PortRange `json:"portRange" xml:"portRange"` +} diff --git a/services/csas/struct_region_ids_in_get_dynamic_route.go b/services/csas/struct_region_ids_in_get_dynamic_route.go new file mode 100644 index 000000000..3b8aa0127 --- /dev/null +++ b/services/csas/struct_region_ids_in_get_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// RegionIdsInGetDynamicRoute is a nested struct in csas response +type RegionIdsInGetDynamicRoute struct { + RegionId []string `json:"regionId" xml:"regionId"` +} diff --git a/services/csas/struct_region_ids_in_list_dynamic_routes.go b/services/csas/struct_region_ids_in_list_dynamic_routes.go new file mode 100644 index 000000000..3db356cab --- /dev/null +++ b/services/csas/struct_region_ids_in_list_dynamic_routes.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// RegionIdsInListDynamicRoutes is a nested struct in csas response +type RegionIdsInListDynamicRoutes struct { + RegionId []string `json:"regionId" xml:"regionId"` +} diff --git a/services/csas/struct_regions.go b/services/csas/struct_regions.go new file mode 100644 index 000000000..267fc84c6 --- /dev/null +++ b/services/csas/struct_regions.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// Regions is a nested struct in csas response +type Regions struct { + Region []string `json:"region" xml:"region"` +} diff --git a/services/csas/struct_tag.go b/services/csas/struct_tag.go new file mode 100644 index 000000000..867843915 --- /dev/null +++ b/services/csas/struct_tag.go @@ -0,0 +1,29 @@ +package csas + +//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. + +// Tag is a nested struct in csas response +type Tag struct { + Name string `json:"Name" xml:"Name"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TagId string `json:"TagId" xml:"TagId"` + Description string `json:"Description" xml:"Description"` + TagType string `json:"TagType" xml:"TagType"` + ApplicationIds []string `json:"ApplicationIds" xml:"ApplicationIds"` + PolicyIds []string `json:"PolicyIds" xml:"PolicyIds"` + Polices []Policy `json:"Polices" xml:"Polices"` + Applications []Application `json:"Applications" xml:"Applications"` +} diff --git a/services/csas/struct_tag_ids_in_get_dynamic_route.go b/services/csas/struct_tag_ids_in_get_dynamic_route.go new file mode 100644 index 000000000..0df79706b --- /dev/null +++ b/services/csas/struct_tag_ids_in_get_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagIdsInGetDynamicRoute is a nested struct in csas response +type TagIdsInGetDynamicRoute struct { + TagId []string `json:"tagId" xml:"tagId"` +} diff --git a/services/csas/struct_tag_ids_in_get_private_access_application.go b/services/csas/struct_tag_ids_in_get_private_access_application.go new file mode 100644 index 000000000..ad39ab97a --- /dev/null +++ b/services/csas/struct_tag_ids_in_get_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagIdsInGetPrivateAccessApplication is a nested struct in csas response +type TagIdsInGetPrivateAccessApplication struct { + TagId []string `json:"tagId" xml:"tagId"` +} diff --git a/services/csas/struct_tag_ids_in_get_private_access_policy.go b/services/csas/struct_tag_ids_in_get_private_access_policy.go new file mode 100644 index 000000000..14cebfe90 --- /dev/null +++ b/services/csas/struct_tag_ids_in_get_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagIdsInGetPrivateAccessPolicy is a nested struct in csas response +type TagIdsInGetPrivateAccessPolicy struct { + TagId []string `json:"tagId" xml:"tagId"` +} diff --git a/services/csas/struct_tag_ids_in_list_dynamic_routes.go b/services/csas/struct_tag_ids_in_list_dynamic_routes.go new file mode 100644 index 000000000..92ecf4d4b --- /dev/null +++ b/services/csas/struct_tag_ids_in_list_dynamic_routes.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagIdsInListDynamicRoutes is a nested struct in csas response +type TagIdsInListDynamicRoutes struct { + TagId []string `json:"tagId" xml:"tagId"` +} diff --git a/services/csas/struct_tag_ids_in_list_private_access_applications.go b/services/csas/struct_tag_ids_in_list_private_access_applications.go new file mode 100644 index 000000000..438b94415 --- /dev/null +++ b/services/csas/struct_tag_ids_in_list_private_access_applications.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagIdsInListPrivateAccessApplications is a nested struct in csas response +type TagIdsInListPrivateAccessApplications struct { + TagId []string `json:"tagId" xml:"tagId"` +} diff --git a/services/csas/struct_tag_ids_in_list_private_access_polices.go b/services/csas/struct_tag_ids_in_list_private_access_polices.go new file mode 100644 index 000000000..c4a122443 --- /dev/null +++ b/services/csas/struct_tag_ids_in_list_private_access_polices.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagIdsInListPrivateAccessPolices is a nested struct in csas response +type TagIdsInListPrivateAccessPolices struct { + TagId []string `json:"tagId" xml:"tagId"` +} diff --git a/services/csas/struct_tags_in_list_applications_for_private_access_tag.go b/services/csas/struct_tags_in_list_applications_for_private_access_tag.go new file mode 100644 index 000000000..b52102fbd --- /dev/null +++ b/services/csas/struct_tags_in_list_applications_for_private_access_tag.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagsInListApplicationsForPrivateAccessTag is a nested struct in csas response +type TagsInListApplicationsForPrivateAccessTag struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/services/csas/struct_tags_in_list_polices_for_private_access_tag.go b/services/csas/struct_tags_in_list_polices_for_private_access_tag.go new file mode 100644 index 000000000..ead0c86d1 --- /dev/null +++ b/services/csas/struct_tags_in_list_polices_for_private_access_tag.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagsInListPolicesForPrivateAccessTag is a nested struct in csas response +type TagsInListPolicesForPrivateAccessTag struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/services/csas/struct_tags_in_list_private_access_tags.go b/services/csas/struct_tags_in_list_private_access_tags.go new file mode 100644 index 000000000..132d7429f --- /dev/null +++ b/services/csas/struct_tags_in_list_private_access_tags.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagsInListPrivateAccessTags is a nested struct in csas response +type TagsInListPrivateAccessTags struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/services/csas/struct_tags_in_list_private_access_tags_for_dynamic_route.go b/services/csas/struct_tags_in_list_private_access_tags_for_dynamic_route.go new file mode 100644 index 000000000..9b98168be --- /dev/null +++ b/services/csas/struct_tags_in_list_private_access_tags_for_dynamic_route.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagsInListPrivateAccessTagsForDynamicRoute is a nested struct in csas response +type TagsInListPrivateAccessTagsForDynamicRoute struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/services/csas/struct_tags_in_list_tags_for_private_access_application.go b/services/csas/struct_tags_in_list_tags_for_private_access_application.go new file mode 100644 index 000000000..470859263 --- /dev/null +++ b/services/csas/struct_tags_in_list_tags_for_private_access_application.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagsInListTagsForPrivateAccessApplication is a nested struct in csas response +type TagsInListTagsForPrivateAccessApplication struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/services/csas/struct_tags_in_list_tags_for_private_access_policy.go b/services/csas/struct_tags_in_list_tags_for_private_access_policy.go new file mode 100644 index 000000000..bb81c951d --- /dev/null +++ b/services/csas/struct_tags_in_list_tags_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// TagsInListTagsForPrivateAccessPolicy is a nested struct in csas response +type TagsInListTagsForPrivateAccessPolicy struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/services/csas/struct_upgrade_time.go b/services/csas/struct_upgrade_time.go new file mode 100644 index 000000000..ed63426a0 --- /dev/null +++ b/services/csas/struct_upgrade_time.go @@ -0,0 +1,22 @@ +package csas + +//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. + +// UpgradeTime is a nested struct in csas response +type UpgradeTime struct { + Start string `json:"Start" xml:"Start"` + End string `json:"End" xml:"End"` +} diff --git a/services/csas/struct_user_group.go b/services/csas/struct_user_group.go new file mode 100644 index 000000000..7023bceef --- /dev/null +++ b/services/csas/struct_user_group.go @@ -0,0 +1,26 @@ +package csas + +//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. + +// UserGroup is a nested struct in csas response +type UserGroup struct { + Name string `json:"Name" xml:"Name"` + UserGroupId string `json:"UserGroupId" xml:"UserGroupId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Description string `json:"Description" xml:"Description"` + Polices []Policy `json:"Polices" xml:"Polices"` + Attributes []Attribute `json:"Attributes" xml:"Attributes"` +} diff --git a/services/csas/struct_user_group_ids_in_get_private_access_policy.go b/services/csas/struct_user_group_ids_in_get_private_access_policy.go new file mode 100644 index 000000000..aa73dec1d --- /dev/null +++ b/services/csas/struct_user_group_ids_in_get_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// UserGroupIdsInGetPrivateAccessPolicy is a nested struct in csas response +type UserGroupIdsInGetPrivateAccessPolicy struct { + UserGroupId []string `json:"userGroupId" xml:"userGroupId"` +} diff --git a/services/csas/struct_user_group_ids_in_list_private_access_polices.go b/services/csas/struct_user_group_ids_in_list_private_access_polices.go new file mode 100644 index 000000000..e5c8c53b6 --- /dev/null +++ b/services/csas/struct_user_group_ids_in_list_private_access_polices.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// UserGroupIdsInListPrivateAccessPolices is a nested struct in csas response +type UserGroupIdsInListPrivateAccessPolices struct { + UserGroupId []string `json:"userGroupId" xml:"userGroupId"` +} diff --git a/services/csas/struct_user_groups_in_list_polices_for_user_group.go b/services/csas/struct_user_groups_in_list_polices_for_user_group.go new file mode 100644 index 000000000..34dc49336 --- /dev/null +++ b/services/csas/struct_user_groups_in_list_polices_for_user_group.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// UserGroupsInListPolicesForUserGroup is a nested struct in csas response +type UserGroupsInListPolicesForUserGroup struct { + UserGroup []UserGroup `json:"userGroup" xml:"userGroup"` +} diff --git a/services/csas/struct_user_groups_in_list_user_groups.go b/services/csas/struct_user_groups_in_list_user_groups.go new file mode 100644 index 000000000..7acfb7e02 --- /dev/null +++ b/services/csas/struct_user_groups_in_list_user_groups.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// UserGroupsInListUserGroups is a nested struct in csas response +type UserGroupsInListUserGroups struct { + UserGroup []UserGroup `json:"userGroup" xml:"userGroup"` +} diff --git a/services/csas/struct_user_groups_in_list_user_groups_for_private_access_policy.go b/services/csas/struct_user_groups_in_list_user_groups_for_private_access_policy.go new file mode 100644 index 000000000..54a39776a --- /dev/null +++ b/services/csas/struct_user_groups_in_list_user_groups_for_private_access_policy.go @@ -0,0 +1,21 @@ +package csas + +//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. + +// UserGroupsInListUserGroupsForPrivateAccessPolicy is a nested struct in csas response +type UserGroupsInListUserGroupsForPrivateAccessPolicy struct { + UserGroup []UserGroup `json:"userGroup" xml:"userGroup"` +} diff --git a/services/csas/update_dynamic_route.go b/services/csas/update_dynamic_route.go new file mode 100644 index 000000000..560f66ee2 --- /dev/null +++ b/services/csas/update_dynamic_route.go @@ -0,0 +1,111 @@ +package csas + +//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" +) + +// UpdateDynamicRoute invokes the csas.UpdateDynamicRoute API synchronously +func (client *Client) UpdateDynamicRoute(request *UpdateDynamicRouteRequest) (response *UpdateDynamicRouteResponse, err error) { + response = CreateUpdateDynamicRouteResponse() + err = client.DoAction(request, response) + return +} + +// UpdateDynamicRouteWithChan invokes the csas.UpdateDynamicRoute API asynchronously +func (client *Client) UpdateDynamicRouteWithChan(request *UpdateDynamicRouteRequest) (<-chan *UpdateDynamicRouteResponse, <-chan error) { + responseChan := make(chan *UpdateDynamicRouteResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateDynamicRoute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateDynamicRouteWithCallback invokes the csas.UpdateDynamicRoute API asynchronously +func (client *Client) UpdateDynamicRouteWithCallback(request *UpdateDynamicRouteRequest, callback func(response *UpdateDynamicRouteResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateDynamicRouteResponse + var err error + defer close(result) + response, err = client.UpdateDynamicRoute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateDynamicRouteRequest is the request struct for api UpdateDynamicRoute +type UpdateDynamicRouteRequest struct { + *requests.RpcRequest + Description string `position:"Body" name:"Description"` + DynamicRouteId string `position:"Body" name:"DynamicRouteId"` + SourceIp string `position:"Query" name:"SourceIp"` + DynamicRouteType string `position:"Body" name:"DynamicRouteType"` + TagIds *[]string `position:"Body" name:"TagIds" type:"Repeated"` + RegionIds *[]string `position:"Body" name:"RegionIds" type:"Repeated"` + Priority requests.Integer `position:"Body" name:"Priority"` + NextHop string `position:"Body" name:"NextHop"` + ApplicationIds *[]string `position:"Body" name:"ApplicationIds" type:"Repeated"` + ModifyType string `position:"Body" name:"ModifyType"` + Name string `position:"Body" name:"Name"` + ApplicationType string `position:"Body" name:"ApplicationType"` + Status string `position:"Body" name:"Status"` +} + +// UpdateDynamicRouteResponse is the response struct for api UpdateDynamicRoute +type UpdateDynamicRouteResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateDynamicRouteRequest creates a request to invoke UpdateDynamicRoute API +func CreateUpdateDynamicRouteRequest() (request *UpdateDynamicRouteRequest) { + request = &UpdateDynamicRouteRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "UpdateDynamicRoute", "", "") + request.Method = requests.POST + return +} + +// CreateUpdateDynamicRouteResponse creates a response to parse from UpdateDynamicRoute response +func CreateUpdateDynamicRouteResponse() (response *UpdateDynamicRouteResponse) { + response = &UpdateDynamicRouteResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/update_private_access_application.go b/services/csas/update_private_access_application.go new file mode 100644 index 000000000..7947cb623 --- /dev/null +++ b/services/csas/update_private_access_application.go @@ -0,0 +1,113 @@ +package csas + +//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" +) + +// UpdatePrivateAccessApplication invokes the csas.UpdatePrivateAccessApplication API synchronously +func (client *Client) UpdatePrivateAccessApplication(request *UpdatePrivateAccessApplicationRequest) (response *UpdatePrivateAccessApplicationResponse, err error) { + response = CreateUpdatePrivateAccessApplicationResponse() + err = client.DoAction(request, response) + return +} + +// UpdatePrivateAccessApplicationWithChan invokes the csas.UpdatePrivateAccessApplication API asynchronously +func (client *Client) UpdatePrivateAccessApplicationWithChan(request *UpdatePrivateAccessApplicationRequest) (<-chan *UpdatePrivateAccessApplicationResponse, <-chan error) { + responseChan := make(chan *UpdatePrivateAccessApplicationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdatePrivateAccessApplication(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdatePrivateAccessApplicationWithCallback invokes the csas.UpdatePrivateAccessApplication API asynchronously +func (client *Client) UpdatePrivateAccessApplicationWithCallback(request *UpdatePrivateAccessApplicationRequest, callback func(response *UpdatePrivateAccessApplicationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdatePrivateAccessApplicationResponse + var err error + defer close(result) + response, err = client.UpdatePrivateAccessApplication(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdatePrivateAccessApplicationRequest is the request struct for api UpdatePrivateAccessApplication +type UpdatePrivateAccessApplicationRequest struct { + *requests.RpcRequest + Addresses *[]string `position:"Body" name:"Addresses" type:"Json"` + Description string `position:"Body" name:"Description"` + Protocol string `position:"Body" name:"Protocol"` + SourceIp string `position:"Query" name:"SourceIp"` + ApplicationId string `position:"Body" name:"ApplicationId"` + TagIds *[]string `position:"Body" name:"TagIds" type:"Json"` + PortRanges *[]UpdatePrivateAccessApplicationPortRanges `position:"Body" name:"PortRanges" type:"Json"` + ModifyType string `position:"Body" name:"ModifyType"` + Status string `position:"Body" name:"Status"` +} + +// UpdatePrivateAccessApplicationPortRanges is a repeated param struct in UpdatePrivateAccessApplicationRequest +type UpdatePrivateAccessApplicationPortRanges struct { + End string `name:"End"` + Begin string `name:"Begin"` +} + +// UpdatePrivateAccessApplicationResponse is the response struct for api UpdatePrivateAccessApplication +type UpdatePrivateAccessApplicationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdatePrivateAccessApplicationRequest creates a request to invoke UpdatePrivateAccessApplication API +func CreateUpdatePrivateAccessApplicationRequest() (request *UpdatePrivateAccessApplicationRequest) { + request = &UpdatePrivateAccessApplicationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "UpdatePrivateAccessApplication", "", "") + request.Method = requests.POST + return +} + +// CreateUpdatePrivateAccessApplicationResponse creates a response to parse from UpdatePrivateAccessApplication response +func CreateUpdatePrivateAccessApplicationResponse() (response *UpdatePrivateAccessApplicationResponse) { + response = &UpdatePrivateAccessApplicationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/update_private_access_policy.go b/services/csas/update_private_access_policy.go new file mode 100644 index 000000000..b3632d3fc --- /dev/null +++ b/services/csas/update_private_access_policy.go @@ -0,0 +1,119 @@ +package csas + +//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" +) + +// UpdatePrivateAccessPolicy invokes the csas.UpdatePrivateAccessPolicy API synchronously +func (client *Client) UpdatePrivateAccessPolicy(request *UpdatePrivateAccessPolicyRequest) (response *UpdatePrivateAccessPolicyResponse, err error) { + response = CreateUpdatePrivateAccessPolicyResponse() + err = client.DoAction(request, response) + return +} + +// UpdatePrivateAccessPolicyWithChan invokes the csas.UpdatePrivateAccessPolicy API asynchronously +func (client *Client) UpdatePrivateAccessPolicyWithChan(request *UpdatePrivateAccessPolicyRequest) (<-chan *UpdatePrivateAccessPolicyResponse, <-chan error) { + responseChan := make(chan *UpdatePrivateAccessPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdatePrivateAccessPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdatePrivateAccessPolicyWithCallback invokes the csas.UpdatePrivateAccessPolicy API asynchronously +func (client *Client) UpdatePrivateAccessPolicyWithCallback(request *UpdatePrivateAccessPolicyRequest, callback func(response *UpdatePrivateAccessPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdatePrivateAccessPolicyResponse + var err error + defer close(result) + response, err = client.UpdatePrivateAccessPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdatePrivateAccessPolicyRequest is the request struct for api UpdatePrivateAccessPolicy +type UpdatePrivateAccessPolicyRequest struct { + *requests.RpcRequest + Description string `position:"Body" name:"Description"` + SourceIp string `position:"Query" name:"SourceIp"` + PolicyId string `position:"Body" name:"PolicyId"` + CustomUserAttributes *[]UpdatePrivateAccessPolicyCustomUserAttributes `position:"Body" name:"CustomUserAttributes" type:"Json"` + TagIds *[]string `position:"Body" name:"TagIds" type:"Json"` + UserGroupIds *[]string `position:"Body" name:"UserGroupIds" type:"Json"` + PolicyAction string `position:"Body" name:"PolicyAction"` + Priority requests.Integer `position:"Body" name:"Priority"` + ApplicationIds *[]string `position:"Body" name:"ApplicationIds" type:"Json"` + UserGroupMode string `position:"Body" name:"UserGroupMode"` + ModifyType string `position:"Body" name:"ModifyType"` + ApplicationType string `position:"Body" name:"ApplicationType"` + Status string `position:"Body" name:"Status"` +} + +// UpdatePrivateAccessPolicyCustomUserAttributes is a repeated param struct in UpdatePrivateAccessPolicyRequest +type UpdatePrivateAccessPolicyCustomUserAttributes struct { + UserGroupType string `name:"UserGroupType"` + IdpId string `name:"IdpId"` + Value string `name:"Value"` + Relation string `name:"Relation"` +} + +// UpdatePrivateAccessPolicyResponse is the response struct for api UpdatePrivateAccessPolicy +type UpdatePrivateAccessPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdatePrivateAccessPolicyRequest creates a request to invoke UpdatePrivateAccessPolicy API +func CreateUpdatePrivateAccessPolicyRequest() (request *UpdatePrivateAccessPolicyRequest) { + request = &UpdatePrivateAccessPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "UpdatePrivateAccessPolicy", "", "") + request.Method = requests.POST + return +} + +// CreateUpdatePrivateAccessPolicyResponse creates a response to parse from UpdatePrivateAccessPolicy response +func CreateUpdatePrivateAccessPolicyResponse() (response *UpdatePrivateAccessPolicyResponse) { + response = &UpdatePrivateAccessPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/csas/update_user_group.go b/services/csas/update_user_group.go new file mode 100644 index 000000000..19ac98058 --- /dev/null +++ b/services/csas/update_user_group.go @@ -0,0 +1,111 @@ +package csas + +//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" +) + +// UpdateUserGroup invokes the csas.UpdateUserGroup API synchronously +func (client *Client) UpdateUserGroup(request *UpdateUserGroupRequest) (response *UpdateUserGroupResponse, err error) { + response = CreateUpdateUserGroupResponse() + err = client.DoAction(request, response) + return +} + +// UpdateUserGroupWithChan invokes the csas.UpdateUserGroup API asynchronously +func (client *Client) UpdateUserGroupWithChan(request *UpdateUserGroupRequest) (<-chan *UpdateUserGroupResponse, <-chan error) { + responseChan := make(chan *UpdateUserGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateUserGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateUserGroupWithCallback invokes the csas.UpdateUserGroup API asynchronously +func (client *Client) UpdateUserGroupWithCallback(request *UpdateUserGroupRequest, callback func(response *UpdateUserGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateUserGroupResponse + var err error + defer close(result) + response, err = client.UpdateUserGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateUserGroupRequest is the request struct for api UpdateUserGroup +type UpdateUserGroupRequest struct { + *requests.RpcRequest + UserGroupId string `position:"Body" name:"UserGroupId"` + Description string `position:"Body" name:"Description"` + SourceIp string `position:"Query" name:"SourceIp"` + ModifyType string `position:"Body" name:"ModifyType"` + Attributes *[]UpdateUserGroupAttributes `position:"Body" name:"Attributes" type:"Repeated"` +} + +// UpdateUserGroupAttributes is a repeated param struct in UpdateUserGroupRequest +type UpdateUserGroupAttributes struct { + UserGroupType string `name:"UserGroupType"` + IdpId string `name:"IdpId"` + Value string `name:"Value"` + Relation string `name:"Relation"` +} + +// UpdateUserGroupResponse is the response struct for api UpdateUserGroup +type UpdateUserGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateUserGroupRequest creates a request to invoke UpdateUserGroup API +func CreateUpdateUserGroupRequest() (request *UpdateUserGroupRequest) { + request = &UpdateUserGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("csas", "2023-01-20", "UpdateUserGroup", "", "") + request.Method = requests.POST + return +} + +// CreateUpdateUserGroupResponse creates a response to parse from UpdateUserGroup response +func CreateUpdateUserGroupResponse() (response *UpdateUserGroupResponse) { + response = &UpdateUserGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +}