microsoft_graph 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/chats/item/messages/item/replies/replies_request_builder.rb +2 -2
  4. data/lib/chats/item/messages/messages_request_builder.rb +2 -2
  5. data/lib/contacts/item/member_of/graph_administrative_unit/count/count.rb +0 -0
  6. data/lib/contacts/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  7. data/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  8. data/lib/contacts/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  9. data/lib/contacts/item/member_of/item/directory_object_item_request_builder.rb +6 -0
  10. data/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  11. data/lib/contacts/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  12. data/lib/contacts/item/member_of/member_of_request_builder.rb +6 -0
  13. data/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
  14. data/lib/contacts/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  15. data/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  16. data/lib/contacts/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  17. data/lib/contacts/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
  18. data/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  19. data/lib/contacts/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  20. data/lib/contacts/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
  21. data/lib/devices/item/member_of/graph_administrative_unit/count/count.rb +0 -0
  22. data/lib/devices/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  23. data/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  24. data/lib/devices/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  25. data/lib/devices/item/member_of/item/directory_object_item_request_builder.rb +6 -0
  26. data/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  27. data/lib/devices/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  28. data/lib/devices/item/member_of/member_of_request_builder.rb +6 -0
  29. data/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
  30. data/lib/devices/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  31. data/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  32. data/lib/devices/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  33. data/lib/devices/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
  34. data/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  35. data/lib/devices/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  36. data/lib/devices/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
  37. data/lib/drives/item/items/item/workbook/names/item/range/range_request_builder.rb +2 -2
  38. data/lib/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/points_request_builder.rb +3 -3
  39. data/lib/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.rb +2 -2
  40. data/lib/groups/item/conversations/conversations_request_builder.rb +2 -2
  41. data/lib/groups/item/conversations/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +2 -2
  42. data/lib/groups/item/conversations/item/threads/item/posts/item/reply/reply_request_builder.rb +2 -2
  43. data/lib/groups/item/conversations/item/threads/item/reply/reply_request_builder.rb +2 -2
  44. data/lib/groups/item/member_of/graph_administrative_unit/count/count.rb +0 -0
  45. data/lib/groups/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  46. data/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  47. data/lib/groups/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  48. data/lib/groups/item/member_of/item/directory_object_item_request_builder.rb +6 -0
  49. data/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  50. data/lib/groups/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  51. data/lib/groups/item/member_of/member_of_request_builder.rb +6 -0
  52. data/lib/groups/item/team/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
  53. data/lib/groups/item/team/channels/item/messages/messages_request_builder.rb +2 -2
  54. data/lib/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
  55. data/lib/groups/item/team/primary_channel/messages/messages_request_builder.rb +2 -2
  56. data/lib/groups/item/threads/item/posts/item/in_reply_to/reply/reply_request_builder.rb +2 -2
  57. data/lib/groups/item/threads/item/posts/item/reply/reply_request_builder.rb +2 -2
  58. data/lib/groups/item/threads/item/reply/reply_request_builder.rb +2 -2
  59. data/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
  60. data/lib/groups/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  61. data/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  62. data/lib/groups/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  63. data/lib/groups/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
  64. data/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  65. data/lib/groups/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  66. data/lib/groups/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
  67. data/lib/identity_protection/risky_users/item/history/history_request_builder.rb +3 -3
  68. data/lib/kiota-lock.json +1 -1
  69. data/lib/me/authentication/methods/item/reset_password/reset_password_request_builder.rb +2 -2
  70. data/lib/me/chats/item/messages/item/replies/replies_request_builder.rb +2 -2
  71. data/lib/me/chats/item/messages/messages_request_builder.rb +2 -2
  72. data/lib/me/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
  73. data/lib/me/joined_teams/item/channels/item/messages/messages_request_builder.rb +2 -2
  74. data/lib/me/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
  75. data/lib/me/joined_teams/item/primary_channel/messages/messages_request_builder.rb +2 -2
  76. data/lib/me/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
  77. data/lib/me/mail_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
  78. data/lib/me/member_of/graph_administrative_unit/count/count.rb +0 -0
  79. data/lib/me/member_of/graph_administrative_unit/count/count_request_builder.rb +121 -0
  80. data/lib/me/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  81. data/lib/me/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +155 -0
  82. data/lib/me/member_of/item/directory_object_item_request_builder.rb +6 -0
  83. data/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  84. data/lib/me/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +122 -0
  85. data/lib/me/member_of/member_of_request_builder.rb +6 -0
  86. data/lib/me/messages/item/attachments/attachments_request_builder.rb +3 -3
  87. data/lib/me/messages/messages_request_builder.rb +3 -3
  88. data/lib/me/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
  89. data/lib/me/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +121 -0
  90. data/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  91. data/lib/me/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +155 -0
  92. data/lib/me/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
  93. data/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  94. data/lib/me/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +122 -0
  95. data/lib/me/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
  96. data/lib/models/access_review_history_definition.rb +1 -1
  97. data/lib/models/administrative_unit.rb +1 -1
  98. data/lib/models/application_template.rb +1 -1
  99. data/lib/models/audit_event.rb +3 -1
  100. data/lib/models/authentication_method_configuration.rb +1 -1
  101. data/lib/models/authorization_policy.rb +20 -0
  102. data/lib/models/booking_appointment.rb +1 -3
  103. data/lib/models/delegated_admin_access_assignment.rb +1 -1
  104. data/lib/models/delegated_admin_relationship.rb +1 -1
  105. data/lib/models/deleted_team.rb +3 -3
  106. data/lib/models/device_category.rb +0 -2
  107. data/lib/models/directory_object_partner_reference.rb +1 -1
  108. data/lib/models/education_assignment_defaults.rb +1 -1
  109. data/lib/models/education_assignment_settings.rb +1 -1
  110. data/lib/models/education_class.rb +1 -1
  111. data/lib/models/identity_api_connector.rb +1 -1
  112. data/lib/models/mac_o_s_general_device_configuration.rb +1 -3
  113. data/lib/models/microsoft_authenticator_authentication_method_configuration.rb +1 -1
  114. data/lib/models/offer_shift_request.rb +1 -1
  115. data/lib/models/open_shift.rb +1 -1
  116. data/lib/models/organization.rb +1 -1
  117. data/lib/models/post.rb +1 -1
  118. data/lib/models/risk_detection.rb +1 -1
  119. data/lib/models/role_definition.rb +2 -0
  120. data/lib/models/schema_extension.rb +1 -1
  121. data/lib/models/security/ediscovery_noncustodial_data_source.rb +1 -1
  122. data/lib/models/security/ediscovery_review_tag.rb +1 -1
  123. data/lib/models/teamwork.rb +3 -3
  124. data/lib/service_principals/item/member_of/graph_administrative_unit/count/count.rb +0 -0
  125. data/lib/service_principals/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  126. data/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  127. data/lib/service_principals/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  128. data/lib/service_principals/item/member_of/item/directory_object_item_request_builder.rb +6 -0
  129. data/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  130. data/lib/service_principals/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  131. data/lib/service_principals/item/member_of/member_of_request_builder.rb +6 -0
  132. data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
  133. data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  134. data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  135. data/lib/service_principals/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  136. data/lib/service_principals/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
  137. data/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  138. data/lib/service_principals/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  139. data/lib/service_principals/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
  140. data/lib/teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
  141. data/lib/teams/item/channels/item/messages/messages_request_builder.rb +2 -2
  142. data/lib/teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
  143. data/lib/teams/item/primary_channel/messages/messages_request_builder.rb +2 -2
  144. data/lib/teamwork/deleted_teams/deleted_teams_request_builder.rb +3 -3
  145. data/lib/teamwork/deleted_teams/item/channels/channels_request_builder.rb +3 -3
  146. data/lib/teamwork/deleted_teams/item/channels/item/channel_item_request_builder.rb +3 -3
  147. data/lib/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
  148. data/lib/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.rb +2 -2
  149. data/lib/teamwork/deleted_teams/item/deleted_team_item_request_builder.rb +3 -3
  150. data/lib/users/item/authentication/methods/item/reset_password/reset_password_request_builder.rb +2 -2
  151. data/lib/users/item/chats/item/messages/item/replies/replies_request_builder.rb +2 -2
  152. data/lib/users/item/chats/item/messages/messages_request_builder.rb +2 -2
  153. data/lib/users/item/joined_teams/item/channels/item/messages/item/replies/replies_request_builder.rb +2 -2
  154. data/lib/users/item/joined_teams/item/channels/item/messages/messages_request_builder.rb +2 -2
  155. data/lib/users/item/joined_teams/item/primary_channel/messages/item/replies/replies_request_builder.rb +2 -2
  156. data/lib/users/item/joined_teams/item/primary_channel/messages/messages_request_builder.rb +2 -2
  157. data/lib/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
  158. data/lib/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.rb +3 -3
  159. data/lib/users/item/member_of/graph_administrative_unit/count/count.rb +0 -0
  160. data/lib/users/item/member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  161. data/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  162. data/lib/users/item/member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  163. data/lib/users/item/member_of/item/directory_object_item_request_builder.rb +6 -0
  164. data/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  165. data/lib/users/item/member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  166. data/lib/users/item/member_of/member_of_request_builder.rb +6 -0
  167. data/lib/users/item/messages/item/attachments/attachments_request_builder.rb +3 -3
  168. data/lib/users/item/messages/messages_request_builder.rb +3 -3
  169. data/lib/users/item/transitive_member_of/graph_administrative_unit/count/count.rb +0 -0
  170. data/lib/users/item/transitive_member_of/graph_administrative_unit/count/count_request_builder.rb +124 -0
  171. data/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  172. data/lib/users/item/transitive_member_of/graph_administrative_unit/graph_administrative_unit_request_builder.rb +158 -0
  173. data/lib/users/item/transitive_member_of/item/directory_object_item_request_builder.rb +6 -0
  174. data/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit.rb +0 -0
  175. data/lib/users/item/transitive_member_of/item/graph_administrative_unit/graph_administrative_unit_request_builder.rb +125 -0
  176. data/lib/users/item/transitive_member_of/transitive_member_of_request_builder.rb +6 -0
  177. data/lib/version_information.rb +2 -1
  178. metadata +74 -2
