Skip to content

Commit 106523e

Browse files
release 3.1.176 source code
1 parent 7f91ff3 commit 106523e

File tree

1,260 files changed

+103943
-9172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,260 files changed

+103943
-9172
lines changed

CHANGELOG.md

Lines changed: 548 additions & 0 deletions
Large diffs are not rendered by default.

CHANGELOG_CN.md

Lines changed: 548 additions & 0 deletions
Large diffs are not rendered by default.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.175
1+
3.1.176

huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from huaweicloudsdkaad.v1.model.bw import Bw
2727
from huaweicloudsdkaad.v1.model.cad_domain_switch_request import CadDomainSwitchRequest
2828
from huaweicloudsdkaad.v1.model.certificate_body import CertificateBody
29-
from huaweicloudsdkaad.v1.model.create_aad_domain_request import CreateAadDomainRequest
30-
from huaweicloudsdkaad.v1.model.create_aad_domain_response import CreateAadDomainResponse
29+
from huaweicloudsdkaad.v1.model.create_domain_request import CreateDomainRequest
30+
from huaweicloudsdkaad.v1.model.create_domain_response import CreateDomainResponse
3131
from huaweicloudsdkaad.v1.model.create_policy_request import CreatePolicyRequest
3232
from huaweicloudsdkaad.v1.model.create_policy_request_body import CreatePolicyRequestBody
3333
from huaweicloudsdkaad.v1.model.create_policy_response import CreatePolicyResponse

huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -437,31 +437,31 @@ def _batch_delete_instance_ip_rule_http_info(self, request):
437437

438438
return http_info
439439

440-
def create_aad_domain_async(self, request):
440+
def create_domain_async(self, request):
441441
r"""创建防护域名
442442
443443
创建防护域名
444444
445445
Please refer to HUAWEI cloud API Explorer for details.
446446
447447
448-
:param request: Request instance for CreateAadDomain
449-
:type request: :class:`huaweicloudsdkaad.v1.CreateAadDomainRequest`
450-
:rtype: :class:`huaweicloudsdkaad.v1.CreateAadDomainResponse`
448+
:param request: Request instance for CreateDomain
449+
:type request: :class:`huaweicloudsdkaad.v1.CreateDomainRequest`
450+
:rtype: :class:`huaweicloudsdkaad.v1.CreateDomainResponse`
451451
"""
452-
http_info = self._create_aad_domain_http_info(request)
452+
http_info = self._create_domain_http_info(request)
453453
return self._call_api(**http_info)
454454

455-
def create_aad_domain_async_invoker(self, request):
456-
http_info = self._create_aad_domain_http_info(request)
455+
def create_domain_async_invoker(self, request):
456+
http_info = self._create_domain_http_info(request)
457457
return AsyncInvoker(self, http_info)
458458

459-
def _create_aad_domain_http_info(self, request):
459+
def _create_domain_http_info(self, request):
460460
http_info = {
461461
"method": "POST",
462462
"resource_path": "/v1/{project_id}/aad/external/domains",
463463
"request_type": request.__class__.__name__,
464-
"response_type": "CreateAadDomainResponse"
464+
"response_type": "CreateDomainResponse"
465465
}
466466

467467
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -997,6 +997,10 @@ def _list_domain_http_info(self, request):
997997
path_params = {}
998998

999999
query_params = []
1000+
if 'limit' in local_var_params:
1001+
query_params.append(('limit', local_var_params['limit']))
1002+
if 'offset' in local_var_params:
1003+
query_params.append(('offset', local_var_params['offset']))
10001004

10011005
header_params = {}
10021006

@@ -1192,6 +1196,10 @@ def _list_instance_ip_rule_http_info(self, request):
11921196
path_params['ip'] = local_var_params['ip']
11931197

11941198
query_params = []
1199+
if 'limit' in local_var_params:
1200+
query_params.append(('limit', local_var_params['limit']))
1201+
if 'offset' in local_var_params:
1202+
query_params.append(('offset', local_var_params['offset']))
11951203

11961204
header_params = {}
11971205

huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -437,31 +437,31 @@ def _batch_delete_instance_ip_rule_http_info(cls, request):
437437

438438
return http_info
439439

440-
def create_aad_domain(self, request):
440+
def create_domain(self, request):
441441
r"""创建防护域名
442442
443443
创建防护域名
444444
445445
Please refer to HUAWEI cloud API Explorer for details.
446446
447-
:param request: Request instance for CreateAadDomain
448-
:type request: :class:`huaweicloudsdkaad.v1.CreateAadDomainRequest`
449-
:rtype: :class:`huaweicloudsdkaad.v1.CreateAadDomainResponse`
447+
:param request: Request instance for CreateDomain
448+
:type request: :class:`huaweicloudsdkaad.v1.CreateDomainRequest`
449+
:rtype: :class:`huaweicloudsdkaad.v1.CreateDomainResponse`
450450
"""
451-
http_info = self._create_aad_domain_http_info(request)
451+
http_info = self._create_domain_http_info(request)
452452
return self._call_api(**http_info)
453453

