Exemple #1
0
 internal PSUserAssignedIdentity(Microsoft.Azure.Batch.UserAssignedIdentity omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
 public PropertyContainer(Models.BatchPoolIdentity protocolObject) : base(BindingState.Bound)
 {
     this.TypeProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.MapEnum <Models.PoolIdentityType, Common.PoolIdentityType>(protocolObject.Type),
         nameof(Type),
         BindingAccess.Read);
     this.UserAssignedIdentitiesProperty = this.CreatePropertyAccessor(
         UserAssignedIdentity.ConvertFromProtocolCollectionAndFreeze(protocolObject.UserAssignedIdentities),
         nameof(UserAssignedIdentities),
         BindingAccess.Read);
 }
Exemple #3
0
 public PSUserAssignedIdentity(string resourceId)
 {
     this.omObject = new Microsoft.Azure.Batch.UserAssignedIdentity(resourceId);
 }