Skip to content

Commit

Permalink
Add support for subfield arguments (autogenerated changes) (#66)
Browse files Browse the repository at this point in the history
* Prepare for next development iteration

* MSSQL cmdlet Updates (#63)

* Now works with Host/FCI/ID/List

* Allow for filtering by InstanceName

* Correct bugs on GetInstance and added ID to GetDatabase

* Updates to MSSQL

* Update to PR

* change log updates

* Update TOOLKIT_DEVELOPER_MANUAL.md about operations

* Expand interfaces in -AddField and -RemoveField

* Patched clusterConnection DETAIL profile

* Add support for subfield arguments (handwritten changes)

* Add support for subfield arguments (autogenerated changes)

---------

Co-authored-by: Gui <[email protected]>
Co-authored-by: Chris Lumnah <[email protected]>
  • Loading branch information
3 people authored Apr 3, 2024
1 parent 1768823 commit 2f55747
Show file tree
Hide file tree
Showing 1,461 changed files with 11,518 additions and 4,629 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// CdmSnapshotFilterField.cs
//
// This generated file is part of the Rubrik PowerShell SDK.
// Manual changes to this file may be lost.

#nullable enable
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using System.Runtime.Serialization;

namespace RubrikSecurityCloud.Types
{
public enum CdmSnapshotFilterField
{
[EnumMember(Value = "CLUSTER_UUID")]
CLUSTER_UUID,

[EnumMember(Value = "EMPTY")]
EMPTY,

[EnumMember(Value = "IS_EXPIRED")]
IS_EXPIRED,

[EnumMember(Value = "IS_ON_DEMAND_SNAPSHOT")]
IS_ON_DEMAND_SNAPSHOT,

[EnumMember(Value = "SNAPPABLE_ID")]
SNAPPABLE_ID,

[EnumMember(Value = "SNAPSHOT_ID")]
SNAPSHOT_ID,

[EnumMember(Value = "TIME_RANGE")]
TIME_RANGE


} // enum CdmSnapshotFilterField

} // namespace RubrikSecurityCloud.Types
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// FieldEnum.cs
//
// This generated file is part of the Rubrik PowerShell SDK.
// Manual changes to this file may be lost.

#nullable enable
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using System.Runtime.Serialization;

namespace RubrikSecurityCloud.Types
{
public enum FieldEnum
{
[EnumMember(Value = "ALL")]
ALL,

[EnumMember(Value = "HAS_UNEXPIRED_ARCHIVED_OR_SOURCE_SNAPSHOTS")]
HAS_UNEXPIRED_ARCHIVED_OR_SOURCE_SNAPSHOTS,

[EnumMember(Value = "HAS_UNEXPIRED_ARCHIVED_OR_UNGCED_SOURCE_SNAPSHOTS")]
HAS_UNEXPIRED_ARCHIVED_OR_UNGCED_SOURCE_SNAPSHOTS,

[EnumMember(Value = "HAS_UNEXPIRED_ARCHIVED_SNAPSHOTS")]
HAS_UNEXPIRED_ARCHIVED_SNAPSHOTS,

[EnumMember(Value = "IS_COMPLETE")]
IS_COMPLETE,

[EnumMember(Value = "IS_CORRUPTED")]
IS_CORRUPTED,

[EnumMember(Value = "IS_DELETED_FROM_SOURCE")]
IS_DELETED_FROM_SOURCE,

[EnumMember(Value = "IS_EXPIRED")]
IS_EXPIRED,

[EnumMember(Value = "IS_HINT_SET")]
IS_HINT_SET,

[EnumMember(Value = "IS_INDEXED")]
IS_INDEXED,

[EnumMember(Value = "IS_INDEX_MERGED")]
IS_INDEX_MERGED,

[EnumMember(Value = "IS_ON_DEMAND")]
IS_ON_DEMAND,

[EnumMember(Value = "IS_REPLICA")]
IS_REPLICA,

[EnumMember(Value = "IS_SKIPPED_FOR_REPLICATION")]
IS_SKIPPED_FOR_REPLICATION,

[EnumMember(Value = "SEQUENCE_NUMBER_GREATER_THAN")]
SEQUENCE_NUMBER_GREATER_THAN,

[EnumMember(Value = "SPECIFIC_SNAPSHOT_NOT_REQUIRED")]
SPECIFIC_SNAPSHOT_NOT_REQUIRED,

[EnumMember(Value = "TIME_RANGE_WITH_OFFSET")]
TIME_RANGE_WITH_OFFSET


} // enum FieldEnum

} // namespace RubrikSecurityCloud.Types
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// BrowseDirectoryFiltersInput.cs
//
// This generated file is part of the Rubrik PowerShell SDK.
// Manual changes to this file may be lost.

#nullable enable
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using RubrikSecurityCloud;

namespace RubrikSecurityCloud.Types
{
#region BrowseDirectoryFiltersInput

public class BrowseDirectoryFiltersInput: IInput
{
#region members

// C# -> List<System.String>? AnalyzerGroupIds
// GraphQL -> analyzerGroupIds: [String!] (scalar)
[JsonProperty("analyzerGroupIds")]
public List<System.String>? AnalyzerGroupIds { get; set; }

// C# -> System.Boolean? WhitelistEnabled
// GraphQL -> whitelistEnabled: Boolean (scalar)
[JsonProperty("whitelistEnabled")]
public System.Boolean? WhitelistEnabled { get; set; }

// C# -> List<System.String>? Sids
// GraphQL -> sids: [String!] (scalar)
[JsonProperty("sids")]
public List<System.String>? Sids { get; set; }


#endregion


#region methods
public dynamic GetInputObject()
{
IDictionary<string, object> d = new System.Dynamic.ExpandoObject();

var properties = GetType().GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public);
foreach (var propertyInfo in properties)
{
var value = propertyInfo.GetValue(this);
var defaultValue = propertyInfo.PropertyType.IsValueType ? Activator.CreateInstance(propertyInfo.PropertyType) : null;

var requiredProp = propertyInfo.GetCustomAttributes(typeof(JsonRequiredAttribute), false).Length > 0;

if (requiredProp || value != defaultValue)
{
d[propertyInfo.Name] = value;
}
}
return d;
}
#endregion

} // class BrowseDirectoryFiltersInput
#endregion

} // namespace RubrikSecurityCloud.Types
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// CdmSnapshotFilter.cs
//
// This generated file is part of the Rubrik PowerShell SDK.
// Manual changes to this file may be lost.

#nullable enable
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using RubrikSecurityCloud;

namespace RubrikSecurityCloud.Types
{
#region CdmSnapshotFilter

public class CdmSnapshotFilter: IInput
{
#region members

// C# -> CdmSnapshotFilterField? Field
// GraphQL -> field: CdmSnapshotFilterField (enum)
[JsonProperty("field")]
public CdmSnapshotFilterField? Field { get; set; }

// C# -> List<System.String>? Texts
// GraphQL -> texts: [String!] (scalar)
[JsonProperty("texts")]
public List<System.String>? Texts { get; set; }


#endregion


#region methods
public dynamic GetInputObject()
{
IDictionary<string, object> d = new System.Dynamic.ExpandoObject();

var properties = GetType().GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public);
foreach (var propertyInfo in properties)
{
var value = propertyInfo.GetValue(this);
var defaultValue = propertyInfo.PropertyType.IsValueType ? Activator.CreateInstance(propertyInfo.PropertyType) : null;

var requiredProp = propertyInfo.GetCustomAttributes(typeof(JsonRequiredAttribute), false).Length > 0;

if (requiredProp || value != defaultValue)
{
d[propertyInfo.Name] = value;
}
}
return d;
}
#endregion

} // class CdmSnapshotFilter
#endregion

} // namespace RubrikSecurityCloud.Types
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// CdmSnapshotFilterInput.cs
//
// This generated file is part of the Rubrik PowerShell SDK.
// Manual changes to this file may be lost.

