Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::WorkbookRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::WorkbookRequestBuilder
- Defined in:
- lib/drives/item/items/item/workbook/workbook_request_builder.rb
Overview
Provides operations to manage the workbook property of the microsoft.graph.driveItem entity.
Defined Under Namespace
Classes: WorkbookRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#application ⇒ Object
Provides operations to manage the application property of the microsoft.graph.workbook entity.
-
#close_session ⇒ Object
Provides operations to call the closeSession method.
-
#comments ⇒ Object
Provides operations to manage the comments property of the microsoft.graph.workbook entity.
-
#create_session ⇒ Object
Provides operations to call the createSession method.
-
#delete(request_configuration = nil) ⇒ Object
Delete navigation property workbook for drives.
-
#functions ⇒ Object
Provides operations to manage the functions property of the microsoft.graph.workbook entity.
-
#get(request_configuration = nil) ⇒ Object
For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet’s contents.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new WorkbookRequestBuilder and sets the default values.
-
#names ⇒ Object
Provides operations to manage the names property of the microsoft.graph.workbook entity.
-
#operations ⇒ Object
Provides operations to manage the operations property of the microsoft.graph.workbook entity.
-
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property workbook in drives.
-
#refresh_session ⇒ Object
Provides operations to call the refreshSession method.
-
#session_info_resource_with_key(key) ⇒ Object
Provides operations to call the sessionInfoResource method.
-
#table_row_operation_result_with_key(key) ⇒ Object
Provides operations to call the tableRowOperationResult method.
-
#tables ⇒ Object
Provides operations to manage the tables property of the microsoft.graph.workbook entity.
-
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property workbook for drives.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet’s contents.
-
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the navigation property workbook in drives.
-
#worksheets ⇒ Object
Provides operations to manage the worksheets property of the microsoft.graph.workbook entity.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new WorkbookRequestBuilder and sets the default values.
89 90 91 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 89 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook{?%24select,%24expand}") end |
Instance Method Details
#application ⇒ Object
Provides operations to manage the application property of the microsoft.graph.workbook entity.
35 36 37 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 35 def application() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Application::ApplicationRequestBuilder.new(@path_parameters, @request_adapter) end |
#close_session ⇒ Object
Provides operations to call the closeSession method.
40 41 42 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 40 def close_session() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::CloseSession::CloseSessionRequestBuilder.new(@path_parameters, @request_adapter) end |
#comments ⇒ Object
Provides operations to manage the comments property of the microsoft.graph.workbook entity.
45 46 47 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 45 def comments() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Comments::CommentsRequestBuilder.new(@path_parameters, @request_adapter) end |
#create_session ⇒ Object
Provides operations to call the createSession method.
50 51 52 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 50 def create_session() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::CreateSession::CreateSessionRequestBuilder.new(@path_parameters, @request_adapter) end |
#delete(request_configuration = nil) ⇒ Object
Delete navigation property workbook for drives
97 98 99 100 101 102 103 104 105 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 97 def delete(request_configuration=nil) request_info = self.to_delete_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, nil, error_mapping) end |
#functions ⇒ Object
Provides operations to manage the functions property of the microsoft.graph.workbook entity.
55 56 57 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 55 def functions() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::FunctionsRequestBuilder.new(@path_parameters, @request_adapter) end |
#get(request_configuration = nil) ⇒ Object
For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet’s contents. Nullable.
111 112 113 114 115 116 117 118 119 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 111 def get(request_configuration=nil) request_info = self.to_get_request_information( request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Workbook.create_from_discriminator_value(pn) }, error_mapping) end |
#names ⇒ Object
Provides operations to manage the names property of the microsoft.graph.workbook entity.
60 61 62 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 60 def names() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Names::NamesRequestBuilder.new(@path_parameters, @request_adapter) end |
#operations ⇒ Object
Provides operations to manage the operations property of the microsoft.graph.workbook entity.
65 66 67 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 65 def operations() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Operations::OperationsRequestBuilder.new(@path_parameters, @request_adapter) end |
#patch(body, request_configuration = nil) ⇒ Object
Update the navigation property workbook in drives
126 127 128 129 130 131 132 133 134 135 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 126 def patch(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = self.to_patch_request_information( body, request_configuration ) error_mapping = Hash.new error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrorsODataError.create_from_discriminator_value(pn) } return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Workbook.create_from_discriminator_value(pn) }, error_mapping) end |
#refresh_session ⇒ Object
Provides operations to call the refreshSession method.
70 71 72 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 70 def refresh_session() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::RefreshSession::RefreshSessionRequestBuilder.new(@path_parameters, @request_adapter) end |
#session_info_resource_with_key(key) ⇒ Object
Provides operations to call the sessionInfoResource method.
141 142 143 144 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 141 def session_info_resource_with_key(key) raise StandardError, 'key cannot be null' if key.nil? return SessionInfoResourceWithKeyRequestBuilder.new(@path_parameters, @request_adapter, key) end |
#table_row_operation_result_with_key(key) ⇒ Object
Provides operations to call the tableRowOperationResult method.
150 151 152 153 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 150 def table_row_operation_result_with_key(key) raise StandardError, 'key cannot be null' if key.nil? return TableRowOperationResultWithKeyRequestBuilder.new(@path_parameters, @request_adapter, key) end |
#tables ⇒ Object
Provides operations to manage the tables property of the microsoft.graph.workbook entity.
75 76 77 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 75 def tables() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Tables::TablesRequestBuilder.new(@path_parameters, @request_adapter) end |
#to_delete_request_information(request_configuration = nil) ⇒ Object
Delete navigation property workbook for drives
159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 159 def to_delete_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :DELETE unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end return request_info end |
#to_get_request_information(request_configuration = nil) ⇒ Object
For files that are Excel spreadsheets, accesses the workbook API to work with the spreadsheet’s contents. Nullable.
175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 175 def to_get_request_information(request_configuration=nil) request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :GET request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters) request_info.(request_configuration.) end return request_info end |
#to_patch_request_information(body, request_configuration = nil) ⇒ Object
Update the navigation property workbook in drives
194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 194 def to_patch_request_information(body, request_configuration=nil) raise StandardError, 'body cannot be null' if body.nil? request_info = MicrosoftKiotaAbstractions::RequestInformation.new() request_info.url_template = @url_template request_info.path_parameters = @path_parameters request_info.http_method = :PATCH request_info.headers.add('Accept', 'application/json') unless request_configuration.nil? request_info.add_headers_from_raw_object(request_configuration.headers) request_info.(request_configuration.) end request_info.set_content_from_parsable(@request_adapter, "application/json", body) return request_info end |
#worksheets ⇒ Object
Provides operations to manage the worksheets property of the microsoft.graph.workbook entity.
80 81 82 |
# File 'lib/drives/item/items/item/workbook/workbook_request_builder.rb', line 80 def worksheets() return MicrosoftGraph::Drives::Item::Items::Item::Workbook::Worksheets::WorksheetsRequestBuilder.new(@path_parameters, @request_adapter) end |