lib/purecloudplatformclientv2/api/organization_api.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/api/organization_api.rb in purecloudplatformclientv2-9.0.0
- old
+ new
@@ -41,16 +41,24 @@
# @return [Array<(FieldConfig, Fixnum, Hash)>] FieldConfig data, response status code and response headers
def get_fieldconfig_with_http_info(type, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: OrganizationApi.get_fieldconfig ..."
end
+
+
# verify the required parameter 'type' is set
fail ArgumentError, "Missing the required parameter 'type' when calling OrganizationApi.get_fieldconfig" if type.nil?
+
# verify enum value
unless ['person', 'group', 'org', 'externalContact'].include?(type)
fail ArgumentError, "invalid value for 'type', must be one of person, group, org, externalContact"
end
+
+
+
+
+
# resource path
local_var_path = "/api/v2/fieldconfig".sub('{format}','json')
# query parameters
query_params = {}
@@ -70,11 +78,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ 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,
@@ -101,10 +110,11 @@
# @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
def get_organizations_me_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: OrganizationApi.get_organizations_me ..."
end
+
# resource path
local_var_path = "/api/v2/organizations/me".sub('{format}','json')
# query parameters
query_params = {}
@@ -123,11 +133,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ 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,
@@ -158,18 +169,32 @@
# @return [Array<(OrganizationFeatures, Fixnum, Hash)>] OrganizationFeatures data, response status code and response headers
def patch_organizations_feature_with_http_info(feature_name, enabled, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: OrganizationApi.patch_organizations_feature ..."
end
+
+
# verify the required parameter 'feature_name' is set
fail ArgumentError, "Missing the required parameter 'feature_name' when calling OrganizationApi.patch_organizations_feature" if feature_name.nil?
+
# verify enum value
unless ['realtimeCIC', 'purecloud', 'hipaa', 'ucEnabled', 'pci', 'purecloudVoice', 'xmppFederation', 'chat', 'informalPhotos', 'directory', 'contactCenter', 'unifiedCommunications', 'custserv'].include?(feature_name)
fail ArgumentError, "invalid value for 'feature_name', must be one of realtimeCIC, purecloud, hipaa, ucEnabled, pci, purecloudVoice, xmppFederation, chat, informalPhotos, directory, contactCenter, unifiedCommunications, custserv"
end
+
+
+
+
+
+
# verify the required parameter 'enabled' is set
fail ArgumentError, "Missing the required parameter 'enabled' when calling OrganizationApi.patch_organizations_feature" if enabled.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/organizations/features/{featureName}".sub('{format}','json').sub('{' + 'featureName' + '}', feature_name.to_s)
# query parameters
query_params = {}
@@ -188,10 +213,11 @@
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(enabled)
+
auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -221,10 +247,17 @@
# @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
def put_organizations_me_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: OrganizationApi.put_organizations_me ..."
end
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/organizations/me".sub('{format}','json')
# query parameters
query_params = {}
@@ -243,9 +276,10 @@
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(opts[:'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,