### YamlMime:JavaType uid: "com.azure.resourcemanager.compute.models.SharingProfile" fullName: "com.azure.resourcemanager.compute.models.SharingProfile" name: "SharingProfile" nameWithType: "SharingProfile" summary: "Profile for gallery sharing to subscription or tenant." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **SharingProfile**
implements <>" constructors: - uid: "com.azure.resourcemanager.compute.models.SharingProfile.SharingProfile()" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.SharingProfile()" name: "SharingProfile()" nameWithType: "SharingProfile.SharingProfile()" summary: "Creates an instance of SharingProfile class." syntax: "public SharingProfile()" desc: "Creates an instance of SharingProfile class." methods: - uid: "com.azure.resourcemanager.compute.models.SharingProfile.communityGalleryInfo()" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.communityGalleryInfo()" name: "communityGalleryInfo()" nameWithType: "SharingProfile.communityGalleryInfo()" summary: "Get the communityGalleryInfo property: Information of community gallery if current gallery is shared to community." syntax: "public CommunityGalleryInfo communityGalleryInfo()" desc: "Get the communityGalleryInfo property: Information of community gallery if current gallery is shared to community." returns: description: "the communityGalleryInfo value." type: "" - uid: "com.azure.resourcemanager.compute.models.SharingProfile.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "SharingProfile.fromJson(JsonReader jsonReader)" summary: "Reads an instance of SharingProfile from the JsonReader." modifiers: - "static" parameters: - description: "The JsonReader being read." name: "jsonReader" type: "" syntax: "public static SharingProfile fromJson(JsonReader jsonReader)" exceptions: - description: "If an error occurs while reading the SharingProfile." type: "IOException" desc: "Reads an instance of SharingProfile from the JsonReader." returns: description: "An instance of SharingProfile if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null." type: "" - uid: "com.azure.resourcemanager.compute.models.SharingProfile.groups()" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.groups()" name: "groups()" nameWithType: "SharingProfile.groups()" summary: "Get the groups property: A list of sharing profile groups." syntax: "public List groups()" desc: "Get the groups property: A list of sharing profile groups." returns: description: "the groups value." type: "List<>" - uid: "com.azure.resourcemanager.compute.models.SharingProfile.permissions()" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.permissions()" name: "permissions()" nameWithType: "SharingProfile.permissions()" summary: "Get the permissions property: This property allows you to specify the permission of sharing gallery." syntax: "public GallerySharingPermissionTypes permissions()" desc: "Get the permissions property: This property allows you to specify the permission of sharing gallery. Possible values are: \\*\\*Private,\\*\\* \\*\\*Groups,\\*\\* \\*\\*Community.\\*\\*." returns: description: "the permissions value." type: "" - uid: "com.azure.resourcemanager.compute.models.SharingProfile.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "SharingProfile.toJson(JsonWriter jsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" - uid: "com.azure.resourcemanager.compute.models.SharingProfile.validate()" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.validate()" name: "validate()" nameWithType: "SharingProfile.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.compute.models.SharingProfile.withCommunityGalleryInfo(com.azure.resourcemanager.compute.models.CommunityGalleryInfo)" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.withCommunityGalleryInfo(CommunityGalleryInfo communityGalleryInfo)" name: "withCommunityGalleryInfo(CommunityGalleryInfo communityGalleryInfo)" nameWithType: "SharingProfile.withCommunityGalleryInfo(CommunityGalleryInfo communityGalleryInfo)" summary: "Set the communityGalleryInfo property: Information of community gallery if current gallery is shared to community." parameters: - description: "the communityGalleryInfo value to set." name: "communityGalleryInfo" type: "" syntax: "public SharingProfile withCommunityGalleryInfo(CommunityGalleryInfo communityGalleryInfo)" desc: "Set the communityGalleryInfo property: Information of community gallery if current gallery is shared to community." returns: description: "the SharingProfile object itself." type: "" - uid: "com.azure.resourcemanager.compute.models.SharingProfile.withPermissions(com.azure.resourcemanager.compute.models.GallerySharingPermissionTypes)" fullName: "com.azure.resourcemanager.compute.models.SharingProfile.withPermissions(GallerySharingPermissionTypes permissions)" name: "withPermissions(GallerySharingPermissionTypes permissions)" nameWithType: "SharingProfile.withPermissions(GallerySharingPermissionTypes permissions)" summary: "Set the permissions property: This property allows you to specify the permission of sharing gallery." parameters: - description: "the permissions value to set." name: "permissions" type: "" syntax: "public SharingProfile withPermissions(GallerySharingPermissionTypes permissions)" desc: "Set the permissions property: This property allows you to specify the permission of sharing gallery. Possible values are: \\*\\*Private,\\*\\* \\*\\*Groups,\\*\\* \\*\\*Community.\\*\\*." returns: description: "the SharingProfile object itself." type: "" type: "class" desc: "Profile for gallery sharing to subscription or tenant." implements: - "<>" metadata: {} package: "com.azure.resourcemanager.compute.models" artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.44.0