Skip to content

Commit cab6a65

Browse files
Merge pull request #1753 from microsoftgraph/kiota/v1.0/pipelinebuild/132033
Generated models and request builders
2 parents 21b3b35 + 118470a commit cab6a65

File tree

344 files changed

+30583
-957
lines changed

Some content is hidden

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

344 files changed

+30583
-957
lines changed
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
package com.microsoft.graph.applications.item.synchronization.secrets;
2+
3+
import com.microsoft.graph.models.SynchronizationSecretKeyStringValuePair;
4+
import com.microsoft.kiota.serialization.AdditionalDataHolder;
5+
import com.microsoft.kiota.serialization.Parsable;
6+
import com.microsoft.kiota.serialization.ParseNode;
7+
import com.microsoft.kiota.serialization.SerializationWriter;
8+
import com.microsoft.kiota.store.BackedModel;
9+
import com.microsoft.kiota.store.BackingStore;
10+
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
11+
import java.util.HashMap;
12+
import java.util.Map;
13+
import java.util.Objects;
14+
@jakarta.annotation.Generated("com.microsoft.kiota")
15+
public class SecretsPutRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
16+
/**
17+
* Stores model information.
18+
*/
19+
@jakarta.annotation.Nonnull
20+
protected BackingStore backingStore;
21+
/**
22+
* Instantiates a new SecretsPutRequestBody and sets the default values.
23+
*/
24+
public SecretsPutRequestBody() {
25+
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
26+
this.setAdditionalData(new HashMap<>());
27+
}
28+
/**
29+
* Creates a new instance of the appropriate class based on discriminator value
30+
* @param parseNode The parse node to use to read the discriminator value and create the object
31+
* @return a SecretsPutRequestBody
32+
*/
33+
@jakarta.annotation.Nonnull
34+
public static SecretsPutRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
35+
Objects.requireNonNull(parseNode);
36+
return new SecretsPutRequestBody();
37+
}
38+
/**
39+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
40+
* @return a Map<String, Object>
41+
*/
42+
@jakarta.annotation.Nonnull
43+
public Map<String, Object> getAdditionalData() {
44+
Map<String, Object> value = this.backingStore.get("additionalData");
45+
if(value == null) {
46+
value = new HashMap<>();
47+
this.setAdditionalData(value);
48+
}
49+
return value;
50+
}
51+
/**
52+
* Gets the backingStore property value. Stores model information.
53+
* @return a BackingStore
54+
*/
55+
@jakarta.annotation.Nonnull
56+
public BackingStore getBackingStore() {
57+
return this.backingStore;
58+
}
59+
/**
60+
* The deserialization information for the current model
61+
* @return a Map<String, java.util.function.Consumer<ParseNode>>
62+
*/
63+
@jakarta.annotation.Nonnull
64+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
65+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(1);
66+
deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair::createFromDiscriminatorValue)); });
67+
return deserializerMap;
68+
}
69+
/**
70+
* Gets the value property value. The value property
71+
* @return a java.util.List<SynchronizationSecretKeyStringValuePair>
72+
*/
73+
@jakarta.annotation.Nullable
74+
public java.util.List<SynchronizationSecretKeyStringValuePair> getValue() {
75+
return this.backingStore.get("value");
76+
}
77+
/**
78+
* Serializes information the current object
79+
* @param writer Serialization writer to use to serialize this model
80+
*/
81+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
82+
Objects.requireNonNull(writer);
83+
writer.writeCollectionOfObjectValues("value", this.getValue());
84+
writer.writeAdditionalData(this.getAdditionalData());
85+
}
86+
/**
87+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
88+
* @param value Value to set for the AdditionalData property.
89+
*/
90+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
91+
this.backingStore.set("additionalData", value);
92+
}
93+
/**
94+
* Sets the backingStore property value. Stores model information.
95+
* @param value Value to set for the backingStore property.
96+
*/
97+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
98+
Objects.requireNonNull(value);
99+
this.backingStore = value;
100+
}
101+
/**
102+
* Sets the value property value. The value property
103+
* @param value Value to set for the value property.
104+
*/
105+
public void setValue(@jakarta.annotation.Nullable final java.util.List<SynchronizationSecretKeyStringValuePair> value) {
106+
this.backingStore.set("value", value);
107+
}
108+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
package com.microsoft.graph.applications.item.synchronization.secrets;
2+
3+
import com.microsoft.graph.models.SynchronizationSecretKeyStringValuePair;
4+
import com.microsoft.kiota.serialization.AdditionalDataHolder;
5+
import com.microsoft.kiota.serialization.Parsable;
6+
import com.microsoft.kiota.serialization.ParseNode;
7+
import com.microsoft.kiota.serialization.SerializationWriter;
8+
import com.microsoft.kiota.store.BackedModel;
9+
import com.microsoft.kiota.store.BackingStore;
10+
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
11+
import java.util.HashMap;
12+
import java.util.Map;
13+
import java.util.Objects;
14+
@jakarta.annotation.Generated("com.microsoft.kiota")
15+
public class SecretsPutResponse implements AdditionalDataHolder, BackedModel, Parsable {
16+
/**
17+
* Stores model information.
18+
*/
19+
@jakarta.annotation.Nonnull
20+
protected BackingStore backingStore;
21+
/**
22+
* Instantiates a new SecretsPutResponse and sets the default values.
23+
*/
24+
public SecretsPutResponse() {
25+
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
26+
this.setAdditionalData(new HashMap<>());
27+
}
28+
/**
29+
* Creates a new instance of the appropriate class based on discriminator value
30+
* @param parseNode The parse node to use to read the discriminator value and create the object
31+
* @return a SecretsPutResponse
32+
*/
33+
@jakarta.annotation.Nonnull
34+
public static SecretsPutResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
35+
Objects.requireNonNull(parseNode);
36+
return new SecretsPutResponse();
37+
}
38+
/**
39+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
40+
* @return a Map<String, Object>
41+
*/
42+
@jakarta.annotation.Nonnull
43+
public Map<String, Object> getAdditionalData() {
44+
Map<String, Object> value = this.backingStore.get("additionalData");
45+
if(value == null) {
46+
value = new HashMap<>();
47+
this.setAdditionalData(value);
48+
}
49+
return value;
50+
}
51+
/**
52+
* Gets the backingStore property value. Stores model information.
53+
* @return a BackingStore
54+
*/
55+
@jakarta.annotation.Nonnull
56+
public BackingStore getBackingStore() {
57+
return this.backingStore;
58+
}
59+
/**
60+
* The deserialization information for the current model
61+
* @return a Map<String, java.util.function.Consumer<ParseNode>>
62+
*/
63+
@jakarta.annotation.Nonnull
64+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
65+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(1);
66+
deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair::createFromDiscriminatorValue)); });
67+
return deserializerMap;
68+
}
69+
/**
70+
* Gets the value property value. The value property
71+
* @return a java.util.List<SynchronizationSecretKeyStringValuePair>
72+
*/
73+
@jakarta.annotation.Nullable
74+
public java.util.List<SynchronizationSecretKeyStringValuePair> getValue() {
75+
return this.backingStore.get("value");
76+
}
77+
/**
78+
* Serializes information the current object
79+
* @param writer Serialization writer to use to serialize this model
80+
*/
81+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
82+
Objects.requireNonNull(writer);
83+
writer.writeCollectionOfObjectValues("value", this.getValue());
84+
writer.writeAdditionalData(this.getAdditionalData());
85+
}
86+
/**
87+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
88+
* @param value Value to set for the AdditionalData property.
89+
*/
90+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
91+
this.backingStore.set("additionalData", value);
92+
}
93+
/**
94+
* Sets the backingStore property value. Stores model information.
95+
* @param value Value to set for the backingStore property.
96+
*/
97+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
98+
Objects.requireNonNull(value);
99+
this.backingStore = value;
100+
}
101+
/**
102+
* Sets the value property value. The value property
103+
* @param value Value to set for the value property.
104+
*/
105+
public void setValue(@jakarta.annotation.Nullable final java.util.List<SynchronizationSecretKeyStringValuePair> value) {
106+
this.backingStore.set("value", value);
107+
}
108+
}

