Class: PhraseApp::RequestParams::InvitationCreateParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::RequestParams::InvitationCreateParams
- Defined in:
- lib/phraseapp-ruby.rb
Overview
InvitationCreateParams
Parameters:
-
The email of the invited user. The
email
can not be updated once created. Create a new invitation for each unique email. - locale_ids
-
List of locale ids the invited user has access to.
- permissions
-
Additional permissions depending on invitation role. Available permissions are
create_upload
andreview_translations
- project_ids
-
List of project ids the invited user has access to.
- role
-
Invitiation role, can be any of Manager, Developer, Translator.
Instance Method Summary collapse
- #email=(val) ⇒ Object
- #locale_ids=(val) ⇒ Object
- #permissions=(val) ⇒ Object
- #project_ids=(val) ⇒ Object
- #role=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#email=(val) ⇒ Object
2001 2002 2003 |
# File 'lib/phraseapp-ruby.rb', line 2001 def email=(val) super(val) end |
#locale_ids=(val) ⇒ Object
2005 2006 2007 |
# File 'lib/phraseapp-ruby.rb', line 2005 def locale_ids=(val) super(val) end |
#permissions=(val) ⇒ Object
2009 2010 2011 |
# File 'lib/phraseapp-ruby.rb', line 2009 def (val) super(JSON.load(val)) end |
#project_ids=(val) ⇒ Object
2013 2014 2015 |
# File 'lib/phraseapp-ruby.rb', line 2013 def project_ids=(val) super(val) end |
#role=(val) ⇒ Object
2017 2018 2019 |
# File 'lib/phraseapp-ruby.rb', line 2017 def role=(val) super(val) end |
#validate ⇒ Object
2021 2022 2023 2024 2025 2026 2027 2028 2029 |
# File 'lib/phraseapp-ruby.rb', line 2021 def validate if email == nil || email == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"email\" of \"invitation_createParams\" not set") end if role == nil || role == "" raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"role\" of \"invitation_createParams\" not set") end end |