Skip to content

Commit a4939a3

Browse files
committed
Version 1.12.1
New Features: - schema update Fixes: - Bugfix for `Get-RscVmwareVm`
1 parent 8dded3d commit a4939a3

File tree

11 files changed

+26809
-26787
lines changed

11 files changed

+26809
-26787
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## Version 1.12.1
4+
5+
New Features:
6+
7+
- schema update
8+
9+
Fixes:
10+
11+
- Bugfix for `Get-RscVmwareVm`
12+
313
## Version 1.12
414

515
New Features:

RubrikSecurityCloud/RubrikSecurityCloud.PowerShell/RubrikSecurityCloud.psd1

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
RootModule = 'LoadModule.psm1'
99

1010
# Version number of this module.
11-
ModuleVersion = '1.12'
11+
ModuleVersion = '1.12.1'
1212

1313
# Supported PSEditions
1414
# CompatiblePSEditions = @()
@@ -27,7 +27,7 @@ Copyright = '(c) Rubrik. All rights reserved.'
2727

2828
# Description of the functionality provided by this module
2929
# NOTE: This entry is generated.
30-
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20241209-45 .'
30+
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20241209-57 .'
3131

3232
# Minimum version of the PowerShell engine required by this module
3333
PowerShellVersion = '5.0.0'

RubrikSecurityCloud/RubrikSecurityCloud.Schema/Elements/SchemaMeta.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static class SchemaMeta
1515
/// <summary>
1616
/// The version of the schema used to generate the SDK.
1717
/// </summary>
18-
public static string GraphqlSchemaVersion = "v20241209-45" ;
18+
public static string GraphqlSchemaVersion = "v20241209-57" ;
1919

2020
/// <summary>
2121
/// All GraphQL interface names.
@@ -767,7 +767,6 @@ public enum GqlTypeName
767767
ClusterHostGroupInfo,
768768
ClusterInfCidrs,
769769
ClusterInfo,
770-
ClusterInfoType,
771770
ClusterIpMapping,
772771
ClusterIpv6ModeReply,
773772
ClusterLicenseCapacityValidations,

RubrikSecurityCloud/RubrikSecurityCloud.Schema/Elements/type/ThreatHuntResultObjectsSummary.cs

+9-9
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public class ThreatHuntResultObjectsSummary: BaseType
7070
[JsonProperty("totalUniqueMatchedPaths")]
7171
public System.Int64? TotalUniqueMatchedPaths { get; set; }
7272

73-
// C# -> ClusterInfoType? ClusterInfo
74-
// GraphQL -> clusterInfo: ClusterInfoType (type)
73+
// C# -> Cluster? ClusterInfo
74+
// GraphQL -> clusterInfo: Cluster (type)
7575
[JsonProperty("clusterInfo")]
76-
public ClusterInfoType? ClusterInfo { get; set; }
76+
public Cluster? ClusterInfo { get; set; }
7777

7878
// C# -> List<IndicatorOfCompromise>? MatchTypes
7979
// GraphQL -> matchTypes: [IndicatorOfCompromise!]! (type)
@@ -105,7 +105,7 @@ public ThreatHuntResultObjectsSummary Set(
105105
System.Int64? TotalMatchedPaths = null,
106106
System.Int32? TotalMatchedSnapshots = null,
107107
System.Int64? TotalUniqueMatchedPaths = null,
108-
ClusterInfoType? ClusterInfo = null,
108+
Cluster? ClusterInfo = null,
109109
List<IndicatorOfCompromise>? MatchTypes = null,
110110
List<ThreatHuntResultSnapshotStats>? SnapshotsStats = null
111111
)
@@ -257,8 +257,8 @@ public override string AsFieldSpec(FieldSpecConfig? conf=null)
257257
s += ind + "totalUniqueMatchedPaths\n" ;
258258
}
259259
}
260-
// C# -> ClusterInfoType? ClusterInfo
261-
// GraphQL -> clusterInfo: ClusterInfoType (type)
260+
// C# -> Cluster? ClusterInfo
261+
// GraphQL -> clusterInfo: Cluster (type)
262262
if (this.ClusterInfo != null) {
263263
var fspec = this.ClusterInfo.AsFieldSpec(conf.Child("clusterInfo"));
264264
if(fspec.Replace(" ", "").Replace("\n", "").Length > 0) {
@@ -477,13 +477,13 @@ public override void ApplyExploratoryFieldSpec(ExplorationContext ec)
477477
{
478478
this.TotalUniqueMatchedPaths = null;
479479
}
480-
// C# -> ClusterInfoType? ClusterInfo
481-
// GraphQL -> clusterInfo: ClusterInfoType (type)
480+
// C# -> Cluster? ClusterInfo
481+
// GraphQL -> clusterInfo: Cluster (type)
482482
if (ec.Includes("clusterInfo",false))
483483
{
484484
if(this.ClusterInfo == null) {
485485

486-
this.ClusterInfo = new ClusterInfoType();
486+
this.ClusterInfo = new Cluster();
487487
this.ClusterInfo.ApplyExploratoryFieldSpec(ec.NewChild("clusterInfo"));
488488

489489
} else {

Toolkit/Public/Get-RscVmwareVm.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function Get-RscVmwareVm {
103103
#$query = New-RscQueryVsphereVm -Operation NewList -FieldProfile $inputProfile
104104
$query = New-RscQuery -GqlQuery vsphereVmNewConnection -FieldProfile $inputProfile
105105
$query.var.filter = @()
106-
$query.Field.Nodes.Cluster = New-Object -TypeName RubrikSecurityCloud.Types.Cluster
106+
$query.Field.Nodes[0].Cluster = New-Object -TypeName RubrikSecurityCloud.Types.Cluster
107107
$query.Field.Nodes[0].Cluster.name = "PIZZA"
108108
$query.Field.Nodes[0].Cluster.id = "PIZZA"
109109
$query.Field.Nodes[0].GuestOsName = "TACOS"

Toolkit/Tests/e2e/Get-RscVmwareVm.Tests.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ BeforeAll {
77
}
88
}
99

10-
# TODO: Fix this test : replace -Skip with -Fixture
11-
# see https://rubrik.atlassian.net/browse/SPARK-462877
12-
Write-Warning "TODO: Get-RscVmwareVm Tests are skipped"
13-
Describe -Name 'Get-RscVmwareVm Tests' -Tag 'Public' -Skip {
10+
11+
Describe -Name 'Get-RscVmwareVm Tests' -Tag 'Public' -Fixture {
1412

1513
It -Name 'retrieves VMs' -Test {
1614
$data.vm = Get-RscVmwareVm

0 commit comments

Comments
 (0)