azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.c...

136 строки
11 KiB
YAML

### 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:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **SharingProfile**</br> implements <xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.SharingProfile?alt=com.azure.resourcemanager.compute.models.SharingProfile&text=SharingProfile\" data-throw-if-not-resolved=\"False\" />&gt;"
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 Sharing<wbr>Profile 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 community<wbr>Gallery<wbr>Info 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: "<xref href=\"com.azure.resourcemanager.compute.models.CommunityGalleryInfo?alt=com.azure.resourcemanager.compute.models.CommunityGalleryInfo&text=CommunityGalleryInfo\" data-throw-if-not-resolved=\"False\" />"
- 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 Sharing<wbr>Profile from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static SharingProfile fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the SharingProfile."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
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: "<xref href=\"com.azure.resourcemanager.compute.models.SharingProfile?alt=com.azure.resourcemanager.compute.models.SharingProfile&text=SharingProfile\" data-throw-if-not-resolved=\"False\" />"
- 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<SharingProfileGroup> groups()"
desc: "Get the groups property: A list of sharing profile groups."
returns:
description: "the groups value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.compute.models.SharingProfileGroup?alt=com.azure.resourcemanager.compute.models.SharingProfileGroup&text=SharingProfileGroup\" data-throw-if-not-resolved=\"False\" />&gt;"
- 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: "<xref href=\"com.azure.resourcemanager.compute.models.GallerySharingPermissionTypes?alt=com.azure.resourcemanager.compute.models.GallerySharingPermissionTypes&text=GallerySharingPermissionTypes\" data-throw-if-not-resolved=\"False\" />"
- 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: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- 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 community<wbr>Gallery<wbr>Info property: Information of community gallery if current gallery is shared to community."
parameters:
- description: "the communityGalleryInfo value to set."
name: "communityGalleryInfo"
type: "<xref href=\"com.azure.resourcemanager.compute.models.CommunityGalleryInfo?alt=com.azure.resourcemanager.compute.models.CommunityGalleryInfo&text=CommunityGalleryInfo\" data-throw-if-not-resolved=\"False\" />"
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: "<xref href=\"com.azure.resourcemanager.compute.models.SharingProfile?alt=com.azure.resourcemanager.compute.models.SharingProfile&text=SharingProfile\" data-throw-if-not-resolved=\"False\" />"
- 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: "<xref href=\"com.azure.resourcemanager.compute.models.GallerySharingPermissionTypes?alt=com.azure.resourcemanager.compute.models.GallerySharingPermissionTypes&text=GallerySharingPermissionTypes\" data-throw-if-not-resolved=\"False\" />"
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: "<xref href=\"com.azure.resourcemanager.compute.models.SharingProfile?alt=com.azure.resourcemanager.compute.models.SharingProfile&text=SharingProfile\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Profile for gallery sharing to subscription or tenant."
implements:
- "<xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.SharingProfile?alt=com.azure.resourcemanager.compute.models.SharingProfile&text=SharingProfile\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.42.0