#nullable enable
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using RubrikSecurityCloud;

namespace RubrikSecurityCloud.Types
{
#region CdmSnapshotFilterInput

public class CdmSnapshotFilterInput: IInput
{
#region members

// C# -> List<System.String>? ClusterUuid
// GraphQL -> clusterUuid: [UUID!] (scalar)
[JsonProperty("clusterUuid")]
public List<System.String>? ClusterUuid { get; set; }

// C# -> List<System.String>? SnappableId
// GraphQL -> snappableId: [String!] (scalar)
[JsonProperty("snappableId")]
public List<System.String>? SnappableId { get; set; }

// C# -> List<System.String>? SnapshotId
// GraphQL -> snapshotId: [UUID!] (scalar)
[JsonProperty("snapshotId")]
public List<System.String>? SnapshotId { get; set; }

// C# -> TimeRangeInput? TimeRange
// GraphQL -> timeRange: TimeRangeInput (input)
[JsonProperty("timeRange")]
public TimeRangeInput? TimeRange { get; set; }

// C# -> System.Boolean? IsOnDemandSnapshot
// GraphQL -> isOnDemandSnapshot: Boolean (scalar)
[JsonProperty("isOnDemandSnapshot")]
public System.Boolean? IsOnDemandSnapshot { get; set; }

// C# -> System.Boolean? IsIndexed
// GraphQL -> isIndexed: Boolean (scalar)
[JsonProperty("isIndexed")]
public System.Boolean? IsIndexed { get; set; }


#endregion


#region methods
public dynamic GetInputObject()
{
IDictionary<string, object> d = new System.Dynamic.ExpandoObject();

var properties = GetType().GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public);
foreach (var propertyInfo in properties)
{
var value = propertyInfo.GetValue(this);
var defaultValue = propertyInfo.PropertyType.IsValueType ? Activator.CreateInstance(propertyInfo.PropertyType) : null;

var requiredProp = propertyInfo.GetCustomAttributes(typeof(JsonRequiredAttribute), false).Length > 0;

if (requiredProp || value != defaultValue)
{
d[propertyInfo.Name] = value;
}
}
return d;
}
#endregion

} // class CdmSnapshotFilterInput
#endregion

} // namespace RubrikSecurityCloud.Types
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// ClusterDiskFilterInput.cs
//
// This generated file is part of the Rubrik PowerShell SDK.
// Manual changes to this file may be lost.

