Method Set
- Namespace
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Api
- Assembly
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll
Set(string, string)
Sets the value for a specific path.
public void Set(string path, string value)
Parameters
path
stringThe node path to set. This should be a leaf node.
value
stringThe string value to set. The gNMI TypedValue used will be StringVal.
Exceptions
- ArgumentException
The path argument cannot be null, empty, or a whitespace.
Set(Path, string)
Sets the value for a specific path.
public void Set(Path path, string value)
Parameters
path
PathThe node path to set. This should be a leaf node.
value
stringThe string value to set. The gNMI TypedValue used will be StringVal.
Exceptions
- ArgumentNullException
The path argument cannot be null.
- RequestFailedException
An exception was thrown by the DxM.
Set(string, string, StringValueContentType)
Sets the value for a specific path.
public void Set(string path, string value, StringValueContentType contentType)
Parameters
path
stringThe node path to set. This should be a leaf node unless the contentType is JSON and the data source supports this.
value
stringThe string value to set.
contentType
StringValueContentTypeFormat of the
value
parameter. It can be one of the following enum values: - StringValue means that the value parameter is a plain string. - AsciiString means that the value parameter is a plain ASCII string. - JsonUtf8 means that the value parameter is a JSON-encoded string that will be sent to the data source in UTF-8 encoding. - JsonIetfUtf8 means that the value parameter is a JSON-encoded string that follows the RFC8259 standard and will be sent to the data source in UTF-8 encoding.
Exceptions
- ArgumentException
The path argument cannot be null, empty, or a whitespace.
- ArgumentException
Argument contentType contains a type that is not supported.
Set(Path, string, StringValueContentType)
Sets the value for a specific path.
public void Set(Path path, string value, StringValueContentType contentType)
Parameters
path
PathThe node path to set. This should be a leaf node unless the contentType is JSON and the data source supports this.
value
stringThe string value to set.
contentType
StringValueContentTypeFormat of the
value
parameter. It can be one of the following enum values: - StringValue means that the value parameter is a plain string. - AsciiString means that the value parameter is a plain ASCII string. - JsonUtf8 means that the value parameter is a JSON-encoded string that will be sent to the data source in UTF-8 encoding. - JsonIetfUtf8 means that the value parameter is a JSON-encoded string that follows the RFC8259 standard and will be sent to the data source in UTF-8 encoding.
Exceptions
- ArgumentNullException
The path argument cannot be null.
- ArgumentException
Argument contentType contains a type that is not supported.
- RequestFailedException
An exception was thrown by the DxM.
Set(string, bool)
Sets the value for a specific path.
public void Set(string path, bool value)
Parameters
path
stringThe node path to set. This should be a leaf node.
value
boolThe boolean value to set. The gNMI TypedValue used will be BoolVal.
Exceptions
- ArgumentException
The path argument cannot be null, empty, or a whitespace.
Set(Path, bool)
Sets the value for a specific path.
public void Set(Path path, bool value)
Parameters
path
PathThe node path to set. This should be a leaf node.
value
boolThe boolean value to set. The gNMI TypedValue used will be BoolVal.
Exceptions
- ArgumentNullException
The path argument cannot be null.
- RequestFailedException
An exception was thrown by the DxM.
Set(string, double)
Sets the value for a specific path.
public void Set(string path, double value)
Parameters
path
stringThe node path to set. This should be a leaf node.
value
doubleThe double value to set. The gNMI TypedValue used will be DoubleVal.
Exceptions
- ArgumentException
The path argument cannot be null, empty, or a whitespace.
Set(Path, double)
Sets the value for a specific path.
public void Set(Path path, double value)
Parameters
path
PathThe node path to set. This should be a leaf node.
value
doubleThe double value to set. The gNMI TypedValue used will be DoubleVal.
Exceptions
- ArgumentNullException
The path argument cannot be null.
- RequestFailedException
An exception was thrown by the DxM.
Set(string, long)
Sets the value for a specific path.
public void Set(string path, long value)
Parameters
path
stringThe node path to set. This should be a leaf node.
value
longThe Int64 value to set. The gNMI TypedValue used will be IntVal.
Exceptions
- ArgumentException
The path argument cannot be null, empty, or a whitespace.
Set(Path, long)
Sets the value for a specific path.
public void Set(Path path, long value)
Parameters
path
PathThe node path to set. This should be a leaf node.
value
longThe Int64 value to set. The gNMI TypedValue used will be IntVal.
Exceptions
- ArgumentNullException
The path argument cannot be null.
- RequestFailedException
An exception was thrown by the DxM.
Set(string, ulong)
Sets the value for a specific path.
public void Set(string path, ulong value)
Parameters
path
stringThe node path to set. This should be a leaf node.
value
ulongThe UInt64 value to set. The gNMI TypedValue used will be UintVal.
Exceptions
- ArgumentException
The path argument cannot be null, empty, or a whitespace.
Set(Path, ulong)
Sets the value for a specific path.
public void Set(Path path, ulong value)
Parameters
path
PathThe node path to set. This should be a leaf node.
value
ulongThe UInt64 value to set. The gNMI TypedValue used will be UintVal.
Exceptions
- ArgumentNullException
The path argument cannot be null.
- RequestFailedException
An exception was thrown by the DxM.