Skip to content

Commit

Permalink
schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
guirava committed Jun 29, 2024
1 parent 7b95842 commit 311512a
Show file tree
Hide file tree
Showing 52 changed files with 5,107 additions and 31 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: v20240617-23 .'
Description = 'PowerShell Module for Rubrik Security Cloud. GraphQL schema version: v20240624-26 .'

# 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 @@ -1064,6 +1064,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// # OPTIONAL
/// orgName = $someString
/// # OPTIONAL
/// outpostAwsNativeId = $someString
/// # OPTIONAL
/// cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
/// }
/// # REQUIRED
Expand All @@ -1080,6 +1082,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// # OPTIONAL
/// orgName = $someString
/// # OPTIONAL
/// outpostAwsNativeId = $someString
/// # OPTIONAL
/// cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
/// }
/// )
Expand Down Expand Up @@ -1979,6 +1983,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// # OPTIONAL
/// orgName = $someString
/// # OPTIONAL
/// outpostAwsNativeId = $someString
/// # OPTIONAL
/// cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
/// }
/// # REQUIRED
Expand All @@ -1995,6 +2001,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// # OPTIONAL
/// orgName = $someString
/// # OPTIONAL
/// outpostAwsNativeId = $someString
/// # OPTIONAL
/// cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
/// }
/// )
Expand Down Expand Up @@ -2037,6 +2045,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// # OPTIONAL
/// awsIamRoleName = $someString
/// }
/// # OPTIONAL
/// outpostAwsNativeId = $someString
/// }
///
/// # Execute the query
Expand Down Expand Up @@ -3443,6 +3453,8 @@ internal void InitMutationFinalizeAwsCloudAccountProtection()
# OPTIONAL
orgName = $someString
# OPTIONAL
outpostAwsNativeId = $someString
# OPTIONAL
cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
}
# REQUIRED
Expand All @@ -3459,6 +3471,8 @@ internal void InitMutationFinalizeAwsCloudAccountProtection()
# OPTIONAL
orgName = $someString
# OPTIONAL
outpostAwsNativeId = $someString
# OPTIONAL
cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
}
)
Expand Down Expand Up @@ -4222,6 +4236,8 @@ internal void InitMutationValidateAndCreateAwsCloudAccount()
# OPTIONAL
orgName = $someString
# OPTIONAL
outpostAwsNativeId = $someString
# OPTIONAL
cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
}
# REQUIRED
Expand All @@ -4238,6 +4254,8 @@ internal void InitMutationValidateAndCreateAwsCloudAccount()
# OPTIONAL
orgName = $someString
# OPTIONAL
outpostAwsNativeId = $someString
# OPTIONAL
cloudType = $someAwsCloudType # Call [Enum]::GetValues([RubrikSecurityCloud.Types.AwsCloudType]) for enum values.
}
)
Expand Down Expand Up @@ -4280,6 +4298,8 @@ internal void InitMutationValidateAndCreateAwsCloudAccount()
# OPTIONAL
awsIamRoleName = $someString
}
# OPTIONAL
outpostAwsNativeId = $someString
}"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
/// # OPTIONAL
/// transport = $someString
/// # OPTIONAL
/// isAutoPsCreationEnabled = $someBoolean
/// # OPTIONAL
/// clientSecret = $someString
/// # OPTIONAL
/// accessToken = $someString
Expand Down Expand Up @@ -1121,6 +1123,8 @@ internal void InitMutationAddK8sCluster()
# OPTIONAL
transport = $someString
# OPTIONAL
isAutoPsCreationEnabled = $someBoolean
# OPTIONAL
clientSecret = $someString
# OPTIONAL
accessToken = $someString
Expand Down

