Skip to content

Commit

Permalink
Merge pull request #1539 from microsoftgraph/kiota/v1.0/pipelinebuild…
Browse files Browse the repository at this point in the history
…/123456

Generated  models and request builders
  • Loading branch information
ramsessanchez authored Aug 22, 2023
2 parents 99f2b22 + 2dcab22 commit 4e31fa8
Show file tree
Hide file tree
Showing 11,260 changed files with 115,279 additions and 343,548 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.14.1"
classpath "gradle.plugin.com.github.viswaramamoorthy:gradle-util-plugins:0.1.0-RELEASE"
classpath "com.android.tools.build:gradle:8.1.0"
classpath "com.android.tools.build:gradle:8.1.1"
classpath "com.github.ben-manes:gradle-versions-plugin:0.47.0"
}
}
Expand Down
12 changes: 6 additions & 6 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ dependencies {

// Core Http library
api 'com.microsoft.graph:microsoft-graph-core:3.0.8-SNAPSHOT'
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:0.7.0'
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:0.7.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:0.7.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:0.7.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:0.7.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:0.7.0'
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:0.7.1'
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:0.7.1'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:0.7.1'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:0.7.1'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:0.7.1'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:0.7.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
/**
* The main entry point of the SDK, exposes the configuration and the fluent API.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class BaseGraphServiceClient extends BaseRequestBuilder {
/**
* Provides operations to manage the admin singleton.
Expand Down Expand Up @@ -571,9 +572,7 @@ public ApplicationsWithAppIdRequestBuilder applicationsWithAppId(@jakarta.annota
/**
* Instantiates a new BaseGraphServiceClient and sets the default values.
* @param requestAdapter The request adapter to use to execute the requests.
* @return a void
*/
@jakarta.annotation.Nullable
public BaseGraphServiceClient(@jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}");
this.pathParameters = new HashMap<>();
Expand Down
73 changes: 20 additions & 53 deletions src/main/java/com/microsoft/graph/admin/AdminRequestBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
import com.microsoft.kiota.RequestOption;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParsableFactory;
import java.net.URISyntaxException;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Provides operations to manage the admin singleton.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AdminRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to manage the edge property of the microsoft.graph.admin entity.
Expand All @@ -48,19 +48,15 @@ public SharepointRequestBuilder sharepoint() {
* Instantiates a new AdminRequestBuilder and sets the default values.
* @param pathParameters Path parameters for the request
* @param requestAdapter The request adapter to use to execute the requests.
* @return a void
*/
@jakarta.annotation.Nullable
public AdminRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/admin{?%24select,%24expand}", pathParameters);
}
/**
* Instantiates a new AdminRequestBuilder and sets the default values.
* @param rawUrl The raw URL to use for the request builder.
* @param requestAdapter The request adapter to use to execute the requests.
* @return a void
*/
@jakarta.annotation.Nullable
public AdminRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/admin{?%24select,%24expand}", rawUrl);
}
Expand All @@ -70,17 +66,7 @@ public AdminRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak
*/
@jakarta.annotation.Nonnull
public java.util.concurrent.CompletableFuture<Admin> get() {
try {
final RequestInformation requestInfo = toGetRequestInformation(null);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.sendAsync(requestInfo, Admin::createFromDiscriminatorValue, errorMapping);
} catch (URISyntaxException ex) {
final java.util.concurrent.CompletableFuture<Admin> executionException = new java.util.concurrent.CompletableFuture<Admin>();
executionException.completeExceptionally(ex);
return executionException;
}
return get(null);
}
/**
* Get admin
Expand All @@ -89,17 +75,11 @@ public java.util.concurrent.CompletableFuture<Admin> get() {
*/
@jakarta.annotation.Nonnull
public java.util.concurrent.CompletableFuture<Admin> get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
try {
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.sendAsync(requestInfo, Admin::createFromDiscriminatorValue, errorMapping);
} catch (URISyntaxException ex) {
final java.util.concurrent.CompletableFuture<Admin> executionException = new java.util.concurrent.CompletableFuture<Admin>();
executionException.completeExceptionally(ex);
return executionException;
}
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.sendAsync(requestInfo, Admin::createFromDiscriminatorValue, errorMapping);
}
/**
* Update admin
Expand All @@ -108,17 +88,7 @@ public java.util.concurrent.CompletableFuture<Admin> get(@jakarta.annotation.Nul
*/
@jakarta.annotation.Nonnull
public java.util.concurrent.CompletableFuture<Admin> patch(@jakarta.annotation.Nonnull final Admin body) {
try {
final RequestInformation requestInfo = toPatchRequestInformation(body, null);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.sendAsync(requestInfo, Admin::createFromDiscriminatorValue, errorMapping);
} catch (URISyntaxException ex) {
final java.util.concurrent.CompletableFuture<Admin> executionException = new java.util.concurrent.CompletableFuture<Admin>();
executionException.completeExceptionally(ex);
return executionException;
}
return patch(body, null);
}
/**
* Update admin
Expand All @@ -129,24 +99,18 @@ public java.util.concurrent.CompletableFuture<Admin> patch(@jakarta.annotation.N
@jakarta.annotation.Nonnull
public java.util.concurrent.CompletableFuture<Admin> patch(@jakarta.annotation.Nonnull final Admin body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
try {
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.sendAsync(requestInfo, Admin::createFromDiscriminatorValue, errorMapping);
} catch (URISyntaxException ex) {
final java.util.concurrent.CompletableFuture<Admin> executionException = new java.util.concurrent.CompletableFuture<Admin>();
executionException.completeExceptionally(ex);
return executionException;
}
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.sendAsync(requestInfo, Admin::createFromDiscriminatorValue, errorMapping);
}
/**
* Get admin
* @return a RequestInformation
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() throws URISyntaxException {
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
Expand All @@ -155,7 +119,7 @@ public RequestInformation toGetRequestInformation() throws URISyntaxException {
* @return a RequestInformation
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) throws URISyntaxException {
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation();
requestInfo.httpMethod = HttpMethod.GET;
requestInfo.urlTemplate = urlTemplate;
Expand All @@ -176,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
* @return a RequestInformation
*/
@jakarta.annotation.Nonnull
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Admin body) throws URISyntaxException {
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Admin body) {
return toPatchRequestInformation(body, null);
}
/**
Expand All @@ -186,7 +150,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
* @return a RequestInformation
*/
@jakarta.annotation.Nonnull
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Admin body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) throws URISyntaxException {
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Admin body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation();
requestInfo.httpMethod = HttpMethod.PATCH;
Expand All @@ -205,6 +169,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull
/**
* Get admin
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters {
/**
* Expand related entities
Expand All @@ -222,6 +187,7 @@ public class GetQueryParameters {
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetRequestConfiguration extends BaseRequestConfiguration {
/**
* Request query parameters
Expand All @@ -232,6 +198,7 @@ public class GetRequestConfiguration extends BaseRequestConfiguration {
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class PatchRequestConfiguration extends BaseRequestConfiguration {
}
}
Loading

0 comments on commit 4e31fa8

Please sign in to comment.