Skip to content

Commit

Permalink
automatic schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
guirava committed Oct 13, 2024
1 parent dab9e91 commit 425b3ac
Show file tree
Hide file tree
Showing 514 changed files with 53,246 additions and 34,701 deletions.
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: 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 425b3ac

Please sign in to comment.