Skip to content

Commit

Permalink
Version 1.10
Browse files Browse the repository at this point in the history
- Updated schema,
- Documentation fixes.
  • Loading branch information
guirava committed Sep 29, 2024
2 parents 7393297 + dd51651 commit 2039143
Show file tree
Hide file tree
Showing 502 changed files with 89,034 additions and 32,171 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## ~ Upcoming Version ~

New Features:

Fixes:

Breaking Changes:

## Version 1.9

Fixes:
Expand Down Expand Up @@ -573,3 +581,4 @@ Breaking changes:




2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We rely on
[your feedback](https://github.com/rubrikinc/rubrik-powershell-sdk/discussions)
to improve the SDK !

This is a fully supported SDK to work with Rubrik Security Cloud (RSC).
Rubrik fully supports this SDK. If you have problems with the SDK, please open a GitHub issue or contact your account team. Please note that Rubrik supports the SDK, but can't debug your scripts.

If you need to work with the CDM SDK, please see:
[github.com/rubrikinc/rubrik-sdk-for-powershell](https://github.com/rubrikinc/rubrik-sdk-for-powershell)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Copyright = '(c) Rubrik. All rights reserved.'

# Description of the functionality provided by this module
# NOTE: This entry is generated.
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20240819-24 .'
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20240923-11 .'

# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '5.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
namespace RubrikSecurityCloud.PowerShell.Cmdlets
{
/// <summary>
/// Create a new RscQuery object for any of the 35
/// Create a new RscQuery object for any of the 36
/// operations in the 'AWS' API domain:
/// AddAuthenticationServerBasedCloudAccount, AddIamUserBasedCloudAccount, BulkDeleteCloudAccountWithoutCft, CreateAccount, CreateAutomaticTargetMapping, CreateCloudNativeStorageSetting, CreateCluster, CreateComputeSetting, CreateExocomputeConfigs, CreateReaderTarget, CreateTarget, DeleteComputeSetting, DeleteExocomputeConfigs, DisconnectExocomputeCluster, ExocomputeClusterConnect, FinalizeCloudAccountDeletion, FinalizeCloudAccountProtection, PatchAuthenticationServerBasedCloudAccount, PatchIamUserBasedCloudAccount, PrepareCloudAccountDeletion, PrepareFeatureUpdateForCloudAccount, RegisterFeatureArtifacts, StartExocomputeDisableJob, UpdateAccount, UpdateAutomaticTargetMapping, UpdateCloudAccount, UpdateCloudAccountFeature, UpdateCloudNativeStorageSetting, UpdateComputeSetting, UpdateExocomputeConfigs, UpdateTarget, UpgradeCloudAccountFeaturesWithoutCft, UpgradeIamUserBasedCloudAccountPermissions, ValidateAndCreateCloudAccount, or ValidateAndInitiateOutpostAccount.
/// AddAuthenticationServerBasedCloudAccount, AddIamUserBasedCloudAccount, BulkDeleteCloudAccountWithoutCft, CreateAccount, CreateAutomaticTargetMapping, CreateCloudNativeStorageSetting, CreateCluster, CreateComputeSetting, CreateExocomputeConfigs, CreateReaderTarget, CreateTarget, DeleteComputeSetting, DeleteExocomputeConfigs, DisconnectExocomputeCluster, ExocomputeClusterConnect, FinalizeCloudAccountDeletion, FinalizeCloudAccountProtection, PatchAuthenticationServerBasedCloudAccount, PatchIamUserBasedCloudAccount, PrepareCloudAccountDeletion, PrepareFeatureUpdateForCloudAccount, RegisterFeatureArtifacts, StartExocomputeDisableJob, UpdateAccount, UpdateAutomaticTargetMapping, UpdateCloudAccount, UpdateCloudAccountFeature, UpdateCloudNativeStorageSetting, UpdateComputeSetting, UpdateExocomputeConfigs, UpdateIamPair, UpdateTarget, UpgradeCloudAccountFeaturesWithoutCft, UpgradeIamUserBasedCloudAccountPermissions, ValidateAndCreateCloudAccount, or ValidateAndInitiateOutpostAccount.
/// </summary>
/// <description>
/// New-RscMutationAws creates a new
Expand All @@ -35,11 +35,11 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// connection to run. To execute the operation, either call Invoke()
/// on the object returned by this cmdlet, or pass the object to
/// Invoke-Rsc.
/// There are 35 operations
/// There are 36 operations
/// in the 'AWS' API domain. Select the operation this
/// query is for by specifying the appropriate value for the
/// -Operation parameter;
/// one of: AddAuthenticationServerBasedCloudAccount, AddIamUserBasedCloudAccount, BulkDeleteCloudAccountWithoutCft, CreateAccount, CreateAutomaticTargetMapping, CreateCloudNativeStorageSetting, CreateCluster, CreateComputeSetting, CreateExocomputeConfigs, CreateReaderTarget, CreateTarget, DeleteComputeSetting, DeleteExocomputeConfigs, DisconnectExocomputeCluster, ExocomputeClusterConnect, FinalizeCloudAccountDeletion, FinalizeCloudAccountProtection, PatchAuthenticationServerBasedCloudAccount, PatchIamUserBasedCloudAccount, PrepareCloudAccountDeletion, PrepareFeatureUpdateForCloudAccount, RegisterFeatureArtifacts, StartExocomputeDisableJob, UpdateAccount, UpdateAutomaticTargetMapping, UpdateCloudAccount, UpdateCloudAccountFeature, UpdateCloudNativeStorageSetting, UpdateComputeSetting, UpdateExocomputeConfigs, UpdateTarget, UpgradeCloudAccountFeaturesWithoutCft, UpgradeIamUserBasedCloudAccountPermissions, ValidateAndCreateCloudAccount, or ValidateAndInitiateOutpostAccount.
/// one of: AddAuthenticationServerBasedCloudAccount, AddIamUserBasedCloudAccount, BulkDeleteCloudAccountWithoutCft, CreateAccount, CreateAutomaticTargetMapping, CreateCloudNativeStorageSetting, CreateCluster, CreateComputeSetting, CreateExocomputeConfigs, CreateReaderTarget, CreateTarget, DeleteComputeSetting, DeleteExocomputeConfigs, DisconnectExocomputeCluster, ExocomputeClusterConnect, FinalizeCloudAccountDeletion, FinalizeCloudAccountProtection, PatchAuthenticationServerBasedCloudAccount, PatchIamUserBasedCloudAccount, PrepareCloudAccountDeletion, PrepareFeatureUpdateForCloudAccount, RegisterFeatureArtifacts, StartExocomputeDisableJob, UpdateAccount, UpdateAutomaticTargetMapping, UpdateCloudAccount, UpdateCloudAccountFeature, UpdateCloudNativeStorageSetting, UpdateComputeSetting, UpdateExocomputeConfigs, UpdateIamPair, UpdateTarget, UpgradeCloudAccountFeaturesWithoutCft, UpgradeIamUserBasedCloudAccountPermissions, ValidateAndCreateCloudAccount, or ValidateAndInitiateOutpostAccount.
/// Each operation has its own set of variables that can be set with
/// the -Var parameter. For more info about the variables,
/// call Info() on the object returned by this cmdlet, for example:
Expand Down Expand Up @@ -1132,6 +1132,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// )
/// # OPTIONAL
/// awsIamPairId = $someString
/// # OPTIONAL
/// orgId = $someString
/// }
///
/// # Execute the query
Expand Down Expand Up @@ -1794,6 +1796,39 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// </example>
///
/// <example>
/// Runs the UpdateIamPair operation
/// of the 'AWS' API domain.
/// <code>
/// PS &gt;
///
///
/// # Create an RscQuery object for:
/// # API Domain: Aws
/// # API Operation: UpdateIamPair
///
/// $query = New-RscMutationAws -UpdateIamPair
///
/// # REQUIRED
/// $query.Var.input = @{
/// # OPTIONAL
/// awsIamPairId = $someString
/// # OPTIONAL
/// awsIamRoleName = $someString
/// }
///
/// # Execute the query
///
/// $result = $query | Invoke-Rsc
///
/// Write-Host $result.GetType().Name # prints: System.String
///
///
///
/// </code>
///
/// </example>
///
/// <example>
/// Runs the UpdateTarget operation
/// of the 'AWS' API domain.
/// <code>
Expand Down Expand Up @@ -2158,6 +2193,7 @@ public class New_RscMutationAws : RscGqlPSCmdlet
"UpdateCloudNativeStorageSetting",
"UpdateComputeSetting",
"UpdateExocomputeConfigs",
"UpdateIamPair",
"UpdateTarget",
"UpgradeCloudAccountFeaturesWithoutCft",
"UpgradeIamUserBasedCloudAccountPermissions",
Expand Down Expand Up @@ -2268,6 +2304,9 @@ protected override void ProcessRecord()
case "UpdateExocomputeConfigs":
this.ProcessRecord_UpdateExocomputeConfigs();
break;
case "UpdateIamPair":
this.ProcessRecord_UpdateIamPair();
break;
case "UpdateTarget":
this.ProcessRecord_UpdateTarget();
break;
Expand Down Expand Up @@ -2563,6 +2602,15 @@ internal void ProcessRecord_UpdateExocomputeConfigs()
InitMutationUpdateAwsExocomputeConfigs();
}

// This parameter set invokes a single graphql operation:
// updateAwsIamPair.
internal void ProcessRecord_UpdateIamPair()
{
this._logger.name += " -UpdateIamPair";
// Create new graphql operation updateAwsIamPair
InitMutationUpdateAwsIamPair();
}

// This parameter set invokes a single graphql operation:
// updateAwsTarget.
internal void ProcessRecord_UpdateTarget()
Expand Down Expand Up @@ -3539,6 +3587,8 @@ internal void InitMutationFinalizeAwsCloudAccountProtection()
)
# OPTIONAL
awsIamPairId = $someString
# OPTIONAL
orgId = $someString
}"
);
}
Expand Down Expand Up @@ -4086,6 +4136,31 @@ internal void InitMutationUpdateAwsExocomputeConfigs()
);
}

