Class: AppEnrollmentsClient
- Inherits:
-
Object
- Object
- AppEnrollmentsClient
- Defined in:
- lib/lockstep_sdk/clients/app_enrollments_client.rb
Instance Method Summary collapse
-
#create_app_enrollments(body:) ⇒ Object
Creates one or more App Enrollments within this account and returns the records as created.
-
#delete_app_enrollment(id:, remove_enrollment_data:) ⇒ Object
Deletes the App Enrollment referred to by this unique identifier.
-
#initialize(lockstepsdk) ⇒ AppEnrollmentsClient
constructor
Initialize the AppEnrollmentsClient class with a lockstepsdk instance.
-
#query_app_enrollments(filter:, include_param:, order:, page_size:, page_number:) ⇒ Object
Queries App Enrollments for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
-
#query_enrollment_fields(id:) ⇒ Object
Queries custom fields settings for app enrollment within the Lockstep platform using the specified filtering, sorting, nested fetch, and pagination rules requested.
-
#retrieve_app_enrollment(id:, include_param:) ⇒ Object
Retrieves the App Enrollment with this identifier.
-
#update_app_enrollment(id:, body:) ⇒ Object
Updates an existing App Enrollment with the information supplied to this PATCH call.
Constructor Details
#initialize(lockstepsdk) ⇒ AppEnrollmentsClient
Initialize the AppEnrollmentsClient class with a lockstepsdk instance.
25 26 27 |
# File 'lib/lockstep_sdk/clients/app_enrollments_client.rb', line 25 def initialize(lockstepsdk) @lockstepsdk = lockstepsdk end |
Instance Method Details
#create_app_enrollments(body:) ⇒ Object
Creates one or more App Enrollments within this account and returns the records as created.
An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
See [Applications and Enrollments](developer.lockstep.io/docs/applications-and-enrollments) for more information.
82 83 84 85 |
# File 'lib/lockstep_sdk/clients/app_enrollments_client.rb', line 82 def create_app_enrollments(body:) path = "/api/v1/AppEnrollments" @lockstepsdk.request(:post, path, body, nil) end |
#delete_app_enrollment(id:, remove_enrollment_data:) ⇒ Object
Deletes the App Enrollment referred to by this unique identifier. An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
See [Applications and Enrollments](developer.lockstep.io/docs/applications-and-enrollments) for more information.
68 69 70 71 72 |
# File 'lib/lockstep_sdk/clients/app_enrollments_client.rb', line 68 def delete_app_enrollment(id:, remove_enrollment_data:) path = "/api/v1/AppEnrollments/#{id}" params = {:removeEnrollmentData => remove_enrollment_data} @lockstepsdk.request(:delete, path, nil, params) end |
#query_app_enrollments(filter:, include_param:, order:, page_size:, page_number:) ⇒ Object
Queries App Enrollments for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
More information on querying can be found on the [Searchlight Query Language](developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
See [Applications and Enrollments](developer.lockstep.io/docs/applications-and-enrollments) for more information.
101 102 103 104 105 |
# File 'lib/lockstep_sdk/clients/app_enrollments_client.rb', line 101 def query_app_enrollments(filter:, include_param:, order:, page_size:, page_number:) path = "/api/v1/AppEnrollments/query" params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number} @lockstepsdk.request(:get, path, nil, params) end |
#query_enrollment_fields(id:) ⇒ Object
Queries custom fields settings for app enrollment within the Lockstep platform using the specified filtering, sorting, nested fetch, and pagination rules requested.
More information on querying can be found on the [Searchlight Query Language](developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website.
An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
See [Applications and Enrollments](developer.lockstep.io/docs/applications-and-enrollments) for more information.
117 118 119 120 |
# File 'lib/lockstep_sdk/clients/app_enrollments_client.rb', line 117 def query_enrollment_fields(id:) path = "/api/v1/AppEnrollments/settings/#{id}" @lockstepsdk.request(:get, path, nil, nil) end |
#retrieve_app_enrollment(id:, include_param:) ⇒ Object
Retrieves the App Enrollment with this identifier.
An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
See [Applications and Enrollments](developer.lockstep.io/docs/applications-and-enrollments) for more information.
39 40 41 42 43 |
# File 'lib/lockstep_sdk/clients/app_enrollments_client.rb', line 39 def retrieve_app_enrollment(id:, include_param:) path = "/api/v1/AppEnrollments/#{id}" params = {:include => include_param} @lockstepsdk.request(:get, path, nil, params) end |
#update_app_enrollment(id:, body:) ⇒ Object
Updates an existing App Enrollment with the information supplied to this PATCH call.
The PATCH method allows you to change specific values on the object while leaving other values alone. As input you should supply a list of field names and new values. For example, you can provide the field name “IsActive” and specify the new value “False”; this API will then change the value of IsActive to false.
An App Enrollment represents an app that has been enrolled to the current account. When you sign up for an app using the Lockstep Platform, you obtain an enrollment record for that app. Example types of apps include connectors and feature enhancement apps. The App Enrollment object contains information about this app, its configuration, and settings.
See [Applications and Enrollments](developer.lockstep.io/docs/applications-and-enrollments) for more information.
56 57 58 59 |
# File 'lib/lockstep_sdk/clients/app_enrollments_client.rb', line 56 def update_app_enrollment(id:, body:) path = "/api/v1/AppEnrollments/#{id}" @lockstepsdk.request(:patch, path, body.to_camelback_keys.to_json, nil) end |