Skip to content

Commit de86ba5

Browse files
Merge pull request #1139 from microsoftgraph/v1.0/pipelinebuild/81963
Generated v1.0 models and request builders using Typewriter
2 parents 7fb1fc3 + d5969ee commit de86ba5

File tree

77 files changed

+4835
-30
lines changed

Some content is hidden

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

77 files changed

+4835
-30
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14+
## [5.32.0] - 2022-08-11
15+
16+
### Added
17+
18+
- AttachmentInfo model.
19+
- DeviceDeltaParameterSet models.
20+
- DeviceManagementReportsGetNoncompliantDevicesAndSettingsReportParameterSet models.
21+
- DiskType model.
22+
- SignInFrequencyAuthenticationType model.
23+
- SignInFrequencyInterval model.
24+
- DocumentSetVersionRestoreParameterSet models.
25+
- UserExperienceAnalyticsHealthState model.
26+
- AttachmentBase models and related requests.
27+
- AttachmentSession model and related requests.
28+
- DocumentSetVersion models and related requests.
29+
- TaskFileAttachment model and related requests.
30+
- UserExperienceAnalyticsDevicePerformance model and related requests.
31+
32+
### Changed
33+
34+
- Generated v1.0 models and request builders using Typewriter.
35+
- References to newly added models/requests added to current models/requests.
36+
1437
## [5.31.0] - 2022-07-21
1538

1639
### 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.31.0'
22+
implementation 'com.microsoft.graph:microsoft-graph:5.32.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.31.0</version>
39+
<version>5.32.0</version>
4040
</dependency>
4141
<dependency>
4242
<!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider -->
@@ -162,5 +162,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
162162

163163

164164

165+
165166

166167

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 = 31
29+
mavenMinorVersion = 32
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
3232

@@ -85,5 +85,6 @@ mavenCentralPublishingEnabled=false
8585

8686

8787

88+
8889

8990

src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ExternalItem extends Entity implements IJsonBackedObject {
4040

4141
/**
4242
* The Content.
43-
* A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.
43+
* A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.
4444
*/
4545
@SerializedName(value = "content", alternate = {"Content"})
4646
@Expose

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.31.0";
21+
public static final String VERSION_NAME = "5.32.0";
2222
}
2323

2424

@@ -62,5 +62,6 @@ private Constants() {
6262

6363

6464

65+
6566

6667

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
7171

7272
/**
7373
* The App Id.
74-
* The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only.
74+
* The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only. Supports $filter (eq).
7575
*/
7676
@SerializedName(value = "appId", alternate = {"AppId"})
7777
@Expose
@@ -341,7 +341,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
341341

342342
/**
343343
* The Created On Behalf Of.
344-
*
344+
* Supports $filter (eq when counting empty collections). Read-only.
345345
*/
346346
@SerializedName(value = "createdOnBehalfOf", alternate = {"CreatedOnBehalfOf"})
347347
@Expose
@@ -350,7 +350,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
350350

351351
/**
352352
* The Extension Properties.
353-
* Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
353+
* Read-only. Nullable. Supports $expand and $filter (eq and ne when counting empty collections and only with advanced query parameters).
354354
*/
355355
@SerializedName(value = "extensionProperties", alternate = {"ExtensionProperties"})
356356
@Expose
@@ -375,7 +375,7 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
375375

376376
/**
377377
* The Owners.
378-
* Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
378+
* Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
379379
*/
380380
@Nullable
381381
public DirectoryObjectCollectionPage owners;
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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.Entity;
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 Attachment Base.
24+
*/
25+
public class AttachmentBase extends Entity implements IJsonBackedObject {
26+
27+
28+
/**
29+
* The Content Type.
30+
* The MIME type.
31+
*/
32+
@SerializedName(value = "contentType", alternate = {"ContentType"})
33+
@Expose
34+
@Nullable
35+
public String contentType;
36+
37+
/**
38+
* The Last Modified Date Time.
39+
* The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
40+
*/
41+
@SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"})
42+
@Expose
43+
@Nullable
44+
public java.time.OffsetDateTime lastModifiedDateTime;
45+
46+
/**
47+
* The Name.
48+
* The display name of the attachment. This does not need to be the actual file name.
49+
*/
50+
@SerializedName(value = "name", alternate = {"Name"})
51+
@Expose
52+
@Nullable
53+
public String name;
54+
55+
/**
56+
* The Size.
57+
* The length of the attachment in bytes.
58+
*/
59+
@SerializedName(value = "size", alternate = {"Size"})
60+
@Expose
61+
@Nullable
62+
public Integer size;
63+
64+
65+
/**
66+
* Sets the raw JSON object
67+
*
68+
* @param serializer the serializer
69+
* @param json the JSON object to set this object to
70+
*/
71+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
72+
73+
}
74+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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.AttachmentInfo;
9+
import com.microsoft.graph.models.UploadSession;
10+
import com.google.gson.annotations.Expose;
11+
import com.google.gson.annotations.SerializedName;
12+
import javax.annotation.Nonnull;
13+
import javax.annotation.Nullable;
14+
import com.google.gson.JsonObject;
15+
import java.util.EnumSet;
16+
import java.util.ArrayList;
17+
18+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
19+
20+
/**
21+
* The class for the Attachment Base Create Upload Session Parameter Set.
22+
*/
23+
public class AttachmentBaseCreateUploadSessionParameterSet {
24+
/**
25+
* The attachment Info.
26+
*
27+
*/
28+
@SerializedName(value = "attachmentInfo", alternate = {"AttachmentInfo"})
29+
@Expose
30+
@Nullable
31+
public AttachmentInfo attachmentInfo;
32+
33+
34+
/**
35+
* Instiaciates a new AttachmentBaseCreateUploadSessionParameterSet
36+
*/
37+
public AttachmentBaseCreateUploadSessionParameterSet() {}
38+
/**
39+
* Instiaciates a new AttachmentBaseCreateUploadSessionParameterSet
40+
* @param builder builder bearing the parameters to initialize from
41+
*/
42+
protected AttachmentBaseCreateUploadSessionParameterSet(@Nonnull final AttachmentBaseCreateUploadSessionParameterSetBuilder builder) {
43+
this.attachmentInfo = builder.attachmentInfo;
44+
}
45+
/**
46+
* Gets a new builder for the body
47+
* @return a new builder
48+
*/
49+
@Nonnull
50+
public static AttachmentBaseCreateUploadSessionParameterSetBuilder newBuilder() {
51+
return new AttachmentBaseCreateUploadSessionParameterSetBuilder();
52+
}
53+
/**
54+
* Fluent builder for the AttachmentBaseCreateUploadSessionParameterSet
55+
*/
56+
public static final class AttachmentBaseCreateUploadSessionParameterSetBuilder {
57+
/**
58+
* The attachmentInfo parameter value
59+
*/
60+
@Nullable
61+
protected AttachmentInfo attachmentInfo;
62+
/**
63+
* Sets the AttachmentInfo
64+
* @param val the value to set it to
65+
* @return the current builder object
66+
*/
67+
@Nonnull
68+
public AttachmentBaseCreateUploadSessionParameterSetBuilder withAttachmentInfo(@Nullable final AttachmentInfo val) {
69+
this.attachmentInfo = val;
70+
return this;
71+
}
72+
/**
73+
* Instanciates a new AttachmentBaseCreateUploadSessionParameterSetBuilder
74+
*/
75+
@Nullable
76+
protected AttachmentBaseCreateUploadSessionParameterSetBuilder(){}
77+
/**
78+
* Buils the resulting body object to be passed to the request
79+
* @return the body object to pass to the request
80+
*/
81+
@Nonnull
82+
public AttachmentBaseCreateUploadSessionParameterSet build() {
83+
return new AttachmentBaseCreateUploadSessionParameterSet(this);
84+
}
85+
}
86+
/**
87+
* Gets the functions options from the properties that have been set
88+
* @return a list of function options for the request
89+
*/
90+
@Nonnull
91+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
92+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
93+
if(this.attachmentInfo != null) {
94+
result.add(new com.microsoft.graph.options.FunctionOption("attachmentInfo", attachmentInfo));
95+
}
96+
return result;
97+
}
98+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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.AttachmentType;
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 Attachment Info.
24+
*/
25+
public class AttachmentInfo 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 Attachment Type.
43+
* The type of the attachment. The possible values are: file, item, reference. Required.
44+
*/
45+
@SerializedName(value = "attachmentType", alternate = {"AttachmentType"})
46+
@Expose
47+
@Nullable
48+
public AttachmentType attachmentType;
49+
50+
/**
51+
* The Content Type.
52+
* The nature of the data in the attachment. Optional.
53+
*/
54+
@SerializedName(value = "contentType", alternate = {"ContentType"})
55+
@Expose
56+
@Nullable
57+
public String contentType;
58+
59+
/**
60+
* The Name.
61+
* The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required.
62+
*/
63+
@SerializedName(value = "name", alternate = {"Name"})
64+
@Expose
65+
@Nullable
66+
public String name;
67+
68+
/**
69+
* The Size.
70+
* The length of the attachment in bytes. Required.
71+
*/
72+
@SerializedName(value = "size", alternate = {"Size"})
73+
@Expose
74+
@Nullable
75+
public Long size;
76+
77+
78+
/**
79+
* Sets the raw JSON object
80+
*
81+
* @param serializer the serializer
82+
* @param json the JSON object to set this object to
83+
*/
84+
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
85+
86+
}
87+
}

0 commit comments

Comments
 (0)