454-
def create_aad_domain_invoker(self, request):
455-
http_info = self._create_aad_domain_http_info(request)
454+
def create_domain_invoker(self, request):
455+
http_info = self._create_domain_http_info(request)
456456
return SyncInvoker(self, http_info)
457457

458458
@classmethod
459-
def _create_aad_domain_http_info(cls, request):
459+
def _create_domain_http_info(cls, request):
460460
http_info = {
461461
"method": "POST",
462462
"resource_path": "/v1/{project_id}/aad/external/domains",
463463
"request_type": request.__class__.__name__,
464-
"response_type": "CreateAadDomainResponse"
464+
"response_type": "CreateDomainResponse"
465465
}
466466

467467
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -997,6 +997,10 @@ def _list_domain_http_info(cls, request):
997997
path_params = {}
998998

999999
query_params = []
1000+
if 'limit' in local_var_params:
1001+
query_params.append(('limit', local_var_params['limit']))
1002+
if 'offset' in local_var_params:
1003+
query_params.append(('offset', local_var_params['offset']))
10001004

10011005
header_params = {}
10021006

@@ -1192,6 +1196,10 @@ def _list_instance_ip_rule_http_info(cls, request):
11921196
path_params['ip'] = local_var_params['ip']
11931197

11941198
query_params = []
1199+
if 'limit' in local_var_params:
1200+
query_params.append(('limit', local_var_params['limit']))
1201+
if 'offset' in local_var_params:
1202+
query_params.append(('offset', local_var_params['offset']))
11951203

11961204
header_params = {}
11971205

huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
from huaweicloudsdkaad.v1.model.bw import Bw
2525
from huaweicloudsdkaad.v1.model.cad_domain_switch_request import CadDomainSwitchRequest
2626
from huaweicloudsdkaad.v1.model.certificate_body import CertificateBody
27-
from huaweicloudsdkaad.v1.model.create_aad_domain_request import CreateAadDomainRequest
28-
from huaweicloudsdkaad.v1.model.create_aad_domain_response import CreateAadDomainResponse
27+
from huaweicloudsdkaad.v1.model.create_domain_request import CreateDomainRequest
28+
from huaweicloudsdkaad.v1.model.create_domain_response import CreateDomainResponse
2929
from huaweicloudsdkaad.v1.model.create_policy_request import CreatePolicyRequest
3030
from huaweicloudsdkaad.v1.model.create_policy_request_body import CreatePolicyRequestBody
3131
from huaweicloudsdkaad.v1.model.create_policy_response import CreatePolicyResponse

huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_request.py renamed to huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_domain_request.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
44

55

6-
class CreateAadDomainRequest:
6+
class CreateDomainRequest:
77

88
"""
99
Attributes:
@@ -23,11 +23,11 @@ class CreateAadDomainRequest:
2323
}
2424

2525
def __init__(self, body=None):
26-
r"""CreateAadDomainRequest
26+
r"""CreateDomainRequest
2727
2828
The model defined in huaweicloud sdk
2929
30-
:param body: Body of the CreateAadDomainRequest
30+
:param body: Body of the CreateDomainRequest
3131
:type body: :class:`huaweicloudsdkaad.v1.HostBody`
3232
"""
3333

@@ -41,18 +41,18 @@ def __init__(self, body=None):
4141

4242
@property
4343
def body(self):
44-
r"""Gets the body of this CreateAadDomainRequest.
44+
r"""Gets the body of this CreateDomainRequest.
4545
46-
:return: The body of this CreateAadDomainRequest.
46+
:return: The body of this CreateDomainRequest.
4747
:rtype: :class:`huaweicloudsdkaad.v1.HostBody`
4848
"""
4949
return self._body
5050

5151
@body.setter
5252
def body(self, body):
53-
r"""Sets the body of this CreateAadDomainRequest.
53+
r"""Sets the body of this CreateDomainRequest.
5454
55-
:param body: The body of this CreateAadDomainRequest.
55+
:param body: The body of this CreateDomainRequest.
5656
:type body: :class:`huaweicloudsdkaad.v1.HostBody`
5757
"""
5858
self._body = body
@@ -94,7 +94,7 @@ def __repr__(self):
9494

9595
def __eq__(self, other):
9696
"""Returns true if both objects are equal"""
97-
if not isinstance(other, CreateAadDomainRequest):
97+
if not isinstance(other, CreateDomainRequest):
9898
return False
9999

100100
return self.__dict__ == other.__dict__

huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_response.py renamed to huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_domain_response.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
55

66

7-
class CreateAadDomainResponse(SdkResponse):
7+
class CreateDomainResponse(SdkResponse):
88

