Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 409fefe

Browse files
authored
Merge pull request #2436 from microsoftgraph/v1.0/pipelinebuild/192501
Generated models and request builders
2 parents b202755 + 1483ce8 commit 409fefe

File tree

165 files changed

+10168
-685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+10168
-685
lines changed

src/main/java/com/microsoft/graph/generated/applications/getavailableextensionproperties/GetAvailableExtensionPropertiesRequestBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public GetAvailableExtensionPropertiesRequestBuilder(@jakarta.annotation.Nonnull
3535
super(requestAdapter, "{+baseurl}/applications/getAvailableExtensionProperties", rawUrl);
3636
}
3737
/**
38-
* Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:
38+
* Return all directory extension definitions that are registered in a directory, including through multitenant apps. The following entities support extension properties:
3939
* @param body The request body
4040
* @return a {@link GetAvailableExtensionPropertiesPostResponse}
4141
* @throws ODataError When receiving a 4XX or 5XX status code
@@ -46,7 +46,7 @@ public GetAvailableExtensionPropertiesPostResponse post(@jakarta.annotation.Nonn
4646
return post(body, null);
4747
}
4848
/**
49-
* Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:
49+
* Return all directory extension definitions that are registered in a directory, including through multitenant apps. The following entities support extension properties:
5050
* @param body The request body
5151
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5252
* @return a {@link GetAvailableExtensionPropertiesPostResponse}
@@ -62,7 +62,7 @@ public GetAvailableExtensionPropertiesPostResponse post(@jakarta.annotation.Nonn
6262
return this.requestAdapter.send(requestInfo, errorMapping, GetAvailableExtensionPropertiesPostResponse::createFromDiscriminatorValue);
6363
}
6464
/**
65-
* Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:
65+
* Return all directory extension definitions that are registered in a directory, including through multitenant apps. The following entities support extension properties:
6666
* @param body The request body
6767
* @return a {@link RequestInformation}
6868
*/
@@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
7171
return toPostRequestInformation(body, null);
7272
}
7373
/**
74-
* Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:
74+
* Return all directory extension definitions that are registered in a directory, including through multitenant apps. The following entities support extension properties:
7575
* @param body The request body
7676
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7777
* @return a {@link RequestInformation}

src/main/java/com/microsoft/graph/generated/applications/item/addkey/AddKeyRequestBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public AddKeyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja
3636
super(requestAdapter, "{+baseurl}/applications/{application%2Did}/addKey", rawUrl);
3737
}
3838
/**
39-
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that dont have any existing valid certificates (no certificates have been added yet, or all certificates have expired), wont be able to use this service action. You can use the Update application operation to perform an update instead.
39+
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don't have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won't be able to use this service action. You can use the Update application operation to perform an update instead.
4040
* @param body The request body
4141
* @return a {@link KeyCredential}
4242
* @throws ODataError When receiving a 4XX or 5XX status code
@@ -47,7 +47,7 @@ public KeyCredential post(@jakarta.annotation.Nonnull final AddKeyPostRequestBod
4747
return post(body, null);
4848
}
4949
/**
50-
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that dont have any existing valid certificates (no certificates have been added yet, or all certificates have expired), wont be able to use this service action. You can use the Update application operation to perform an update instead.
50+
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don't have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won't be able to use this service action. You can use the Update application operation to perform an update instead.
5151
* @param body The request body
5252
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5353
* @return a {@link KeyCredential}
@@ -63,7 +63,7 @@ public KeyCredential post(@jakarta.annotation.Nonnull final AddKeyPostRequestBod
6363
return this.requestAdapter.send(requestInfo, errorMapping, KeyCredential::createFromDiscriminatorValue);
6464
}
6565
/**
66-
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that dont have any existing valid certificates (no certificates have been added yet, or all certificates have expired), wont be able to use this service action. You can use the Update application operation to perform an update instead.
66+
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don't have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won't be able to use this service action. You can use the Update application operation to perform an update instead.
6767
* @param body The request body
6868
* @return a {@link RequestInformation}
6969
*/
@@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
7272
return toPostRequestInformation(body, null);
7373
}
7474
/**
75-
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that dont have any existing valid certificates (no certificates have been added yet, or all certificates have expired), wont be able to use this service action. You can use the Update application operation to perform an update instead.
75+
* Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don't have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won't be able to use this service action. You can use the Update application operation to perform an update instead.
7676
* @param body The request body
7777
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7878
* @return a {@link RequestInformation}

src/main/java/com/microsoft/graph/generated/auditlogs/signins/SignInsRequestBuilder.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.microsoft.graph.auditlogs.signins;
22

3+
import com.microsoft.graph.auditlogs.signins.confirmcompromised.ConfirmCompromisedRequestBuilder;
4+
import com.microsoft.graph.auditlogs.signins.confirmsafe.ConfirmSafeRequestBuilder;
35
import com.microsoft.graph.auditlogs.signins.count.CountRequestBuilder;
6+
import com.microsoft.graph.auditlogs.signins.dismiss.DismissRequestBuilder;
47
import com.microsoft.graph.auditlogs.signins.item.SignInItemRequestBuilder;
58
import com.microsoft.graph.models.odataerrors.ODataError;
69
import com.microsoft.graph.models.SignIn;
@@ -23,6 +26,22 @@
2326
*/
2427
@jakarta.annotation.Generated("com.microsoft.kiota")
2528
public class SignInsRequestBuilder extends BaseRequestBuilder {
29+
/**
30+
* Provides operations to call the confirmCompromised method.
31+
* @return a {@link ConfirmCompromisedRequestBuilder}
32+
*/
33+
@jakarta.annotation.Nonnull
34+
public ConfirmCompromisedRequestBuilder confirmCompromised() {
35+
return new ConfirmCompromisedRequestBuilder(pathParameters, requestAdapter);
36+
}
37+
/**
38+
* Provides operations to call the confirmSafe method.
39+
* @return a {@link ConfirmSafeRequestBuilder}
40+
*/
41+
@jakarta.annotation.Nonnull
42+
public ConfirmSafeRequestBuilder confirmSafe() {
43+
return new ConfirmSafeRequestBuilder(pathParameters, requestAdapter);
44+
}
2645
/**
2746
* Provides operations to count the resources in the collection.
2847
* @return a {@link CountRequestBuilder}
@@ -31,6 +50,14 @@ public class SignInsRequestBuilder extends BaseRequestBuilder {
3150
public CountRequestBuilder count() {
3251
return new CountRequestBuilder(pathParameters, requestAdapter);
3352
}
53+
/**
54+
* Provides operations to call the dismiss method.
55+
* @return a {@link DismissRequestBuilder}
56+
*/
57+
@jakarta.annotation.Nonnull
58+
public DismissRequestBuilder dismiss() {
59+
return new DismissRequestBuilder(pathParameters, requestAdapter);
60+
}
3461
/**
3562
* Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity.
3663
* @param signInId The unique identifier of signIn
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
package com.microsoft.graph.auditlogs.signins.confirmcompromised;
2+
3+
import com.microsoft.kiota.serialization.AdditionalDataHolder;
4+
import com.microsoft.kiota.serialization.Parsable;
5+
import com.microsoft.kiota.serialization.ParseNode;
6+
import com.microsoft.kiota.serialization.SerializationWriter;
7+
import com.microsoft.kiota.store.BackedModel;
8+
import com.microsoft.kiota.store.BackingStore;
9+
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
10+
import java.util.HashMap;
11+
import java.util.Map;
12+
import java.util.Objects;
13+
@jakarta.annotation.Generated("com.microsoft.kiota")
14+
public class ConfirmCompromisedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
15+
/**
16+
* Stores model information.
17+
*/
18+
@jakarta.annotation.Nonnull
19+
protected BackingStore backingStore;
20+
/**
21+
* Instantiates a new {@link ConfirmCompromisedPostRequestBody} and sets the default values.
22+
*/
23+
public ConfirmCompromisedPostRequestBody() {
24+
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
25+
this.setAdditionalData(new HashMap<>());
26+
}
27+
/**
28+
* Creates a new instance of the appropriate class based on discriminator value
29+
* @param parseNode The parse node to use to read the discriminator value and create the object
30+
* @return a {@link ConfirmCompromisedPostRequestBody}
31+
*/
32+
@jakarta.annotation.Nonnull
33+
public static ConfirmCompromisedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
34+
Objects.requireNonNull(parseNode);
35+
return new ConfirmCompromisedPostRequestBody();
36+
}
37+
/**
38+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
39+
* @return a {@link Map<String, Object>}
40+
*/
41+
@jakarta.annotation.Nonnull
42+
public Map<String, Object> getAdditionalData() {
43+
Map<String, Object> value = this.backingStore.get("additionalData");
44+
if(value == null) {
45+
value = new HashMap<>();
46+
this.setAdditionalData(value);
47+
}
48+
return value;
49+
}
50+
/**
51+
* Gets the backingStore property value. Stores model information.
52+
* @return a {@link BackingStore}
53+
*/
54+
@jakarta.annotation.Nonnull
55+
public BackingStore getBackingStore() {
56+
return this.backingStore;
57+
}
58+
/**
59+
* The deserialization information for the current model
60+
* @return a {@link Map<String, java.util.function.Consumer<ParseNode>>}
61+
*/
62+
@jakarta.annotation.Nonnull
63+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
64+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(1);
65+
deserializerMap.put("requestIds", (n) -> { this.setRequestIds(n.getCollectionOfPrimitiveValues(String.class)); });
66+
return deserializerMap;
67+
}
68+
/**
69+
* Gets the requestIds property value. The requestIds property
70+
* @return a {@link java.util.List<String>}
71+
*/
72+
@jakarta.annotation.Nullable
73+
public java.util.List<String> getRequestIds() {
74+
return this.backingStore.get("requestIds");
75+
}
76+
/**
77+
* Serializes information the current object
78+
* @param writer Serialization writer to use to serialize this model
79+
*/
80+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
81+
Objects.requireNonNull(writer);
82+
writer.writeCollectionOfPrimitiveValues("requestIds", this.getRequestIds());
83+
writer.writeAdditionalData(this.getAdditionalData());
84+
}
85+
/**
86+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
87+
* @param value Value to set for the AdditionalData property.
88+
*/
89+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
90+
this.backingStore.set("additionalData", value);
91+
}
92+
/**
93+
* Sets the backingStore property value. Stores model information.
94+
* @param value Value to set for the backingStore property.
95+
*/
96+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
97+
Objects.requireNonNull(value);
98+
this.backingStore = value;
99+
}
100+
/**
101+
* Sets the requestIds property value. The requestIds property
102+
* @param value Value to set for the requestIds property.
103+
*/
104+
public void setRequestIds(@jakarta.annotation.Nullable final java.util.List<String> value) {
105+
this.backingStore.set("requestIds", value);
106+
}
107+
}

0 commit comments

Comments
 (0)