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.
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
@@ -67,7 +67,7 @@ module MicrosoftGraph
67
67
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
68
68
  end
69
69
  ##
70
- ## Send a new chatMessage in the specified channel or a chat.
70
+ ## 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.
71
71
  ## @param body The request body
72
72
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
73
73
  ## @return a Fiber of chat_message
@@ -101,7 +101,7 @@ module MicrosoftGraph
101
101
  return request_info
102
102
  end
103
103
  ##
104
- ## Send a new chatMessage in the specified channel or a chat.
104
+ ## 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.
105
105
  ## @param body The request body
106
106
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
107
107
  ## @return a request_information
@@ -75,7 +75,7 @@ module MicrosoftGraph
75
75
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
76
76
  end
77
77
  ##
78
- ## Create a new reply to a chatMessage in a specified channel.
78
+ ## Send a new reply to a chatMessage in a specified channel.
79
79
  ## @param body The request body
80
80
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
81
81
  ## @return a Fiber of chat_message
@@ -109,7 +109,7 @@ module MicrosoftGraph
109
109
  return request_info
110
110
  end
111
111
  ##
112
- ## Create a new reply to a chatMessage in a specified channel.
112
+ ## Send a new reply to a chatMessage in a specified channel.
113
113
  ## @param body The request body
114
114
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
115
115
  ## @return a request_information
@@ -71,7 +71,7 @@ module MicrosoftGraph
71
71
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
72
72
  end
73
73
  ##
74
- ## Send a new chatMessage in the specified channel or a chat.
74
+ ## Send a new chatMessage in the specified channel.
75
75
  ## @param body The request body
76
76
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
77
77
  ## @return a Fiber of chat_message
@@ -105,7 +105,7 @@ module MicrosoftGraph
105
105
  return request_info
106
106
  end
107
107
  ##
108
- ## Send a new chatMessage in the specified channel or a chat.
108
+ ## Send a new chatMessage in the specified channel.
109
109
  ## @param body The request body
110
110
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
111
111
  ## @return a request_information
@@ -73,7 +73,7 @@ module MicrosoftGraph
73
73
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::ChatMessageCollectionResponse.create_from_discriminator_value(pn) }, error_mapping)
74
74
  end
75
75
  ##
76
- ## Create a new reply to a chatMessage in a specified channel.
76
+ ## Send a new reply to a chatMessage in a specified channel.
77
77
  ## @param body The request body
78
78
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
79
79
  ## @return a Fiber of chat_message
@@ -107,7 +107,7 @@ module MicrosoftGraph
107
107
  return request_info
108
108
  end
109
109
  ##
110
- ## Create a new reply to a chatMessage in a specified channel.
110
+ ## Send a new reply to a chatMessage in a specified channel.
111
111
  ## @param body The request body
112
112
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113
113
  ## @return a request_information
@@ -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
- ## Send a new chatMessage in the specified channel or a chat.
72
+ ## Send a new chatMessage in the 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
- ## Send a new chatMessage in the specified channel or a chat.
106
+ ## Send a new chatMessage in the 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
@@ -61,7 +61,7 @@ module MicrosoftGraph
61
61
  @path_parameters = path_parameters if path_parameters.is_a? Hash
62
62
  end
63
63
  ##
64
- ## Retrieve a list of attachment objects attached to a message.
64
+ ## Retrieve a list of attachment objects.
65
65
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
66
66
  ## @return a Fiber of attachment_collection_response
67
67
  ##
@@ -91,7 +91,7 @@ module MicrosoftGraph
91
91
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping)
92
92
  end
93
93
  ##
94
- ## Retrieve a list of attachment objects attached to a message.
94
+ ## Retrieve a list of attachment objects.
95
95
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
96
96
  ## @return a request_information
97
97
  ##
@@ -130,7 +130,7 @@ module MicrosoftGraph
130
130
  end
131
131
 
132
132
  ##
133
- # Retrieve a list of attachment objects attached to a message.
133
+ # Retrieve a list of attachment objects.
134
134
  class AttachmentsRequestBuilderGetQueryParameters
135
135
 
136
136
  ##
@@ -57,7 +57,7 @@ module MicrosoftGraph
57
57
  @path_parameters = path_parameters if path_parameters.is_a? Hash
58
58
  end
59
59
  ##
60
- ## Retrieve a list of attachment objects attached to a message.
60
+ ## Retrieve a list of attachment objects.
61
61
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
62
62
  ## @return a Fiber of attachment_collection_response
63
63
  ##
@@ -87,7 +87,7 @@ module MicrosoftGraph
87
87
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping)
88
88
  end
89
89
  ##
90
- ## Retrieve a list of attachment objects attached to a message.
90
+ ## Retrieve a list of attachment objects.
91
91
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
92
92
  ## @return a request_information
93
93
  ##
@@ -126,7 +126,7 @@ module MicrosoftGraph
126
126
  end
127
127
 
128
128
  ##
129
- # Retrieve a list of attachment objects attached to a message.
129
+ # Retrieve a list of attachment objects.
130
130
  class AttachmentsRequestBuilderGetQueryParameters
131
131
 
132
132
  ##
@@ -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 '../../member_of'
6
+ require_relative '../graph_administrative_unit'
7
+ require_relative './count'
8
+
9
+ module MicrosoftGraph
10
+ module Me
11
+ module MemberOf
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/memberOf/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 '../member_of'
7
+ require_relative './count/count_request_builder'
8
+ require_relative './graph_administrative_unit'
9
+
10
+ module MicrosoftGraph
11
+ module Me
12
+ module MemberOf
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::MemberOf::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/memberOf/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 '../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 memberOf 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::MemberOf::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 '../../member_of'
7
+ require_relative '../item'
8
+ require_relative './graph_administrative_unit'
9
+
10
+ module MicrosoftGraph
11
+ module Me
12
+ module MemberOf
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/memberOf/{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 './member_of'
9
10
 
@@ -20,6 +21,11 @@ module MicrosoftGraph
20
21
  return MicrosoftGraph::Me::MemberOf::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::MemberOf::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::MemberOf::GraphGroup::GraphGroupRequestBuilder.new(@path_parameters, @request_adapter)
@@ -53,7 +53,7 @@ module MicrosoftGraph
53
53
  @path_parameters = path_parameters if path_parameters.is_a? Hash
54
54
  end
55
55
  ##
56
- ## Retrieve a list of attachment objects attached to a message.
56
+ ## Retrieve a list of attachment objects.
57
57
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
58
58
  ## @return a Fiber of attachment_collection_response
59
59
  ##
@@ -83,7 +83,7 @@ module MicrosoftGraph
83
83
  return @request_adapter.send_async(request_info, lambda {|pn| MicrosoftGraph::Models::Attachment.create_from_discriminator_value(pn) }, error_mapping)
84
84
  end
85
85
  ##
86
- ## Retrieve a list of attachment objects attached to a message.
86
+ ## Retrieve a list of attachment objects.
87
87
  ## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
88
88
  ## @return a request_information
89
89
  ##
@@ -122,7 +122,7 @@ module MicrosoftGraph
122
122
  end
123
123
 
124
124
  ##
125
- # Retrieve a list of attachment objects attached to a message.
125
+ # Retrieve a list of attachment objects.
126
126
  class AttachmentsRequestBuilderGetQueryParameters
127
127
 
128
128
  ##