Skip to content

Commit c08e111

Browse files
authored
Merge pull request #1113 from microsoftgraph/v1.0/pipelinebuild/78951
Generated v1.0 models and request builders using Typewriter
2 parents 82d9970 + 1c458ea commit c08e111

File tree

333 files changed

+22681
-53
lines changed

Some content is hidden

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

333 files changed

+22681
-53
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14+
## [5.30.0] - 2022-07-05
15+
16+
### Added
17+
18+
- Added new authentication methods.
19+
- Added password reset operation.
20+
- Added cross tenant policies and federated identity.
21+
- Added E-discovery cases and a large set of associated types.
22+
- Added summary to Team.
23+
1424
## [5.29.0] - 2022-06-29
1525

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

161161

162162

163+
163164

164165

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

@@ -83,5 +83,6 @@ mavenCentralPublishingEnabled=false
8383

8484

8585

86+
8687

8788

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

2424

@@ -60,5 +60,6 @@ private Constants() {
6060

6161

6262

63+
6364

6465

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
import com.microsoft.graph.models.WebApplication;
2626
import com.microsoft.graph.models.DirectoryObject;
2727
import com.microsoft.graph.models.ExtensionProperty;
28+
import com.microsoft.graph.models.FederatedIdentityCredential;
2829
import com.microsoft.graph.models.HomeRealmDiscoveryPolicy;
2930
import com.microsoft.graph.models.TokenIssuancePolicy;
3031
import com.microsoft.graph.models.TokenLifetimePolicy;
3132
import com.microsoft.graph.requests.ExtensionPropertyCollectionPage;
33+
import com.microsoft.graph.requests.FederatedIdentityCredentialCollectionPage;
3234
import com.microsoft.graph.requests.HomeRealmDiscoveryPolicyCollectionPage;
3335
import com.microsoft.graph.requests.DirectoryObjectCollectionPage;
3436
import com.microsoft.graph.requests.TokenIssuancePolicyCollectionPage;
@@ -346,6 +348,15 @@ public class Application extends DirectoryObject implements IJsonBackedObject {
346348
@Nullable
347349
public ExtensionPropertyCollectionPage extensionProperties;
348350

351+
/**
352+
* The Federated Identity Credentials.
353+
* Federated identities for applications. Supports $expand and $filter (eq when counting empty collections).
354+
*/
355+
@SerializedName(value = "federatedIdentityCredentials", alternate = {"FederatedIdentityCredentials"})
356+
@Expose
357+
@Nullable
358+
public FederatedIdentityCredentialCollectionPage federatedIdentityCredentials;
359+
349360
/**
350361
* The Home Realm Discovery Policies.
351362
*
@@ -388,6 +399,10 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J
388399
extensionProperties = serializer.deserializeObject(json.get("extensionProperties"), ExtensionPropertyCollectionPage.class);
389400
}
390401

402+
if (json.has("federatedIdentityCredentials")) {
403+
federatedIdentityCredentials = serializer.deserializeObject(json.get("federatedIdentityCredentials"), FederatedIdentityCredentialCollectionPage.class);
404+
}
405+
391406
if (json.has("homeRealmDiscoveryPolicies")) {
392407
homeRealmDiscoveryPolicies = serializer.deserializeObject(json.get("homeRealmDiscoveryPolicies"), HomeRealmDiscoveryPolicyCollectionPage.class);
393408
}

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212
import com.microsoft.graph.models.Fido2AuthenticationMethod;
1313
import com.microsoft.graph.models.AuthenticationMethod;
1414
import com.microsoft.graph.models.MicrosoftAuthenticatorAuthenticationMethod;
15+
import com.microsoft.graph.models.LongRunningOperation;
16+
import com.microsoft.graph.models.PasswordAuthenticationMethod;
1517
import com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod;
1618
import com.microsoft.graph.models.WindowsHelloForBusinessAuthenticationMethod;
1719
import com.microsoft.graph.models.Entity;
1820
import com.microsoft.graph.requests.Fido2AuthenticationMethodCollectionPage;
1921
import com.microsoft.graph.requests.AuthenticationMethodCollectionPage;
2022
import com.microsoft.graph.requests.MicrosoftAuthenticatorAuthenticationMethodCollectionPage;
23+
import com.microsoft.graph.requests.LongRunningOperationCollectionPage;
24+
import com.microsoft.graph.requests.PasswordAuthenticationMethodCollectionPage;
2125
import com.microsoft.graph.requests.TemporaryAccessPassAuthenticationMethodCollectionPage;
2226
import com.microsoft.graph.requests.WindowsHelloForBusinessAuthenticationMethodCollectionPage;
2327

@@ -63,6 +67,24 @@ public class Authentication extends Entity implements IJsonBackedObject {
6367
@Nullable
6468
public MicrosoftAuthenticatorAuthenticationMethodCollectionPage microsoftAuthenticatorMethods;
6569

70+
/**
71+
* The Operations.
72+
*
73+
*/
74+
@SerializedName(value = "operations", alternate = {"Operations"})
75+
@Expose
76+
@Nullable
77+
public LongRunningOperationCollectionPage operations;
78+
79+
/**
80+
* The Password Methods.
81+
* Represents the details of the password authentication method registered to a user for authentication.
82+
*/
83+
@SerializedName(value = "passwordMethods", alternate = {"PasswordMethods"})
84+
@Expose
85+
@Nullable
86+
public PasswordAuthenticationMethodCollectionPage passwordMethods;
87+
6688
/**
6789
* The Temporary Access Pass Methods.
6890
* Represents a Temporary Access Pass registered to a user for authentication through time-limited passcodes.
@@ -103,6 +125,14 @@ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final J
103125
microsoftAuthenticatorMethods = serializer.deserializeObject(json.get("microsoftAuthenticatorMethods"), MicrosoftAuthenticatorAuthenticationMethodCollectionPage.class);
104126
}
105127

128+
if (json.has("operations")) {
129+
operations = serializer.deserializeObject(json.get("operations"), LongRunningOperationCollectionPage.class);
130+
}
131+
132+
if (json.has("passwordMethods")) {
133+
passwordMethods = serializer.deserializeObject(json.get("passwordMethods"), PasswordAuthenticationMethodCollectionPage.class);
134+
}
135+
106136
if (json.has("temporaryAccessPassMethods")) {
107137
temporaryAccessPassMethods = serializer.deserializeObject(json.get("temporaryAccessPassMethods"), TemporaryAccessPassAuthenticationMethodCollectionPage.class);
108138
}
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
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.PasswordResetResponse;
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 Authentication Method Reset Password Parameter Set.
21+
*/
22+
public class AuthenticationMethodResetPasswordParameterSet {
23+
/**
24+
* The new Password.
25+
*
26+
*/
27+
@SerializedName(value = "newPassword", alternate = {"NewPassword"})
28+
@Expose
29+
@Nullable
30+
public String newPassword;
31+
32+
/**
33+
* The require Change On Next Sign In.
34+
*
35+
*/
36+
@SerializedName(value = "requireChangeOnNextSignIn", alternate = {"RequireChangeOnNextSignIn"})
37+
@Expose
38+
@Nullable
39+
public Boolean requireChangeOnNextSignIn;
40+
41+
42+
/**
43+
* Instiaciates a new AuthenticationMethodResetPasswordParameterSet
44+
*/
45+
public AuthenticationMethodResetPasswordParameterSet() {}
46+
/**
47+
* Instiaciates a new AuthenticationMethodResetPasswordParameterSet
48+
* @param builder builder bearing the parameters to initialize from
49+
*/
50+
protected AuthenticationMethodResetPasswordParameterSet(@Nonnull final AuthenticationMethodResetPasswordParameterSetBuilder builder) {
51+
this.newPassword = builder.newPassword;
52+
this.requireChangeOnNextSignIn = builder.requireChangeOnNextSignIn;
53+
}
54+
/**
55+
* Gets a new builder for the body
56+
* @return a new builder
57+
*/
58+
@Nonnull
59+
public static AuthenticationMethodResetPasswordParameterSetBuilder newBuilder() {
60+
return new AuthenticationMethodResetPasswordParameterSetBuilder();
61+
}
62+
/**
63+
* Fluent builder for the AuthenticationMethodResetPasswordParameterSet
64+
*/
65+
public static final class AuthenticationMethodResetPasswordParameterSetBuilder {
66+
/**
67+
* The newPassword parameter value
68+
*/
69+
@Nullable
70+
protected String newPassword;
71+
/**
72+
* Sets the NewPassword
73+
* @param val the value to set it to
74+
* @return the current builder object
75+
*/
76+
@Nonnull
77+
public AuthenticationMethodResetPasswordParameterSetBuilder withNewPassword(@Nullable final String val) {
78+
this.newPassword = val;
79+
return this;
80+
}
81+
/**
82+
* The requireChangeOnNextSignIn parameter value
83+
*/
84+
@Nullable
85+
protected Boolean requireChangeOnNextSignIn;
86+
/**
87+
* Sets the RequireChangeOnNextSignIn
88+
* @param val the value to set it to
89+
* @return the current builder object
90+
*/
91+
@Nonnull
92+
public AuthenticationMethodResetPasswordParameterSetBuilder withRequireChangeOnNextSignIn(@Nullable final Boolean val) {
93+
this.requireChangeOnNextSignIn = val;
94+
return this;
95+
}
96+
/**
97+
* Instanciates a new AuthenticationMethodResetPasswordParameterSetBuilder
98+
*/
99+
@Nullable
100+
protected AuthenticationMethodResetPasswordParameterSetBuilder(){}
101+
/**
102+
* Buils the resulting body object to be passed to the request
103+
* @return the body object to pass to the request
104+
*/
105+
@Nonnull
106+
public AuthenticationMethodResetPasswordParameterSet build() {
107+
return new AuthenticationMethodResetPasswordParameterSet(this);
108+
}
109+
}
110+
/**
111+
* Gets the functions options from the properties that have been set
112+
* @return a list of function options for the request
113+
*/
114+
@Nonnull
115+
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
116+
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
117+
if(this.newPassword != null) {
118+
result.add(new com.microsoft.graph.options.FunctionOption("newPassword", newPassword));
119+
}
120+
if(this.requireChangeOnNextSignIn != null) {
121+
result.add(new com.microsoft.graph.options.FunctionOption("requireChangeOnNextSignIn", requireChangeOnNextSignIn));
122+
}
123+
return result;
124+
}
125+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
import com.microsoft.graph.models.CrossTenantAccessPolicyConfigurationDefault;
13+
import com.microsoft.graph.models.CrossTenantAccessPolicyConfigurationPartner;
14+
import com.microsoft.graph.models.PolicyBase;
15+
import com.microsoft.graph.requests.CrossTenantAccessPolicyConfigurationPartnerCollectionPage;
16+
17+
18+
import com.google.gson.JsonObject;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.annotations.Expose;
21+
import javax.annotation.Nullable;
22+
import javax.annotation.Nonnull;
23+
24+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
25+
26+
/**
27+
* The class for the Cross Tenant Access Policy.
28+
*/
29+
public class CrossTenantAccessPolicy extends PolicyBase implements IJsonBackedObject {
30+
31+
32+
/**
33+
* The Default.
34+
* Defines the default configuration for how your organization interacts with external Azure Active Directory organizations.
35+
*/
36+
@SerializedName(value = "default", alternate = {"Default"})
37+
@Expose
38+
@Nullable
39+
public CrossTenantAccessPolicyConfigurationDefault msgraphDefault;
40+
41+
/**
42+
* The Partners.
43+
* Defines partner-specific configurations for external Azure Active Directory organizations.
44+
*/
45+
@SerializedName(value = "partners", alternate = {"Partners"})
46+
@Expose
47+
@Nullable
48+
public CrossTenantAccessPolicyConfigurationPartnerCollectionPage partners;
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+
if (json.has("partners")) {
61+
partners = serializer.deserializeObject(json.get("partners"), CrossTenantAccessPolicyConfigurationPartnerCollectionPage.class);
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)