Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix YARD comment with extra space #637

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions lib/auth0/api/v2/organizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ def patch_organizations_enabled_connection(organization_id, connection_id, assig
# Add an enabled connection for an Organization
# @see https://auth0.com/docs/api/management/v2/#!/Organizations/post_enabled_connections
# @param organization_id [string] The Organization ID
# @param connection_id [string] The Organization ID
# @param connection_id [string] The Connection ID
# @param assign_membership_on_login [boolean] flag to allow assign membership on login
#
# @return [json] Returns the connection for the given organization
def create_organizations_enabled_connection(organization_id, connection_id, assign_membership_on_login: false)
raise Auth0::MissingOrganizationId, 'Must supply a valid organization_id' if organization_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply a valid connection id' if connection_id.to_s.empty?
path = "#{organizations_enabled_connections_path(organization_id)}"

body = {}
body[:assign_membership_on_login] = assign_membership_on_login
body[:connection_id] = connection_id
Expand Down Expand Up @@ -176,7 +176,7 @@ def get_organizations_invites(organization_id)
# Get invite by id in an Organization
# @see https://auth0.com/docs/api/management/v2/#!/Organizations/get_invitations_by_invitation_id
# @param organization_id [string] The Organization ID
# @param invitation_id [string] The invitation id
# @param invitation_id [string] The Invitation ID
#
# @return [json] Returns the invitation for the given organization
def get_organizations_invite(organization_id, invitation_id)
Expand All @@ -194,15 +194,15 @@ def get_organizations_invite(organization_id, invitation_id)
def create_organizations_invite(organization_id, options = {})
raise Auth0::MissingOrganizationId, 'Must supply a valid organization_id' if organization_id.to_s.empty?
path = "#{organizations_invitations_path(organization_id)}"

post(path, options)
end
alias add_organizations_invite create_organizations_invite

# Delete an invitation to organization
# @see https://auth0.com/docs/api/management/v2/#!/Organizations/delete_invitations_by_invitation_id
# @param organization_id [string] The Organization ID
# @param invitation_id [string] The Invitation id
# @param invitation_id [string] The Invitation ID
def delete_organizations_invite(organization_id, invitation_id)
raise Auth0::MissingOrganizationId, 'Must supply a valid organization_id' if organization_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply a valid invitation id' if invitation_id.to_s.empty?
Expand Down Expand Up @@ -253,7 +253,7 @@ def create_organizations_members(organization_id, members = [])
raise Auth0::MissingOrganizationId, 'Must supply a valid organization_id' if organization_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply an array of member ids' if members.empty?
path = "#{organizations_members_path(organization_id)}"

body = {}
body[:members] = members

Expand Down Expand Up @@ -304,7 +304,7 @@ def create_organizations_member_roles(organization_id, user_id, roles = [])
raise Auth0::InvalidParameter, 'Must supply a valid user id' if user_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply an array of role ids' if roles.empty?
path = "#{organizations_member_roles_path(organization_id, user_id)}"

body = {}
body[:roles] = roles

Expand All @@ -322,7 +322,7 @@ def delete_organizations_member_roles(organization_id, user_id, roles = [])
raise Auth0::InvalidParameter, 'Must supply a valid user id' if user_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply an array of role ids' if roles.empty?
path = "#{organizations_member_roles_path(organization_id, user_id)}"

body = {}
body[:roles] = roles

Expand Down Expand Up @@ -357,7 +357,7 @@ def get_organizations_client_grants(organization_id, options= {})
def create_organizations_client_grant(organization_id, grant_id)
raise Auth0::MissingOrganizationId, 'Must supply a valid organization_id' if organization_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply a valid grant_id' if grant_id.to_s.empty?

body = {}
body[:grant_id] = grant_id

Expand Down