@@ -49,7 +49,7 @@ module MicrosoftGraph
49
49
  @path_parameters = path_parameters if path_parameters.is_a? Hash
50
50
  end
51
51
  ##
52
- ## 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.
52
+ ## 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:
53
53
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
54
54
  ## @return a Fiber of message_collection_response
55
55
  ##
@@ -79,7 +79,7 @@ module MicrosoftGraph
79
79
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Message.create_from_discriminator_value(pn) }, error_mapping)
80
80
  end
81
81
  ##
82
- ## 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.
82
+ ## 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:
83
83
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
84
84
  ## @return a request_information
85
85
  ##
@@ -118,7 +118,7 @@ module MicrosoftGraph
118
118
  end
119
119
 
120
120
  ##
121
- # 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.
121
+ # 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:
122
122
  class MessagesRequestBuilderGetQueryParameters
123
123
 
124
124
  ##
@@ -0,0 +1,121 @@
1
+ require 'microsoft_kiota_abstractions'
2
+ require_relative '../../../../microsoft_graph'
3
+ require_relative '../../../../models/o_data_errors/o_data_error'
4
+ require_relative '../../../me'
5
+ require_relative '../../transitive_member_of'
6
+ require_relative '../graph_administrative_unit'
7
+ require_relative './count'
8
+
9
+ module MicrosoftGraph
10
+ module Me
11
+ module TransitiveMemberOf
12
+ module GraphAdministrativeUnit
13
+ module Count
14
+ ##
15
+ # Provides operations to count the resources in the collection.
16
+ class CountRequestBuilder
17
+
18
+ ##
19
+ # Path parameters for the request
20
+ @path_parameters
21
+ ##
22
+ # The request adapter to use to execute the requests.
23
+ @request_adapter
24
+ ##
25
+ # Url template to use to build the URL for the current request builder
26
+ @url_template
27
+ ##
28
+ ## Instantiates a new CountRequestBuilder and sets the default values.
29
+ ## @param pathParameters Path parameters for the request
30
+ ## @param requestAdapter The request adapter to use to execute the requests.
31
+ ## @return a void
32
+ ##
33
+ def initialize(path_parameters, request_adapter)
34
+ raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
35
+ raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
36
+ @url_template = "{+baseurl}/me/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}"
37
+ @request_adapter = request_adapter
38
+ path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
39
+ @path_parameters = path_parameters if path_parameters.is_a? Hash
40
+ end
41
+ ##
42
+ ## Get the number of the resource
43
+ ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
+ ## @return a Fiber of integer
45
+ ##
46
+ def get(request_configuration=nil)
47
+ request_info = self.to_get_request_information(
48
+ request_configuration
49
+ )
50
+ error_mapping = Hash.new
51
+ error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
52
+ error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
53
+ return @request_adapter.send_async(request_info, number, error_mapping)
54
+ end
55
+ ##
56
+ ## Get the number of the resource
57
+ ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
58
+ ## @return a request_information
59
+ ##
60
+ def to_get_request_information(request_configuration=nil)
61
+ request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
62
+ request_info.url_template = @url_template
63
+ request_info.path_parameters = @path_parameters
64
+ request_info.http_method = :GET
65
+ request_info.headers.add('Accept', 'text/plain')
66
+ unless request_configuration.nil?
67
+ request_info.add_headers_from_raw_object(request_configuration.headers)
68
+ request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
69
+ request_info.add_request_options(request_configuration.options)
70
+ end
71
+ return request_info
72
+ end
73
+
74
+ ##
75
+ # Get the number of the resource
76
+ class CountRequestBuilderGetQueryParameters
77
+
78
+ ##
79
+ # Filter items by property values
80
+ attr_accessor :filter
81
+ ##
82
+ # Search items by search phrases
83
+ attr_accessor :search
84
+ ##
85
+ ## Maps the query parameters names to their encoded names for the URI template parsing.
86
+ ## @param originalName The original query parameter name in the class.
87
+ ## @return a string
88
+ ##
89
+ def get_query_parameter(original_name)
90
+ raise StandardError, 'original_name cannot be null' if original_name.nil?
91
+ case original_name
92
+ when "filter"
93
+ return "%24filter"
94
+ when "search"
95
+ return "%24search"
96
+ else
97
+ return original_name
98
+ end
99
+ end
100
+ end
101
+
102
+ ##
103
+ # Configuration for the request such as headers, query parameters, and middleware options.
104
+ class CountRequestBuilderGetRequestConfiguration
105
+
106
+ ##
107
+ # Request headers
108
+ attr_accessor :headers
109
+ ##
110
+ # Request options
111
+ attr_accessor :options
112
+ ##
113
+ # Request query parameters
114
+ attr_accessor :query_parameters
115
+ end
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
@@ -0,0 +1,155 @@
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 '../../me'
6
+ require_relative '../transitive_member_of'
7
+ require_relative './count/count_request_builder'
8
+ require_relative './graph_administrative_unit'
9
+
10
+ module MicrosoftGraph
11
+ module Me
12
+ module TransitiveMemberOf
13
+ module GraphAdministrativeUnit
14
+ ##
15
+ # Casts the previous resource to administrativeUnit.
16
+ class GraphAdministrativeUnitRequestBuilder
17
+
18
+ ##
19
+ # Provides operations to count the resources in the collection.
20
+ def count()
21
+ return MicrosoftGraph::Me::TransitiveMemberOf::GraphAdministrativeUnit::Count::CountRequestBuilder.new(@path_parameters, @request_adapter)
22
+ end
23
+ ##
24
+ # Path parameters for the request
25
+ @path_parameters
26
+ ##
27
+ # The request adapter to use to execute the requests.
28
+ @request_adapter
29
+ ##
30
+ # Url template to use to build the URL for the current request builder
31
+ @url_template
32
+ ##
33
+ ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
34
+ ## @param pathParameters Path parameters for the request
35
+ ## @param requestAdapter The request adapter to use to execute the requests.
36
+ ## @return a void
37
+ ##
38
+ def initialize(path_parameters, request_adapter)
39
+ raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
40
+ raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
41
+ @url_template = "{+baseurl}/me/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"
42
+ @request_adapter = request_adapter
43
+ path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
44
+ @path_parameters = path_parameters if path_parameters.is_a? Hash
45
+ end
46
+ ##
47
+ ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
48
+ ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49
+ ## @return a Fiber of administrative_unit_collection_response
50
+ ##
51
+ def get(request_configuration=nil)
52
+ request_info = self.to_get_request_information(
53
+ request_configuration
54
+ )
55
+ error_mapping = Hash.new
56
+ error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
57
+ error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
58
+ return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnitCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
59
+ end
60
+ ##
61
+ ## Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
62
+ ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
63
+ ## @return a request_information
64
+ ##
65
+ def to_get_request_information(request_configuration=nil)
66
+ request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
67
+ request_info.url_template = @url_template
68
+ request_info.path_parameters = @path_parameters
69
+ request_info.http_method = :GET
70
+ request_info.headers.add('Accept', 'application/json')
71
+ unless request_configuration.nil?
72
+ request_info.add_headers_from_raw_object(request_configuration.headers)
73
+ request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
74
+ request_info.add_request_options(request_configuration.options)
75
+ end
76
+ return request_info
77
+ end
78
+
79
+ ##
80
+ # Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
81
+ class GraphAdministrativeUnitRequestBuilderGetQueryParameters
82
+
83
+ ##
84
+ # Include count of items
85
+ attr_accessor :count
86
+ ##
87
+ # Expand related entities
88
+ attr_accessor :expand
89
+ ##
90
+ # Filter items by property values
91
+ attr_accessor :filter
92
+ ##
93
+ # Order items by property values
94
+ attr_accessor :orderby
95
+ ##
96
+ # Search items by search phrases
97
+ attr_accessor :search
98
+ ##
99
+ # Select properties to be returned
100
+ attr_accessor :select
101
+ ##
102
+ # Skip the first n items
103
+ attr_accessor :skip
104
+ ##
105
+ # Show only the first n items
106
+ attr_accessor :top
107
+ ##
108
+ ## Maps the query parameters names to their encoded names for the URI template parsing.
109
+ ## @param originalName The original query parameter name in the class.
110
+ ## @return a string
111
+ ##
112
+ def get_query_parameter(original_name)
113
+ raise StandardError, 'original_name cannot be null' if original_name.nil?
114
+ case original_name
115
+ when "count"
116
+ return "%24count"
117
+ when "expand"
118
+ return "%24expand"
119
+ when "filter"
120
+ return "%24filter"
121
+ when "orderby"
122
+ return "%24orderby"
123
+ when "search"
124
+ return "%24search"
125
+ when "select"
126
+ return "%24select"
127
+ when "skip"
128
+ return "%24skip"
129
+ when "top"
130
+ return "%24top"
131
+ else
132
+ return original_name
133
+ end
134
+ end
135
+ end
136
+
137
+ ##
138
+ # Configuration for the request such as headers, query parameters, and middleware options.
139
+ class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration
140
+
141
+ ##
142
+ # Request headers
143
+ attr_accessor :headers
144
+ ##
145
+ # Request options
146
+ attr_accessor :options
147
+ ##
148
+ # Request query parameters
149
+ attr_accessor :query_parameters
150
+ end
151
+ end
152
+ end
153
+ end
154
+ end
155
+ end
@@ -4,6 +4,7 @@ require_relative '../../../models/directory_object'
4
4
  require_relative '../../../models/o_data_errors/o_data_error'
