DeleteUserView.go raw
1 // Copyright 2018 JDCLOUD.COM
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // NOTE: This class is auto generated by the jdcloud code generator program.
16
17 package apis
18
19 import (
20 "github.com/go-acme/jdcloud-sdk-go/core"
21 domainservice "github.com/go-acme/jdcloud-sdk-go/services/domainservice/models"
22 )
23
24 type DeleteUserViewRequest struct {
25 core.JDCloudRequest
26
27 /* 地域ID */
28 RegionId string `json:"regionId"`
29
30 /* 域名ID,请使用describeDomains接口获取。 */
31 DomainId string `json:"domainId"`
32
33 /* 删除自定义线路的参数 */
34 Req *domainservice.DelView `json:"req"`
35 }
36
37 /*
38 * param regionId: 地域ID (Required)
39 * param domainId: 域名ID,请使用describeDomains接口获取。 (Required)
40 * param req: 删除自定义线路的参数 (Required)
41 *
42 * @Deprecated, not compatible when mandatory parameters changed
43 */
44 func NewDeleteUserViewRequest(
45 regionId string,
46 domainId string,
47 req *domainservice.DelView,
48 ) *DeleteUserViewRequest {
49
50 return &DeleteUserViewRequest{
51 JDCloudRequest: core.JDCloudRequest{
52 URL: "/regions/{regionId}/domain/{domainId}/DeleteUserView",
53 Method: "POST",
54 Header: nil,
55 Version: "v2",
56 },
57 RegionId: regionId,
58 DomainId: domainId,
59 Req: req,
60 }
61 }
62
63 /*
64 * param regionId: 地域ID (Required)
65 * param domainId: 域名ID,请使用describeDomains接口获取。 (Required)
66 * param req: 删除自定义线路的参数 (Required)
67 */
68 func NewDeleteUserViewRequestWithAllParams(
69 regionId string,
70 domainId string,
71 req *domainservice.DelView,
72 ) *DeleteUserViewRequest {
73
74 return &DeleteUserViewRequest{
75 JDCloudRequest: core.JDCloudRequest{
76 URL: "/regions/{regionId}/domain/{domainId}/DeleteUserView",
77 Method: "POST",
78 Header: nil,
79 Version: "v2",
80 },
81 RegionId: regionId,
82 DomainId: domainId,
83 Req: req,
84 }
85 }
86
87 /* This constructor has better compatible ability when API parameters changed */
88 func NewDeleteUserViewRequestWithoutParam() *DeleteUserViewRequest {
89
90 return &DeleteUserViewRequest{
91 JDCloudRequest: core.JDCloudRequest{
92 URL: "/regions/{regionId}/domain/{domainId}/DeleteUserView",
93 Method: "POST",
94 Header: nil,
95 Version: "v2",
96 },
97 }
98 }
99
100 /* param regionId: 地域ID(Required) */
101 func (r *DeleteUserViewRequest) SetRegionId(regionId string) {
102 r.RegionId = regionId
103 }
104
105 /* param domainId: 域名ID,请使用describeDomains接口获取。(Required) */
106 func (r *DeleteUserViewRequest) SetDomainId(domainId string) {
107 r.DomainId = domainId
108 }
109
110 /* param req: 删除自定义线路的参数(Required) */
111 func (r *DeleteUserViewRequest) SetReq(req *domainservice.DelView) {
112 r.Req = req
113 }
114
115 // GetRegionId returns path parameter 'regionId' if exist,
116 // otherwise return empty string
117 func (r DeleteUserViewRequest) GetRegionId() string {
118 return r.RegionId
119 }
120
121 type DeleteUserViewResponse struct {
122 RequestID string `json:"requestId"`
123 Error core.ErrorResponse `json:"error"`
124 Result DeleteUserViewResult `json:"result"`
125 }
126
127 type DeleteUserViewResult struct {
128 }
129