Skip to content

Commit

Permalink
Merge pull request #1446 from microsoftgraph/v1.0/pipelinebuild/114661
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
ramsessanchez authored May 19, 2023
2 parents ac9c75c + 9d1c345 commit 5126533
Show file tree
Hide file tree
Showing 53 changed files with 2,187 additions and 101 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [5.58.0] - 2023-05-19

### Added

- OnlineMeetingGetVirtualAppointmentJoinWebUrl model and related requests.
- SiteGetAllSites model and related requests.
- The following models and requests have been added to the externalConnectors namespace:
- ExternalActivity models and related requests.
- ExternalItemAddActivities models and related requests.
- IdentityReference and IdentityWithReference requests.

## [5.57.0] - 2023-05-12

### Added
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {
dependencies {
// Include the sdk as a dependency
implementation 'com.microsoft.graph:microsoft-graph:5.57.0'
implementation 'com.microsoft.graph:microsoft-graph:5.58.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
Expand All @@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml
<!-- Include the sdk as a dependency -->
<groupId>com.microsoft.graph</groupId>
<artifactId>microsoft-graph</artifactId>
<version>5.57.0</version>
<version>5.58.0</version>
</dependency>
<dependency>
<!-- This dependency is only needed if you are using the TokenCredentialAuthProvider -->
Expand Down Expand Up @@ -188,5 +188,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI






3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ org.gradle.caching=true
mavenGroupId = com.microsoft.graph
mavenArtifactId = microsoft-graph
mavenMajorVersion = 5
mavenMinorVersion = 57
mavenMinorVersion = 58
mavenPatchVersion = 0
mavenArtifactSuffix =

Expand Down Expand Up @@ -111,5 +111,6 @@ mavenCentralPublishingEnabled=false






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) {

}
}
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) {

}
}
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
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.microsoft.graph.externalconnectors.models.ExternalItemContent;
import com.microsoft.graph.externalconnectors.models.Properties;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionPage;


import com.google.gson.JsonObject;
Expand Down Expand Up @@ -56,6 +57,15 @@ public class ExternalItem extends Entity implements IJsonBackedObject {
@Nullable
public Properties properties;

/**
* The Activities.
* Returns a list of activities performed on the item. Write-only.
*/
@SerializedName(value = "activities", alternate = {"Activities"})
@Expose
@Nullable
public com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionPage activities;


/**
* Sets the raw JSON object
Expand All @@ -65,5 +75,9 @@ public class ExternalItem extends Entity implements IJsonBackedObject {
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {


if (json.has("activities")) {
activities = serializer.deserializeObject(json.get("activities"), com.microsoft.graph.externalconnectors.requests.ExternalActivityCollectionPage.class);
}
}
}
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;
}
}
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);
}
}
Loading

0 comments on commit 5126533

Please sign in to comment.