5
5
  require_relative '../../me'
6
6
  require_relative '../transitive_member_of'
7
+ require_relative './graph_administrative_unit/graph_administrative_unit_request_builder'
7
8
  require_relative './graph_group/graph_group_request_builder'
8
9
  require_relative './item'
9
10
 
@@ -15,6 +16,11 @@ module MicrosoftGraph
15
16
  # Provides operations to manage the transitiveMemberOf property of the microsoft.graph.user entity.
16
17
  class DirectoryObjectItemRequestBuilder
17
18
 
19
+ ##
20
+ # Casts the previous resource to administrativeUnit.
21
+ def graph_administrative_unit()
22
+ return MicrosoftGraph::Me::TransitiveMemberOf::Item::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter)
23
+ end
18
24
  ##
19
25
  # Casts the previous resource to group.
20
26
  def graph_group()
@@ -0,0 +1,122 @@
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 '../../../me'
6
+ require_relative '../../transitive_member_of'
7
+ require_relative '../item'
8
+ require_relative './graph_administrative_unit'
9
+
10
+ module MicrosoftGraph
11
+ module Me
12
+ module TransitiveMemberOf
13
+ module Item
14
+ module GraphAdministrativeUnit
15
+ ##
16
+ # Casts the previous resource to administrativeUnit.
17
+ class GraphAdministrativeUnitRequestBuilder
18
+
19
+ ##
20
+ # Path parameters for the request
21
+ @path_parameters
22
+ ##
23
+ # The request adapter to use to execute the requests.
24
+ @request_adapter
25
+ ##
26
+ # Url template to use to build the URL for the current request builder
27
+ @url_template
28
+ ##
29
+ ## Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
30
+ ## @param pathParameters Path parameters for the request
31
+ ## @param requestAdapter The request adapter to use to execute the requests.
32
+ ## @return a void
33
+ ##
34
+ def initialize(path_parameters, request_adapter)
35
+ raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
36
+ raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
37
+ @url_template = "{+baseurl}/me/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}"
38
+ @request_adapter = request_adapter
39
+ path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
40
+ @path_parameters = path_parameters if path_parameters.is_a? Hash
41
+ end
42
+ ##
43
+ ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
44
+ ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
45
+ ## @return a Fiber of administrative_unit
46
+ ##
47
+ def get(request_configuration=nil)
48
+ request_info = self.to_get_request_information(
49
+ request_configuration
50
+ )
51
+ error_mapping = Hash.new
52
+ error_mapping["4XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
53
+ error_mapping["5XX"] = lambda {|pn| MicrosoftGraph::Models::ODataErrors::ODataError.create_from_discriminator_value(pn) }
54
+ return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }, error_mapping)
55
+ end
56
+ ##
57
+ ## Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
58
+ ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
59
+ ## @return a request_information
60
+ ##
61
+ def to_get_request_information(request_configuration=nil)
62
+ request_info = MicrosoftKiotaAbstractions::RequestInformation.new()
63
+ request_info.url_template = @url_template
64
+ request_info.path_parameters = @path_parameters
65
+ request_info.http_method = :GET
66
+ request_info.headers.add('Accept', 'application/json')
67
+ unless request_configuration.nil?
68
+ request_info.add_headers_from_raw_object(request_configuration.headers)
69
+ request_info.set_query_string_parameters_from_raw_object(request_configuration.query_parameters)
70
+ request_info.add_request_options(request_configuration.options)
71
+ end
72
+ return request_info
73
+ end
74
+
75
+ ##
76
+ # Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
77
+ class GraphAdministrativeUnitRequestBuilderGetQueryParameters
78
+
79
+ ##
80
+ # Expand related entities
81
+ attr_accessor :expand
82
+ ##
83
+ # Select properties to be returned
84
+ attr_accessor :select
85
+ ##
86
+ ## Maps the query parameters names to their encoded names for the URI template parsing.
87
+ ## @param originalName The original query parameter name in the class.
88
+ ## @return a string
89
+ ##
90
+ def get_query_parameter(original_name)
91
+ raise StandardError, 'original_name cannot be null' if original_name.nil?
92
+ case original_name
93
+ when "expand"
94
+ return "%24expand"
95
+ when "select"
96
+ return "%24select"
97
+ else
98
+ return original_name
99
+ end
100
+ end
101
+ end
102
+
103
+ ##
104
+ # Configuration for the request such as headers, query parameters, and middleware options.
105
+ class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration
106
+
107
+ ##
108
+ # Request headers
109
+ attr_accessor :headers
110
+ ##
111
+ # Request options
112
+ attr_accessor :options
113
+ ##
114
+ # Request query parameters
115
+ attr_accessor :query_parameters
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
122
+ end
@@ -4,6 +4,7 @@ require_relative '../../models/directory_object_collection_response'
4
4
  require_relative '../../models/o_data_errors/o_data_error'
