public PSOperationAttributes(Operation operation) { Name = operation.Name; if (operation.Display != null) { Display = new PSOperationDisplayAttributes(operation.Display.Operation); } }
/// <summary> /// Initializes a new instance of the Operation class. /// </summary> /// <param name="name">Operation name: /// {provider}/{resource}/{operation}</param> /// <param name="display">The object that represents the /// operation.</param> public PSOperationAttributes(string name = default(string), PSOperationDisplayAttributes display = default(PSOperationDisplayAttributes)) { Name = name; Display = display; }