Kinetica   C#   API  Version 7.2.3.0
CreateResourceGroup.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 {
16  public class CreateResourceGroupRequest : KineticaData
17  {
28  public struct TierAttributes
29  {
33  public const string MAX_MEMORY = "max_memory";
34  } // end struct TierAttributes
35 
41  public struct Ranking
42  {
45  public const string FIRST = "first";
46 
49  public const string LAST = "last";
50 
54  public const string BEFORE = "before";
55 
59  public const string AFTER = "after";
60  } // end struct Ranking
61 
65  public struct Options
66  {
71  public const string MAX_CPU_CONCURRENCY = "max_cpu_concurrency";
72 
77  public const string MAX_DATA = "max_data";
78 
83  public const string MAX_SCHEDULING_PRIORITY = "max_scheduling_priority";
84 
89  public const string MAX_TIER_PRIORITY = "max_tier_priority";
90  } // end struct Options
91 
96  public string name { get; set; }
97 
111  public IDictionary<string, IDictionary<string, string>> tier_attributes { get; set; } = new Dictionary<string, IDictionary<string, string>>();
112 
140  public string ranking { get; set; }
141 
148  public string adjoining_resource_group { get; set; } = "";
149 
185  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
186 
190 
284  IDictionary<string, IDictionary<string, string>> tier_attributes,
285  string ranking,
286  string adjoining_resource_group = null,
287  IDictionary<string, string> options = null)
288  {
289  this.name = name ?? "";
290  this.tier_attributes = tier_attributes ?? new Dictionary<string, IDictionary<string, string>>();
291  this.ranking = ranking ?? "";
293  this.options = options ?? new Dictionary<string, string>();
294  } // end constructor
295  } // end class CreateResourceGroupRequest
296 
300  public class CreateResourceGroupResponse : KineticaData
301  {
304  public string name { get; set; }
305 
307  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
308  } // end class CreateResourceGroupResponse
309 } // end namespace kinetica
CreateResourceGroupRequest()
Constructs a CreateResourceGroupRequest object with default parameters.
IDictionary< string, string > info
Additional information.
const string LAST
Make this resource group the new last one in the ordering
const string MAX_DATA
Maximum amount of data, per rank, in bytes, that can be used by all database objects within this grou...
CreateResourceGroupRequest(string name, IDictionary< string, IDictionary< string, string >> tier_attributes, string ranking, string adjoining_resource_group=null, IDictionary< string, string > options=null)
Constructs a CreateResourceGroupRequest object with the specified parameters.
IDictionary< string, string > options
Optional parameters.
string name
Name of the group to be created.
const string MAX_TIER_PRIORITY
Maximum priority of a tiered object for this group.
const string MAX_MEMORY
Maximum amount of memory usable at one time, per rank, per GPU, for the VRAM tier; or maximum amount ...
const string MAX_CPU_CONCURRENCY
Maximum number of simultaneous threads that will be used to execute a request, per rank,...
string ranking
Indicates the relative ranking among existing resource groups where this new resource group will be p...
const string BEFORE
Place this resource group before the one specified by adjoining_resource_group in the ordering
string adjoining_resource_group
If ranking is BEFORE or AFTER, this field indicates the resource group before or after which the curr...
const string AFTER
Place this resource group after the one specified by adjoining_resource_group in the ordering
const string FIRST
Make this resource group the new first one in the ordering
IDictionary< string, IDictionary< string, string > > tier_attributes
Optional map containing tier names and their respective attribute group limits.
const string MAX_SCHEDULING_PRIORITY
Maximum priority of a scheduled task for this group.