5
5
  require_relative '../me'
6
6
  require_relative './count/count_request_builder'
7
+ require_relative './graph_administrative_unit/graph_administrative_unit_request_builder'
7
8
  require_relative './graph_group/graph_group_request_builder'
8
9
  require_relative './transitive_member_of'
9
10
 
@@ -20,6 +21,11 @@ module MicrosoftGraph
20
21
  return MicrosoftGraph::Me::TransitiveMemberOf::Count::CountRequestBuilder.new(@path_parameters, @request_adapter)
21
22
  end
22
23
  ##
24
+ # Casts the previous resource to administrativeUnit.
25
+ def graph_administrative_unit()
26
+ return MicrosoftGraph::Me::TransitiveMemberOf::GraphAdministrativeUnit::GraphAdministrativeUnitRequestBuilder.new(@path_parameters, @request_adapter)
27
+ end
28
+ ##
23
29
  # Casts the previous resource to group.
24
30
  def graph_group()
25
31
  return MicrosoftGraph::Me::TransitiveMemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter)
@@ -38,7 +38,7 @@ module MicrosoftGraph
38
38
  # Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue.
39
39
  @status
40
40
  ##
41
- ## Instantiates a new AccessReviewHistoryDefinition and sets the default values.
41
+ ## Instantiates a new accessReviewHistoryDefinition and sets the default values.
42
42
  ## @return a void
