Kinetica   C#   API  Version 7.2.3.0
AlterEnvironment.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 namespace kinetica
10 {
17  public class AlterEnvironmentRequest : KineticaData
18  {
23  public struct Action
24  {
27  public const string INSTALL_PACKAGE = "install_package";
28 
30  public const string INSTALL_REQUIREMENTS = "install_requirements";
31 
33  public const string UNINSTALL_PACKAGE = "uninstall_package";
34 
36  public const string UNINSTALL_REQUIREMENTS = "uninstall_requirements";
37 
40  public const string RESET = "reset";
41 
45  public const string REBUILD = "rebuild";
46  } // end struct Action
47 
51  public struct Options
52  {
56  public const string DATASOURCE_NAME = "datasource_name";
57  } // end struct Options
58 
60  public string environment_name { get; set; }
61 
104  public string action { get; set; }
105 
121  public string _value { get; set; }
122 
135  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
136 
140 
216  string action,
217  string _value,
218  IDictionary<string, string> options = null)
219  {
220  this.environment_name = environment_name ?? "";
221  this.action = action ?? "";
222  this._value = _value ?? "";
223  this.options = options ?? new Dictionary<string, string>();
224  } // end constructor
225  } // end class AlterEnvironmentRequest
226 
230  public class AlterEnvironmentResponse : KineticaData
231  {
235  public string environment_name { get; set; }
236 
238  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
239  } // end class AlterEnvironmentResponse
240 } // end namespace kinetica
AlterEnvironmentRequest(string environment_name, string action, string _value, IDictionary< string, string > options=null)
Constructs an AlterEnvironmentRequest object with the specified parameters.
string environment_name
Name of the environment to be altered.
string _value
The value of the modification, depending on action.
const string INSTALL_REQUIREMENTS
Install packages from a requirements file
string environment_name
Value of environment_name.
const string UNINSTALL_PACKAGE
Uninstall a python package.
const string DATASOURCE_NAME
Name of an existing external data source from which packages specified in _value can be loaded
const string RESET
Uninstalls all packages in the environment and resets it to the original state at time of creation
IDictionary< string, string > info
Additional information.
const string INSTALL_PACKAGE
Install a python package from PyPI, an external data source or KiFS
string action
Modification operation to be applied.
IDictionary< string, string > options
Optional parameters.
const string UNINSTALL_REQUIREMENTS
Uninstall packages from a requirements file
AlterEnvironmentRequest()
Constructs an AlterEnvironmentRequest object with default parameters.
const string REBUILD
Recreates the environment and re-installs all packages, upgrades the packages if necessary based on d...