Class: PlatformAPI::IdentityProvider
- Inherits:
-
Object
- Object
- PlatformAPI::IdentityProvider
- Defined in:
- lib/platform-api/client.rb
Overview
Identity Providers represent the SAML configuration of an Organization.
Instance Method Summary collapse
-
#create(organization_name, body = {}) ⇒ Object
Create an Identity Provider for an organization.
-
#delete(organization_name, identity_provider_id) ⇒ Object
Delete an organization's Identity Provider.
-
#initialize(client) ⇒ IdentityProvider
constructor
A new instance of IdentityProvider.
-
#list(organization_name) ⇒ Object
Get a list of an organization's Identity Providers.
-
#update(organization_name, identity_provider_id, body = {}) ⇒ Object
Update an organization's Identity Provider.
Constructor Details
#initialize(client) ⇒ IdentityProvider
Returns a new instance of IdentityProvider.
1340 1341 1342 |
# File 'lib/platform-api/client.rb', line 1340 def initialize(client) @client = client end |
Instance Method Details
#create(organization_name, body = {}) ⇒ Object
Create an Identity Provider for an organization
1355 1356 1357 |
# File 'lib/platform-api/client.rb', line 1355 def create(organization_name, body = {}) @client.identity_provider.create(organization_name, body) end |
#delete(organization_name, identity_provider_id) ⇒ Object
Delete an organization's Identity Provider
1372 1373 1374 |
# File 'lib/platform-api/client.rb', line 1372 def delete(organization_name, identity_provider_id) @client.identity_provider.delete(organization_name, identity_provider_id) end |
#list(organization_name) ⇒ Object
Get a list of an organization's Identity Providers
1347 1348 1349 |
# File 'lib/platform-api/client.rb', line 1347 def list(organization_name) @client.identity_provider.list(organization_name) end |
#update(organization_name, identity_provider_id, body = {}) ⇒ Object
Update an organization's Identity Provider
1364 1365 1366 |
# File 'lib/platform-api/client.rb', line 1364 def update(organization_name, identity_provider_id, body = {}) @client.identity_provider.update(organization_name, identity_provider_id, body) end |