-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1505 from microsoftgraph/v1.0/pipelinebuild/120562
Generated models and request builders
- Loading branch information
Showing
21 changed files
with
838 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/main/java/com/microsoft/graph/models/DriveItemPermanentDeleteParameterSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<com.microsoft.graph.options.FunctionOption> getFunctionOptions() { | ||
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>(); | ||
return result; | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
src/main/java/com/microsoft/graph/models/TenantInformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) { | ||
|
||
} | ||
} |
97 changes: 97 additions & 0 deletions
97
...crosoft/graph/models/TenantRelationshipFindTenantInformationByDomainNameParameterSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<com.microsoft.graph.options.FunctionOption> getFunctionOptions() { | ||
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>(); | ||
if(this.domainName != null) { | ||
result.add(new com.microsoft.graph.options.FunctionOption("domainName", domainName)); | ||
} | ||
return result; | ||
} | ||
} |
Oops, something went wrong.