Class: PureCloud::ContentManagementApi
- Inherits:
-
Object
- Object
- PureCloud::ContentManagementApi
- Defined in:
- lib/purecloudplatformclientv2/api/content_management_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_contentmanagement_document(document_id, opts = {}) ⇒ nil
Delete a document.
-
#delete_contentmanagement_document_with_http_info(document_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a document.
-
#delete_contentmanagement_share(share_id, opts = {}) ⇒ nil
Deletes an existing share.
-
#delete_contentmanagement_share_with_http_info(share_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Deletes an existing share.
-
#delete_contentmanagement_status_status_id(status_id, opts = {}) ⇒ nil
Cancel the command for this status.
-
#delete_contentmanagement_status_status_id_with_http_info(status_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Cancel the command for this status.
-
#delete_contentmanagement_workspace(workspace_id, opts = {}) ⇒ nil
Delete a workspace.
-
#delete_contentmanagement_workspace_member(workspace_id, member_id, opts = {}) ⇒ nil
Delete a member from a workspace.
-
#delete_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a member from a workspace.
-
#delete_contentmanagement_workspace_tagvalue(workspace_id, tag_id, opts = {}) ⇒ nil
Delete workspace tag Delete a tag from a workspace.
-
#delete_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete workspace tag Delete a tag from a workspace.
-
#delete_contentmanagement_workspace_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a workspace.
-
#get_contentmanagement_document(document_id, opts = {}) ⇒ Document
Get a document.
-
#get_contentmanagement_document_audits(document_id, opts = {}) ⇒ DocumentAuditEntityListing
Get a list of audits for a document.
-
#get_contentmanagement_document_audits_with_http_info(document_id, opts = {}) ⇒ Array<(DocumentAuditEntityListing, Fixnum, Hash)>
Get a list of audits for a document.
-
#get_contentmanagement_document_content(document_id, opts = {}) ⇒ DownloadResponse
Download a document.
-
#get_contentmanagement_document_content_with_http_info(document_id, opts = {}) ⇒ Array<(DownloadResponse, Fixnum, Hash)>
Download a document.
-
#get_contentmanagement_document_with_http_info(document_id, opts = {}) ⇒ Array<(Document, Fixnum, Hash)>
Get a document.
-
#get_contentmanagement_documents(workspace_id, opts = {}) ⇒ DocumentEntityListing
Get a list of documents.
-
#get_contentmanagement_documents_with_http_info(workspace_id, opts = {}) ⇒ Array<(DocumentEntityListing, Fixnum, Hash)>
Get a list of documents.
-
#get_contentmanagement_query(query_phrase, opts = {}) ⇒ QueryResults
Query content.
-
#get_contentmanagement_query_with_http_info(query_phrase, opts = {}) ⇒ Array<(QueryResults, Fixnum, Hash)>
Query content.
-
#get_contentmanagement_securityprofile(security_profile_id, opts = {}) ⇒ SecurityProfile
Get a Security Profile.
-
#get_contentmanagement_securityprofile_with_http_info(security_profile_id, opts = {}) ⇒ Array<(SecurityProfile, Fixnum, Hash)>
Get a Security Profile.
-
#get_contentmanagement_securityprofiles(opts = {}) ⇒ SecurityProfileEntityListing
Get a List of Security Profiles.
-
#get_contentmanagement_securityprofiles_with_http_info(opts = {}) ⇒ Array<(SecurityProfileEntityListing, Fixnum, Hash)>
Get a List of Security Profiles.
-
#get_contentmanagement_share(share_id, opts = {}) ⇒ Share
Retrieve details about an existing share.
-
#get_contentmanagement_share_with_http_info(share_id, opts = {}) ⇒ Array<(Share, Fixnum, Hash)>
Retrieve details about an existing share.
-
#get_contentmanagement_shared_shared_id(shared_id, opts = {}) ⇒ SharedResponse
Get shared documents.
-
#get_contentmanagement_shared_shared_id_with_http_info(shared_id, opts = {}) ⇒ Array<(SharedResponse, Fixnum, Hash)>
Get shared documents.
-
#get_contentmanagement_shares(opts = {}) ⇒ ShareEntityListing
Gets a list of shares.
-
#get_contentmanagement_shares_with_http_info(opts = {}) ⇒ Array<(ShareEntityListing, Fixnum, Hash)>
Gets a list of shares.
-
#get_contentmanagement_status(opts = {}) ⇒ CommandStatusEntityListing
Get a list of statuses for pending operations.
-
#get_contentmanagement_status_status_id(status_id, opts = {}) ⇒ CommandStatus
Get a status.
-
#get_contentmanagement_status_status_id_with_http_info(status_id, opts = {}) ⇒ Array<(CommandStatus, Fixnum, Hash)>
Get a status.
-
#get_contentmanagement_status_with_http_info(opts = {}) ⇒ Array<(CommandStatusEntityListing, Fixnum, Hash)>
Get a list of statuses for pending operations.
-
#get_contentmanagement_usage(opts = {}) ⇒ Usage
Get usage details.
-
#get_contentmanagement_usage_with_http_info(opts = {}) ⇒ Array<(Usage, Fixnum, Hash)>
Get usage details.
-
#get_contentmanagement_workspace(workspace_id, opts = {}) ⇒ Workspace
Get a workspace.
-
#get_contentmanagement_workspace_documents(workspace_id, opts = {}) ⇒ DocumentEntityListing
Get a list of documents.
-
#get_contentmanagement_workspace_documents_with_http_info(workspace_id, opts = {}) ⇒ Array<(DocumentEntityListing, Fixnum, Hash)>
Get a list of documents.
-
#get_contentmanagement_workspace_member(workspace_id, member_id, opts = {}) ⇒ WorkspaceMember
Get a workspace member.
-
#get_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts = {}) ⇒ Array<(WorkspaceMember, Fixnum, Hash)>
Get a workspace member.
-
#get_contentmanagement_workspace_members(workspace_id, opts = {}) ⇒ WorkspaceMemberEntityListing
Get a list workspace members.
-
#get_contentmanagement_workspace_members_with_http_info(workspace_id, opts = {}) ⇒ Array<(WorkspaceMemberEntityListing, Fixnum, Hash)>
Get a list workspace members.
-
#get_contentmanagement_workspace_tagvalue(workspace_id, tag_id, opts = {}) ⇒ TagValue
Get a workspace tag.
-
#get_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts = {}) ⇒ Array<(TagValue, Fixnum, Hash)>
Get a workspace tag.
-
#get_contentmanagement_workspace_tagvalues(workspace_id, opts = {}) ⇒ TagValueEntityListing
Get a list of workspace tags.
-
#get_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, opts = {}) ⇒ Array<(TagValueEntityListing, Fixnum, Hash)>
Get a list of workspace tags.
-
#get_contentmanagement_workspace_with_http_info(workspace_id, opts = {}) ⇒ Array<(Workspace, Fixnum, Hash)>
Get a workspace.
-
#get_contentmanagement_workspaces(opts = {}) ⇒ WorkspaceEntityListing
Get a list of workspaces.
-
#get_contentmanagement_workspaces_with_http_info(opts = {}) ⇒ Array<(WorkspaceEntityListing, Fixnum, Hash)>
Get a list of workspaces.
-
#initialize(api_client = ApiClient.default) ⇒ ContentManagementApi
constructor
A new instance of ContentManagementApi.
-
#post_contentmanagement_auditquery(body, opts = {}) ⇒ QueryResults
Query audits.
-
#post_contentmanagement_auditquery_with_http_info(body, opts = {}) ⇒ Array<(QueryResults, Fixnum, Hash)>
Query audits.
-
#post_contentmanagement_document(document_id, body, opts = {}) ⇒ Document
Update a document.
-
#post_contentmanagement_document_content(document_id, body, opts = {}) ⇒ ReplaceResponse
Replace the contents of a document.
-
#post_contentmanagement_document_content_with_http_info(document_id, body, opts = {}) ⇒ Array<(ReplaceResponse, Fixnum, Hash)>
Replace the contents of a document.
-
#post_contentmanagement_document_with_http_info(document_id, body, opts = {}) ⇒ Array<(Document, Fixnum, Hash)>
Update a document.
-
#post_contentmanagement_documents(body, opts = {}) ⇒ Document
Add a document.
-
#post_contentmanagement_documents_with_http_info(body, opts = {}) ⇒ Array<(Document, Fixnum, Hash)>
Add a document.
-
#post_contentmanagement_query(body, opts = {}) ⇒ QueryResults
Query content.
-
#post_contentmanagement_query_with_http_info(body, opts = {}) ⇒ Array<(QueryResults, Fixnum, Hash)>
Query content.
-
#post_contentmanagement_shares(body, opts = {}) ⇒ CreateShareResponse
Creates a new share or updates an existing share if the entity has already been shared.
-
#post_contentmanagement_shares_with_http_info(body, opts = {}) ⇒ Array<(CreateShareResponse, Fixnum, Hash)>
Creates a new share or updates an existing share if the entity has already been shared.
-
#post_contentmanagement_workspace_tagvalues(workspace_id, body, opts = {}) ⇒ TagValue
Create a workspace tag.
-
#post_contentmanagement_workspace_tagvalues_query(workspace_id, body, opts = {}) ⇒ TagValueEntityListing
Perform a prefix query on tags in the workspace.
-
#post_contentmanagement_workspace_tagvalues_query_with_http_info(workspace_id, body, opts = {}) ⇒ Array<(TagValueEntityListing, Fixnum, Hash)>
Perform a prefix query on tags in the workspace.
-
#post_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, body, opts = {}) ⇒ Array<(TagValue, Fixnum, Hash)>
Create a workspace tag.
-
#post_contentmanagement_workspaces(body, opts = {}) ⇒ Workspace
Create a group workspace.
-
#post_contentmanagement_workspaces_with_http_info(body, opts = {}) ⇒ Array<(Workspace, Fixnum, Hash)>
Create a group workspace.
-
#put_contentmanagement_workspace(workspace_id, body, opts = {}) ⇒ Workspace
Update a workspace.
-
#put_contentmanagement_workspace_member(workspace_id, member_id, body, opts = {}) ⇒ WorkspaceMember
Add a member to a workspace.
-
#put_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, body, opts = {}) ⇒ Array<(WorkspaceMember, Fixnum, Hash)>
Add a member to a workspace.
-
#put_contentmanagement_workspace_tagvalue(workspace_id, tag_id, body, opts = {}) ⇒ TagValue
Update a workspace tag.
-
#put_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, body, opts = {}) ⇒ Array<(TagValue, Fixnum, Hash)>
Update a workspace tag.
-
#put_contentmanagement_workspace_with_http_info(workspace_id, body, opts = {}) ⇒ Array<(Workspace, Fixnum, Hash)>
Update a workspace.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ContentManagementApi
Returns a new instance of ContentManagementApi.
23 24 25 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 23 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
21 22 23 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 21 def api_client @api_client end |
Instance Method Details
#delete_contentmanagement_document(document_id, opts = {}) ⇒ nil
Delete a document.
33 34 35 36 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 33 def delete_contentmanagement_document(document_id, opts = {}) delete_contentmanagement_document_with_http_info(document_id, opts) return nil end |
#delete_contentmanagement_document_with_http_info(document_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a document.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 44 def delete_contentmanagement_document_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.delete_contentmanagement_document ..." end # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling ContentManagementApi.delete_contentmanagement_document" if document_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} query_params[:'override'] = opts[:'override'] if opts[:'override'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#delete_contentmanagement_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_contentmanagement_share(share_id, opts = {}) ⇒ nil
Deletes an existing share. This revokes sharing rights specified in the share record
91 92 93 94 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 91 def delete_contentmanagement_share(share_id, opts = {}) delete_contentmanagement_share_with_http_info(share_id, opts) return nil end |
#delete_contentmanagement_share_with_http_info(share_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Deletes an existing share. This revokes sharing rights specified in the share record
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 101 def delete_contentmanagement_share_with_http_info(share_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.delete_contentmanagement_share ..." end # verify the required parameter 'share_id' is set fail ArgumentError, "Missing the required parameter 'share_id' when calling ContentManagementApi.delete_contentmanagement_share" if share_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/shares/{shareId}".sub('{format}','json').sub('{' + 'shareId' + '}', share_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#delete_contentmanagement_share\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_contentmanagement_status_status_id(status_id, opts = {}) ⇒ nil
Cancel the command for this status
147 148 149 150 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 147 def delete_contentmanagement_status_status_id(status_id, opts = {}) delete_contentmanagement_status_status_id_with_http_info(status_id, opts) return nil end |
#delete_contentmanagement_status_status_id_with_http_info(status_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Cancel the command for this status
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 157 def delete_contentmanagement_status_status_id_with_http_info(status_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.delete_contentmanagement_status_status_id ..." end # verify the required parameter 'status_id' is set fail ArgumentError, "Missing the required parameter 'status_id' when calling ContentManagementApi.delete_contentmanagement_status_status_id" if status_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#delete_contentmanagement_status_status_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_contentmanagement_workspace(workspace_id, opts = {}) ⇒ nil
Delete a workspace
204 205 206 207 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 204 def delete_contentmanagement_workspace(workspace_id, opts = {}) delete_contentmanagement_workspace_with_http_info(workspace_id, opts) return nil end |
#delete_contentmanagement_workspace_member(workspace_id, member_id, opts = {}) ⇒ nil
Delete a member from a workspace
263 264 265 266 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 263 def delete_contentmanagement_workspace_member(workspace_id, member_id, opts = {}) delete_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts) return nil end |
#delete_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a member from a workspace
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 274 def delete_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.delete_contentmanagement_workspace_member ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.delete_contentmanagement_workspace_member" if workspace_id.nil? # verify the required parameter 'member_id' is set fail ArgumentError, "Missing the required parameter 'member_id' when calling ContentManagementApi.delete_contentmanagement_workspace_member" if member_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#delete_contentmanagement_workspace_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_contentmanagement_workspace_tagvalue(workspace_id, tag_id, opts = {}) ⇒ nil
Delete workspace tag Delete a tag from a workspace. Will remove this tag from all documents.
323 324 325 326 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 323 def delete_contentmanagement_workspace_tagvalue(workspace_id, tag_id, opts = {}) delete_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts) return nil end |
#delete_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete workspace tag Delete a tag from a workspace. Will remove this tag from all documents.
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 334 def delete_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.delete_contentmanagement_workspace_tagvalue ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.delete_contentmanagement_workspace_tagvalue" if workspace_id.nil? # verify the required parameter 'tag_id' is set fail ArgumentError, "Missing the required parameter 'tag_id' when calling ContentManagementApi.delete_contentmanagement_workspace_tagvalue" if tag_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#delete_contentmanagement_workspace_tagvalue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_contentmanagement_workspace_with_http_info(workspace_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a workspace
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 215 def delete_contentmanagement_workspace_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.delete_contentmanagement_workspace ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.delete_contentmanagement_workspace" if workspace_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} query_params[:'moveChildrenToWorkspaceId'] = opts[:'move_children_to_workspace_id'] if opts[:'move_children_to_workspace_id'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#delete_contentmanagement_workspace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_document(document_id, opts = {}) ⇒ Document
Get a document.
383 384 385 386 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 383 def get_contentmanagement_document(document_id, opts = {}) data, _status_code, _headers = get_contentmanagement_document_with_http_info(document_id, opts) return data end |
#get_contentmanagement_document_audits(document_id, opts = {}) ⇒ DocumentAuditEntityListing
Get a list of audits for a document.
448 449 450 451 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 448 def get_contentmanagement_document_audits(document_id, opts = {}) data, _status_code, _headers = get_contentmanagement_document_audits_with_http_info(document_id, opts) return data end |
#get_contentmanagement_document_audits_with_http_info(document_id, opts = {}) ⇒ Array<(DocumentAuditEntityListing, Fixnum, Hash)>
Get a list of audits for a document.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 464 def get_contentmanagement_document_audits_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_document_audits ..." end # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling ContentManagementApi.get_contentmanagement_document_audits" if document_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/documents/{documentId}/audits".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'transactionFilter'] = opts[:'transaction_filter'] if opts[:'transaction_filter'] query_params[:'level'] = opts[:'level'] if opts[:'level'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DocumentAuditEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_document_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_document_content(document_id, opts = {}) ⇒ DownloadResponse
Download a document.
519 520 521 522 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 519 def get_contentmanagement_document_content(document_id, opts = {}) data, _status_code, _headers = get_contentmanagement_document_content_with_http_info(document_id, opts) return data end |
#get_contentmanagement_document_content_with_http_info(document_id, opts = {}) ⇒ Array<(DownloadResponse, Fixnum, Hash)>
Download a document.
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 531 def get_contentmanagement_document_content_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_document_content ..." end # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling ContentManagementApi.get_contentmanagement_document_content" if document_id.nil? if opts[:'disposition'] && !['attachment', 'inline'].include?(opts[:'disposition']) fail ArgumentError, 'invalid value for "disposition", must be one of attachment, inline' end # resource path local_var_path = "/api/v2/contentmanagement/documents/{documentId}/content".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} query_params[:'disposition'] = opts[:'disposition'] if opts[:'disposition'] query_params[:'contentType'] = opts[:'content_type'] if opts[:'content_type'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DownloadResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_document_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_document_with_http_info(document_id, opts = {}) ⇒ Array<(Document, Fixnum, Hash)>
Get a document.
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 394 def get_contentmanagement_document_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_document ..." end # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling ContentManagementApi.get_contentmanagement_document" if document_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Document') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_documents(workspace_id, opts = {}) ⇒ DocumentEntityListing
Get a list of documents.
589 590 591 592 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 589 def get_contentmanagement_documents(workspace_id, opts = {}) data, _status_code, _headers = get_contentmanagement_documents_with_http_info(workspace_id, opts) return data end |
#get_contentmanagement_documents_with_http_info(workspace_id, opts = {}) ⇒ Array<(DocumentEntityListing, Fixnum, Hash)>
Get a list of documents.
605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 605 def get_contentmanagement_documents_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_documents ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.get_contentmanagement_documents" if workspace_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/documents".sub('{format}','json') # query parameters query_params = {} query_params[:'workspaceId'] = workspace_id query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DocumentEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_query(query_phrase, opts = {}) ⇒ QueryResults
Query content
664 665 666 667 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 664 def get_contentmanagement_query(query_phrase, opts = {}) data, _status_code, _headers = get_contentmanagement_query_with_http_info(query_phrase, opts) return data end |
#get_contentmanagement_query_with_http_info(query_phrase, opts = {}) ⇒ Array<(QueryResults, Fixnum, Hash)>
Query content
679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 679 def get_contentmanagement_query_with_http_info(query_phrase, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_query ..." end # verify the required parameter 'query_phrase' is set fail ArgumentError, "Missing the required parameter 'query_phrase' when calling ContentManagementApi.get_contentmanagement_query" if query_phrase.nil? # resource path local_var_path = "/api/v2/contentmanagement/query".sub('{format}','json') # query parameters query_params = {} query_params[:'queryPhrase'] = query_phrase query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueryResults') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_securityprofile(security_profile_id, opts = {}) ⇒ SecurityProfile
Get a Security Profile
732 733 734 735 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 732 def get_contentmanagement_securityprofile(security_profile_id, opts = {}) data, _status_code, _headers = get_contentmanagement_securityprofile_with_http_info(security_profile_id, opts) return data end |
#get_contentmanagement_securityprofile_with_http_info(security_profile_id, opts = {}) ⇒ Array<(SecurityProfile, Fixnum, Hash)>
Get a Security Profile
742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 742 def get_contentmanagement_securityprofile_with_http_info(security_profile_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_securityprofile ..." end # verify the required parameter 'security_profile_id' is set fail ArgumentError, "Missing the required parameter 'security_profile_id' when calling ContentManagementApi.get_contentmanagement_securityprofile" if security_profile_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/securityprofiles/{securityProfileId}".sub('{format}','json').sub('{' + 'securityProfileId' + '}', security_profile_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SecurityProfile') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_securityprofile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_securityprofiles(opts = {}) ⇒ SecurityProfileEntityListing
Get a List of Security Profiles
788 789 790 791 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 788 def get_contentmanagement_securityprofiles(opts = {}) data, _status_code, _headers = get_contentmanagement_securityprofiles_with_http_info(opts) return data end |
#get_contentmanagement_securityprofiles_with_http_info(opts = {}) ⇒ Array<(SecurityProfileEntityListing, Fixnum, Hash)>
Get a List of Security Profiles
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 797 def get_contentmanagement_securityprofiles_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_securityprofiles ..." end # resource path local_var_path = "/api/v2/contentmanagement/securityprofiles".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SecurityProfileEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_securityprofiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_share(share_id, opts = {}) ⇒ Share
Retrieve details about an existing share.
843 844 845 846 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 843 def get_contentmanagement_share(share_id, opts = {}) data, _status_code, _headers = get_contentmanagement_share_with_http_info(share_id, opts) return data end |
#get_contentmanagement_share_with_http_info(share_id, opts = {}) ⇒ Array<(Share, Fixnum, Hash)>
Retrieve details about an existing share.
854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 854 def get_contentmanagement_share_with_http_info(share_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_share ..." end # verify the required parameter 'share_id' is set fail ArgumentError, "Missing the required parameter 'share_id' when calling ContentManagementApi.get_contentmanagement_share" if share_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/shares/{shareId}".sub('{format}','json').sub('{' + 'shareId' + '}', share_id.to_s) # query parameters query_params = {} query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Share') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_share\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_shared_shared_id(shared_id, opts = {}) ⇒ SharedResponse
Get shared documents. Securely download a shared document. This method requires the download sharing URI obtained in the get document response (downloadSharingUri). Documents may be shared between users in the same workspace. Documents may also be shared between any user by creating a content management share.
906 907 908 909 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 906 def get_contentmanagement_shared_shared_id(shared_id, opts = {}) data, _status_code, _headers = get_contentmanagement_shared_shared_id_with_http_info(shared_id, opts) return data end |
#get_contentmanagement_shared_shared_id_with_http_info(shared_id, opts = {}) ⇒ Array<(SharedResponse, Fixnum, Hash)>
Get shared documents. Securely download a shared document. This method requires the download sharing URI obtained in the get document response (downloadSharingUri). Documents may be shared between users in the same workspace. Documents may also be shared between any user by creating a content management share.
920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 920 def get_contentmanagement_shared_shared_id_with_http_info(shared_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_shared_shared_id ..." end # verify the required parameter 'shared_id' is set fail ArgumentError, "Missing the required parameter 'shared_id' when calling ContentManagementApi.get_contentmanagement_shared_shared_id" if shared_id.nil? if opts[:'disposition'] && !['attachment', 'inline', 'none'].include?(opts[:'disposition']) fail ArgumentError, 'invalid value for "disposition", must be one of attachment, inline, none' end if opts[:'expand'] && !['document.acl'].include?(opts[:'expand']) fail ArgumentError, 'invalid value for "expand", must be one of document.acl' end # resource path local_var_path = "/api/v2/contentmanagement/shared/{sharedId}".sub('{format}','json').sub('{' + 'sharedId' + '}', shared_id.to_s) # query parameters query_params = {} query_params[:'redirect'] = opts[:'redirect'] if opts[:'redirect'] query_params[:'disposition'] = opts[:'disposition'] if opts[:'disposition'] query_params[:'contentType'] = opts[:'content_type'] if opts[:'content_type'] query_params[:'expand'] = opts[:'expand'] if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SharedResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_shared_shared_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_shares(opts = {}) ⇒ ShareEntityListing
Gets a list of shares. You must specify at least one filter (e.g. entityId). Failing to specify a filter will return 400.
980 981 982 983 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 980 def get_contentmanagement_shares(opts = {}) data, _status_code, _headers = get_contentmanagement_shares_with_http_info(opts) return data end |
#get_contentmanagement_shares_with_http_info(opts = {}) ⇒ Array<(ShareEntityListing, Fixnum, Hash)>
Gets a list of shares. You must specify at least one filter (e.g. entityId). Failing to specify a filter will return 400.
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 993 def get_contentmanagement_shares_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_shares ..." end # resource path local_var_path = "/api/v2/contentmanagement/shares".sub('{format}','json') # query parameters query_params = {} query_params[:'entityId'] = opts[:'entity_id'] if opts[:'entity_id'] query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ShareEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_shares\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_status(opts = {}) ⇒ CommandStatusEntityListing
Get a list of statuses for pending operations
1043 1044 1045 1046 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1043 def get_contentmanagement_status(opts = {}) data, _status_code, _headers = get_contentmanagement_status_with_http_info(opts) return data end |
#get_contentmanagement_status_status_id(status_id, opts = {}) ⇒ CommandStatus
Get a status.
1101 1102 1103 1104 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1101 def get_contentmanagement_status_status_id(status_id, opts = {}) data, _status_code, _headers = get_contentmanagement_status_status_id_with_http_info(status_id, opts) return data end |
#get_contentmanagement_status_status_id_with_http_info(status_id, opts = {}) ⇒ Array<(CommandStatus, Fixnum, Hash)>
Get a status.
1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1111 def get_contentmanagement_status_status_id_with_http_info(status_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_status_status_id ..." end # verify the required parameter 'status_id' is set fail ArgumentError, "Missing the required parameter 'status_id' when calling ContentManagementApi.get_contentmanagement_status_status_id" if status_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CommandStatus') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_status_status_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_status_with_http_info(opts = {}) ⇒ Array<(CommandStatusEntityListing, Fixnum, Hash)>
Get a list of statuses for pending operations
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1054 def get_contentmanagement_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_status ..." end # resource path local_var_path = "/api/v2/contentmanagement/status".sub('{format}','json') # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CommandStatusEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_usage(opts = {}) ⇒ Usage
Get usage details.
1157 1158 1159 1160 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1157 def get_contentmanagement_usage(opts = {}) data, _status_code, _headers = get_contentmanagement_usage_with_http_info(opts) return data end |
#get_contentmanagement_usage_with_http_info(opts = {}) ⇒ Array<(Usage, Fixnum, Hash)>
Get usage details.
1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1166 def get_contentmanagement_usage_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_usage ..." end # resource path local_var_path = "/api/v2/contentmanagement/usage".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Usage') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_workspace(workspace_id, opts = {}) ⇒ Workspace
Get a workspace.
1212 1213 1214 1215 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1212 def get_contentmanagement_workspace(workspace_id, opts = {}) data, _status_code, _headers = get_contentmanagement_workspace_with_http_info(workspace_id, opts) return data end |
#get_contentmanagement_workspace_documents(workspace_id, opts = {}) ⇒ DocumentEntityListing
Get a list of documents.
1276 1277 1278 1279 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1276 def get_contentmanagement_workspace_documents(workspace_id, opts = {}) data, _status_code, _headers = get_contentmanagement_workspace_documents_with_http_info(workspace_id, opts) return data end |
#get_contentmanagement_workspace_documents_with_http_info(workspace_id, opts = {}) ⇒ Array<(DocumentEntityListing, Fixnum, Hash)>
Get a list of documents.
1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1291 def get_contentmanagement_workspace_documents_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_workspace_documents ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.get_contentmanagement_workspace_documents" if workspace_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/documents".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DocumentEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_workspace_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_workspace_member(workspace_id, member_id, opts = {}) ⇒ WorkspaceMember
Get a workspace member
1345 1346 1347 1348 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1345 def get_contentmanagement_workspace_member(workspace_id, member_id, opts = {}) data, _status_code, _headers = get_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts) return data end |
#get_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts = {}) ⇒ Array<(WorkspaceMember, Fixnum, Hash)>
Get a workspace member
1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1357 def get_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_workspace_member ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.get_contentmanagement_workspace_member" if workspace_id.nil? # verify the required parameter 'member_id' is set fail ArgumentError, "Missing the required parameter 'member_id' when calling ContentManagementApi.get_contentmanagement_workspace_member" if member_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s) # query parameters query_params = {} query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WorkspaceMember') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_workspace_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_workspace_members(workspace_id, opts = {}) ⇒ WorkspaceMemberEntityListing
Get a list workspace members
1410 1411 1412 1413 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1410 def get_contentmanagement_workspace_members(workspace_id, opts = {}) data, _status_code, _headers = get_contentmanagement_workspace_members_with_http_info(workspace_id, opts) return data end |
#get_contentmanagement_workspace_members_with_http_info(workspace_id, opts = {}) ⇒ Array<(WorkspaceMemberEntityListing, Fixnum, Hash)>
Get a list workspace members
1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1423 def get_contentmanagement_workspace_members_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_workspace_members ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.get_contentmanagement_workspace_members" if workspace_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/members".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WorkspaceMemberEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_workspace_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_workspace_tagvalue(workspace_id, tag_id, opts = {}) ⇒ TagValue
Get a workspace tag
1475 1476 1477 1478 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1475 def get_contentmanagement_workspace_tagvalue(workspace_id, tag_id, opts = {}) data, _status_code, _headers = get_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts) return data end |
#get_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts = {}) ⇒ Array<(TagValue, Fixnum, Hash)>
Get a workspace tag
1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1487 def get_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_workspace_tagvalue ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.get_contentmanagement_workspace_tagvalue" if workspace_id.nil? # verify the required parameter 'tag_id' is set fail ArgumentError, "Missing the required parameter 'tag_id' when calling ContentManagementApi.get_contentmanagement_workspace_tagvalue" if tag_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s) # query parameters query_params = {} query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'TagValue') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_workspace_tagvalue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_workspace_tagvalues(workspace_id, opts = {}) ⇒ TagValueEntityListing
Get a list of workspace tags
1541 1542 1543 1544 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1541 def get_contentmanagement_workspace_tagvalues(workspace_id, opts = {}) data, _status_code, _headers = get_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, opts) return data end |
#get_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, opts = {}) ⇒ Array<(TagValueEntityListing, Fixnum, Hash)>
Get a list of workspace tags
1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1555 def get_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_workspace_tagvalues ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.get_contentmanagement_workspace_tagvalues" if workspace_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} query_params[:'value'] = opts[:'value'] if opts[:'value'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'TagValueEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_workspace_tagvalues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_workspace_with_http_info(workspace_id, opts = {}) ⇒ Array<(Workspace, Fixnum, Hash)>
Get a workspace.
1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1223 def get_contentmanagement_workspace_with_http_info(workspace_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_workspace ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.get_contentmanagement_workspace" if workspace_id.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Workspace') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_workspace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_contentmanagement_workspaces(opts = {}) ⇒ WorkspaceEntityListing
Get a list of workspaces. Specifying ‘content’ access will return all workspaces the user has document access to, while ‘admin’ access will return all group workspaces the user has administrative rights to.
1609 1610 1611 1612 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1609 def get_contentmanagement_workspaces(opts = {}) data, _status_code, _headers = get_contentmanagement_workspaces_with_http_info(opts) return data end |
#get_contentmanagement_workspaces_with_http_info(opts = {}) ⇒ Array<(WorkspaceEntityListing, Fixnum, Hash)>
Get a list of workspaces. Specifying 'content' access will return all workspaces the user has document access to, while 'admin' access will return all group workspaces the user has administrative rights to.
1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1622 def get_contentmanagement_workspaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.get_contentmanagement_workspaces ..." end # resource path local_var_path = "/api/v2/contentmanagement/workspaces".sub('{format}','json') # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'access'] = @api_client.build_collection_param(opts[:'access'], :multi) if opts[:'access'] query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WorkspaceEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#get_contentmanagement_workspaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_auditquery(body, opts = {}) ⇒ QueryResults
Query audits
1671 1672 1673 1674 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1671 def post_contentmanagement_auditquery(body, opts = {}) data, _status_code, _headers = post_contentmanagement_auditquery_with_http_info(body, opts) return data end |
#post_contentmanagement_auditquery_with_http_info(body, opts = {}) ⇒ Array<(QueryResults, Fixnum, Hash)>
Query audits
1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1681 def post_contentmanagement_auditquery_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_auditquery ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_auditquery" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/auditquery".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueryResults') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_auditquery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_document(document_id, body, opts = {}) ⇒ Document
Update a document.
1731 1732 1733 1734 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1731 def post_contentmanagement_document(document_id, body, opts = {}) data, _status_code, _headers = post_contentmanagement_document_with_http_info(document_id, body, opts) return data end |
#post_contentmanagement_document_content(document_id, body, opts = {}) ⇒ ReplaceResponse
Replace the contents of a document.
1800 1801 1802 1803 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1800 def post_contentmanagement_document_content(document_id, body, opts = {}) data, _status_code, _headers = post_contentmanagement_document_content_with_http_info(document_id, body, opts) return data end |
#post_contentmanagement_document_content_with_http_info(document_id, body, opts = {}) ⇒ Array<(ReplaceResponse, Fixnum, Hash)>
Replace the contents of a document.
1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1812 def post_contentmanagement_document_content_with_http_info(document_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_document_content ..." end # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling ContentManagementApi.post_contentmanagement_document_content" if document_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_document_content" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/documents/{documentId}/content".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} query_params[:'override'] = opts[:'override'] if opts[:'override'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ReplaceResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_document_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_document_with_http_info(document_id, body, opts = {}) ⇒ Array<(Document, Fixnum, Hash)>
Update a document.
1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1744 def post_contentmanagement_document_with_http_info(document_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_document ..." end # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling ContentManagementApi.post_contentmanagement_document" if document_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_document" if body.nil? if opts[:'expand'] && !['acl'].include?(opts[:'expand']) fail ArgumentError, 'invalid value for "expand", must be one of acl' end # resource path local_var_path = "/api/v2/contentmanagement/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} query_params[:'expand'] = opts[:'expand'] if opts[:'expand'] query_params[:'override'] = opts[:'override'] if opts[:'override'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Document') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_documents(body, opts = {}) ⇒ Document
Add a document.
1865 1866 1867 1868 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1865 def post_contentmanagement_documents(body, opts = {}) data, _status_code, _headers = post_contentmanagement_documents_with_http_info(body, opts) return data end |
#post_contentmanagement_documents_with_http_info(body, opts = {}) ⇒ Array<(Document, Fixnum, Hash)>
Add a document.
1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1878 def post_contentmanagement_documents_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_documents ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_documents" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/documents".sub('{format}','json') # query parameters query_params = {} query_params[:'copySource'] = opts[:'copy_source'] if opts[:'copy_source'] query_params[:'moveSource'] = opts[:'move_source'] if opts[:'move_source'] query_params[:'override'] = opts[:'override'] if opts[:'override'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Document') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_query(body, opts = {}) ⇒ QueryResults
Query content
1929 1930 1931 1932 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1929 def post_contentmanagement_query(body, opts = {}) data, _status_code, _headers = post_contentmanagement_query_with_http_info(body, opts) return data end |
#post_contentmanagement_query_with_http_info(body, opts = {}) ⇒ Array<(QueryResults, Fixnum, Hash)>
Query content
1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1940 def post_contentmanagement_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_query ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_query" if body.nil? if opts[:'expand'] && !['acl', 'workspace'].include?(opts[:'expand']) fail ArgumentError, 'invalid value for "expand", must be one of acl, workspace' end # resource path local_var_path = "/api/v2/contentmanagement/query".sub('{format}','json') # query parameters query_params = {} query_params[:'expand'] = opts[:'expand'] if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueryResults') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_shares(body, opts = {}) ⇒ CreateShareResponse
Creates a new share or updates an existing share if the entity has already been shared
1991 1992 1993 1994 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 1991 def post_contentmanagement_shares(body, opts = {}) data, _status_code, _headers = post_contentmanagement_shares_with_http_info(body, opts) return data end |
#post_contentmanagement_shares_with_http_info(body, opts = {}) ⇒ Array<(CreateShareResponse, Fixnum, Hash)>
Creates a new share or updates an existing share if the entity has already been shared
2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2001 def post_contentmanagement_shares_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_shares ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_shares" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/shares".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CreateShareResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_shares\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_workspace_tagvalues(workspace_id, body, opts = {}) ⇒ TagValue
Create a workspace tag
2049 2050 2051 2052 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2049 def post_contentmanagement_workspace_tagvalues(workspace_id, body, opts = {}) data, _status_code, _headers = post_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, body, opts) return data end |
#post_contentmanagement_workspace_tagvalues_query(workspace_id, body, opts = {}) ⇒ TagValueEntityListing
Perform a prefix query on tags in the workspace
2111 2112 2113 2114 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2111 def post_contentmanagement_workspace_tagvalues_query(workspace_id, body, opts = {}) data, _status_code, _headers = post_contentmanagement_workspace_tagvalues_query_with_http_info(workspace_id, body, opts) return data end |
#post_contentmanagement_workspace_tagvalues_query_with_http_info(workspace_id, body, opts = {}) ⇒ Array<(TagValueEntityListing, Fixnum, Hash)>
Perform a prefix query on tags in the workspace
2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2123 def post_contentmanagement_workspace_tagvalues_query_with_http_info(workspace_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_workspace_tagvalues_query ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.post_contentmanagement_workspace_tagvalues_query" if workspace_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_workspace_tagvalues_query" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/query".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'TagValueEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_workspace_tagvalues_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, body, opts = {}) ⇒ Array<(TagValue, Fixnum, Hash)>
Create a workspace tag
2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2060 def post_contentmanagement_workspace_tagvalues_with_http_info(workspace_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_workspace_tagvalues ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.post_contentmanagement_workspace_tagvalues" if workspace_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_workspace_tagvalues" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'TagValue') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_workspace_tagvalues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_contentmanagement_workspaces(body, opts = {}) ⇒ Workspace
Create a group workspace
2173 2174 2175 2176 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2173 def post_contentmanagement_workspaces(body, opts = {}) data, _status_code, _headers = post_contentmanagement_workspaces_with_http_info(body, opts) return data end |
#post_contentmanagement_workspaces_with_http_info(body, opts = {}) ⇒ Array<(Workspace, Fixnum, Hash)>
Create a group workspace
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2183 def post_contentmanagement_workspaces_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.post_contentmanagement_workspaces ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.post_contentmanagement_workspaces" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Workspace') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#post_contentmanagement_workspaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_contentmanagement_workspace(workspace_id, body, opts = {}) ⇒ Workspace
Update a workspace
2231 2232 2233 2234 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2231 def put_contentmanagement_workspace(workspace_id, body, opts = {}) data, _status_code, _headers = put_contentmanagement_workspace_with_http_info(workspace_id, body, opts) return data end |
#put_contentmanagement_workspace_member(workspace_id, member_id, body, opts = {}) ⇒ WorkspaceMember
Add a member to a workspace
2293 2294 2295 2296 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2293 def put_contentmanagement_workspace_member(workspace_id, member_id, body, opts = {}) data, _status_code, _headers = put_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, body, opts) return data end |
#put_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, body, opts = {}) ⇒ Array<(WorkspaceMember, Fixnum, Hash)>
Add a member to a workspace
2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2305 def put_contentmanagement_workspace_member_with_http_info(workspace_id, member_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.put_contentmanagement_workspace_member ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.put_contentmanagement_workspace_member" if workspace_id.nil? # verify the required parameter 'member_id' is set fail ArgumentError, "Missing the required parameter 'member_id' when calling ContentManagementApi.put_contentmanagement_workspace_member" if member_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.put_contentmanagement_workspace_member" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WorkspaceMember') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#put_contentmanagement_workspace_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_contentmanagement_workspace_tagvalue(workspace_id, tag_id, body, opts = {}) ⇒ TagValue
Update a workspace tag. Will update all documents with the new tag value.
2358 2359 2360 2361 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2358 def put_contentmanagement_workspace_tagvalue(workspace_id, tag_id, body, opts = {}) data, _status_code, _headers = put_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, body, opts) return data end |
#put_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, body, opts = {}) ⇒ Array<(TagValue, Fixnum, Hash)>
Update a workspace tag. Will update all documents with the new tag value.
2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2370 def put_contentmanagement_workspace_tagvalue_with_http_info(workspace_id, tag_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.put_contentmanagement_workspace_tagvalue ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.put_contentmanagement_workspace_tagvalue" if workspace_id.nil? # verify the required parameter 'tag_id' is set fail ArgumentError, "Missing the required parameter 'tag_id' when calling ContentManagementApi.put_contentmanagement_workspace_tagvalue" if tag_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.put_contentmanagement_workspace_tagvalue" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'TagValue') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#put_contentmanagement_workspace_tagvalue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_contentmanagement_workspace_with_http_info(workspace_id, body, opts = {}) ⇒ Array<(Workspace, Fixnum, Hash)>
Update a workspace
2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 |
# File 'lib/purecloudplatformclientv2/api/content_management_api.rb', line 2242 def put_contentmanagement_workspace_with_http_info(workspace_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ContentManagementApi.put_contentmanagement_workspace ..." end # verify the required parameter 'workspace_id' is set fail ArgumentError, "Missing the required parameter 'workspace_id' when calling ContentManagementApi.put_contentmanagement_workspace" if workspace_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ContentManagementApi.put_contentmanagement_workspace" if body.nil? # resource path local_var_path = "/api/v2/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Workspace') if @api_client.config.debugging @api_client.config.logger.debug "API called: ContentManagementApi#put_contentmanagement_workspace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |