Class: AsposeCellsCloud::PutWorksheetChartRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ PutWorksheetChartRequest

Returns a new instance of PutWorksheetChartRequest.



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
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
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 53

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'name')
      self.name = attributes[:'name']
  end
  if attributes.has_key?(:'sheetName')
      self.sheet_name = attributes[:'sheetName']
  end
  if attributes.has_key?(:'chartType')
      self.chart_type = attributes[:'chartType']
  end
  if attributes.has_key?(:'upperLeftRow')
      self.upper_left_row = attributes[:'upperLeftRow']
  end
  if attributes.has_key?(:'upperLeftColumn')
      self.upper_left_column = attributes[:'upperLeftColumn']
  end
  if attributes.has_key?(:'lowerRightRow')
      self.lower_right_row = attributes[:'lowerRightRow']
  end
  if attributes.has_key?(:'lowerRightColumn')
      self.lower_right_column = attributes[:'lowerRightColumn']
  end
  if attributes.has_key?(:'area')
      self.area = attributes[:'area']
  end
  if attributes.has_key?(:'isVertical')
      self.is_vertical = attributes[:'isVertical']
  end
  if attributes.has_key?(:'categoryData')
      self.category_data = attributes[:'categoryData']
  end
  if attributes.has_key?(:'isAutoGetSerialName')
      self.is_auto_get_serial_name = attributes[:'isAutoGetSerialName']
  end
  if attributes.has_key?(:'title')
      self.title = attributes[:'title']
  end
  if attributes.has_key?(:'folder')
      self.folder = attributes[:'folder']
  end
  if attributes.has_key?(:'dataLabels')
      self.data_labels = attributes[:'dataLabels']
  end
  if attributes.has_key?(:'dataLabelsPosition')
      self.data_labels_position = attributes[:'dataLabelsPosition']
  end
  if attributes.has_key?(:'pivotTableSheet')
      self.pivot_table_sheet = attributes[:'pivotTableSheet']
  end
  if attributes.has_key?(:'pivotTableName')
      self.pivot_table_name = attributes[:'pivotTableName']
  end
  if attributes.has_key?(:'storageName')
      self.storage_name = attributes[:'storageName']
  end

end

Instance Attribute Details

#areaObject

Returns the value of attribute area.



41
42
43
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 41

def area
  @area
end

#category_dataObject

Returns the value of attribute category_data.



43
44
45
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 43

def category_data
  @category_data
end

#chart_typeObject

Returns the value of attribute chart_type.



36
37
38
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 36

def chart_type
  @chart_type
end

#data_labelsObject

Returns the value of attribute data_labels.



47
48
49
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 47

def data_labels
  @data_labels
end

#data_labels_positionObject

Returns the value of attribute data_labels_position.



48
49
50
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 48

def data_labels_position
  @data_labels_position
end

#folderObject

Returns the value of attribute folder.



46
47
48
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 46

def folder
  @folder
end

#is_auto_get_serial_nameObject

Returns the value of attribute is_auto_get_serial_name.



44
45
46
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 44

def is_auto_get_serial_name
  @is_auto_get_serial_name
end

#is_verticalObject

Returns the value of attribute is_vertical.



42
43
44
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 42

def is_vertical
  @is_vertical
end

#lower_right_columnObject

Returns the value of attribute lower_right_column.



40
41
42
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 40

def lower_right_column
  @lower_right_column
end

#lower_right_rowObject

Returns the value of attribute lower_right_row.



39
40
41
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 39

def lower_right_row
  @lower_right_row
end

#nameObject

Returns the value of attribute name.



34
35
36
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 34

def name
  @name
end

#pivot_table_nameObject

Returns the value of attribute pivot_table_name.



50
51
52
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 50

def pivot_table_name
  @pivot_table_name
end

#pivot_table_sheetObject

Returns the value of attribute pivot_table_sheet.



49
50
51
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 49

def pivot_table_sheet
  @pivot_table_sheet
end

#sheet_nameObject

Returns the value of attribute sheet_name.



35
36
37
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 35

def sheet_name
  @sheet_name
end

#storage_nameObject

Returns the value of attribute storage_name.



51
52
53
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 51

def storage_name
  @storage_name
end

#titleObject

Returns the value of attribute title.



45
46
47
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 45

def title
  @title
end

#upper_left_columnObject

Returns the value of attribute upper_left_column.



38
39
40
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 38

def upper_left_column
  @upper_left_column
end

#upper_left_rowObject

Returns the value of attribute upper_left_row.



37
38
39
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 37

def upper_left_row
  @upper_left_row
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 116

