lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.931 vs lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.932
- old
+ new
@@ -627,10 +627,34 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 创建SCIM密钥
+
+ # @param request: Request instance for CreateSCIMCredential.
+ # @type request: :class:`Tencentcloud::organization::V20210331::CreateSCIMCredentialRequest`
+ # @rtype: :class:`Tencentcloud::organization::V20210331::CreateSCIMCredentialResponse`
+ def CreateSCIMCredential(request)
+ body = send_request('CreateSCIMCredential', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = CreateSCIMCredentialResponse.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 CreateUser.
# @type request: :class:`Tencentcloud::organization::V20210331::CreateUserRequest`
# @rtype: :class:`Tencentcloud::organization::V20210331::CreateUserResponse`
@@ -963,10 +987,34 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 删除SCIM密钥
+
+ # @param request: Request instance for DeleteSCIMCredential.
+ # @type request: :class:`Tencentcloud::organization::V20210331::DeleteSCIMCredentialRequest`
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DeleteSCIMCredentialResponse`
+ def DeleteSCIMCredential(request)
+ body = send_request('DeleteSCIMCredential', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DeleteSCIMCredentialResponse.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 DeleteShareUnit.
# @type request: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitRequest`
# @rtype: :class:`Tencentcloud::organization::V20210331::DeleteShareUnitResponse`
@@ -1731,10 +1779,34 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 获取SCIM同步状态
+
+ # @param request: Request instance for GetSCIMSynchronizationStatus.
+ # @type request: :class:`Tencentcloud::organization::V20210331::GetSCIMSynchronizationStatusRequest`
+ # @rtype: :class:`Tencentcloud::organization::V20210331::GetSCIMSynchronizationStatusResponse`
+ def GetSCIMSynchronizationStatus(request)
+ body = send_request('GetSCIMSynchronizationStatus', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = GetSCIMSynchronizationStatusResponse.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 GetTaskStatus.
# @type request: :class:`Tencentcloud::organization::V20210331::GetTaskStatusRequest`
# @rtype: :class:`Tencentcloud::organization::V20210331::GetTaskStatusResponse`
@@ -2211,10 +2283,34 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 查询用户SCIM密钥列表
+
+ # @param request: Request instance for ListSCIMCredentials.
+ # @type request: :class:`Tencentcloud::organization::V20210331::ListSCIMCredentialsRequest`
+ # @rtype: :class:`Tencentcloud::organization::V20210331::ListSCIMCredentialsResponse`
+ def ListSCIMCredentials(request)
+ body = send_request('ListSCIMCredentials', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = ListSCIMCredentialsResponse.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
+
# 本接口(ListTargetsForPolicy)查询某个指定策略关联的目标列表
# @param request: Request instance for ListTargetsForPolicy.
# @type request: :class:`Tencentcloud::organization::V20210331::ListTargetsForPolicyRequest`
# @rtype: :class:`Tencentcloud::organization::V20210331::ListTargetsForPolicyResponse`
@@ -2725,9 +2821,57 @@
def UpdateRoleConfiguration(request)
body = send_request('UpdateRoleConfiguration', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = UpdateRoleConfigurationResponse.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
+
+ # 启用/禁用SCIM密钥
+
+ # @param request: Request instance for UpdateSCIMCredentialStatus.
+ # @type request: :class:`Tencentcloud::organization::V20210331::UpdateSCIMCredentialStatusRequest`
+ # @rtype: :class:`Tencentcloud::organization::V20210331::UpdateSCIMCredentialStatusResponse`
+ def UpdateSCIMCredentialStatus(request)
+ body = send_request('UpdateSCIMCredentialStatus', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = UpdateSCIMCredentialStatusResponse.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
+
+ # 启用/禁用用户SCIM同步
+
+ # @param request: Request instance for UpdateSCIMSynchronizationStatus.
+ # @type request: :class:`Tencentcloud::organization::V20210331::UpdateSCIMSynchronizationStatusRequest`
+ # @rtype: :class:`Tencentcloud::organization::V20210331::UpdateSCIMSynchronizationStatusResponse`
+ def UpdateSCIMSynchronizationStatus(request)
+ body = send_request('UpdateSCIMSynchronizationStatus', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = UpdateSCIMSynchronizationStatusResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
\ No newline at end of file