Class: MicrosoftGraph::Places::PlacesRequestBuilder
- Inherits:
-
MicrosoftKiotaAbstractions::BaseRequestBuilder
- Object
- MicrosoftKiotaAbstractions::BaseRequestBuilder
- MicrosoftGraph::Places::PlacesRequestBuilder
- Defined in:
- lib/places/places_request_builder.rb
Overview
Builds and executes requests for operations under places
Instance Method Summary collapse
-
#by_place_id(place_id) ⇒ Object
Provides operations to manage the collection of place entities.
-
#count ⇒ Object
Provides operations to count the resources in the collection.
-
#graph_room ⇒ Object
Casts the previous resource to room.
-
#graph_room_list ⇒ Object
Casts the previous resource to roomList.
-
#initialize(path_parameters, request_adapter) ⇒ Object
constructor
Instantiates a new PlacesRequestBuilder and sets the default values.
Constructor Details
#initialize(path_parameters, request_adapter) ⇒ Object
Instantiates a new PlacesRequestBuilder and sets the default values.
47 48 49 |
# File 'lib/places/places_request_builder.rb', line 47 def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/places") end |
Instance Method Details
#by_place_id(place_id) ⇒ Object
Provides operations to manage the collection of place entities.
35 36 37 38 39 40 |
# File 'lib/places/places_request_builder.rb', line 35 def by_place_id(place_id) raise StandardError, 'place_id cannot be null' if place_id.nil? url_tpl_params = @path_parameters.clone url_tpl_params["place%2Did"] = place_id return MicrosoftGraph::Places::Item::PlaceItemRequestBuilder.new(url_tpl_params, @request_adapter) end |
#count ⇒ Object
Provides operations to count the resources in the collection.
17 18 19 |
# File 'lib/places/places_request_builder.rb', line 17 def count() return MicrosoftGraph::Places::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_room ⇒ Object
Casts the previous resource to room.
22 23 24 |
# File 'lib/places/places_request_builder.rb', line 22 def graph_room() return MicrosoftGraph::Places::GraphRoom::GraphRoomRequestBuilder.new(@path_parameters, @request_adapter) end |
#graph_room_list ⇒ Object
Casts the previous resource to roomList.
27 28 29 |
# File 'lib/places/places_request_builder.rb', line 27 def graph_room_list() return MicrosoftGraph::Places::GraphRoomList::GraphRoomListRequestBuilder.new(@path_parameters, @request_adapter) end |