99
"""
1010
Attributes:
@@ -26,7 +26,7 @@ class CreateAadDomainResponse(SdkResponse):
2626
}
2727

2828
def __init__(self, cname=None, domain_id=None):
29-
r"""CreateAadDomainResponse
29+
r"""CreateDomainResponse
3030
3131
The model defined in huaweicloud sdk
3232
@@ -49,51 +49,51 @@ def __init__(self, cname=None, domain_id=None):
4949

5050
@property
5151
def cname(self):
52-
r"""Gets the cname of this CreateAadDomainResponse.
52+
r"""Gets the cname of this CreateDomainResponse.
5353
5454
高防提供的CNAME地址
5555
56-
:return: The cname of this CreateAadDomainResponse.
56+
:return: The cname of this CreateDomainResponse.
5757
:rtype: str
5858
"""
5959
return self._cname
6060

6161
@cname.setter
6262
def cname(self, cname):
63-
r"""Sets the cname of this CreateAadDomainResponse.
63+
r"""Sets the cname of this CreateDomainResponse.
6464
6565
高防提供的CNAME地址
6666
67-
:param cname: The cname of this CreateAadDomainResponse.
67+
:param cname: The cname of this CreateDomainResponse.
6868
:type cname: str
6969
"""
7070
self._cname = cname
7171

7272
@property
7373
def domain_id(self):
74-
r"""Gets the domain_id of this CreateAadDomainResponse.
74+
r"""Gets the domain_id of this CreateDomainResponse.
7575
7676
域名id
7777
78-
:return: The domain_id of this CreateAadDomainResponse.
78+
:return: The domain_id of this CreateDomainResponse.
7979
:rtype: str
8080
"""
8181
return self._domain_id
8282

8383
@domain_id.setter
8484
def domain_id(self, domain_id):
85-
r"""Sets the domain_id of this CreateAadDomainResponse.
85+
r"""Sets the domain_id of this CreateDomainResponse.
8686
8787
域名id
8888
89-
:param domain_id: The domain_id of this CreateAadDomainResponse.
89+
:param domain_id: The domain_id of this CreateDomainResponse.
9090
:type domain_id: str
9191
"""
9292
self._domain_id = domain_id
9393

9494
def to_dict(self):
9595
import warnings
96-
warnings.warn("CreateAadDomainResponse.to_dict() is deprecated and no longer maintained, "
96+
warnings.warn("CreateDomainResponse.to_dict() is deprecated and no longer maintained, "
9797
"use to_json_object() to get the response content.", DeprecationWarning)
9898
result = {}
9999

@@ -131,7 +131,7 @@ def __repr__(self):
131131

132132
def __eq__(self, other):
133133
"""Returns true if both objects are equal"""
134-
if not isinstance(other, CreateAadDomainResponse):
134+
if not isinstance(other, CreateDomainResponse):
135135
return False
136136

137137
return self.__dict__ == other.__dict__

huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/list_domain_request.py

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,81 @@ class ListDomainRequest:
1515
sensitive_list = []
1616

1717
openapi_types = {
18+
'limit': 'int',
19+
'offset': 'int'
1820
}
1921

2022
attribute_map = {
23+
'limit': 'limit',
24+
'offset': 'offset'
2125
}
2226

23-
def __init__(self):
27+
def __init__(self, limit=None, offset=None):
2428
r"""ListDomainRequest
2529
2630
The model defined in huaweicloud sdk
2731
32+
:param limit: 限制条数
33+
:type limit: int
34+
:param offset: 偏移量
35+
:type offset: int
2836
"""
2937

3038

39+
40+
self._limit = None
41+
self._offset = None
3142
self.discriminator = None
3243

44+
if limit is not None:
45+
self.limit = limit
46+
if offset is not None:
47+
self.offset = offset
48+
49+
@property
50+
def limit(self):
51+
r"""Gets the limit of this ListDomainRequest.
52+
53+
限制条数
54+
55+
:return: The limit of this ListDomainRequest.
56+
:rtype: int
57+
"""
58+
return self._limit
59+
60+
@limit.setter
61+
def limit(self, limit):
62+
r"""Sets the limit of this ListDomainRequest.
63+
64+
限制条数
65+
66+
:param limit: The limit of this ListDomainRequest.
67+
:type limit: int
68+
"""
69+
self._limit = limit
70+
71+
@property
72+
def offset(self):
73+
r"""Gets the offset of this ListDomainRequest.
74+
75+
偏移量
76+
77+
:return: The offset of this ListDomainRequest.
78+
:rtype: int
79+
"""
80+
return self._offset
81+
82+
@offset.setter
83+
def offset(self, offset):
84+
r"""Sets the offset of this ListDomainRequest.
85+
86+
偏移量
87+
88+
:param offset: The offset of this ListDomainRequest.
89+
:type offset: int
90+
"""
91+
self._offset = offset
92+
3393
def to_dict(self):
3494
result = {}
3595

0 commit comments

Comments
 (0)