Large diffs are not rendered by default.

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 23
/// Create a new RscQuery object for any of the 24
/// operations in the 'Microsoft SQL Server' API domain:
/// AddHost, AssignSlaDomainProperties, AssignSlaDomainPropertiesAsync, BrowseDatabaseSnapshot, BulkCreateOnDemandBackup, BulkUpdateAvailabilityGroup, BulkUpdateDbs, BulkUpdateInstance, BulkUpdatePropertiesOnHost, BulkUpdatePropertiesOnWindowsCluster, CreateLiveMount, CreateLogShippingConfiguration, CreateOnDemandBackup, DeleteDbSnapshots, DeleteLiveMount, DeleteLogShipping, DownloadDatabaseBackupFiles, DownloadDatabaseFilesFromArchivalLocation, ExportDatabase, RestoreDatabase, TakeLogBackup, UpdateDefaultProperties, or UpdateLogShippingConfiguration.
/// AddHost, AssignSlaDomainProperties, AssignSlaDomainPropertiesAsync, BrowseDatabaseSnapshot, BulkCreateOnDemandBackup, BulkUpdateAvailabilityGroup, BulkUpdateDbs, BulkUpdateInstance, BulkUpdatePropertiesOnHost, BulkUpdatePropertiesOnWindowsCluster, CreateLiveMount, CreateLogShippingConfiguration, CreateOnDemandBackup, DeleteDbSnapshots, DeleteLiveMount, DeleteLogShipping, DownloadDatabaseBackupFiles, DownloadDatabaseFilesFromArchivalLocation, ExportDatabase, RestoreDatabase, TakeLogBackup, UpdateDefaultProperties, UpdateLogShippingConfiguration, or UpdateLogShippingConfigurationV1.
/// </summary>
/// <description>
/// New-RscMutationMssql 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 23 operations
/// There are 24 operations
/// in the 'Microsoft SQL Server' API domain. Select the operation this
/// query is for by specifying the appropriate value for the
/// -Operation parameter;
/// one of: AddHost, AssignSlaDomainProperties, AssignSlaDomainPropertiesAsync, BrowseDatabaseSnapshot, BulkCreateOnDemandBackup, BulkUpdateAvailabilityGroup, BulkUpdateDbs, BulkUpdateInstance, BulkUpdatePropertiesOnHost, BulkUpdatePropertiesOnWindowsCluster, CreateLiveMount, CreateLogShippingConfiguration, CreateOnDemandBackup, DeleteDbSnapshots, DeleteLiveMount, DeleteLogShipping, DownloadDatabaseBackupFiles, DownloadDatabaseFilesFromArchivalLocation, ExportDatabase, RestoreDatabase, TakeLogBackup, UpdateDefaultProperties, or UpdateLogShippingConfiguration.
/// one of: AddHost, AssignSlaDomainProperties, AssignSlaDomainPropertiesAsync, BrowseDatabaseSnapshot, BulkCreateOnDemandBackup, BulkUpdateAvailabilityGroup, BulkUpdateDbs, BulkUpdateInstance, BulkUpdatePropertiesOnHost, BulkUpdatePropertiesOnWindowsCluster, CreateLiveMount, CreateLogShippingConfiguration, CreateOnDemandBackup, DeleteDbSnapshots, DeleteLiveMount, DeleteLogShipping, DownloadDatabaseBackupFiles, DownloadDatabaseFilesFromArchivalLocation, ExportDatabase, RestoreDatabase, TakeLogBackup, UpdateDefaultProperties, UpdateLogShippingConfiguration, or UpdateLogShippingConfigurationV1.
/// 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 @@ -1438,6 +1438,47 @@ namespace RubrikSecurityCloud.PowerShell.Cmdlets
///
/// </example>
///
/// <example>
/// Runs the UpdateLogShippingConfigurationV1 operation
/// of the 'Microsoft SQL Server' API domain.
/// <code>
/// PS &gt;
///
///
/// # Create an RscQuery object for:
/// # API Domain: Mssql
/// # API Operation: UpdateLogShippingConfigurationV1
///
/// $query = New-RscMutationMssql -UpdateLogShippingConfigurationV1
///
/// # REQUIRED
/// $query.Var.input = @{
/// # REQUIRED
/// config = @{
/// # OPTIONAL
/// mssqlLogShippingTargetStateOptions = @{
/// # OPTIONAL
/// shouldDisconnectStandbyUsers = $someBoolean
/// # REQUIRED
/// state = $someMssqlLogShippingOkState # Call [Enum]::GetValues([RubrikSecurityCloud.Types.MssqlLogShippingOkState]) for enum values.
/// }
/// }
/// # REQUIRED
/// id = $someString
/// }
///
/// # Execute the query
///
/// $result = $query | Invoke-Rsc
///
/// Write-Host $result.GetType().Name # prints: AsyncRequestStatus
///
///
///
/// </code>
///
/// </example>
///
[CmdletBinding()]
[Cmdlet(
"New",
Expand Down Expand Up @@ -1477,6 +1518,7 @@ public class New_RscMutationMssql : RscGqlPSCmdlet
"TakeLogBackup",
"UpdateDefaultProperties",
"UpdateLogShippingConfiguration",
"UpdateLogShippingConfigurationV1",
IgnoreCase = true)]
public string Operation { get; set; } = "";