43
43
  ##
44
44
  def initialize()
@@ -25,7 +25,7 @@ module MicrosoftGraph
25
25
  # 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.
26
26
  @visibility
27
27
  ##
28
- ## Instantiates a new AdministrativeUnit and sets the default values.
28
+ ## Instantiates a new administrativeUnit and sets the default values.
29
29
  ## @return a void
30
30
  ##
31
31
  def initialize()
@@ -46,7 +46,7 @@ module MicrosoftGraph
46
46
  @categories = value
47
47
  end
48
48
  ##
49
- ## Instantiates a new ApplicationTemplate and sets the default values.
49
+ ## Instantiates a new applicationTemplate and sets the default values.
50
50
  ## @return a void
51
51
  ##
52
52
  def initialize()
@@ -5,6 +5,8 @@ require_relative './models'
5
5
 
6
6
  module MicrosoftGraph
7
7
  module Models
8
+ ##
9
+ # A class containing the properties for Audit Event.
8
10
  class AuditEvent < MicrosoftGraph::Models::Entity
9
11
  include MicrosoftKiotaAbstractions::Parsable
10
12
  ##
@@ -161,7 +163,7 @@ module MicrosoftGraph
161
163
  @component_name = value
162
164
  end
163
165
  ##
164
- ## Instantiates a new AuditEvent and sets the default values.
166
+ ## Instantiates a new auditEvent and sets the default values.
165
167
  ## @return a void
