Class: Files::SsoStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/sso_strategy.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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 = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/sso_strategy.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/sso_strategy.rb', line 5

def options
  @options
end

Class Method Details

.all(params = {}, options = {}) ⇒ Object



144
145
146
# File 'lib/files.com/models/sso_strategy.rb', line 144

def self.all(params = {}, options = {})
  list(params, options)
end

.find(id, params = {}, options = {}) ⇒ Object

Parameters:

id (required) - integer - Sso Strategy ID.


150
151
152
153
154
155
156
157
158
# File 'lib/files.com/models/sso_strategy.rb', line 150

def self.find(id, params = {}, options = {})
  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, options = Api.send_request("/sso_strategies/#{params[:id]}", :get, params, options)
  SsoStrategy.new(response.data, options)
end

.get(id, params = {}, options = {}) ⇒ Object



160
161
162
# File 'lib/files.com/models/sso_strategy.rb', line 160

def self.get(id, params = {}, options = {})
  find(id, params, options)
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.


136
137
138
139
140
141
142
# File 'lib/files.com/models/sso_strategy.rb', line 136

def self.list(params = {}, options = {})
  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, options = Api.send_request("/sso_strategies", :get, params, options)
end

Instance Method Details

#idObject

int64 - ID



33
34
35
# File 'lib/files.com/models/sso_strategy.rb', line 33

def id
  @attributes[:id]
end

#labelObject

string - Custom label for the SSO provider on the login page.



23
24
25
# File 'lib/files.com/models/sso_strategy.rb', line 23

def label
  @attributes[:label]
end

#logo_urlObject

string - URL holding a custom logo for the SSO provider on the login page.



28
29
30
# File 'lib/files.com/models/sso_strategy.rb', line 28

def logo_url
  @attributes[:logo_url]
end

#protocolObject

string - SSO Protocol



13
14
15
# File 'lib/files.com/models/sso_strategy.rb', line 13

def protocol
  @attributes[:protocol]
end

#providerObject

string - Provider name



18
19
20
# File 'lib/files.com/models/sso_strategy.rb', line 18

def provider
  @attributes[:provider]
end

#provision_attachments_permissionObject

boolean - Auto-provisioned users get Sharing permission?



108
109
110
# File 'lib/files.com/models/sso_strategy.rb', line 108

def provision_attachments_permission
  @attributes[:provision_attachments_permission]
end

#provision_dav_permissionObject

boolean - Auto-provisioned users get WebDAV permission?



113
114
115
# File 'lib/files.com/models/sso_strategy.rb', line 113

def provision_dav_permission
  @attributes[:provision_dav_permission]
end

#provision_ftp_permissionObject

boolean - Auto-provisioned users get FTP permission?



118
119
120
# File 'lib/files.com/models/sso_strategy.rb', line 118

def provision_ftp_permission
  @attributes[:provision_ftp_permission]
end

#provision_group_defaultObject

string - Comma-separated list of group names for groups to automatically add all auto-provisioned users to.



88
89
90
# File 'lib/files.com/models/sso_strategy.rb', line 88

def provision_group_default
  @attributes[:provision_group_default]
end

#provision_group_exclusionObject

string - Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.



93
94
95
# File 'lib/files.com/models/sso_strategy.rb', line 93

def provision_group_exclusion
  @attributes[:provision_group_exclusion]
end

#provision_group_inclusionObject

string - Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.



98
99
100
# File 'lib/files.com/models/sso_strategy.rb', line 98

def provision_group_inclusion
  @attributes[:provision_group_inclusion]
end

#provision_group_requiredObject

string - Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.



103
104
105
# File 'lib/files.com/models/sso_strategy.rb', line 103

def provision_group_required
  @attributes[:provision_group_required]
end

#provision_groupsObject

boolean - Auto-provision group membership based on group memberships on the SSO side?



83
84
85
# File 'lib/files.com/models/sso_strategy.rb', line 83

def provision_groups
  @attributes[:provision_groups]
end

#provision_sftp_permissionObject

boolean - Auto-provisioned users get SFTP permission?



123
124
125
# File 'lib/files.com/models/sso_strategy.rb', line 123

def provision_sftp_permission
  @attributes[:provision_sftp_permission]
end

#provision_time_zoneObject

string - Default time zone for auto provisioned users.



128
129
130
# File 'lib/files.com/models/sso_strategy.rb', line 128

def provision_time_zone
  @attributes[:provision_time_zone]
end

#provision_usersObject

boolean - Auto-provision users?



78
79
80
# File 'lib/files.com/models/sso_strategy.rb', line 78

def provision_users
  @attributes[:provision_users]
end

#saml_provider_cert_fingerprintObject

string - Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.



38
39
40
# File 'lib/files.com/models/sso_strategy.rb', line 38

def saml_provider_cert_fingerprint
  @attributes[:saml_provider_cert_fingerprint]
end

#saml_provider_issuer_urlObject

string - Identity provider issuer url



43
44
45
# File 'lib/files.com/models/sso_strategy.rb', line 43

def saml_provider_issuer_url
  @attributes[:saml_provider_issuer_url]
end

#saml_provider_metadata_urlObject

string - Metadata URL for the SAML identity provider



48
49
50
# File 'lib/files.com/models/sso_strategy.rb', line 48

def 
  @attributes[:saml_provider_metadata_url]
end

#saml_provider_slo_target_urlObject

string - Identity provider SLO endpoint



53
54
55
# File 'lib/files.com/models/sso_strategy.rb', line 53

def saml_provider_slo_target_url
  @attributes[:saml_provider_slo_target_url]
end

#saml_provider_sso_target_urlObject

string - Identity provider SSO endpoint if saml_provider_metadata_url is not available.



58
59
60
# File 'lib/files.com/models/sso_strategy.rb', line 58

def saml_provider_sso_target_url
  @attributes[:saml_provider_sso_target_url]
end

#scim_authentication_methodObject

string - SCIM authentication type.



63
64
65
# File 'lib/files.com/models/sso_strategy.rb', line 63

def scim_authentication_method
  @attributes[:scim_authentication_method]
end

#scim_usernameObject

string - SCIM username.



68
69
70
# File 'lib/files.com/models/sso_strategy.rb', line 68

def scim_username
  @attributes[:scim_username]
end

#subdomainObject

string - Subdomain



73
74
75
# File 'lib/files.com/models/sso_strategy.rb', line 73

def subdomain
  @attributes[:subdomain]
end