purecloudplatformclientv2 87.0.0 → 92.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AmazonLexRequest.md +14 -0
- data/docs/AnalyticsEvaluation.md +1 -1
- data/docs/ApiUsageQuery.md +16 -0
- data/docs/ApiUsageQueryResult.md +14 -0
- data/docs/ApiUsageRow.md +25 -0
- data/docs/ArchitectApi.md +132 -0
- data/docs/AuditApi.md +130 -0
- data/docs/AuditQueryEntity.md +14 -0
- data/docs/AuditQueryExecutionStatusResponse.md +1 -0
- data/docs/AuditQueryRequest.md +1 -0
- data/docs/AuditQueryService.md +14 -0
- data/docs/AuditQueryServiceMapping.md +13 -0
- data/docs/AuditQuerySort.md +14 -0
- data/docs/AuditRealtimeQueryRequest.md +18 -0
- data/docs/AuditRealtimeQueryResultsResponse.md +17 -0
- data/docs/BuAgentScheduleActivity.md +2 -0
- data/docs/BuRescheduleRequest.md +2 -2
- data/docs/ButtonComponent.md +16 -0
- data/docs/CoachingApi.md +1 -1
- data/docs/ContentActions.md +17 -0
- data/docs/ContentAttachment.md +19 -0
- data/docs/ContentGeneric.md +19 -0
- data/docs/ContentList.md +19 -0
- data/docs/ContentLocation.md +17 -0
- data/docs/ContentNotificationTemplate.md +17 -0
- data/docs/ContentQuickReply.md +16 -0
- data/docs/ConversationAggregationQuery.md +1 -1
- data/docs/CreateQueueRequest.md +1 -0
- data/docs/EdgeGroup.md +1 -0
- data/docs/EntityListing.md +1 -5
- data/docs/EvaluationAggregationQuery.md +1 -1
- data/docs/ExternalContact.md +2 -0
- data/docs/ExternalOrganization.md +2 -0
- data/docs/FlowAggregationQuery.md +1 -1
- data/docs/FlowExecutionLaunchRequest.md +16 -0
- data/docs/FlowExecutionLaunchResponse.md +16 -0
- data/docs/FlowRuntimeExecution.md +23 -0
- data/docs/GenericSAML.md +22 -0
- data/docs/GoogleDialogflowCustomSettings.md +13 -0
- data/docs/GroupsApi.md +4 -4
- data/docs/IdentityProviderApi.md +187 -0
- data/docs/IpAddressAuthentication.md +13 -0
- data/docs/KnowledgeSearchResponse.md +1 -1
- data/docs/LanguageUnderstandingApi.md +164 -30
- data/docs/ListItemComponent.md +19 -0
- data/docs/MessageContent.md +19 -0
- data/docs/NluDomainVersion.md +3 -1
- data/docs/NotificationTemplateBody.md +14 -0
- data/docs/NotificationTemplateFooter.md +13 -0
- data/docs/NotificationTemplateHeader.md +16 -0
- data/docs/NotificationTemplateParameter.md +14 -0
- data/docs/OAuthApi.md +208 -0
- data/docs/OrganizationApi.md +126 -0
- data/docs/PostTextMessage.md +15 -0
- data/docs/PostTextRequest.md +23 -0
- data/docs/PostTextResponse.md +20 -0
- data/docs/Prompt.md +2 -2
- data/docs/Queue.md +1 -0
- data/docs/QueueRequest.md +1 -0
- data/docs/RecordingApi.md +12 -0
- data/docs/ReportingDataExportTopicDataExportNotification.md +1 -0
- data/docs/ScimEmail.md +1 -1
- data/docs/SurveyAggregationQuery.md +1 -1
- data/docs/SurveyForm.md +0 -2
- data/docs/TextbotsApi.md +78 -0
- data/docs/UploadUrlRequest.md +1 -0
- data/docs/UsageApi.md +144 -0
- data/docs/UsageExecutionResult.md +14 -0
- data/docs/UserAggregationQuery.md +1 -1
- data/docs/UserQueue.md +1 -0
- data/docs/UsersApi.md +5 -5
- data/docs/ViewFilter.md +2 -0
- data/docs/VoicemailMessagesTopicOwner.md +13 -0
- data/docs/VoicemailMessagesTopicVoicemailCopyRecord.md +14 -0
- data/docs/VoicemailMessagesTopicVoicemailMessage.md +2 -0
- data/docs/WfmBuShortTermForecastImportCompleteTopicBuForecastModification.md +23 -0
- data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecast.md +24 -0
- data/docs/WfmBuShortTermForecastImportCompleteTopicBuShortTermForecastNotification.md +15 -0
- data/docs/WfmBuShortTermForecastImportCompleteTopicForecastSourceDayPointer.md +17 -0
- data/docs/WfmBuShortTermForecastImportCompleteTopicModificationIntervalOffsetValue.md +14 -0
- data/docs/WfmBuShortTermForecastImportCompleteTopicUserReference.md +13 -0
- data/docs/WfmBuShortTermForecastImportCompleteTopicWfmVersionedEntityMetadata.md +15 -0
- data/docs/WorkforceManagementApi.md +3 -3
- data/lib/purecloudplatformclientv2.rb +45 -0
- data/lib/purecloudplatformclientv2/api/architect_api.rb +130 -0
- data/lib/purecloudplatformclientv2/api/audit_api.rb +129 -0
- data/lib/purecloudplatformclientv2/api/groups_api.rb +4 -4
- data/lib/purecloudplatformclientv2/api/identity_provider_api.rb +175 -0
- data/lib/purecloudplatformclientv2/api/language_understanding_api.rb +189 -30
- data/lib/purecloudplatformclientv2/api/o_auth_api.rb +224 -0
- data/lib/purecloudplatformclientv2/api/organization_api.rb +120 -0
- data/lib/purecloudplatformclientv2/api/recording_api.rb +78 -0
- data/lib/purecloudplatformclientv2/api/textbots_api.rb +92 -0
- data/lib/purecloudplatformclientv2/api/usage_api.rb +157 -0
- data/lib/purecloudplatformclientv2/api/users_api.rb +4 -4
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +6 -6
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/amazon_lex_request.rb +232 -0
- data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
- data/lib/purecloudplatformclientv2/models/api_usage_query.rb +303 -0
- data/lib/purecloudplatformclientv2/models/api_usage_query_result.rb +244 -0
- data/lib/purecloudplatformclientv2/models/api_usage_row.rb +514 -0
- data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
- data/lib/purecloudplatformclientv2/models/audit_query_entity.rb +244 -0
- data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +34 -6
- data/lib/purecloudplatformclientv2/models/audit_query_request.rb +34 -6
- data/lib/purecloudplatformclientv2/models/audit_query_service.rb +244 -0
- data/lib/purecloudplatformclientv2/models/audit_query_service_mapping.rb +204 -0
- data/lib/purecloudplatformclientv2/models/audit_query_sort.rb +266 -0
- data/lib/purecloudplatformclientv2/models/audit_realtime_query_request.rb +360 -0
- data/lib/purecloudplatformclientv2/models/audit_realtime_query_results_response.rb +303 -0
- data/lib/purecloudplatformclientv2/models/bu_agent_schedule_activity.rb +70 -4
- data/lib/purecloudplatformclientv2/models/bu_reschedule_request.rb +2 -12
- data/lib/purecloudplatformclientv2/models/button_component.rb +281 -0
- data/lib/purecloudplatformclientv2/models/coaching_appointment_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/coaching_notification.rb +2 -2
- data/lib/purecloudplatformclientv2/models/content_actions.rb +309 -0
- data/lib/purecloudplatformclientv2/models/content_attachment.rb +378 -0
- data/lib/purecloudplatformclientv2/models/content_generic.rb +361 -0
- data/lib/purecloudplatformclientv2/models/content_list.rb +375 -0
- data/lib/purecloudplatformclientv2/models/content_location.rb +307 -0
- data/lib/purecloudplatformclientv2/models/content_notification_template.rb +312 -0
- data/lib/purecloudplatformclientv2/models/content_quick_reply.rb +300 -0
- data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/conversation_aggregation_query.rb +1 -1
- data/lib/purecloudplatformclientv2/models/create_queue_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/edge_group.rb +27 -1
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
- data/lib/purecloudplatformclientv2/models/evaluation_aggregation_query.rb +1 -1
- data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
- data/lib/purecloudplatformclientv2/models/external_contact.rb +55 -1
- data/lib/purecloudplatformclientv2/models/external_organization.rb +55 -1
- data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/flow_aggregation_query.rb +1 -1
- data/lib/purecloudplatformclientv2/models/flow_execution_launch_request.rb +288 -0
- data/lib/purecloudplatformclientv2/models/flow_execution_launch_response.rb +281 -0
- data/lib/purecloudplatformclientv2/models/flow_runtime_execution.rb +494 -0
- data/lib/purecloudplatformclientv2/models/generic_saml.rb +428 -0
- data/lib/purecloudplatformclientv2/models/google_dialogflow_custom_settings.rb +202 -0
- data/lib/purecloudplatformclientv2/models/ip_address_authentication.rb +203 -0
- data/lib/purecloudplatformclientv2/models/knowledge_search_response.rb +18 -18
- data/lib/purecloudplatformclientv2/models/list_item_component.rb +373 -0
- data/lib/purecloudplatformclientv2/models/message_content.rb +378 -0
- data/lib/purecloudplatformclientv2/models/nlu_domain_version.rb +72 -1
- data/lib/purecloudplatformclientv2/models/notification_template_body.rb +236 -0
- data/lib/purecloudplatformclientv2/models/notification_template_footer.rb +203 -0
- data/lib/purecloudplatformclientv2/models/notification_template_header.rb +302 -0
- data/lib/purecloudplatformclientv2/models/notification_template_parameter.rb +234 -0
- data/lib/purecloudplatformclientv2/models/post_text_message.rb +275 -0
- data/lib/purecloudplatformclientv2/models/post_text_request.rb +482 -0
- data/lib/purecloudplatformclientv2/models/post_text_response.rb +413 -0
- data/lib/purecloudplatformclientv2/models/prompt.rb +2 -0
- data/lib/purecloudplatformclientv2/models/prompt_asset.rb +15 -1
- data/lib/purecloudplatformclientv2/models/prompt_asset_create.rb +15 -1
- data/lib/purecloudplatformclientv2/models/queue.rb +29 -1
- data/lib/purecloudplatformclientv2/models/queue_request.rb +29 -1
- data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +31 -4
- data/lib/purecloudplatformclientv2/models/scim_email.rb +1 -1
- data/lib/purecloudplatformclientv2/models/survey_aggregation_query.rb +1 -1
- data/lib/purecloudplatformclientv2/models/survey_form.rb +1 -53
- data/lib/purecloudplatformclientv2/models/upload_url_request.rb +43 -4
- data/lib/purecloudplatformclientv2/models/usage_execution_result.rb +228 -0
- data/lib/purecloudplatformclientv2/models/user_aggregation_query.rb +1 -1
- data/lib/purecloudplatformclientv2/models/user_queue.rb +29 -1
- data/lib/purecloudplatformclientv2/models/view_filter.rb +58 -4
- data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_owner.rb +201 -0
- data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_copy_record.rb +226 -0
- data/lib/purecloudplatformclientv2/models/voicemail_messages_topic_voicemail_message.rb +56 -4
- data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_forecast_modification.rb +497 -0
- data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast.rb +494 -0
- data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_bu_short_term_forecast_notification.rb +265 -0
- data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_forecast_source_day_pointer.rb +315 -0
- data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_modification_interval_offset_value.rb +226 -0
- data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_user_reference.rb +201 -0
- data/lib/purecloudplatformclientv2/models/wfm_bu_short_term_forecast_import_complete_topic_wfm_versioned_entity_metadata.rb +251 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +92 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: ListItemComponent
|
|
3
|
+
---
|
|
4
|
+
## PureCloud::ListItemComponent
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
|Name | Type | Description | Notes|
|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
|
10
|
+
| **id** | **String** | An ID assigned to this component | [optional] |
|
|
11
|
+
| **rmid** | **String** | An ID of the rich message instance | [optional] |
|
|
12
|
+
| **type** | **String** | The type of component to render | [optional] |
|
|
13
|
+
| **image** | **String** | Path or URI to an image file | [optional] |
|
|
14
|
+
| **title** | **String** | The main headline of the list item | [optional] |
|
|
15
|
+
| **description** | **String** | Text to show in the description row | [optional] |
|
|
16
|
+
| **actions** | [**ContentActions**](ContentActions.html) | User actions available on the content. All actions are optional and all actions are executed simultaneously. | [optional] |
|
|
17
|
+
{: class="table table-striped"}
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MessageContent
|
|
3
|
+
---
|
|
4
|
+
## PureCloud::MessageContent
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
|Name | Type | Description | Notes|
|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
|
10
|
+
| **content_type** | **String** | Type of this content element. If contentType = \"Attachment\" only one item is allowed. | |
|
|
11
|
+
| **location** | [**ContentLocation**](ContentLocation.html) | Location object | [optional] |
|
|
12
|
+
| **attachment** | [**ContentAttachment**](ContentAttachment.html) | Attachment object | [optional] |
|
|
13
|
+
| **quick_reply** | [**ContentQuickReply**](ContentQuickReply.html) | Quick reply object | [optional] |
|
|
14
|
+
| **generic** | [**ContentGeneric**](ContentGeneric.html) | Generic content object | [optional] |
|
|
15
|
+
| **list** | [**ContentList**](ContentList.html) | List content object | [optional] |
|
|
16
|
+
| **template** | [**ContentNotificationTemplate**](ContentNotificationTemplate.html) | Template notification object | [optional] |
|
|
17
|
+
{: class="table table-striped"}
|
|
18
|
+
|
|
19
|
+
|
data/docs/NluDomainVersion.md
CHANGED
|
@@ -10,12 +10,14 @@ title: NluDomainVersion
|
|
|
10
10
|
| **id** | **String** | The globally unique identifier for the object. | [optional] |
|
|
11
11
|
| **domain** | [**NluDomain**](NluDomain.html) | The NLU domain of the version. | [optional] |
|
|
12
12
|
| **description** | **String** | The description of the NLU domain version. | [optional] |
|
|
13
|
-
| **language** | **String** | The language that the NLU domain version supports. |
|
|
13
|
+
| **language** | **String** | The language that the NLU domain version supports. | |
|
|
14
|
+
| **published** | **BOOLEAN** | Whether this NLU domain version has been published. | [optional] |
|
|
14
15
|
| **date_created** | **DateTime** | The date when the NLU domain version was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
|
|
15
16
|
| **date_modified** | **DateTime** | The date when the NLU domain version was updated. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
|
|
16
17
|
| **date_trained** | **DateTime** | The date when the NLU domain version was trained. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
|
|
17
18
|
| **date_published** | **DateTime** | The date when the NLU domain version was published. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
|
|
18
19
|
| **training_status** | **String** | The training status of the NLU domain version. | [optional] |
|
|
20
|
+
| **evaluation_status** | **String** | The evaluation status of the NLU domain version. | [optional] |
|
|
19
21
|
| **intents** | [**Array<IntentDefinition>**](IntentDefinition.html) | The intents defined for this NLU domain version. | [optional] |
|
|
20
22
|
| **entity_types** | [**Array<NamedEntityTypeDefinition>**](NamedEntityTypeDefinition.html) | The entity types defined for this NLU domain version. | [optional] |
|
|
21
23
|
| **self_uri** | **String** | The URI for this object | [optional] |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: NotificationTemplateBody
|
|
3
|
+
---
|
|
4
|
+
## PureCloud::NotificationTemplateBody
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
|Name | Type | Description | Notes|
|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
|
10
|
+
| **text** | **String** | Body text. For WhatsApp, ignored | [optional] |
|
|
11
|
+
| **parameters** | [**Array<NotificationTemplateParameter>**](NotificationTemplateParameter.html) | Template parameters for placeholders in template | |
|
|
12
|
+
{: class="table table-striped"}
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: NotificationTemplateFooter
|
|
3
|
+
---
|
|
4
|
+
## PureCloud::NotificationTemplateFooter
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
|Name | Type | Description | Notes|
|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
|
10
|
+
| **text** | **String** | Footer text. For WhatsApp, ignored | [optional] |
|
|
11
|
+
{: class="table table-striped"}
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: NotificationTemplateHeader
|
|
3
|
+
---
|
|
4
|
+
## PureCloud::NotificationTemplateHeader
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
|Name | Type | Description | Notes|
|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
|
10
|
+
| **type** | **String** | Template header type | |
|
|
11
|
+
| **text** | **String** | Header text. For WhatsApp, ignored | [optional] |
|
|
12
|
+
| **media** | [**ContentAttachment**](ContentAttachment.html) | Attachment object | [optional] |
|
|
13
|
+
| **parameters** | [**Array<NotificationTemplateParameter>**](NotificationTemplateParameter.html) | Template parameters for placeholders in template | [optional] |
|
|
14
|
+
{: class="table table-striped"}
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: NotificationTemplateParameter
|
|
3
|
+
---
|
|
4
|
+
## PureCloud::NotificationTemplateParameter
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
|Name | Type | Description | Notes|
|
|
9
|
+
|------------ | ------------- | ------------- | -------------|
|
|
10
|
+
| **name** | **String** | Parameter name | [optional] |
|
|
11
|
+
| **text** | **String** | Parameter text value | |
|
|
12
|
+
{: class="table table-striped"}
|
|
13
|
+
|
|
14
|
+
|
data/docs/OAuthApi.md
CHANGED
|
@@ -12,10 +12,13 @@ Method | Description
|
|
|
12
12
|
[**get_oauth_authorization**](OAuthApi.html#get_oauth_authorization) | Get a client that is authorized by the resource owner
|
|
13
13
|
[**get_oauth_authorizations**](OAuthApi.html#get_oauth_authorizations) | List clients that are authorized by the resource owner
|
|
14
14
|
[**get_oauth_client**](OAuthApi.html#get_oauth_client) | Get OAuth Client
|
|
15
|
+
[**get_oauth_client_usage_query_result**](OAuthApi.html#get_oauth_client_usage_query_result) | Get the results of a usage query
|
|
16
|
+
[**get_oauth_client_usage_summary**](OAuthApi.html#get_oauth_client_usage_summary) | Get a summary of OAuth client API usage
|
|
15
17
|
[**get_oauth_clients**](OAuthApi.html#get_oauth_clients) | The list of OAuth clients
|
|
16
18
|
[**get_oauth_scope**](OAuthApi.html#get_oauth_scope) | An OAuth scope
|
|
17
19
|
[**get_oauth_scopes**](OAuthApi.html#get_oauth_scopes) | The list of OAuth scopes
|
|
18
20
|
[**post_oauth_client_secret**](OAuthApi.html#post_oauth_client_secret) | Regenerate Client Secret
|
|
21
|
+
[**post_oauth_client_usage_query**](OAuthApi.html#post_oauth_client_usage_query) | Query for OAuth client API usage
|
|
19
22
|
[**post_oauth_clients**](OAuthApi.html#post_oauth_clients) | Create OAuth client
|
|
20
23
|
[**put_oauth_client**](OAuthApi.html#put_oauth_client) | Update OAuth Client
|
|
21
24
|
{: class="table table-striped"}
|
|
@@ -273,6 +276,143 @@ Name | Type | Description | Notes
|
|
|
273
276
|
|
|
274
277
|
|
|
275
278
|
|
|
279
|
+
<a name="get_oauth_client_usage_query_result"></a>
|
|
280
|
+
|
|
281
|
+
## [**ApiUsageQueryResult**](ApiUsageQueryResult.html) get_oauth_client_usage_query_result(execution_id, client_id)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
Get the results of a usage query
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
Wraps GET /api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}
|
|
290
|
+
|
|
291
|
+
Requires ANY permissions:
|
|
292
|
+
|
|
293
|
+
* oauth:client:view
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
### Example
|
|
297
|
+
```{"language":"ruby"}
|
|
298
|
+
# load the gem
|
|
299
|
+
require 'purecloudplatformclientv2'
|
|
300
|
+
# setup authorization
|
|
301
|
+
@secret = ENV['PURECLOUD_SECRET']
|
|
302
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
|
303
|
+
environment = "mypurecloud.com"
|
|
304
|
+
|
|
305
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
|
306
|
+
|
|
307
|
+
PureCloud.configure do |config|
|
|
308
|
+
config.access_token = @authToken
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
api_instance = PureCloud::OAuthApi.new
|
|
312
|
+
|
|
313
|
+
execution_id = "execution_id_example" # String | ID of the query execution
|
|
314
|
+
|
|
315
|
+
client_id = "client_id_example" # String | Client ID
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
begin
|
|
319
|
+
#Get the results of a usage query
|
|
320
|
+
result = api_instance.get_oauth_client_usage_query_result(execution_id, client_id)
|
|
321
|
+
p result
|
|
322
|
+
rescue PureCloud::ApiError => e
|
|
323
|
+
puts "Exception when calling OAuthApi->get_oauth_client_usage_query_result: #{e}"
|
|
324
|
+
end
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### Parameters
|
|
328
|
+
|
|
329
|
+
Name | Type | Description | Notes
|
|
330
|
+
------------- | ------------- | ------------- | -------------
|
|
331
|
+
**execution_id** | **String**| ID of the query execution | |
|
|
332
|
+
**client_id** | **String**| Client ID | |
|
|
333
|
+
{: class="table table-striped"}
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
### Return type
|
|
337
|
+
|
|
338
|
+
[**ApiUsageQueryResult**](ApiUsageQueryResult.html)
|
|
339
|
+
|
|
340
|
+
### HTTP request headers
|
|
341
|
+
|
|
342
|
+
- **Content-Type**: application/json
|
|
343
|
+
- **Accept**: application/json
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
<a name="get_oauth_client_usage_summary"></a>
|
|
348
|
+
|
|
349
|
+
## [**UsageExecutionResult**](UsageExecutionResult.html) get_oauth_client_usage_summary(client_id, opts)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
Get a summary of OAuth client API usage
|
|
354
|
+
|
|
355
|
+
After calling this method, you will then need to poll for the query results based on the returned execution Id
|
|
356
|
+
|
|
357
|
+
Wraps GET /api/v2/oauth/clients/{clientId}/usage/summary
|
|
358
|
+
|
|
359
|
+
Requires ANY permissions:
|
|
360
|
+
|
|
361
|
+
* oauth:client:view
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
### Example
|
|
365
|
+
```{"language":"ruby"}
|
|
366
|
+
# load the gem
|
|
367
|
+
require 'purecloudplatformclientv2'
|
|
368
|
+
# setup authorization
|
|
369
|
+
@secret = ENV['PURECLOUD_SECRET']
|
|
370
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
|
371
|
+
environment = "mypurecloud.com"
|
|
372
|
+
|
|
373
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
|
374
|
+
|
|
375
|
+
PureCloud.configure do |config|
|
|
376
|
+
config.access_token = @authToken
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
api_instance = PureCloud::OAuthApi.new
|
|
380
|
+
|
|
381
|
+
client_id = "client_id_example" # String | Client ID
|
|
382
|
+
|
|
383
|
+
opts = {
|
|
384
|
+
days: "7" # String | Previous number of days to query
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
begin
|
|
388
|
+
#Get a summary of OAuth client API usage
|
|
389
|
+
result = api_instance.get_oauth_client_usage_summary(client_id, opts)
|
|
390
|
+
p result
|
|
391
|
+
rescue PureCloud::ApiError => e
|
|
392
|
+
puts "Exception when calling OAuthApi->get_oauth_client_usage_summary: #{e}"
|
|
393
|
+
end
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### Parameters
|
|
397
|
+
|
|
398
|
+
Name | Type | Description | Notes
|
|
399
|
+
------------- | ------------- | ------------- | -------------
|
|
400
|
+
**client_id** | **String**| Client ID | |
|
|
401
|
+
**days** | **String**| Previous number of days to query | [optional] [default to 7] |
|
|
402
|
+
{: class="table table-striped"}
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
### Return type
|
|
406
|
+
|
|
407
|
+
[**UsageExecutionResult**](UsageExecutionResult.html)
|
|
408
|
+
|
|
409
|
+
### HTTP request headers
|
|
410
|
+
|
|
411
|
+
- **Content-Type**: application/json
|
|
412
|
+
- **Accept**: application/json
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
276
416
|
<a name="get_oauth_clients"></a>
|
|
277
417
|
|
|
278
418
|
## [**OAuthClientEntityListing**](OAuthClientEntityListing.html) get_oauth_clients
|
|
@@ -530,6 +670,74 @@ Name | Type | Description | Notes
|
|
|
530
670
|
|
|
531
671
|
|
|
532
672
|
|
|
673
|
+
<a name="post_oauth_client_usage_query"></a>
|
|
674
|
+
|
|
675
|
+
## [**UsageExecutionResult**](UsageExecutionResult.html) post_oauth_client_usage_query(client_id, body)
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
Query for OAuth client API usage
|
|
680
|
+
|
|
681
|
+
After calling this method, you will then need to poll for the query results based on the returned execution Id
|
|
682
|
+
|
|
683
|
+
Wraps POST /api/v2/oauth/clients/{clientId}/usage/query
|
|
684
|
+
|
|
685
|
+
Requires ANY permissions:
|
|
686
|
+
|
|
687
|
+
* oauth:client:view
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
### Example
|
|
691
|
+
```{"language":"ruby"}
|
|
692
|
+
# load the gem
|
|
693
|
+
require 'purecloudplatformclientv2'
|
|
694
|
+
# setup authorization
|
|
695
|
+
@secret = ENV['PURECLOUD_SECRET']
|
|
696
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
|
697
|
+
environment = "mypurecloud.com"
|
|
698
|
+
|
|
699
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
|
700
|
+
|
|
701
|
+
PureCloud.configure do |config|
|
|
702
|
+
config.access_token = @authToken
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
api_instance = PureCloud::OAuthApi.new
|
|
706
|
+
|
|
707
|
+
client_id = "client_id_example" # String | Client ID
|
|
708
|
+
|
|
709
|
+
body = PureCloud::ApiUsageQuery.new # ApiUsageQuery | Query
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
begin
|
|
713
|
+
#Query for OAuth client API usage
|
|
714
|
+
result = api_instance.post_oauth_client_usage_query(client_id, body)
|
|
715
|
+
p result
|
|
716
|
+
rescue PureCloud::ApiError => e
|
|
717
|
+
puts "Exception when calling OAuthApi->post_oauth_client_usage_query: #{e}"
|
|
718
|
+
end
|
|
719
|
+
```
|
|
720
|
+
|
|
721
|
+
### Parameters
|
|
722
|
+
|
|
723
|
+
Name | Type | Description | Notes
|
|
724
|
+
------------- | ------------- | ------------- | -------------
|
|
725
|
+
**client_id** | **String**| Client ID | |
|
|
726
|
+
**body** | [**ApiUsageQuery**](ApiUsageQuery.html)| Query | |
|
|
727
|
+
{: class="table table-striped"}
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
### Return type
|
|
731
|
+
|
|
732
|
+
[**UsageExecutionResult**](UsageExecutionResult.html)
|
|
733
|
+
|
|
734
|
+
### HTTP request headers
|
|
735
|
+
|
|
736
|
+
- **Content-Type**: application/json
|
|
737
|
+
- **Accept**: application/json
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
533
741
|
<a name="post_oauth_clients"></a>
|
|
534
742
|
|
|
535
743
|
## [**OAuthClient**](OAuthClient.html) post_oauth_clients(body)
|
data/docs/OrganizationApi.md
CHANGED
|
@@ -10,10 +10,12 @@ Method | Description
|
|
|
10
10
|
------------- | ------------- | -------------
|
|
11
11
|
[**get_fieldconfig**](OrganizationApi.html#get_fieldconfig) | Fetch field config for an entity type
|
|
12
12
|
[**get_organizations_embeddedintegration**](OrganizationApi.html#get_organizations_embeddedintegration) | Get the list of domains that will be allowed to embed PureCloud applications
|
|
13
|
+
[**get_organizations_ipaddressauthentication**](OrganizationApi.html#get_organizations_ipaddressauthentication) | Get organization IP address whitelist settings
|
|
13
14
|
[**get_organizations_me**](OrganizationApi.html#get_organizations_me) | Get organization.
|
|
14
15
|
[**get_organizations_whitelist**](OrganizationApi.html#get_organizations_whitelist) | Use PUT /api/v2/organizations/embeddedintegration instead
|
|
15
16
|
[**patch_organizations_feature**](OrganizationApi.html#patch_organizations_feature) | Update organization
|
|
16
17
|
[**put_organizations_embeddedintegration**](OrganizationApi.html#put_organizations_embeddedintegration) | Update the list of domains that will be allowed to embed PureCloud applications
|
|
18
|
+
[**put_organizations_ipaddressauthentication**](OrganizationApi.html#put_organizations_ipaddressauthentication) | Update organization IP address whitelist settings
|
|
17
19
|
[**put_organizations_me**](OrganizationApi.html#put_organizations_me) | Update organization.
|
|
18
20
|
[**put_organizations_whitelist**](OrganizationApi.html#put_organizations_whitelist) | Use PUT /api/v2/organizations/embeddedintegration instead
|
|
19
21
|
{: class="table table-striped"}
|
|
@@ -140,6 +142,65 @@ This endpoint does not need any parameter.
|
|
|
140
142
|
|
|
141
143
|
|
|
142
144
|
|
|
145
|
+
<a name="get_organizations_ipaddressauthentication"></a>
|
|
146
|
+
|
|
147
|
+
## [**IpAddressAuthentication**](IpAddressAuthentication.html) get_organizations_ipaddressauthentication
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
Get organization IP address whitelist settings
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
Wraps GET /api/v2/organizations/ipaddressauthentication
|
|
156
|
+
|
|
157
|
+
Requires ANY permissions:
|
|
158
|
+
|
|
159
|
+
* directory:organization:admin
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Example
|
|
163
|
+
```{"language":"ruby"}
|
|
164
|
+
# load the gem
|
|
165
|
+
require 'purecloudplatformclientv2'
|
|
166
|
+
# setup authorization
|
|
167
|
+
@secret = ENV['PURECLOUD_SECRET']
|
|
168
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
|
169
|
+
environment = "mypurecloud.com"
|
|
170
|
+
|
|
171
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
|
172
|
+
|
|
173
|
+
PureCloud.configure do |config|
|
|
174
|
+
config.access_token = @authToken
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
api_instance = PureCloud::OrganizationApi.new
|
|
178
|
+
|
|
179
|
+
begin
|
|
180
|
+
#Get organization IP address whitelist settings
|
|
181
|
+
result = api_instance.get_organizations_ipaddressauthentication
|
|
182
|
+
p result
|
|
183
|
+
rescue PureCloud::ApiError => e
|
|
184
|
+
puts "Exception when calling OrganizationApi->get_organizations_ipaddressauthentication: #{e}"
|
|
185
|
+
end
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Parameters
|
|
189
|
+
This endpoint does not need any parameter.
|
|
190
|
+
{: class="table table-striped"}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### Return type
|
|
194
|
+
|
|
195
|
+
[**IpAddressAuthentication**](IpAddressAuthentication.html)
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: application/json
|
|
200
|
+
- **Accept**: application/json
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
143
204
|
<a name="get_organizations_me"></a>
|
|
144
205
|
|
|
145
206
|
## [**Organization**](Organization.html) get_organizations_me
|
|
@@ -389,6 +450,71 @@ Name | Type | Description | Notes
|
|
|
389
450
|
|
|
390
451
|
|
|
391
452
|
|
|
453
|
+
<a name="put_organizations_ipaddressauthentication"></a>
|
|
454
|
+
|
|
455
|
+
## [**IpAddressAuthentication**](IpAddressAuthentication.html) put_organizations_ipaddressauthentication(body)
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
Update organization IP address whitelist settings
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
Wraps PUT /api/v2/organizations/ipaddressauthentication
|
|
464
|
+
|
|
465
|
+
Requires ANY permissions:
|
|
466
|
+
|
|
467
|
+
* directory:organization:admin
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
### Example
|
|
471
|
+
```{"language":"ruby"}
|
|
472
|
+
# load the gem
|
|
473
|
+
require 'purecloudplatformclientv2'
|
|
474
|
+
# setup authorization
|
|
475
|
+
@secret = ENV['PURECLOUD_SECRET']
|
|
476
|
+
@id = ENV['PURECLOUD_CLIENT_ID']
|
|
477
|
+
environment = "mypurecloud.com"
|
|
478
|
+
|
|
479
|
+
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
|
|
480
|
+
|
|
481
|
+
PureCloud.configure do |config|
|
|
482
|
+
config.access_token = @authToken
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
api_instance = PureCloud::OrganizationApi.new
|
|
486
|
+
|
|
487
|
+
body = PureCloud::IpAddressAuthentication.new # IpAddressAuthentication | IP address Whitelist settings
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
begin
|
|
491
|
+
#Update organization IP address whitelist settings
|
|
492
|
+
result = api_instance.put_organizations_ipaddressauthentication(body)
|
|
493
|
+
p result
|
|
494
|
+
rescue PureCloud::ApiError => e
|
|
495
|
+
puts "Exception when calling OrganizationApi->put_organizations_ipaddressauthentication: #{e}"
|
|
496
|
+
end
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
### Parameters
|
|
500
|
+
|
|
501
|
+
Name | Type | Description | Notes
|
|
502
|
+
------------- | ------------- | ------------- | -------------
|
|
503
|
+
**body** | [**IpAddressAuthentication**](IpAddressAuthentication.html)| IP address Whitelist settings | |
|
|
504
|
+
{: class="table table-striped"}
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
### Return type
|
|
508
|
+
|
|
509
|
+
[**IpAddressAuthentication**](IpAddressAuthentication.html)
|
|
510
|
+
|
|
511
|
+
### HTTP request headers
|
|
512
|
+
|
|
513
|
+
- **Content-Type**: application/json
|
|
514
|
+
- **Accept**: application/json
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
392
518
|
<a name="put_organizations_me"></a>
|
|
393
519
|
|
|
394
520
|
## [**Organization**](Organization.html) put_organizations_me(opts)
|