Source code for jdcloud_sdk.services.iam.models.RoleInfo

# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


[docs]class RoleInfo(object): def __init__(self, roleId=None, roleName=None, type=None, assumeRolePolicyDocument=None, description=None, maxSessionDuration=None, jrn=None, createTime=None, account=None): """ :param roleId: (Optional) 角色ID :param roleName: (Optional) 角色名称 :param type: (Optional) 角色类型,2-服务相关角色,3-服务角色,4-用户角色 :param assumeRolePolicyDocument: (Optional) 信任实体信息 :param description: (Optional) 描述,0~256个字符 :param maxSessionDuration: (Optional) 最大会话时长3600~43200秒,默认3600秒 :param jrn: (Optional) 京东云资源标识(jrn) :param createTime: (Optional) 创建角色的时间 :param account: (Optional) 角色所属主账号 """ self.roleId = roleId self.roleName = roleName self.type = type self.assumeRolePolicyDocument = assumeRolePolicyDocument self.description = description self.maxSessionDuration = maxSessionDuration self.jrn = jrn self.createTime = createTime self.account = account