79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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
|
# File 'lib/aspose_cells_cloud/requests/put_active_worksheet_request.rb', line 79
def create_http_request(api_client,opts = {})
if api_client.config.debugging
api_client.config.logger.debug "Calling API: CellsApi.put_active_worksheet ..."
end
api_client.request_token_if_needed
if api_client.config.client_side_validation && name.nil?
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.put_active_worksheet "
end
if api_client.config.client_side_validation && sheet_name.nil?
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.put_active_worksheet "
end
local_var_path = "/cells/{name}/worksheets/{sheetName}/active".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
query_params = {}
query_params[:'folder'] = self.folder if !self.folder.nil?
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
= {}
['Accept'] = api_client.(['application/json'])
['Content-Type'] = api_client.(['application/json'])
form_params = {}
post_body = nil
auth_names = ['JWT']
data, status_code, = api_client.call_api(:PUT, local_var_path,
:header_params => ,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'CellsCloudResponse')
if api_client.config.debugging
api_client.config.logger.debug "API called: Specification.Name>Api.put_active_worksheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{}"
end
return data, status_code,
end
|