lib/v20190116/client.rb in tencentcloud-sdk-cam-1.0.266 vs lib/v20190116/client.rb in tencentcloud-sdk-cam-1.0.267

- old
+ new

@@ -1035,9 +1035,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 获取用户AppId + + # @param request: Request instance for GetUserAppId. + # @type request: :class:`Tencentcloud::cam::V20190116::GetUserAppIdRequest` + # @rtype: :class:`Tencentcloud::cam::V20190116::GetUserAppIdResponse` + def GetUserAppId(request) + body = send_request('GetUserAppId', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = GetUserAppIdResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 获取用户权限边界 # @param request: Request instance for GetUserPermissionBoundary. # @type request: :class:`Tencentcloud::cam::V20190116::GetUserPermissionBoundaryRequest` # @rtype: :class:`Tencentcloud::cam::V20190116::GetUserPermissionBoundaryResponse` \ No newline at end of file