Skip to content

Commit

Permalink
Version 1.11
Browse files Browse the repository at this point in the history
Schema update.
  • Loading branch information
guirava committed Oct 13, 2024
1 parent 54eb553 commit f22f6cf
Show file tree
Hide file tree
Showing 515 changed files with 53,252 additions and 34,703 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 1.11

Schema update.

## Version 1.10

- Updated schema,
Expand All @@ -14,7 +18,7 @@ Fixes:

## Version 1.8

New Features:
New Features:

- Get-RscVmwareVm now takes a cluster object via pipeline. e.g. `Get-RscCluster "foo" | Get-RscVmwareVm`
- Add snapshotconsistencylevel to vSphereVM fields that are fetched from API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
RootModule = 'LoadModule.psm1'

# Version number of this module.
ModuleVersion = '1.10'
ModuleVersion = '1.11'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand All @@ -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: v20240923-11 .'
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20241007-35 .'

# 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 @@ -256,6 +256,10 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// accessKey = $someString
/// # REQUIRED
/// secretKey = $someString
/// # OPTIONAL
/// stsEndpoint = $someString
/// # OPTIONAL
/// stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
/// }
///
/// # Execute the query
Expand Down Expand Up @@ -1496,6 +1500,10 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// accessKey = $someString
/// # REQUIRED
/// secretKey = $someString
/// # OPTIONAL
/// stsEndpoint = $someString
/// # OPTIONAL
/// stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
/// }
///
/// # Execute the query
Expand Down Expand Up @@ -2100,6 +2108,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// }
/// # OPTIONAL
/// outpostAwsNativeId = $someString
/// # OPTIONAL
/// orgId = $someString
/// }
///
/// # Execute the query
Expand Down Expand Up @@ -2815,6 +2825,10 @@ internal void InitMutationCreateAwsAccount()
accessKey = $someString
# REQUIRED
secretKey = $someString
# OPTIONAL
stsEndpoint = $someString
# OPTIONAL
stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
}"
);
}
Expand Down Expand Up @@ -3895,6 +3909,10 @@ internal void InitMutationUpdateAwsAccount()
accessKey = $someString
# REQUIRED
secretKey = $someString
# OPTIONAL
stsEndpoint = $someString
# OPTIONAL
stsRegion = $someAwsRegion # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsRegion]) for enum values.
}"
);
}
Expand Down Expand Up @@ -4411,6 +4429,8 @@ internal void InitMutationValidateAndCreateAwsCloudAccount()
}
# OPTIONAL
outpostAwsNativeId = $someString
# OPTIONAL
orgId = $someString
}"
);
}
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 6
/// Create a new RscQuery object for any of the 7
/// operations in the 'Fileset' API domain:
/// BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, or RecoverFiles.
/// BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, RecoverFiles, or Update.
/// </summary>
/// <description>
/// New-RscMutationFileset 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 6 operations
/// There are 7 operations
/// in the 'Fileset' API domain. Select the operation this
/// query is for by specifying the appropriate value for the
/// -Operation parameter;
/// one of: BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, or RecoverFiles.
/// one of: BulkCreate, BulkCreateTemplates, BulkDelete, BulkDeleteTemplate, BulkUpdateTemplate, RecoverFiles, or Update.
/// 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 @@ -434,6 +434,52 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
///
/// </example>
///
/// <example>
/// Runs the Update operation
/// of the 'Fileset' API domain.
/// <code>
/// PS &gt;
///
///
/// # Create an RscQuery object for:
/// # API Domain: Fileset
/// # API Operation: Update
///
/// $query = New-RscMutationFileset -Update
///
/// # REQUIRED
/// $query.Var.input = @{
/// # REQUIRED
/// filesetUpdateProperties = @{
/// # OPTIONAL
/// configuredSlaDomainId = $someString
/// # OPTIONAL
/// forceFull = $someBoolean
/// # OPTIONAL
/// forceFullPartitionIds = @(
/// $someInt
/// )
/// # OPTIONAL
/// snapMirrorLabelForFullBackup = $someString
/// # OPTIONAL
/// snapMirrorLabelForIncrementalBackup = $someString
/// }
/// # REQUIRED
/// id = $someString
/// }
///
/// # Execute the query
///
/// $result = $query | Invoke-Rsc
///
/// Write-Host $result.GetType().Name # prints: FilesetDetail
///
///
///
/// </code>
///
/// </example>
///
[CmdletBinding()]
[Cmdlet(
"New",
Expand All @@ -456,6 +502,7 @@ public class New_RscMutationFileset : RscGqlPSCmdlet
"BulkDeleteTemplate",
"BulkUpdateTemplate",
"RecoverFiles",
"Update",
IgnoreCase = true)]
public string Operation { get; set; } = "";