Expand Down Expand Up @@ -1561,6 +1603,9 @@ protected override void ProcessRecord()
case "UpdateLogShippingConfiguration":
this.ProcessRecord_UpdateLogShippingConfiguration();
break;
case "UpdateLogShippingConfigurationV1":
this.ProcessRecord_UpdateLogShippingConfigurationV1();
break;
default:
throw new Exception("Unknown Operation " + this.GetOp().OpName());
}
Expand Down Expand Up @@ -1778,6 +1823,15 @@ internal void ProcessRecord_UpdateLogShippingConfiguration()
InitMutationUpdateMssqlLogShippingConfiguration();
}

// This parameter set invokes a single graphql operation:
// updateMssqlLogShippingConfigurationV1.
internal void ProcessRecord_UpdateLogShippingConfigurationV1()
{
this._logger.name += " -UpdateLogShippingConfigurationV1";
// Create new graphql operation updateMssqlLogShippingConfigurationV1
InitMutationUpdateMssqlLogShippingConfigurationV1();
}


// Create new GraphQL Mutation:
// addMssqlHost(input: BulkRegisterHostAsyncInput!): BulkRegisterHostAsyncReply!
Expand Down Expand Up @@ -2957,6 +3011,39 @@ internal void InitMutationUpdateMssqlLogShippingConfiguration()
);
}

// Create new GraphQL Mutation:
// updateMssqlLogShippingConfigurationV1(input: UpdateMssqlLogShippingConfigurationV1Input!): AsyncRequestStatus!
internal void InitMutationUpdateMssqlLogShippingConfigurationV1()
{
Tuple<string, string>[] argDefs = {
Tuple.Create("input", "UpdateMssqlLogShippingConfigurationV1Input!"),
};
Initialize(
argDefs,
"mutation",
"MutationUpdateMssqlLogShippingConfigurationV1",
"($input: UpdateMssqlLogShippingConfigurationV1Input!)",
"AsyncRequestStatus",
Mutation.UpdateMssqlLogShippingConfigurationV1_ObjectFieldSpec,
Mutation.UpdateMssqlLogShippingConfigurationV1FieldSpec,
@"# REQUIRED
$query.Var.input = @{
# REQUIRED
config = @{
# OPTIONAL
mssqlLogShippingTargetStateOptions = @{
# OPTIONAL
shouldDisconnectStandbyUsers = $someBoolean
# REQUIRED
state = $someMssqlLogShippingOkState # Call [Enum]::GetValues([RubrikSecurityCloud.Types.MssqlLogShippingOkState]) for enum values.
}
}
# REQUIRED
id = $someString
}"
);
}


} // class New_RscMutationMssql
}
Loading

0 comments on commit 311512a

Please sign in to comment.