Skip to content

Commit 0df7fa0

Browse files
authored
Merge pull request #1200 from microsoftgraph/v1.0/pipelinebuild/87032
Generated v1.0 models and request builders using Typewriter
2 parents 8829ee8 + 78d0b0f commit 0df7fa0

40 files changed

+1999
-11
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [5.37.0] - 2022-09-28
15+
16+
### Added
17+
18+
- AuthorizationInfo model.
19+
- BroadcastMeetingCaptionSettings model.
20+
- AddLargeGalleryViewOperation model and related requests.
21+
- CallAddLargeGalleryView models and related requests.
22+
- TeamworkTag models and related requests.
23+
24+
### Changed
25+
26+
- Generated v1.0 models and request builders using Typewriter.
27+
- Classes related to the removed and added models/requests have been updated to reflect the addition and removal of these models/requests.
28+
1429
## [5.36.0] - 2022-09-22
1530

1631
### Added

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919
2020
dependencies {
2121
// Include the sdk as a dependency
22-
implementation 'com.microsoft.graph:microsoft-graph:5.36.0'
22+
implementation 'com.microsoft.graph:microsoft-graph:5.37.0'
2323
// Uncomment the line below if you are building an android application
2424
//implementation 'com.google.guava:guava:30.1.1-android'
2525
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
@@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml
3636
<!-- Include the sdk as a dependency -->
3737
<groupId>com.microsoft.graph</groupId>
3838
<artifactId>microsoft-graph</artifactId>
39-
<version>5.36.0</version>
39+
<version>5.37.0</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -167,5 +167,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
167167

168168

169169

170+
170171

171172

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ org.gradle.caching=true
2626
mavenGroupId = com.microsoft.graph
2727
mavenArtifactId = microsoft-graph
2828
mavenMajorVersion = 5
29-
mavenMinorVersion = 36
29+
mavenMinorVersion = 37
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -90,5 +90,6 @@ mavenCentralPublishingEnabled=false
9090

9191

9292

93+
9394

9495

src/main/java/com/microsoft/graph/info/Constants.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private Constants() {
1818
/** The client secret to use for unit testing */
1919
public static final String CLIENTSECRET = "clientsecret";
2020
/** The SDK version */
21-
public static final String VERSION_NAME = "5.36.0";
21+
public static final String VERSION_NAME = "5.37.0";
2222
}
2323

2424

@@ -67,5 +67,6 @@ private Constants() {
6767

6868

6969

70+
7071

7172

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Template Source: BaseEntity.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.models;
7+
import com.microsoft.graph.serializer.ISerializer;
8+
import com.microsoft.graph.serializer.IJsonBackedObject;
9+
import com.microsoft.graph.serializer.AdditionalDataManager;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.models.CommsOperation;
12+
13+
14+
import com.google.gson.JsonObject;
15+
import com.google.gson.annotations.SerializedName;
16+
import com.google.gson.annotations.Expose;
17+
import javax.annotation.Nullable;
18+
import javax.annotation.Nonnull;
19+
import java.util.HashMap;
20+
21+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
22+
23+
/**
24+
* The class for the Add Large Gallery View Operation.
25+
*/
26+
public class AddLargeGalleryViewOperation extends CommsOperation implements IJsonBackedObject {
27+
28+
29+
30+
/**
31+
* Sets the raw JSON object
32+
*
33+
* @param serializer the serializer
34+
* @param json the JSON object to set this object to
35+
*/
36+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
37+
38+
}
39+
}

src/main/java/com/microsoft/graph/models/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
8383

8484
/**
8585
* The App Roles.
86-
* The collection of roles assigned to the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.
86+
* The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.
8787
*/
8888
@SerializedName(value = "appRoles", alternate = {"AppRoles"})
8989
@Expose
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Template Source: BaseEntity.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.models;
7+
import com.microsoft.graph.serializer.ISerializer;
8+
import com.microsoft.graph.serializer.IJsonBackedObject;
9+
import com.microsoft.graph.serializer.AdditionalDataManager;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.http.BaseCollectionPage;
12+
13+
14+
import com.google.gson.JsonObject;
15+
import com.google.gson.annotations.SerializedName;
16+
import com.google.gson.annotations.Expose;
17+
import javax.annotation.Nullable;
18+
import javax.annotation.Nonnull;
19+
20+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
21+
22+
/**
23+
* The class for the Authorization Info.
24+
*/
25+
public class AuthorizationInfo implements IJsonBackedObject {
26+
27+
/** the OData type of the object as returned by the service */
28+
@SerializedName("@odata.type")
29+
@Expose
30+
@Nullable
31+
public String oDataType;
32+
33+
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
34+
35+
@Override
36+
@Nonnull
37+
public final AdditionalDataManager additionalDataManager() {
38+
return additionalDataManager;
39+
}
40+
41+
/**
42+
* The Certificate User Ids.
43+
*
44+
*/
45+
@SerializedName(value = "certificateUserIds", alternate = {"CertificateUserIds"})
46+
@Expose
47+
@Nullable
48+
public java.util.List<String> certificateUserIds;
49+
50+
51+
/**
52+
* Sets the raw JSON object
53+
*
54+
* @param serializer the serializer
55+
* @param json the JSON object to set this object to
56+
*/
57+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
58+
59+
}
60+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// Template Source: BaseEntity.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.models;
7+
import com.microsoft.graph.serializer.ISerializer;
8+
import com.microsoft.graph.serializer.IJsonBackedObject;
9+
import com.microsoft.graph.serializer.AdditionalDataManager;
10+
import java.util.EnumSet;
11+
import com.microsoft.graph.http.BaseCollectionPage;
12+
13+
14+
import com.google.gson.JsonObject;
15+
import com.google.gson.annotations.SerializedName;
16+
import com.google.gson.annotations.Expose;
17+
import javax.annotation.Nullable;
18+
import javax.annotation.Nonnull;
19+
20+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
21+
22+
/**
23+
* The class for the Broadcast Meeting Caption Settings.
24+
*/
25+
public class BroadcastMeetingCaptionSettings implements IJsonBackedObject {
26+
27+
/** the OData type of the object as returned by the service */
28+
@SerializedName("@odata.type")
29+
@Expose
30+
@Nullable
31+
public String oDataType;
32+
33+
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
34+
35+
@Override
36+
@Nonnull
37+
public final AdditionalDataManager additionalDataManager() {
38+
return additionalDataManager;
39+
}
40+
41+
/**
42+
* The Is Caption Enabled.
43+
* Indicates whether captions are enabled for this Teams live event.
44+
*/
45+
@SerializedName(value = "isCaptionEnabled", alternate = {"IsCaptionEnabled"})
46+
@Expose
47+
@Nullable
48+
public Boolean isCaptionEnabled;
49+
50+
/**
51+
* The Spoken Language.
52+
* The spoken language.
53+
*/
54+
@SerializedName(value = "spokenLanguage", alternate = {"SpokenLanguage"})
55+
@Expose
56+
@Nullable
57+
public String spokenLanguage;
58+
59+
/**
60+
* The Translation Languages.
61+
* The translation languages (choose up to 6).
62+
*/
63+
@SerializedName(value = "translationLanguages", alternate = {"TranslationLanguages"})
64+
@Expose
65+
@Nullable
66+
public java.util.List<String> translationLanguages;
67+
68+
69+
/**
70+
* Sets the raw JSON object
71+
*
72+
* @param serializer the serializer
73+
* @param json the JSON object to set this object to
74+
*/
75+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
76+
77+
}
78+
}

