Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated beta models and request builders using Kiota #508

Merged
merged 1 commit into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public CreatedOnBehalfOfRequestBuilder(string rawUrl, IRequestAdapter requestAda
RequestAdapter = requestAdapter;
}
/// <summary>
/// Get createdOnBehalfOf from applications
/// Supports $filter (eq when counting empty collections). Read-only.
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
public RequestInformation CreateGetRequestInformation(Action<CreatedOnBehalfOfRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
Expand All @@ -65,7 +65,7 @@ public RequestInformation CreateGetRequestInformation(Action<CreatedOnBehalfOfRe
return requestInfo;
}
/// <summary>
/// Get createdOnBehalfOf from applications
/// Supports $filter (eq when counting empty collections). Read-only.
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
Expand All @@ -78,7 +78,7 @@ public async Task<DirectoryObject> GetAsync(Action<CreatedOnBehalfOfRequestBuild
};
return await RequestAdapter.SendAsync<DirectoryObject>(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken);
}
/// <summary>Get createdOnBehalfOf from applications</summary>
/// <summary>Supports $filter (eq when counting empty collections). Read-only.</summary>
public class CreatedOnBehalfOfRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
[QueryParameter("%24expand")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public OwnersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
RequestAdapter = requestAdapter;
}
/// <summary>
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
public RequestInformation CreateGetRequestInformation(Action<OwnersRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
Expand All @@ -97,7 +97,7 @@ public RequestInformation CreateGetRequestInformation(Action<OwnersRequestBuilde
return requestInfo;
}
/// <summary>
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
Expand All @@ -110,7 +110,7 @@ public async Task<DirectoryObjectCollectionResponse> GetAsync(Action<OwnersReque
};
return await RequestAdapter.SendAsync<DirectoryObjectCollectionResponse>(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken);
}
/// <summary>Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.</summary>
/// <summary>Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).</summary>
public class OwnersRequestBuilderGetQueryParameters {
/// <summary>Include count of items</summary>
[QueryParameter("%24count")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
RequestAdapter = requestAdapter;
}
/// <summary>
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
public RequestInformation CreateGetRequestInformation(Action<RefRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
Expand Down Expand Up @@ -86,7 +86,7 @@ public RequestInformation CreatePostRequestInformation(ReferenceCreate body, Act
return requestInfo;
}
/// <summary>
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
/// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
Expand Down Expand Up @@ -115,7 +115,7 @@ public async Task PostAsync(ReferenceCreate body, Action<RefRequestBuilderPostRe
};
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, errorMapping, cancellationToken);
}
/// <summary>Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.</summary>
/// <summary>Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).</summary>
public class RefRequestBuilderGetQueryParameters {
/// <summary>Include count of items</summary>
[QueryParameter("%24count")]
Expand Down
5 changes: 5 additions & 0 deletions src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
using Microsoft.Graph.Beta.Settings;
using Microsoft.Graph.Beta.Shares;
using Microsoft.Graph.Beta.Sites;
using Microsoft.Graph.Beta.Solutions;
using Microsoft.Graph.Beta.Storage;
using Microsoft.Graph.Beta.SubscribedSkus;
using Microsoft.Graph.Beta.Subscriptions;
Expand Down Expand Up @@ -536,6 +537,10 @@ public class BaseGraphServiceClient {
public SitesRequestBuilder Sites { get =>
new SitesRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The solutions property</summary>
public SolutionsRequestBuilder Solutions { get =>
new SolutionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The storage property</summary>
public StorageRequestBuilder Storage { get =>
new StorageRequestBuilder(PathParameters, RequestAdapter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public BookingBusinessItemRequestBuilder(string rawUrl, IRequestAdapter requestA
RequestAdapter = requestAdapter;
}
/// <summary>
/// Delete entity from bookingBusinesses
/// Delete a bookingBusiness object.
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
public RequestInformation CreateDeleteRequestInformation(Action<BookingBusinessItemRequestBuilderDeleteRequestConfiguration> requestConfiguration = default) {
Expand All @@ -108,7 +108,7 @@ public RequestInformation CreateDeleteRequestInformation(Action<BookingBusinessI
return requestInfo;
}
/// <summary>
/// Represents a Microsot Bookings Business.
/// Get the properties and relationships of a bookingBusiness object.
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
public RequestInformation CreateGetRequestInformation(Action<BookingBusinessItemRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
Expand All @@ -128,7 +128,7 @@ public RequestInformation CreateGetRequestInformation(Action<BookingBusinessItem
return requestInfo;
}
/// <summary>
/// Update entity in bookingBusinesses
/// Update the properties of a bookingBusiness object.
/// <param name="body"></param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
Expand All @@ -149,7 +149,7 @@ public RequestInformation CreatePatchRequestInformation(BookingBusiness body, Ac
return requestInfo;
}
/// <summary>
/// Delete entity from bookingBusinesses
/// Delete a bookingBusiness object.
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
Expand All @@ -163,7 +163,7 @@ public async Task DeleteAsync(Action<BookingBusinessItemRequestBuilderDeleteRequ
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, errorMapping, cancellationToken);
}
/// <summary>
/// Represents a Microsot Bookings Business.
/// Get the properties and relationships of a bookingBusiness object.
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
Expand All @@ -177,7 +177,7 @@ public async Task<BookingBusiness> GetAsync(Action<BookingBusinessItemRequestBui
return await RequestAdapter.SendAsync<BookingBusiness>(requestInfo, BookingBusiness.CreateFromDiscriminatorValue, responseHandler, errorMapping, cancellationToken);
}
/// <summary>
/// Update entity in bookingBusinesses
/// Update the properties of a bookingBusiness object.
/// <param name="body"></param>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -206,7 +206,7 @@ public BookingBusinessItemRequestBuilderDeleteRequestConfiguration() {
Headers = new Dictionary<string, string>();
}
}
/// <summary>Represents a Microsot Bookings Business.</summary>
/// <summary>Get the properties and relationships of a bookingBusiness object.</summary>
public class BookingBusinessItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
[QueryParameter("%24expand")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public RequestInformation CreateDeleteRequestInformation(Action<BookingCurrencyI
return requestInfo;
}
/// <summary>
/// Get entity from bookingCurrencies by key
/// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the **id** property, which is the currency code, to specify the currency.
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
public RequestInformation CreateGetRequestInformation(Action<BookingCurrencyItemRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
Expand Down Expand Up @@ -118,7 +118,7 @@ public async Task DeleteAsync(Action<BookingCurrencyItemRequestBuilderDeleteRequ
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, errorMapping, cancellationToken);
}
/// <summary>
/// Get entity from bookingCurrencies by key
/// Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the **id** property, which is the currency code, to specify the currency.
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
Expand Down Expand Up @@ -161,7 +161,7 @@ public BookingCurrencyItemRequestBuilderDeleteRequestConfiguration() {
Headers = new Dictionary<string, string>();
}
}
/// <summary>Get entity from bookingCurrencies by key</summary>
/// <summary>Get the properties of a bookingCurrency object that is available to a Microsoft Bookings business. Use the **id** property, which is the currency code, to specify the currency.</summary>
public class BookingCurrencyItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
[QueryParameter("%24expand")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public RequestInformation CreateDeleteRequestInformation(Action<ChatItemRequestB
return requestInfo;
}
/// <summary>
/// Get entity from chats by key
/// Retrieve a single chat (without its messages).
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// </summary>
public RequestInformation CreateGetRequestInformation(Action<ChatItemRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
Expand Down Expand Up @@ -183,7 +183,7 @@ public async Task DeleteAsync(Action<ChatItemRequestBuilderDeleteRequestConfigur
await RequestAdapter.SendNoContentAsync(requestInfo, responseHandler, errorMapping, cancellationToken);
}
/// <summary>
/// Get entity from chats by key
/// Retrieve a single chat (without its messages).
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <param name="responseHandler">Response handler to use in place of the default response handling provided by the core service</param>
Expand Down Expand Up @@ -226,7 +226,7 @@ public ChatItemRequestBuilderDeleteRequestConfiguration() {
Headers = new Dictionary<string, string>();
}
}
/// <summary>Get entity from chats by key</summary>
/// <summary>Retrieve a single chat (without its messages).</summary>
public class ChatItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
[QueryParameter("%24expand")]
Expand Down
Loading