166
168
  ##
167
169
  def initialize()
@@ -10,7 +10,7 @@ module MicrosoftGraph
10
10
  # The state of the policy. Possible values are: enabled, disabled.
11
11
  @state
12
12
  ##
13
- ## Instantiates a new AuthenticationMethodConfiguration and sets the default values.
13
+ ## Instantiates a new authenticationMethodConfiguration and sets the default values.
14
14
  ## @return a void
15
15
  ##
16
16
  def initialize()
@@ -13,6 +13,9 @@ module MicrosoftGraph
13
13
  # 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.
14
14
  @allow_invites_from
15
15
  ##
16
+ # The allowUserConsentForRiskyApps property
17
+ @allow_user_consent_for_risky_apps
18
+ ##
16
19
  # Indicates whether users can sign up for email based subscriptions.
17
20
  @allowed_to_sign_up_email_based_subscriptions
18
21
  ##
@@ -58,6 +61,21 @@ module MicrosoftGraph
58
61
  @allow_invites_from = value
59
62
  end
60
63
  ##
64
+ ## Gets the allowUserConsentForRiskyApps property value. The allowUserConsentForRiskyApps property
65
+ ## @return a boolean
66
+ ##
67
+ def allow_user_consent_for_risky_apps
68
+ return @allow_user_consent_for_risky_apps
69
+ end
70
+ ##
71
+ ## Sets the allowUserConsentForRiskyApps property value. The allowUserConsentForRiskyApps property
72
+ ## @param value Value to set for the allow_user_consent_for_risky_apps property.
73
+ ## @return a void
74
+ ##
75
+ def allow_user_consent_for_risky_apps=(value)
76
+ @allow_user_consent_for_risky_apps = value
77
+ end
78
+ ##
61
79
  ## Gets the allowedToSignUpEmailBasedSubscriptions property value. Indicates whether users can sign up for email based subscriptions.
