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

126 строки
10 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity"
name: "RunCommandManagedIdentity"
nameWithType: "RunCommandManagedIdentity"
summary: "Contains client<wbr>Id or object<wbr>Id (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command."
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 **RunCommandManagedIdentity**</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.RunCommandManagedIdentity?alt=com.azure.resourcemanager.compute.models.RunCommandManagedIdentity&text=RunCommandManagedIdentity\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.RunCommandManagedIdentity()"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.RunCommandManagedIdentity()"
name: "RunCommandManagedIdentity()"
nameWithType: "RunCommandManagedIdentity.RunCommandManagedIdentity()"
summary: "Creates an instance of Run<wbr>Command<wbr>Managed<wbr>Identity class."
syntax: "public RunCommandManagedIdentity()"
desc: "Creates an instance of RunCommandManagedIdentity class."
methods:
- uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.clientId()"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.clientId()"
name: "clientId()"
nameWithType: "RunCommandManagedIdentity.clientId()"
summary: "Get the client<wbr>Id property: Client Id (GUID value) of the user-assigned managed identity."
syntax: "public String clientId()"
desc: "Get the clientId property: Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided."
returns:
description: "the clientId value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "RunCommandManagedIdentity.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Run<wbr>Command<wbr>Managed<wbr>Identity 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 RunCommandManagedIdentity fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the RunCommandManagedIdentity."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of RunCommandManagedIdentity from the JsonReader."
returns:
description: "An instance of RunCommandManagedIdentity if the JsonReader was pointing to an instance of it, or null if\n it was pointing to JSON null."
type: "<xref href=\"com.azure.resourcemanager.compute.models.RunCommandManagedIdentity?alt=com.azure.resourcemanager.compute.models.RunCommandManagedIdentity&text=RunCommandManagedIdentity\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.objectId()"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.objectId()"
name: "objectId()"
nameWithType: "RunCommandManagedIdentity.objectId()"
summary: "Get the object<wbr>Id property: Object Id (GUID value) of the user-assigned managed identity."
syntax: "public String objectId()"
desc: "Get the objectId property: Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided."
returns:
description: "the objectId value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "RunCommandManagedIdentity.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.RunCommandManagedIdentity.validate()"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.validate()"
name: "validate()"
nameWithType: "RunCommandManagedIdentity.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.withClientId(java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.withClientId(String clientId)"
name: "withClientId(String clientId)"
nameWithType: "RunCommandManagedIdentity.withClientId(String clientId)"
summary: "Set the client<wbr>Id property: Client Id (GUID value) of the user-assigned managed identity."
parameters:
- description: "the clientId value to set."
name: "clientId"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public RunCommandManagedIdentity withClientId(String clientId)"
desc: "Set the clientId property: Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided."
returns:
description: "the RunCommandManagedIdentity object itself."
type: "<xref href=\"com.azure.resourcemanager.compute.models.RunCommandManagedIdentity?alt=com.azure.resourcemanager.compute.models.RunCommandManagedIdentity&text=RunCommandManagedIdentity\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.withObjectId(java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.RunCommandManagedIdentity.withObjectId(String objectId)"
name: "withObjectId(String objectId)"
nameWithType: "RunCommandManagedIdentity.withObjectId(String objectId)"
summary: "Set the object<wbr>Id property: Object Id (GUID value) of the user-assigned managed identity."
parameters:
- description: "the objectId value to set."
name: "objectId"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public RunCommandManagedIdentity withObjectId(String objectId)"
desc: "Set the objectId property: Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided."
returns:
description: "the RunCommandManagedIdentity object itself."
type: "<xref href=\"com.azure.resourcemanager.compute.models.RunCommandManagedIdentity?alt=com.azure.resourcemanager.compute.models.RunCommandManagedIdentity&text=RunCommandManagedIdentity\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged."
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.RunCommandManagedIdentity?alt=com.azure.resourcemanager.compute.models.RunCommandManagedIdentity&text=RunCommandManagedIdentity\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.44.0