src/main/java/com/microsoft/graph/generated/applications/item/synchronization/secrets/SecretsRequestBuilder.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.microsoft.graph.applications.item.synchronization.secrets.count.CountRequestBuilder;
44
import com.microsoft.graph.models.odataerrors.ODataError;
5-
import com.microsoft.graph.models.SynchronizationSecretKeyStringValuePair;
65
import com.microsoft.kiota.BaseRequestBuilder;
76
import com.microsoft.kiota.BaseRequestConfiguration;
87
import com.microsoft.kiota.HttpMethod;
@@ -46,34 +45,34 @@ public SecretsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j
4645
/**
4746
* Update property secrets value.
4847
* @param body The request body
49-
* @return a java.util.List<SynchronizationSecretKeyStringValuePair>
48+
* @return a SecretsPutResponse
5049
*/
5150
@jakarta.annotation.Nullable
52-
public java.util.List<SynchronizationSecretKeyStringValuePair> put(@jakarta.annotation.Nonnull final java.util.List<SynchronizationSecretKeyStringValuePair> body) {
51+
public SecretsPutResponse put(@jakarta.annotation.Nonnull final SecretsPutRequestBody body) {
5352
return put(body, null);
5453
}
5554
/**
5655
* Update property secrets value.
5756
* @param body The request body
5857
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
59-
* @return a java.util.List<SynchronizationSecretKeyStringValuePair>
58+
* @return a SecretsPutResponse
6059
*/
6160
@jakarta.annotation.Nullable
62-
public java.util.List<SynchronizationSecretKeyStringValuePair> put(@jakarta.annotation.Nonnull final java.util.List<SynchronizationSecretKeyStringValuePair> body, @jakarta.annotation.Nullable final java.util.function.Consumer<PutRequestConfiguration> requestConfiguration) {
61+
public SecretsPutResponse put(@jakarta.annotation.Nonnull final SecretsPutRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PutRequestConfiguration> requestConfiguration) {
6362
Objects.requireNonNull(body);
6463
final RequestInformation requestInfo = toPutRequestInformation(body, requestConfiguration);
6564
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
6665
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
6766
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
68-
return this.requestAdapter.sendCollection(requestInfo, errorMapping, SynchronizationSecretKeyStringValuePair::createFromDiscriminatorValue);
67+
return this.requestAdapter.send(requestInfo, errorMapping, SecretsPutResponse::createFromDiscriminatorValue);
6968
}
7069
/**
7170
* Update property secrets value.
7271
* @param body The request body
7372
* @return a RequestInformation
7473
*/
7574
@jakarta.annotation.Nonnull
76-
public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final java.util.List<SynchronizationSecretKeyStringValuePair> body) {
75+
public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final SecretsPutRequestBody body) {
7776
return toPutRequestInformation(body, null);
7877
}
7978
/**
@@ -83,12 +82,12 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi
8382
* @return a RequestInformation
8483
*/
8584
@jakarta.annotation.Nonnull
86-
public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final java.util.List<SynchronizationSecretKeyStringValuePair> body, @jakarta.annotation.Nullable final java.util.function.Consumer<PutRequestConfiguration> requestConfiguration) {
85+
public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull final SecretsPutRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PutRequestConfiguration> requestConfiguration) {
8786
Objects.requireNonNull(body);
8887
final RequestInformation requestInfo = new RequestInformation(HttpMethod.PUT, urlTemplate, pathParameters);
8988
requestInfo.configure(requestConfiguration, PutRequestConfiguration::new);
9089
requestInfo.headers.tryAdd("Accept", "application/json");
91-
requestInfo.setContentFromParsable(requestAdapter, "application/json", body.toArray(new SynchronizationSecretKeyStringValuePair[0]));
90+
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
9291
return requestInfo;
9392
}
9493
/**

src/main/java/com/microsoft/graph/generated/chats/item/members/item/ConversationMemberItemRequestBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume
5656
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
5757
}
5858
/**
59-
* Retrieve a conversationMember from a chat.
59+
* Retrieve a conversationMember from a chat or channel.
6060
* @return a ConversationMember
61-
* @see <a href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0">Find more info here</a>
61+
* @see <a href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0">Find more info here</a>
6262
*/
6363
@jakarta.annotation.Nullable
6464
public ConversationMember get() {
6565
return get(null);
6666
}
6767
/**
68-
* Retrieve a conversationMember from a chat.
68+
* Retrieve a conversationMember from a chat or channel.
6969
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7070
* @return a ConversationMember
71-
* @see <a href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0">Find more info here</a>
71+
* @see <a href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0">Find more info here</a>
7272
*/
7373
@jakarta.annotation.Nullable
7474
public ConversationMember get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) {
@@ -123,15 +123,15 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl
123123
return requestInfo;
124124
}
125125
/**
126-
* Retrieve a conversationMember from a chat.
126+
* Retrieve a conversationMember from a chat or channel.
127127
* @return a RequestInformation
128128
*/
129129
@jakarta.annotation.Nonnull
130130
public RequestInformation toGetRequestInformation() {
131131
return toGetRequestInformation(null);
132132
}
133133
/**
134-
* Retrieve a conversationMember from a chat.
134+
* Retrieve a conversationMember from a chat or channel.
135135
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
136136
* @return a RequestInformation
137137
*/
@@ -183,7 +183,7 @@ public ConversationMemberItemRequestBuilder withUrl(@jakarta.annotation.Nonnull
183183
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
184184
}
185185
/**
186-
* Retrieve a conversationMember from a chat.
186+
* Retrieve a conversationMember from a chat or channel.
187187
*/
188188
@jakarta.annotation.Generated("com.microsoft.kiota")
189189
public class GetQueryParameters implements QueryParameters {

src/main/java/com/microsoft/graph/generated/chats/item/messages/MessagesRequestBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,21 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java
9090
return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue);
9191
}
9292
/**
93-
* 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.
93+
* Send a new chatMessage in the specified channel or a chat.
9494
* @param body The request body
9595
* @return a ChatMessage
96-
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
96+
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
9797
*/
9898
@jakarta.annotation.Nullable
9999
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body) {
100100
return post(body, null);
101101
}
102102
/**
103-
* 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.
103+
* Send a new chatMessage in the specified channel or a chat.
104104
* @param body The request body
105105
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
106106
* @return a ChatMessage
107-
* @see <a href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0">Find more info here</a>
107+
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0">Find more info here</a>
108108
*/
109109
@jakarta.annotation.Nullable
110110
public ChatMessage post(@jakarta.annotation.Nonnull final ChatMessage body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
@@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f
136136
return requestInfo;
137137
}
138138
/**
139-
* 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.
139+
* Send a new chatMessage in the specified channel or a chat.
140140
* @param body The request body
141141
* @return a RequestInformation
142142
*/
@@ -145,7 +145,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f
145145
return toPostRequestInformation(body, null);
146146
}
147147
/**
148-
* 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.
148+
* Send a new chatMessage in the specified channel or a chat.
149149
* @param body The request body
150150
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
151151
* @return a RequestInformation

0 commit comments

Comments
 (0)