コード例 #1
0
        /// <summary>
        /// Converts a model received from the server to a powershell model
        /// </summary>
        /// <param name="model">The model to transform</param>
        /// <returns>The transformed model</returns>
        private AzureSqlDatabaseActivityModel CreateDatabaseActivityModelFromResponse(ElasticPoolDatabaseActivity model)
        {
            AzureSqlDatabaseActivityModel activity = new AzureSqlDatabaseActivityModel();

            //activity.CurrentElasticPoolName = model.Properties.CurrentElasticPoolName;
            //activity.CurrentServiceObjectiveName = model.Properties.CurrentServiceObjectiveName;
            //activity.DatabaseName = model.Properties.DatabaseName;
            //activity.EndTime = model.Properties.EndTime;
            //activity.ErrorCode = model.Properties.ErrorCode;
            //activity.ErrorMessage = model.Properties.ErrorMessage;
            //activity.ErrorSeverity = model.Properties.ErrorSeverity;
            //activity.Operation = model.Properties.Operation;
            //activity.OperationId = model.Properties.OperationId;
            //activity.PercentComplete = model.Properties.PercentComplete;
            //activity.RequestedElasticPoolName = model.Properties.RequestedElasticPoolName;
            //activity.RequestedServiceObjectiveName = model.Properties.RequestedServiceObjectiveName;
            //activity.ServerName = model.Properties.ServerName;
            //activity.StartTime = model.Properties.StartTime;
            //activity.State = model.Properties.State;

            return(activity);
        }
 ///GENMHASH:74C9D5DC3ACFA63AE72099D3501E3D70:95FDB4476A86D2D89C844159139FF9F4
 public ElasticPoolDatabaseActivityImpl(ElasticPoolDatabaseActivity innerObject) : base(innerObject)
 {
     this.resourceId = ResourceId.FromString(this.Inner.Id);
 }