Skip to content

Commit eb3e4ff

Browse files
committed
Support all language.
1 parent 2768092 commit eb3e4ff

25 files changed

+1112
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2022-05-19 Version: 1.0.0
2+
- Support all language.
3+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-idaas-doraemon
3+
=============================================================
4+
5+
.. This is the idaas-doraemon module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# # Licensed to the Apache Software Foundation (ASF) under one
2+
# # or more contributor license agreements. See the NOTICE file
3+
# # distributed with this work for additional information
4+
# # regarding copyright ownership. The ASF licenses this file
5+
# # to you under the Apache License, Version 2.0 (the
6+
# # "License"); you may not use this file except in compliance
7+
# # with the License. You may obtain a copy of the License at
8+
# #
9+
# #
10+
# # http://www.apache.org/licenses/LICENSE-2.0
11+
# #
12+
# #
13+
# # Unless required by applicable law or agreed to in writing,
14+
# # software distributed under the License is distributed on an
15+
# # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# # KIND, either express or implied. See the License for the
17+
# # specific language governing permissions and limitations
18+
# # under the License.
19+
20+
21+
class EndpointData():
22+
def __init__(self):
23+
self.endpoint_map = {
24+
"cn-hangzhou": "idaas-doraemon.cn-hangzhou.aliyuncs.com",
25+
}
26+
self.endpoint_regional = "central"
27+
28+
def getEndpointMap(self):
29+
return self.endpoint_map
30+
31+
def getEndpointRegional(self):
32+
return self.endpoint_regional
33+
34+
35+
endpoint_data = EndpointData()

aliyun-python-sdk-idaas-doraemon/aliyunsdkidaas_doraemon/request/__init__.py

Whitespace-only changes.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkidaas_doraemon.endpoint import endpoint_data
22+
23+
class CreateAuthenticatorRegistrationRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'idaas-doraemon', '2021-05-20', 'CreateAuthenticatorRegistration')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_ClientExtendParamsJson(self): # String
36+
return self.get_query_params().get('ClientExtendParamsJson')
37+
38+
def set_ClientExtendParamsJson(self, ClientExtendParamsJson): # String
39+
self.add_query_param('ClientExtendParamsJson', ClientExtendParamsJson)
40+
def get_UserId(self): # String
41+
return self.get_query_params().get('UserId')
42+
43+
def set_UserId(self, UserId): # String
44+
self.add_query_param('UserId', UserId)
45+
def get_UserDisplayName(self): # String
46+
return self.get_query_params().get('UserDisplayName')
47+
48+
def set_UserDisplayName(self, UserDisplayName): # String
49+
self.add_query_param('UserDisplayName', UserDisplayName)
50+
def get_ServerExtendParamsJson(self): # String
51+
return self.get_query_params().get('ServerExtendParamsJson')
52+
53+
def set_ServerExtendParamsJson(self, ServerExtendParamsJson): # String
54+
self.add_query_param('ServerExtendParamsJson', ServerExtendParamsJson)
55+
def get_RegistrationContext(self): # String
56+
return self.get_query_params().get('RegistrationContext')
57+
58+
def set_RegistrationContext(self, RegistrationContext): # String
59+
self.add_query_param('RegistrationContext', RegistrationContext)
60+
def get_AuthenticatorType(self): # String
61+
return self.get_query_params().get('AuthenticatorType')
62+
63+
def set_AuthenticatorType(self, AuthenticatorType): # String
64+
self.add_query_param('AuthenticatorType', AuthenticatorType)
65+
def get_ClientExtendParamsJsonSign(self): # String
66+
return self.get_query_params().get('ClientExtendParamsJsonSign')
67+
68+
def set_ClientExtendParamsJsonSign(self, ClientExtendParamsJsonSign): # String
69+
self.add_query_param('ClientExtendParamsJsonSign', ClientExtendParamsJsonSign)
70+
def get_ApplicationExternalId(self): # String
71+
return self.get_query_params().get('ApplicationExternalId')
72+
73+
def set_ApplicationExternalId(self, ApplicationExternalId): # String
74+
self.add_query_param('ApplicationExternalId', ApplicationExternalId)
75+
def get_UserName(self): # String
76+
return self.get_query_params().get('UserName')
77+
78+
def set_UserName(self, UserName): # String
79+
self.add_query_param('UserName', UserName)
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkidaas_doraemon.endpoint import endpoint_data
22+
23+
class CreateUserAuthenticateOptionsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'idaas-doraemon', '2021-05-20', 'CreateUserAuthenticateOptions')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_ClientExtendParamsJson(self): # String
36+
return self.get_query_params().get('ClientExtendParamsJson')
37+
38+
def set_ClientExtendParamsJson(self, ClientExtendParamsJson): # String
39+
self.add_query_param('ClientExtendParamsJson', ClientExtendParamsJson)
40+
def get_UserId(self): # String
41+
return self.get_query_params().get('UserId')
42+
43+
def set_UserId(self, UserId): # String
44+
self.add_query_param('UserId', UserId)
45+
def get_BindHashBase64(self): # String
46+
return self.get_query_params().get('BindHashBase64')
47+
48+
def set_BindHashBase64(self, BindHashBase64): # String
49+
self.add_query_param('BindHashBase64', BindHashBase64)
50+
def get_ServerExtendParamsJson(self): # String
51+
return self.get_query_params().get('ServerExtendParamsJson')
52+
53+
def set_ServerExtendParamsJson(self, ServerExtendParamsJson): # String
54+
self.add_query_param('ServerExtendParamsJson', ServerExtendParamsJson)
55+
def get_AuthenticatorType(self): # String
56+
return self.get_query_params().get('AuthenticatorType')
57+
58+
def set_AuthenticatorType(self, AuthenticatorType): # String
59+
self.add_query_param('AuthenticatorType', AuthenticatorType)
60+
def get_ClientExtendParamsJsonSign(self): # String
61+
return self.get_query_params().get('ClientExtendParamsJsonSign')
62+
63+
def set_ClientExtendParamsJsonSign(self, ClientExtendParamsJsonSign): # String
64+
self.add_query_param('ClientExtendParamsJsonSign', ClientExtendParamsJsonSign)
65+
def get_ApplicationExternalId(self): # String
66+
return self.get_query_params().get('ApplicationExternalId')
67+
68+
def set_ApplicationExternalId(self, ApplicationExternalId): # String
69+
self.add_query_param('ApplicationExternalId', ApplicationExternalId)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkidaas_doraemon.endpoint import endpoint_data
22+
23+
class DeregisterAuthenticatorRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'idaas-doraemon', '2021-05-20', 'DeregisterAuthenticator')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_UserId(self): # String
36+
return self.get_query_params().get('UserId')
37+
38+
def set_UserId(self, UserId): # String
39+
self.add_query_param('UserId', UserId)
40+
def get_AuthenticatorUuid(self): # String
41+
return self.get_query_params().get('AuthenticatorUuid')
42+
43+
def set_AuthenticatorUuid(self, AuthenticatorUuid): # String
44+
self.add_query_param('AuthenticatorUuid', AuthenticatorUuid)
45+
def get_ApplicationExternalId(self): # String
46+
return self.get_query_params().get('ApplicationExternalId')
47+
48+
def set_ApplicationExternalId(self, ApplicationExternalId): # String
49+
self.add_query_param('ApplicationExternalId', ApplicationExternalId)

0 commit comments

Comments
 (0)