-
Notifications
You must be signed in to change notification settings - Fork 134
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 #1446 from microsoftgraph/v1.0/pipelinebuild/114661
Generated models and request builders
- Loading branch information
Showing
53 changed files
with
2,187 additions
and
101 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
67 changes: 67 additions & 0 deletions
67
src/main/java/com/microsoft/graph/externalconnectors/models/ExternalActivity.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,67 @@ | ||
// 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.externalconnectors.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.microsoft.graph.externalconnectors.models.ExternalActivityType; | ||
import com.microsoft.graph.externalconnectors.models.Identity; | ||
import com.microsoft.graph.models.Entity; | ||
|
||
|
||
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 External Activity. | ||
*/ | ||
public class ExternalActivity extends Entity implements IJsonBackedObject { | ||
|
||
|
||
/** | ||
* The Start Date Time. | ||
* The date and time when the particular activity occurred. The DateTimeOffset 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. | ||
*/ | ||
@SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) | ||
@Expose | ||
@Nullable | ||
public java.time.OffsetDateTime startDateTime; | ||
|
||
/** | ||
* The Type. | ||
* The type of activity performed. The possible values are: viewed, modified, created, commented, unknownFutureValue. | ||
*/ | ||
@SerializedName(value = "type", alternate = {"Type"}) | ||
@Expose | ||
@Nullable | ||
public ExternalActivityType type; | ||
|
||
/** | ||
* The Performed By. | ||
* Represents an identity used to identify who is responsible for the activity. | ||
*/ | ||
@SerializedName(value = "performedBy", alternate = {"PerformedBy"}) | ||
@Expose | ||
@Nullable | ||
public Identity performedBy; | ||
|
||
|
||
/** | ||
* 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) { | ||
|
||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
src/main/java/com/microsoft/graph/externalconnectors/models/ExternalActivityResult.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,48 @@ | ||
// 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.externalconnectors.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.microsoft.graph.models.PublicError; | ||
import com.microsoft.graph.externalconnectors.models.ExternalActivity; | ||
|
||
|
||
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 External Activity Result. | ||
*/ | ||
public class ExternalActivityResult extends ExternalActivity implements IJsonBackedObject { | ||
|
||
|
||
/** | ||
* The Error. | ||
* Error information that explains the failure to process an external activity. | ||
*/ | ||
@SerializedName(value = "error", alternate = {"Error"}) | ||
@Expose | ||
@Nullable | ||
public PublicError error; | ||
|
||
|
||
/** | ||
* 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) { | ||
|
||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/com/microsoft/graph/externalconnectors/models/ExternalActivityType.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,38 @@ | ||
// Template Source: Enum.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.externalconnectors.models; | ||
|
||
|
||
/** | ||
* The Enum External Activity Type. | ||
*/ | ||
public enum ExternalActivityType | ||
{ | ||
/** | ||
* viewed | ||
*/ | ||
VIEWED, | ||
/** | ||
* modified | ||
*/ | ||
MODIFIED, | ||
/** | ||
* created | ||
*/ | ||
CREATED, | ||
/** | ||
* commented | ||
*/ | ||
COMMENTED, | ||
/** | ||
* unknown Future Value | ||
*/ | ||
UNKNOWN_FUTURE_VALUE, | ||
/** | ||
* For ExternalActivityType values that were not expected from the service | ||
*/ | ||
UNEXPECTED_VALUE | ||
} |
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
98 changes: 98 additions & 0 deletions
98
.../com/microsoft/graph/externalconnectors/models/ExternalItemAddActivitiesParameterSet.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,98 @@ | ||
// 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.externalconnectors.models; | ||
|
||
import com.microsoft.graph.externalconnectors.models.ExternalActivity; | ||
import com.microsoft.graph.externalconnectors.models.ExternalActivityResult; | ||
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 External Item Add Activities Parameter Set. | ||
*/ | ||
public class ExternalItemAddActivitiesParameterSet { | ||
/** | ||
* The activities. | ||
* | ||
*/ | ||
@SerializedName(value = "activities", alternate = {"Activities"}) | ||
@Expose | ||
@Nullable | ||
public java.util.List<ExternalActivity> activities; | ||
|
||
|
||
/** | ||
* Instiaciates a new ExternalItemAddActivitiesParameterSet | ||
*/ | ||
public ExternalItemAddActivitiesParameterSet() {} | ||
/** | ||
* Instiaciates a new ExternalItemAddActivitiesParameterSet | ||
* @param builder builder bearing the parameters to initialize from | ||
*/ | ||
protected ExternalItemAddActivitiesParameterSet(@Nonnull final ExternalItemAddActivitiesParameterSetBuilder builder) { | ||
this.activities = builder.activities; | ||
} | ||
/** | ||
* Gets a new builder for the body | ||
* @return a new builder | ||
*/ | ||
@Nonnull | ||
public static ExternalItemAddActivitiesParameterSetBuilder newBuilder() { | ||
return new ExternalItemAddActivitiesParameterSetBuilder(); | ||
} | ||
/** | ||
* Fluent builder for the ExternalItemAddActivitiesParameterSet | ||
*/ | ||
public static final class ExternalItemAddActivitiesParameterSetBuilder { | ||
/** | ||
* The activities parameter value | ||
*/ | ||
@Nullable | ||
protected java.util.List<ExternalActivity> activities; | ||
/** | ||
* Sets the Activities | ||
* @param val the value to set it to | ||
* @return the current builder object | ||
*/ | ||
@Nonnull | ||
public ExternalItemAddActivitiesParameterSetBuilder withActivities(@Nullable final java.util.List<ExternalActivity> val) { | ||
this.activities = val; | ||
return this; | ||
} | ||
/** | ||
* Instanciates a new ExternalItemAddActivitiesParameterSetBuilder | ||
*/ | ||
@Nullable | ||
protected ExternalItemAddActivitiesParameterSetBuilder(){} | ||
/** | ||
* Buils the resulting body object to be passed to the request | ||
* @return the body object to pass to the request | ||
*/ | ||
@Nonnull | ||
public ExternalItemAddActivitiesParameterSet build() { | ||
return new ExternalItemAddActivitiesParameterSet(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.activities != null) { | ||
result.add(new com.microsoft.graph.options.FunctionOption("activities", activities)); | ||
} | ||
return result; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
.../java/com/microsoft/graph/externalconnectors/requests/ExternalActivityCollectionPage.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,40 @@ | ||
// Template Source: BaseEntityCollectionPage.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.externalconnectors.requests; | ||
import com.microsoft.graph.externalconnectors.models.ExternalActivity; | ||
import com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionRequestBuilder; | ||
import javax.annotation.Nullable; | ||
import javax.annotation.Nonnull; | ||
import com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionResponse; | ||
import com.microsoft.graph.http.BaseCollectionPage; | ||
|
||
// **NOTE** This file was generated by a tool and any changes will be overwritten. | ||
|
||
/** | ||
* The class for the External Activity Collection Page. | ||
*/ | ||
public class ExternalActivityCollectionPage extends BaseCollectionPage<ExternalActivity, ExternalActivityCollectionRequestBuilder> { | ||
|
||
/** | ||
* A collection page for ExternalActivity | ||
* | ||
* @param response the serialized ExternalActivityCollectionResponse from the service | ||
* @param builder the request builder for the next collection page | ||
*/ | ||
public ExternalActivityCollectionPage(@Nonnull final ExternalActivityCollectionResponse response, @Nonnull final ExternalActivityCollectionRequestBuilder builder) { | ||
super(response, builder); | ||
} | ||
|
||
/** | ||
* Creates the collection page for ExternalActivity | ||
* | ||
* @param pageContents the contents of this page | ||
* @param nextRequestBuilder the request builder for the next page | ||
*/ | ||
public ExternalActivityCollectionPage(@Nonnull final java.util.List<ExternalActivity> pageContents, @Nullable final ExternalActivityCollectionRequestBuilder nextRequestBuilder) { | ||
super(pageContents, nextRequestBuilder); | ||
} | ||
} |
Oops, something went wrong.