Expand Down Expand Up @@ -489,6 +536,9 @@ protected override void ProcessRecord()
case "RecoverFiles":
this.ProcessRecord_RecoverFiles();
break;
case "Update":
this.ProcessRecord_Update();
break;
default:
throw new Exception("Unknown Operation " + this.GetOp().OpName());
}
Expand Down Expand Up @@ -553,6 +603,15 @@ internal void ProcessRecord_RecoverFiles()
InitMutationFilesetRecoverFiles();
}

// This parameter set invokes a single graphql operation:
// updateFileset.
internal void ProcessRecord_Update()
{
this._logger.name += " -Update";
// Create new graphql operation updateFileset
InitMutationUpdateFileset();
}


// Create new GraphQL Mutation:
// bulkCreateFilesets(input: BulkCreateFilesetsInput!): BulkCreateFilesetsReply!
Expand Down Expand Up @@ -864,6 +923,44 @@ internal void InitMutationFilesetRecoverFiles()
);
}

// Create new GraphQL Mutation:
// updateFileset(input: UpdateFilesetInput!): FilesetDetail!
internal void InitMutationUpdateFileset()
{
Tuple<string, string>[] argDefs = {
Tuple.Create("input", "UpdateFilesetInput!"),
};
Initialize(
argDefs,
"mutation",
"MutationUpdateFileset",
"($input: UpdateFilesetInput!)",
"FilesetDetail",
Mutation.UpdateFileset,
Mutation.UpdateFilesetFieldSpec,
@"# REQUIRED
$query.Var.input = @{
# REQUIRED
filesetUpdateProperties = @{
# OPTIONAL
configuredSlaDomainId = $someString
# OPTIONAL
forceFull = $someBoolean
# OPTIONAL
forceFullPartitionIds = @(
$someInt
)
# OPTIONAL
snapMirrorLabelForFullBackup = $someString
# OPTIONAL
snapMirrorLabelForIncrementalBackup = $someString
}
# REQUIRED
id = $someString
}"
);
}


} // class New_RscMutationFileset
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,21 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// cloudAccountsProjectIds = @(
/// $someString
/// )
/// # OPTIONAL
/// projectIds = @(
/// $someString
/// )
/// # OPTIONAL
/// featuresWithPermissionGroups = @(
/// @{
/// # OPTIONAL
/// featureType = $someCloudAccountFeature # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CloudAccountFeature]) for enum values.
/// # OPTIONAL
/// permissionsGroups = @(
/// $somePermissionsGroup # Call [Enum]::GetValues([RubrikSecurityCloud.Types.PermissionsGroup]) for enum values.
/// )
/// }
/// )
/// }
///
/// # Execute the query
Expand Down Expand Up @@ -803,6 +818,21 @@ internal void InitMutationGcpCloudAccountAddProjects()
cloudAccountsProjectIds = @(
$someString
)
# OPTIONAL
projectIds = @(
$someString
)
# OPTIONAL
featuresWithPermissionGroups = @(
@{
# OPTIONAL
featureType = $someCloudAccountFeature # Call [Enum]::GetValues([RubrikSecurityCloud.Types.CloudAccountFeature]) for enum values.
# OPTIONAL
permissionsGroups = @(
$somePermissionsGroup # Call [Enum]::GetValues([RubrikSecurityCloud.Types.PermissionsGroup]) for enum values.
)
}
)
}"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// # OPTIONAL
/// destinationOrgUuid = $someString
/// # OPTIONAL
/// rubrikOrgUuid = $someString
/// # OPTIONAL
/// SharePointDriveRestoreConfig = @{
/// # REQUIRED
/// driveRestoreConfig = @{
Expand Down Expand Up @@ -3260,6 +3262,8 @@ internal void InitMutationRestoreO365Snappable()
# OPTIONAL
destinationOrgUuid = $someString
# OPTIONAL
rubrikOrgUuid = $someString
# OPTIONAL
SharePointDriveRestoreConfig = @{
# REQUIRED
driveRestoreConfig = @{
Expand Down
Loading

0 comments on commit f22f6cf

Please sign in to comment.