lib/purecloud/api/content_management_api.rb in purecloud-0.27.0 vs lib/purecloud/api/content_management_api.rb in purecloud-0.28.0
- old
+ new
@@ -30,11 +30,11 @@
# verify the required parameter 'body' is set
fail "Missing the required parameter 'body' when calling post_auditquery" if body.nil?
# resource path
- path = "/api/v1/contentmanagement/auditquery".sub('{format}','json')
+ path = "/api/v2/contentmanagement/auditquery".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -107,11 +107,11 @@
if opts[:'expand'] && !['acl', 'workspace'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of acl, workspace'
end
# resource path
- path = "/api/v1/contentmanagement/documents".sub('{format}','json')
+ 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']
@@ -178,11 +178,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_documents ..."
end
# resource path
- path = "/api/v1/contentmanagement/documents".sub('{format}','json')
+ 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']
@@ -248,11 +248,11 @@
if opts[:'expand'] && !['lockInfo', 'acl', 'workspace'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of lockInfo, acl, workspace'
end
# resource path
- path = "/api/v1/contentmanagement/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
+ 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']
@@ -320,11 +320,11 @@
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of acl'
end
# resource path
- path = "/api/v1/contentmanagement/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
+ 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']
@@ -385,11 +385,11 @@
# verify the required parameter 'document_id' is set
fail "Missing the required parameter 'document_id' when calling delete_documents_document_id" if document_id.nil?
# resource path
- path = "/api/v1/contentmanagement/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
+ 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']
@@ -458,11 +458,11 @@
# verify the required parameter 'document_id' is set
fail "Missing the required parameter 'document_id' when calling get_documents_document_id_audits" if document_id.nil?
# resource path
- path = "/api/v1/contentmanagement/documents/{documentId}/audits".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
+ 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']
@@ -533,11 +533,11 @@
if opts[:'disposition'] && !['attachment', 'inline'].include?(opts[:'disposition'])
fail 'invalid value for "disposition", must be one of attachment, inline'
end
# resource path
- path = "/api/v1/contentmanagement/documents/{documentId}/content".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
+ 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']
@@ -599,11 +599,11 @@
# verify the required parameter 'document_id' is set
fail "Missing the required parameter 'document_id' when calling post_documents_document_id_content" if document_id.nil?
# resource path
- path = "/api/v1/contentmanagement/documents/{documentId}/content".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s)
+ 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']
@@ -675,11 +675,11 @@
if opts[:'expand'] && !['acl', 'workspace'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of acl, workspace'
end
# resource path
- path = "/api/v1/contentmanagement/query".sub('{format}','json')
+ 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']
@@ -748,11 +748,11 @@
if opts[:'expand'] && !['acl', 'workspace'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of acl, workspace'
end
# resource path
- path = "/api/v1/contentmanagement/query".sub('{format}','json')
+ path = "/api/v2/contentmanagement/query".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
@@ -805,11 +805,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_securityprofiles ..."
end
# resource path
- path = "/api/v1/contentmanagement/securityprofiles".sub('{format}','json')
+ path = "/api/v2/contentmanagement/securityprofiles".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -866,11 +866,11 @@
# verify the required parameter 'security_profile_id' is set
fail "Missing the required parameter 'security_profile_id' when calling get_securityprofiles_securityprofile_id" if security_profile_id.nil?
# resource path
- path = "/api/v1/contentmanagement/securityprofiles/{securityProfileId}".sub('{format}','json').sub('{' + 'securityProfileId' + '}', security_profile_id.to_s)
+ path = "/api/v2/contentmanagement/securityprofiles/{securityProfileId}".sub('{format}','json').sub('{' + 'securityProfileId' + '}', security_profile_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -943,11 +943,11 @@
if opts[:'expand'] && !['document.acl'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of document.acl'
end
# resource path
- path = "/api/v1/contentmanagement/shared/{sharedId}".sub('{format}','json').sub('{' + 'sharedId' + '}', shared_id.to_s)
+ 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']
@@ -1014,11 +1014,11 @@
if opts[:'expand'] && !['member'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of member'
end
# resource path
- path = "/api/v1/contentmanagement/shares".sub('{format}','json')
+ 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'] = opts[:'expand'] if opts[:'expand']
@@ -1076,11 +1076,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_shares ..."
end
# resource path
- path = "/api/v1/contentmanagement/shares".sub('{format}','json')
+ path = "/api/v2/contentmanagement/shares".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -1143,11 +1143,11 @@
if opts[:'expand'] && !['member'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of member'
end
# resource path
- path = "/api/v1/contentmanagement/shares/{shareId}".sub('{format}','json').sub('{' + 'shareId' + '}', share_id.to_s)
+ path = "/api/v2/contentmanagement/shares/{shareId}".sub('{format}','json').sub('{' + 'shareId' + '}', share_id.to_s)
# query parameters
query_params = {}
query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
@@ -1205,11 +1205,11 @@
# verify the required parameter 'share_id' is set
fail "Missing the required parameter 'share_id' when calling delete_shares_share_id" if share_id.nil?
# resource path
- path = "/api/v1/contentmanagement/shares/{shareId}".sub('{format}','json').sub('{' + 'shareId' + '}', share_id.to_s)
+ path = "/api/v2/contentmanagement/shares/{shareId}".sub('{format}','json').sub('{' + 'shareId' + '}', share_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1264,11 +1264,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_status ..."
end
# resource path
- path = "/api/v1/contentmanagement/status".sub('{format}','json')
+ 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']
@@ -1327,11 +1327,11 @@
# verify the required parameter 'status_id' is set
fail "Missing the required parameter 'status_id' when calling get_status_status_id" if status_id.nil?
# resource path
- path = "/api/v1/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s)
+ path = "/api/v2/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1388,11 +1388,11 @@
# verify the required parameter 'status_id' is set
fail "Missing the required parameter 'status_id' when calling delete_status_status_id" if status_id.nil?
# resource path
- path = "/api/v1/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s)
+ path = "/api/v2/contentmanagement/status/{statusId}".sub('{format}','json').sub('{' + 'statusId' + '}', status_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1459,11 +1459,11 @@
if opts[:'expand'] && !['summary', 'acl'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of summary, acl'
end
# resource path
- path = "/api/v1/contentmanagement/workspaces".sub('{format}','json')
+ 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']
@@ -1521,11 +1521,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ContentManagementApi#post_workspaces ..."
end
# resource path
- path = "/api/v1/contentmanagement/workspaces".sub('{format}','json')
+ path = "/api/v2/contentmanagement/workspaces".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -1588,11 +1588,11 @@
if opts[:'expand'] && !['summary', 'acl'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of summary, acl'
end
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
+ path = "/api/v2/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
# query parameters
query_params = {}
query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
@@ -1652,11 +1652,11 @@
# verify the required parameter 'workspace_id' is set
fail "Missing the required parameter 'workspace_id' when calling put_workspaces_workspace_id" if workspace_id.nil?
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
+ path = "/api/v2/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -1715,11 +1715,11 @@
# verify the required parameter 'workspace_id' is set
fail "Missing the required parameter 'workspace_id' when calling delete_workspaces_workspace_id" if workspace_id.nil?
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
+ 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']
@@ -1786,11 +1786,11 @@
if opts[:'expand'] && !['member'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of member'
end
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/members".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
+ 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']
@@ -1861,11 +1861,11 @@
if opts[:'expand'] && !['member'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of member'
end
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s)
+ 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'] = opts[:'expand'] if opts[:'expand']
@@ -1930,11 +1930,11 @@
# verify the required parameter 'member_id' is set
fail "Missing the required parameter 'member_id' when calling put_workspaces_workspace_id_members_member_id" if member_id.nil?
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s)
+ 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
@@ -1996,11 +1996,11 @@
# verify the required parameter 'member_id' is set
fail "Missing the required parameter 'member_id' when calling delete_workspaces_workspace_id_members_member_id" if member_id.nil?
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/members/{memberId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s)
+ 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
@@ -2068,11 +2068,11 @@
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of acl'
end
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
+ 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']
@@ -2135,11 +2135,11 @@
# verify the required parameter 'workspace_id' is set
fail "Missing the required parameter 'workspace_id' when calling post_workspaces_workspace_id_tagvalues" if workspace_id.nil?
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
+ path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -2204,11 +2204,11 @@
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of acl'
end
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues/query".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
+ path = "/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/query".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s)
# query parameters
query_params = {}
query_params[:'expand'] = opts[:'expand'] if opts[:'expand']
@@ -2277,11 +2277,11 @@
if opts[:'expand'] && !['acl'].include?(opts[:'expand'])
fail 'invalid value for "expand", must be one of acl'
end
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s)
+ 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'] = opts[:'expand'] if opts[:'expand']
@@ -2346,11 +2346,11 @@
# verify the required parameter 'tag_id' is set
fail "Missing the required parameter 'tag_id' when calling put_workspaces_workspace_id_tagvalues_tag_id" if tag_id.nil?
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s)
+ 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
@@ -2412,10 +2412,10 @@
# verify the required parameter 'tag_id' is set
fail "Missing the required parameter 'tag_id' when calling delete_workspaces_workspace_id_tagvalues_tag_id" if tag_id.nil?
# resource path
- path = "/api/v1/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}".sub('{format}','json').sub('{' + 'workspaceId' + '}', workspace_id.to_s).sub('{' + 'tagId' + '}', tag_id.to_s)
+ 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