|
| 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 aliyunsdkdms_enterprise.endpoint import endpoint_data |
| 22 | + |
| 23 | +class CreateAbacAuthorizationRequest(RpcRequest): |
| 24 | + |
| 25 | + def __init__(self): |
| 26 | + RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'CreateAbacAuthorization','dms-enterprise') |
| 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_RoleId(self): # Long |
| 36 | + return self.get_query_params().get('RoleId') |
| 37 | + |
| 38 | + def set_RoleId(self, RoleId): # Long |
| 39 | + self.add_query_param('RoleId', RoleId) |
| 40 | + def get_UserId(self): # Long |
| 41 | + return self.get_query_params().get('UserId') |
| 42 | + |
| 43 | + def set_UserId(self, UserId): # Long |
| 44 | + self.add_query_param('UserId', UserId) |
| 45 | + def get_Tid(self): # Long |
| 46 | + return self.get_query_params().get('Tid') |
| 47 | + |
| 48 | + def set_Tid(self, Tid): # Long |
| 49 | + self.add_query_param('Tid', Tid) |
| 50 | + def get_PolicyId(self): # Long |
| 51 | + return self.get_query_params().get('PolicyId') |
| 52 | + |
| 53 | + def set_PolicyId(self, PolicyId): # Long |
| 54 | + self.add_query_param('PolicyId', PolicyId) |
| 55 | + def get_IdentityType(self): # String |
| 56 | + return self.get_query_params().get('IdentityType') |
| 57 | + |
| 58 | + def set_IdentityType(self, IdentityType): # String |
| 59 | + self.add_query_param('IdentityType', IdentityType) |
0 commit comments