diff --git a/Analytics/OCI.PSModules.Analytics.psd1 b/Analytics/OCI.PSModules.Analytics.psd1 index 2d9a1b991..581e3f3e3 100644 --- a/Analytics/OCI.PSModules.Analytics.psd1 +++ b/Analytics/OCI.PSModules.Analytics.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Analytics.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Analytics.dll' diff --git a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 index 7e0fe9cdf..4f0da671b 100644 --- a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 +++ b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Announcementsservice.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Announcementsservice.dll' diff --git a/Apigateway/OCI.PSModules.Apigateway.psd1 b/Apigateway/OCI.PSModules.Apigateway.psd1 index 552abbbf1..627212e08 100644 --- a/Apigateway/OCI.PSModules.Apigateway.psd1 +++ b/Apigateway/OCI.PSModules.Apigateway.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Apigateway.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apigateway.dll' diff --git a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 index 4fd784bce..9ef721cb3 100644 --- a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 +++ b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Applicationmigration.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Applicationmigration.dll' diff --git a/Audit/OCI.PSModules.Audit.psd1 b/Audit/OCI.PSModules.Audit.psd1 index da3c0ab59..2aedd3a5e 100644 --- a/Audit/OCI.PSModules.Audit.psd1 +++ b/Audit/OCI.PSModules.Audit.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Audit.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Audit.dll' diff --git a/Autoscaling/OCI.PSModules.Autoscaling.psd1 b/Autoscaling/OCI.PSModules.Autoscaling.psd1 index 65b94bc84..e4b6ee0e9 100644 --- a/Autoscaling/OCI.PSModules.Autoscaling.psd1 +++ b/Autoscaling/OCI.PSModules.Autoscaling.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Autoscaling.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Autoscaling.dll' diff --git a/Bds/OCI.PSModules.Bds.psd1 b/Bds/OCI.PSModules.Bds.psd1 index 15dc29311..5cf1fc4a4 100644 --- a/Bds/OCI.PSModules.Bds.psd1 +++ b/Bds/OCI.PSModules.Bds.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Bds.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Bds.dll' diff --git a/Blockchain/OCI.PSModules.Blockchain.psd1 b/Blockchain/OCI.PSModules.Blockchain.psd1 index bfd072f8c..e31d7c281 100644 --- a/Blockchain/OCI.PSModules.Blockchain.psd1 +++ b/Blockchain/OCI.PSModules.Blockchain.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Blockchain.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Blockchain.dll' diff --git a/Budget/OCI.PSModules.Budget.psd1 b/Budget/OCI.PSModules.Budget.psd1 index 0e35c08e7..f4f5f7947 100644 --- a/Budget/OCI.PSModules.Budget.psd1 +++ b/Budget/OCI.PSModules.Budget.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Budget.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Budget.dll' diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ad2099a2..87d210fcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,31 @@ All notable changes to this project will be documented in this file. The format is based on Keep a [Changelog](https://keepachangelog.com/en/1.0.0/). +## 4.0.0 - 2020-12-15 +### Added +- Support for filtering listKeys based on KeyShape in KeyManagement service +- Support for the Oracle Roving Edge Infrastructure service +- Support for flexible ShapeDetails in Load Balancer service +- Support for listing of harvested Rules, additional filtering for Logical Entity list calls in Data Catalog service +- Support second level domain for audit SDK +- Support for listing flex components in Database service +- Support for APEX service for ADBS on OCI console for Database service +- Support for Customer-Managed Key features as a part of the Database service +- Support for Github configuration source provider as part of the Resource Manager service + +### Breaking Changes +- Removing deprecated Get-OCIDatabaseAutonomousDataWarehouse cmdlet from OCI.PSModules.Database module +- Removing deprecated New-OCIDatabaseAutonomousDataWarehouse cmdlet from OCI.PSModules.Database module +- Removing deprecated Remove-OCIDatabaseAutonomousDataWarehouse cmdlet from OCI.PSModules.Database module +- Removing deprecated New-OCIDatabaseAutonomousDataWarehouseWallet cmdlet from OCI.PSModules.Database module +- Removing deprecated New-OCIDatabaseAutonomousDataWarehouseBackup cmdlet from OCI.PSModules.Database module +- Removing deprecated Get-OCIDatabaseAutonomousDataWarehouseBackup cmdlet from OCI.PSModules.Database module +- Removing deprecated Get-OCIDatabaseAutonomousDataWarehouseBackupsList cmdlet from OCI.PSModules.Database module +- Removing deprecated Get-OCIDatabaseAutonomousDataWarehousesList cmdlet from OCI.PSModules.Database module +- Removing deprecated Restore-OCIDatabaseAutonomousDataWarehouse cmdlet from OCI.PSModules.Database module +- Removing deprecated Start-OCIDatabaseAutonomousDataWarehouse cmdlet from OCI.PSModules.Database module +- Removing deprecated Stop-OCIDatabaseAutonomousDataWarehouse API from OCI.PSModules.Database module + ## 3.1.0 - 2020-12-08 ### Added diff --git a/Cims/OCI.PSModules.Cims.psd1 b/Cims/OCI.PSModules.Cims.psd1 index 55c4bab0e..f96f580b0 100644 --- a/Cims/OCI.PSModules.Cims.psd1 +++ b/Cims/OCI.PSModules.Cims.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Cims.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cims.dll' diff --git a/Cloudguard/OCI.PSModules.Cloudguard.psd1 b/Cloudguard/OCI.PSModules.Cloudguard.psd1 index 53a64a49d..743eff070 100644 --- a/Cloudguard/OCI.PSModules.Cloudguard.psd1 +++ b/Cloudguard/OCI.PSModules.Cloudguard.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudguard.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudguard.dll' diff --git a/Common/OCI.PSModules.Common.psd1 b/Common/OCI.PSModules.Common.psd1 index 67ba0ad46..dc9c53256 100644 --- a/Common/OCI.PSModules.Common.psd1 +++ b/Common/OCI.PSModules.Common.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Common.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' diff --git a/Common/Version.cs b/Common/Version.cs index abf7ce2aa..cc14f6a18 100644 --- a/Common/Version.cs +++ b/Common/Version.cs @@ -6,8 +6,8 @@ namespace Oci.PSModules.Common.Cmdlets { public class Version { - public static string MAJOR = "3"; - public static string MINOR = "1"; + public static string MAJOR = "4"; + public static string MINOR = "0"; public static string PATCH = "0"; public static string GetVersion() diff --git a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 index ffc88939b..236a1ed11 100644 --- a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 +++ b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Computeinstanceagent.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Computeinstanceagent.dll' diff --git a/Containerengine/OCI.PSModules.Containerengine.psd1 b/Containerengine/OCI.PSModules.Containerengine.psd1 index 1c82ba303..98288b02d 100644 --- a/Containerengine/OCI.PSModules.Containerengine.psd1 +++ b/Containerengine/OCI.PSModules.Containerengine.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Containerengine.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerengine.dll' diff --git a/Core/OCI.PSModules.Core.psd1 b/Core/OCI.PSModules.Core.psd1 index 76cc57203..f09d6f8e2 100644 --- a/Core/OCI.PSModules.Core.psd1 +++ b/Core/OCI.PSModules.Core.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Core.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Core.dll' diff --git a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouseBackupsList.cs b/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouseBackupsList.cs deleted file mode 100644 index b4b2a4e94..000000000 --- a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouseBackupsList.cs +++ /dev/null @@ -1,105 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, Oracle and/or its affiliates. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; - -namespace Oci.DatabaseService.Cmdlets -{ - [Cmdlet("Get", "OCIDatabaseAutonomousDataWarehouseBackupsList")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouseBackupSummary), typeof(Oci.DatabaseService.Responses.ListAutonomousDataWarehouseBackupsResponse) })] - public class GetOCIDatabaseAutonomousDataWarehouseBackupsList : OCIDatabaseCmdlet - { - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string AutonomousDataWarehouseId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string CompartmentId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return per page.", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The pagination token to continue listing from.")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. - -**Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either ascending (`ASC`) or descending (`DESC`).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given lifecycle state exactly.")] - public System.Nullable LifecycleState { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given. The match is not case sensitive.")] - public string DisplayName { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] - public SwitchParameter All { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - ListAutonomousDataWarehouseBackupsRequest request; - - try - { - request = new ListAutonomousDataWarehouseBackupsRequest - { - AutonomousDataWarehouseId = AutonomousDataWarehouseId, - CompartmentId = CompartmentId, - Limit = Limit, - Page = Page, - SortBy = SortBy, - SortOrder = SortOrder, - LifecycleState = LifecycleState, - DisplayName = DisplayName - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.Items, true); - } - FinishProcessing(response); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private RequestDelegate GetRequestDelegate() - { - IEnumerable DefaultRequest(ListAutonomousDataWarehouseBackupsRequest request) => Enumerable.Repeat(client.ListAutonomousDataWarehouseBackups(request).GetAwaiter().GetResult(), 1); - if (ParameterSetName.Equals(AllPageSet)) - { - return req => client.Paginators.ListAutonomousDataWarehouseBackupsResponseEnumerator(req); - } - return DefaultRequest; - } - - private ListAutonomousDataWarehouseBackupsResponse response; - private delegate IEnumerable RequestDelegate(ListAutonomousDataWarehouseBackupsRequest request); - private const string AllPageSet = "AllPages"; - private const string LimitSet = "Limit"; - } -} diff --git a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehousesList.cs b/Database/Cmdlets/Get-OCIDatabaseFlexComponentsList.cs similarity index 61% rename from Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehousesList.cs rename to Database/Cmdlets/Get-OCIDatabaseFlexComponentsList.cs index e1d0d0159..cafcfbbdd 100644 --- a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehousesList.cs +++ b/Database/Cmdlets/Get-OCIDatabaseFlexComponentsList.cs @@ -16,58 +16,52 @@ namespace Oci.DatabaseService.Cmdlets { - [Cmdlet("Get", "OCIDatabaseAutonomousDataWarehousesList")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouseSummary), typeof(Oci.DatabaseService.Responses.ListAutonomousDataWarehousesResponse) })] - public class GetOCIDatabaseAutonomousDataWarehousesList : OCIDatabaseCmdlet + [Cmdlet("Get", "OCIDatabaseFlexComponentsList")] + [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.FlexComponentCollection), typeof(Oci.DatabaseService.Responses.ListFlexComponentsResponse) })] + public class GetOCIDatabaseFlexComponentsList : OCIDatabaseCmdlet { [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] public string CompartmentId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire name given. The match is not case sensitive.")] + public string Name { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either ascending (`ASC`) or descending (`DESC`).")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. You can provide one sort order (`sortOrder`). Default order for NAME is ascending. The NAME sort order is case sensitive.")] + public System.Nullable SortBy { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return per page.", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The pagination token to continue listing from.")] public string Page { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. - -**Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either ascending (`ASC`) or descending (`DESC`).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given lifecycle state exactly.")] - public System.Nullable LifecycleState { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given. The match is not case sensitive.")] - public string DisplayName { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } protected override void ProcessRecord() { base.ProcessRecord(); - ListAutonomousDataWarehousesRequest request; + ListFlexComponentsRequest request; try { - request = new ListAutonomousDataWarehousesRequest + request = new ListFlexComponentsRequest { CompartmentId = CompartmentId, - Limit = Limit, - Page = Page, - SortBy = SortBy, + Name = Name, SortOrder = SortOrder, - LifecycleState = LifecycleState, - DisplayName = DisplayName + SortBy = SortBy, + Limit = Limit, + Page = Page }; - IEnumerable responses = GetRequestDelegate().Invoke(request); + IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; - WriteOutput(response, response.Items, true); + WriteOutput(response, response.FlexComponentCollection, true); } FinishProcessing(response); } @@ -85,16 +79,16 @@ protected override void StopProcessing() private RequestDelegate GetRequestDelegate() { - IEnumerable DefaultRequest(ListAutonomousDataWarehousesRequest request) => Enumerable.Repeat(client.ListAutonomousDataWarehouses(request).GetAwaiter().GetResult(), 1); + IEnumerable DefaultRequest(ListFlexComponentsRequest request) => Enumerable.Repeat(client.ListFlexComponents(request).GetAwaiter().GetResult(), 1); if (ParameterSetName.Equals(AllPageSet)) { - return req => client.Paginators.ListAutonomousDataWarehousesResponseEnumerator(req); + return req => client.Paginators.ListFlexComponentsResponseEnumerator(req); } return DefaultRequest; } - private ListAutonomousDataWarehousesResponse response; - private delegate IEnumerable RequestDelegate(ListAutonomousDataWarehousesRequest request); + private ListFlexComponentsResponse response; + private delegate IEnumerable RequestDelegate(ListFlexComponentsRequest request); private const string AllPageSet = "AllPages"; private const string LimitSet = "Limit"; } diff --git a/Database/Cmdlets/Invoke-OCIDatabaseMigrateVaultKey.cs b/Database/Cmdlets/Invoke-OCIDatabaseMigrateVaultKey.cs new file mode 100644 index 000000000..813c3af71 --- /dev/null +++ b/Database/Cmdlets/Invoke-OCIDatabaseMigrateVaultKey.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.DatabaseService.Requests; +using Oci.DatabaseService.Responses; +using Oci.DatabaseService.Models; +using Oci.Common.Waiters; + +namespace Oci.DatabaseService.Cmdlets +{ + [Cmdlet("Invoke", "OCIDatabaseMigrateVaultKey", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.Database), typeof(Oci.DatabaseService.Responses.MigrateVaultKeyResponse) })] + public class InvokeOCIDatabaseMigrateVaultKey : OCIDatabaseCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).", ParameterSetName = Default)] + public string DatabaseId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to change the source of the encryption key for the database.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to change the source of the encryption key for the database.", ParameterSetName = Default)] + public MigrateVaultKeyDetails MigrateVaultKeyDetails { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.", ParameterSetName = Default)] + public string IfMatch { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).", ParameterSetName = Default)] + public string OpcRetryToken { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = StatusParamSet)] + public WorkrequestsService.Models.WorkRequest.StatusEnum[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + MigrateVaultKeyRequest request; + + try + { + request = new MigrateVaultKeyRequest + { + DatabaseId = DatabaseId, + MigrateVaultKeyDetails = MigrateVaultKeyDetails, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(MigrateVaultKeyRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForMigrateVaultKey(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.MigrateVaultKey(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Database); + } + + private MigrateVaultKeyResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Database/Cmdlets/Invoke-OCIDatabaseRotateVaultKey.cs b/Database/Cmdlets/Invoke-OCIDatabaseRotateVaultKey.cs new file mode 100644 index 000000000..ec2cc122e --- /dev/null +++ b/Database/Cmdlets/Invoke-OCIDatabaseRotateVaultKey.cs @@ -0,0 +1,106 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.DatabaseService.Requests; +using Oci.DatabaseService.Responses; +using Oci.DatabaseService.Models; +using Oci.Common.Waiters; + +namespace Oci.DatabaseService.Cmdlets +{ + [Cmdlet("Invoke", "OCIDatabaseRotateVaultKey", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.Database), typeof(Oci.DatabaseService.Responses.RotateVaultKeyResponse) })] + public class InvokeOCIDatabaseRotateVaultKey : OCIDatabaseCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).", ParameterSetName = Default)] + public string DatabaseId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.", ParameterSetName = Default)] + public string IfMatch { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).", ParameterSetName = Default)] + public string OpcRetryToken { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = StatusParamSet)] + public WorkrequestsService.Models.WorkRequest.StatusEnum[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + RotateVaultKeyRequest request; + + try + { + request = new RotateVaultKeyRequest + { + DatabaseId = DatabaseId, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(RotateVaultKeyRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForRotateVaultKey(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.RotateVaultKey(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Database); + } + + private RotateVaultKeyResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouseWallet.cs b/Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouseWallet.cs deleted file mode 100644 index 86bf90999..000000000 --- a/Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouseWallet.cs +++ /dev/null @@ -1,92 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, Oracle and/or its affiliates. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ - -using System; -using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; - -namespace Oci.DatabaseService.Cmdlets -{ - /* - * As per https://github.com/PowerShell/PowerShell/issues/11143, this cmdlet is marked with a default parameter set for proper resolution of the invoked parameter set. - * Parameter set "Default" contains all the parameters that are defined in this class(including base classes) and are not explicitly tagged with a ParameterSetName. - */ - [Cmdlet("New", "OCIDatabaseAutonomousDataWarehouseWallet", DefaultParameterSetName = Default)] - [OutputType(new System.Type[] { typeof(System.IO.Stream), typeof(void), typeof(Oci.DatabaseService.Responses.GenerateAutonomousDataWarehouseWalletResponse) })] - public class NewOCIDatabaseAutonomousDataWarehouseWallet : OCIDatabaseCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string AutonomousDataWarehouseId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to create a new Autonomous Data Warehouse wallet.")] - public GenerateAutonomousDataWarehouseWalletDetails GenerateAutonomousDataWarehouseWalletDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Path to the output file.", ParameterSetName = WriteToFileSet)] - public string OutputFile { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Output the complete response returned by the API Operation. Using this switch will make this Cmdlet output an object containing response headers in-addition to an optional response body.", ParameterSetName = FullResponseSet)] - public override SwitchParameter FullResponse { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GenerateAutonomousDataWarehouseWalletRequest request; - - try - { - request = new GenerateAutonomousDataWarehouseWalletRequest - { - AutonomousDataWarehouseId = AutonomousDataWarehouseId, - GenerateAutonomousDataWarehouseWalletDetails = GenerateAutonomousDataWarehouseWalletDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken - }; - - response = client.GenerateAutonomousDataWarehouseWallet(request).GetAwaiter().GetResult(); - HandleOutput(); - - FinishProcessing(response); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private void HandleOutput() - { - if (ParameterSetName.Equals(WriteToFileSet)) - { - WriteToOutputFile(OutputFile, response.InputStream); - } - else - { - WriteOutput(response, response.InputStream); - } - } - - private GenerateAutonomousDataWarehouseWalletResponse response; - private const string Default = "Default"; - private const string WriteToFileSet = "WriteToFile"; - private const string FullResponseSet = "FullResponse"; - } -} diff --git a/Database/Cmdlets/Restore-OCIDatabaseAutonomousDataWarehouse.cs b/Database/Cmdlets/Restore-OCIDatabaseAutonomousDataWarehouse.cs deleted file mode 100644 index f19302efb..000000000 --- a/Database/Cmdlets/Restore-OCIDatabaseAutonomousDataWarehouse.cs +++ /dev/null @@ -1,62 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, Oracle and/or its affiliates. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ - -using System; -using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; - -namespace Oci.DatabaseService.Cmdlets -{ - [Cmdlet("Restore", "OCIDatabaseAutonomousDataWarehouse")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouse), typeof(Oci.DatabaseService.Responses.RestoreAutonomousDataWarehouseResponse) })] - public class RestoreOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string AutonomousDataWarehouseId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to perform an Autonomous Data Warehouse restore.")] - public RestoreAutonomousDataWarehouseDetails RestoreAutonomousDataWarehouseDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - RestoreAutonomousDataWarehouseRequest request; - - try - { - request = new RestoreAutonomousDataWarehouseRequest - { - AutonomousDataWarehouseId = AutonomousDataWarehouseId, - RestoreAutonomousDataWarehouseDetails = RestoreAutonomousDataWarehouseDetails, - IfMatch = IfMatch - }; - - response = client.RestoreAutonomousDataWarehouse(request).GetAwaiter().GetResult(); - WriteOutput(response, response.AutonomousDataWarehouse); - FinishProcessing(response); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private RestoreAutonomousDataWarehouseResponse response; - } -} diff --git a/Database/Cmdlets/Start-OCIDatabaseAutonomousDataWarehouse.cs b/Database/Cmdlets/Start-OCIDatabaseAutonomousDataWarehouse.cs deleted file mode 100644 index a551078e0..000000000 --- a/Database/Cmdlets/Start-OCIDatabaseAutonomousDataWarehouse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, Oracle and/or its affiliates. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ - -using System; -using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; - -namespace Oci.DatabaseService.Cmdlets -{ - [Cmdlet("Start", "OCIDatabaseAutonomousDataWarehouse")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouse), typeof(Oci.DatabaseService.Responses.StartAutonomousDataWarehouseResponse) })] - public class StartOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string AutonomousDataWarehouseId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - StartAutonomousDataWarehouseRequest request; - - try - { - request = new StartAutonomousDataWarehouseRequest - { - AutonomousDataWarehouseId = AutonomousDataWarehouseId, - IfMatch = IfMatch - }; - - response = client.StartAutonomousDataWarehouse(request).GetAwaiter().GetResult(); - WriteOutput(response, response.AutonomousDataWarehouse); - FinishProcessing(response); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private StartAutonomousDataWarehouseResponse response; - } -} diff --git a/Database/Cmdlets/Stop-OCIDatabaseAutonomousDataWarehouse.cs b/Database/Cmdlets/Stop-OCIDatabaseAutonomousDataWarehouse.cs deleted file mode 100644 index b9baf2985..000000000 --- a/Database/Cmdlets/Stop-OCIDatabaseAutonomousDataWarehouse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, Oracle and/or its affiliates. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ - -using System; -using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; - -namespace Oci.DatabaseService.Cmdlets -{ - [Cmdlet("Stop", "OCIDatabaseAutonomousDataWarehouse")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouse), typeof(Oci.DatabaseService.Responses.StopAutonomousDataWarehouseResponse) })] - public class StopOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string AutonomousDataWarehouseId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - StopAutonomousDataWarehouseRequest request; - - try - { - request = new StopAutonomousDataWarehouseRequest - { - AutonomousDataWarehouseId = AutonomousDataWarehouseId, - IfMatch = IfMatch - }; - - response = client.StopAutonomousDataWarehouse(request).GetAwaiter().GetResult(); - WriteOutput(response, response.AutonomousDataWarehouse); - FinishProcessing(response); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private StopAutonomousDataWarehouseResponse response; - } -} diff --git a/Database/Cmdlets/Update-OCIDatabaseAutonomousDataWarehouse.cs b/Database/Cmdlets/Update-OCIDatabaseAutonomousDataWarehouse.cs deleted file mode 100644 index ce3963641..000000000 --- a/Database/Cmdlets/Update-OCIDatabaseAutonomousDataWarehouse.cs +++ /dev/null @@ -1,62 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, Oracle and/or its affiliates. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ - -using System; -using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; - -namespace Oci.DatabaseService.Cmdlets -{ - [Cmdlet("Update", "OCIDatabaseAutonomousDataWarehouse")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouse), typeof(Oci.DatabaseService.Responses.UpdateAutonomousDataWarehouseResponse) })] - public class UpdateOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string AutonomousDataWarehouseId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to update the properties of an Autonomous Data Warehouse.")] - public UpdateAutonomousDataWarehouseDetails UpdateAutonomousDataWarehouseDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - UpdateAutonomousDataWarehouseRequest request; - - try - { - request = new UpdateAutonomousDataWarehouseRequest - { - AutonomousDataWarehouseId = AutonomousDataWarehouseId, - UpdateAutonomousDataWarehouseDetails = UpdateAutonomousDataWarehouseDetails, - IfMatch = IfMatch - }; - - response = client.UpdateAutonomousDataWarehouse(request).GetAwaiter().GetResult(); - WriteOutput(response, response.AutonomousDataWarehouse); - FinishProcessing(response); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private UpdateAutonomousDataWarehouseResponse response; - } -} diff --git a/Database/OCI.PSModules.Database.psd1 b/Database/OCI.PSModules.Database.psd1 index 637987656..f8c96e5fc 100644 --- a/Database/OCI.PSModules.Database.psd1 +++ b/Database/OCI.PSModules.Database.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Database.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Database.dll' @@ -90,10 +90,6 @@ CmdletsToExport = 'Complete-OCIDatabaseExternalBackupJob', 'Get-OCIDatabaseAutonomousDatabaseRegionalWallet', 'Get-OCIDatabaseAutonomousDatabasesList', 'Get-OCIDatabaseAutonomousDatabaseWallet', - 'Get-OCIDatabaseAutonomousDataWarehouse', - 'Get-OCIDatabaseAutonomousDataWarehouseBackup', - 'Get-OCIDatabaseAutonomousDataWarehouseBackupsList', - 'Get-OCIDatabaseAutonomousDataWarehousesList', 'Get-OCIDatabaseAutonomousDbPreviewVersionsList', 'Get-OCIDatabaseAutonomousDbVersionsList', 'Get-OCIDatabaseAutonomousExadataInfrastructure', @@ -134,9 +130,10 @@ CmdletsToExport = 'Complete-OCIDatabaseExternalBackupJob', 'Get-OCIDatabaseExadataInfrastructureOcpus', 'Get-OCIDatabaseExadataInfrastructuresList', 'Get-OCIDatabaseExadataIormConfig', - 'Get-OCIDatabaseExternalBackupJob', 'Get-OCIDatabaseGiVersionsList', - 'Get-OCIDatabaseKeyStore', 'Get-OCIDatabaseKeyStoresList', - 'Get-OCIDatabaseMaintenanceRun', + 'Get-OCIDatabaseExternalBackupJob', + 'Get-OCIDatabaseFlexComponentsList', + 'Get-OCIDatabaseGiVersionsList', 'Get-OCIDatabaseKeyStore', + 'Get-OCIDatabaseKeyStoresList', 'Get-OCIDatabaseMaintenanceRun', 'Get-OCIDatabaseMaintenanceRunsList', 'Get-OCIDatabasesList', 'Get-OCIDatabaseSoftwareImage', 'Get-OCIDatabaseSoftwareImagesList', 'Get-OCIDatabaseUpgradeHistoryEntriesList', @@ -157,12 +154,14 @@ CmdletsToExport = 'Complete-OCIDatabaseExternalBackupJob', 'Invoke-OCIDatabaseFailoverDataGuardAssociation', 'Invoke-OCIDatabaseLaunchAutonomousExadataInfrastructure', 'Invoke-OCIDatabaseMigrateExadataDbSystemResourceModel', + 'Invoke-OCIDatabaseMigrateVaultKey', 'Invoke-OCIDatabaseReinstateAutonomousContainerDatabaseDataguardAssociation', 'Invoke-OCIDatabaseReinstateDataGuardAssociation', 'Invoke-OCIDatabaseRotateAutonomousContainerDatabaseEncryptionKey', 'Invoke-OCIDatabaseRotateAutonomousDatabaseEncryptionKey', 'Invoke-OCIDatabaseRotateOrdsCerts', 'Invoke-OCIDatabaseRotateSslCerts', + 'Invoke-OCIDatabaseRotateVaultKey', 'Invoke-OCIDatabaseSwitchoverAutonomousContainerDatabaseDataguardAssociation', 'Invoke-OCIDatabaseSwitchoverAutonomousDatabase', 'Invoke-OCIDatabaseSwitchoverDataGuardAssociation', @@ -186,9 +185,6 @@ CmdletsToExport = 'Complete-OCIDatabaseExternalBackupJob', 'New-OCIDatabaseAutonomousDatabase', 'New-OCIDatabaseAutonomousDatabaseBackup', 'New-OCIDatabaseAutonomousDatabaseWallet', - 'New-OCIDatabaseAutonomousDataWarehouse', - 'New-OCIDatabaseAutonomousDataWarehouseBackup', - 'New-OCIDatabaseAutonomousDataWarehouseWallet', 'New-OCIDatabaseAutonomousVmCluster', 'New-OCIDatabaseBackup', 'New-OCIDatabaseBackupDestination', 'New-OCIDatabaseCloudExadataInfrastructure', @@ -201,7 +197,6 @@ CmdletsToExport = 'Complete-OCIDatabaseExternalBackupJob', 'New-OCIDatabaseVmClusterNetwork', 'Register-OCIDatabaseAutonomousDatabaseDataSafe', 'Remove-OCIDatabase', 'Remove-OCIDatabaseAutonomousDatabase', - 'Remove-OCIDatabaseAutonomousDataWarehouse', 'Remove-OCIDatabaseAutonomousVmCluster', 'Remove-OCIDatabaseBackup', 'Remove-OCIDatabaseBackupDestination', 'Remove-OCIDatabaseCloudExadataInfrastructure', @@ -213,18 +208,14 @@ CmdletsToExport = 'Complete-OCIDatabaseExternalBackupJob', 'Restart-OCIDatabaseAutonomousContainerDatabase', 'Restart-OCIDatabaseAutonomousDatabase', 'Restore-OCIDatabase', 'Restore-OCIDatabaseAutonomousDatabase', - 'Restore-OCIDatabaseAutonomousDataWarehouse', 'Start-OCIDatabaseAutonomousDatabase', - 'Start-OCIDatabaseAutonomousDataWarehouse', 'Stop-OCIDatabaseAutonomousDatabase', - 'Stop-OCIDatabaseAutonomousDataWarehouse', 'Unregister-OCIDatabaseAutonomousDatabaseDataSafe', 'Update-OCIDatabase', 'Update-OCIDatabaseAutonomousContainerDatabase', 'Update-OCIDatabaseAutonomousDatabase', 'Update-OCIDatabaseAutonomousDatabaseRegionalWallet', 'Update-OCIDatabaseAutonomousDatabaseWallet', - 'Update-OCIDatabaseAutonomousDataWarehouse', 'Update-OCIDatabaseAutonomousExadataInfrastructure', 'Update-OCIDatabaseAutonomousVmCluster', 'Update-OCIDatabaseBackupDestination', diff --git a/Datacatalog/Cmdlets/Get-OCIDatacatalogAggregatedPhysicalEntitiesList.cs b/Datacatalog/Cmdlets/Get-OCIDatacatalogAggregatedPhysicalEntitiesList.cs index 194a593c5..5d652940e 100644 --- a/Datacatalog/Cmdlets/Get-OCIDatacatalogAggregatedPhysicalEntitiesList.cs +++ b/Datacatalog/Cmdlets/Get-OCIDatacatalogAggregatedPhysicalEntitiesList.cs @@ -30,6 +30,21 @@ public class GetOCIDatacatalogAggregatedPhysicalEntitiesList : OCIDataCatalogCmd [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to return in an entity response.")] public System.Collections.Generic.List Fields { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with ""Cu"".")] + public string DisplayNameContains { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.")] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] public string OpcRequestId { get; set; } @@ -46,6 +61,11 @@ protected override void ProcessRecord() DataAssetKey = DataAssetKey, EntityKey = EntityKey, Fields = Fields, + DisplayNameContains = DisplayNameContains, + SortBy = SortBy, + SortOrder = SortOrder, + Limit = Limit, + Page = Page, OpcRequestId = OpcRequestId }; diff --git a/Datacatalog/Cmdlets/Get-OCIDatacatalogDerivedLogicalEntitiesList.cs b/Datacatalog/Cmdlets/Get-OCIDatacatalogDerivedLogicalEntitiesList.cs index 6d9ce7514..311b65ecc 100644 --- a/Datacatalog/Cmdlets/Get-OCIDatacatalogDerivedLogicalEntitiesList.cs +++ b/Datacatalog/Cmdlets/Get-OCIDatacatalogDerivedLogicalEntitiesList.cs @@ -24,6 +24,21 @@ public class GetOCIDatacatalogDerivedLogicalEntitiesList : OCIDataCatalogCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique pattern key.")] public string PatternKey { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with ""Cu"".")] + public string DisplayNameContains { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.")] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] public string OpcRequestId { get; set; } @@ -44,6 +59,11 @@ protected override void ProcessRecord() { CatalogId = CatalogId, PatternKey = PatternKey, + DisplayNameContains = DisplayNameContains, + SortBy = SortBy, + SortOrder = SortOrder, + Limit = Limit, + Page = Page, OpcRequestId = OpcRequestId, IfMatch = IfMatch, OpcRetryToken = OpcRetryToken diff --git a/Datacatalog/Cmdlets/Get-OCIDatacatalogRulesList.cs b/Datacatalog/Cmdlets/Get-OCIDatacatalogRulesList.cs new file mode 100644 index 000000000..7e3921ee3 --- /dev/null +++ b/Datacatalog/Cmdlets/Get-OCIDatacatalogRulesList.cs @@ -0,0 +1,147 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20190325 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.DatacatalogService.Requests; +using Oci.DatacatalogService.Responses; +using Oci.DatacatalogService.Models; + +namespace Oci.DatacatalogService.Cmdlets +{ + [Cmdlet("Get", "OCIDatacatalogRulesList")] + [OutputType(new System.Type[] { typeof(Oci.DatacatalogService.Models.RuleCollection), typeof(Oci.DatacatalogService.Responses.ListRulesResponse) })] + public class GetOCIDatacatalogRulesList : OCIDataCatalogCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique catalog identifier.")] + public string CatalogId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique data asset key.")] + public string DataAssetKey { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique entity key.")] + public string EntityKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given. The match is not case sensitive.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with ""Cu"".")] + public string DisplayNameContains { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Rule type used to filter the response to a list rules call.")] + public System.Nullable RuleType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the specified lifecycle state. The value is case insensitive.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Rule origin type used to filter the response to a list rules call.")] + public System.Nullable OriginType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique external identifier of this resource in the external source system.")] + public string ExternalKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string.")] + public System.Nullable TimeCreated { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string.")] + public System.Nullable TimeUpdated { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the user who created the resource.")] + public string CreatedById { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the user who updated the resource.")] + public string UpdatedById { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to return in a rule summary response.")] + public System.Collections.Generic.List Fields { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListRulesRequest request; + + try + { + request = new ListRulesRequest + { + CatalogId = CatalogId, + DataAssetKey = DataAssetKey, + EntityKey = EntityKey, + DisplayName = DisplayName, + DisplayNameContains = DisplayNameContains, + RuleType = RuleType, + LifecycleState = LifecycleState, + OriginType = OriginType, + ExternalKey = ExternalKey, + TimeCreated = TimeCreated, + TimeUpdated = TimeUpdated, + CreatedById = CreatedById, + UpdatedById = UpdatedById, + Fields = Fields, + SortBy = SortBy, + SortOrder = SortOrder, + Limit = Limit, + Page = Page, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.RuleCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListRulesRequest request) => Enumerable.Repeat(client.ListRules(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRulesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRulesResponse response; + private delegate IEnumerable RequestDelegate(ListRulesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Datacatalog/OCI.PSModules.Datacatalog.psd1 b/Datacatalog/OCI.PSModules.Datacatalog.psd1 index f50d79d98..11653173b 100644 --- a/Datacatalog/OCI.PSModules.Datacatalog.psd1 +++ b/Datacatalog/OCI.PSModules.Datacatalog.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datacatalog.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datacatalog.dll' @@ -103,8 +103,8 @@ CmdletsToExport = 'Add-OCIDatacatalogDataSelectorPatterns', 'Get-OCIDatacatalogJobMetricsList', 'Get-OCIDatacatalogJobsList', 'Get-OCIDatacatalogNamespace', 'Get-OCIDatacatalogNamespacesList', 'Get-OCIDatacatalogPattern', 'Get-OCIDatacatalogPatternsList', - 'Get-OCIDatacatalogTagsList', 'Get-OCIDatacatalogTerm', - 'Get-OCIDatacatalogTermRelationship', + 'Get-OCIDatacatalogRulesList', 'Get-OCIDatacatalogTagsList', + 'Get-OCIDatacatalogTerm', 'Get-OCIDatacatalogTermRelationship', 'Get-OCIDatacatalogTermRelationshipsList', 'Get-OCIDatacatalogTermsList', 'Get-OCIDatacatalogType', 'Get-OCIDatacatalogTypesList', 'Get-OCIDatacatalogWorkRequest', diff --git a/Dataflow/OCI.PSModules.Dataflow.psd1 b/Dataflow/OCI.PSModules.Dataflow.psd1 index e042be163..38aed80b2 100644 --- a/Dataflow/OCI.PSModules.Dataflow.psd1 +++ b/Dataflow/OCI.PSModules.Dataflow.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataflow.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataflow.dll' diff --git a/Dataintegration/OCI.PSModules.Dataintegration.psd1 b/Dataintegration/OCI.PSModules.Dataintegration.psd1 index 63e048dc9..3d903eba6 100644 --- a/Dataintegration/OCI.PSModules.Dataintegration.psd1 +++ b/Dataintegration/OCI.PSModules.Dataintegration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataintegration.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataintegration.dll' diff --git a/Datasafe/OCI.PSModules.Datasafe.psd1 b/Datasafe/OCI.PSModules.Datasafe.psd1 index 171053352..147127e64 100644 --- a/Datasafe/OCI.PSModules.Datasafe.psd1 +++ b/Datasafe/OCI.PSModules.Datasafe.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datasafe.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datasafe.dll' diff --git a/Datascience/OCI.PSModules.Datascience.psd1 b/Datascience/OCI.PSModules.Datascience.psd1 index 844bd57ae..3bca4a395 100644 --- a/Datascience/OCI.PSModules.Datascience.psd1 +++ b/Datascience/OCI.PSModules.Datascience.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datascience.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datascience.dll' diff --git a/Directory.Build.props b/Directory.Build.props index 837602e90..d88361e8e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 8.1.0 + 9.0.0 diff --git a/Dns/OCI.PSModules.Dns.psd1 b/Dns/OCI.PSModules.Dns.psd1 index b36480a0b..bcd4ebc37 100644 --- a/Dns/OCI.PSModules.Dns.psd1 +++ b/Dns/OCI.PSModules.Dns.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dns.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dns.dll' diff --git a/Dts/OCI.PSModules.Dts.psd1 b/Dts/OCI.PSModules.Dts.psd1 index 52c52d107..bbfce90a7 100644 --- a/Dts/OCI.PSModules.Dts.psd1 +++ b/Dts/OCI.PSModules.Dts.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dts.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dts.dll' diff --git a/Email/OCI.PSModules.Email.psd1 b/Email/OCI.PSModules.Email.psd1 index 887fa0a58..85c39e98b 100644 --- a/Email/OCI.PSModules.Email.psd1 +++ b/Email/OCI.PSModules.Email.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Email.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Email.dll' diff --git a/Events/OCI.PSModules.Events.psd1 b/Events/OCI.PSModules.Events.psd1 index bbec28ef9..1dde5710d 100644 --- a/Events/OCI.PSModules.Events.psd1 +++ b/Events/OCI.PSModules.Events.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Events.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Events.dll' diff --git a/Filestorage/OCI.PSModules.Filestorage.psd1 b/Filestorage/OCI.PSModules.Filestorage.psd1 index 25e42433c..c7dedb13a 100644 --- a/Filestorage/OCI.PSModules.Filestorage.psd1 +++ b/Filestorage/OCI.PSModules.Filestorage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Filestorage.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Filestorage.dll' diff --git a/Functions/OCI.PSModules.Functions.psd1 b/Functions/OCI.PSModules.Functions.psd1 index 4ad3c797d..2d117f381 100644 --- a/Functions/OCI.PSModules.Functions.psd1 +++ b/Functions/OCI.PSModules.Functions.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Functions.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Functions.dll' diff --git a/Healthchecks/OCI.PSModules.Healthchecks.psd1 b/Healthchecks/OCI.PSModules.Healthchecks.psd1 index 14d98bdf6..3beccc4e5 100644 --- a/Healthchecks/OCI.PSModules.Healthchecks.psd1 +++ b/Healthchecks/OCI.PSModules.Healthchecks.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Healthchecks.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Healthchecks.dll' diff --git a/Identity/OCI.PSModules.Identity.psd1 b/Identity/OCI.PSModules.Identity.psd1 index f8febd52a..35f18111d 100644 --- a/Identity/OCI.PSModules.Identity.psd1 +++ b/Identity/OCI.PSModules.Identity.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Identity.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identity.dll' diff --git a/Integration/OCI.PSModules.Integration.psd1 b/Integration/OCI.PSModules.Integration.psd1 index 6c9fedc44..aef7ddfc8 100644 --- a/Integration/OCI.PSModules.Integration.psd1 +++ b/Integration/OCI.PSModules.Integration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Integration.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Integration.dll' diff --git a/Keymanagement/Cmdlets/Get-OCIKeymanagementKeysList.cs b/Keymanagement/Cmdlets/Get-OCIKeymanagementKeysList.cs index 9f6f1faf6..3bf27ed6a 100644 --- a/Keymanagement/Cmdlets/Get-OCIKeymanagementKeysList.cs +++ b/Keymanagement/Cmdlets/Get-OCIKeymanagementKeysList.cs @@ -41,6 +41,12 @@ public class GetOCIKeymanagementKeysList : OCIKmsManagementCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of `HSM` means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode of `SOFTWARE` means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode of `SOFTWARE` are performed on the server.")] public System.Nullable ProtectionMode { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The algorithm used by a key's key versions to encrypt or decrypt. Currently, only AES is supported.")] + public System.Nullable Algorithm { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The length of the key in bytes, expressed as an integer. Values of 16, 24, or 32 are supported.")] + public System.Nullable Length { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -59,7 +65,9 @@ protected override void ProcessRecord() OpcRequestId = OpcRequestId, SortBy = SortBy, SortOrder = SortOrder, - ProtectionMode = ProtectionMode + ProtectionMode = ProtectionMode, + Algorithm = Algorithm, + Length = Length }; IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) diff --git a/Keymanagement/OCI.PSModules.Keymanagement.psd1 b/Keymanagement/OCI.PSModules.Keymanagement.psd1 index 75132787e..c86632d9a 100644 --- a/Keymanagement/OCI.PSModules.Keymanagement.psd1 +++ b/Keymanagement/OCI.PSModules.Keymanagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Keymanagement.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Keymanagement.dll' diff --git a/Limits/OCI.PSModules.Limits.psd1 b/Limits/OCI.PSModules.Limits.psd1 index aad3d51c2..ff47f9e0c 100644 --- a/Limits/OCI.PSModules.Limits.psd1 +++ b/Limits/OCI.PSModules.Limits.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Limits.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Limits.dll' diff --git a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 index 6116c0d09..7d9a42ace 100644 --- a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 +++ b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loadbalancer.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loadbalancer.dll' diff --git a/Loganalytics/OCI.PSModules.Loganalytics.psd1 b/Loganalytics/OCI.PSModules.Loganalytics.psd1 index 94497bf31..14b35048d 100644 --- a/Loganalytics/OCI.PSModules.Loganalytics.psd1 +++ b/Loganalytics/OCI.PSModules.Loganalytics.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loganalytics.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loganalytics.dll' diff --git a/Logging/OCI.PSModules.Logging.psd1 b/Logging/OCI.PSModules.Logging.psd1 index 57e865c80..89a23e018 100644 --- a/Logging/OCI.PSModules.Logging.psd1 +++ b/Logging/OCI.PSModules.Logging.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Logging.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Logging.dll' diff --git a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 index d90e0f97e..1734b92aa 100644 --- a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 +++ b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingingestion.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loggingingestion.dll' diff --git a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 index 9b60f83e5..3a8ca49cf 100644 --- a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 +++ b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingsearch.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loggingsearch.dll' diff --git a/Managementagent/OCI.PSModules.Managementagent.psd1 b/Managementagent/OCI.PSModules.Managementagent.psd1 index 31810cd23..ed8f134c7 100644 --- a/Managementagent/OCI.PSModules.Managementagent.psd1 +++ b/Managementagent/OCI.PSModules.Managementagent.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementagent.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Managementagent.dll' diff --git a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 index d13842508..fd5b9d249 100644 --- a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 +++ b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementdashboard.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Managementdashboard.dll' diff --git a/Marketplace/OCI.PSModules.Marketplace.psd1 b/Marketplace/OCI.PSModules.Marketplace.psd1 index a05de78ed..04152a07c 100644 --- a/Marketplace/OCI.PSModules.Marketplace.psd1 +++ b/Marketplace/OCI.PSModules.Marketplace.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Marketplace.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplace.dll' diff --git a/Monitoring/OCI.PSModules.Monitoring.psd1 b/Monitoring/OCI.PSModules.Monitoring.psd1 index 5d2ff8274..2b7887e63 100644 --- a/Monitoring/OCI.PSModules.Monitoring.psd1 +++ b/Monitoring/OCI.PSModules.Monitoring.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Monitoring.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Monitoring.dll' diff --git a/Mysql/OCI.PSModules.Mysql.psd1 b/Mysql/OCI.PSModules.Mysql.psd1 index 185834c76..c8dbed972 100644 --- a/Mysql/OCI.PSModules.Mysql.psd1 +++ b/Mysql/OCI.PSModules.Mysql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Mysql.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mysql.dll' diff --git a/Nosql/OCI.PSModules.Nosql.psd1 b/Nosql/OCI.PSModules.Nosql.psd1 index f0befa72a..6d9ec150a 100644 --- a/Nosql/OCI.PSModules.Nosql.psd1 +++ b/Nosql/OCI.PSModules.Nosql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Nosql.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Nosql.dll' diff --git a/Objectstorage/OCI.PSModules.Objectstorage.psd1 b/Objectstorage/OCI.PSModules.Objectstorage.psd1 index 397da7c07..af5b8b57e 100644 --- a/Objectstorage/OCI.PSModules.Objectstorage.psd1 +++ b/Objectstorage/OCI.PSModules.Objectstorage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Objectstorage.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Objectstorage.dll' diff --git a/Oce/OCI.PSModules.Oce.psd1 b/Oce/OCI.PSModules.Oce.psd1 index 47f745a65..4769f8439 100644 --- a/Oce/OCI.PSModules.Oce.psd1 +++ b/Oce/OCI.PSModules.Oce.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Oce.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oce.dll' diff --git a/Ocvp/OCI.PSModules.Ocvp.psd1 b/Ocvp/OCI.PSModules.Ocvp.psd1 index 4fdf601cc..f0f29c0c1 100644 --- a/Ocvp/OCI.PSModules.Ocvp.psd1 +++ b/Ocvp/OCI.PSModules.Ocvp.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Ocvp.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ocvp.dll' diff --git a/Oda/OCI.PSModules.Oda.psd1 b/Oda/OCI.PSModules.Oda.psd1 index 5ff0cf3a2..7f13f980d 100644 --- a/Oda/OCI.PSModules.Oda.psd1 +++ b/Oda/OCI.PSModules.Oda.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Oda.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oda.dll' diff --git a/Ons/OCI.PSModules.Ons.psd1 b/Ons/OCI.PSModules.Ons.psd1 index fea5c41f0..be955d3bc 100644 --- a/Ons/OCI.PSModules.Ons.psd1 +++ b/Ons/OCI.PSModules.Ons.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Ons.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ons.dll' diff --git a/Opsi/OCI.PSModules.Opsi.psd1 b/Opsi/OCI.PSModules.Opsi.psd1 index 64a1f5f6c..5eabea837 100644 --- a/Opsi/OCI.PSModules.Opsi.psd1 +++ b/Opsi/OCI.PSModules.Opsi.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Opsi.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opsi.dll' diff --git a/Optimizer/OCI.PSModules.Optimizer.psd1 b/Optimizer/OCI.PSModules.Optimizer.psd1 index b63a15e8f..19e990cfa 100644 --- a/Optimizer/OCI.PSModules.Optimizer.psd1 +++ b/Optimizer/OCI.PSModules.Optimizer.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Optimizer.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Optimizer.dll' diff --git a/Osmanagement/OCI.PSModules.Osmanagement.psd1 b/Osmanagement/OCI.PSModules.Osmanagement.psd1 index 59e998999..f2db7aa01 100644 --- a/Osmanagement/OCI.PSModules.Osmanagement.psd1 +++ b/Osmanagement/OCI.PSModules.Osmanagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Osmanagement.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagement.dll' diff --git a/Resourcemanager/Cmdlets/Get-OCIResourcemanagerConfigurationSourceProvidersList.cs b/Resourcemanager/Cmdlets/Get-OCIResourcemanagerConfigurationSourceProvidersList.cs index 438bbb272..a6a8a9f94 100644 --- a/Resourcemanager/Cmdlets/Get-OCIResourcemanagerConfigurationSourceProvidersList.cs +++ b/Resourcemanager/Cmdlets/Get-OCIResourcemanagerConfigurationSourceProvidersList.cs @@ -44,6 +44,9 @@ public class GetOCIResourcemanagerConfigurationSourceProvidersList : OCIResource [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the preceding `List` call. For information about pagination, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] public string Page { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only configuration source providers of the specified type (GitHub or GitLab).")] + public string ConfigSourceProviderType { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -63,7 +66,8 @@ protected override void ProcessRecord() SortBy = SortBy, SortOrder = SortOrder, Limit = Limit, - Page = Page + Page = Page, + ConfigSourceProviderType = ConfigSourceProviderType }; IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) diff --git a/Resourcemanager/Cmdlets/New-OCIResourcemanagerConfigurationSourceProvider.cs b/Resourcemanager/Cmdlets/New-OCIResourcemanagerConfigurationSourceProvider.cs index beb99d245..74147e600 100644 --- a/Resourcemanager/Cmdlets/New-OCIResourcemanagerConfigurationSourceProvider.cs +++ b/Resourcemanager/Cmdlets/New-OCIResourcemanagerConfigurationSourceProvider.cs @@ -18,7 +18,7 @@ namespace Oci.ResourcemanagerService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.ResourcemanagerService.Models.ConfigurationSourceProvider), typeof(Oci.ResourcemanagerService.Responses.CreateConfigurationSourceProviderResponse) })] public class NewOCIResourcemanagerConfigurationSourceProvider : OCIResourceManagerCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The properties for creating a ConfigurationSourceProvider. This parameter also accepts subtype of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The properties for creating a ConfigurationSourceProvider. This parameter also accepts subtypes , of type .")] public CreateConfigurationSourceProviderDetails CreateConfigurationSourceProviderDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] diff --git a/Resourcemanager/Cmdlets/Update-OCIResourcemanagerConfigurationSourceProvider.cs b/Resourcemanager/Cmdlets/Update-OCIResourcemanagerConfigurationSourceProvider.cs index 2329b89e2..4ea856af1 100644 --- a/Resourcemanager/Cmdlets/Update-OCIResourcemanagerConfigurationSourceProvider.cs +++ b/Resourcemanager/Cmdlets/Update-OCIResourcemanagerConfigurationSourceProvider.cs @@ -21,7 +21,7 @@ public class UpdateOCIResourcemanagerConfigurationSourceProvider : OCIResourceMa [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration source provider.")] public string ConfigurationSourceProviderId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Updated information provided for the ConfigurationSourceProvider. This parameter also accepts subtype of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Updated information provided for the ConfigurationSourceProvider. This parameter also accepts subtypes , of type .")] public UpdateConfigurationSourceProviderDetails UpdateConfigurationSourceProviderDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] diff --git a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 index 37a2fe41b..9f7d64e0a 100644 --- a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 +++ b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcemanager.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcemanager.dll' diff --git a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 index 5f1d02594..fff787f83 100644 --- a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 +++ b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcesearch.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcesearch.dll' diff --git a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouseBackup.cs b/Rover/Cmdlets/Get-OCIRoverCluster.cs similarity index 58% rename from Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouseBackup.cs rename to Rover/Cmdlets/Get-OCIRoverCluster.cs index cee8f889d..71319a607 100644 --- a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouseBackup.cs +++ b/Rover/Cmdlets/Get-OCIRoverCluster.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 * DO NOT EDIT this file manually. * * Copyright (c) 2020, Oracle and/or its affiliates. @@ -8,24 +8,29 @@ using System; using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; using Oci.Common.Waiters; -namespace Oci.DatabaseService.Cmdlets +namespace Oci.RoverService.Cmdlets { - [Cmdlet("Get", "OCIDatabaseAutonomousDataWarehouseBackup", DefaultParameterSetName = Default)] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouseBackup), typeof(Oci.DatabaseService.Responses.GetAutonomousDataWarehouseBackupResponse) })] - public class GetOCIDatabaseAutonomousDataWarehouseBackup : OCIDatabaseCmdlet + [Cmdlet("Get", "OCIRoverCluster", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverCluster), typeof(Oci.RoverService.Responses.GetRoverClusterResponse) })] + public class GetOCIRoverCluster : OCIRoverClusterCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.", ParameterSetName = LifecycleStateParamSet)] - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.", ParameterSetName = Default)] - public string AutonomousDataWarehouseBackupId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverCluster identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverCluster identifier", ParameterSetName = Default)] + public string RoverClusterId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)] - public Oci.DatabaseService.Models.AutonomousDataWarehouseBackup.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + public Oci.RoverService.Models.LifecycleState[] WaitForLifecycleState { get; set; } [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; @@ -36,13 +41,14 @@ public class GetOCIDatabaseAutonomousDataWarehouseBackup : OCIDatabaseCmdlet protected override void ProcessRecord() { base.ProcessRecord(); - GetAutonomousDataWarehouseBackupRequest request; + GetRoverClusterRequest request; try { - request = new GetAutonomousDataWarehouseBackupRequest + request = new GetRoverClusterRequest { - AutonomousDataWarehouseBackupId = AutonomousDataWarehouseBackupId + RoverClusterId = RoverClusterId, + OpcRequestId = OpcRequestId }; HandleOutput(request); @@ -60,7 +66,7 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private void HandleOutput(GetAutonomousDataWarehouseBackupRequest request) + private void HandleOutput(GetRoverClusterRequest request) { var waiterConfig = new WaiterConfiguration { @@ -71,17 +77,17 @@ private void HandleOutput(GetAutonomousDataWarehouseBackupRequest request) switch (ParameterSetName) { case LifecycleStateParamSet: - response = client.Waiters.ForAutonomousDataWarehouseBackup(request, waiterConfig, WaitForLifecycleState).Execute(); + response = client.Waiters.ForRoverCluster(request, waiterConfig, WaitForLifecycleState).Execute(); break; case Default: - response = client.GetAutonomousDataWarehouseBackup(request).GetAwaiter().GetResult(); + response = client.GetRoverCluster(request).GetAwaiter().GetResult(); break; } - WriteOutput(response, response.AutonomousDataWarehouseBackup); + WriteOutput(response, response.RoverCluster); } - private GetAutonomousDataWarehouseBackupResponse response; + private GetRoverClusterResponse response; private const string LifecycleStateParamSet = "LifecycleStateParamSet"; private const string Default = "Default"; } diff --git a/Rover/Cmdlets/Get-OCIRoverClusterCertificate.cs b/Rover/Cmdlets/Get-OCIRoverClusterCertificate.cs new file mode 100644 index 000000000..ccaec0419 --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverClusterCertificate.cs @@ -0,0 +1,58 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverClusterCertificate")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverClusterCertificate), typeof(Oci.RoverService.Responses.GetRoverClusterCertificateResponse) })] + public class GetOCIRoverClusterCertificate : OCIRoverClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverCluster identifier")] + public string RoverClusterId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetRoverClusterCertificateRequest request; + + try + { + request = new GetRoverClusterCertificateRequest + { + RoverClusterId = RoverClusterId, + OpcRequestId = OpcRequestId + }; + + response = client.GetRoverClusterCertificate(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverClusterCertificate); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetRoverClusterCertificateResponse response; + } +} diff --git a/Rover/Cmdlets/Get-OCIRoverClustersList.cs b/Rover/Cmdlets/Get-OCIRoverClustersList.cs new file mode 100644 index 000000000..7889b4be8 --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverClustersList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverClustersList")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverClusterCollection), typeof(Oci.RoverService.Responses.ListRoverClustersResponse) })] + public class GetOCIRoverClustersList : OCIRoverClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListRoverClustersRequest request; + + try + { + request = new ListRoverClustersRequest + { + CompartmentId = CompartmentId, + DisplayName = DisplayName, + Limit = Limit, + Page = Page, + LifecycleState = LifecycleState, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.RoverClusterCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListRoverClustersRequest request) => Enumerable.Repeat(client.ListRoverClusters(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRoverClustersResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRoverClustersResponse response; + private delegate IEnumerable RequestDelegate(ListRoverClustersRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Rover/Cmdlets/Get-OCIRoverEntitlement.cs b/Rover/Cmdlets/Get-OCIRoverEntitlement.cs new file mode 100644 index 000000000..1b7e123bb --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverEntitlement.cs @@ -0,0 +1,106 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; +using Oci.Common.Waiters; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverEntitlement", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverEntitlement), typeof(Oci.RoverService.Responses.GetRoverEntitlementResponse) })] + public class GetOCIRoverEntitlement : OCIRoverEntitlementCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the rover node or cluster entitlement", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the rover node or cluster entitlement", ParameterSetName = Default)] + public string RoverEntitlementId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment in which to list resources.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment in which to list resources.", ParameterSetName = Default)] + public string CompartmentId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.", ParameterSetName = Default)] + public string OpcRetryToken { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)] + public Oci.RoverService.Models.RoverEntitlement.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetRoverEntitlementRequest request; + + try + { + request = new GetRoverEntitlementRequest + { + RoverEntitlementId = RoverEntitlementId, + CompartmentId = CompartmentId, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetRoverEntitlementRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForRoverEntitlement(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetRoverEntitlement(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.RoverEntitlement); + } + + private GetRoverEntitlementResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Rover/Cmdlets/Get-OCIRoverEntitlementsList.cs b/Rover/Cmdlets/Get-OCIRoverEntitlementsList.cs new file mode 100644 index 000000000..513f24d06 --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverEntitlementsList.cs @@ -0,0 +1,107 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverEntitlementsList")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverEntitlementCollection), typeof(Oci.RoverService.Responses.ListRoverEntitlementsResponse) })] + public class GetOCIRoverEntitlementsList : OCIRoverEntitlementCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"filtering by Rover Device Entitlement id")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListRoverEntitlementsRequest request; + + try + { + request = new ListRoverEntitlementsRequest + { + CompartmentId = CompartmentId, + Id = Id, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.RoverEntitlementCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListRoverEntitlementsRequest request) => Enumerable.Repeat(client.ListRoverEntitlements(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRoverEntitlementsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRoverEntitlementsResponse response; + private delegate IEnumerable RequestDelegate(ListRoverEntitlementsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouse.cs b/Rover/Cmdlets/Get-OCIRoverNode.cs similarity index 59% rename from Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouse.cs rename to Rover/Cmdlets/Get-OCIRoverNode.cs index 2eefb8d8e..be300ec19 100644 --- a/Database/Cmdlets/Get-OCIDatabaseAutonomousDataWarehouse.cs +++ b/Rover/Cmdlets/Get-OCIRoverNode.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 * DO NOT EDIT this file manually. * * Copyright (c) 2020, Oracle and/or its affiliates. @@ -8,24 +8,29 @@ using System; using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; using Oci.Common.Waiters; -namespace Oci.DatabaseService.Cmdlets +namespace Oci.RoverService.Cmdlets { - [Cmdlet("Get", "OCIDatabaseAutonomousDataWarehouse", DefaultParameterSetName = Default)] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouse), typeof(Oci.DatabaseService.Responses.GetAutonomousDataWarehouseResponse) })] - public class GetOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet + [Cmdlet("Get", "OCIRoverNode", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNode), typeof(Oci.RoverService.Responses.GetRoverNodeResponse) })] + public class GetOCIRoverNode : OCIRoverNodeCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).", ParameterSetName = LifecycleStateParamSet)] - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).", ParameterSetName = Default)] - public string AutonomousDataWarehouseId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier", ParameterSetName = Default)] + public string RoverNodeId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)] - public Oci.DatabaseService.Models.AutonomousDataWarehouse.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + public Oci.RoverService.Models.LifecycleState[] WaitForLifecycleState { get; set; } [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; @@ -36,13 +41,14 @@ public class GetOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet protected override void ProcessRecord() { base.ProcessRecord(); - GetAutonomousDataWarehouseRequest request; + GetRoverNodeRequest request; try { - request = new GetAutonomousDataWarehouseRequest + request = new GetRoverNodeRequest { - AutonomousDataWarehouseId = AutonomousDataWarehouseId + RoverNodeId = RoverNodeId, + OpcRequestId = OpcRequestId }; HandleOutput(request); @@ -60,7 +66,7 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private void HandleOutput(GetAutonomousDataWarehouseRequest request) + private void HandleOutput(GetRoverNodeRequest request) { var waiterConfig = new WaiterConfiguration { @@ -71,17 +77,17 @@ private void HandleOutput(GetAutonomousDataWarehouseRequest request) switch (ParameterSetName) { case LifecycleStateParamSet: - response = client.Waiters.ForAutonomousDataWarehouse(request, waiterConfig, WaitForLifecycleState).Execute(); + response = client.Waiters.ForRoverNode(request, waiterConfig, WaitForLifecycleState).Execute(); break; case Default: - response = client.GetAutonomousDataWarehouse(request).GetAwaiter().GetResult(); + response = client.GetRoverNode(request).GetAwaiter().GetResult(); break; } - WriteOutput(response, response.AutonomousDataWarehouse); + WriteOutput(response, response.RoverNode); } - private GetAutonomousDataWarehouseResponse response; + private GetRoverNodeResponse response; private const string LifecycleStateParamSet = "LifecycleStateParamSet"; private const string Default = "Default"; } diff --git a/Rover/Cmdlets/Get-OCIRoverNodeCertificate.cs b/Rover/Cmdlets/Get-OCIRoverNodeCertificate.cs new file mode 100644 index 000000000..f41f8d44c --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverNodeCertificate.cs @@ -0,0 +1,58 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverNodeCertificate")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNodeCertificate), typeof(Oci.RoverService.Responses.GetRoverNodeCertificateResponse) })] + public class GetOCIRoverNodeCertificate : OCIRoverNodeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier")] + public string RoverNodeId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetRoverNodeCertificateRequest request; + + try + { + request = new GetRoverNodeCertificateRequest + { + RoverNodeId = RoverNodeId, + OpcRequestId = OpcRequestId + }; + + response = client.GetRoverNodeCertificate(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverNodeCertificate); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetRoverNodeCertificateResponse response; + } +} diff --git a/Rover/Cmdlets/Get-OCIRoverNodeEncryptionKey.cs b/Rover/Cmdlets/Get-OCIRoverNodeEncryptionKey.cs new file mode 100644 index 000000000..8a4e24a17 --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverNodeEncryptionKey.cs @@ -0,0 +1,58 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverNodeEncryptionKey")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNodeEncryptionKey), typeof(Oci.RoverService.Responses.GetRoverNodeEncryptionKeyResponse) })] + public class GetOCIRoverNodeEncryptionKey : OCIRoverNodeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Serial number of the rover node.")] + public string RoverNodeId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetRoverNodeEncryptionKeyRequest request; + + try + { + request = new GetRoverNodeEncryptionKeyRequest + { + RoverNodeId = RoverNodeId, + OpcRequestId = OpcRequestId + }; + + response = client.GetRoverNodeEncryptionKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverNodeEncryptionKey); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetRoverNodeEncryptionKeyResponse response; + } +} diff --git a/Rover/Cmdlets/Get-OCIRoverNodeGetRpt.cs b/Rover/Cmdlets/Get-OCIRoverNodeGetRpt.cs new file mode 100644 index 000000000..8911f47be --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverNodeGetRpt.cs @@ -0,0 +1,62 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverNodeGetRpt")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNodeGetRpt), typeof(Oci.RoverService.Responses.GetRoverNodeGetRptResponse) })] + public class GetOCIRoverNodeGetRpt : OCIRoverNodeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier")] + public string RoverNodeId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Java Web Token which is a signature of the request that is signed with the resource's private key This is meant solely in the context of getRpt")] + public string Jwt { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetRoverNodeGetRptRequest request; + + try + { + request = new GetRoverNodeGetRptRequest + { + RoverNodeId = RoverNodeId, + Jwt = Jwt, + OpcRequestId = OpcRequestId + }; + + response = client.GetRoverNodeGetRpt(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverNodeGetRpt); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetRoverNodeGetRptResponse response; + } +} diff --git a/Rover/Cmdlets/Get-OCIRoverNodesList.cs b/Rover/Cmdlets/Get-OCIRoverNodesList.cs new file mode 100644 index 000000000..bbb5ac1a2 --- /dev/null +++ b/Rover/Cmdlets/Get-OCIRoverNodesList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Get", "OCIRoverNodesList")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNodeCollection), typeof(Oci.RoverService.Responses.ListRoverNodesResponse) })] + public class GetOCIRoverNodesList : OCIRoverNodeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListRoverNodesRequest request; + + try + { + request = new ListRoverNodesRequest + { + CompartmentId = CompartmentId, + DisplayName = DisplayName, + Limit = Limit, + Page = Page, + LifecycleState = LifecycleState, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.RoverNodeCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListRoverNodesRequest request) => Enumerable.Repeat(client.ListRoverNodes(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRoverNodesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRoverNodesResponse response; + private delegate IEnumerable RequestDelegate(ListRoverNodesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Rover/Cmdlets/Invoke-OCIRoverRoverNodeActionSetKey.cs b/Rover/Cmdlets/Invoke-OCIRoverRoverNodeActionSetKey.cs new file mode 100644 index 000000000..6bd03bffc --- /dev/null +++ b/Rover/Cmdlets/Invoke-OCIRoverRoverNodeActionSetKey.cs @@ -0,0 +1,74 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Invoke", "OCIRoverRoverNodeActionSetKey")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNodeSetKey), typeof(Oci.RoverService.Responses.RoverNodeActionSetKeyResponse) })] + public class InvokeOCIRoverRoverNodeActionSetKey : OCIRoverNodeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier")] + public string RoverNodeId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Java Web Token which is a signature of the request that is signed with the resource's private key This is meant solely in the context of getRpt")] + public string Jwt { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public RoverNodeActionSetKeyDetails RoverNodeActionSetKeyDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + RoverNodeActionSetKeyRequest request; + + try + { + request = new RoverNodeActionSetKeyRequest + { + RoverNodeId = RoverNodeId, + Jwt = Jwt, + RoverNodeActionSetKeyDetails = RoverNodeActionSetKeyDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.RoverNodeActionSetKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverNodeSetKey); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RoverNodeActionSetKeyResponse response; + } +} diff --git a/Rover/Cmdlets/Move-OCIRoverClusterCompartment.cs b/Rover/Cmdlets/Move-OCIRoverClusterCompartment.cs new file mode 100644 index 000000000..7ac7ef1bc --- /dev/null +++ b/Rover/Cmdlets/Move-OCIRoverClusterCompartment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Move", "OCIRoverClusterCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.RoverService.Responses.ChangeRoverClusterCompartmentResponse) })] + public class MoveOCIRoverClusterCompartment : OCIRoverClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverCluster identifier")] + public string RoverClusterId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"CompartmentId of the destination compartment")] + public ChangeRoverClusterCompartmentDetails ChangeRoverClusterCompartmentDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeRoverClusterCompartmentRequest request; + + try + { + request = new ChangeRoverClusterCompartmentRequest + { + RoverClusterId = RoverClusterId, + ChangeRoverClusterCompartmentDetails = ChangeRoverClusterCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeRoverClusterCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeRoverClusterCompartmentResponse response; + } +} diff --git a/Rover/Cmdlets/Move-OCIRoverEntitlementCompartment.cs b/Rover/Cmdlets/Move-OCIRoverEntitlementCompartment.cs new file mode 100644 index 000000000..4f76955df --- /dev/null +++ b/Rover/Cmdlets/Move-OCIRoverEntitlementCompartment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Move", "OCIRoverEntitlementCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.RoverService.Responses.ChangeRoverEntitlementCompartmentResponse) })] + public class MoveOCIRoverEntitlementCompartment : OCIRoverEntitlementCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the rover node or cluster entitlement")] + public string RoverEntitlementId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"CompartmentId of the destination compartment")] + public ChangeRoverEntitlementCompartmentDetails ChangeRoverEntitlementCompartmentDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeRoverEntitlementCompartmentRequest request; + + try + { + request = new ChangeRoverEntitlementCompartmentRequest + { + RoverEntitlementId = RoverEntitlementId, + ChangeRoverEntitlementCompartmentDetails = ChangeRoverEntitlementCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeRoverEntitlementCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeRoverEntitlementCompartmentResponse response; + } +} diff --git a/Rover/Cmdlets/Move-OCIRoverNodeCompartment.cs b/Rover/Cmdlets/Move-OCIRoverNodeCompartment.cs new file mode 100644 index 000000000..5fff05248 --- /dev/null +++ b/Rover/Cmdlets/Move-OCIRoverNodeCompartment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Move", "OCIRoverNodeCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.RoverService.Responses.ChangeRoverNodeCompartmentResponse) })] + public class MoveOCIRoverNodeCompartment : OCIRoverNodeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier")] + public string RoverNodeId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"CompartmentId of the destination compartment")] + public ChangeRoverNodeCompartmentDetails ChangeRoverNodeCompartmentDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeRoverNodeCompartmentRequest request; + + try + { + request = new ChangeRoverNodeCompartmentRequest + { + RoverNodeId = RoverNodeId, + ChangeRoverNodeCompartmentDetails = ChangeRoverNodeCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeRoverNodeCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeRoverNodeCompartmentResponse response; + } +} diff --git a/Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouseBackup.cs b/Rover/Cmdlets/New-OCIRoverCluster.cs similarity index 51% rename from Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouseBackup.cs rename to Rover/Cmdlets/New-OCIRoverCluster.cs index f8196dbff..fdcb19543 100644 --- a/Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouseBackup.cs +++ b/Rover/Cmdlets/New-OCIRoverCluster.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 * DO NOT EDIT this file manually. * * Copyright (c) 2020, Oracle and/or its affiliates. @@ -8,37 +8,41 @@ using System; using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; -namespace Oci.DatabaseService.Cmdlets +namespace Oci.RoverService.Cmdlets { - [Cmdlet("New", "OCIDatabaseAutonomousDataWarehouseBackup")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouseBackup), typeof(Oci.DatabaseService.Responses.CreateAutonomousDataWarehouseBackupResponse) })] - public class NewOCIDatabaseAutonomousDataWarehouseBackup : OCIDatabaseCmdlet + [Cmdlet("New", "OCIRoverCluster")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverCluster), typeof(Oci.RoverService.Responses.CreateRoverClusterResponse) })] + public class NewOCIRoverCluster : OCIRoverClusterCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to create a new Autonomous Data Warehouse backup.")] - public CreateAutonomousDataWarehouseBackupDetails CreateAutonomousDataWarehouseBackupDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new RoverCluster.")] + public CreateRoverClusterDetails CreateRoverClusterDetails { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] public string OpcRetryToken { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); - CreateAutonomousDataWarehouseBackupRequest request; + CreateRoverClusterRequest request; try { - request = new CreateAutonomousDataWarehouseBackupRequest + request = new CreateRoverClusterRequest { - CreateAutonomousDataWarehouseBackupDetails = CreateAutonomousDataWarehouseBackupDetails, - OpcRetryToken = OpcRetryToken + CreateRoverClusterDetails = CreateRoverClusterDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId }; - response = client.CreateAutonomousDataWarehouseBackup(request).GetAwaiter().GetResult(); - WriteOutput(response, response.AutonomousDataWarehouseBackup); + response = client.CreateRoverCluster(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverCluster); FinishProcessing(response); } catch (Exception ex) @@ -53,6 +57,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private CreateAutonomousDataWarehouseBackupResponse response; + private CreateRoverClusterResponse response; } } diff --git a/Rover/Cmdlets/New-OCIRoverEntitlement.cs b/Rover/Cmdlets/New-OCIRoverEntitlement.cs new file mode 100644 index 000000000..2bab3394b --- /dev/null +++ b/Rover/Cmdlets/New-OCIRoverEntitlement.cs @@ -0,0 +1,62 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("New", "OCIRoverEntitlement")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverEntitlement), typeof(Oci.RoverService.Responses.CreateRoverEntitlementResponse) })] + public class NewOCIRoverEntitlement : OCIRoverEntitlementCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Creates a Rover Device Entitlement")] + public CreateRoverEntitlementDetails CreateRoverEntitlementDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateRoverEntitlementRequest request; + + try + { + request = new CreateRoverEntitlementRequest + { + CreateRoverEntitlementDetails = CreateRoverEntitlementDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateRoverEntitlement(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverEntitlement); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateRoverEntitlementResponse response; + } +} diff --git a/Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouse.cs b/Rover/Cmdlets/New-OCIRoverNode.cs similarity index 52% rename from Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouse.cs rename to Rover/Cmdlets/New-OCIRoverNode.cs index 92baa7291..8b2905c2d 100644 --- a/Database/Cmdlets/New-OCIDatabaseAutonomousDataWarehouse.cs +++ b/Rover/Cmdlets/New-OCIRoverNode.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 * DO NOT EDIT this file manually. * * Copyright (c) 2020, Oracle and/or its affiliates. @@ -8,37 +8,41 @@ using System; using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; -namespace Oci.DatabaseService.Cmdlets +namespace Oci.RoverService.Cmdlets { - [Cmdlet("New", "OCIDatabaseAutonomousDataWarehouse")] - [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.AutonomousDataWarehouse), typeof(Oci.DatabaseService.Responses.CreateAutonomousDataWarehouseResponse) })] - public class NewOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet + [Cmdlet("New", "OCIRoverNode")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNode), typeof(Oci.RoverService.Responses.CreateRoverNodeResponse) })] + public class NewOCIRoverNode : OCIRoverNodeCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to create a new Autonomous Data Warehouse.")] - public CreateAutonomousDataWarehouseDetails CreateAutonomousDataWarehouseDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new RoverNode.")] + public CreateRoverNodeDetails CreateRoverNodeDetails { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] public string OpcRetryToken { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); - CreateAutonomousDataWarehouseRequest request; + CreateRoverNodeRequest request; try { - request = new CreateAutonomousDataWarehouseRequest + request = new CreateRoverNodeRequest { - CreateAutonomousDataWarehouseDetails = CreateAutonomousDataWarehouseDetails, - OpcRetryToken = OpcRetryToken + CreateRoverNodeDetails = CreateRoverNodeDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId }; - response = client.CreateAutonomousDataWarehouse(request).GetAwaiter().GetResult(); - WriteOutput(response, response.AutonomousDataWarehouse); + response = client.CreateRoverNode(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverNode); FinishProcessing(response); } catch (Exception ex) @@ -53,6 +57,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private CreateAutonomousDataWarehouseResponse response; + private CreateRoverNodeResponse response; } } diff --git a/Rover/Cmdlets/OCIRoverClusterCmdlet.cs b/Rover/Cmdlets/OCIRoverClusterCmdlet.cs new file mode 100644 index 000000000..f83beafcd --- /dev/null +++ b/Rover/Cmdlets/OCIRoverClusterCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.RoverService; + +namespace Oci.RoverService.Cmdlets +{ + public abstract class OCIRoverClusterCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new RoverClusterClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected RoverClusterClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Rover/Cmdlets/OCIRoverEntitlementCmdlet.cs b/Rover/Cmdlets/OCIRoverEntitlementCmdlet.cs new file mode 100644 index 000000000..505e94c27 --- /dev/null +++ b/Rover/Cmdlets/OCIRoverEntitlementCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.RoverService; + +namespace Oci.RoverService.Cmdlets +{ + public abstract class OCIRoverEntitlementCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new RoverEntitlementClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected RoverEntitlementClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Rover/Cmdlets/OCIRoverNodeCmdlet.cs b/Rover/Cmdlets/OCIRoverNodeCmdlet.cs new file mode 100644 index 000000000..710a248f5 --- /dev/null +++ b/Rover/Cmdlets/OCIRoverNodeCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.RoverService; + +namespace Oci.RoverService.Cmdlets +{ + public abstract class OCIRoverNodeCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new RoverNodeClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected RoverNodeClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Rover/Cmdlets/Remove-OCIRoverCluster.cs b/Rover/Cmdlets/Remove-OCIRoverCluster.cs new file mode 100644 index 000000000..8884d868f --- /dev/null +++ b/Rover/Cmdlets/Remove-OCIRoverCluster.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Remove", "OCIRoverCluster", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.RoverService.Responses.DeleteRoverClusterResponse) })] + public class RemoveOCIRoverCluster : OCIRoverClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverCluster identifier")] + public string RoverClusterId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIRoverCluster", "Remove")) + { + return; + } + + DeleteRoverClusterRequest request; + + try + { + request = new DeleteRoverClusterRequest + { + RoverClusterId = RoverClusterId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteRoverCluster(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteRoverClusterResponse response; + } +} diff --git a/Rover/Cmdlets/Remove-OCIRoverEntitlement.cs b/Rover/Cmdlets/Remove-OCIRoverEntitlement.cs new file mode 100644 index 000000000..bce79314e --- /dev/null +++ b/Rover/Cmdlets/Remove-OCIRoverEntitlement.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Remove", "OCIRoverEntitlement", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.RoverService.Responses.DeleteRoverEntitlementResponse) })] + public class RemoveOCIRoverEntitlement : OCIRoverEntitlementCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the rover node or cluster entitlement")] + public string RoverEntitlementId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIRoverEntitlement", "Remove")) + { + return; + } + + DeleteRoverEntitlementRequest request; + + try + { + request = new DeleteRoverEntitlementRequest + { + RoverEntitlementId = RoverEntitlementId, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.DeleteRoverEntitlement(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteRoverEntitlementResponse response; + } +} diff --git a/Database/Cmdlets/Remove-OCIDatabaseAutonomousDataWarehouse.cs b/Rover/Cmdlets/Remove-OCIRoverNode.cs similarity index 54% rename from Database/Cmdlets/Remove-OCIDatabaseAutonomousDataWarehouse.cs rename to Rover/Cmdlets/Remove-OCIRoverNode.cs index f106cb065..c48ef1d05 100644 --- a/Database/Cmdlets/Remove-OCIDatabaseAutonomousDataWarehouse.cs +++ b/Rover/Cmdlets/Remove-OCIRoverNode.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 * DO NOT EDIT this file manually. * * Copyright (c) 2020, Oracle and/or its affiliates. @@ -8,22 +8,25 @@ using System; using System.Management.Automation; -using Oci.DatabaseService.Requests; -using Oci.DatabaseService.Responses; -using Oci.DatabaseService.Models; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; -namespace Oci.DatabaseService.Cmdlets +namespace Oci.RoverService.Cmdlets { - [Cmdlet("Remove", "OCIDatabaseAutonomousDataWarehouse", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - [OutputType(new System.Type[] { typeof(void), typeof(Oci.DatabaseService.Responses.DeleteAutonomousDataWarehouseResponse) })] - public class RemoveOCIDatabaseAutonomousDataWarehouse : OCIDatabaseCmdlet + [Cmdlet("Remove", "OCIRoverNode", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.RoverService.Responses.DeleteRoverNodeResponse) })] + public class RemoveOCIRoverNode : OCIRoverNodeCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).")] - public string AutonomousDataWarehouseId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier")] + public string RoverNodeId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] public string IfMatch { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] public SwitchParameter Force { get; set; } @@ -31,22 +34,23 @@ protected override void ProcessRecord() { base.ProcessRecord(); - if (!ConfirmDelete("OCIDatabaseAutonomousDataWarehouse", "Remove")) + if (!ConfirmDelete("OCIRoverNode", "Remove")) { return; } - DeleteAutonomousDataWarehouseRequest request; + DeleteRoverNodeRequest request; try { - request = new DeleteAutonomousDataWarehouseRequest + request = new DeleteRoverNodeRequest { - AutonomousDataWarehouseId = AutonomousDataWarehouseId, - IfMatch = IfMatch + RoverNodeId = RoverNodeId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId }; - response = client.DeleteAutonomousDataWarehouse(request).GetAwaiter().GetResult(); + response = client.DeleteRoverNode(request).GetAwaiter().GetResult(); WriteOutput(response); FinishProcessing(response); } @@ -62,6 +66,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private DeleteAutonomousDataWarehouseResponse response; + private DeleteRoverNodeResponse response; } } diff --git a/Rover/Cmdlets/Update-OCIRoverCluster.cs b/Rover/Cmdlets/Update-OCIRoverCluster.cs new file mode 100644 index 000000000..79222a243 --- /dev/null +++ b/Rover/Cmdlets/Update-OCIRoverCluster.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Update", "OCIRoverCluster")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverCluster), typeof(Oci.RoverService.Responses.UpdateRoverClusterResponse) })] + public class UpdateOCIRoverCluster : OCIRoverClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverCluster identifier")] + public string RoverClusterId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateRoverClusterDetails UpdateRoverClusterDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateRoverClusterRequest request; + + try + { + request = new UpdateRoverClusterRequest + { + RoverClusterId = RoverClusterId, + UpdateRoverClusterDetails = UpdateRoverClusterDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateRoverCluster(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverCluster); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateRoverClusterResponse response; + } +} diff --git a/Rover/Cmdlets/Update-OCIRoverEntitlement.cs b/Rover/Cmdlets/Update-OCIRoverEntitlement.cs new file mode 100644 index 000000000..46e529041 --- /dev/null +++ b/Rover/Cmdlets/Update-OCIRoverEntitlement.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Update", "OCIRoverEntitlement")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverEntitlement), typeof(Oci.RoverService.Responses.UpdateRoverEntitlementResponse) })] + public class UpdateOCIRoverEntitlement : OCIRoverEntitlementCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the rover node or cluster entitlement")] + public string RoverEntitlementId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateRoverEntitlementDetails UpdateRoverEntitlementDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateRoverEntitlementRequest request; + + try + { + request = new UpdateRoverEntitlementRequest + { + RoverEntitlementId = RoverEntitlementId, + UpdateRoverEntitlementDetails = UpdateRoverEntitlementDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateRoverEntitlement(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverEntitlement); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateRoverEntitlementResponse response; + } +} diff --git a/Rover/Cmdlets/Update-OCIRoverNode.cs b/Rover/Cmdlets/Update-OCIRoverNode.cs new file mode 100644 index 000000000..b302b87dc --- /dev/null +++ b/Rover/Cmdlets/Update-OCIRoverNode.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20201210 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.RoverService.Requests; +using Oci.RoverService.Responses; +using Oci.RoverService.Models; + +namespace Oci.RoverService.Cmdlets +{ + [Cmdlet("Update", "OCIRoverNode")] + [OutputType(new System.Type[] { typeof(Oci.RoverService.Models.RoverNode), typeof(Oci.RoverService.Responses.UpdateRoverNodeResponse) })] + public class UpdateOCIRoverNode : OCIRoverNodeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique RoverNode identifier")] + public string RoverNodeId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateRoverNodeDetails UpdateRoverNodeDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateRoverNodeRequest request; + + try + { + request = new UpdateRoverNodeRequest + { + RoverNodeId = RoverNodeId, + UpdateRoverNodeDetails = UpdateRoverNodeDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateRoverNode(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RoverNode); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateRoverNodeResponse response; + } +} diff --git a/Rover/OCI.PSModules.Rover.csproj b/Rover/OCI.PSModules.Rover.csproj new file mode 100644 index 000000000..70ec34d04 --- /dev/null +++ b/Rover/OCI.PSModules.Rover.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Rover + OCI.PSModules.Rover + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Rover + Rover Service + + + + + + + + + + + diff --git a/Rover/OCI.PSModules.Rover.psd1 b/Rover/OCI.PSModules.Rover.psd1 new file mode 100644 index 000000000..63a6b0ba9 --- /dev/null +++ b/Rover/OCI.PSModules.Rover.psd1 @@ -0,0 +1,144 @@ +# +# Module manifest for module 'OCI.PSModules.Rover' +# +# Generated by: Oracle Cloud Infrastructure +# +# Generated on: 12/14/2020 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Rover.dll' + +# Version number of this module. +ModuleVersion = '4.0.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '6b3a22b9-6905-4ece-936d-982335059f13' + +# Author of this module +Author = 'Oracle Cloud Infrastructure' + +# Company or vendor of this module +CompanyName = 'Oracle Corporation' + +# Copyright statement for this module +Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'This modules provides Cmdlets for OCI Rover Service' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '6.0' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# DotNetFrameworkVersion = '' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Rover.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = '*' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = 'Get-OCIRoverCluster', 'Get-OCIRoverClusterCertificate', + 'Get-OCIRoverClustersList', 'Get-OCIRoverEntitlement', + 'Get-OCIRoverEntitlementsList', 'Get-OCIRoverNode', + 'Get-OCIRoverNodeCertificate', 'Get-OCIRoverNodeEncryptionKey', + 'Get-OCIRoverNodeGetRpt', 'Get-OCIRoverNodesList', + 'Invoke-OCIRoverRoverNodeActionSetKey', + 'Move-OCIRoverClusterCompartment', + 'Move-OCIRoverEntitlementCompartment', + 'Move-OCIRoverNodeCompartment', 'New-OCIRoverCluster', + 'New-OCIRoverEntitlement', 'New-OCIRoverNode', + 'Remove-OCIRoverCluster', 'Remove-OCIRoverEntitlement', + 'Remove-OCIRoverNode', 'Update-OCIRoverCluster', + 'Update-OCIRoverEntitlement', 'Update-OCIRoverNode' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Rover' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' + + # A URL to an icon representing this module. + IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' + + # ReleaseNotes of this module + ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/Sch/OCI.PSModules.Sch.psd1 b/Sch/OCI.PSModules.Sch.psd1 index fb97cd7ad..484a119d5 100644 --- a/Sch/OCI.PSModules.Sch.psd1 +++ b/Sch/OCI.PSModules.Sch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Sch.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Sch.dll' diff --git a/Secrets/OCI.PSModules.Secrets.psd1 b/Secrets/OCI.PSModules.Secrets.psd1 index de1053f78..cc7e41c5a 100644 --- a/Secrets/OCI.PSModules.Secrets.psd1 +++ b/Secrets/OCI.PSModules.Secrets.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Secrets.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Secrets.dll' diff --git a/Streaming/OCI.PSModules.Streaming.psd1 b/Streaming/OCI.PSModules.Streaming.psd1 index fef53240f..1dca249e3 100644 --- a/Streaming/OCI.PSModules.Streaming.psd1 +++ b/Streaming/OCI.PSModules.Streaming.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Streaming.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Streaming.dll' diff --git a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 index dee95a357..890c785f3 100644 --- a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 +++ b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Tenantmanagercontrolplane.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Tenantmanagercontrolplane.dll' diff --git a/Usageapi/OCI.PSModules.Usageapi.psd1 b/Usageapi/OCI.PSModules.Usageapi.psd1 index 9aa69b702..6b9183ab3 100644 --- a/Usageapi/OCI.PSModules.Usageapi.psd1 +++ b/Usageapi/OCI.PSModules.Usageapi.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Usageapi.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Usageapi.dll' diff --git a/Vault/OCI.PSModules.Vault.psd1 b/Vault/OCI.PSModules.Vault.psd1 index 3bd412417..3b25bccef 100644 --- a/Vault/OCI.PSModules.Vault.psd1 +++ b/Vault/OCI.PSModules.Vault.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Vault.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vault.dll' diff --git a/Waas/OCI.PSModules.Waas.psd1 b/Waas/OCI.PSModules.Waas.psd1 index 7c8317fcc..0870ae291 100644 --- a/Waas/OCI.PSModules.Waas.psd1 +++ b/Waas/OCI.PSModules.Waas.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Waas.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waas.dll' diff --git a/Workrequests/OCI.PSModules.Workrequests.psd1 b/Workrequests/OCI.PSModules.Workrequests.psd1 index cdb09dee5..bfa082aef 100644 --- a/Workrequests/OCI.PSModules.Workrequests.psd1 +++ b/Workrequests/OCI.PSModules.Workrequests.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 12/03/2020 +# Generated on: 12/14/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Workrequests.dll' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '4.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '3.1.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Workrequests.dll' diff --git a/oci-powershell-modules.sln b/oci-powershell-modules.sln index 4cf05144e..9bd9f2745 100644 --- a/oci-powershell-modules.sln +++ b/oci-powershell-modules.sln @@ -125,6 +125,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Optimizer", " EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Tenantmanagercontrolplane", "Tenantmanagercontrolplane\OCI.PSModules.Tenantmanagercontrolplane.csproj", "{D36874F3-FFA9-401D-8E0C-950758A623FF}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Rover", "Rover\OCI.PSModules.Rover.csproj", "{EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -882,5 +884,17 @@ Global {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|x64.Build.0 = Release|Any CPU {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|x86.ActiveCfg = Release|Any CPU {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|x86.Build.0 = Release|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Debug|x64.ActiveCfg = Debug|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Debug|x64.Build.0 = Debug|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Debug|x86.ActiveCfg = Debug|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Debug|x86.Build.0 = Debug|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Release|Any CPU.Build.0 = Release|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Release|x64.ActiveCfg = Release|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Release|x64.Build.0 = Release|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Release|x86.ActiveCfg = Release|Any CPU + {EC6A6AB0-B28D-41F7-B402-4A5F01FEA6AA}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal