diff --git a/CHANGELOG.md b/CHANGELOG.md index 698baf8fefa..734f772bab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [5.65.0] - 2023-07-20 + +### Added + +- DriveItemPermanentDelete derived types and requests. +- TenantInformation model, derived types and requests. + ## [5.64.0] - 2023-07-13 ### Added diff --git a/README.md b/README.md index b1280e5896b..1dcf621b87a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ repositories { dependencies { // Include the sdk as a dependency - implementation 'com.microsoft.graph:microsoft-graph:5.64.0' + implementation 'com.microsoft.graph:microsoft-graph:5.65.0' // Uncomment the line below if you are building an android application //implementation 'com.google.guava:guava:30.1.1-android' // This dependency is only needed if you are using the TokenCrendentialAuthProvider @@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 5.64.0 + 5.65.0 @@ -195,5 +195,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index 3e27e4da532..8ffa94e2172 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 5 -mavenMinorVersion = 64 +mavenMinorVersion = 65 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -118,5 +118,6 @@ mavenCentralPublishingEnabled=false + diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index 22e23f1d5be..3f07379b860 100644 --- a/src/main/java/com/microsoft/graph/info/Constants.java +++ b/src/main/java/com/microsoft/graph/info/Constants.java @@ -18,7 +18,7 @@ private Constants() { /** The client secret to use for unit testing */ public static final String CLIENTSECRET = "clientsecret"; /** The SDK version */ - public static final String VERSION_NAME = "5.64.0"; + public static final String VERSION_NAME = "5.65.0"; } @@ -95,5 +95,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/ComplianceInformation.java b/src/main/java/com/microsoft/graph/models/ComplianceInformation.java index b24cfdc0e1e..2ddcdaf7292 100644 --- a/src/main/java/com/microsoft/graph/models/ComplianceInformation.java +++ b/src/main/java/com/microsoft/graph/models/ComplianceInformation.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Certification Controls. - * Collection of the certification controls associated with certification + * Collection of the certification controls associated with the certification. */ @SerializedName(value = "certificationControls", alternate = {"CertificationControls"}) @Expose @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Certification Name. - * Compliance certification name (for example, ISO 27018:2014, GDPR, FedRAMP, NIST 800-171) + * The name of the compliance certification, for example, ISO 27018:2014, GDPR, FedRAMP, and NIST 800-171. */ @SerializedName(value = "certificationName", alternate = {"CertificationName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DirectoryAudit.java b/src/main/java/com/microsoft/graph/models/DirectoryAudit.java index 678f7d38ee1..8f6a706808e 100644 --- a/src/main/java/com/microsoft/graph/models/DirectoryAudit.java +++ b/src/main/java/com/microsoft/graph/models/DirectoryAudit.java @@ -41,7 +41,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Activity Display Name. - * Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For full list, see Azure AD activity list. + * Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. */ @SerializedName(value = "activityDisplayName", alternate = {"ActivityDisplayName"}) @Expose @@ -59,7 +59,7 @@ public class DirectoryAudit extends Entity implements IJsonBackedObject { /** * The Category. - * Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. + * Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Azure AD audit log categories and activities. */ @SerializedName(value = "category", alternate = {"Category"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Domain.java b/src/main/java/com/microsoft/graph/models/Domain.java index cba9309cf80..83ad295de23 100644 --- a/src/main/java/com/microsoft/graph/models/Domain.java +++ b/src/main/java/com/microsoft/graph/models/Domain.java @@ -31,7 +31,7 @@ public class Domain extends Entity implements IJsonBackedObject { /** * The Authentication Type. - * Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. This property is read-only and is not nullable. + * Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. */ @SerializedName(value = "authenticationType", alternate = {"AuthenticationType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DriveItemPermanentDeleteParameterSet.java b/src/main/java/com/microsoft/graph/models/DriveItemPermanentDeleteParameterSet.java new file mode 100644 index 00000000000..6bff721caa4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DriveItemPermanentDeleteParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Permanent Delete Parameter Set. + */ +public class DriveItemPermanentDeleteParameterSet { + + /** + * Instiaciates a new DriveItemPermanentDeleteParameterSet + */ + public DriveItemPermanentDeleteParameterSet() {} + /** + * Instiaciates a new DriveItemPermanentDeleteParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected DriveItemPermanentDeleteParameterSet(@Nonnull final DriveItemPermanentDeleteParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static DriveItemPermanentDeleteParameterSetBuilder newBuilder() { + return new DriveItemPermanentDeleteParameterSetBuilder(); + } + /** + * Fluent builder for the DriveItemPermanentDeleteParameterSet + */ + public static final class DriveItemPermanentDeleteParameterSetBuilder { + /** + * Instanciates a new DriveItemPermanentDeleteParameterSetBuilder + */ + @Nullable + protected DriveItemPermanentDeleteParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public DriveItemPermanentDeleteParameterSet build() { + return new DriveItemPermanentDeleteParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/TenantInformation.java b/src/main/java/com/microsoft/graph/models/TenantInformation.java new file mode 100644 index 00000000000..0e220fdd905 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TenantInformation.java @@ -0,0 +1,86 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Tenant Information. + */ +public class TenantInformation implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Default Domain Name. + * + */ + @SerializedName(value = "defaultDomainName", alternate = {"DefaultDomainName"}) + @Expose + @Nullable + public String defaultDomainName; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Federation Brand Name. + * + */ + @SerializedName(value = "federationBrandName", alternate = {"FederationBrandName"}) + @Expose + @Nullable + public String federationBrandName; + + /** + * The Tenant Id. + * + */ + @SerializedName(value = "tenantId", alternate = {"TenantId"}) + @Expose + @Nullable + public String tenantId; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/TenantRelationshipFindTenantInformationByDomainNameParameterSet.java b/src/main/java/com/microsoft/graph/models/TenantRelationshipFindTenantInformationByDomainNameParameterSet.java new file mode 100644 index 00000000000..95e00bef8e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TenantRelationshipFindTenantInformationByDomainNameParameterSet.java @@ -0,0 +1,97 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.TenantInformation; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Tenant Relationship Find Tenant Information By Domain Name Parameter Set. + */ +public class TenantRelationshipFindTenantInformationByDomainNameParameterSet { + /** + * The domain Name. + * + */ + @SerializedName(value = "domainName", alternate = {"DomainName"}) + @Expose + @Nullable + public String domainName; + + + /** + * Instiaciates a new TenantRelationshipFindTenantInformationByDomainNameParameterSet + */ + public TenantRelationshipFindTenantInformationByDomainNameParameterSet() {} + /** + * Instiaciates a new TenantRelationshipFindTenantInformationByDomainNameParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected TenantRelationshipFindTenantInformationByDomainNameParameterSet(@Nonnull final TenantRelationshipFindTenantInformationByDomainNameParameterSetBuilder builder) { + this.domainName = builder.domainName; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static TenantRelationshipFindTenantInformationByDomainNameParameterSetBuilder newBuilder() { + return new TenantRelationshipFindTenantInformationByDomainNameParameterSetBuilder(); + } + /** + * Fluent builder for the TenantRelationshipFindTenantInformationByDomainNameParameterSet + */ + public static final class TenantRelationshipFindTenantInformationByDomainNameParameterSetBuilder { + /** + * The domainName parameter value + */ + @Nullable + protected String domainName; + /** + * Sets the DomainName + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public TenantRelationshipFindTenantInformationByDomainNameParameterSetBuilder withDomainName(@Nullable final String val) { + this.domainName = val; + return this; + } + /** + * Instanciates a new TenantRelationshipFindTenantInformationByDomainNameParameterSetBuilder + */ + @Nullable + protected TenantRelationshipFindTenantInformationByDomainNameParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public TenantRelationshipFindTenantInformationByDomainNameParameterSet build() { + return new TenantRelationshipFindTenantInformationByDomainNameParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + if(this.domainName != null) { + result.add(new com.microsoft.graph.options.FunctionOption("domainName", domainName)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/TenantRelationshipFindTenantInformationByTenantIdParameterSet.java b/src/main/java/com/microsoft/graph/models/TenantRelationshipFindTenantInformationByTenantIdParameterSet.java new file mode 100644 index 00000000000..5887b3fb450 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/TenantRelationshipFindTenantInformationByTenantIdParameterSet.java @@ -0,0 +1,97 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.TenantInformation; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Tenant Relationship Find Tenant Information By Tenant Id Parameter Set. + */ +public class TenantRelationshipFindTenantInformationByTenantIdParameterSet { + /** + * The tenant Id. + * + */ + @SerializedName(value = "tenantId", alternate = {"TenantId"}) + @Expose + @Nullable + public String tenantId; + + + /** + * Instiaciates a new TenantRelationshipFindTenantInformationByTenantIdParameterSet + */ + public TenantRelationshipFindTenantInformationByTenantIdParameterSet() {} + /** + * Instiaciates a new TenantRelationshipFindTenantInformationByTenantIdParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected TenantRelationshipFindTenantInformationByTenantIdParameterSet(@Nonnull final TenantRelationshipFindTenantInformationByTenantIdParameterSetBuilder builder) { + this.tenantId = builder.tenantId; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static TenantRelationshipFindTenantInformationByTenantIdParameterSetBuilder newBuilder() { + return new TenantRelationshipFindTenantInformationByTenantIdParameterSetBuilder(); + } + /** + * Fluent builder for the TenantRelationshipFindTenantInformationByTenantIdParameterSet + */ + public static final class TenantRelationshipFindTenantInformationByTenantIdParameterSetBuilder { + /** + * The tenantId parameter value + */ + @Nullable + protected String tenantId; + /** + * Sets the TenantId + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public TenantRelationshipFindTenantInformationByTenantIdParameterSetBuilder withTenantId(@Nullable final String val) { + this.tenantId = val; + return this; + } + /** + * Instanciates a new TenantRelationshipFindTenantInformationByTenantIdParameterSetBuilder + */ + @Nullable + protected TenantRelationshipFindTenantInformationByTenantIdParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public TenantRelationshipFindTenantInformationByTenantIdParameterSet build() { + return new TenantRelationshipFindTenantInformationByTenantIdParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + if(this.tenantId != null) { + result.add(new com.microsoft.graph.options.FunctionOption("tenantId", tenantId)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemPermanentDeleteRequest.java b/src/main/java/com/microsoft/graph/requests/DriveItemPermanentDeleteRequest.java new file mode 100644 index 00000000000..c482c50205c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DriveItemPermanentDeleteRequest.java @@ -0,0 +1,52 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.DriveItem; +import com.microsoft.graph.requests.DriveItemPermanentDeleteRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Permanent Delete Request. + */ +public class DriveItemPermanentDeleteRequest extends BaseRequest { + /** + * The request for this DriveItemPermanentDelete + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemPermanentDeleteRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** + * Creates the DriveItemPermanentDelete + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, null); + } + + /** + * Creates the DriveItemPermanentDelete + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemPermanentDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DriveItemPermanentDeleteRequestBuilder.java new file mode 100644 index 00000000000..73419603141 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/DriveItemPermanentDeleteRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.DriveItemPermanentDeleteRequest; +import com.microsoft.graph.models.DriveItem; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Permanent Delete Request Builder. + */ +public class DriveItemPermanentDeleteRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this DriveItemPermanentDelete + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemPermanentDeleteRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the DriveItemPermanentDeleteRequest + * + * @param requestOptions the options for the request + * @return the DriveItemPermanentDeleteRequest instance + */ + @Nonnull + public DriveItemPermanentDeleteRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the DriveItemPermanentDeleteRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the DriveItemPermanentDeleteRequest instance + */ + @Nonnull + public DriveItemPermanentDeleteRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final DriveItemPermanentDeleteRequest request = new DriveItemPermanentDeleteRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java index dca946ed8f3..fbe6d73f9be 100644 --- a/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java @@ -351,6 +351,15 @@ public DriveItemInviteCollectionRequestBuilder invite(@Nonnull final DriveItemIn return new DriveItemInviteCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.invite"), getClient(), null, parameters); } + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public DriveItemPermanentDeleteRequestBuilder permanentDelete() { + return new DriveItemPermanentDeleteRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.permanentDelete"), getClient(), null); + } + /** * Gets a builder to execute the method * @return the request builder diff --git a/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java b/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java index c8c4a872ba1..0bf21b87307 100644 --- a/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java @@ -1139,6 +1139,16 @@ public com.microsoft.graph.requests.PolicyRootRequestBuilder policies() { return new com.microsoft.graph.requests.PolicyRootRequestBuilder(getServiceRoot() + "/policies", this, null); } + /** + * Gets the GraphServiceRequestBuilder + * + * @return the TenantRelationship + */ + @Nonnull + public com.microsoft.graph.requests.TenantRelationshipRequestBuilder tenantRelationships() { + return new com.microsoft.graph.requests.TenantRelationshipRequestBuilder(getServiceRoot() + "/tenantRelationships", this, null); + } + /** * Gets the GraphServiceRequestBuilder * @@ -1239,16 +1249,6 @@ public com.microsoft.graph.requests.PlannerRequestBuilder planner() { return new com.microsoft.graph.requests.PlannerRequestBuilder(getServiceRoot() + "/planner", this, null); } - /** - * Gets the GraphServiceRequestBuilder - * - * @return the TenantRelationship - */ - @Nonnull - public com.microsoft.graph.requests.TenantRelationshipRequestBuilder tenantRelationships() { - return new com.microsoft.graph.requests.TenantRelationshipRequestBuilder(getServiceRoot() + "/tenantRelationships", this, null); - } - /** * Gets the GraphServiceRequestBuilder * diff --git a/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByDomainNameRequest.java b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByDomainNameRequest.java new file mode 100644 index 00000000000..538ec8d9f5a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByDomainNameRequest.java @@ -0,0 +1,81 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.TenantInformation; +import com.microsoft.graph.models.TenantRelationship; +import com.microsoft.graph.requests.TenantRelationshipFindTenantInformationByDomainNameRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.TenantRelationshipFindTenantInformationByDomainNameParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Tenant Relationship Find Tenant Information By Domain Name Request. + */ +public class TenantRelationshipFindTenantInformationByDomainNameRequest extends BaseRequest { + /** + * The request for this TenantRelationshipFindTenantInformationByDomainName + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TenantRelationshipFindTenantInformationByDomainNameRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TenantInformation.class); + } + + /** + * Gets the TenantInformation + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TenantInformation + * + * @return the TenantInformation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public TenantInformation get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TenantRelationshipFindTenantInformationByDomainNameRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TenantRelationshipFindTenantInformationByDomainNameRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByDomainNameRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByDomainNameRequestBuilder.java new file mode 100644 index 00000000000..b1a3cebb8c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByDomainNameRequestBuilder.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.TenantRelationshipFindTenantInformationByDomainNameRequest; +import com.microsoft.graph.models.TenantRelationship; +import com.microsoft.graph.models.TenantInformation; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.models.TenantRelationshipFindTenantInformationByDomainNameParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Tenant Relationship Find Tenant Information By Domain Name Request Builder. + */ +public class TenantRelationshipFindTenantInformationByDomainNameRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this TenantRelationshipFindTenantInformationByDomainName + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TenantRelationshipFindTenantInformationByDomainNameRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this TenantRelationshipFindTenantInformationByDomainName + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public TenantRelationshipFindTenantInformationByDomainNameRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final TenantRelationshipFindTenantInformationByDomainNameParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the TenantRelationshipFindTenantInformationByDomainNameRequest + * + * @param requestOptions the options for the request + * @return the TenantRelationshipFindTenantInformationByDomainNameRequest instance + */ + @Nonnull + public TenantRelationshipFindTenantInformationByDomainNameRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the TenantRelationshipFindTenantInformationByDomainNameRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the TenantRelationshipFindTenantInformationByDomainNameRequest instance + */ + @Nonnull + public TenantRelationshipFindTenantInformationByDomainNameRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final TenantRelationshipFindTenantInformationByDomainNameRequest request = new TenantRelationshipFindTenantInformationByDomainNameRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByTenantIdRequest.java b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByTenantIdRequest.java new file mode 100644 index 00000000000..942a87155bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByTenantIdRequest.java @@ -0,0 +1,81 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.TenantInformation; +import com.microsoft.graph.models.TenantRelationship; +import com.microsoft.graph.requests.TenantRelationshipFindTenantInformationByTenantIdRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.TenantRelationshipFindTenantInformationByTenantIdParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Tenant Relationship Find Tenant Information By Tenant Id Request. + */ +public class TenantRelationshipFindTenantInformationByTenantIdRequest extends BaseRequest { + /** + * The request for this TenantRelationshipFindTenantInformationByTenantId + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TenantRelationshipFindTenantInformationByTenantIdRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, TenantInformation.class); + } + + /** + * Gets the TenantInformation + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the TenantInformation + * + * @return the TenantInformation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public TenantInformation get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public TenantRelationshipFindTenantInformationByTenantIdRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public TenantRelationshipFindTenantInformationByTenantIdRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByTenantIdRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByTenantIdRequestBuilder.java new file mode 100644 index 00000000000..6dd6f95e2fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/TenantRelationshipFindTenantInformationByTenantIdRequestBuilder.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.TenantRelationshipFindTenantInformationByTenantIdRequest; +import com.microsoft.graph.models.TenantRelationship; +import com.microsoft.graph.models.TenantInformation; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.models.TenantRelationshipFindTenantInformationByTenantIdParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Tenant Relationship Find Tenant Information By Tenant Id Request Builder. + */ +public class TenantRelationshipFindTenantInformationByTenantIdRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this TenantRelationshipFindTenantInformationByTenantId + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public TenantRelationshipFindTenantInformationByTenantIdRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + /** + * The request builder for this TenantRelationshipFindTenantInformationByTenantId + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public TenantRelationshipFindTenantInformationByTenantIdRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final TenantRelationshipFindTenantInformationByTenantIdParameterSet parameters) { + super(requestUrl, client, requestOptions); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + + /** + * Creates the TenantRelationshipFindTenantInformationByTenantIdRequest + * + * @param requestOptions the options for the request + * @return the TenantRelationshipFindTenantInformationByTenantIdRequest instance + */ + @Nonnull + public TenantRelationshipFindTenantInformationByTenantIdRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the TenantRelationshipFindTenantInformationByTenantIdRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the TenantRelationshipFindTenantInformationByTenantIdRequest instance + */ + @Nonnull + public TenantRelationshipFindTenantInformationByTenantIdRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final TenantRelationshipFindTenantInformationByTenantIdRequest request = new TenantRelationshipFindTenantInformationByTenantIdRequest( + getRequestUrl(), + getClient(), + requestOptions); + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequest.java b/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequest.java index 5528de76d9a..29b20bf6af4 100644 --- a/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequest.java +++ b/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequest.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.TenantRelationship; +import com.microsoft.graph.models.TenantInformation; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; diff --git a/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java index 60efb67480a..df9985a4f81 100644 --- a/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/TenantRelationshipRequestBuilder.java @@ -8,12 +8,15 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.TenantRelationship; +import com.microsoft.graph.models.TenantInformation; import java.util.Arrays; import java.util.EnumSet; import javax.annotation.Nullable; import javax.annotation.Nonnull; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.models.TenantRelationshipFindTenantInformationByDomainNameParameterSet; +import com.microsoft.graph.models.TenantRelationshipFindTenantInformationByTenantIdParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. @@ -96,4 +99,24 @@ public com.microsoft.graph.requests.DelegatedAdminRelationshipCollectionRequestB public com.microsoft.graph.requests.DelegatedAdminRelationshipRequestBuilder delegatedAdminRelationships(@Nonnull final String id) { return new com.microsoft.graph.requests.DelegatedAdminRelationshipRequestBuilder(getRequestUrlWithAdditionalSegment("delegatedAdminRelationships") + "/" + id, getClient(), null); } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public TenantRelationshipFindTenantInformationByDomainNameRequestBuilder findTenantInformationByDomainName(@Nonnull final TenantRelationshipFindTenantInformationByDomainNameParameterSet parameters) { + return new TenantRelationshipFindTenantInformationByDomainNameRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.findTenantInformationByDomainName"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public TenantRelationshipFindTenantInformationByTenantIdRequestBuilder findTenantInformationByTenantId(@Nonnull final TenantRelationshipFindTenantInformationByTenantIdParameterSet parameters) { + return new TenantRelationshipFindTenantInformationByTenantIdRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.findTenantInformationByTenantId"), getClient(), null, parameters); + } }