Skip to content

Commit 40ceedb

Browse files
Merge pull request #1728 from microsoftgraph/kiota/v1.0/pipelinebuild/130669
Generated models and request builders
2 parents cb5035c + adf4dc7 commit 40ceedb

File tree

86 files changed

+952
-602
lines changed

Some content is hidden

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

86 files changed

+952
-602
lines changed

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 or channel.
59+
* Retrieve a conversationMember from a chat.
6060
* @return a ConversationMember
61-
* @see <a href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0">Find more info here</a>
61+
* @see <a href="https://learn.microsoft.com/graph/api/chat-get-members?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 or channel.
68+
* Retrieve a conversationMember from a chat.
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/conversationmember-get?view=graph-rest-1.0">Find more info here</a>
71+
* @see <a href="https://learn.microsoft.com/graph/api/chat-get-members?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 or channel.
126+
* Retrieve a conversationMember from a chat.
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 or channel.
134+
* Retrieve a conversationMember from a chat.
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 or channel.
186+
* Retrieve a conversationMember from a chat.
187187
*/
188188
@jakarta.annotation.Generated("com.microsoft.kiota")
189189
public class GetQueryParameters {

src/main/java/com/microsoft/graph/generated/chats/item/messages/item/replies/RepliesRequestBuilder.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-
* Create a new reply to a chatMessage in a specified channel.
93+
* Send a new reply to a chatMessage in a specified channel.
9494
* @param body The request body
9595
* @return a ChatMessage
96-
* @see <a href="https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0">Find more info here</a>
96+
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post-replies?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-
* Create a new reply to a chatMessage in a specified channel.
103+
* Send a new reply to a chatMessage in a specified channel.
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/channel-post-messagereply?view=graph-rest-1.0">Find more info here</a>
107+
* @see <a href="https://learn.microsoft.com/graph/api/chatmessage-post-replies?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-
* Create a new reply to a chatMessage in a specified channel.
139+
* Send a new reply to a chatMessage in a specified channel.
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-
* Create a new reply to a chatMessage in a specified channel.
148+
* Send a new reply to a chatMessage in a specified channel.
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

src/main/java/com/microsoft/graph/generated/communications/calls/item/CallItemRequestBuilder.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.microsoft.graph.communications.calls.item.recordresponse.RecordResponseRequestBuilder;
1515
import com.microsoft.graph.communications.calls.item.redirect.RedirectRequestBuilder;
1616
import com.microsoft.graph.communications.calls.item.reject.RejectRequestBuilder;
17+
import com.microsoft.graph.communications.calls.item.senddtmftones.SendDtmfTonesRequestBuilder;
1718
import com.microsoft.graph.communications.calls.item.subscribetotone.SubscribeToToneRequestBuilder;
1819
import com.microsoft.graph.communications.calls.item.transfer.TransferRequestBuilder;
1920
import com.microsoft.graph.communications.calls.item.unmute.UnmuteRequestBuilder;
@@ -136,6 +137,13 @@ public RedirectRequestBuilder redirect() {
136137
public RejectRequestBuilder reject() {
137138
return new RejectRequestBuilder(pathParameters, requestAdapter);
138139
}
140+
/**
141+
* Provides operations to call the sendDtmfTones method.
142+
*/
143+
@jakarta.annotation.Nonnull
144+
public SendDtmfTonesRequestBuilder sendDtmfTones() {
145+
return new SendDtmfTonesRequestBuilder(pathParameters, requestAdapter);
146+
}
139147
/**
140148
* Provides operations to call the subscribeToTone method.
141149
*/
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
package com.microsoft.graph.communications.calls.item.senddtmftones;
2+
3+
import com.microsoft.graph.models.Tone;
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 SendDtmfTonesPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable {
16+
/**
17+
* Stores model information.
18+
*/
19+
@jakarta.annotation.Nonnull
20+
protected BackingStore backingStore;
21+
/**
22+
* Instantiates a new SendDtmfTonesPostRequestBody and sets the default values.
23+
*/
24+
public SendDtmfTonesPostRequestBody() {
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 SendDtmfTonesPostRequestBody
32+
*/
33+
@jakarta.annotation.Nonnull
34+
public static SendDtmfTonesPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
35+
Objects.requireNonNull(parseNode);
36+
return new SendDtmfTonesPostRequestBody();
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+
* Gets the clientContext property value. The clientContext property
61+
* @return a String
62+
*/
63+
@jakarta.annotation.Nullable
64+
public String getClientContext() {
65+
return this.backingStore.get("clientContext");
66+
}
67+
/**
68+
* Gets the delayBetweenTonesMs property value. The delayBetweenTonesMs property
69+
* @return a Integer
70+
*/
71+
@jakarta.annotation.Nullable
72+
public Integer getDelayBetweenTonesMs() {
73+
return this.backingStore.get("delayBetweenTonesMs");
74+
}
75+
/**
76+
* The deserialization information for the current model
77+
* @return a Map<String, java.util.function.Consumer<ParseNode>>
78+
*/
79+
@jakarta.annotation.Nonnull
80+
public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() {
81+
final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(3);
82+
deserializerMap.put("clientContext", (n) -> { this.setClientContext(n.getStringValue()); });
83+
deserializerMap.put("delayBetweenTonesMs", (n) -> { this.setDelayBetweenTonesMs(n.getIntegerValue()); });
84+
deserializerMap.put("tones", (n) -> { this.setTones(n.getCollectionOfEnumValues(Tone::forValue)); });
85+
return deserializerMap;
86+
}
87+
/**
88+
* Gets the tones property value. The tones property
89+
* @return a java.util.List<Tone>
90+
*/
91+
@jakarta.annotation.Nullable
92+
public java.util.List<Tone> getTones() {
93+
return this.backingStore.get("tones");
94+
}
95+
/**
96+
* Serializes information the current object
97+
* @param writer Serialization writer to use to serialize this model
98+
*/
99+
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
100+
Objects.requireNonNull(writer);
101+
writer.writeStringValue("clientContext", this.getClientContext());
102+
writer.writeIntegerValue("delayBetweenTonesMs", this.getDelayBetweenTonesMs());
103+
writer.writeCollectionOfEnumValues("tones", this.getTones());
104+
writer.writeAdditionalData(this.getAdditionalData());
105+
}
106+
/**
107+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
108+
* @param value Value to set for the AdditionalData property.
109+
*/
110+
public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) {
111+
this.backingStore.set("additionalData", value);
112+
}
113+
/**
114+
* Sets the backingStore property value. Stores model information.
115+
* @param value Value to set for the backingStore property.
116+
*/
117+
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
118+
Objects.requireNonNull(value);
119+
this.backingStore = value;
120+
}
121+
/**
122+
* Sets the clientContext property value. The clientContext property
123+
* @param value Value to set for the clientContext property.
124+
*/
125+
public void setClientContext(@jakarta.annotation.Nullable final String value) {
126+
this.backingStore.set("clientContext", value);
127+
}
128+
/**
129+
* Sets the delayBetweenTonesMs property value. The delayBetweenTonesMs property
130+
* @param value Value to set for the delayBetweenTonesMs property.
131+
*/
132+
public void setDelayBetweenTonesMs(@jakarta.annotation.Nullable final Integer value) {
133+
this.backingStore.set("delayBetweenTonesMs", value);
134+
}
135+
/**
136+
* Sets the tones property value. The tones property
137+
* @param value Value to set for the tones property.
138+
*/
139+
public void setTones(@jakarta.annotation.Nullable final java.util.List<Tone> value) {
140+
this.backingStore.set("tones", value);
141+
}
142+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
package com.microsoft.graph.communications.calls.item.senddtmftones;
2+
3+
import com.microsoft.graph.models.odataerrors.ODataError;
4+
import com.microsoft.graph.models.SendDtmfTonesOperation;
5+
import com.microsoft.kiota.BaseRequestBuilder;
6+
import com.microsoft.kiota.BaseRequestConfiguration;
7+
import com.microsoft.kiota.HttpMethod;
8+
import com.microsoft.kiota.RequestAdapter;
9+
import com.microsoft.kiota.RequestInformation;
10+
import com.microsoft.kiota.RequestOption;
11+
import com.microsoft.kiota.serialization.Parsable;
12+
import com.microsoft.kiota.serialization.ParsableFactory;
13+
import java.util.Collection;
14+
import java.util.HashMap;
15+
import java.util.Map;
16+
import java.util.Objects;
17+
/**
18+
* Provides operations to call the sendDtmfTones method.
19+
*/
20+
@jakarta.annotation.Generated("com.microsoft.kiota")
21+
public class SendDtmfTonesRequestBuilder extends BaseRequestBuilder {
22+
/**
23+
* Instantiates a new SendDtmfTonesRequestBuilder and sets the default values.
24+
* @param pathParameters Path parameters for the request
25+
* @param requestAdapter The request adapter to use to execute the requests.
26+
*/
27+
public SendDtmfTonesRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
28+
super(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", pathParameters);
29+
}
30+
/**
31+
* Instantiates a new SendDtmfTonesRequestBuilder and sets the default values.
32+
* @param rawUrl The raw URL to use for the request builder.
33+
* @param requestAdapter The request adapter to use to execute the requests.
34+
*/
35+
public SendDtmfTonesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
36+
super(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", rawUrl);
37+
}
38+
/**
39+
* Invoke action sendDtmfTones
40+
* @param body The request body
41+
* @return a SendDtmfTonesOperation
42+
*/
43+
@jakarta.annotation.Nullable
44+
public SendDtmfTonesOperation post(@jakarta.annotation.Nonnull final SendDtmfTonesPostRequestBody body) {
45+
return post(body, null);
46+
}
47+
/**
48+
* Invoke action sendDtmfTones
49+
* @param body The request body
50+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @return a SendDtmfTonesOperation
52+
*/
53+
@jakarta.annotation.Nullable
54+
public SendDtmfTonesOperation post(@jakarta.annotation.Nonnull final SendDtmfTonesPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
55+
Objects.requireNonNull(body);
56+
final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration);
57+
final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>();
58+
errorMapping.put("4XX", ODataError::createFromDiscriminatorValue);
59+
errorMapping.put("5XX", ODataError::createFromDiscriminatorValue);
60+
return this.requestAdapter.send(requestInfo, errorMapping, SendDtmfTonesOperation::createFromDiscriminatorValue);
61+
}
62+
/**
63+
* Invoke action sendDtmfTones
64+
* @param body The request body
65+
* @return a RequestInformation
66+
*/
67+
@jakarta.annotation.Nonnull
68+
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SendDtmfTonesPostRequestBody body) {
69+
return toPostRequestInformation(body, null);
70+
}
71+
/**
72+
* Invoke action sendDtmfTones
73+
* @param body The request body
74+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
75+
* @return a RequestInformation
76+
*/
77+
@jakarta.annotation.Nonnull
78+
public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SendDtmfTonesPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer<PostRequestConfiguration> requestConfiguration) {
79+
Objects.requireNonNull(body);
80+
final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters);
81+
requestInfo.configure(requestConfiguration, PostRequestConfiguration::new);
82+
requestInfo.headers.tryAdd("Accept", "application/json");
83+
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
84+
return requestInfo;
85+
}
86+
/**
87+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
88+
* @param rawUrl The raw URL to use for the request builder.
89+
* @return a SendDtmfTonesRequestBuilder
90+
*/
91+
@jakarta.annotation.Nonnull
92+
public SendDtmfTonesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
93+
Objects.requireNonNull(rawUrl);
94+
return new SendDtmfTonesRequestBuilder(rawUrl, requestAdapter);
95+
}
96+
/**
97+
* Configuration for the request such as headers, query parameters, and middleware options.
98+
*/
99+
@jakarta.annotation.Generated("com.microsoft.kiota")
100+
public class PostRequestConfiguration extends BaseRequestConfiguration {
101+
}
102+
}

0 commit comments

Comments
 (0)