src/main/java/com/microsoft/graph/models/BroadcastMeetingSettings.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.microsoft.graph.serializer.AdditionalDataManager;
1010
import java.util.EnumSet;
1111
import com.microsoft.graph.models.BroadcastMeetingAudience;
12+
import com.microsoft.graph.models.BroadcastMeetingCaptionSettings;
1213

1314

1415
import com.google.gson.JsonObject;
@@ -47,6 +48,15 @@ public final AdditionalDataManager additionalDataManager() {
4748
@Nullable
4849
public BroadcastMeetingAudience allowedAudience;
4950

51+
/**
52+
* The Captions.
53+
* Caption settings of a Teams live event.
54+
*/
55+
@SerializedName(value = "captions", alternate = {"Captions"})
56+
@Expose
57+
@Nullable
58+
public BroadcastMeetingCaptionSettings captions;
59+
5060
/**
5161
* The Is Attendee Report Enabled.
5262
* Indicates whether attendee report is enabled for this Teams live event. Default value is false.
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
// Template Source: BaseMethodParameterSet.java.tt
2+
// ------------------------------------------------------------------------------
3+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
// ------------------------------------------------------------------------------
5+
6+
package com.microsoft.graph.models;
7+
8+
import com.microsoft.graph.models.AddLargeGalleryViewOperation;
9+
import com.google.gson.annotations.Expose;
10+
import com.google.gson.annotations.SerializedName;
11+
import javax.annotation.Nonnull;
12+
import javax.annotation.Nullable;
13+
import com.google.gson.JsonObject;
14+
import java.util.EnumSet;
15+
import java.util.ArrayList;
16+
17+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
18+
19+
/**
20+
* The class for the Call Add Large Gallery View Parameter Set.
21+
*/
22+
public class CallAddLargeGalleryViewParameterSet {
23+
/**
24+
* The client Context.
25+
*
26+
*/
27+
@SerializedName(value = "clientContext", alternate = {"ClientContext"})
28+
@Expose
29+
@Nullable
30+
public String clientContext;
31+
32+
33+
/**
34+
* Instiaciates a new CallAddLargeGalleryViewParameterSet
35+
*/
36+
public CallAddLargeGalleryViewParameterSet() {}
37+
/**
38+
* Instiaciates a new CallAddLargeGalleryViewParameterSet
39+
* @param builder builder bearing the parameters to initialize from
40+
*/
41+
protected CallAddLargeGalleryViewParameterSet(@Nonnull final CallAddLargeGalleryViewParameterSetBuilder builder) {
42+
this.clientContext = builder.clientContext;
43+
}
44+
/**
45+
* Gets a new builder for the body
46+
* @return a new builder
47+
*/
48+
@Nonnull
49+
public static CallAddLargeGalleryViewParameterSetBuilder newBuilder() {
50+
return new CallAddLargeGalleryViewParameterSetBuilder();
51+
}
52+
/**
53+
* Fluent builder for the CallAddLargeGalleryViewParameterSet
54+
*/
55+
public static final class CallAddLargeGalleryViewParameterSetBuilder {
56+
/**
57+
* The clientContext parameter value
58+
*/
59+
@Nullable
60+
protected String clientContext;
61+
/**
62+
* Sets the ClientContext
63+
* @param val the value to set it to
64+
* @return the current builder object
65+
*/
66+
@Nonnull
67+
public CallAddLargeGalleryViewParameterSetBuilder withClientContext(@Nullable final String val) {
68+
this.clientContext = val;
69+
return this;
70+
}
71+
/**
72+
* Instanciates a new CallAddLargeGalleryViewParameterSetBuilder
73+
*/
74+
@Nullable
75+
protected CallAddLargeGalleryViewParameterSetBuilder(){}
76+
/**
77+
* Buils the resulting body object to be passed to the request
78+
* @return the body object to pass to the request
79+
*/
80+
@Nonnull
81+
public CallAddLargeGalleryViewParameterSet build() {
82+
return new CallAddLargeGalleryViewParameterSet(this);
83+
}
84+
}
85+
/**
86+
* Gets the functions options from the properties that have been set
87+
* @return a list of function options for the request
88+
*/
89+
@Nonnull
90+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
91+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
92+
if(this.clientContext != null) {
93+
result.add(new com.microsoft.graph.options.FunctionOption("clientContext", clientContext));
94+
}
95+
return result;
96+
}
97+
}

0 commit comments

Comments
 (0)