// Create new GraphQL Mutation:
// updateAwsIamPair(input: UpdateAwsIamPairInput!): Void
internal void InitMutationUpdateAwsIamPair()
{
Tuple<string, string>[] argDefs = {
Tuple.Create("input", "UpdateAwsIamPairInput!"),
};
Initialize(
argDefs,
"mutation",
"MutationUpdateAwsIamPair",
"($input: UpdateAwsIamPairInput!)",
"System.String",
Mutation.UpdateAwsIamPair,
Mutation.UpdateAwsIamPairFieldSpec,
@"# REQUIRED
$query.Var.input = @{
# OPTIONAL
awsIamPairId = $someString
# OPTIONAL
awsIamRoleName = $someString
}"
);
}

// Create new GraphQL Mutation:
// updateAwsTarget(input: UpdateAwsTargetInput!): Target!
internal void InitMutationUpdateAwsTarget()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
namespace RubrikSecurityCloud.PowerShell.Cmdlets
{
/// <summary>
/// Create a new RscQuery object for any of the 13
/// Create a new RscQuery object for any of the 14
/// operations in the 'Cloud Native' API domain:
/// AddSqlServerBackupCredentials, CheckRbaConnectivity, ClearSqlServerBackupCredentials, CreateLabelRule, CreateTagRule, DeleteLabelRule, DeleteTagRule, DownloadFiles, SetupSqlServerBackup, StartSnapshotsIndexJob, UpdateIndexingStatus, UpdateLabelRule, or UpdateTagRule.
/// AddSqlServerBackupCredentials, CheckRbaConnectivity, ClearSqlServerBackupCredentials, CreateLabelRule, CreateTagRule, DeleteLabelRule, DeleteTagRule, DownloadFiles, SetupSqlServerBackup, StartSnapshotsIndexJob, UpdateIndexingStatus, UpdateLabelRule, UpdateRootThreatMonitoringEnablement, or UpdateTagRule.
/// </summary>
/// <description>
/// New-RscMutationCloudNative creates a new
Expand All @@ -35,11 +35,11 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// connection to run. To execute the operation, either call Invoke()
/// on the object returned by this cmdlet, or pass the object to
/// Invoke-Rsc.
/// There are 13 operations
/// There are 14 operations
/// in the 'Cloud Native' API domain. Select the operation this
/// query is for by specifying the appropriate value for the
/// -Operation parameter;
/// one of: AddSqlServerBackupCredentials, CheckRbaConnectivity, ClearSqlServerBackupCredentials, CreateLabelRule, CreateTagRule, DeleteLabelRule, DeleteTagRule, DownloadFiles, SetupSqlServerBackup, StartSnapshotsIndexJob, UpdateIndexingStatus, UpdateLabelRule, or UpdateTagRule.
/// one of: AddSqlServerBackupCredentials, CheckRbaConnectivity, ClearSqlServerBackupCredentials, CreateLabelRule, CreateTagRule, DeleteLabelRule, DeleteTagRule, DownloadFiles, SetupSqlServerBackup, StartSnapshotsIndexJob, UpdateIndexingStatus, UpdateLabelRule, UpdateRootThreatMonitoringEnablement, or UpdateTagRule.
/// Each operation has its own set of variables that can be set with
/// the -Var parameter. For more info about the variables,
/// call Info() on the object returned by this cmdlet, for example:
Expand Down Expand Up @@ -616,6 +616,41 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// </example>
///
/// <example>
/// Runs the UpdateRootThreatMonitoringEnablement operation
/// of the 'Cloud Native' API domain.
/// <code>
/// PS &gt;
///
///
/// # Create an RscQuery object for:
/// # API Domain: CloudNative
/// # API Operation: UpdateRootThreatMonitoringEnablement
///
/// $query = New-RscMutationCloudNative -UpdateRootThreatMonitoringEnablement
///
/// # REQUIRED
/// $query.Var.input = @{
/// # REQUIRED
/// isEnabled = $someBoolean
/// # REQUIRED
/// rootIds = @(
/// $someString
/// )
/// }
///
/// # Execute the query
///
/// $result = $query | Invoke-Rsc
///
/// Write-Host $result.GetType().Name # prints: System.String
///
///
///
/// </code>
///
/// </example>
///
/// <example>
/// Runs the UpdateTagRule operation
/// of the 'Cloud Native' API domain.
/// <code>
Expand Down Expand Up @@ -697,6 +732,7 @@ public class New_RscMutationCloudNative : RscGqlPSCmdlet
"StartSnapshotsIndexJob",
"UpdateIndexingStatus",
"UpdateLabelRule",
"UpdateRootThreatMonitoringEnablement",
"UpdateTagRule",
IgnoreCase = true)]
public string Operation { get; set; } = "";
Expand Down Expand Up @@ -749,6 +785,9 @@ protected override void ProcessRecord()
case "UpdateLabelRule":
this.ProcessRecord_UpdateLabelRule();
break;
case "UpdateRootThreatMonitoringEnablement":
this.ProcessRecord_UpdateRootThreatMonitoringEnablement();
break;
case "UpdateTagRule":
this.ProcessRecord_UpdateTagRule();
break;
Expand Down Expand Up @@ -870,6 +909,15 @@ internal void ProcessRecord_UpdateLabelRule()
InitMutationUpdateCloudNativeLabelRule();
}

