Class: Files::SsoStrategy
- Inherits:
-
Object
- Object
- Files::SsoStrategy
- Defined in:
- lib/files.com/models/sso_strategy.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
- .all(params = {}, options = {}) ⇒ Object
-
.find(id, params = {}, options = {}) ⇒ Object
Parameters: id (required) - integer - Sso Strategy ID.
- .get(id, params = {}, options = {}) ⇒ Object
-
.list(params = {}, options = {}) ⇒ Object
Parameters: page - integer - Current page number.
Instance Method Summary collapse
-
#id ⇒ Object
int64 - ID.
-
#initialize(attributes = {}, options = {}) ⇒ SsoStrategy
constructor
A new instance of SsoStrategy.
-
#protocol ⇒ Object
string - SSO Protocol.
-
#provider ⇒ Object
string - Provider name.
-
#provision_attachments_permission ⇒ Object
boolean - Auto-provisioned users get Sharing permission?.
-
#provision_dav_permission ⇒ Object
boolean - Auto-provisioned users get WebDAV permission?.
-
#provision_ftp_permission ⇒ Object
boolean - Auto-provisioned users get FTP permission?.
-
#provision_group_default ⇒ Object
string - Comma-separated list of group names for groups to automatically add all auto-provisioned users to.
-
#provision_group_exclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.
-
#provision_group_inclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.
-
#provision_group_required ⇒ Object
string - Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.
-
#provision_groups ⇒ Object
boolean - Auto-provision group membership based on group memberships on the SSO side?.
-
#provision_sftp_permission ⇒ Object
boolean - Auto-provisioned users get SFTP permission?.
-
#provision_time_zone ⇒ Object
string - Default time zone for auto provisioned users.
-
#provision_users ⇒ Object
boolean - Auto-provision users?.
-
#saml_provider_cert_fingerprint ⇒ Object
string - Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
-
#saml_provider_issuer_url ⇒ Object
string - Identity provider issuer url.
-
#saml_provider_metadata_url ⇒ Object
string - Metadata URL for the SAML identity provider.
-
#saml_provider_slo_target_url ⇒ Object
string - Identity provider SLO endpoint.
-
#saml_provider_sso_target_url ⇒ Object
string - Identity provider SSO endpoint if saml_provider_metadata_url is not available.
-
#scim_authentication_method ⇒ Object
string - SCIM authentication type.
-
#scim_username ⇒ Object
string - SCIM username.
-
#subdomain ⇒ Object
string - Subdomain.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ SsoStrategy
Returns a new instance of SsoStrategy.
7 8 9 10 |
# File 'lib/files.com/models/sso_strategy.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/sso_strategy.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/sso_strategy.rb', line 5 def @options end |
Class Method Details
.all(params = {}, options = {}) ⇒ Object
134 135 136 |
# File 'lib/files.com/models/sso_strategy.rb', line 134 def self.all(params = {}, = {}) list(params, ) end |
.find(id, params = {}, options = {}) ⇒ Object
Parameters:
id (required) - integer - Sso Strategy ID.
140 141 142 143 144 145 146 147 148 |
# File 'lib/files.com/models/sso_strategy.rb', line 140 def self.find(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id) response, = Api.send_request("/sso_strategies/#{params[:id]}", :get, params, ) SsoStrategy.new(response.data, ) end |
.get(id, params = {}, options = {}) ⇒ Object
150 151 152 |
# File 'lib/files.com/models/sso_strategy.rb', line 150 def self.get(id, params = {}, = {}) find(id, params, ) end |
.list(params = {}, options = {}) ⇒ Object
Parameters:
page - integer - Current page number.
per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
126 127 128 129 130 131 132 |
# File 'lib/files.com/models/sso_strategy.rb', line 126 def self.list(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer) raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer) raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String) response, = Api.send_request("/sso_strategies", :get, params, ) end |
Instance Method Details
#id ⇒ Object
int64 - ID
23 24 25 |
# File 'lib/files.com/models/sso_strategy.rb', line 23 def id @attributes[:id] end |
#protocol ⇒ Object
string - SSO Protocol
13 14 15 |
# File 'lib/files.com/models/sso_strategy.rb', line 13 def protocol @attributes[:protocol] end |
#provider ⇒ Object
string - Provider name
18 19 20 |
# File 'lib/files.com/models/sso_strategy.rb', line 18 def provider @attributes[:provider] end |
#provision_attachments_permission ⇒ Object
boolean - Auto-provisioned users get Sharing permission?
98 99 100 |
# File 'lib/files.com/models/sso_strategy.rb', line 98 def @attributes[:provision_attachments_permission] end |
#provision_dav_permission ⇒ Object
boolean - Auto-provisioned users get WebDAV permission?
103 104 105 |
# File 'lib/files.com/models/sso_strategy.rb', line 103 def @attributes[:provision_dav_permission] end |
#provision_ftp_permission ⇒ Object
boolean - Auto-provisioned users get FTP permission?
108 109 110 |
# File 'lib/files.com/models/sso_strategy.rb', line 108 def @attributes[:provision_ftp_permission] end |
#provision_group_default ⇒ Object
string - Comma-separated list of group names for groups to automatically add all auto-provisioned users to.
78 79 80 |
# File 'lib/files.com/models/sso_strategy.rb', line 78 def provision_group_default @attributes[:provision_group_default] end |
#provision_group_exclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.
83 84 85 |
# File 'lib/files.com/models/sso_strategy.rb', line 83 def provision_group_exclusion @attributes[:provision_group_exclusion] end |
#provision_group_inclusion ⇒ Object
string - Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.
88 89 90 |
# File 'lib/files.com/models/sso_strategy.rb', line 88 def provision_group_inclusion @attributes[:provision_group_inclusion] end |
#provision_group_required ⇒ Object
string - Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.
93 94 95 |
# File 'lib/files.com/models/sso_strategy.rb', line 93 def provision_group_required @attributes[:provision_group_required] end |
#provision_groups ⇒ Object
boolean - Auto-provision group membership based on group memberships on the SSO side?
73 74 75 |
# File 'lib/files.com/models/sso_strategy.rb', line 73 def provision_groups @attributes[:provision_groups] end |
#provision_sftp_permission ⇒ Object
boolean - Auto-provisioned users get SFTP permission?
113 114 115 |
# File 'lib/files.com/models/sso_strategy.rb', line 113 def @attributes[:provision_sftp_permission] end |
#provision_time_zone ⇒ Object
string - Default time zone for auto provisioned users.
118 119 120 |
# File 'lib/files.com/models/sso_strategy.rb', line 118 def provision_time_zone @attributes[:provision_time_zone] end |
#provision_users ⇒ Object
boolean - Auto-provision users?
68 69 70 |
# File 'lib/files.com/models/sso_strategy.rb', line 68 def provision_users @attributes[:provision_users] end |
#saml_provider_cert_fingerprint ⇒ Object
string - Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
28 29 30 |
# File 'lib/files.com/models/sso_strategy.rb', line 28 def saml_provider_cert_fingerprint @attributes[:saml_provider_cert_fingerprint] end |
#saml_provider_issuer_url ⇒ Object
string - Identity provider issuer url
33 34 35 |
# File 'lib/files.com/models/sso_strategy.rb', line 33 def saml_provider_issuer_url @attributes[:saml_provider_issuer_url] end |
#saml_provider_metadata_url ⇒ Object
string - Metadata URL for the SAML identity provider
38 39 40 |
# File 'lib/files.com/models/sso_strategy.rb', line 38 def @attributes[:saml_provider_metadata_url] end |
#saml_provider_slo_target_url ⇒ Object
string - Identity provider SLO endpoint
43 44 45 |
# File 'lib/files.com/models/sso_strategy.rb', line 43 def saml_provider_slo_target_url @attributes[:saml_provider_slo_target_url] end |
#saml_provider_sso_target_url ⇒ Object
string - Identity provider SSO endpoint if saml_provider_metadata_url is not available.
48 49 50 |
# File 'lib/files.com/models/sso_strategy.rb', line 48 def saml_provider_sso_target_url @attributes[:saml_provider_sso_target_url] end |
#scim_authentication_method ⇒ Object
string - SCIM authentication type.
53 54 55 |
# File 'lib/files.com/models/sso_strategy.rb', line 53 def scim_authentication_method @attributes[:scim_authentication_method] end |
#scim_username ⇒ Object
string - SCIM username.
58 59 60 |
# File 'lib/files.com/models/sso_strategy.rb', line 58 def scim_username @attributes[:scim_username] end |
#subdomain ⇒ Object
string - Subdomain
63 64 65 |
# File 'lib/files.com/models/sso_strategy.rb', line 63 def subdomain @attributes[:subdomain] end |