def self.attribute_map
  {
    :'name' => :'name',
    :'sheet_name' => :'sheetName',
    :'chart_type' => :'chartType',
    :'upper_left_row' => :'upperLeftRow',
    :'upper_left_column' => :'upperLeftColumn',
    :'lower_right_row' => :'lowerRightRow',
    :'lower_right_column' => :'lowerRightColumn',
    :'area' => :'area',
    :'is_vertical' => :'isVertical',
    :'category_data' => :'categoryData',
    :'is_auto_get_serial_name' => :'isAutoGetSerialName',
    :'title' => :'title',
    :'folder' => :'folder',
    :'data_labels' => :'dataLabels',
    :'data_labels_position' => :'dataLabelsPosition',
    :'pivot_table_sheet' => :'pivotTableSheet',
    :'pivot_table_name' => :'pivotTableName',
    :'storage_name' => :'storageName'
  }
end

.swagger_typesObject

Attribute type mapping.



140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 140

def self.swagger_types
  {
    :'name' => :'String',
    :'sheet_name' => :'String',
    :'chart_type' => :'String',
    :'upper_left_row' => :'Integer',
    :'upper_left_column' => :'Integer',
    :'lower_right_row' => :'Integer',
    :'lower_right_column' => :'Integer',
    :'area' => :'String',
    :'is_vertical' => :'BOOLEAN',
    :'category_data' => :'String',
    :'is_auto_get_serial_name' => :'BOOLEAN',
    :'title' => :'String',
    :'folder' => :'String',
    :'data_labels' => :'BOOLEAN',
    :'data_labels_position' => :'String',
    :'pivot_table_sheet' => :'String',
    :'pivot_table_name' => :'String',
    :'storage_name' => :'String'
  }
end

Instance Method Details

#create_http_request(api_client, opts = {}) ⇒ Object



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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/aspose_cells_cloud/requests/put_worksheet_chart_request.rb', line 163

def create_http_request(api_client,opts = {})
  if api_client.config.debugging
    api_client.config.logger.debug "Calling API: CellsApi.put_worksheet_chart ..."
  end
  api_client.request_token_if_needed
  # verify the required parameter 'name' is set
  if api_client.config.client_side_validation && name.nil?
      fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.put_worksheet_chart "
  end 
  # verify the required parameter 'sheet_name' is set
  if api_client.config.client_side_validation && sheet_name.nil?
      fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.put_worksheet_chart "
  end 
  # verify the required parameter 'chart_type' is set
  if api_client.config.client_side_validation && chart_type.nil?
      fail ArgumentError, "Missing the required parameter 'chart_type' when calling CellsApi.put_worksheet_chart "
  end 

  # resource path
  local_var_path = "/cells/{name}/worksheets/{sheetName}/charts".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
  # query parameters
  query_params = {}
  query_params[:'chartType'] = self.chart_type if !self.chart_type.nil? 
  query_params[:'upperLeftRow'] = self.upper_left_row if !self.upper_left_row.nil? 
  query_params[:'upperLeftColumn'] = self.upper_left_column if !self.upper_left_column.nil? 
  query_params[:'lowerRightRow'] = self.lower_right_row if !self.lower_right_row.nil? 
  query_params[:'lowerRightColumn'] = self.lower_right_column if !self.lower_right_column.nil? 
  query_params[:'area'] = self.area if !self.area.nil? 
  query_params[:'isVertical'] = self.is_vertical if !self.is_vertical.nil? 
  query_params[:'categoryData'] = self.category_data if !self.category_data.nil? 
  query_params[:'isAutoGetSerialName'] = self.is_auto_get_serial_name if !self.is_auto_get_serial_name.nil? 
  query_params[:'title'] = self.title if !self.title.nil? 
  query_params[:'folder'] = self.folder if !self.folder.nil? 
  query_params[:'dataLabels'] = self.data_labels if !self.data_labels.nil? 
  query_params[:'dataLabelsPosition'] = self.data_labels_position if !self.data_labels_position.nil? 
  query_params[:'pivotTableSheet'] = self.pivot_table_sheet if !self.pivot_table_sheet.nil? 
  query_params[:'pivotTableName'] = self.pivot_table_name if !self.pivot_table_name.nil? 
  query_params[:'storageName'] = self.storage_name if !self.storage_name.nil? 

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}
  post_body = nil 
     

  #auth_names = []
  auth_names = ['JWT']
  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 => 'CellsCloudResponse')
  if api_client.config.debugging
    api_client.config.logger.debug "API called: Specification.Name>Api.put_worksheet_chart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end