C# Class Google.PowerShell.Logging.NewGcLogMonitoredResource

Inheritance: GcLogCmdlet, IDynamicParameters
Show file Open project: GoogleCloudPlatform/google-cloud-powershell

Private Properties

Property Type Description

Public Methods

Method Description
GetDynamicParameters ( ) : object

This function is part of the IDynamicParameters interface. PowerShell uses it to generate parameters dynamically. We have to generate -ResourceType parameter dynamically because the array of resources that we used to validate against are not generated before compile time, i.e. [ValidateSet(ArrayGeneratedAtRunTime)] will throw an error for parameters that are not generated dynamically.

Protected Methods

Method Description
ProcessRecord ( ) : void

Method Details

GetDynamicParameters() public method

This function is part of the IDynamicParameters interface. PowerShell uses it to generate parameters dynamically. We have to generate -ResourceType parameter dynamically because the array of resources that we used to validate against are not generated before compile time, i.e. [ValidateSet(ArrayGeneratedAtRunTime)] will throw an error for parameters that are not generated dynamically.
public GetDynamicParameters ( ) : object
return object

ProcessRecord() protected method

protected ProcessRecord ( ) : void
return void