#nullable enable
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using RubrikSecurityCloud;

namespace RubrikSecurityCloud.Types
{
#region ClusterDiskFilterInput

public class ClusterDiskFilterInput: IInput
{
#region members

// C# -> ClusterDiskType? Type
// GraphQL -> type: ClusterDiskType (enum)
[JsonProperty("type")]
public ClusterDiskType? Type { get; set; }

// C# -> ClusterDiskStatus? Status
// GraphQL -> status: ClusterDiskStatus (enum)
[JsonProperty("status")]
public ClusterDiskStatus? Status { get; set; }

// C# -> System.String? NodeId
// GraphQL -> nodeId: String (scalar)
[JsonProperty("nodeId")]
public System.String? NodeId { get; set; }


#endregion


#region methods
public dynamic GetInputObject()
{
IDictionary<string, object> d = new System.Dynamic.ExpandoObject();

var properties = GetType().GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public);
foreach (var propertyInfo in properties)
{
var value = propertyInfo.GetValue(this);
var defaultValue = propertyInfo.PropertyType.IsValueType ? Activator.CreateInstance(propertyInfo.PropertyType) : null;

var requiredProp = propertyInfo.GetCustomAttributes(typeof(JsonRequiredAttribute), false).Length > 0;

if (requiredProp || value != defaultValue)
{
d[propertyInfo.Name] = value;
}
}
return d;
}
#endregion

} // class ClusterDiskFilterInput
#endregion

} // namespace RubrikSecurityCloud.Types
Loading

0 comments on commit 2f55747

Please sign in to comment.