Delen via


ArmComputeModelFactory.SharingProfile Method

Definition

Initializes a new instance of SharingProfile.

public static Azure.ResourceManager.Compute.Models.SharingProfile SharingProfile (Azure.ResourceManager.Compute.Models.GallerySharingPermissionType? permission = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.SharingProfileGroup> groups = default, Azure.ResourceManager.Compute.Models.CommunityGalleryInfo communityGalleryInfo = default);
static member SharingProfile : Nullable<Azure.ResourceManager.Compute.Models.GallerySharingPermissionType> * seq<Azure.ResourceManager.Compute.Models.SharingProfileGroup> * Azure.ResourceManager.Compute.Models.CommunityGalleryInfo -> Azure.ResourceManager.Compute.Models.SharingProfile
Public Shared Function SharingProfile (Optional permission As Nullable(Of GallerySharingPermissionType) = Nothing, Optional groups As IEnumerable(Of SharingProfileGroup) = Nothing, Optional communityGalleryInfo As CommunityGalleryInfo = Nothing) As SharingProfile

Parameters

permission
Nullable<GallerySharingPermissionType>

This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community..

groups
IEnumerable<SharingProfileGroup>

A list of sharing profile groups.

communityGalleryInfo
CommunityGalleryInfo

Information of community gallery if current gallery is shared to community.

Returns

A new SharingProfile instance for mocking.

Applies to