microsoft_graph 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/chats/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/chats/item/messages/messages_request_builder.rb +2 -2
- data/lib/contacts/item/member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/contacts/item/member_of/member_of_request_builder.rb +6 -0
- data/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
- data/lib/devices/item/member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/devices/item/member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/devices/item/member_of/member_of_request_builder.rb +6 -0
- data/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
- data/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb +2 -2
- data/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb +3 -3
- data/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb +2 -2
- data/lib/groups/item/conversations/conversations_request_builder.rb +2 -2
- data/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +2 -2
- data/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb +2 -2
- data/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb +2 -2
- data/lib/groups/item/member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/groups/item/member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/groups/item/member_of/member_of_request_builder.rb +6 -0
- data/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/groups/item/team/channels/item/messages/messages_request_builder.rb +2 -2
- data/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb +2 -2
- data/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +2 -2
- data/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb +2 -2
- data/lib/groups/item/threads/item/reply/reply_request_builder.rb +2 -2
- data/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
- data/lib/identity_protection/risky_users/item/history/history_request_builder.rb +3 -3
- data/lib/kiota-lock.json +1 -1
- data/lib/me/authentication/methods/item/reset_password/reset_password_request_builder.rb +2 -2
- data/lib/me/chats/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/me/chats/item/messages/messages_request_builder.rb +2 -2
- data/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/me/joined_teams/item/channels/item/messages/messages_request_builder.rb +2 -2
- data/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/me/joined_teams/item/primary_channel/messages/messages_request_builder.rb +2 -2
- data/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
- data/lib/me/mail_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
- data/lib/me/member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/me/member_of/graph_administrative_unit/count/count_request_builder.rb +121 -0
- data/lib/me/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/me/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +155 -0
- data/lib/me/member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +122 -0
- data/lib/me/member_of/member_of_request_builder.rb +6 -0
- data/lib/me/messages/item/attachments/attachments_request_builder.rb +3 -3
- data/lib/me/messages/messages_request_builder.rb +3 -3
- data/lib/me/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/me/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +121 -0
- data/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +155 -0
- data/lib/me/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +122 -0
- data/lib/me/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
- data/lib/models/access_review_history_definition.rb +1 -1
- data/lib/models/administrative_unit.rb +1 -1
- data/lib/models/application_template.rb +1 -1
- data/lib/models/audit_event.rb +3 -1
- data/lib/models/authentication_method_configuration.rb +1 -1
- data/lib/models/authorization_policy.rb +20 -0
- data/lib/models/booking_appointment.rb +1 -3
- data/lib/models/delegated_admin_access_assignment.rb +1 -1
- data/lib/models/delegated_admin_relationship.rb +1 -1
- data/lib/models/deleted_team.rb +3 -3
- data/lib/models/device_category.rb +0 -2
- data/lib/models/directory_object_partner_reference.rb +1 -1
- data/lib/models/education_assignment_defaults.rb +1 -1
- data/lib/models/education_assignment_settings.rb +1 -1
- data/lib/models/education_class.rb +1 -1
- data/lib/models/identity_api_connector.rb +1 -1
- data/lib/models/mac_o_s_general_device_configuration.rb +1 -3
- data/lib/models/microsoft_authenticator_authentication_method_configuration.rb +1 -1
- data/lib/models/offer_shift_request.rb +1 -1
- data/lib/models/open_shift.rb +1 -1
- data/lib/models/organization.rb +1 -1
- data/lib/models/post.rb +1 -1
- data/lib/models/risk_detection.rb +1 -1
- data/lib/models/role_definition.rb +2 -0
- data/lib/models/schema_extension.rb +1 -1
- data/lib/models/security/ediscovery_noncustodial_data_source.rb +1 -1
- data/lib/models/security/ediscovery_review_tag.rb +1 -1
- data/lib/models/teamwork.rb +3 -3
- data/lib/service_principals/item/member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/service_principals/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/service_principals/item/member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/service_principals/item/member_of/member_of_request_builder.rb +6 -0
- data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/service_principals/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/service_principals/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
- data/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/teams/item/channels/item/messages/messages_request_builder.rb +2 -2
- data/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/teams/item/primary_channel/messages/messages_request_builder.rb +2 -2
- data/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb +3 -3
- data/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb +3 -3
- data/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb +3 -3
- data/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb +2 -2
- data/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb +3 -3
- data/lib/users/item/authentication/methods/item/reset_password/reset_password_request_builder.rb +2 -2
- data/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/users/item/chats/item/messages/messages_request_builder.rb +2 -2
- data/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/users/item/joined_teams/item/channels/item/messages/messages_request_builder.rb +2 -2
- data/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
- data/lib/users/item/joined_teams/item/primary_channel/messages/messages_request_builder.rb +2 -2
- data/lib/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
- data/lib/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
- data/lib/users/item/member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/users/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/users/item/member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/users/item/member_of/member_of_request_builder.rb +6 -0
- data/lib/users/item/messages/item/attachments/attachments_request_builder.rb +3 -3
- data/lib/users/item/messages/messages_request_builder.rb +3 -3
- data/lib/users/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
- data/lib/users/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
- data/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
- data/lib/users/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
- data/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
- data/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
- data/lib/users/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
- data/lib/version_information.rb +2 -1
- metadata +74 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e05da946b7aff89c3a9a3dbde3a2b0128414d47f6db630bb174dacdb8d7da0bd
|
|
4
|
+
data.tar.gz: 968f66f987c1a9bf0f0b5099561cc464f20e30e719860ad308fca20e08d91e85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b25ba07d5af9fa8459e118f42f9013939a404a3a15c91ec4d774cb042f0fc92ef538c1fa3718d8688aad0daf171b7e6f1b7785afe6e715716fe0769a2eacd6ee
|
|
7
|
+
data.tar.gz: d440da61256eb356dbf3034e6c579c9bd9ce1f8e46f488be86d249f3fdf8a169978f14c1b4078abcba1e32fd655a24a4cb8af02ccdd512fa01c1fc0d09592a11
|
data/CHANGELOG.md
CHANGED
|
@@ -69,7 +69,7 @@ module MicrosoftGraph
|
|
|
69
69
|
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
|
|
70
70
|
end
|
|
71
71
|
##
|
|
72
|
-
##
|
|
72
|
+
## Send a new reply to a chatMessage in a specified channel.
|
|
73
73
|
## @param body The request body
|
|
74
74
|
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
75
75
|
## @return a Fiber of chat_message
|
|
@@ -103,7 +103,7 @@ module MicrosoftGraph
|
|
|
103
103
|
return request_info
|
|
104
104
|
end
|
|
105
105
|
##
|
|
106
|
-
##
|
|
106
|
+
## Send a new reply to a chatMessage in a specified channel.
|
|
107
107
|
## @param body The request body
|
|
108
108
|
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
109
109
|
## @return a request_information
|
|
@@ -65,7 +65,7 @@ module MicrosoftGraph
|
|
|
65
65
|
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
|
|
66
66
|
end
|
|
67
67
|
##
|
|
68
|
-
## Send a new chatMessage in the specified
|
|
68
|
+
## 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.
|
|
69
69
|
## @param body The request body
|
|
70
70
|
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
71
71
|
## @return a Fiber of chat_message
|
|
@@ -99,7 +99,7 @@ module MicrosoftGraph
|
|
|
99
99
|
return request_info
|
|
100
100
|
end
|
|
101
101
|
##
|
|
102
|
-
## Send a new chatMessage in the specified
|
|
102
|
+
## 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.
|
|
103
103
|
## @param body The request body
|
|
104
104
|
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
105
105
|
## @return a request_information
|
|
File without changes
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../../microsoft_graph'
|
|
3
|
+
require_relative '../../../../../models/o_data_errors/o_data_error'
|
|
4
|
+
require_relative '../../../../contacts'
|
|
5
|
+
require_relative '../../../item'
|
|
6
|
+
require_relative '../../member_of'
|
|
7
|
+
require_relative '../graph_administrative_unit'
|
|
8
|
+
require_relative './count'
|
|
9
|
+
|
|
10
|
+
module MicrosoftGraph
|
|
11
|
+
module Contacts
|
|
12
|
+
module Item
|
|
13
|
+
module MemberOf
|
|
14
|
+
module GraphAdministrativeUnit
|
|
15
|
+
module Count
|
|
16
|
+
##
|
|
17
|
+
# Provides operations to count the resources in the collection.
|
|
18
|
+
class CountRequestBuilder
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Path parameters for the request
|
|
22
|
+
@path_parameters
|
|
23
|
+
##
|
|
24
|
+
# The request adapter to use to execute the requests.
|
|
25
|
+
@request_adapter
|
|
26
|
+
##
|
|
27
|
+
# Url template to use to build the URL for the current request builder
|
|
28
|
+
@url_template
|
|
29
|
+
##
|
|
30
|
+
## Instantiates a new CountRequestBuilder and sets the default values.
|
|
31
|
+
## @param pathParameters Path parameters for the request
|
|
32
|
+
## @param requestAdapter The request adapter to use to execute the requests.
|
|
33
|
+
## @return a void
|
|
34
|
+
##
|
|
35
|
+
def initialize(path_parameters, request_adapter)
|
|
36
|
+
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
|
|
37
|
+
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
|
|
38
|
+
@url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}"
|
|
39
|
+
@request_adapter = request_adapter
|
|
40
|
+
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
|
|
41
|
+
@path_parameters = path_parameters if path_parameters.is_a? Hash
|
|
42
|
+
end
|
|
43
|
+
##
|
|
44
|
+
## Get the number of the resource
|
|
45
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
46
|
+
## @return a Fiber of integer
|
|
47
|
+
##
|
|
48
|
+
def get(request_configuration=nil)
|
|
49
|
+
request_info = self.to_get_request_information(
|
|
50
|
+
request_configuration
|
|
51
|
+
)
|
|
52
|
+
error_mapping = Hash.new
|
|
53
|
+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
54
|
+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
55
|
+
return @request_adapter.send_async(request_info, number, error_mapping)
|
|
56
|
+
end
|
|
57
|
+
##
|
|
58
|
+
## Get the number of the resource
|
|
59
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
## @return a request_information
|
|
61
|
+
##
|
|
62
|
+
def to_get_request_information(request_configuration=nil)
|
|
63
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
64
|
+
request_info.url_template = @url_template
|
|
65
|
+
request_info.path_parameters = @path_parameters
|
|
66
|
+
request_info.http_method = :GET
|
|
67
|
+
request_info.headers.add('Accept', 'text/plain')
|
|
68
|
+
unless request_configuration.nil?
|
|
69
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
70
|
+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
|
|
71
|
+
request_info.add_request_options(request_configuration.options)
|
|
72
|
+
end
|
|
73
|
+
return request_info
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Get the number of the resource
|
|
78
|
+
class CountRequestBuilderGetQueryParameters
|
|
79
|
+
|
|
80
|
+
##
|
|
81
|
+
# Filter items by property values
|
|
82
|
+
attr_accessor :filter
|
|
83
|
+
##
|
|
84
|
+
# Search items by search phrases
|
|
85
|
+
attr_accessor :search
|
|
86
|
+
##
|
|
87
|
+
## Maps the query parameters names to their encoded names for the URI template parsing.
|
|
88
|
+
## @param originalName The original query parameter name in the class.
|
|
89
|
+
## @return a string
|
|
90
|
+
##
|
|
91
|
+
def get_query_parameter(original_name)
|
|
92
|
+
raise StandardError, 'original_name cannot be null' if original_name.nil?
|
|
93
|
+
case original_name
|
|
94
|
+
when "filter"
|
|
95
|
+
return "%24filter"
|
|
96
|
+
when "search"
|
|
97
|
+
return "%24search"
|
|
98
|
+
else
|
|
99
|
+
return original_name
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
##
|
|
105
|
+
# Configuration for the request such as headers, query parameters, and middleware options.
|
|
106
|
+
class CountRequestBuilderGetRequestConfiguration
|
|
107
|
+
|
|
108
|
+
##
|
|
109
|
+
# Request headers
|
|
110
|
+
attr_accessor :headers
|
|
111
|
+
##
|
|
112
|
+
# Request options
|
|
113
|
+
attr_accessor :options
|
|
114
|
+
##
|
|
115
|
+
# Request query parameters
|
|
116
|
+
attr_accessor :query_parameters
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../microsoft_graph'
|
|
3
|
+
require_relative '../../../../models/administrative_unit_collection_response'
|
|
4
|
+
require_relative '../../../../models/o_data_errors/o_data_error'
|
|
5
|
+
require_relative '../../../contacts'
|
|
6
|
+
require_relative '../../item'
|
|
7
|
+
require_relative '../member_of'
|
|
8
|
+
require_relative './count/count_request_builder'
|
|
9
|
+
require_relative './graph_administrative_unit'
|
|
10
|
+
|
|
11
|
+
module MicrosoftGraph
|
|
12
|
+
module Contacts
|
|
13
|
+
module Item
|
|
14
|
+
module MemberOf
|
|
15
|
+
module GraphAdministrativeUnit
|
|
16
|
+
##
|
|
17
|
+
# Casts the previous resource to administrativeUnit.
|
|
18
|
+
class GraphAdministrativeUnitRequestBuilder
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Provides operations to count the resources in the collection.
|
|
22
|
+
def count()
|
|
23
|
+
return MicrosoftGraph::Contacts::Item::MemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter)
|
|
24
|
+
end
|
|
25
|
+
##
|
|
26
|
+
# Path parameters for the request
|
|
27
|
+
@path_parameters
|
|
28
|
+
##
|
|
29
|
+
# The request adapter to use to execute the requests.
|
|
30
|
+
@request_adapter
|
|
31
|
+
##
|
|
32
|
+
# Url template to use to build the URL for the current request builder
|
|
33
|
+
@url_template
|
|
34
|
+
##
|
|
35
|
+
## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
|
|
36
|
+
## @param pathParameters Path parameters for the request
|
|
37
|
+
## @param requestAdapter The request adapter to use to execute the requests.
|
|
38
|
+
## @return a void
|
|
39
|
+
##
|
|
40
|
+
def initialize(path_parameters, request_adapter)
|
|
41
|
+
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
|
|
42
|
+
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
|
|
43
|
+
@url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"
|
|
44
|
+
@request_adapter = request_adapter
|
|
45
|
+
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
|
|
46
|
+
@path_parameters = path_parameters if path_parameters.is_a? Hash
|
|
47
|
+
end
|
|
48
|
+
##
|
|
49
|
+
## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
|
|
50
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
|
+
## @return a Fiber of administrative_unit_collection_response
|
|
52
|
+
##
|
|
53
|
+
def get(request_configuration=nil)
|
|
54
|
+
request_info = self.to_get_request_information(
|
|
55
|
+
request_configuration
|
|
56
|
+
)
|
|
57
|
+
error_mapping = Hash.new
|
|
58
|
+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
59
|
+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
60
|
+
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
|
|
61
|
+
end
|
|
62
|
+
##
|
|
63
|
+
## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
|
|
64
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
65
|
+
## @return a request_information
|
|
66
|
+
##
|
|
67
|
+
def to_get_request_information(request_configuration=nil)
|
|
68
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
69
|
+
request_info.url_template = @url_template
|
|
70
|
+
request_info.path_parameters = @path_parameters
|
|
71
|
+
request_info.http_method = :GET
|
|
72
|
+
request_info.headers.add('Accept', 'application/json')
|
|
73
|
+
unless request_configuration.nil?
|
|
74
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
75
|
+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
|
|
76
|
+
request_info.add_request_options(request_configuration.options)
|
|
77
|
+
end
|
|
78
|
+
return request_info
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
##
|
|
82
|
+
# Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
|
|
83
|
+
class GraphAdministrativeUnitRequestBuilderGetQueryParameters
|
|
84
|
+
|
|
85
|
+
##
|
|
86
|
+
# Include count of items
|
|
87
|
+
attr_accessor :count
|
|
88
|
+
##
|
|
89
|
+
# Expand related entities
|
|
90
|
+
attr_accessor :expand
|
|
91
|
+
##
|
|
92
|
+
# Filter items by property values
|
|
93
|
+
attr_accessor :filter
|
|
94
|
+
##
|
|
95
|
+
# Order items by property values
|
|
96
|
+
attr_accessor :orderby
|
|
97
|
+
##
|
|
98
|
+
# Search items by search phrases
|
|
99
|
+
attr_accessor :search
|
|
100
|
+
##
|
|
101
|
+
# Select properties to be returned
|
|
102
|
+
attr_accessor :select
|
|
103
|
+
##
|
|
104
|
+
# Skip the first n items
|
|
105
|
+
attr_accessor :skip
|
|
106
|
+
##
|
|
107
|
+
# Show only the first n items
|
|
108
|
+
attr_accessor :top
|
|
109
|
+
##
|
|
110
|
+
## Maps the query parameters names to their encoded names for the URI template parsing.
|
|
111
|
+
## @param originalName The original query parameter name in the class.
|
|
112
|
+
## @return a string
|
|
113
|
+
##
|
|
114
|
+
def get_query_parameter(original_name)
|
|
115
|
+
raise StandardError, 'original_name cannot be null' if original_name.nil?
|
|
116
|
+
case original_name
|
|
117
|
+
when "count"
|
|
118
|
+
return "%24count"
|
|
119
|
+
when "expand"
|
|
120
|
+
return "%24expand"
|
|
121
|
+
when "filter"
|
|
122
|
+
return "%24filter"
|
|
123
|
+
when "orderby"
|
|
124
|
+
return "%24orderby"
|
|
125
|
+
when "search"
|
|
126
|
+
return "%24search"
|
|
127
|
+
when "select"
|
|
128
|
+
return "%24select"
|
|
129
|
+
when "skip"
|
|
130
|
+
return "%24skip"
|
|
131
|
+
when "top"
|
|
132
|
+
return "%24top"
|
|
133
|
+
else
|
|
134
|
+
return original_name
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
##
|
|
140
|
+
# Configuration for the request such as headers, query parameters, and middleware options.
|
|
141
|
+
class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration
|
|
142
|
+
|
|
143
|
+
##
|
|
144
|
+
# Request headers
|
|
145
|
+
attr_accessor :headers
|
|
146
|
+
##
|
|
147
|
+
# Request options
|
|
148
|
+
attr_accessor :options
|
|
149
|
+
##
|
|
150
|
+
# Request query parameters
|
|
151
|
+
attr_accessor :query_parameters
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
@@ -5,6 +5,7 @@ require_relative '../../../../models/o_data_errors/o_data_error'
|
|
|
5
5
|
require_relative '../../../contacts'
|
|
6
6
|
require_relative '../../item'
|
|
7
7
|
require_relative '../member_of'
|
|
8
|
+
require_relative './graph_administrative_unit/graph_administrative_unit_request_builder'
|
|
8
9
|
require_relative './graph_group/graph_group_request_builder'
|
|
9
10
|
require_relative './item'
|
|
10
11
|
|
|
@@ -17,6 +18,11 @@ module MicrosoftGraph
|
|
|
17
18
|
# Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity.
|
|
18
19
|
class DirectoryObjectItemRequestBuilder
|
|
19
20
|
|
|
21
|
+
##
|
|
22
|
+
# Casts the previous resource to administrativeUnit.
|
|
23
|
+
def graph_administrative_unit()
|
|
24
|
+
return MicrosoftGraph::Contacts::Item::MemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter)
|
|
25
|
+
end
|
|
20
26
|
##
|
|
21
27
|
# Casts the previous resource to group.
|
|
22
28
|
def graph_group()
|
|
File without changes
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../../microsoft_graph'
|
|
3
|
+
require_relative '../../../../../models/administrative_unit'
|
|
4
|
+
require_relative '../../../../../models/o_data_errors/o_data_error'
|
|
5
|
+
require_relative '../../../../contacts'
|
|
6
|
+
require_relative '../../../item'
|
|
7
|
+
require_relative '../../member_of'
|
|
8
|
+
require_relative '../item'
|
|
9
|
+
require_relative './graph_administrative_unit'
|
|
10
|
+
|
|
11
|
+
module MicrosoftGraph
|
|
12
|
+
module Contacts
|
|
13
|
+
module Item
|
|
14
|
+
module MemberOf
|
|
15
|
+
module Item
|
|
16
|
+
module GraphAdministrativeUnit
|
|
17
|
+
##
|
|
18
|
+
# Casts the previous resource to administrativeUnit.
|
|
19
|
+
class GraphAdministrativeUnitRequestBuilder
|
|
20
|
+
|
|
21
|
+
##
|
|
22
|
+
# Path parameters for the request
|
|
23
|
+
@path_parameters
|
|
24
|
+
##
|
|
25
|
+
# The request adapter to use to execute the requests.
|
|
26
|
+
@request_adapter
|
|
27
|
+
##
|
|
28
|
+
# Url template to use to build the URL for the current request builder
|
|
29
|
+
@url_template
|
|
30
|
+
##
|
|
31
|
+
## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
|
|
32
|
+
## @param pathParameters Path parameters for the request
|
|
33
|
+
## @param requestAdapter The request adapter to use to execute the requests.
|
|
34
|
+
## @return a void
|
|
35
|
+
##
|
|
36
|
+
def initialize(path_parameters, request_adapter)
|
|
37
|
+
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
|
|
38
|
+
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
|
|
39
|
+
@url_template = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}"
|
|
40
|
+
@request_adapter = request_adapter
|
|
41
|
+
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
|
|
42
|
+
@path_parameters = path_parameters if path_parameters.is_a? Hash
|
|
43
|
+
end
|
|
44
|
+
##
|
|
45
|
+
## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
|
|
46
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
47
|
+
## @return a Fiber of administrative_unit
|
|
48
|
+
##
|
|
49
|
+
def get(request_configuration=nil)
|
|
50
|
+
request_info = self.to_get_request_information(
|
|
51
|
+
request_configuration
|
|
52
|
+
)
|
|
53
|
+
error_mapping = Hash.new
|
|
54
|
+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
55
|
+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
56
|
+
return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping)
|
|
57
|
+
end
|
|
58
|
+
##
|
|
59
|
+
## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
|
|
60
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
61
|
+
## @return a request_information
|
|
62
|
+
##
|
|
63
|
+
def to_get_request_information(request_configuration=nil)
|
|
64
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
65
|
+
request_info.url_template = @url_template
|
|
66
|
+
request_info.path_parameters = @path_parameters
|
|
67
|
+
request_info.http_method = :GET
|
|
68
|
+
request_info.headers.add('Accept', 'application/json')
|
|
69
|
+
unless request_configuration.nil?
|
|
70
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
71
|
+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
|
|
72
|
+
request_info.add_request_options(request_configuration.options)
|
|
73
|
+
end
|
|
74
|
+
return request_info
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
##
|
|
78
|
+
# Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
|
|
79
|
+
class GraphAdministrativeUnitRequestBuilderGetQueryParameters
|
|
80
|
+
|
|
81
|
+
##
|
|
82
|
+
# Expand related entities
|
|
83
|
+
attr_accessor :expand
|
|
84
|
+
##
|
|
85
|
+
# Select properties to be returned
|
|
86
|
+
attr_accessor :select
|
|
87
|
+
##
|
|
88
|
+
## Maps the query parameters names to their encoded names for the URI template parsing.
|
|
89
|
+
## @param originalName The original query parameter name in the class.
|
|
90
|
+
## @return a string
|
|
91
|
+
##
|
|
92
|
+
def get_query_parameter(original_name)
|
|
93
|
+
raise StandardError, 'original_name cannot be null' if original_name.nil?
|
|
94
|
+
case original_name
|
|
95
|
+
when "expand"
|
|
96
|
+
return "%24expand"
|
|
97
|
+
when "select"
|
|
98
|
+
return "%24select"
|
|
99
|
+
else
|
|
100
|
+
return original_name
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
##
|
|
106
|
+
# Configuration for the request such as headers, query parameters, and middleware options.
|
|
107
|
+
class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration
|
|
108
|
+
|
|
109
|
+
##
|
|
110
|
+
# Request headers
|
|
111
|
+
attr_accessor :headers
|
|
112
|
+
##
|
|
113
|
+
# Request options
|
|
114
|
+
attr_accessor :options
|
|
115
|
+
##
|
|
116
|
+
# Request query parameters
|
|
117
|
+
attr_accessor :query_parameters
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -5,6 +5,7 @@ require_relative '../../../models/o_data_errors/o_data_error'
|
|
|
5
5
|
require_relative '../../contacts'
|
|
6
6
|
require_relative '../item'
|
|
7
7
|
require_relative './count/count_request_builder'
|
|
8
|
+
require_relative './graph_administrative_unit/graph_administrative_unit_request_builder'
|
|
8
9
|
require_relative './graph_group/graph_group_request_builder'
|
|
9
10
|
require_relative './member_of'
|
|
10
11
|
|
|
@@ -22,6 +23,11 @@ module MicrosoftGraph
|
|
|
22
23
|
return MicrosoftGraph::Contacts::Item::MemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter)
|
|
23
24
|
end
|
|
24
25
|
##
|
|
26
|
+
# Casts the previous resource to administrativeUnit.
|
|
27
|
+
def graph_administrative_unit()
|
|
28
|
+
return MicrosoftGraph::Contacts::Item::MemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter)
|
|
29
|
+
end
|
|
30
|
+
##
|
|
25
31
|
# Casts the previous resource to group.
|
|
26
32
|
def graph_group()
|
|
27
33
|
return MicrosoftGraph::Contacts::Item::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter)
|
|
File without changes
|
data/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../../../../../microsoft_graph'
|
|
3
|
+
require_relative '../../../../../models/o_data_errors/o_data_error'
|
|
4
|
+
require_relative '../../../../contacts'
|
|
5
|
+
require_relative '../../../item'
|
|
6
|
+
require_relative '../../transitive_member_of'
|
|
7
|
+
require_relative '../graph_administrative_unit'
|
|
8
|
+
require_relative './count'
|
|
9
|
+
|
|
10
|
+
module MicrosoftGraph
|
|
11
|
+
module Contacts
|
|
12
|
+
module Item
|
|
13
|
+
module TransitiveMemberOf
|
|
14
|
+
module GraphAdministrativeUnit
|
|
15
|
+
module Count
|
|
16
|
+
##
|
|
17
|
+
# Provides operations to count the resources in the collection.
|
|
18
|
+
class CountRequestBuilder
|
|
19
|
+
|
|
20
|
+
##
|
|
21
|
+
# Path parameters for the request
|
|
22
|
+
@path_parameters
|
|
23
|
+
##
|
|
24
|
+
# The request adapter to use to execute the requests.
|
|
25
|
+
@request_adapter
|
|
26
|
+
##
|
|
27
|
+
# Url template to use to build the URL for the current request builder
|
|
28
|
+
@url_template
|
|
29
|
+
##
|
|
30
|
+
## Instantiates a new CountRequestBuilder and sets the default values.
|
|
31
|
+
## @param pathParameters Path parameters for the request
|
|
32
|
+
## @param requestAdapter The request adapter to use to execute the requests.
|
|
33
|
+
## @return a void
|
|
34
|
+
##
|
|
35
|
+
def initialize(path_parameters, request_adapter)
|
|
36
|
+
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
|
|
37
|
+
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
|
|
38
|
+
@url_template = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}"
|
|
39
|
+
@request_adapter = request_adapter
|
|
40
|
+
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
|
|
41
|
+
@path_parameters = path_parameters if path_parameters.is_a? Hash
|
|
42
|
+
end
|
|
43
|
+
##
|
|
44
|
+
## Get the number of the resource
|
|
45
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
46
|
+
## @return a Fiber of integer
|
|
47
|
+
##
|
|
48
|
+
def get(request_configuration=nil)
|
|
49
|
+
request_info = self.to_get_request_information(
|
|
50
|
+
request_configuration
|
|
51
|
+
)
|
|
52
|
+
error_mapping = Hash.new
|
|
53
|
+
error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
54
|
+
error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
|
|
55
|
+
return @request_adapter.send_async(request_info, number, error_mapping)
|
|
56
|
+
end
|
|
57
|
+
##
|
|
58
|
+
## Get the number of the resource
|
|
59
|
+
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
## @return a request_information
|
|
61
|
+
##
|
|
62
|
+
def to_get_request_information(request_configuration=nil)
|
|
63
|
+
request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
|
|
64
|
+
request_info.url_template = @url_template
|
|
65
|
+
request_info.path_parameters = @path_parameters
|
|
66
|
+
request_info.http_method = :GET
|
|
67
|
+
request_info.headers.add('Accept', 'text/plain')
|
|
68
|
+
unless request_configuration.nil?
|
|
69
|
+
request_info.add_headers_from_raw_object(request_configuration.headers)
|
|
70
|
+
request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
|
|
71
|
+
request_info.add_request_options(request_configuration.options)
|
|
72
|
+
end
|
|
73
|
+
return request_info
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Get the number of the resource
|
|
78
|
+
class CountRequestBuilderGetQueryParameters
|
|
79
|
+
|
|
80
|
+
##
|
|
81
|
+
# Filter items by property values
|
|
82
|
+
attr_accessor :filter
|
|
83
|
+
##
|
|
84
|
+
# Search items by search phrases
|
|
85
|
+
attr_accessor :search
|
|
86
|
+
##
|
|
87
|
+
## Maps the query parameters names to their encoded names for the URI template parsing.
|
|
88
|
+
## @param originalName The original query parameter name in the class.
|
|
89
|
+
## @return a string
|
|
90
|
+
##
|
|
91
|
+
def get_query_parameter(original_name)
|
|
92
|
+
raise StandardError, 'original_name cannot be null' if original_name.nil?
|
|
93
|
+
case original_name
|
|
94
|
+
when "filter"
|
|
95
|
+
return "%24filter"
|
|
96
|
+
when "search"
|
|
97
|
+
return "%24search"
|
|
98
|
+
else
|
|
99
|
+
return original_name
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
##
|
|
105
|
+
# Configuration for the request such as headers, query parameters, and middleware options.
|
|
106
|
+
class CountRequestBuilderGetRequestConfiguration
|
|
107
|
+
|
|
108
|
+
##
|
|
109
|
+
# Request headers
|
|
110
|
+
attr_accessor :headers
|
|
111
|
+
##
|
|
112
|
+
# Request options
|
|
113
|
+
attr_accessor :options
|
|
114
|
+
##
|
|
115
|
+
# Request query parameters
|
|
116
|
+
attr_accessor :query_parameters
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
data/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb
ADDED
|
File without changes
|