Skip to content

Commit

Permalink
Merge pull request #1230 from microsoftgraph/v1.0/pipelinebuild/64725
Browse files Browse the repository at this point in the history
Generated v1.0 models and request builders using Typewriter
  • Loading branch information
andrueastman authored Jan 26, 2022
2 parents 8b5d336 + a7c89cf commit e2c1e50
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ public AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource()

/// <summary>
/// Gets or sets accessPackageDisplayName.
/// Display name of the access package to which access has been granted.
/// </summary>
[JsonPropertyName("accessPackageDisplayName")]
public string AccessPackageDisplayName { get; set; }

/// <summary>
/// Gets or sets accessPackageId.
/// Identifier of the access package to which access has been granted.
/// </summary>
[JsonPropertyName("accessPackageId")]
public string AccessPackageId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public AccessReviewInstanceDecisionItemAzureRoleResource()

/// <summary>
/// Gets or sets scope.
/// Details of the scope this role is associated with.
/// </summary>
[JsonPropertyName("scope")]
public AccessReviewInstanceDecisionItemResource Scope { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.Graph/Generated/model/AdministrativeUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public AdministrativeUnit()

/// <summary>
/// Gets or sets description.
/// An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith).
/// An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search.
/// </summary>
[JsonPropertyName("description")]
public string Description { get; set; }
Expand All @@ -51,7 +51,7 @@ public AdministrativeUnit()

/// <summary>
/// Gets or sets members.
/// Users and groups that are members of this administrative unit. HTTP Methods: GET (list members), POST (add members), DELETE (remove members).
/// Users and groups that are members of this administrative unit. Supports $expand.
/// </summary>
[JsonPropertyName("members")]
public IAdministrativeUnitMembersCollectionWithReferencesPage Members { get; set; }
Expand All @@ -65,7 +65,7 @@ public AdministrativeUnit()

/// <summary>
/// Gets or sets scoped role members.
/// Scoped-role members of this administrative unit. HTTP Methods: GET (list scopedRoleMemberships), POST (add scopedRoleMembership), DELETE (remove scopedRoleMembership).
/// Scoped-role members of this administrative unit.
/// </summary>
[JsonPropertyName("scopedRoleMembers")]
public IAdministrativeUnitScopedRoleMembersCollectionPage ScopedRoleMembers { get; set; }
Expand Down
8 changes: 4 additions & 4 deletions src/Microsoft.Graph/Generated/model/DirectoryRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@ public DirectoryRole()

/// <summary>
/// Gets or sets description.
/// The description for the directory role. Read-only.
/// The description for the directory role. Read-only. Supports $filter (eq), $search, $select.
/// </summary>
[JsonPropertyName("description")]
public string Description { get; set; }

/// <summary>
/// Gets or sets display name.
/// The display name for the directory role. Read-only.
/// The display name for the directory role. Read-only. Supports $filter (eq), $search, $select.
/// </summary>
[JsonPropertyName("displayName")]
public string DisplayName { get; set; }

/// <summary>
/// Gets or sets role template id.
/// The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read only.
/// The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read only. Supports $filter (eq), $select.
/// </summary>
[JsonPropertyName("roleTemplateId")]
public string RoleTemplateId { get; set; }

/// <summary>
/// Gets or sets members.
/// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable.
/// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand.
/// </summary>
[JsonPropertyName("members")]
public IDirectoryRoleMembersCollectionWithReferencesPage Members { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,11 @@ public partial class DriveItemCreateLinkRequestBody
[JsonPropertyName("message")]
public string Message { get; set; }

/// <summary>
/// Gets or sets RetainInheritedPermissions.
/// </summary>
[JsonPropertyName("retainInheritedPermissions")]
public bool? RetainInheritedPermissions { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public partial class DriveItemInviteRequestBody
[JsonPropertyName("recipients")]
public IEnumerable<DriveRecipient> Recipients { get; set; }

/// <summary>
/// Gets or sets RetainInheritedPermissions.
/// </summary>
[JsonPropertyName("retainInheritedPermissions")]
public bool? RetainInheritedPermissions { get; set; }

/// <summary>
/// Gets or sets ExpirationDateTime.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Generated/model/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public Group()

/// <summary>
/// Gets or sets members.
/// Users, contacts, and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for security groups and mail-enabled security groups), DELETE (supported only for security groups) Read-only. Nullable. Supports $expand.
/// Members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&amp;$select=id,displayName&amp;$expand=members($select=id,userPrincipalName,displayName).
/// </summary>
[JsonPropertyName("members")]
public IGroupMembersCollectionWithReferencesPage Members { get; set; }
Expand Down Expand Up @@ -358,7 +358,7 @@ public Group()

/// <summary>
/// Gets or sets owners.
/// The owners of the group. The owners are a set of non-admin users who are allowed to modify this object. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $expand.
/// The owners of the group who can be users or service principals. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&amp;$select=id,displayName&amp;$expand=owners($select=id,userPrincipalName,displayName).
/// </summary>
[JsonPropertyName("owners")]
public IGroupOwnersCollectionWithReferencesPage Owners { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Generated/model/Identity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public partial class Identity

/// <summary>
/// Gets or sets displayName.
/// The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta.
/// The display name of the identity. This property is read-only.
/// </summary>
[JsonPropertyName("displayName")]
public string DisplayName { get; set; }

/// <summary>
/// Gets or sets id.
/// Unique identifier for the identity.
/// The identifier of the identity. This property is read-only.
/// </summary>
[JsonPropertyName("id")]
public string Id { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.Graph/Generated/model/IdentityProtectionRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public partial class IdentityProtectionRoot

/// <summary>
/// Gets or sets risk detections.
/// Risk detection in Azure AD Identity Protection and the associated information about the detection.
/// </summary>
[JsonPropertyName("riskDetections")]
public IIdentityProtectionRootRiskDetectionsCollectionPage RiskDetections { get; set; }
Expand All @@ -36,6 +37,7 @@ public partial class IdentityProtectionRoot

/// <summary>
/// Gets or sets risky users.
/// Users that are flagged as at-risk by Azure AD Identity Protection.
/// </summary>
[JsonPropertyName("riskyUsers")]
public IIdentityProtectionRootRiskyUsersCollectionPage RiskyUsers { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class ServiceAnnouncementAttachment : Entity

/// <summary>
/// Gets or sets content.
/// The attachment content.
/// </summary>
[JsonPropertyName("content")]
public Stream Content { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Generated/model/ServiceHealth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public partial class ServiceHealth : Entity

/// <summary>
/// Gets or sets status.
/// Show the overral service health status. Possible values are: serviceOperational, investigating, restoringService, verifyingService, serviceRestored, postIncidentReviewPublished, serviceDegradation, serviceInterruption, extendedRecovery, falsePositive, investigationSuspended, resolved, mitigatedExternal, mitigated, resolvedExternal, confirmed, reported, unknownFutureValue.
/// Show the overall service health status. Possible values are: serviceOperational, investigating, restoringService, verifyingService, serviceRestored, postIncidentReviewPublished, serviceDegradation, serviceInterruption, extendedRecovery, falsePositive, investigationSuspended, resolved, mitigatedExternal, mitigated, resolvedExternal, confirmed, reported, unknownFutureValue. For more details, see serviceHealthStatus values.
/// </summary>
[JsonPropertyName("status")]
public ServiceHealthStatus? Status { get; set; }

/// <summary>
/// Gets or sets issues.
/// A collection of issues happened on the service, with detailed information for each issue.
/// A collection of issues that happened on the service, with detailed information for each issue.
/// </summary>
[JsonPropertyName("issues")]
public IServiceHealthIssuesCollectionPage Issues { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Generated/model/ServiceHealthIssue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public ServiceHealthIssue()

/// <summary>
/// Gets or sets status.
/// The status of the service issue. Possible values are: serviceOperational, investigating, restoringService, verifyingService, serviceRestored, postIncidentReviewPublished, serviceDegradation, serviceInterruption, extendedRecovery, falsePositive, investigationSuspended, resolved, mitigatedExternal, mitigated, resolvedExternal, confirmed, reported, unknownFutureValue.
/// The status of the service issue. Possible values are: serviceOperational, investigating, restoringService, verifyingService, serviceRestored, postIncidentReviewPublished, serviceDegradation, serviceInterruption, extendedRecovery, falsePositive, investigationSuspended, resolved, mitigatedExternal, mitigated, resolvedExternal, confirmed, reported, unknownFutureValue. For more details, see serviceHealthStatus values.
/// </summary>
[JsonPropertyName("status")]
public ServiceHealthStatus? Status { get; set; }
Expand Down
7 changes: 5 additions & 2 deletions src/Microsoft.Graph/Generated/model/ServiceUpdateMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public ServiceUpdateMessage()

/// <summary>
/// Gets or sets attachments archive.
/// The zip file of all attachments for a message.
/// </summary>
[JsonPropertyName("attachmentsArchive")]
public Stream AttachmentsArchive { get; set; }
Expand All @@ -58,6 +59,7 @@ public ServiceUpdateMessage()

/// <summary>
/// Gets or sets has attachments.
/// Indicates whether the message has any attachment.
/// </summary>
[JsonPropertyName("hasAttachments")]
public bool? HasAttachments { get; set; }
Expand Down Expand Up @@ -85,20 +87,21 @@ public ServiceUpdateMessage()

/// <summary>
/// Gets or sets tags.
/// A collection of tags for the service message.
/// A collection of tags for the service message. Tags are provided by the service team/support team who post the message to tell whether this message contains privacy data, or whether this message is for a service new feature update, and so on.
/// </summary>
[JsonPropertyName("tags")]
public IEnumerable<string> Tags { get; set; }

/// <summary>
/// Gets or sets view point.
/// Represents user view points data of the service message. This data includes message status such as whether the user has archived, read, or marked the message as favorite. This property is null when accessed with application permissions.
/// Represents user viewpoints data of the service message. This data includes message status such as whether the user has archived, read, or marked the message as favorite. This property is null when accessed with application permissions.
/// </summary>
[JsonPropertyName("viewPoint")]
public ServiceUpdateMessageViewpoint ViewPoint { get; set; }

/// <summary>
/// Gets or sets attachments.
/// A collection of serviceAnnouncementAttachments.
/// </summary>
[JsonPropertyName("attachments")]
public IServiceUpdateMessageAttachmentsCollectionPage Attachments { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,24 @@ public partial class DriveItemCreateLinkRequestBuilder : BaseActionMethodRequest
/// <param name="expirationDateTime">A expirationDateTime parameter for the OData method call.</param>
/// <param name="password">A password parameter for the OData method call.</param>
/// <param name="message">A message parameter for the OData method call.</param>
/// <param name="retainInheritedPermissions">A retainInheritedPermissions parameter for the OData method call.</param>
public DriveItemCreateLinkRequestBuilder(
string requestUrl,
IBaseClient client,
string type,
string scope,
DateTimeOffset? expirationDateTime,
string password,
string message)
string message,
bool? retainInheritedPermissions)
: base(requestUrl, client)
{
this.SetParameter("type", type, false);
this.SetParameter("scope", scope, true);
this.SetParameter("expirationDateTime", expirationDateTime, true);
this.SetParameter("password", password, true);
this.SetParameter("message", message, true);
this.SetParameter("retainInheritedPermissions", retainInheritedPermissions, true);
}

/// <summary>
Expand Down Expand Up @@ -80,6 +83,11 @@ protected override IDriveItemCreateLinkRequest CreateRequest(string functionUrl,
request.RequestBody.Message = this.GetParameter<string>("message");
}

if (this.HasParameter("retainInheritedPermissions"))
{
request.RequestBody.RetainInheritedPermissions = this.GetParameter<bool?>("retainInheritedPermissions");
}

return request;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public partial class DriveItemInviteRequestBuilder : BaseActionMethodRequestBuil
/// <param name="roles">A roles parameter for the OData method call.</param>
/// <param name="sendInvitation">A sendInvitation parameter for the OData method call.</param>
/// <param name="message">A message parameter for the OData method call.</param>
/// <param name="retainInheritedPermissions">A retainInheritedPermissions parameter for the OData method call.</param>
/// <param name="expirationDateTime">A expirationDateTime parameter for the OData method call.</param>
/// <param name="password">A password parameter for the OData method call.</param>
public DriveItemInviteRequestBuilder(
Expand All @@ -38,6 +39,7 @@ public DriveItemInviteRequestBuilder(
IEnumerable<string> roles,
bool? sendInvitation,
string message,
bool? retainInheritedPermissions,
string expirationDateTime,
string password)
: base(requestUrl, client)
Expand All @@ -47,6 +49,7 @@ public DriveItemInviteRequestBuilder(
this.SetParameter("roles", roles, true);
this.SetParameter("sendInvitation", sendInvitation, true);
this.SetParameter("message", message, true);
this.SetParameter("retainInheritedPermissions", retainInheritedPermissions, true);
this.SetParameter("expirationDateTime", expirationDateTime, true);
this.SetParameter("password", password, true);
}
Expand Down Expand Up @@ -86,6 +89,11 @@ protected override IDriveItemInviteRequest CreateRequest(string functionUrl, IEn
request.RequestBody.Message = this.GetParameter<string>("message");
}

if (this.HasParameter("retainInheritedPermissions"))
{
request.RequestBody.RetainInheritedPermissions = this.GetParameter<bool?>("retainInheritedPermissions");
}

if (this.HasParameter("expirationDateTime"))
{
request.RequestBody.ExpirationDateTime = this.GetParameter<string>("expirationDateTime");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ public IDriveItemCreateLinkRequestBuilder CreateLink(
string scope = null,
DateTimeOffset? expirationDateTime = null,
string password = null,
string message = null)
string message = null,
bool? retainInheritedPermissions = null)
{
return new DriveItemCreateLinkRequestBuilder(
this.AppendSegmentToRequestUrl("microsoft.graph.createLink"),
Expand All @@ -245,7 +246,8 @@ public IDriveItemCreateLinkRequestBuilder CreateLink(
scope,
expirationDateTime,
password,
message);
message,
retainInheritedPermissions);
}

/// <summary>
Expand All @@ -269,6 +271,7 @@ public IDriveItemInviteRequestBuilder Invite(
IEnumerable<string> roles = null,
bool? sendInvitation = null,
string message = null,
bool? retainInheritedPermissions = null,
string expirationDateTime = null,
string password = null)
{
Expand All @@ -280,6 +283,7 @@ public IDriveItemInviteRequestBuilder Invite(
roles,
sendInvitation,
message,
retainInheritedPermissions,
expirationDateTime,
password);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ IDriveItemCreateLinkRequestBuilder CreateLink(
string scope = null,
DateTimeOffset? expirationDateTime = null,
string password = null,
string message = null);
string message = null,
bool? retainInheritedPermissions = null);

/// <summary>
/// Gets the request builder for DriveItemFollow.
Expand All @@ -149,6 +150,7 @@ IDriveItemInviteRequestBuilder Invite(
IEnumerable<string> roles = null,
bool? sendInvitation = null,
string message = null,
bool? retainInheritedPermissions = null,
string expirationDateTime = null,
string password = null);

Expand Down
Loading

0 comments on commit e2c1e50

Please sign in to comment.