// This parameter set invokes a single graphql operation:
// updateCloudNativeRootThreatMonitoringEnablement.
internal void ProcessRecord_UpdateRootThreatMonitoringEnablement()
{
this._logger.name += " -UpdateRootThreatMonitoringEnablement";
// Create new graphql operation updateCloudNativeRootThreatMonitoringEnablement
InitMutationUpdateCloudNativeRootThreatMonitoringEnablement();
}

// This parameter set invokes a single graphql operation:
// updateCloudNativeTagRule.
internal void ProcessRecord_UpdateTagRule()
Expand Down Expand Up @@ -1323,6 +1371,33 @@ internal void InitMutationUpdateCloudNativeLabelRule()
);
}

// Create new GraphQL Mutation:
// updateCloudNativeRootThreatMonitoringEnablement(input: UpdateCloudNativeRootThreatMonitoringEnablementInput!): Void
internal void InitMutationUpdateCloudNativeRootThreatMonitoringEnablement()
{
Tuple<string, string>[] argDefs = {
Tuple.Create("input", "UpdateCloudNativeRootThreatMonitoringEnablementInput!"),
};
Initialize(
argDefs,
"mutation",
"MutationUpdateCloudNativeRootThreatMonitoringEnablement",
"($input: UpdateCloudNativeRootThreatMonitoringEnablementInput!)",
"System.String",
Mutation.UpdateCloudNativeRootThreatMonitoringEnablement,
Mutation.UpdateCloudNativeRootThreatMonitoringEnablementFieldSpec,
@"# REQUIRED
$query.Var.input = @{
# REQUIRED
isEnabled = $someBoolean
# REQUIRED
rootIds = @(
$someString
)
}"
);
}

// Create new GraphQL Mutation:
// updateCloudNativeTagRule(input: UpdateCloudNativeTagRuleInput!): Void
internal void InitMutationUpdateCloudNativeTagRule()
Expand Down
Loading

0 comments on commit 2039143

Please sign in to comment.