62
80
  ## @return a boolean
63
81
  ##
@@ -142,6 +160,7 @@ module MicrosoftGraph
142
160
  return super.merge({
143
161
  "allowEmailVerifiedUsersToJoinOrganization" => lambda {|n| @allow_email_verified_users_to_join_organization = n.get_boolean_value() },
144
162
  "allowInvitesFrom" => lambda {|n| @allow_invites_from = n.get_enum_value(MicrosoftGraph::Models::AllowInvitesFrom) },
163
+ "allowUserConsentForRiskyApps" => lambda {|n| @allow_user_consent_for_risky_apps = n.get_boolean_value() },
145
164
  "allowedToSignUpEmailBasedSubscriptions" => lambda {|n| @allowed_to_sign_up_email_based_subscriptions = n.get_boolean_value() },
146
165
  "allowedToUseSSPR" => lambda {|n| @allowed_to_use_s_s_p_r = n.get_boolean_value() },
147
166
  "blockMsolPowerShell" => lambda {|n| @block_msol_power_shell = n.get_boolean_value() },
@@ -174,6 +193,7 @@ module MicrosoftGraph
174
193
  super
175
194
  writer.write_boolean_value("allowEmailVerifiedUsersToJoinOrganization", @allow_email_verified_users_to_join_organization)
176
195
  writer.write_enum_value("allowInvitesFrom", @allow_invites_from)
196
+ writer.write_boolean_value("allowUserConsentForRiskyApps", @allow_user_consent_for_risky_apps)
177
197
  writer.write_boolean_value("allowedToSignUpEmailBasedSubscriptions", @allowed_to_sign_up_email_based_subscriptions)
178
198
  writer.write_boolean_value("allowedToUseSSPR", @allowed_to_use_s_s_p_r)
179
199
  writer.write_boolean_value("blockMsolPowerShell", @block_msol_power_shell)
@@ -4,8 +4,6 @@ require_relative './models'
4
4
 
5
5
  module MicrosoftGraph
6
6
  module Models
7
- ##
8
- # Represents a booked appointment of a service by a customer in a business.
9
7
  class BookingAppointment < MicrosoftGraph::Models::Entity
10
8
  include MicrosoftKiotaAbstractions::Parsable
11
9
  ##
@@ -111,7 +109,7 @@ module MicrosoftGraph
111
109
  @anonymous_join_web_url = value
112
110
  end
113
111
  ##
114
- ## Instantiates a new bookingAppointment and sets the default values.
112
+ ## Instantiates a new BookingAppointment and sets the default values.
115
113
  ## @return a void
116
114
  ##
117
115
  def initialize()
@@ -53,7 +53,7 @@ module MicrosoftGraph
53
53
  @access_details = value
54
54
  end
55
55
  ##
56
- ## Instantiates a new delegatedAdminAccessAssignment and sets the default values.
56
+ ## Instantiates a new DelegatedAdminAccessAssignment and sets the default values.
57
57
  ## @return a void
58
58
  ##
59
59
  def initialize()
@@ -89,7 +89,7 @@ module MicrosoftGraph
89
89
  @activated_date_time = value
90
90
  end
91
91
  ##
92
- ## Instantiates a new delegatedAdminRelationship and sets the default values.
92
+ ## Instantiates a new DelegatedAdminRelationship and sets the default values.
93
93
  ## @return a void
94
94
  ##
95
95
  def initialize()