Class: MicrosoftGraph::Users::Item::Outlook::OutlookRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Users::Item::Outlook::OutlookRequestBuilder
- Defined in:
- lib/users/item/outlook/outlook_request_builder.rb
Overview
Provides operations to manage the outlook property of the microsoft.graph.user entity.
Defined Under Namespace
Classes: OutlookRequestBuilderGetQueryParameters
Instance Method Summary collapse
-
#get(request_configuration = nil) ⇒ Object
Get outlook from users.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new OutlookRequestBuilder and sets the default values.
-
#master_categories ⇒ Object
Provides operations to manage the masterCategories property of the microsoft.graph.outlookUser entity.
-
#supported_languages ⇒ Object
Provides operations to call the supportedLanguages method.
-
#supported_time_zones ⇒ Object
Provides operations to call the supportedTimeZones method.
-
#supported_time_zones_with_time_zone_standard(time_zone_standard) ⇒ Object
Provides operations to call the supportedTimeZones method.
-
#to_get_request_information(request_configuration = nil) ⇒ Object
Get outlook from users.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new OutlookRequestBuilder and sets the default values.
42 43 44 |
# File 'lib/users/item/outlook/outlook_request_builder.rb', line 42 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/users/{user%2Did}/outlook{?%24select}") end |
Instance Method Details
#get(request_configuration = nil) ⇒ Object
Get outlook from users
50 51 52 53 54 55 56 57 58 |
# File 'lib/users/item/outlook/outlook_request_builder.rb', line 50 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::OutlookUser.create_from_discriminator_value(pn) }, error_mapping) end |
#master_categories ⇒ Object
Provides operations to manage the masterCategories property of the microsoft.graph.outlookUser entity.
23 24 25 |
# File 'lib/users/item/outlook/outlook_request_builder.rb', line 23 def master_categories() return MicrosoftGraph::Users::Item::Outlook::MasterCategories::MasterCategoriesRequestBuilder.new(@path_parameters, @request_adapter) end |
#supported_languages ⇒ Object
Provides operations to call the supportedLanguages method.
28 29 30 |
# File 'lib/users/item/outlook/outlook_request_builder.rb', line 28 def supported_languages() return MicrosoftGraph::Users::Item::Outlook::SupportedLanguages::SupportedLanguagesRequestBuilder.new(@path_parameters, @request_adapter) end |
#supported_time_zones ⇒ Object
Provides operations to call the supportedTimeZones method.
33 34 35 |
# File 'lib/users/item/outlook/outlook_request_builder.rb', line 33 def supported_time_zones() return MicrosoftGraph::Users::Item::Outlook::SupportedTimeZones::SupportedTimeZonesRequestBuilder.new(@path_parameters, @request_adapter) end |
#supported_time_zones_with_time_zone_standard(time_zone_standard) ⇒ Object
Provides operations to call the supportedTimeZones method.
64 65 66 67 |
# File 'lib/users/item/outlook/outlook_request_builder.rb', line 64 def supported_time_zones_with_time_zone_standard(time_zone_standard) raise StandardError, 'time_zone_standard cannot be null' if time_zone_standard.nil? return SupportedTimeZonesWithTimeZoneStandardRequestBuilder.new(@path_parameters, @request_adapter, TimeZoneStandard) end |
#to_get_request_information(request_configuration = nil) ⇒ Object
Get outlook from users
73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/users/item/outlook/outlook_request_builder.rb', line 73 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 |