lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.894 vs lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.895

- old
+ new

@@ -2475,9 +2475,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 重新发送成员绑定邮箱激活邮件 + + # @param request: Request instance for SendOrgMemberAccountBindEmail. + # @type request: :class:`Tencentcloud::organization::V20210331::SendOrgMemberAccountBindEmailRequest` + # @rtype: :class:`Tencentcloud::organization::V20210331::SendOrgMemberAccountBindEmailResponse` + def SendOrgMemberAccountBindEmail(request) + body = send_request('SendOrgMemberAccountBindEmail', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = SendOrgMemberAccountBindEmailResponse.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 + # 配置SAML身份提供商信息 # @param request: Request instance for SetExternalSAMLIdentityProvider. # @type request: :class:`Tencentcloud::organization::V20210331::SetExternalSAMLIdentityProviderRequest` # @rtype: :class:`Tencentcloud::organization::V20210331::SetExternalSAMLIdentityProviderResponse` \ No newline at end of file