diff --git a/CHANGELOG.md b/CHANGELOG.md index ba5217c561..7cf8bb6137 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [0.19.0] - 2023-03-21 + +### Changed + +- Weekly generation. + ## [0.18.0] - 2023-03-14 ### Changed diff --git a/lib/chats/item/messages/item/replies/replies_request_builder.rb b/lib/chats/item/messages/item/replies/replies_request_builder.rb index 2b717f9456..ff351d601a 100644 --- a/lib/chats/item/messages/item/replies/replies_request_builder.rb +++ b/lib/chats/item/messages/item/replies/replies_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/chats/item/messages/messages_request_builder.rb b/lib/chats/item/messages/messages_request_builder.rb index 3343ce577d..05aacdd1d0 100644 --- a/lib/chats/item/messages/messages_request_builder.rb +++ b/lib/chats/item/messages/messages_request_builder.rb @@ -65,7 +65,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -99,7 +99,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/contacts/item/member_of/graph_administrative_unit/count/count.rb b/lib/contacts/item/member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..5df71b160b --- /dev/null +++ b/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../contacts' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Contacts + module Item + module MemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..5f1d4fbb3b --- /dev/null +++ b/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../contacts' +require_relative '../../item' +require_relative '../member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Contacts + module Item + module MemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Contacts::Item::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb b/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb index 43b54444ad..ff0fb157aa 100644 --- a/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../contacts' require_relative '../../item' require_relative '../member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Contacts::Item::MemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..cd3a2f682e --- /dev/null +++ b/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../contacts' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Contacts + module Item + module MemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/contacts/item/member_of/member_of_request_builder.rb b/lib/contacts/item/member_of/member_of_request_builder.rb index 7a224fd5c8..96d53230ca 100644 --- a/lib/contacts/item/member_of/member_of_request_builder.rb +++ b/lib/contacts/item/member_of/member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../contacts' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Contacts::Item::MemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Contacts::Item::MemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Contacts::Item::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count.rb b/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..9f5fee12cf --- /dev/null +++ b/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../contacts' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Contacts + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..9176ffe673 --- /dev/null +++ b/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../contacts' +require_relative '../../item' +require_relative '../transitive_member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Contacts + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Contacts::Item::TransitiveMemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb index da498726e8..6f9c257f42 100644 --- a/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../contacts' require_relative '../../item' require_relative '../transitive_member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Contacts::Item::TransitiveMemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..7ec83a58ef --- /dev/null +++ b/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../contacts' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Contacts + module Item + module TransitiveMemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb index eb08f4d155..f3e5344d36 100644 --- a/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../contacts' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './transitive_member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Contacts::Item::TransitiveMemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Contacts::Item::TransitiveMemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Contacts::Item::TransitiveMemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/devices/item/member_of/graph_administrative_unit/count/count.rb b/lib/devices/item/member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..575d9fb5bd --- /dev/null +++ b/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../devices' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Devices + module Item + module MemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..f4d6554b67 --- /dev/null +++ b/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../devices' +require_relative '../../item' +require_relative '../member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Devices + module Item + module MemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Devices::Item::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/devices/item/member_of/item/directory_object_item_request_builder.rb b/lib/devices/item/member_of/item/directory_object_item_request_builder.rb index 9167b81742..af26755a81 100644 --- a/lib/devices/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/devices/item/member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../devices' require_relative '../../item' require_relative '../member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the memberOf property of the microsoft.graph.device entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Devices::Item::MemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..3e85103b59 --- /dev/null +++ b/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../devices' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Devices + module Item + module MemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/devices/item/member_of/member_of_request_builder.rb b/lib/devices/item/member_of/member_of_request_builder.rb index 7be0c1d800..052707f47a 100644 --- a/lib/devices/item/member_of/member_of_request_builder.rb +++ b/lib/devices/item/member_of/member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../devices' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Devices::Item::MemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Devices::Item::MemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Devices::Item::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count.rb b/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..b53b469e5d --- /dev/null +++ b/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../devices' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Devices + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..09fd7632a1 --- /dev/null +++ b/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../devices' +require_relative '../../item' +require_relative '../transitive_member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Devices + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Devices::Item::TransitiveMemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb index b93a41ecfd..35441b57ce 100644 --- a/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../devices' require_relative '../../item' require_relative '../transitive_member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Devices::Item::TransitiveMemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..0c2e31de38 --- /dev/null +++ b/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../devices' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Devices + module Item + module TransitiveMemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb index addc513053..9dcd33d17e 100644 --- a/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../devices' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './transitive_member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Devices::Item::TransitiveMemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Devices::Item::TransitiveMemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Devices::Item::TransitiveMemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb index 87c713c26c..149743b21e 100644 --- a/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb @@ -48,7 +48,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_range ## @@ -62,7 +62,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb index fb1d38ec81..0c09b5034c 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb @@ -64,7 +64,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve a list of chartpoints objects. + ## Retrieve a list of chartpoint objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_chart_point_collection_response ## @@ -103,7 +103,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookChartPoint.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of chartpoints objects. + ## Retrieve a list of chartpoint objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -142,7 +142,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Retrieve a list of chartpoints objects. + # Retrieve a list of chartpoint objects. class PointsRequestBuilderGetQueryParameters ## diff --git a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb index f801b1c7ee..27b2555101 100644 --- a/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb +++ b/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb @@ -52,7 +52,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_range ## @@ -66,7 +66,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::WorkbookRange.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve the properties and relationships of range object. + ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## diff --git a/lib/groups/item/conversations/conversations_request_builder.rb b/lib/groups/item/conversations/conversations_request_builder.rb index d6386643b6..e68dda9a0b 100644 --- a/lib/groups/item/conversations/conversations_request_builder.rb +++ b/lib/groups/item/conversations/conversations_request_builder.rb @@ -59,7 +59,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ConversationCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Use reply thread or reply post to further post to that conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of conversation @@ -93,7 +93,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Use reply thread or reply post to further post to that conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb index eacc9c6ff1..d09a1335a5 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb @@ -51,7 +51,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -67,7 +67,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb index d9f527f086..94376d3c1a 100644 --- a/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb @@ -49,7 +49,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -65,7 +65,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb b/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb index 9e8b351e00..28d33c3fdb 100644 --- a/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb +++ b/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb @@ -45,7 +45,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -61,7 +61,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/member_of/graph_administrative_unit/count/count.rb b/lib/groups/item/member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..1eaf4a397d --- /dev/null +++ b/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module MemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..ca447073a9 --- /dev/null +++ b/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Groups + module Item + module MemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/groups/item/member_of/item/directory_object_item_request_builder.rb b/lib/groups/item/member_of/item/directory_object_item_request_builder.rb index aef618285c..e62cf1442d 100644 --- a/lib/groups/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/groups/item/member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../groups' require_relative '../../item' require_relative '../member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the memberOf property of the microsoft.graph.group entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Groups::Item::MemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..3d2e557cab --- /dev/null +++ b/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Groups + module Item + module MemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/member_of/member_of_request_builder.rb b/lib/groups/item/member_of/member_of_request_builder.rb index fa1f9047e4..4f8c6042a1 100644 --- a/lib/groups/item/member_of/member_of_request_builder.rb +++ b/lib/groups/item/member_of/member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../groups' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Groups::Item::MemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Groups::Item::MemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Groups::Item::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb b/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb index 663d0184e7..28dc0be2ea 100644 --- a/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/team/channels/item/messages/messages_request_builder.rb b/lib/groups/item/team/channels/item/messages/messages_request_builder.rb index 8935a89be5..2fcb20674d 100644 --- a/lib/groups/item/team/channels/item/messages/messages_request_builder.rb +++ b/lib/groups/item/team/channels/item/messages/messages_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb index 66c99c5614..b2a7a6f94c 100644 --- a/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb b/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb index fd6f007ca4..bb27afb7c5 100644 --- a/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb +++ b/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb b/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb index 09d68b83d0..422e6e841b 100644 --- a/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb @@ -47,7 +47,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -63,7 +63,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb b/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb index e05fec0797..2871def47a 100644 --- a/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb +++ b/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb @@ -45,7 +45,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -61,7 +61,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + ## Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/threads/item/reply/reply_request_builder.rb b/lib/groups/item/threads/item/reply/reply_request_builder.rb index cfa61d1f82..33eef5611f 100644 --- a/lib/groups/item/threads/item/reply/reply_request_builder.rb +++ b/lib/groups/item/threads/item/reply/reply_request_builder.rb @@ -41,7 +41,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of void @@ -57,7 +57,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + ## Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count.rb b/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..7cbffdbe80 --- /dev/null +++ b/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Groups + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..1923c123e3 --- /dev/null +++ b/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../groups' +require_relative '../../item' +require_relative '../transitive_member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Groups + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Groups::Item::TransitiveMemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb index 138957339e..fd1b3c8ace 100644 --- a/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../groups' require_relative '../../item' require_relative '../transitive_member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.group entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Groups::Item::TransitiveMemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..40c73f05c0 --- /dev/null +++ b/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../groups' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Groups + module Item + module TransitiveMemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb index 0bc50bc966..5768d04c6d 100644 --- a/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../groups' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './transitive_member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Groups::Item::TransitiveMemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Groups::Item::TransitiveMemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Groups::Item::TransitiveMemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/identity_protection/risky_users/item/history/history_request_builder.rb b/lib/identity_protection/risky_users/item/history/history_request_builder.rb index 8a0bf33c3a..024c601312 100644 --- a/lib/identity_protection/risky_users/item/history/history_request_builder.rb +++ b/lib/identity_protection/risky_users/item/history/history_request_builder.rb @@ -47,7 +47,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get the riskyUserHistoryItems from the history navigation property. + ## Read the properties and relationships of a riskyUserHistoryItem object. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of risky_user_history_item_collection_response ## @@ -77,7 +77,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::RiskyUserHistoryItem.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get the riskyUserHistoryItems from the history navigation property. + ## Read the properties and relationships of a riskyUserHistoryItem object. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -116,7 +116,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Get the riskyUserHistoryItems from the history navigation property. + # Read the properties and relationships of a riskyUserHistoryItem object. class HistoryRequestBuilderGetQueryParameters ## diff --git a/lib/kiota-lock.json b/lib/kiota-lock.json index 0f55d546e4..45c21b699d 100644 --- a/lib/kiota-lock.json +++ b/lib/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "B08E4D90552B759FCD56CDA61A9BF680612F028186B108A7CCB33359BFA23D6C018F86231CF9832CF7125203CC2AC2ADED7A7C5A6D68003FEE6FC6CDFDF44382", + "descriptionHash": "7D5BC7941DEF7D90F3004B8DE9BFAD48E77E8D582F1E0B8CE65AD6E5AEEFE9A0F7F63F644D676B4825CA0255CCF148BF4524407251A7386D890206DE456323CA", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.0.1", diff --git a/lib/me/authentication/methods/item/reset_password/reset_password_request_builder.rb b/lib/me/authentication/methods/item/reset_password/reset_password_request_builder.rb index b568552ff2..80f410b92e 100644 --- a/lib/me/authentication/methods/item/reset_password/reset_password_request_builder.rb +++ b/lib/me/authentication/methods/item/reset_password/reset_password_request_builder.rb @@ -42,7 +42,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Invoke action resetPassword + ## Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a **Location** header with a link where the caller can periodically check for the status of the reset operation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of password_reset_response @@ -58,7 +58,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PasswordResetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke action resetPassword + ## Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a **Location** header with a link where the caller can periodically check for the status of the reset operation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/chats/item/messages/item/replies/replies_request_builder.rb b/lib/me/chats/item/messages/item/replies/replies_request_builder.rb index d888aa1677..b9dd7b1115 100644 --- a/lib/me/chats/item/messages/item/replies/replies_request_builder.rb +++ b/lib/me/chats/item/messages/item/replies/replies_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/chats/item/messages/messages_request_builder.rb b/lib/me/chats/item/messages/messages_request_builder.rb index ef3f16d728..a725af00af 100644 --- a/lib/me/chats/item/messages/messages_request_builder.rb +++ b/lib/me/chats/item/messages/messages_request_builder.rb @@ -67,7 +67,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -101,7 +101,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb index 3b28c56617..313d3b9656 100644 --- a/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/joined_teams/item/channels/item/messages/messages_request_builder.rb b/lib/me/joined_teams/item/channels/item/messages/messages_request_builder.rb index a46be6e8c3..46f2a6b146 100644 --- a/lib/me/joined_teams/item/channels/item/messages/messages_request_builder.rb +++ b/lib/me/joined_teams/item/channels/item/messages/messages_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb index 089fc97acf..ff5ff2987d 100644 --- a/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/joined_teams/item/primary_channel/messages/messages_request_builder.rb b/lib/me/joined_teams/item/primary_channel/messages/messages_request_builder.rb index a04967eaaf..07bdbfcfd1 100644 --- a/lib/me/joined_teams/item/primary_channel/messages/messages_request_builder.rb +++ b/lib/me/joined_teams/item/primary_channel/messages/messages_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb b/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb index ffce6b2563..b5cbc14bd0 100644 --- a/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb +++ b/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb @@ -61,7 +61,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -91,7 +91,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -130,7 +130,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Retrieve a list of attachment objects attached to a message. + # Retrieve a list of attachment objects. class AttachmentsRequestBuilderGetQueryParameters ## diff --git a/lib/me/mail_folders/item/messages/item/attachments/attachments_request_builder.rb b/lib/me/mail_folders/item/messages/item/attachments/attachments_request_builder.rb index 0232e9816b..564affc07f 100644 --- a/lib/me/mail_folders/item/messages/item/attachments/attachments_request_builder.rb +++ b/lib/me/mail_folders/item/messages/item/attachments/attachments_request_builder.rb @@ -57,7 +57,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -87,7 +87,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -126,7 +126,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Retrieve a list of attachment objects attached to a message. + # Retrieve a list of attachment objects. class AttachmentsRequestBuilderGetQueryParameters ## diff --git a/lib/me/member_of/graph_administrative_unit/count/count.rb b/lib/me/member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/me/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/me/member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..b0e982d630 --- /dev/null +++ b/lib/me/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../me' +require_relative '../../member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Me + module MemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/me/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/me/member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/me/member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/me/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/me/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..168be6c180 --- /dev/null +++ b/lib/me/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,155 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/administrative_unit_collection_response' +require_relative '../../../models/o_data_errors/o_data_error' +require_relative '../../me' +require_relative '../member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Me + module MemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Me::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/me/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end +end diff --git a/lib/me/member_of/item/directory_object_item_request_builder.rb b/lib/me/member_of/item/directory_object_item_request_builder.rb index 9e26d2a098..f1396af648 100644 --- a/lib/me/member_of/item/directory_object_item_request_builder.rb +++ b/lib/me/member_of/item/directory_object_item_request_builder.rb @@ -4,6 +4,7 @@ require_relative '../../../models/o_data_errors/o_data_error' require_relative '../../me' require_relative '../member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -15,6 +16,11 @@ module Item # Provides operations to manage the memberOf property of the microsoft.graph.user entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Me::MemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..d149156266 --- /dev/null +++ b/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../me' +require_relative '../../member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Me + module MemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/me/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/me/member_of/member_of_request_builder.rb b/lib/me/member_of/member_of_request_builder.rb index e74eef4cbf..7913e03d75 100644 --- a/lib/me/member_of/member_of_request_builder.rb +++ b/lib/me/member_of/member_of_request_builder.rb @@ -4,6 +4,7 @@ require_relative '../../models/o_data_errors/o_data_error' require_relative '../me' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './member_of' @@ -20,6 +21,11 @@ def count() return MicrosoftGraph::Me::MemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Me::MemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Me::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/me/messages/item/attachments/attachments_request_builder.rb b/lib/me/messages/item/attachments/attachments_request_builder.rb index 77bd91e5d9..2d45782741 100644 --- a/lib/me/messages/item/attachments/attachments_request_builder.rb +++ b/lib/me/messages/item/attachments/attachments_request_builder.rb @@ -53,7 +53,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -83,7 +83,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -122,7 +122,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Retrieve a list of attachment objects attached to a message. + # Retrieve a list of attachment objects. class AttachmentsRequestBuilderGetQueryParameters ## diff --git a/lib/me/messages/messages_request_builder.rb b/lib/me/messages/messages_request_builder.rb index 504cea1b19..d1aef60fac 100644 --- a/lib/me/messages/messages_request_builder.rb +++ b/lib/me/messages/messages_request_builder.rb @@ -49,7 +49,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of message_collection_response ## @@ -79,7 +79,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Message.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -118,7 +118,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: class MessagesRequestBuilderGetQueryParameters ## diff --git a/lib/me/transitive_member_of/graph_administrative_unit/count/count.rb b/lib/me/transitive_member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/me/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/me/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..617a4f44e0 --- /dev/null +++ b/lib/me/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,121 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../me' +require_relative '../../transitive_member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Me + module TransitiveMemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/me/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..73fa05835d --- /dev/null +++ b/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,155 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../microsoft_graph' +require_relative '../../../models/administrative_unit_collection_response' +require_relative '../../../models/o_data_errors/o_data_error' +require_relative '../../me' +require_relative '../transitive_member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Me + module TransitiveMemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Me::TransitiveMemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/me/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/me/transitive_member_of/item/directory_object_item_request_builder.rb index e32e21f3f7..9bd8d2cd05 100644 --- a/lib/me/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/me/transitive_member_of/item/directory_object_item_request_builder.rb @@ -4,6 +4,7 @@ require_relative '../../../models/o_data_errors/o_data_error' require_relative '../../me' require_relative '../transitive_member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -15,6 +16,11 @@ module Item # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.user entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Me::TransitiveMemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..0d423de6e9 --- /dev/null +++ b/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,122 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../me' +require_relative '../../transitive_member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Me + module TransitiveMemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/me/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/me/transitive_member_of/transitive_member_of_request_builder.rb b/lib/me/transitive_member_of/transitive_member_of_request_builder.rb index dd968927f2..8d3fb8edfd 100644 --- a/lib/me/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/me/transitive_member_of/transitive_member_of_request_builder.rb @@ -4,6 +4,7 @@ require_relative '../../models/o_data_errors/o_data_error' require_relative '../me' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './transitive_member_of' @@ -20,6 +21,11 @@ def count() return MicrosoftGraph::Me::TransitiveMemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Me::TransitiveMemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Me::TransitiveMemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/models/access_review_history_definition.rb b/lib/models/access_review_history_definition.rb index dfaabda190..3e2956b88e 100644 --- a/lib/models/access_review_history_definition.rb +++ b/lib/models/access_review_history_definition.rb @@ -38,7 +38,7 @@ class AccessReviewHistoryDefinition < MicrosoftGraph::Models::Entity # Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. @status ## - ## Instantiates a new AccessReviewHistoryDefinition and sets the default values. + ## Instantiates a new accessReviewHistoryDefinition and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/administrative_unit.rb b/lib/models/administrative_unit.rb index 22997de7b6..f85012ae1a 100644 --- a/lib/models/administrative_unit.rb +++ b/lib/models/administrative_unit.rb @@ -25,7 +25,7 @@ class AdministrativeUnit < MicrosoftGraph::Models::DirectoryObject # Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership. If not set (value is null), the default behavior is public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit. @visibility ## - ## Instantiates a new AdministrativeUnit and sets the default values. + ## Instantiates a new administrativeUnit and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/application_template.rb b/lib/models/application_template.rb index 6e8aee597a..4d3b553d61 100644 --- a/lib/models/application_template.rb +++ b/lib/models/application_template.rb @@ -46,7 +46,7 @@ def categories=(value) @categories = value end ## - ## Instantiates a new ApplicationTemplate and sets the default values. + ## Instantiates a new applicationTemplate and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/audit_event.rb b/lib/models/audit_event.rb index 376fa2a195..4925e465cc 100644 --- a/lib/models/audit_event.rb +++ b/lib/models/audit_event.rb @@ -5,6 +5,8 @@ module MicrosoftGraph module Models + ## + # A class containing the properties for Audit Event. class AuditEvent < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## @@ -161,7 +163,7 @@ def component_name=(value) @component_name = value end ## - ## Instantiates a new AuditEvent and sets the default values. + ## Instantiates a new auditEvent and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/authentication_method_configuration.rb b/lib/models/authentication_method_configuration.rb index 45e2fa2aef..d421f627d4 100644 --- a/lib/models/authentication_method_configuration.rb +++ b/lib/models/authentication_method_configuration.rb @@ -10,7 +10,7 @@ class AuthenticationMethodConfiguration < MicrosoftGraph::Models::Entity # The state of the policy. Possible values are: enabled, disabled. @state ## - ## Instantiates a new AuthenticationMethodConfiguration and sets the default values. + ## Instantiates a new authenticationMethodConfiguration and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/authorization_policy.rb b/lib/models/authorization_policy.rb index a041f421ef..18f0ebed45 100644 --- a/lib/models/authorization_policy.rb +++ b/lib/models/authorization_policy.rb @@ -13,6 +13,9 @@ class AuthorizationPolicy < MicrosoftGraph::Models::PolicyBase # Indicates who can invite external users to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. See more in the table below. @allow_invites_from ## + # The allowUserConsentForRiskyApps property + @allow_user_consent_for_risky_apps + ## # Indicates whether users can sign up for email based subscriptions. @allowed_to_sign_up_email_based_subscriptions ## @@ -58,6 +61,21 @@ def allow_invites_from=(value) @allow_invites_from = value end ## + ## Gets the allowUserConsentForRiskyApps property value. The allowUserConsentForRiskyApps property + ## @return a boolean + ## + def allow_user_consent_for_risky_apps + return @allow_user_consent_for_risky_apps + end + ## + ## Sets the allowUserConsentForRiskyApps property value. The allowUserConsentForRiskyApps property + ## @param value Value to set for the allow_user_consent_for_risky_apps property. + ## @return a void + ## + def allow_user_consent_for_risky_apps=(value) + @allow_user_consent_for_risky_apps = value + end + ## ## Gets the allowedToSignUpEmailBasedSubscriptions property value. Indicates whether users can sign up for email based subscriptions. ## @return a boolean ## @@ -142,6 +160,7 @@ def get_field_deserializers() return super.merge({ "allowEmailVerifiedUsersToJoinOrganization" => lambda {|n| @allow_email_verified_users_to_join_organization = n.get_boolean_value() }, "allowInvitesFrom" => lambda {|n| @allow_invites_from = n.get_enum_value(MicrosoftGraph::Models::AllowInvitesFrom) }, + "allowUserConsentForRiskyApps" => lambda {|n| @allow_user_consent_for_risky_apps = n.get_boolean_value() }, "allowedToSignUpEmailBasedSubscriptions" => lambda {|n| @allowed_to_sign_up_email_based_subscriptions = n.get_boolean_value() }, "allowedToUseSSPR" => lambda {|n| @allowed_to_use_s_s_p_r = n.get_boolean_value() }, "blockMsolPowerShell" => lambda {|n| @block_msol_power_shell = n.get_boolean_value() }, @@ -174,6 +193,7 @@ def serialize(writer) super writer.write_boolean_value("allowEmailVerifiedUsersToJoinOrganization", @allow_email_verified_users_to_join_organization) writer.write_enum_value("allowInvitesFrom", @allow_invites_from) + writer.write_boolean_value("allowUserConsentForRiskyApps", @allow_user_consent_for_risky_apps) writer.write_boolean_value("allowedToSignUpEmailBasedSubscriptions", @allowed_to_sign_up_email_based_subscriptions) writer.write_boolean_value("allowedToUseSSPR", @allowed_to_use_s_s_p_r) writer.write_boolean_value("blockMsolPowerShell", @block_msol_power_shell) diff --git a/lib/models/booking_appointment.rb b/lib/models/booking_appointment.rb index 9be63f53cc..b84cc32a98 100644 --- a/lib/models/booking_appointment.rb +++ b/lib/models/booking_appointment.rb @@ -4,8 +4,6 @@ module MicrosoftGraph module Models - ## - # Represents a booked appointment of a service by a customer in a business. class BookingAppointment < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## @@ -111,7 +109,7 @@ def anonymous_join_web_url=(value) @anonymous_join_web_url = value end ## - ## Instantiates a new bookingAppointment and sets the default values. + ## Instantiates a new BookingAppointment and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/delegated_admin_access_assignment.rb b/lib/models/delegated_admin_access_assignment.rb index 40273e4504..4a7272441f 100644 --- a/lib/models/delegated_admin_access_assignment.rb +++ b/lib/models/delegated_admin_access_assignment.rb @@ -53,7 +53,7 @@ def access_details=(value) @access_details = value end ## - ## Instantiates a new delegatedAdminAccessAssignment and sets the default values. + ## Instantiates a new DelegatedAdminAccessAssignment and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/delegated_admin_relationship.rb b/lib/models/delegated_admin_relationship.rb index d177ad95bf..16dad07e07 100644 --- a/lib/models/delegated_admin_relationship.rb +++ b/lib/models/delegated_admin_relationship.rb @@ -89,7 +89,7 @@ def activated_date_time=(value) @activated_date_time = value end ## - ## Instantiates a new delegatedAdminRelationship and sets the default values. + ## Instantiates a new DelegatedAdminRelationship and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/deleted_team.rb b/lib/models/deleted_team.rb index c367dba831..7b0f219469 100644 --- a/lib/models/deleted_team.rb +++ b/lib/models/deleted_team.rb @@ -7,17 +7,17 @@ module Models class DeletedTeam < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## - # The channels property + # The channels that are either shared with this deleted team or created in this deleted team. @channels ## - ## Gets the channels property value. The channels property + ## Gets the channels property value. The channels that are either shared with this deleted team or created in this deleted team. ## @return a channel ## def channels return @channels end ## - ## Sets the channels property value. The channels property + ## Sets the channels property value. The channels that are either shared with this deleted team or created in this deleted team. ## @param value Value to set for the channels property. ## @return a void ## diff --git a/lib/models/device_category.rb b/lib/models/device_category.rb index e710863267..d29b613f1c 100644 --- a/lib/models/device_category.rb +++ b/lib/models/device_category.rb @@ -4,8 +4,6 @@ module MicrosoftGraph module Models - ## - # Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories. class DeviceCategory < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## diff --git a/lib/models/directory_object_partner_reference.rb b/lib/models/directory_object_partner_reference.rb index a32c338a94..5f0b2b2326 100644 --- a/lib/models/directory_object_partner_reference.rb +++ b/lib/models/directory_object_partner_reference.rb @@ -19,7 +19,7 @@ class DirectoryObjectPartnerReference < MicrosoftGraph::Models::DirectoryObject # The type of the referenced object in the partner tenant. Read-only. @object_type ## - ## Instantiates a new directoryObjectPartnerReference and sets the default values. + ## Instantiates a new DirectoryObjectPartnerReference and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/education_assignment_defaults.rb b/lib/models/education_assignment_defaults.rb index b9a50a2ba2..8cbe8a5efa 100644 --- a/lib/models/education_assignment_defaults.rb +++ b/lib/models/education_assignment_defaults.rb @@ -50,7 +50,7 @@ def added_student_action=(value) @added_student_action = value end ## - ## Instantiates a new EducationAssignmentDefaults and sets the default values. + ## Instantiates a new educationAssignmentDefaults and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/education_assignment_settings.rb b/lib/models/education_assignment_settings.rb index 4a464f7d8a..fbc1a98c27 100644 --- a/lib/models/education_assignment_settings.rb +++ b/lib/models/education_assignment_settings.rb @@ -10,7 +10,7 @@ class EducationAssignmentSettings < MicrosoftGraph::Models::Entity # Indicates whether turn-in celebration animation will be shown. A value of true indicates that the animation will not be shown. Default value is false. @submission_animation_disabled ## - ## Instantiates a new EducationAssignmentSettings and sets the default values. + ## Instantiates a new educationAssignmentSettings and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/education_class.rb b/lib/models/education_class.rb index f38aed123c..9055ff8f1f 100644 --- a/lib/models/education_class.rb +++ b/lib/models/education_class.rb @@ -142,7 +142,7 @@ def class_code=(value) @class_code = value end ## - ## Instantiates a new EducationClass and sets the default values. + ## Instantiates a new educationClass and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/identity_api_connector.rb b/lib/models/identity_api_connector.rb index d36faec88c..7a6184ba1a 100644 --- a/lib/models/identity_api_connector.rb +++ b/lib/models/identity_api_connector.rb @@ -31,7 +31,7 @@ def authentication_configuration=(value) @authentication_configuration = value end ## - ## Instantiates a new identityApiConnector and sets the default values. + ## Instantiates a new IdentityApiConnector and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/mac_o_s_general_device_configuration.rb b/lib/models/mac_o_s_general_device_configuration.rb index 582b1a77db..0d23d1adce 100644 --- a/lib/models/mac_o_s_general_device_configuration.rb +++ b/lib/models/mac_o_s_general_device_configuration.rb @@ -4,8 +4,6 @@ module MicrosoftGraph module Models - ## - # This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSGeneralDeviceConfiguration resource. class MacOSGeneralDeviceConfiguration < MicrosoftGraph::Models::DeviceConfiguration include MicrosoftKiotaAbstractions::Parsable ## @@ -75,7 +73,7 @@ def compliant_apps_list=(value) @compliant_apps_list = value end ## - ## Instantiates a new macOSGeneralDeviceConfiguration and sets the default values. + ## Instantiates a new MacOSGeneralDeviceConfiguration and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/microsoft_authenticator_authentication_method_configuration.rb b/lib/models/microsoft_authenticator_authentication_method_configuration.rb index f168ef0da7..d6f7957665 100644 --- a/lib/models/microsoft_authenticator_authentication_method_configuration.rb +++ b/lib/models/microsoft_authenticator_authentication_method_configuration.rb @@ -13,7 +13,7 @@ class MicrosoftAuthenticatorAuthenticationMethodConfiguration < MicrosoftGraph:: # A collection of groups that are enabled to use the authentication method. Expanded by default. @include_targets ## - ## Instantiates a new MicrosoftAuthenticatorAuthenticationMethodConfiguration and sets the default values. + ## Instantiates a new microsoftAuthenticatorAuthenticationMethodConfiguration and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/offer_shift_request.rb b/lib/models/offer_shift_request.rb index 61f4e550fb..941e3823ad 100644 --- a/lib/models/offer_shift_request.rb +++ b/lib/models/offer_shift_request.rb @@ -20,7 +20,7 @@ class OfferShiftRequest < MicrosoftGraph::Models::ScheduleChangeRequest # User ID of the sender of the offer shift request. @sender_shift_id ## - ## Instantiates a new offerShiftRequest and sets the default values. + ## Instantiates a new OfferShiftRequest and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/open_shift.rb b/lib/models/open_shift.rb index d2a4ef34f8..192937d3fe 100644 --- a/lib/models/open_shift.rb +++ b/lib/models/open_shift.rb @@ -16,7 +16,7 @@ class OpenShift < MicrosoftGraph::Models::ChangeTrackedEntity # A published open shift. @shared_open_shift ## - ## Instantiates a new openShift and sets the default values. + ## Instantiates a new OpenShift and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/organization.rb b/lib/models/organization.rb index c0048899d2..5e5c43cbd8 100644 --- a/lib/models/organization.rb +++ b/lib/models/organization.rb @@ -164,7 +164,7 @@ def city=(value) @city = value end ## - ## Instantiates a new Organization and sets the default values. + ## Instantiates a new organization and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/post.rb b/lib/models/post.rb index e8efe46806..a81cd2cde7 100644 --- a/lib/models/post.rb +++ b/lib/models/post.rb @@ -77,7 +77,7 @@ def body=(value) @body = value end ## - ## Instantiates a new post and sets the default values. + ## Instantiates a new Post and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/risk_detection.rb b/lib/models/risk_detection.rb index 6ca6492dd9..704b3400b3 100644 --- a/lib/models/risk_detection.rb +++ b/lib/models/risk_detection.rb @@ -110,7 +110,7 @@ def additional_info=(value) @additional_info = value end ## - ## Instantiates a new riskDetection and sets the default values. + ## Instantiates a new RiskDetection and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/role_definition.rb b/lib/models/role_definition.rb index aff4f08d42..5ddfea7913 100644 --- a/lib/models/role_definition.rb +++ b/lib/models/role_definition.rb @@ -4,6 +4,8 @@ module MicrosoftGraph module Models + ## + # The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. class RoleDefinition < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## diff --git a/lib/models/schema_extension.rb b/lib/models/schema_extension.rb index 9764dba14c..b7529700c9 100644 --- a/lib/models/schema_extension.rb +++ b/lib/models/schema_extension.rb @@ -22,7 +22,7 @@ class SchemaExtension < MicrosoftGraph::Models::Entity # Set of Microsoft Graph types (that can support extensions) that the schema extension can be applied to. Select from administrativeUnit, contact, device, event, group, message, organization, post, todoTask, todoTaskList, or user. @target_types ## - ## Instantiates a new SchemaExtension and sets the default values. + ## Instantiates a new schemaExtension and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/security/ediscovery_noncustodial_data_source.rb b/lib/models/security/ediscovery_noncustodial_data_source.rb index 973be810c6..30dbc44bf3 100644 --- a/lib/models/security/ediscovery_noncustodial_data_source.rb +++ b/lib/models/security/ediscovery_noncustodial_data_source.rb @@ -15,7 +15,7 @@ class EdiscoveryNoncustodialDataSource < MicrosoftGraph::Models::Security::DataS # Operation entity that represents the latest indexing for the non-custodial data source. @last_index_operation ## - ## Instantiates a new ediscoveryNoncustodialDataSource and sets the default values. + ## Instantiates a new EdiscoveryNoncustodialDataSource and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/security/ediscovery_review_tag.rb b/lib/models/security/ediscovery_review_tag.rb index 70691aa7b9..bbba516abc 100644 --- a/lib/models/security/ediscovery_review_tag.rb +++ b/lib/models/security/ediscovery_review_tag.rb @@ -48,7 +48,7 @@ def child_tags=(value) @child_tags = value end ## - ## Instantiates a new EdiscoveryReviewTag and sets the default values. + ## Instantiates a new ediscoveryReviewTag and sets the default values. ## @return a void ## def initialize() diff --git a/lib/models/teamwork.rb b/lib/models/teamwork.rb index c3e9bbd257..6957e08260 100644 --- a/lib/models/teamwork.rb +++ b/lib/models/teamwork.rb @@ -7,7 +7,7 @@ module Models class Teamwork < MicrosoftGraph::Models::Entity include MicrosoftKiotaAbstractions::Parsable ## - # The deletedTeams property + # The deleted team. @deleted_teams ## # The workforceIntegrations property @@ -29,14 +29,14 @@ def self.create_from_discriminator_value(parse_node) return Teamwork.new end ## - ## Gets the deletedTeams property value. The deletedTeams property + ## Gets the deletedTeams property value. The deleted team. ## @return a deleted_team ## def deleted_teams return @deleted_teams end ## - ## Sets the deletedTeams property value. The deletedTeams property + ## Sets the deletedTeams property value. The deleted team. ## @param value Value to set for the deleted_teams property. ## @return a void ## diff --git a/lib/service_principals/item/member_of/graph_administrative_unit/count/count.rb b/lib/service_principals/item/member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/service_principals/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/service_principals/item/member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..cfbda2022d --- /dev/null +++ b/lib/service_principals/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../service_principals' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module ServicePrincipals + module Item + module MemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..e0af3b4e43 --- /dev/null +++ b/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../service_principals' +require_relative '../../item' +require_relative '../member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module ServicePrincipals + module Item + module MemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::ServicePrincipals::Item::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/service_principals/item/member_of/item/directory_object_item_request_builder.rb b/lib/service_principals/item/member_of/item/directory_object_item_request_builder.rb index c7b3ea7058..34363d2170 100644 --- a/lib/service_principals/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/service_principals/item/member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../service_principals' require_relative '../../item' require_relative '../member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the memberOf property of the microsoft.graph.servicePrincipal entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::ServicePrincipals::Item::MemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..e7122d7b83 --- /dev/null +++ b/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../service_principals' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module ServicePrincipals + module Item + module MemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/service_principals/item/member_of/member_of_request_builder.rb b/lib/service_principals/item/member_of/member_of_request_builder.rb index 384c17c063..9fbe5a381d 100644 --- a/lib/service_principals/item/member_of/member_of_request_builder.rb +++ b/lib/service_principals/item/member_of/member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../service_principals' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::ServicePrincipals::Item::MemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::ServicePrincipals::Item::MemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::ServicePrincipals::Item::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count.rb b/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..f9b7922713 --- /dev/null +++ b/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../service_principals' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module ServicePrincipals + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..f2982780ff --- /dev/null +++ b/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../service_principals' +require_relative '../../item' +require_relative '../transitive_member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module ServicePrincipals + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::ServicePrincipals::Item::TransitiveMemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/service_principals/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/service_principals/item/transitive_member_of/item/directory_object_item_request_builder.rb index 4c3c5a4e35..648b27200a 100644 --- a/lib/service_principals/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/service_principals/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../service_principals' require_relative '../../item' require_relative '../transitive_member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.servicePrincipal entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::ServicePrincipals::Item::TransitiveMemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..a58ee32ac1 --- /dev/null +++ b/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../service_principals' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module ServicePrincipals + module Item + module TransitiveMemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/service_principals/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/service_principals/item/transitive_member_of/transitive_member_of_request_builder.rb index eb1d7ee679..25d1c9438e 100644 --- a/lib/service_principals/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/service_principals/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../service_principals' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './transitive_member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::ServicePrincipals::Item::TransitiveMemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::ServicePrincipals::Item::TransitiveMemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::ServicePrincipals::Item::TransitiveMemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb index aa87aa2ad0..67a7a8ff24 100644 --- a/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teams/item/channels/item/messages/messages_request_builder.rb b/lib/teams/item/channels/item/messages/messages_request_builder.rb index bd9e3f6371..b88a9f63d6 100644 --- a/lib/teams/item/channels/item/messages/messages_request_builder.rb +++ b/lib/teams/item/channels/item/messages/messages_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb index f044f653b4..87913c5a5d 100644 --- a/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teams/item/primary_channel/messages/messages_request_builder.rb b/lib/teams/item/primary_channel/messages/messages_request_builder.rb index 8a45c1a946..8176f6ce4e 100644 --- a/lib/teams/item/primary_channel/messages/messages_request_builder.rb +++ b/lib/teams/item/primary_channel/messages/messages_request_builder.rb @@ -67,7 +67,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -101,7 +101,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb b/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb index eb312876ee..cac7c1674d 100644 --- a/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb +++ b/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb @@ -49,7 +49,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get deletedTeams from teamwork + ## Get a list of the deletedTeam objects and their properties. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of deleted_team_collection_response ## @@ -79,7 +79,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::DeletedTeam.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get deletedTeams from teamwork + ## Get a list of the deletedTeam objects and their properties. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -118,7 +118,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Get deletedTeams from teamwork + # Get a list of the deletedTeam objects and their properties. class DeletedTeamsRequestBuilderGetQueryParameters ## diff --git a/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb index b67f5d249f..400a1f4627 100644 --- a/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb +++ b/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb @@ -53,7 +53,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get channels from teamwork + ## The channels that are either shared with this deleted team or created in this deleted team. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel_collection_response ## @@ -83,7 +83,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Channel.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get channels from teamwork + ## The channels that are either shared with this deleted team or created in this deleted team. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -122,7 +122,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Get channels from teamwork + # The channels that are either shared with this deleted team or created in this deleted team. class ChannelsRequestBuilderGetQueryParameters ## diff --git a/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb index d82cd4ce05..fb4d482e80 100644 --- a/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb +++ b/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb @@ -114,7 +114,7 @@ def delete(request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get channels from teamwork + ## The channels that are either shared with this deleted team or created in this deleted team. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of channel ## @@ -204,7 +204,7 @@ def to_delete_request_information(request_configuration=nil) return request_info end ## - ## Get channels from teamwork + ## The channels that are either shared with this deleted team or created in this deleted team. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -255,7 +255,7 @@ class ChannelItemRequestBuilderDeleteRequestConfiguration end ## - # Get channels from teamwork + # The channels that are either shared with this deleted team or created in this deleted team. class ChannelItemRequestBuilderGetQueryParameters ## diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb index 9645781106..3cf7586d0d 100644 --- a/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb b/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb index fc27a595c1..cf1abd693d 100644 --- a/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb +++ b/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb b/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb index 83cf3eeb0e..7e360c0b05 100644 --- a/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb +++ b/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb @@ -70,7 +70,7 @@ def delete(request_configuration=nil) return @request_adapter.send_async(request_info, nil, error_mapping) end ## - ## Get deletedTeams from teamwork + ## The deleted team. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of deleted_team ## @@ -116,7 +116,7 @@ def to_delete_request_information(request_configuration=nil) return request_info end ## - ## Get deletedTeams from teamwork + ## The deleted team. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -167,7 +167,7 @@ class DeletedTeamItemRequestBuilderDeleteRequestConfiguration end ## - # Get deletedTeams from teamwork + # The deleted team. class DeletedTeamItemRequestBuilderGetQueryParameters ## diff --git a/lib/users/item/authentication/methods/item/reset_password/reset_password_request_builder.rb b/lib/users/item/authentication/methods/item/reset_password/reset_password_request_builder.rb index 0f3ffdda5d..517d4fcea8 100644 --- a/lib/users/item/authentication/methods/item/reset_password/reset_password_request_builder.rb +++ b/lib/users/item/authentication/methods/item/reset_password/reset_password_request_builder.rb @@ -44,7 +44,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Invoke action resetPassword + ## Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a **Location** header with a link where the caller can periodically check for the status of the reset operation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of password_reset_response @@ -60,7 +60,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::PasswordResetResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Invoke action resetPassword + ## Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a **Location** header with a link where the caller can periodically check for the status of the reset operation. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb b/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb index 3d8907912b..5db8328692 100644 --- a/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb +++ b/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/chats/item/messages/messages_request_builder.rb b/lib/users/item/chats/item/messages/messages_request_builder.rb index 1a98d13e38..ad70eeeab3 100644 --- a/lib/users/item/chats/item/messages/messages_request_builder.rb +++ b/lib/users/item/chats/item/messages/messages_request_builder.rb @@ -69,7 +69,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -103,7 +103,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb b/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb index 048a321e6f..ba93902a11 100644 --- a/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +++ b/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb @@ -77,7 +77,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -111,7 +111,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/joined_teams/item/channels/item/messages/messages_request_builder.rb b/lib/users/item/joined_teams/item/channels/item/messages/messages_request_builder.rb index 91e701565f..d0fab0703f 100644 --- a/lib/users/item/joined_teams/item/channels/item/messages/messages_request_builder.rb +++ b/lib/users/item/joined_teams/item/channels/item/messages/messages_request_builder.rb @@ -73,7 +73,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -107,7 +107,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb b/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb index 16f184a602..ad3e149404 100644 --- a/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +++ b/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb @@ -75,7 +75,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -109,7 +109,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Create a new reply to a chatMessage in a specified channel. + ## Send a new reply to a chatMessage in a specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/joined_teams/item/primary_channel/messages/messages_request_builder.rb b/lib/users/item/joined_teams/item/primary_channel/messages/messages_request_builder.rb index ca9e7c45a3..ce0a6043c6 100644 --- a/lib/users/item/joined_teams/item/primary_channel/messages/messages_request_builder.rb +++ b/lib/users/item/joined_teams/item/primary_channel/messages/messages_request_builder.rb @@ -71,7 +71,7 @@ def get(request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of chat_message @@ -105,7 +105,7 @@ def to_get_request_information(request_configuration=nil) return request_info end ## - ## Send a new chatMessage in the specified channel or a chat. + ## Send a new chatMessage in the specified channel. ## @param body The request body ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information diff --git a/lib/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb b/lib/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb index 6a27d6c8db..51614db0fd 100644 --- a/lib/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb @@ -63,7 +63,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -93,7 +93,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -132,7 +132,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Retrieve a list of attachment objects attached to a message. + # Retrieve a list of attachment objects. class AttachmentsRequestBuilderGetQueryParameters ## diff --git a/lib/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.rb b/lib/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.rb index f0993a8510..cde351eb32 100644 --- a/lib/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.rb @@ -59,7 +59,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -89,7 +89,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -128,7 +128,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Retrieve a list of attachment objects attached to a message. + # Retrieve a list of attachment objects. class AttachmentsRequestBuilderGetQueryParameters ## diff --git a/lib/users/item/member_of/graph_administrative_unit/count/count.rb b/lib/users/item/member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/users/item/member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/users/item/member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..5da2d4ebb5 --- /dev/null +++ b/lib/users/item/member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Users + module Item + module MemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/users/{user%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..d3013db557 --- /dev/null +++ b/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../users' +require_relative '../../item' +require_relative '../member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Users + module Item + module MemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Users::Item::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/users/{user%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/users/item/member_of/item/directory_object_item_request_builder.rb b/lib/users/item/member_of/item/directory_object_item_request_builder.rb index 6ce4399e2f..2ea0830b2b 100644 --- a/lib/users/item/member_of/item/directory_object_item_request_builder.rb +++ b/lib/users/item/member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../users' require_relative '../../item' require_relative '../member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the memberOf property of the microsoft.graph.user entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Users::Item::MemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..c7f2278935 --- /dev/null +++ b/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Users + module Item + module MemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/users/{user%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/users/item/member_of/member_of_request_builder.rb b/lib/users/item/member_of/member_of_request_builder.rb index 7759f303de..9feb8bf28c 100644 --- a/lib/users/item/member_of/member_of_request_builder.rb +++ b/lib/users/item/member_of/member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../users' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Users::Item::MemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Users::Item::MemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Users::Item::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/users/item/messages/item/attachments/attachments_request_builder.rb b/lib/users/item/messages/item/attachments/attachments_request_builder.rb index c6d73e6177..1278c3e271 100644 --- a/lib/users/item/messages/item/attachments/attachments_request_builder.rb +++ b/lib/users/item/messages/item/attachments/attachments_request_builder.rb @@ -55,7 +55,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of attachment_collection_response ## @@ -85,7 +85,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Retrieve a list of attachment objects attached to a message. + ## Retrieve a list of attachment objects. ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -124,7 +124,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Retrieve a list of attachment objects attached to a message. + # Retrieve a list of attachment objects. class AttachmentsRequestBuilderGetQueryParameters ## diff --git a/lib/users/item/messages/messages_request_builder.rb b/lib/users/item/messages/messages_request_builder.rb index a7a6dd33c0..1c6e3b5021 100644 --- a/lib/users/item/messages/messages_request_builder.rb +++ b/lib/users/item/messages/messages_request_builder.rb @@ -51,7 +51,7 @@ def initialize(path_parameters, request_adapter) @path_parameters = path_parameters if path_parameters.is_a? Hash end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of message_collection_response ## @@ -81,7 +81,7 @@ def post(body, request_configuration=nil) return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Message.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + ## Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. ## @return a request_information ## @@ -120,7 +120,7 @@ def to_post_request_information(body, request_configuration=nil) end ## - # Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + # Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: class MessagesRequestBuilderGetQueryParameters ## diff --git a/lib/users/item/transitive_member_of/graph_administrative_unit/count/count.rb b/lib/users/item/transitive_member_of/graph_administrative_unit/count/count.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/users/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb b/lib/users/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb new file mode 100644 index 0000000000..b2e325bb59 --- /dev/null +++ b/lib/users/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb @@ -0,0 +1,124 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../graph_administrative_unit' +require_relative './count' + +module MicrosoftGraph + module Users + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + module Count + ## + # Provides operations to count the resources in the collection. + class CountRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new CountRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/users/{user%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of integer + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, number, error_mapping) + end + ## + ## Get the number of the resource + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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', 'text/plain') + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the number of the resource + class CountRequestBuilderGetQueryParameters + + ## + # Filter items by property values + attr_accessor :filter + ## + # Search items by search phrases + attr_accessor :search + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "filter" + return "%24filter" + when "search" + return "%24search" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class CountRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb b/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..e45b004996 --- /dev/null +++ b/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,158 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../microsoft_graph' +require_relative '../../../../models/administrative_unit_collection_response' +require_relative '../../../../models/o_data_errors/o_data_error' +require_relative '../../../users' +require_relative '../../item' +require_relative '../transitive_member_of' +require_relative './count/count_request_builder' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Users + module Item + module TransitiveMemberOf + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Provides operations to count the resources in the collection. + def count() + return MicrosoftGraph::Users::Item::TransitiveMemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) + end + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/users/{user%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit_collection_response + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Include count of items + attr_accessor :count + ## + # Expand related entities + attr_accessor :expand + ## + # Filter items by property values + attr_accessor :filter + ## + # Order items by property values + attr_accessor :orderby + ## + # Search items by search phrases + attr_accessor :search + ## + # Select properties to be returned + attr_accessor :select + ## + # Skip the first n items + attr_accessor :skip + ## + # Show only the first n items + attr_accessor :top + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "count" + return "%24count" + when "expand" + return "%24expand" + when "filter" + return "%24filter" + when "orderby" + return "%24orderby" + when "search" + return "%24search" + when "select" + return "%24select" + when "skip" + return "%24skip" + when "top" + return "%24top" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end +end diff --git a/lib/users/item/transitive_member_of/item/directory_object_item_request_builder.rb b/lib/users/item/transitive_member_of/item/directory_object_item_request_builder.rb index 6de7af3548..4443702549 100644 --- a/lib/users/item/transitive_member_of/item/directory_object_item_request_builder.rb +++ b/lib/users/item/transitive_member_of/item/directory_object_item_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../../users' require_relative '../../item' require_relative '../transitive_member_of' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './item' @@ -17,6 +18,11 @@ module Item # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.user entity. class DirectoryObjectItemRequestBuilder + ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Users::Item::TransitiveMemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end ## # Casts the previous resource to group. def graph_group() diff --git a/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb b/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb b/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb new file mode 100644 index 0000000000..d39d2f25c0 --- /dev/null +++ b/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb @@ -0,0 +1,125 @@ +require 'microsoft_kiota_abstractions' +require_relative '../../../../../microsoft_graph' +require_relative '../../../../../models/administrative_unit' +require_relative '../../../../../models/o_data_errors/o_data_error' +require_relative '../../../../users' +require_relative '../../../item' +require_relative '../../transitive_member_of' +require_relative '../item' +require_relative './graph_administrative_unit' + +module MicrosoftGraph + module Users + module Item + module TransitiveMemberOf + module Item + module GraphAdministrativeUnit + ## + # Casts the previous resource to administrativeUnit. + class GraphAdministrativeUnitRequestBuilder + + ## + # Path parameters for the request + @path_parameters + ## + # The request adapter to use to execute the requests. + @request_adapter + ## + # Url template to use to build the URL for the current request builder + @url_template + ## + ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values. + ## @param pathParameters Path parameters for the request + ## @param requestAdapter The request adapter to use to execute the requests. + ## @return a void + ## + def initialize(path_parameters, request_adapter) + raise StandardError, 'path_parameters cannot be null' if path_parameters.nil? + raise StandardError, 'request_adapter cannot be null' if request_adapter.nil? + @url_template = "{+baseurl}/users/{user%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}" + @request_adapter = request_adapter + path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String + @path_parameters = path_parameters if path_parameters.is_a? Hash + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a Fiber of administrative_unit + ## + 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::ODataErrors::ODataError.create_from_discriminator_value(pn) } + error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) } + return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping) + end + ## + ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + ## @return a request_information + ## + 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.add_request_options(request_configuration.options) + end + return request_info + end + + ## + # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit + class GraphAdministrativeUnitRequestBuilderGetQueryParameters + + ## + # Expand related entities + attr_accessor :expand + ## + # Select properties to be returned + attr_accessor :select + ## + ## Maps the query parameters names to their encoded names for the URI template parsing. + ## @param originalName The original query parameter name in the class. + ## @return a string + ## + def get_query_parameter(original_name) + raise StandardError, 'original_name cannot be null' if original_name.nil? + case original_name + when "expand" + return "%24expand" + when "select" + return "%24select" + else + return original_name + end + end + end + + ## + # Configuration for the request such as headers, query parameters, and middleware options. + class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration + + ## + # Request headers + attr_accessor :headers + ## + # Request options + attr_accessor :options + ## + # Request query parameters + attr_accessor :query_parameters + end + end + end + end + end + end + end +end diff --git a/lib/users/item/transitive_member_of/transitive_member_of_request_builder.rb b/lib/users/item/transitive_member_of/transitive_member_of_request_builder.rb index d46f4500a0..30c4f19ec6 100644 --- a/lib/users/item/transitive_member_of/transitive_member_of_request_builder.rb +++ b/lib/users/item/transitive_member_of/transitive_member_of_request_builder.rb @@ -5,6 +5,7 @@ require_relative '../../users' require_relative '../item' require_relative './count/count_request_builder' +require_relative './graph_administrative_unit/graph_administrative_unit_request_builder' require_relative './graph_group/graph_group_request_builder' require_relative './transitive_member_of' @@ -22,6 +23,11 @@ def count() return MicrosoftGraph::Users::Item::TransitiveMemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter) end ## + # Casts the previous resource to administrativeUnit. + def graph_administrative_unit() + return MicrosoftGraph::Users::Item::TransitiveMemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter) + end + ## # Casts the previous resource to group. def graph_group() return MicrosoftGraph::Users::Item::TransitiveMemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter) diff --git a/lib/version_information.rb b/lib/version_information.rb index 153e3ba1c9..87e142396e 100644 --- a/lib/version_information.rb +++ b/lib/version_information.rb @@ -1,6 +1,6 @@ module MicrosoftGraph class VersionInformation - VERSION = "0.18.0" + VERSION = "0.19.0" end end @@ -11,3 +11,4 @@ class VersionInformation +