lib/purecloudplatformclientv2/api/authorization_api.rb in purecloudplatformclientv2-47.0.0 vs lib/purecloudplatformclientv2/api/authorization_api.rb in purecloudplatformclientv2-48.0.0

- old
+ new

@@ -73,11 +73,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -137,11 +137,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -221,11 +221,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -285,11 +285,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -358,11 +358,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -494,11 +494,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -549,11 +549,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -604,11 +604,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -679,11 +679,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -764,11 +764,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -837,11 +837,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -892,11 +892,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -957,11 +957,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -971,22 +971,22 @@ @api_client.config.logger.debug "API called: AuthorizationApi#get_authorization_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Get an org role to default role comparison comparison + # Get an org role to default role comparison # Compares any organization role to a default role id and show differences # @param left_role_id Left Role ID # @param right_role_id Right Role id # @param [Hash] opts the optional parameters # @return [DomainOrgRoleDifference] def get_authorization_role_comparedefault_right_role_id(left_role_id, right_role_id, opts = {}) data, _status_code, _headers = get_authorization_role_comparedefault_right_role_id_with_http_info(left_role_id, right_role_id, opts) return data end - # Get an org role to default role comparison comparison + # Get an org role to default role comparison # Compares any organization role to a default role id and show differences # @param left_role_id Left Role ID # @param right_role_id Right Role id # @param [Hash] opts the optional parameters # @return [Array<(DomainOrgRoleDifference, Fixnum, Hash)>] DomainOrgRoleDifference data, response status code and response headers @@ -1032,11 +1032,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1151,11 +1151,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1234,11 +1234,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1388,11 +1388,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1453,11 +1453,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1508,11 +1508,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1573,11 +1573,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1648,11 +1648,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, @@ -1738,11 +1738,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1802,11 +1802,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1821,10 +1821,11 @@ # Bulk-grant subjects and divisions with an organization role. # # @param role_id Role ID # @param body Subjects and Divisions # @param [Hash] opts the optional parameters + # @option opts [String] :subject_type what the type of the subject is, PC_GROUP or PC_USER (default to PC_USER) # @return [nil] def post_authorization_role(role_id, body, opts = {}) post_authorization_role_with_http_info(role_id, body, opts) return nil end @@ -1832,10 +1833,11 @@ # Bulk-grant subjects and divisions with an organization role. # # @param role_id Role ID # @param body Subjects and Divisions # @param [Hash] opts the optional parameters + # @option opts [String] :subject_type what the type of the subject is, PC_GROUP or PC_USER # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def post_authorization_role_with_http_info(role_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AuthorizationApi.post_authorization_role ..." end @@ -1854,15 +1856,22 @@ + + + + + + # resource path local_var_path = "/api/v2/authorization/roles/{roleId}".sub('{format}','json').sub('{' + 'roleId' + '}', role_id.to_s) # query parameters query_params = {} + query_params[:'subjectType'] = opts[:'subject_type'] if opts[:'subject_type'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) @@ -1877,11 +1886,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -1961,11 +1970,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2026,11 +2035,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2090,11 +2099,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2184,11 +2193,11 @@ form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2258,11 +2267,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2333,11 +2342,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2408,11 +2417,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2483,11 +2492,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2548,11 +2557,11 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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, @@ -2623,10 +2632,10 @@ form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) - auth_names = ['PureCloud Auth'] + auth_names = ['PureCloud OAuth'] 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,