diff --git a/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 b/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 index 569a017fc..2b7638175 100644 --- a/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 +++ b/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Accessgovernancecp.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Accessgovernancecp.dll' diff --git a/Adm/OCI.PSModules.Adm.psd1 b/Adm/OCI.PSModules.Adm.psd1 index 575c64d45..eb3c27d6b 100644 --- a/Adm/OCI.PSModules.Adm.psd1 +++ b/Adm/OCI.PSModules.Adm.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Adm.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Adm.dll' diff --git a/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 b/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 index 1d060879f..4a62e9a26 100644 --- a/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 +++ b/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aianomalydetection.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aianomalydetection.dll' diff --git a/Aidocument/OCI.PSModules.Aidocument.psd1 b/Aidocument/OCI.PSModules.Aidocument.psd1 index 9097c5a1d..972245674 100644 --- a/Aidocument/OCI.PSModules.Aidocument.psd1 +++ b/Aidocument/OCI.PSModules.Aidocument.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aidocument.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aidocument.dll' diff --git a/Ailanguage/OCI.PSModules.Ailanguage.psd1 b/Ailanguage/OCI.PSModules.Ailanguage.psd1 index 4a991c1c9..bc836cd0d 100644 --- a/Ailanguage/OCI.PSModules.Ailanguage.psd1 +++ b/Ailanguage/OCI.PSModules.Ailanguage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ailanguage.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ailanguage.dll' diff --git a/Aispeech/OCI.PSModules.Aispeech.psd1 b/Aispeech/OCI.PSModules.Aispeech.psd1 index c95ce9a8a..72b5b5fc7 100644 --- a/Aispeech/OCI.PSModules.Aispeech.psd1 +++ b/Aispeech/OCI.PSModules.Aispeech.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aispeech.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aispeech.dll' diff --git a/Aivision/OCI.PSModules.Aivision.psd1 b/Aivision/OCI.PSModules.Aivision.psd1 index 880ce0a10..dfbe405ff 100644 --- a/Aivision/OCI.PSModules.Aivision.psd1 +++ b/Aivision/OCI.PSModules.Aivision.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aivision.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aivision.dll' diff --git a/Analytics/OCI.PSModules.Analytics.psd1 b/Analytics/OCI.PSModules.Analytics.psd1 index ee8b598b6..5bee145a9 100644 --- a/Analytics/OCI.PSModules.Analytics.psd1 +++ b/Analytics/OCI.PSModules.Analytics.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Analytics.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 42e5fd314..4bac42a08 100644 --- a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 +++ b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Announcementsservice.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 7ca817e52..fba2a09e7 100644 --- a/Apigateway/OCI.PSModules.Apigateway.psd1 +++ b/Apigateway/OCI.PSModules.Apigateway.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apigateway.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apigateway.dll' diff --git a/Apmconfig/OCI.PSModules.Apmconfig.psd1 b/Apmconfig/OCI.PSModules.Apmconfig.psd1 index ed047c5d4..8d436ef0e 100644 --- a/Apmconfig/OCI.PSModules.Apmconfig.psd1 +++ b/Apmconfig/OCI.PSModules.Apmconfig.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmconfig.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmconfig.dll' diff --git a/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 index 1afdc00b6..a47de041f 100644 --- a/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 +++ b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmcontrolplane.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmcontrolplane.dll' diff --git a/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 b/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 index c5c06a2c3..dcb97d9ac 100644 --- a/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 +++ b/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmsynthetics.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmsynthetics.dll' diff --git a/Apmtraces/OCI.PSModules.Apmtraces.psd1 b/Apmtraces/OCI.PSModules.Apmtraces.psd1 index 94b2c5d97..382abc94a 100644 --- a/Apmtraces/OCI.PSModules.Apmtraces.psd1 +++ b/Apmtraces/OCI.PSModules.Apmtraces.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmtraces.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmtraces.dll' diff --git a/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 b/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 index ef65dddb6..afb41de8c 100644 --- a/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 +++ b/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Appmgmtcontrol.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Appmgmtcontrol.dll' diff --git a/Artifacts/OCI.PSModules.Artifacts.psd1 b/Artifacts/OCI.PSModules.Artifacts.psd1 index 1fce9f1dc..cc0df5181 100644 --- a/Artifacts/OCI.PSModules.Artifacts.psd1 +++ b/Artifacts/OCI.PSModules.Artifacts.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Artifacts.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Artifacts.dll' diff --git a/Audit/OCI.PSModules.Audit.psd1 b/Audit/OCI.PSModules.Audit.psd1 index d57d37909..d19ffb1cf 100644 --- a/Audit/OCI.PSModules.Audit.psd1 +++ b/Audit/OCI.PSModules.Audit.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Audit.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 a361ad4c9..97d58eb68 100644 --- a/Autoscaling/OCI.PSModules.Autoscaling.psd1 +++ b/Autoscaling/OCI.PSModules.Autoscaling.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Autoscaling.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Autoscaling.dll' diff --git a/Bastion/OCI.PSModules.Bastion.psd1 b/Bastion/OCI.PSModules.Bastion.psd1 index ae29aa2bc..c9d0fc463 100644 --- a/Bastion/OCI.PSModules.Bastion.psd1 +++ b/Bastion/OCI.PSModules.Bastion.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Bastion.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Bastion.dll' diff --git a/Bds/OCI.PSModules.Bds.psd1 b/Bds/OCI.PSModules.Bds.psd1 index 095281262..e004abd2d 100644 --- a/Bds/OCI.PSModules.Bds.psd1 +++ b/Bds/OCI.PSModules.Bds.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Bds.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 482179976..62f5ecf1c 100644 --- a/Blockchain/OCI.PSModules.Blockchain.psd1 +++ b/Blockchain/OCI.PSModules.Blockchain.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Blockchain.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 7ca4ae550..93bf2efd4 100644 --- a/Budget/OCI.PSModules.Budget.psd1 +++ b/Budget/OCI.PSModules.Budget.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Budget.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 6e11372ec..6a4f90e99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,23 @@ 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/). +## 92.0.0 - 2024-09-24 +### Added +- Support for Generative AI Agent service +- Support for undeleting autonomous databases in the Database service +- Support for assigning key versions for the pluggable databases in the Database service +- Support for lifecycle states on list autonomous database operation in the Database service +- Support for data masking parameter on list refresh activity operation in the Fusion Application as a Service +- Support for configuring custom endpoints on an instance in the Integration Cloud service +- Support for updating channel schedules on instance create operation in the Analytics service +- Support for ExaCC via management agents in the Operations Insights service +- Support for appending and deleting allowed SQLs from SQL firewall policies in the Data Safe service +- Support for alarm suppressions with compartment targets and recurring schedules in the Monitoring service + +### Breaking Changes +- The enum value `Standby` has been removed from the enum `LifecycleStateEnum` in the models `Oci.IntegrationService.Models.IntegrationInstance` and `Oci.IntegrationService.Models.IntegrationInstanceSummary` in the Integration Cloud service in the .NET SDK +- The enum value `Standby` has been removed from the enum `LifecycleStateEnum` in the request `Oci.IntegrationService.Requests.ListIntegrationInstancesRequest` in the Integration Cloud service in the .NET SDK + ## 91.0.0 - 2024-09-17 ### Added - Support for calling Oracle Cloud Infrastructure services in the eu-crissier-1 region diff --git a/Capacitymanagement/OCI.PSModules.Capacitymanagement.psd1 b/Capacitymanagement/OCI.PSModules.Capacitymanagement.psd1 index 9185723d3..c3d24d234 100644 --- a/Capacitymanagement/OCI.PSModules.Capacitymanagement.psd1 +++ b/Capacitymanagement/OCI.PSModules.Capacitymanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Capacitymanagement.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Capacitymanagement.dll' diff --git a/Certificates/OCI.PSModules.Certificates.psd1 b/Certificates/OCI.PSModules.Certificates.psd1 index 72183a355..2b86f33ee 100644 --- a/Certificates/OCI.PSModules.Certificates.psd1 +++ b/Certificates/OCI.PSModules.Certificates.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Certificates.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Certificates.dll' diff --git a/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 b/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 index a33c85161..82f0d7254 100644 --- a/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 +++ b/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Certificatesmanagement.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Certificatesmanagement.dll' diff --git a/Cims/OCI.PSModules.Cims.psd1 b/Cims/OCI.PSModules.Cims.psd1 index b8a9ecdf9..5e15eba90 100644 --- a/Cims/OCI.PSModules.Cims.psd1 +++ b/Cims/OCI.PSModules.Cims.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cims.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cims.dll' diff --git a/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 b/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 index 9fac79f53..5613fde7a 100644 --- a/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 +++ b/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudbridge.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudbridge.dll' diff --git a/Cloudguard/OCI.PSModules.Cloudguard.psd1 b/Cloudguard/OCI.PSModules.Cloudguard.psd1 index a3c768f92..495bef122 100644 --- a/Cloudguard/OCI.PSModules.Cloudguard.psd1 +++ b/Cloudguard/OCI.PSModules.Cloudguard.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudguard.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudguard.dll' diff --git a/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 b/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 index c069faaad..b521cd7cb 100644 --- a/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 +++ b/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudmigrations.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudmigrations.dll' diff --git a/Clusterplacementgroups/OCI.PSModules.Clusterplacementgroups.psd1 b/Clusterplacementgroups/OCI.PSModules.Clusterplacementgroups.psd1 index db643963c..a80de8bb0 100644 --- a/Clusterplacementgroups/OCI.PSModules.Clusterplacementgroups.psd1 +++ b/Clusterplacementgroups/OCI.PSModules.Clusterplacementgroups.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Clusterplacementgroups.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Clusterplacementgroups.dll' diff --git a/Common/OCI.PSModules.Common.psd1 b/Common/OCI.PSModules.Common.psd1 index 16f6009ae..73ff798c7 100644 --- a/Common/OCI.PSModules.Common.psd1 +++ b/Common/OCI.PSModules.Common.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Common.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' diff --git a/Common/Version.cs b/Common/Version.cs index 877e9f230..530e8001b 100644 --- a/Common/Version.cs +++ b/Common/Version.cs @@ -7,7 +7,7 @@ namespace Oci.PSModules.Common.Cmdlets public class Version { public static string MAJOR = "91"; - public static string MINOR = "0"; + public static string MINOR = "1"; public static string PATCH = "0"; public static string GetVersion() diff --git a/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 b/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 index d46247df2..61fd5c2a3 100644 --- a/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 +++ b/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Computecloudatcustomer.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Computecloudatcustomer.dll' diff --git a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 index d5f03afa5..937cdecdc 100644 --- a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 +++ b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Computeinstanceagent.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 e0a08e99c..be7061400 100644 --- a/Containerengine/OCI.PSModules.Containerengine.psd1 +++ b/Containerengine/OCI.PSModules.Containerengine.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Containerengine.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerengine.dll' diff --git a/Containerinstances/OCI.PSModules.Containerinstances.psd1 b/Containerinstances/OCI.PSModules.Containerinstances.psd1 index cecb1d670..432c5a1a2 100644 --- a/Containerinstances/OCI.PSModules.Containerinstances.psd1 +++ b/Containerinstances/OCI.PSModules.Containerinstances.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Containerinstances.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerinstances.dll' diff --git a/Core/OCI.PSModules.Core.psd1 b/Core/OCI.PSModules.Core.psd1 index c106f6f9f..822183818 100644 --- a/Core/OCI.PSModules.Core.psd1 +++ b/Core/OCI.PSModules.Core.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Core.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Core.dll' diff --git a/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 b/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 index fb6feb6e6..212e99f60 100644 --- a/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 +++ b/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dashboardservice.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dashboardservice.dll' diff --git a/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabasesList.cs b/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabasesList.cs index 941d3212c..8f2bbc3a3 100644 --- a/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabasesList.cs +++ b/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabasesList.cs @@ -47,6 +47,9 @@ public class GetOCIDatabaseAutonomousDatabasesList : OCIDatabaseCmdlet [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 not match the given lifecycle state.")] + public System.Nullable LifecycleStateNotEqualTo { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only autonomous database resources that match the specified workload type.")] public System.Nullable DbWorkload { get; set; } @@ -94,6 +97,7 @@ protected override void ProcessRecord() SortOrder = SortOrder, InfrastructureType = InfrastructureType, LifecycleState = LifecycleState, + LifecycleStateNotEqualTo = LifecycleStateNotEqualTo, DbWorkload = DbWorkload, DbVersion = DbVersion, IsFreeTier = IsFreeTier, diff --git a/Database/Cmdlets/Invoke-OCIDatabaseSetDbKeyVersion.cs b/Database/Cmdlets/Invoke-OCIDatabaseSetDbKeyVersion.cs new file mode 100644 index 000000000..87fa3488b --- /dev/null +++ b/Database/Cmdlets/Invoke-OCIDatabaseSetDbKeyVersion.cs @@ -0,0 +1,117 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.Model; +using Oci.Common.Waiters; + +namespace Oci.DatabaseService.Cmdlets +{ + [Cmdlet("Invoke", "OCIDatabaseSetDbKeyVersion", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.Database), typeof(Oci.DatabaseService.Responses.SetDbKeyVersionResponse) })] + public class InvokeOCIDatabaseSetDbKeyVersion : 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 = @"Requests Key Version Update. This parameter also accepts subtype of type .", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Requests Key Version Update. This parameter also accepts subtype of type .", ParameterSetName = Default)] + public SetKeyVersionDetails SetKeyVersionDetails { 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(); + SetDbKeyVersionRequest request; + + try + { + request = new SetDbKeyVersionRequest + { + DatabaseId = DatabaseId, + SetKeyVersionDetails = SetKeyVersionDetails, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(SetDbKeyVersionRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForSetDbKeyVersion(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.SetDbKeyVersion(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Database); + } + + private SetDbKeyVersionResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Database/Cmdlets/Invoke-OCIDatabaseSetPdbKeyVersion.cs b/Database/Cmdlets/Invoke-OCIDatabaseSetPdbKeyVersion.cs new file mode 100644 index 000000000..82cdc38cb --- /dev/null +++ b/Database/Cmdlets/Invoke-OCIDatabaseSetPdbKeyVersion.cs @@ -0,0 +1,117 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.Model; +using Oci.Common.Waiters; + +namespace Oci.DatabaseService.Cmdlets +{ + [Cmdlet("Invoke", "OCIDatabaseSetPdbKeyVersion", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.DatabaseService.Models.PluggableDatabase), typeof(Oci.DatabaseService.Responses.SetPdbKeyVersionResponse) })] + public class InvokeOCIDatabaseSetPdbKeyVersion : 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 PluggableDatabaseId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Requests Key Version Update. This parameter also accepts subtype of type .", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Requests Key Version Update. This parameter also accepts subtype of type .", ParameterSetName = Default)] + public SetKeyVersionDetails SetKeyVersionDetails { 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(); + SetPdbKeyVersionRequest request; + + try + { + request = new SetPdbKeyVersionRequest + { + PluggableDatabaseId = PluggableDatabaseId, + SetKeyVersionDetails = SetKeyVersionDetails, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(SetPdbKeyVersionRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForSetPdbKeyVersion(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.SetPdbKeyVersion(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.PluggableDatabase); + } + + private SetPdbKeyVersionResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Database/Cmdlets/New-OCIDatabaseAutonomousDatabase.cs b/Database/Cmdlets/New-OCIDatabaseAutonomousDatabase.cs index c953129b1..6ceaf2068 100644 --- a/Database/Cmdlets/New-OCIDatabaseAutonomousDatabase.cs +++ b/Database/Cmdlets/New-OCIDatabaseAutonomousDatabase.cs @@ -21,8 +21,8 @@ namespace Oci.DatabaseService.Cmdlets public class NewOCIDatabaseAutonomousDatabase : OCIDatabaseCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to create a new Autonomous Database. This parameter also accepts subtypes , , , , , , , of type .", ParameterSetName = StatusParamSet)] - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to create a new Autonomous Database. This parameter also accepts subtypes , , , , , , , of type .", ParameterSetName = Default)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to create a new Autonomous Database. This parameter also accepts subtypes , , , , , , , , of type .", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to create a new Autonomous Database. This parameter also accepts subtypes , , , , , , , , of type .", ParameterSetName = Default)] public CreateAutonomousDatabaseBase CreateAutonomousDatabaseDetails { get; set; } diff --git a/Database/OCI.PSModules.Database.psd1 b/Database/OCI.PSModules.Database.psd1 index 1584564fb..c75ec00d5 100644 --- a/Database/OCI.PSModules.Database.psd1 +++ b/Database/OCI.PSModules.Database.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Database.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Database.dll' @@ -282,6 +282,8 @@ CmdletsToExport = 'Add-OCIDatabaseStorageCapacityCloudExadataInfrastructure', 'Invoke-OCIDatabaseRotateVaultKey', 'Invoke-OCIDatabaseSaasAdminUserStatus', 'Invoke-OCIDatabaseScanExternalContainerDatabasePluggableDatabases', + 'Invoke-OCIDatabaseSetDbKeyVersion', + 'Invoke-OCIDatabaseSetPdbKeyVersion', 'Invoke-OCIDatabaseShrinkAutonomousDatabase', 'Invoke-OCIDatabaseSwitchoverAutonomousContainerDatabaseDataguardAssociation', 'Invoke-OCIDatabaseSwitchoverAutonomousDatabase', diff --git a/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 b/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 index e07030e0b..2e6bf7078 100644 --- a/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 +++ b/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Databasemanagement.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Databasemanagement.dll' diff --git a/Databasemigration/OCI.PSModules.Databasemigration.psd1 b/Databasemigration/OCI.PSModules.Databasemigration.psd1 index 79b56c4b4..f2c5381ba 100644 --- a/Databasemigration/OCI.PSModules.Databasemigration.psd1 +++ b/Databasemigration/OCI.PSModules.Databasemigration.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Databasemigration.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Databasemigration.dll' diff --git a/Databasetools/OCI.PSModules.Databasetools.psd1 b/Databasetools/OCI.PSModules.Databasetools.psd1 index 2a5c4e598..3962817cb 100644 --- a/Databasetools/OCI.PSModules.Databasetools.psd1 +++ b/Databasetools/OCI.PSModules.Databasetools.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Databasetools.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Databasetools.dll' diff --git a/Datacatalog/OCI.PSModules.Datacatalog.psd1 b/Datacatalog/OCI.PSModules.Datacatalog.psd1 index 300a7f5a3..84d8101dd 100644 --- a/Datacatalog/OCI.PSModules.Datacatalog.psd1 +++ b/Datacatalog/OCI.PSModules.Datacatalog.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datacatalog.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datacatalog.dll' diff --git a/Dataflow/OCI.PSModules.Dataflow.psd1 b/Dataflow/OCI.PSModules.Dataflow.psd1 index 6ae9f92b5..0daff5319 100644 --- a/Dataflow/OCI.PSModules.Dataflow.psd1 +++ b/Dataflow/OCI.PSModules.Dataflow.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataflow.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 ed92e84fa..8cea8f413 100644 --- a/Dataintegration/OCI.PSModules.Dataintegration.psd1 +++ b/Dataintegration/OCI.PSModules.Dataintegration.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataintegration.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataintegration.dll' diff --git a/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 b/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 index 981fb629b..2e086734b 100644 --- a/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 +++ b/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datalabelingservice.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datalabelingservice.dll' diff --git a/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 b/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 index 54cacd935..be063b21f 100644 --- a/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 +++ b/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datalabelingservicedataplane.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datalabelingservicedataplane.dll' diff --git a/Datasafe/Cmdlets/Get-OCIDatasafeReportsList.cs b/Datasafe/Cmdlets/Get-OCIDatasafeReportsList.cs index 3b2d5e8ef..2118dea78 100644 --- a/Datasafe/Cmdlets/Get-OCIDatasafeReportsList.cs +++ b/Datasafe/Cmdlets/Get-OCIDatasafeReportsList.cs @@ -45,6 +45,9 @@ public class GetOCIDatasafeReportsList : OCIDataSafeCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeGenerated is descending. Default order for displayName is ascending. If no value is specified timeGenerated is default.")] public System.Nullable SortBy { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An optional filter to return only resources that match the specified mime type.")] + public System.Nullable MimeType { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the report definition to filter the list of reports")] public string ReportDefinitionId { get; set; } @@ -87,6 +90,7 @@ protected override void ProcessRecord() Page = Page, SortOrder = SortOrder, SortBy = SortBy, + MimeType = MimeType, ReportDefinitionId = ReportDefinitionId, TimeGeneratedGreaterThanOrEqualTo = TimeGeneratedGreaterThanOrEqualTo, TimeGeneratedLessThan = TimeGeneratedLessThan, diff --git a/Datasafe/Cmdlets/Get-OCIDatasafeSqlFirewallAllowedSql.cs b/Datasafe/Cmdlets/Get-OCIDatasafeSqlFirewallAllowedSql.cs new file mode 100644 index 000000000..0a7348767 --- /dev/null +++ b/Datasafe/Cmdlets/Get-OCIDatasafeSqlFirewallAllowedSql.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20181201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.DatasafeService.Requests; +using Oci.DatasafeService.Responses; +using Oci.DatasafeService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.DatasafeService.Cmdlets +{ + [Cmdlet("Get", "OCIDatasafeSqlFirewallAllowedSql", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.DatasafeService.Models.SqlFirewallAllowedSql), typeof(Oci.DatasafeService.Responses.GetSqlFirewallAllowedSqlResponse) })] + public class GetOCIDatasafeSqlFirewallAllowedSql : OCIDataSafeCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the sqlFirewallAllowedSql resource.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the sqlFirewallAllowedSql resource.", ParameterSetName = Default)] + public string SqlFirewallAllowedSqlId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.", ParameterSetName = LifecycleStateParamSet)] + [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 = LifecycleStateParamSet)] + public Oci.DatasafeService.Models.SqlFirewallAllowedSqlLifecycleState[] 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(); + GetSqlFirewallAllowedSqlRequest request; + + try + { + request = new GetSqlFirewallAllowedSqlRequest + { + SqlFirewallAllowedSqlId = SqlFirewallAllowedSqlId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetSqlFirewallAllowedSqlRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForSqlFirewallAllowedSql(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetSqlFirewallAllowedSql(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.SqlFirewallAllowedSql); + } + + private GetSqlFirewallAllowedSqlResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Datasafe/Cmdlets/Invoke-OCIDatasafeBulkCreateSqlFirewallAllowedSqls.cs b/Datasafe/Cmdlets/Invoke-OCIDatasafeBulkCreateSqlFirewallAllowedSqls.cs new file mode 100644 index 000000000..91ee229a5 --- /dev/null +++ b/Datasafe/Cmdlets/Invoke-OCIDatasafeBulkCreateSqlFirewallAllowedSqls.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20181201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.DatasafeService.Requests; +using Oci.DatasafeService.Responses; +using Oci.DatasafeService.Models; +using Oci.Common.Model; + +namespace Oci.DatasafeService.Cmdlets +{ + [Cmdlet("Invoke", "OCIDatasafeBulkCreateSqlFirewallAllowedSqls")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DatasafeService.Responses.BulkCreateSqlFirewallAllowedSqlsResponse) })] + public class InvokeOCIDatasafeBulkCreateSqlFirewallAllowedSqls : OCIDataSafeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details of the allowed sql.")] + public BulkCreateSqlFirewallAllowedSqlsDetails BulkCreateSqlFirewallAllowedSqlsDetails { 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 might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + BulkCreateSqlFirewallAllowedSqlsRequest request; + + try + { + request = new BulkCreateSqlFirewallAllowedSqlsRequest + { + BulkCreateSqlFirewallAllowedSqlsDetails = BulkCreateSqlFirewallAllowedSqlsDetails, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.BulkCreateSqlFirewallAllowedSqls(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private BulkCreateSqlFirewallAllowedSqlsResponse response; + } +} diff --git a/Datasafe/Cmdlets/Invoke-OCIDatasafeBulkDeleteSqlFirewallAllowedSqls.cs b/Datasafe/Cmdlets/Invoke-OCIDatasafeBulkDeleteSqlFirewallAllowedSqls.cs new file mode 100644 index 000000000..6ef530dbd --- /dev/null +++ b/Datasafe/Cmdlets/Invoke-OCIDatasafeBulkDeleteSqlFirewallAllowedSqls.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20181201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.DatasafeService.Requests; +using Oci.DatasafeService.Responses; +using Oci.DatasafeService.Models; +using Oci.Common.Model; + +namespace Oci.DatasafeService.Cmdlets +{ + [Cmdlet("Invoke", "OCIDatasafeBulkDeleteSqlFirewallAllowedSqls")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DatasafeService.Responses.BulkDeleteSqlFirewallAllowedSqlsResponse) })] + public class InvokeOCIDatasafeBulkDeleteSqlFirewallAllowedSqls : OCIDataSafeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details of the allowed sql to be deleted from the SQL firewall policy.")] + public BulkDeleteSqlFirewallAllowedSqlsDetails BulkDeleteSqlFirewallAllowedSqlsDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + BulkDeleteSqlFirewallAllowedSqlsRequest request; + + try + { + request = new BulkDeleteSqlFirewallAllowedSqlsRequest + { + BulkDeleteSqlFirewallAllowedSqlsDetails = BulkDeleteSqlFirewallAllowedSqlsDetails, + OpcRequestId = OpcRequestId + }; + + response = client.BulkDeleteSqlFirewallAllowedSqls(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private BulkDeleteSqlFirewallAllowedSqlsResponse response; + } +} diff --git a/Datasafe/Cmdlets/Invoke-OCIDatasafePatchSqlFirewallAllowedSql.cs b/Datasafe/Cmdlets/Invoke-OCIDatasafePatchSqlFirewallAllowedSql.cs new file mode 100644 index 000000000..487fef220 --- /dev/null +++ b/Datasafe/Cmdlets/Invoke-OCIDatasafePatchSqlFirewallAllowedSql.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20181201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.DatasafeService.Requests; +using Oci.DatasafeService.Responses; +using Oci.DatasafeService.Models; +using Oci.Common.Model; + +namespace Oci.DatasafeService.Cmdlets +{ + [Cmdlet("Invoke", "OCIDatasafePatchSqlFirewallAllowedSql")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DatasafeService.Responses.PatchSqlFirewallAllowedSqlResponse) })] + public class InvokeOCIDatasafePatchSqlFirewallAllowedSql : OCIDataSafeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details used to patch the allowed sqls.")] + public PatchSqlFirewallAllowedSqlDetails PatchSqlFirewallAllowedSqlDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.")] + 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; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchSqlFirewallAllowedSqlRequest request; + + try + { + request = new PatchSqlFirewallAllowedSqlRequest + { + PatchSqlFirewallAllowedSqlDetails = PatchSqlFirewallAllowedSqlDetails, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.PatchSqlFirewallAllowedSql(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchSqlFirewallAllowedSqlResponse response; + } +} diff --git a/Datasafe/Cmdlets/Remove-OCIDatasafeSqlFirewallAllowedSql.cs b/Datasafe/Cmdlets/Remove-OCIDatasafeSqlFirewallAllowedSql.cs new file mode 100644 index 000000000..df385672c --- /dev/null +++ b/Datasafe/Cmdlets/Remove-OCIDatasafeSqlFirewallAllowedSql.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20181201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.DatasafeService.Requests; +using Oci.DatasafeService.Responses; +using Oci.DatasafeService.Models; +using Oci.Common.Model; + +namespace Oci.DatasafeService.Cmdlets +{ + [Cmdlet("Remove", "OCIDatasafeSqlFirewallAllowedSql", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DatasafeService.Responses.DeleteSqlFirewallAllowedSqlResponse) })] + public class RemoveOCIDatasafeSqlFirewallAllowedSql : OCIDataSafeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the sqlFirewallAllowedSql resource.")] + public string SqlFirewallAllowedSqlId { 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 = @"Unique identifier for the request.")] + 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("OCIDatasafeSqlFirewallAllowedSql", "Remove")) + { + return; + } + + DeleteSqlFirewallAllowedSqlRequest request; + + try + { + request = new DeleteSqlFirewallAllowedSqlRequest + { + SqlFirewallAllowedSqlId = SqlFirewallAllowedSqlId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteSqlFirewallAllowedSql(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteSqlFirewallAllowedSqlResponse response; + } +} diff --git a/Datasafe/OCI.PSModules.Datasafe.psd1 b/Datasafe/OCI.PSModules.Datasafe.psd1 index 89579e306..8249e9242 100644 --- a/Datasafe/OCI.PSModules.Datasafe.psd1 +++ b/Datasafe/OCI.PSModules.Datasafe.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datasafe.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datasafe.dll' @@ -162,6 +162,7 @@ CmdletsToExport = 'Add-OCIDatasafeMaskingColumnsFromSdm', 'Get-OCIDatasafeSqlCollectionAnalyticsList', 'Get-OCIDatasafeSqlCollectionLogInsightsList', 'Get-OCIDatasafeSqlCollectionsList', + 'Get-OCIDatasafeSqlFirewallAllowedSql', 'Get-OCIDatasafeSqlFirewallAllowedSqlAnalyticsList', 'Get-OCIDatasafeSqlFirewallAllowedSqlsList', 'Get-OCIDatasafeSqlFirewallPoliciesList', @@ -184,6 +185,8 @@ CmdletsToExport = 'Add-OCIDatasafeMaskingColumnsFromSdm', 'Get-OCIDatasafeWorkRequestsList', 'Invoke-OCIDatasafeAlertsUpdate', 'Invoke-OCIDatasafeApplyDiscoveryJobResults', 'Invoke-OCIDatasafeApplySdmMaskingPolicyDifference', + 'Invoke-OCIDatasafeBulkCreateSqlFirewallAllowedSqls', + 'Invoke-OCIDatasafeBulkDeleteSqlFirewallAllowedSqls', 'Invoke-OCIDatasafeCalculateAuditVolumeAvailable', 'Invoke-OCIDatasafeCalculateAuditVolumeCollected', 'Invoke-OCIDatasafeCompareSecurityAssessment', @@ -203,6 +206,7 @@ CmdletsToExport = 'Add-OCIDatasafeMaskingColumnsFromSdm', 'Invoke-OCIDatasafePatchMaskingColumns', 'Invoke-OCIDatasafePatchSdmMaskingPolicyDifferenceColumns', 'Invoke-OCIDatasafePatchSensitiveColumns', + 'Invoke-OCIDatasafePatchSqlFirewallAllowedSql', 'Invoke-OCIDatasafePatchTargetAlertPolicyAssociation', 'Invoke-OCIDatasafeProvisionAuditPolicy', 'Invoke-OCIDatasafePurgeSqlCollectionLogs', @@ -291,6 +295,7 @@ CmdletsToExport = 'Add-OCIDatasafeMaskingColumnsFromSdm', 'Remove-OCIDatasafeSensitiveDataModel', 'Remove-OCIDatasafeSensitiveType', 'Remove-OCIDatasafeSqlCollection', + 'Remove-OCIDatasafeSqlFirewallAllowedSql', 'Remove-OCIDatasafeSqlFirewallPolicy', 'Remove-OCIDatasafeTargetAlertPolicyAssociation', 'Remove-OCIDatasafeTargetDatabase', diff --git a/Datascience/OCI.PSModules.Datascience.psd1 b/Datascience/OCI.PSModules.Datascience.psd1 index d3b75f62c..d23d2c766 100644 --- a/Datascience/OCI.PSModules.Datascience.psd1 +++ b/Datascience/OCI.PSModules.Datascience.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datascience.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datascience.dll' diff --git a/Delegateaccesscontrol/OCI.PSModules.Delegateaccesscontrol.psd1 b/Delegateaccesscontrol/OCI.PSModules.Delegateaccesscontrol.psd1 index 8c945d401..6893aa9b2 100644 --- a/Delegateaccesscontrol/OCI.PSModules.Delegateaccesscontrol.psd1 +++ b/Delegateaccesscontrol/OCI.PSModules.Delegateaccesscontrol.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Delegateaccesscontrol.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Delegateaccesscontrol.dll' diff --git a/Demandsignal/OCI.PSModules.Demandsignal.psd1 b/Demandsignal/OCI.PSModules.Demandsignal.psd1 index 664ae45db..721492f84 100644 --- a/Demandsignal/OCI.PSModules.Demandsignal.psd1 +++ b/Demandsignal/OCI.PSModules.Demandsignal.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Demandsignal.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Demandsignal.dll' diff --git a/Desktops/OCI.PSModules.Desktops.psd1 b/Desktops/OCI.PSModules.Desktops.psd1 index 85fb5c0b8..b1c5315d6 100644 --- a/Desktops/OCI.PSModules.Desktops.psd1 +++ b/Desktops/OCI.PSModules.Desktops.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Desktops.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Desktops.dll' diff --git a/Devops/OCI.PSModules.Devops.psd1 b/Devops/OCI.PSModules.Devops.psd1 index e115846e3..700f2e209 100644 --- a/Devops/OCI.PSModules.Devops.psd1 +++ b/Devops/OCI.PSModules.Devops.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Devops.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Devops.dll' diff --git a/Directory.Build.props b/Directory.Build.props index ef65d2d42..71162f58e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 95.0.0 + 96.1.0-143 diff --git a/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 b/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 index b0874d06f..97a91a921 100644 --- a/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 +++ b/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Disasterrecovery.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Disasterrecovery.dll' diff --git a/Dns/OCI.PSModules.Dns.psd1 b/Dns/OCI.PSModules.Dns.psd1 index 431a0c2ce..672c5c9a2 100644 --- a/Dns/OCI.PSModules.Dns.psd1 +++ b/Dns/OCI.PSModules.Dns.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dns.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 62b0600c8..91d834d12 100644 --- a/Dts/OCI.PSModules.Dts.psd1 +++ b/Dts/OCI.PSModules.Dts.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dts.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 5241e8b8e..4e8d4c222 100644 --- a/Email/OCI.PSModules.Email.psd1 +++ b/Email/OCI.PSModules.Email.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Email.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Email.dll' diff --git a/Emaildataplane/OCI.PSModules.Emaildataplane.psd1 b/Emaildataplane/OCI.PSModules.Emaildataplane.psd1 index 0e272acf3..77f876fcb 100644 --- a/Emaildataplane/OCI.PSModules.Emaildataplane.psd1 +++ b/Emaildataplane/OCI.PSModules.Emaildataplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Emaildataplane.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Emaildataplane.dll' diff --git a/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 b/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 index bea776173..1ebf49c2d 100644 --- a/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 +++ b/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Emwarehouse.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Emwarehouse.dll' diff --git a/Events/OCI.PSModules.Events.psd1 b/Events/OCI.PSModules.Events.psd1 index edfafe8f9..ffd342a22 100644 --- a/Events/OCI.PSModules.Events.psd1 +++ b/Events/OCI.PSModules.Events.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Events.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 84eaf99c8..4754d316d 100644 --- a/Filestorage/OCI.PSModules.Filestorage.psd1 +++ b/Filestorage/OCI.PSModules.Filestorage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Filestorage.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Filestorage.dll' diff --git a/Fleetappsmanagement/OCI.PSModules.Fleetappsmanagement.psd1 b/Fleetappsmanagement/OCI.PSModules.Fleetappsmanagement.psd1 index 9ab9f83ff..de19ba7b0 100644 --- a/Fleetappsmanagement/OCI.PSModules.Fleetappsmanagement.psd1 +++ b/Fleetappsmanagement/OCI.PSModules.Fleetappsmanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Fleetappsmanagement.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Fleetappsmanagement.dll' diff --git a/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 b/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 index 88453b942..ec1dd6d88 100644 --- a/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 +++ b/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Fleetsoftwareupdate.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Fleetsoftwareupdate.dll' diff --git a/Functions/OCI.PSModules.Functions.psd1 b/Functions/OCI.PSModules.Functions.psd1 index aec08a397..82b2e940e 100644 --- a/Functions/OCI.PSModules.Functions.psd1 +++ b/Functions/OCI.PSModules.Functions.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Functions.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Functions.dll' diff --git a/Fusionapps/OCI.PSModules.Fusionapps.psd1 b/Fusionapps/OCI.PSModules.Fusionapps.psd1 index 90050c536..cc291b235 100644 --- a/Fusionapps/OCI.PSModules.Fusionapps.psd1 +++ b/Fusionapps/OCI.PSModules.Fusionapps.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Fusionapps.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Fusionapps.dll' diff --git a/Generativeai/OCI.PSModules.Generativeai.psd1 b/Generativeai/OCI.PSModules.Generativeai.psd1 index 37deaabec..7df5b78c4 100644 --- a/Generativeai/OCI.PSModules.Generativeai.psd1 +++ b/Generativeai/OCI.PSModules.Generativeai.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Generativeai.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Generativeai.dll' diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgent.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgent.cs new file mode 100644 index 000000000..c17c64bae --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgent.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentAgent", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.Agent), typeof(Oci.GenerativeaiagentService.Responses.GetAgentResponse) })] + public class GetOCIGenerativeaiagentAgent : OCIGenerativeAiAgentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.", ParameterSetName = Default)] + public string AgentId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.GenerativeaiagentService.Models.Agent.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(); + GetAgentRequest request; + + try + { + request = new GetAgentRequest + { + AgentId = AgentId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetAgentRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForAgent(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetAgent(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Agent); + } + + private GetAgentResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentEndpoint.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentEndpoint.cs new file mode 100644 index 000000000..d1e787eff --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentEndpoint.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentAgentEndpoint", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.AgentEndpoint), typeof(Oci.GenerativeaiagentService.Responses.GetAgentEndpointResponse) })] + public class GetOCIGenerativeaiagentAgentEndpoint : OCIGenerativeAiAgentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.", ParameterSetName = Default)] + public string AgentEndpointId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.GenerativeaiagentService.Models.AgentEndpoint.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(); + GetAgentEndpointRequest request; + + try + { + request = new GetAgentEndpointRequest + { + AgentEndpointId = AgentEndpointId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetAgentEndpointRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForAgentEndpoint(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetAgentEndpoint(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.AgentEndpoint); + } + + private GetAgentEndpointResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentEndpointsList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentEndpointsList.cs new file mode 100644 index 000000000..1c99dfc79 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentEndpointsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentAgentEndpointsList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.AgentEndpointCollection), typeof(Oci.GenerativeaiagentService.Responses.ListAgentEndpointsResponse) })] + public class GetOCIGenerativeaiagentAgentEndpointsList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.")] + public string AgentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given display name exactly.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"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 only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.")] + public System.Nullable SortBy { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListAgentEndpointsRequest request; + + try + { + request = new ListAgentEndpointsRequest + { + CompartmentId = CompartmentId, + AgentId = AgentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + 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.AgentEndpointCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListAgentEndpointsRequest request) => Enumerable.Repeat(client.ListAgentEndpoints(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListAgentEndpointsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListAgentEndpointsResponse response; + private delegate IEnumerable RequestDelegate(ListAgentEndpointsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentsList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentsList.cs new file mode 100644 index 000000000..b55ccad31 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentAgentsList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentAgentsList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.AgentCollection), typeof(Oci.GenerativeaiagentService.Responses.ListAgentsResponse) })] + public class GetOCIGenerativeaiagentAgentsList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) 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 given lifecycle state. The state value is case-insensitive.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given display name exactly.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"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 only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.")] + public System.Nullable SortBy { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListAgentsRequest request; + + try + { + request = new ListAgentsRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + 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.AgentCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListAgentsRequest request) => Enumerable.Repeat(client.ListAgents(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListAgentsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListAgentsResponse response; + private delegate IEnumerable RequestDelegate(ListAgentsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJob.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJob.cs new file mode 100644 index 000000000..e1ddb2661 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJob.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentDataIngestionJob", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.DataIngestionJob), typeof(Oci.GenerativeaiagentService.Responses.GetDataIngestionJobResponse) })] + public class GetOCIGenerativeaiagentDataIngestionJob : OCIGenerativeAiAgentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data ingestion job.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data ingestion job.", ParameterSetName = Default)] + public string DataIngestionJobId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.GenerativeaiagentService.Models.DataIngestionJob.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(); + GetDataIngestionJobRequest request; + + try + { + request = new GetDataIngestionJobRequest + { + DataIngestionJobId = DataIngestionJobId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetDataIngestionJobRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForDataIngestionJob(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetDataIngestionJob(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.DataIngestionJob); + } + + private GetDataIngestionJobResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJobLogContent.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJobLogContent.cs new file mode 100644 index 000000000..867b1fe2c --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJobLogContent.cs @@ -0,0 +1,89 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.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("Get", "OCIGenerativeaiagentDataIngestionJobLogContent", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(System.IO.Stream), typeof(void), typeof(Oci.GenerativeaiagentService.Responses.GetDataIngestionJobLogContentResponse) })] + public class GetOCIGenerativeaiagentDataIngestionJobLogContent : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data ingestion job.")] + public string DataIngestionJobId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { 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(); + GetDataIngestionJobLogContentRequest request; + + try + { + request = new GetDataIngestionJobLogContentRequest + { + DataIngestionJobId = DataIngestionJobId, + OpcRequestId = OpcRequestId + }; + + response = client.GetDataIngestionJobLogContent(request).GetAwaiter().GetResult(); + HandleOutput(); + + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + 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 GetDataIngestionJobLogContentResponse response; + private const string Default = "Default"; + private const string WriteToFileSet = "WriteToFile"; + private const string FullResponseSet = "FullResponse"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJobsList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJobsList.cs new file mode 100644 index 000000000..d26bc0e60 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataIngestionJobsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentDataIngestionJobsList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.DataIngestionJobCollection), typeof(Oci.GenerativeaiagentService.Responses.ListDataIngestionJobsResponse) })] + public class GetOCIGenerativeaiagentDataIngestionJobsList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data source.")] + public string DataSourceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given display name exactly.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"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 only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.")] + public System.Nullable SortBy { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListDataIngestionJobsRequest request; + + try + { + request = new ListDataIngestionJobsRequest + { + CompartmentId = CompartmentId, + DataSourceId = DataSourceId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + 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.DataIngestionJobCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListDataIngestionJobsRequest request) => Enumerable.Repeat(client.ListDataIngestionJobs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDataIngestionJobsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDataIngestionJobsResponse response; + private delegate IEnumerable RequestDelegate(ListDataIngestionJobsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataSource.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataSource.cs new file mode 100644 index 000000000..aedda4de1 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataSource.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentDataSource", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.DataSource), typeof(Oci.GenerativeaiagentService.Responses.GetDataSourceResponse) })] + public class GetOCIGenerativeaiagentDataSource : OCIGenerativeAiAgentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data source.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data source.", ParameterSetName = Default)] + public string DataSourceId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.GenerativeaiagentService.Models.DataSource.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(); + GetDataSourceRequest request; + + try + { + request = new GetDataSourceRequest + { + DataSourceId = DataSourceId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetDataSourceRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForDataSource(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetDataSource(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.DataSource); + } + + private GetDataSourceResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataSourcesList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataSourcesList.cs new file mode 100644 index 000000000..eded53fd8 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentDataSourcesList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentDataSourcesList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.DataSourceCollection), typeof(Oci.GenerativeaiagentService.Responses.ListDataSourcesResponse) })] + public class GetOCIGenerativeaiagentDataSourcesList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.")] + public string KnowledgeBaseId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given display name exactly.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"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 only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.")] + public System.Nullable SortBy { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListDataSourcesRequest request; + + try + { + request = new ListDataSourcesRequest + { + CompartmentId = CompartmentId, + KnowledgeBaseId = KnowledgeBaseId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + 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.DataSourceCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListDataSourcesRequest request) => Enumerable.Repeat(client.ListDataSources(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDataSourcesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDataSourcesResponse response; + private delegate IEnumerable RequestDelegate(ListDataSourcesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentKnowledgeBase.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentKnowledgeBase.cs new file mode 100644 index 000000000..ae23260db --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentKnowledgeBase.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentKnowledgeBase", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.KnowledgeBase), typeof(Oci.GenerativeaiagentService.Responses.GetKnowledgeBaseResponse) })] + public class GetOCIGenerativeaiagentKnowledgeBase : OCIGenerativeAiAgentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.", ParameterSetName = Default)] + public string KnowledgeBaseId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.GenerativeaiagentService.Models.KnowledgeBase.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(); + GetKnowledgeBaseRequest request; + + try + { + request = new GetKnowledgeBaseRequest + { + KnowledgeBaseId = KnowledgeBaseId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetKnowledgeBaseRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForKnowledgeBase(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetKnowledgeBase(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.KnowledgeBase); + } + + private GetKnowledgeBaseResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentKnowledgeBasesList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentKnowledgeBasesList.cs new file mode 100644 index 000000000..99ef2a486 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentKnowledgeBasesList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentKnowledgeBasesList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.KnowledgeBaseCollection), typeof(Oci.GenerativeaiagentService.Responses.ListKnowledgeBasesResponse) })] + public class GetOCIGenerativeaiagentKnowledgeBasesList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) 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 given lifecycle state. The state value is case-insensitive.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given display name exactly.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"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 only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.")] + public System.Nullable SortBy { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListKnowledgeBasesRequest request; + + try + { + request = new ListKnowledgeBasesRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + 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.KnowledgeBaseCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListKnowledgeBasesRequest request) => Enumerable.Repeat(client.ListKnowledgeBases(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListKnowledgeBasesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListKnowledgeBasesResponse response; + private delegate IEnumerable RequestDelegate(ListKnowledgeBasesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequest.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequest.cs new file mode 100644 index 000000000..8cf4b6ebc --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.GetWorkRequestResponse) })] + public class GetOCIGenerativeaiagentWorkRequest : OCIGenerativeAiAgentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.", ParameterSetName = Default)] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = StatusParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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 Oci.GenerativeaiagentService.Models.OperationStatus[] 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(); + GetWorkRequestRequest request; + + try + { + request = new GetWorkRequestRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetWorkRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.GetWorkRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.WorkRequest); + } + + private GetWorkRequestResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestErrorsList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestErrorsList.cs new file mode 100644 index 000000000..9b8345c5f --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.WorkRequestErrorCollection), typeof(Oci.GenerativeaiagentService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIGenerativeaiagentWorkRequestErrorsList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.")] + 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListWorkRequestErrorsRequest request; + + try + { + request = new ListWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestLogsList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestLogsList.cs new file mode 100644 index 000000000..dd424878d --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.WorkRequestLogEntryCollection), typeof(Oci.GenerativeaiagentService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIGenerativeaiagentWorkRequestLogsList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.")] + 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListWorkRequestLogsRequest request; + + try + { + request = new ListWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestsList.cs b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestsList.cs new file mode 100644 index 000000000..a6f09b573 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Get-OCIGenerativeaiagentWorkRequestsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.WorkRequestSummaryCollection), typeof(Oci.GenerativeaiagentService.Responses.ListWorkRequestsResponse) })] + public class GetOCIGenerativeaiagentWorkRequestsList : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the given lifecycle state.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.")] + public string ResourceId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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. Only one sort order may be provided. Default order for `timeAccepted` is descending.")] + public System.Nullable SortBy { 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(); + ListWorkRequestsRequest request; + + try + { + request = new ListWorkRequestsRequest + { + CompartmentId = CompartmentId, + WorkRequestId = WorkRequestId, + Status = Status, + ResourceId = ResourceId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestSummaryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestsRequest request) => Enumerable.Repeat(client.ListWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentAgentCompartment.cs b/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentAgentCompartment.cs new file mode 100644 index 000000000..e61622c76 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentAgentCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Move", "OCIGenerativeaiagentAgentCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.ChangeAgentCompartmentResponse) })] + public class MoveOCIGenerativeaiagentAgentCompartment : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.")] + public string AgentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeAgentCompartmentDetails ChangeAgentCompartmentDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + ChangeAgentCompartmentRequest request; + + try + { + request = new ChangeAgentCompartmentRequest + { + AgentId = AgentId, + ChangeAgentCompartmentDetails = ChangeAgentCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeAgentCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeAgentCompartmentResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentAgentEndpointCompartment.cs b/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentAgentEndpointCompartment.cs new file mode 100644 index 000000000..bffbf9d2b --- /dev/null +++ b/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentAgentEndpointCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Move", "OCIGenerativeaiagentAgentEndpointCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.ChangeAgentEndpointCompartmentResponse) })] + public class MoveOCIGenerativeaiagentAgentEndpointCompartment : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.")] + public string AgentEndpointId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeAgentEndpointCompartmentDetails ChangeAgentEndpointCompartmentDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + ChangeAgentEndpointCompartmentRequest request; + + try + { + request = new ChangeAgentEndpointCompartmentRequest + { + AgentEndpointId = AgentEndpointId, + ChangeAgentEndpointCompartmentDetails = ChangeAgentEndpointCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeAgentEndpointCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeAgentEndpointCompartmentResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentKnowledgeBaseCompartment.cs b/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentKnowledgeBaseCompartment.cs new file mode 100644 index 000000000..04c8dc734 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Move-OCIGenerativeaiagentKnowledgeBaseCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Move", "OCIGenerativeaiagentKnowledgeBaseCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.ChangeKnowledgeBaseCompartmentResponse) })] + public class MoveOCIGenerativeaiagentKnowledgeBaseCompartment : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.")] + public string KnowledgeBaseId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeKnowledgeBaseCompartmentDetails ChangeKnowledgeBaseCompartmentDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + ChangeKnowledgeBaseCompartmentRequest request; + + try + { + request = new ChangeKnowledgeBaseCompartmentRequest + { + KnowledgeBaseId = KnowledgeBaseId, + ChangeKnowledgeBaseCompartmentDetails = ChangeKnowledgeBaseCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeKnowledgeBaseCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeKnowledgeBaseCompartmentResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentAgent.cs b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentAgent.cs new file mode 100644 index 000000000..1cf051ac7 --- /dev/null +++ b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentAgent.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("New", "OCIGenerativeaiagentAgent")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.Agent), typeof(Oci.GenerativeaiagentService.Responses.CreateAgentResponse) })] + public class NewOCIGenerativeaiagentAgent : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new agent.")] + public CreateAgentDetails CreateAgentDetails { 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 running 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 removed 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateAgentRequest request; + + try + { + request = new CreateAgentRequest + { + CreateAgentDetails = CreateAgentDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateAgent(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Agent); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateAgentResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentAgentEndpoint.cs b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentAgentEndpoint.cs new file mode 100644 index 000000000..bb8333e08 --- /dev/null +++ b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentAgentEndpoint.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("New", "OCIGenerativeaiagentAgentEndpoint")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.AgentEndpoint), typeof(Oci.GenerativeaiagentService.Responses.CreateAgentEndpointResponse) })] + public class NewOCIGenerativeaiagentAgentEndpoint : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new endpoint.")] + public CreateAgentEndpointDetails CreateAgentEndpointDetails { 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 running 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 removed 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateAgentEndpointRequest request; + + try + { + request = new CreateAgentEndpointRequest + { + CreateAgentEndpointDetails = CreateAgentEndpointDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateAgentEndpoint(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AgentEndpoint); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateAgentEndpointResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentDataIngestionJob.cs b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentDataIngestionJob.cs new file mode 100644 index 000000000..1a0673f1c --- /dev/null +++ b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentDataIngestionJob.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("New", "OCIGenerativeaiagentDataIngestionJob")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.DataIngestionJob), typeof(Oci.GenerativeaiagentService.Responses.CreateDataIngestionJobResponse) })] + public class NewOCIGenerativeaiagentDataIngestionJob : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new data ingestion job.")] + public CreateDataIngestionJobDetails CreateDataIngestionJobDetails { 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 running 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 removed 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateDataIngestionJobRequest request; + + try + { + request = new CreateDataIngestionJobRequest + { + CreateDataIngestionJobDetails = CreateDataIngestionJobDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDataIngestionJob(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DataIngestionJob); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateDataIngestionJobResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentDataSource.cs b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentDataSource.cs new file mode 100644 index 000000000..176f1d5dc --- /dev/null +++ b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentDataSource.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("New", "OCIGenerativeaiagentDataSource")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.DataSource), typeof(Oci.GenerativeaiagentService.Responses.CreateDataSourceResponse) })] + public class NewOCIGenerativeaiagentDataSource : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new data source.")] + public CreateDataSourceDetails CreateDataSourceDetails { 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 running 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 removed 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateDataSourceRequest request; + + try + { + request = new CreateDataSourceRequest + { + CreateDataSourceDetails = CreateDataSourceDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDataSource(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DataSource); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateDataSourceResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentKnowledgeBase.cs b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentKnowledgeBase.cs new file mode 100644 index 000000000..c8320ae18 --- /dev/null +++ b/Generativeaiagent/Cmdlets/New-OCIGenerativeaiagentKnowledgeBase.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("New", "OCIGenerativeaiagentKnowledgeBase")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentService.Models.KnowledgeBase), typeof(Oci.GenerativeaiagentService.Responses.CreateKnowledgeBaseResponse) })] + public class NewOCIGenerativeaiagentKnowledgeBase : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new knowledge base.")] + public CreateKnowledgeBaseDetails CreateKnowledgeBaseDetails { 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 running 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 removed 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateKnowledgeBaseRequest request; + + try + { + request = new CreateKnowledgeBaseRequest + { + CreateKnowledgeBaseDetails = CreateKnowledgeBaseDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateKnowledgeBase(request).GetAwaiter().GetResult(); + WriteOutput(response, response.KnowledgeBase); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateKnowledgeBaseResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/OCIGenerativeAiAgentCmdlet.cs b/Generativeaiagent/Cmdlets/OCIGenerativeAiAgentCmdlet.cs new file mode 100644 index 000000000..70dac8d85 --- /dev/null +++ b/Generativeaiagent/Cmdlets/OCIGenerativeAiAgentCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + public abstract class OCIGenerativeAiAgentCmdlet : 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 GenerativeAiAgentClient(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 GenerativeAiAgentClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentAgent.cs b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentAgent.cs new file mode 100644 index 000000000..5b839d226 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentAgent.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Remove", "OCIGenerativeaiagentAgent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.DeleteAgentResponse) })] + public class RemoveOCIGenerativeaiagentAgent : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.")] + public string AgentId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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("OCIGenerativeaiagentAgent", "Remove")) + { + return; + } + + DeleteAgentRequest request; + + try + { + request = new DeleteAgentRequest + { + AgentId = AgentId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteAgent(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteAgentResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentAgentEndpoint.cs b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentAgentEndpoint.cs new file mode 100644 index 000000000..66b93b5a8 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentAgentEndpoint.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Remove", "OCIGenerativeaiagentAgentEndpoint", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.DeleteAgentEndpointResponse) })] + public class RemoveOCIGenerativeaiagentAgentEndpoint : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.")] + public string AgentEndpointId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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("OCIGenerativeaiagentAgentEndpoint", "Remove")) + { + return; + } + + DeleteAgentEndpointRequest request; + + try + { + request = new DeleteAgentEndpointRequest + { + AgentEndpointId = AgentEndpointId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteAgentEndpoint(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteAgentEndpointResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentDataIngestionJob.cs b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentDataIngestionJob.cs new file mode 100644 index 000000000..663046504 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentDataIngestionJob.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Remove", "OCIGenerativeaiagentDataIngestionJob", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.DeleteDataIngestionJobResponse) })] + public class RemoveOCIGenerativeaiagentDataIngestionJob : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data ingestion job.")] + public string DataIngestionJobId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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("OCIGenerativeaiagentDataIngestionJob", "Remove")) + { + return; + } + + DeleteDataIngestionJobRequest request; + + try + { + request = new DeleteDataIngestionJobRequest + { + DataIngestionJobId = DataIngestionJobId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteDataIngestionJob(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteDataIngestionJobResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentDataSource.cs b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentDataSource.cs new file mode 100644 index 000000000..1edbdbdb4 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentDataSource.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Remove", "OCIGenerativeaiagentDataSource", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.DeleteDataSourceResponse) })] + public class RemoveOCIGenerativeaiagentDataSource : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data source.")] + public string DataSourceId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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("OCIGenerativeaiagentDataSource", "Remove")) + { + return; + } + + DeleteDataSourceRequest request; + + try + { + request = new DeleteDataSourceRequest + { + DataSourceId = DataSourceId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteDataSource(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteDataSourceResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentKnowledgeBase.cs b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentKnowledgeBase.cs new file mode 100644 index 000000000..84b38b936 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Remove-OCIGenerativeaiagentKnowledgeBase.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Remove", "OCIGenerativeaiagentKnowledgeBase", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.DeleteKnowledgeBaseResponse) })] + public class RemoveOCIGenerativeaiagentKnowledgeBase : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.")] + public string KnowledgeBaseId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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("OCIGenerativeaiagentKnowledgeBase", "Remove")) + { + return; + } + + DeleteKnowledgeBaseRequest request; + + try + { + request = new DeleteKnowledgeBaseRequest + { + KnowledgeBaseId = KnowledgeBaseId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteKnowledgeBase(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteKnowledgeBaseResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Stop-OCIGenerativeaiagentWorkRequest.cs b/Generativeaiagent/Cmdlets/Stop-OCIGenerativeaiagentWorkRequest.cs new file mode 100644 index 000000000..fcda66cc9 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Stop-OCIGenerativeaiagentWorkRequest.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Stop", "OCIGenerativeaiagentWorkRequest", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.GenerativeaiagentService.Responses.CancelWorkRequestResponse) })] + public class StopOCIGenerativeaiagentWorkRequest : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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("OCIGenerativeaiagentWorkRequest", "Stop")) + { + return; + } + + CancelWorkRequestRequest request; + + try + { + request = new CancelWorkRequestRequest + { + WorkRequestId = WorkRequestId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.CancelWorkRequest(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CancelWorkRequestResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentAgent.cs b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentAgent.cs new file mode 100644 index 000000000..77caaf901 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentAgent.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Update", "OCIGenerativeaiagentAgent")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.UpdateAgentResponse) })] + public class UpdateOCIGenerativeaiagentAgent : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.")] + public string AgentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateAgentDetails UpdateAgentDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateAgentRequest request; + + try + { + request = new UpdateAgentRequest + { + AgentId = AgentId, + UpdateAgentDetails = UpdateAgentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateAgent(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateAgentResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentAgentEndpoint.cs b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentAgentEndpoint.cs new file mode 100644 index 000000000..53abdccdd --- /dev/null +++ b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentAgentEndpoint.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Update", "OCIGenerativeaiagentAgentEndpoint")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.UpdateAgentEndpointResponse) })] + public class UpdateOCIGenerativeaiagentAgentEndpoint : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.")] + public string AgentEndpointId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateAgentEndpointDetails UpdateAgentEndpointDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateAgentEndpointRequest request; + + try + { + request = new UpdateAgentEndpointRequest + { + AgentEndpointId = AgentEndpointId, + UpdateAgentEndpointDetails = UpdateAgentEndpointDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateAgentEndpoint(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateAgentEndpointResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentDataSource.cs b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentDataSource.cs new file mode 100644 index 000000000..e37c4826e --- /dev/null +++ b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentDataSource.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Update", "OCIGenerativeaiagentDataSource")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.UpdateDataSourceResponse) })] + public class UpdateOCIGenerativeaiagentDataSource : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data source.")] + public string DataSourceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The data source information to be updated.")] + public UpdateDataSourceDetails UpdateDataSourceDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateDataSourceRequest request; + + try + { + request = new UpdateDataSourceRequest + { + DataSourceId = DataSourceId, + UpdateDataSourceDetails = UpdateDataSourceDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateDataSource(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateDataSourceResponse response; + } +} diff --git a/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentKnowledgeBase.cs b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentKnowledgeBase.cs new file mode 100644 index 000000000..f7cf407a5 --- /dev/null +++ b/Generativeaiagent/Cmdlets/Update-OCIGenerativeaiagentKnowledgeBase.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentService.Requests; +using Oci.GenerativeaiagentService.Responses; +using Oci.GenerativeaiagentService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentService.Cmdlets +{ + [Cmdlet("Update", "OCIGenerativeaiagentKnowledgeBase")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GenerativeaiagentService.Responses.UpdateKnowledgeBaseResponse) })] + public class UpdateOCIGenerativeaiagentKnowledgeBase : OCIGenerativeAiAgentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.")] + public string KnowledgeBaseId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateKnowledgeBaseDetails UpdateKnowledgeBaseDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateKnowledgeBaseRequest request; + + try + { + request = new UpdateKnowledgeBaseRequest + { + KnowledgeBaseId = KnowledgeBaseId, + UpdateKnowledgeBaseDetails = UpdateKnowledgeBaseDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateKnowledgeBase(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateKnowledgeBaseResponse response; + } +} diff --git a/Generativeaiagent/OCI.PSModules.Generativeaiagent.csproj b/Generativeaiagent/OCI.PSModules.Generativeaiagent.csproj new file mode 100644 index 000000000..442bc3c59 --- /dev/null +++ b/Generativeaiagent/OCI.PSModules.Generativeaiagent.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Generativeaiagent + OCI.PSModules.Generativeaiagent + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Generativeaiagent + Generativeaiagent Service + + + + + + + + + + + diff --git a/Generativeaiagent/OCI.PSModules.Generativeaiagent.psd1 b/Generativeaiagent/OCI.PSModules.Generativeaiagent.psd1 new file mode 100644 index 000000000..715739249 --- /dev/null +++ b/Generativeaiagent/OCI.PSModules.Generativeaiagent.psd1 @@ -0,0 +1,163 @@ +# +# Module manifest for module 'OCI.PSModules.Generativeaiagent' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Generativeaiagent.dll' + +# Version number of this module. +ModuleVersion = '91.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '02e94753-4882-4af1-a6c4-831f6ae6a70f' + +# 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 Generativeaiagent 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 = '91.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Generativeaiagent.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-OCIGenerativeaiagentAgent', + 'Get-OCIGenerativeaiagentAgentEndpoint', + 'Get-OCIGenerativeaiagentAgentEndpointsList', + 'Get-OCIGenerativeaiagentAgentsList', + 'Get-OCIGenerativeaiagentDataIngestionJob', + 'Get-OCIGenerativeaiagentDataIngestionJobLogContent', + 'Get-OCIGenerativeaiagentDataIngestionJobsList', + 'Get-OCIGenerativeaiagentDataSource', + 'Get-OCIGenerativeaiagentDataSourcesList', + 'Get-OCIGenerativeaiagentKnowledgeBase', + 'Get-OCIGenerativeaiagentKnowledgeBasesList', + 'Get-OCIGenerativeaiagentWorkRequest', + 'Get-OCIGenerativeaiagentWorkRequestErrorsList', + 'Get-OCIGenerativeaiagentWorkRequestLogsList', + 'Get-OCIGenerativeaiagentWorkRequestsList', + 'Move-OCIGenerativeaiagentAgentCompartment', + 'Move-OCIGenerativeaiagentAgentEndpointCompartment', + 'Move-OCIGenerativeaiagentKnowledgeBaseCompartment', + 'New-OCIGenerativeaiagentAgent', + 'New-OCIGenerativeaiagentAgentEndpoint', + 'New-OCIGenerativeaiagentDataIngestionJob', + 'New-OCIGenerativeaiagentDataSource', + 'New-OCIGenerativeaiagentKnowledgeBase', + 'Remove-OCIGenerativeaiagentAgent', + 'Remove-OCIGenerativeaiagentAgentEndpoint', + 'Remove-OCIGenerativeaiagentDataIngestionJob', + 'Remove-OCIGenerativeaiagentDataSource', + 'Remove-OCIGenerativeaiagentKnowledgeBase', + 'Stop-OCIGenerativeaiagentWorkRequest', + 'Update-OCIGenerativeaiagentAgent', + 'Update-OCIGenerativeaiagentAgentEndpoint', + 'Update-OCIGenerativeaiagentDataSource', + 'Update-OCIGenerativeaiagentKnowledgeBase' + +# 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','Generativeaiagent' + + # 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/Generativeaiagentruntime/Cmdlets/Get-OCIGenerativeaiagentruntimeSession.cs b/Generativeaiagentruntime/Cmdlets/Get-OCIGenerativeaiagentruntimeSession.cs new file mode 100644 index 000000000..84d315c3c --- /dev/null +++ b/Generativeaiagentruntime/Cmdlets/Get-OCIGenerativeaiagentruntimeSession.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentruntimeService.Requests; +using Oci.GenerativeaiagentruntimeService.Responses; +using Oci.GenerativeaiagentruntimeService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentruntimeService.Cmdlets +{ + [Cmdlet("Get", "OCIGenerativeaiagentruntimeSession")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentruntimeService.Models.Session), typeof(Oci.GenerativeaiagentruntimeService.Responses.GetSessionResponse) })] + public class GetOCIGenerativeaiagentruntimeSession : OCIGenerativeAiAgentRuntimeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the endpoint.")] + public string AgentEndpointId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the session.")] + public string SessionId { 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(); + GetSessionRequest request; + + try + { + request = new GetSessionRequest + { + AgentEndpointId = AgentEndpointId, + SessionId = SessionId, + OpcRequestId = OpcRequestId + }; + + response = client.GetSession(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Session); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetSessionResponse response; + } +} diff --git a/Generativeaiagentruntime/Cmdlets/Invoke-OCIGenerativeaiagentruntimeChat.cs b/Generativeaiagentruntime/Cmdlets/Invoke-OCIGenerativeaiagentruntimeChat.cs new file mode 100644 index 000000000..2137c269e --- /dev/null +++ b/Generativeaiagentruntime/Cmdlets/Invoke-OCIGenerativeaiagentruntimeChat.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentruntimeService.Requests; +using Oci.GenerativeaiagentruntimeService.Responses; +using Oci.GenerativeaiagentruntimeService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentruntimeService.Cmdlets +{ + [Cmdlet("Invoke", "OCIGenerativeaiagentruntimeChat")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentruntimeService.Models.ChatResult), typeof(Oci.GenerativeaiagentruntimeService.Responses.ChatResponse) })] + public class InvokeOCIGenerativeaiagentruntimeChat : OCIGenerativeAiAgentRuntimeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the endpoint.")] + public string AgentEndpointId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Input for chat.")] + public ChatDetails ChatDetails { 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 = @"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(); + ChatRequest request; + + try + { + request = new ChatRequest + { + AgentEndpointId = AgentEndpointId, + ChatDetails = ChatDetails, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.Chat(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ChatResult); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChatResponse response; + } +} diff --git a/Generativeaiagentruntime/Cmdlets/New-OCIGenerativeaiagentruntimeSession.cs b/Generativeaiagentruntime/Cmdlets/New-OCIGenerativeaiagentruntimeSession.cs new file mode 100644 index 000000000..1533ef4c2 --- /dev/null +++ b/Generativeaiagentruntime/Cmdlets/New-OCIGenerativeaiagentruntimeSession.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentruntimeService.Requests; +using Oci.GenerativeaiagentruntimeService.Responses; +using Oci.GenerativeaiagentruntimeService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentruntimeService.Cmdlets +{ + [Cmdlet("New", "OCIGenerativeaiagentruntimeSession")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentruntimeService.Models.Session), typeof(Oci.GenerativeaiagentruntimeService.Responses.CreateSessionResponse) })] + public class NewOCIGenerativeaiagentruntimeSession : OCIGenerativeAiAgentRuntimeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new agent session.")] + public CreateSessionDetails CreateSessionDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the endpoint.")] + public string AgentEndpointId { 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(); + CreateSessionRequest request; + + try + { + request = new CreateSessionRequest + { + CreateSessionDetails = CreateSessionDetails, + AgentEndpointId = AgentEndpointId, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateSession(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Session); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateSessionResponse response; + } +} diff --git a/Generativeaiagentruntime/Cmdlets/OCIGenerativeAiAgentRuntimeCmdlet.cs b/Generativeaiagentruntime/Cmdlets/OCIGenerativeAiAgentRuntimeCmdlet.cs new file mode 100644 index 000000000..322c03600 --- /dev/null +++ b/Generativeaiagentruntime/Cmdlets/OCIGenerativeAiAgentRuntimeCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentruntimeService; + +namespace Oci.GenerativeaiagentruntimeService.Cmdlets +{ + public abstract class OCIGenerativeAiAgentRuntimeCmdlet : 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 GenerativeAiAgentRuntimeClient(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 GenerativeAiAgentRuntimeClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Generativeaiagentruntime/Cmdlets/Remove-OCIGenerativeaiagentruntimeSession.cs b/Generativeaiagentruntime/Cmdlets/Remove-OCIGenerativeaiagentruntimeSession.cs new file mode 100644 index 000000000..df5c3c05b --- /dev/null +++ b/Generativeaiagentruntime/Cmdlets/Remove-OCIGenerativeaiagentruntimeSession.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentruntimeService.Requests; +using Oci.GenerativeaiagentruntimeService.Responses; +using Oci.GenerativeaiagentruntimeService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentruntimeService.Cmdlets +{ + [Cmdlet("Remove", "OCIGenerativeaiagentruntimeSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.GenerativeaiagentruntimeService.Responses.DeleteSessionResponse) })] + public class RemoveOCIGenerativeaiagentruntimeSession : OCIGenerativeAiAgentRuntimeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the endpoint.")] + public string AgentEndpointId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the session.")] + public string SessionId { 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("OCIGenerativeaiagentruntimeSession", "Remove")) + { + return; + } + + DeleteSessionRequest request; + + try + { + request = new DeleteSessionRequest + { + AgentEndpointId = AgentEndpointId, + SessionId = SessionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteSession(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteSessionResponse response; + } +} diff --git a/Generativeaiagentruntime/Cmdlets/Update-OCIGenerativeaiagentruntimeSession.cs b/Generativeaiagentruntime/Cmdlets/Update-OCIGenerativeaiagentruntimeSession.cs new file mode 100644 index 000000000..1953d0763 --- /dev/null +++ b/Generativeaiagentruntime/Cmdlets/Update-OCIGenerativeaiagentruntimeSession.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240531 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.GenerativeaiagentruntimeService.Requests; +using Oci.GenerativeaiagentruntimeService.Responses; +using Oci.GenerativeaiagentruntimeService.Models; +using Oci.Common.Model; + +namespace Oci.GenerativeaiagentruntimeService.Cmdlets +{ + [Cmdlet("Update", "OCIGenerativeaiagentruntimeSession")] + [OutputType(new System.Type[] { typeof(Oci.GenerativeaiagentruntimeService.Models.Session), typeof(Oci.GenerativeaiagentruntimeService.Responses.UpdateSessionResponse) })] + public class UpdateOCIGenerativeaiagentruntimeSession : OCIGenerativeAiAgentRuntimeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the endpoint.")] + public string AgentEndpointId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique ID for the session.")] + public string SessionId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details to update an agent session.")] + public UpdateSessionDetails UpdateSessionDetails { 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(); + UpdateSessionRequest request; + + try + { + request = new UpdateSessionRequest + { + AgentEndpointId = AgentEndpointId, + SessionId = SessionId, + UpdateSessionDetails = UpdateSessionDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateSession(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Session); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateSessionResponse response; + } +} diff --git a/Generativeaiagentruntime/OCI.PSModules.Generativeaiagentruntime.csproj b/Generativeaiagentruntime/OCI.PSModules.Generativeaiagentruntime.csproj new file mode 100644 index 000000000..cbe334450 --- /dev/null +++ b/Generativeaiagentruntime/OCI.PSModules.Generativeaiagentruntime.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Generativeaiagentruntime + OCI.PSModules.Generativeaiagentruntime + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Generativeaiagentruntime + Generativeaiagentruntime Service + + + + + + + + + + + diff --git a/Generativeaiagentruntime/OCI.PSModules.Generativeaiagentruntime.psd1 b/Generativeaiagentruntime/OCI.PSModules.Generativeaiagentruntime.psd1 new file mode 100644 index 000000000..08a64af4a --- /dev/null +++ b/Generativeaiagentruntime/OCI.PSModules.Generativeaiagentruntime.psd1 @@ -0,0 +1,135 @@ +# +# Module manifest for module 'OCI.PSModules.Generativeaiagentruntime' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Generativeaiagentruntime.dll' + +# Version number of this module. +ModuleVersion = '91.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '21655b7d-2a3d-4c7a-892a-d94f40c391b9' + +# 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 Generativeaiagentruntime 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 = '91.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Generativeaiagentruntime.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-OCIGenerativeaiagentruntimeSession', + 'Invoke-OCIGenerativeaiagentruntimeChat', + 'New-OCIGenerativeaiagentruntimeSession', + 'Remove-OCIGenerativeaiagentruntimeSession', + 'Update-OCIGenerativeaiagentruntimeSession' + +# 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','Generativeaiagentruntime' + + # 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/Generativeaiinference/OCI.PSModules.Generativeaiinference.psd1 b/Generativeaiinference/OCI.PSModules.Generativeaiinference.psd1 index c82b6de2f..5f9d2b189 100644 --- a/Generativeaiinference/OCI.PSModules.Generativeaiinference.psd1 +++ b/Generativeaiinference/OCI.PSModules.Generativeaiinference.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Generativeaiinference.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Generativeaiinference.dll' diff --git a/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 b/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 index 804a56f50..1ca1ed259 100644 --- a/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 +++ b/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Genericartifactscontent.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Genericartifactscontent.dll' diff --git a/Globallydistributeddatabase/OCI.PSModules.Globallydistributeddatabase.psd1 b/Globallydistributeddatabase/OCI.PSModules.Globallydistributeddatabase.psd1 index c96ab8a6b..673730a08 100644 --- a/Globallydistributeddatabase/OCI.PSModules.Globallydistributeddatabase.psd1 +++ b/Globallydistributeddatabase/OCI.PSModules.Globallydistributeddatabase.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Globallydistributeddatabase.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Globallydistributeddatabase.dll' diff --git a/Goldengate/OCI.PSModules.Goldengate.psd1 b/Goldengate/OCI.PSModules.Goldengate.psd1 index ee90f8b4d..b2fce0534 100644 --- a/Goldengate/OCI.PSModules.Goldengate.psd1 +++ b/Goldengate/OCI.PSModules.Goldengate.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Goldengate.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Goldengate.dll' diff --git a/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 b/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 index de12a8469..c80f25ea0 100644 --- a/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 +++ b/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Governancerulescontrolplane.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Governancerulescontrolplane.dll' diff --git a/Healthchecks/OCI.PSModules.Healthchecks.psd1 b/Healthchecks/OCI.PSModules.Healthchecks.psd1 index b061e36a5..ec05b7dd3 100644 --- a/Healthchecks/OCI.PSModules.Healthchecks.psd1 +++ b/Healthchecks/OCI.PSModules.Healthchecks.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Healthchecks.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 e609cd37c..163f410c2 100644 --- a/Identity/OCI.PSModules.Identity.psd1 +++ b/Identity/OCI.PSModules.Identity.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Identity.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identity.dll' diff --git a/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 b/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 index bce27c13b..582587d6e 100644 --- a/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 +++ b/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Identitydataplane.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identitydataplane.dll' diff --git a/Identitydomains/OCI.PSModules.Identitydomains.psd1 b/Identitydomains/OCI.PSModules.Identitydomains.psd1 index 3e2a22e75..287bcf189 100644 --- a/Identitydomains/OCI.PSModules.Identitydomains.psd1 +++ b/Identitydomains/OCI.PSModules.Identitydomains.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Identitydomains.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identitydomains.dll' diff --git a/Integration/Cmdlets/Add-OCIIntegrationOracleManagedCustomEndpoint.cs b/Integration/Cmdlets/Add-OCIIntegrationOracleManagedCustomEndpoint.cs new file mode 100644 index 000000000..f61813f65 --- /dev/null +++ b/Integration/Cmdlets/Add-OCIIntegrationOracleManagedCustomEndpoint.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20190131 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.IntegrationService.Requests; +using Oci.IntegrationService.Responses; +using Oci.IntegrationService.Models; +using Oci.Common.Model; + +namespace Oci.IntegrationService.Cmdlets +{ + [Cmdlet("Add", "OCIIntegrationOracleManagedCustomEndpoint")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.IntegrationService.Responses.AddOracleManagedCustomEndpointResponse) })] + public class AddOCIIntegrationOracleManagedCustomEndpoint : OCIIntegrationInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for enabling oracle managed custom endpoint.")] + public AddOracleManagedCustomEndpointDetails AddOracleManagedCustomEndpointDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Integration Instance identifier.")] + public string IntegrationInstanceId { 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(); + AddOracleManagedCustomEndpointRequest request; + + try + { + request = new AddOracleManagedCustomEndpointRequest + { + AddOracleManagedCustomEndpointDetails = AddOracleManagedCustomEndpointDetails, + IntegrationInstanceId = IntegrationInstanceId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.AddOracleManagedCustomEndpoint(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private AddOracleManagedCustomEndpointResponse response; + } +} diff --git a/Integration/Cmdlets/Invoke-OCIIntegrationDisasterRecoveryFailover.cs b/Integration/Cmdlets/Invoke-OCIIntegrationDisasterRecoveryFailover.cs new file mode 100644 index 000000000..278212e0b --- /dev/null +++ b/Integration/Cmdlets/Invoke-OCIIntegrationDisasterRecoveryFailover.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20190131 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.IntegrationService.Requests; +using Oci.IntegrationService.Responses; +using Oci.IntegrationService.Models; +using Oci.Common.Model; + +namespace Oci.IntegrationService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIntegrationDisasterRecoveryFailover")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.IntegrationService.Responses.DisasterRecoveryFailoverResponse) })] + public class InvokeOCIIntegrationDisasterRecoveryFailover : OCIIntegrationInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Integration Instance identifier.")] + public string IntegrationInstanceId { 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(); + DisasterRecoveryFailoverRequest request; + + try + { + request = new DisasterRecoveryFailoverRequest + { + IntegrationInstanceId = IntegrationInstanceId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.DisasterRecoveryFailover(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DisasterRecoveryFailoverResponse response; + } +} diff --git a/Integration/Cmdlets/Remove-OCIIntegrationOracleManagedCustomEndpoint.cs b/Integration/Cmdlets/Remove-OCIIntegrationOracleManagedCustomEndpoint.cs new file mode 100644 index 000000000..20da401e8 --- /dev/null +++ b/Integration/Cmdlets/Remove-OCIIntegrationOracleManagedCustomEndpoint.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20190131 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.IntegrationService.Requests; +using Oci.IntegrationService.Responses; +using Oci.IntegrationService.Models; +using Oci.Common.Model; + +namespace Oci.IntegrationService.Cmdlets +{ + [Cmdlet("Remove", "OCIIntegrationOracleManagedCustomEndpoint")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.IntegrationService.Responses.RemoveOracleManagedCustomEndpointResponse) })] + public class RemoveOCIIntegrationOracleManagedCustomEndpoint : OCIIntegrationInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Integration Instance identifier.")] + public string IntegrationInstanceId { 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(); + RemoveOracleManagedCustomEndpointRequest request; + + try + { + request = new RemoveOracleManagedCustomEndpointRequest + { + IntegrationInstanceId = IntegrationInstanceId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.RemoveOracleManagedCustomEndpoint(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RemoveOracleManagedCustomEndpointResponse response; + } +} diff --git a/Integration/OCI.PSModules.Integration.psd1 b/Integration/OCI.PSModules.Integration.psd1 index c25ebe046..2a1a8fb67 100644 --- a/Integration/OCI.PSModules.Integration.psd1 +++ b/Integration/OCI.PSModules.Integration.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Integration.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Integration.dll' @@ -71,17 +71,20 @@ RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Integration.dll' 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 = 'Enable-OCIIntegrationProcessAutomation', +CmdletsToExport = 'Add-OCIIntegrationOracleManagedCustomEndpoint', + 'Enable-OCIIntegrationProcessAutomation', 'Get-OCIIntegrationInstance', 'Get-OCIIntegrationInstancesList', 'Get-OCIIntegrationWorkRequest', 'Get-OCIIntegrationWorkRequestErrorsList', 'Get-OCIIntegrationWorkRequestLogsList', 'Get-OCIIntegrationWorkRequestsList', + 'Invoke-OCIIntegrationDisasterRecoveryFailover', 'Invoke-OCIIntegrationExtendDataRetention', 'Move-OCIIntegrationInstanceCompartment', 'Move-OCIIntegrationInstanceNetworkEndpoint', 'Move-OCIIntegrationPrivateEndpointOutboundConnection', 'New-OCIIntegrationInstance', 'Remove-OCIIntegrationInstance', + 'Remove-OCIIntegrationOracleManagedCustomEndpoint', 'Start-OCIIntegrationInstance', 'Stop-OCIIntegrationInstance', 'Update-OCIIntegrationInstance' diff --git a/Jms/OCI.PSModules.Jms.psd1 b/Jms/OCI.PSModules.Jms.psd1 index 8063c3033..4949394b9 100644 --- a/Jms/OCI.PSModules.Jms.psd1 +++ b/Jms/OCI.PSModules.Jms.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Jms.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Jms.dll' diff --git a/Jmsjavadownloads/OCI.PSModules.Jmsjavadownloads.psd1 b/Jmsjavadownloads/OCI.PSModules.Jmsjavadownloads.psd1 index 9a08a26f5..5d693a201 100644 --- a/Jmsjavadownloads/OCI.PSModules.Jmsjavadownloads.psd1 +++ b/Jmsjavadownloads/OCI.PSModules.Jmsjavadownloads.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Jmsjavadownloads.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Jmsjavadownloads.dll' diff --git a/Keymanagement/OCI.PSModules.Keymanagement.psd1 b/Keymanagement/OCI.PSModules.Keymanagement.psd1 index 388dbe713..9f263ac3b 100644 --- a/Keymanagement/OCI.PSModules.Keymanagement.psd1 +++ b/Keymanagement/OCI.PSModules.Keymanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Keymanagement.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Keymanagement.dll' diff --git a/Licensemanager/OCI.PSModules.Licensemanager.psd1 b/Licensemanager/OCI.PSModules.Licensemanager.psd1 index 533b5441b..b4a7134d7 100644 --- a/Licensemanager/OCI.PSModules.Licensemanager.psd1 +++ b/Licensemanager/OCI.PSModules.Licensemanager.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Licensemanager.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Licensemanager.dll' diff --git a/Limits/OCI.PSModules.Limits.psd1 b/Limits/OCI.PSModules.Limits.psd1 index d9d1eb849..f810d37b5 100644 --- a/Limits/OCI.PSModules.Limits.psd1 +++ b/Limits/OCI.PSModules.Limits.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Limits.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 5a90c21b3..deb2a0ff3 100644 --- a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 +++ b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loadbalancer.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loadbalancer.dll' diff --git a/Lockbox/OCI.PSModules.Lockbox.psd1 b/Lockbox/OCI.PSModules.Lockbox.psd1 index 2f2138dd9..f604318eb 100644 --- a/Lockbox/OCI.PSModules.Lockbox.psd1 +++ b/Lockbox/OCI.PSModules.Lockbox.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Lockbox.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Lockbox.dll' diff --git a/Loganalytics/OCI.PSModules.Loganalytics.psd1 b/Loganalytics/OCI.PSModules.Loganalytics.psd1 index 0d8d8037b..ba49fc1a6 100644 --- a/Loganalytics/OCI.PSModules.Loganalytics.psd1 +++ b/Loganalytics/OCI.PSModules.Loganalytics.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loganalytics.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 6bc1b4965..8ae148315 100644 --- a/Logging/OCI.PSModules.Logging.psd1 +++ b/Logging/OCI.PSModules.Logging.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Logging.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 aa7e37ed8..892bf3716 100644 --- a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 +++ b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingingestion.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 27da6b716..b5238cf59 100644 --- a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 +++ b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingsearch.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 f411ff8bd..61a6c2146 100644 --- a/Managementagent/OCI.PSModules.Managementagent.psd1 +++ b/Managementagent/OCI.PSModules.Managementagent.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementagent.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 2380d0a53..37bc8072f 100644 --- a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 +++ b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementdashboard.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 4b96fe809..697464660 100644 --- a/Marketplace/OCI.PSModules.Marketplace.psd1 +++ b/Marketplace/OCI.PSModules.Marketplace.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Marketplace.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplace.dll' diff --git a/Marketplaceprivateoffer/OCI.PSModules.Marketplaceprivateoffer.psd1 b/Marketplaceprivateoffer/OCI.PSModules.Marketplaceprivateoffer.psd1 index 6b4296a5b..401ee1b8f 100644 --- a/Marketplaceprivateoffer/OCI.PSModules.Marketplaceprivateoffer.psd1 +++ b/Marketplaceprivateoffer/OCI.PSModules.Marketplaceprivateoffer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Marketplaceprivateoffer.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplaceprivateoffer.dll' diff --git a/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 b/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 index 26fa60deb..2365e8c0e 100644 --- a/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 +++ b/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Marketplacepublisher.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplacepublisher.dll' diff --git a/Mediaservices/OCI.PSModules.Mediaservices.psd1 b/Mediaservices/OCI.PSModules.Mediaservices.psd1 index 79240ea7b..654430deb 100644 --- a/Mediaservices/OCI.PSModules.Mediaservices.psd1 +++ b/Mediaservices/OCI.PSModules.Mediaservices.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Mediaservices.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mediaservices.dll' diff --git a/Monitoring/Cmdlets/Get-OCIMonitoringAlarmSuppressionsList.cs b/Monitoring/Cmdlets/Get-OCIMonitoringAlarmSuppressionsList.cs index 758ec0756..143fc75b2 100644 --- a/Monitoring/Cmdlets/Get-OCIMonitoringAlarmSuppressionsList.cs +++ b/Monitoring/Cmdlets/Get-OCIMonitoringAlarmSuppressionsList.cs @@ -21,18 +21,41 @@ namespace Oci.MonitoringService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.MonitoringService.Models.AlarmSuppressionCollection), typeof(Oci.MonitoringService.Responses.ListAlarmSuppressionsResponse) })] public class GetOCIMonitoringAlarmSuppressionsList : OCIMonitoringCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.")] - public string AlarmId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Customer part of the request identifier token. If you need to contact Oracle about a particular request, please provide the complete request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.")] + public string AlarmId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given display name exactly. Use this filter to list an alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.")] public string DisplayName { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.")] public System.Nullable LifecycleState { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The level of this alarm suppression. `ALARM` indicates a suppression of the entire alarm, regardless of dimension. `DIMENSION` indicates a suppression configured for specified dimensions.")] + public System.Nullable Level { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for searching. Use the tenancy OCID to search in the root compartment. + +If targetType is not specified, searches all suppressions defined under the compartment. If targetType is `COMPARTMENT`, searches suppressions in the specified compartment only. + +Example: `ocid1.compartment.oc1..exampleuniqueID`")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.")] + public System.Nullable CompartmentIdInSubtree { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The target type to use when listing alarm suppressions. `ALARM` lists all suppression records for the specified alarm. `COMPARTMENT` lists all suppression records for the specified compartment or tenancy.")] + public System.Nullable TargetType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Setting this parameter to true requires the query to specify the alarm (`alarmId`). + +When true, lists all alarm suppressions that affect the specified alarm, including suppressions that target the corresponding compartment or tenancy. When false, lists only the alarm suppressions that target the specified alarm. + +Default is false.")] + public System.Nullable IsAllSuppressions { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to use when sorting returned alarm suppressions. Only one sorting level is provided. Example: `timeCreated`")] @@ -65,10 +88,15 @@ protected override void ProcessRecord() { request = new ListAlarmSuppressionsRequest { - AlarmId = AlarmId, OpcRequestId = OpcRequestId, + AlarmId = AlarmId, DisplayName = DisplayName, LifecycleState = LifecycleState, + Level = Level, + CompartmentId = CompartmentId, + CompartmentIdInSubtree = CompartmentIdInSubtree, + TargetType = TargetType, + IsAllSuppressions = IsAllSuppressions, SortBy = SortBy, SortOrder = SortOrder, Page = Page, diff --git a/Monitoring/OCI.PSModules.Monitoring.psd1 b/Monitoring/OCI.PSModules.Monitoring.psd1 index 3fd06cd98..1d558a9dc 100644 --- a/Monitoring/OCI.PSModules.Monitoring.psd1 +++ b/Monitoring/OCI.PSModules.Monitoring.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Monitoring.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 41af6bedd..207f7de93 100644 --- a/Mysql/OCI.PSModules.Mysql.psd1 +++ b/Mysql/OCI.PSModules.Mysql.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Mysql.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mysql.dll' diff --git a/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 b/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 index 7a79f79ce..cc52ac4bd 100644 --- a/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 +++ b/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Networkfirewall.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Networkfirewall.dll' diff --git a/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 b/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 index e6cbaf7b5..b21a349b8 100644 --- a/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 +++ b/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Networkloadbalancer.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Networkloadbalancer.dll' diff --git a/Nosql/OCI.PSModules.Nosql.psd1 b/Nosql/OCI.PSModules.Nosql.psd1 index d24066771..c25b43b4e 100644 --- a/Nosql/OCI.PSModules.Nosql.psd1 +++ b/Nosql/OCI.PSModules.Nosql.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Nosql.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 b0cec44aa..8d5d27fa4 100644 --- a/Objectstorage/OCI.PSModules.Objectstorage.psd1 +++ b/Objectstorage/OCI.PSModules.Objectstorage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Objectstorage.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 0f17a8e8f..e10c14b3a 100644 --- a/Oce/OCI.PSModules.Oce.psd1 +++ b/Oce/OCI.PSModules.Oce.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Oce.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oce.dll' diff --git a/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 b/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 index f005600a6..78bb2b015 100644 --- a/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 +++ b/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ocicontrolcenter.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ocicontrolcenter.dll' diff --git a/Ocvp/OCI.PSModules.Ocvp.psd1 b/Ocvp/OCI.PSModules.Ocvp.psd1 index fd289f5d9..e9e82e9ac 100644 --- a/Ocvp/OCI.PSModules.Ocvp.psd1 +++ b/Ocvp/OCI.PSModules.Ocvp.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ocvp.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 1adc792a0..56b47f5fe 100644 --- a/Oda/OCI.PSModules.Oda.psd1 +++ b/Oda/OCI.PSModules.Oda.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Oda.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oda.dll' diff --git a/Onesubscription/OCI.PSModules.Onesubscription.psd1 b/Onesubscription/OCI.PSModules.Onesubscription.psd1 index 374f7d6e9..f7a36ba1a 100644 --- a/Onesubscription/OCI.PSModules.Onesubscription.psd1 +++ b/Onesubscription/OCI.PSModules.Onesubscription.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Onesubscription.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Onesubscription.dll' diff --git a/Ons/OCI.PSModules.Ons.psd1 b/Ons/OCI.PSModules.Ons.psd1 index 6dfaa4e3e..0caeef0b3 100644 --- a/Ons/OCI.PSModules.Ons.psd1 +++ b/Ons/OCI.PSModules.Ons.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ons.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ons.dll' diff --git a/Opa/OCI.PSModules.Opa.psd1 b/Opa/OCI.PSModules.Opa.psd1 index 37729dd6b..5259b1c44 100644 --- a/Opa/OCI.PSModules.Opa.psd1 +++ b/Opa/OCI.PSModules.Opa.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Opa.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opa.dll' diff --git a/Opensearch/OCI.PSModules.Opensearch.psd1 b/Opensearch/OCI.PSModules.Opensearch.psd1 index a5a1a7aef..d1199c2e8 100644 --- a/Opensearch/OCI.PSModules.Opensearch.psd1 +++ b/Opensearch/OCI.PSModules.Opensearch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Opensearch.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opensearch.dll' diff --git a/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 b/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 index 3f1cc357f..32b476aa6 100644 --- a/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 +++ b/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Operatoraccesscontrol.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Operatoraccesscontrol.dll' diff --git a/Opsi/Cmdlets/Add-OCIOpsiExadataInsightMembers.cs b/Opsi/Cmdlets/Add-OCIOpsiExadataInsightMembers.cs index 715d60265..aa547a4a3 100644 --- a/Opsi/Cmdlets/Add-OCIOpsiExadataInsightMembers.cs +++ b/Opsi/Cmdlets/Add-OCIOpsiExadataInsightMembers.cs @@ -19,7 +19,7 @@ namespace Oci.OpsiService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpsiService.Responses.AddExadataInsightMembersResponse) })] public class AddOCIOpsiExadataInsightMembers : OCIOperationsInsightsCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the members (e.g. databases and hosts) of an Exadata system to be added in Operations Insights. This parameter also accepts subtypes , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the members (e.g. databases and hosts) of an Exadata system to be added in Operations Insights. This parameter also accepts subtypes , , of type .")] public AddExadataInsightMembersDetails AddExadataInsightMembersDetails { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Exadata insight identifier")] diff --git a/Opsi/Cmdlets/Enable-OCIOpsiDatabaseInsight.cs b/Opsi/Cmdlets/Enable-OCIOpsiDatabaseInsight.cs index a6da38b87..c5f59cb84 100644 --- a/Opsi/Cmdlets/Enable-OCIOpsiDatabaseInsight.cs +++ b/Opsi/Cmdlets/Enable-OCIOpsiDatabaseInsight.cs @@ -19,7 +19,7 @@ namespace Oci.OpsiService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpsiService.Responses.EnableDatabaseInsightResponse) })] public class EnableOCIOpsiDatabaseInsight : OCIOperationsInsightsCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the database to be enabled in Operations Insights. This parameter also accepts subtypes , , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the database to be enabled in Operations Insights. This parameter also accepts subtypes , , , of type .")] public EnableDatabaseInsightDetails EnableDatabaseInsightDetails { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique database insight identifier")] diff --git a/Opsi/Cmdlets/Enable-OCIOpsiExadataInsight.cs b/Opsi/Cmdlets/Enable-OCIOpsiExadataInsight.cs index 1a89a20e0..66b791884 100644 --- a/Opsi/Cmdlets/Enable-OCIOpsiExadataInsight.cs +++ b/Opsi/Cmdlets/Enable-OCIOpsiExadataInsight.cs @@ -19,7 +19,7 @@ namespace Oci.OpsiService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpsiService.Responses.EnableExadataInsightResponse) })] public class EnableOCIOpsiExadataInsight : OCIOperationsInsightsCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the Exadata system to be enabled in Operations Insights. This parameter also accepts subtypes , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the Exadata system to be enabled in Operations Insights. This parameter also accepts subtypes , , of type .")] public EnableExadataInsightDetails EnableExadataInsightDetails { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Exadata insight identifier")] diff --git a/Opsi/Cmdlets/Get-OCIOpsiExadataConfigurationsList.cs b/Opsi/Cmdlets/Get-OCIOpsiExadataConfigurationsList.cs index 9df577afc..3718407fe 100644 --- a/Opsi/Cmdlets/Get-OCIOpsiExadataConfigurationsList.cs +++ b/Opsi/Cmdlets/Get-OCIOpsiExadataConfigurationsList.cs @@ -54,6 +54,9 @@ public class GetOCIOpsiExadataConfigurationsList : OCIOperationsInsightsCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is ""{tagName}.true"". All inputs are case-insensitive. Currently, only existence (""true"" at the end) is supported. Absence (""false"" at the end) is not supported. Multiple values for different tag names are interpreted as ""AND"".")] public System.Collections.Generic.List FreeformTagExists { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] + public System.Nullable CompartmentIdInSubtree { 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.")] public string OpcRequestId { get; set; } @@ -80,6 +83,7 @@ protected override void ProcessRecord() FreeformTagEquals = FreeformTagEquals, DefinedTagExists = DefinedTagExists, FreeformTagExists = FreeformTagExists, + CompartmentIdInSubtree = CompartmentIdInSubtree, OpcRequestId = OpcRequestId }; IEnumerable responses = GetRequestDelegate().Invoke(request); diff --git a/Opsi/Cmdlets/Get-OCIOpsiHostConfigurationsList.cs b/Opsi/Cmdlets/Get-OCIOpsiHostConfigurationsList.cs index 8086e2ca9..181558b40 100644 --- a/Opsi/Cmdlets/Get-OCIOpsiHostConfigurationsList.cs +++ b/Opsi/Cmdlets/Get-OCIOpsiHostConfigurationsList.cs @@ -66,7 +66,7 @@ public class GetOCIOpsiHostConfigurationsList : OCIOperationsInsightsCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] public System.Nullable CompartmentIdInSubtree { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Get-OCIOpsiHostInsightsList.cs b/Opsi/Cmdlets/Get-OCIOpsiHostInsightsList.cs index 3c9fdf524..228921254 100644 --- a/Opsi/Cmdlets/Get-OCIOpsiHostInsightsList.cs +++ b/Opsi/Cmdlets/Get-OCIOpsiHostInsightsList.cs @@ -33,7 +33,7 @@ public class GetOCIOpsiHostInsightsList : OCIOperationsInsightsCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Lifecycle states")] public System.Collections.Generic.List LifecycleState { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more platform types. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX].")] diff --git a/Opsi/Cmdlets/Get-OCIOpsiHostedEntitiesList.cs b/Opsi/Cmdlets/Get-OCIOpsiHostedEntitiesList.cs index c2f2c8700..6af4fae5e 100644 --- a/Opsi/Cmdlets/Get-OCIOpsiHostedEntitiesList.cs +++ b/Opsi/Cmdlets/Get-OCIOpsiHostedEntitiesList.cs @@ -57,7 +57,7 @@ public class GetOCIOpsiHostedEntitiesList : OCIOperationsInsightsCmdlet [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.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceCapacityTrendAggregated.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceCapacityTrendAggregated.cs index 35a612313..805711eff 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceCapacityTrendAggregated.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceCapacityTrendAggregated.cs @@ -70,6 +70,9 @@ public class InvokeOCIOpsiSummarizeExadataInsightResourceCapacityTrendAggregated [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is ""{tagName}.true"". All inputs are case-insensitive. Currently, only existence (""true"" at the end) is supported. Absence (""false"" at the end) is not supported. Multiple values for different tag names are interpreted as ""AND"".")] public System.Collections.Generic.List FreeformTagExists { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] + public System.Nullable CompartmentIdInSubtree { 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.")] public string OpcRequestId { get; set; } @@ -99,6 +102,7 @@ protected override void ProcessRecord() FreeformTagEquals = FreeformTagEquals, DefinedTagExists = DefinedTagExists, FreeformTagExists = FreeformTagExists, + CompartmentIdInSubtree = CompartmentIdInSubtree, OpcRequestId = OpcRequestId }; diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceForecastTrendAggregated.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceForecastTrendAggregated.cs index dc8e4f777..e8eb5637a 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceForecastTrendAggregated.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceForecastTrendAggregated.cs @@ -79,6 +79,9 @@ public class InvokeOCIOpsiSummarizeExadataInsightResourceForecastTrendAggregated [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is ""{tagName}.true"". All inputs are case-insensitive. Currently, only existence (""true"" at the end) is supported. Absence (""false"" at the end) is not supported. Multiple values for different tag names are interpreted as ""AND"".")] public System.Collections.Generic.List FreeformTagExists { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] + public System.Nullable CompartmentIdInSubtree { 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.")] public string OpcRequestId { get; set; } @@ -111,6 +114,7 @@ protected override void ProcessRecord() FreeformTagEquals = FreeformTagEquals, DefinedTagExists = DefinedTagExists, FreeformTagExists = FreeformTagExists, + CompartmentIdInSubtree = CompartmentIdInSubtree, OpcRequestId = OpcRequestId }; diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsage.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsage.cs index d522790d7..5d848cf3b 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsage.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsage.cs @@ -76,6 +76,9 @@ public class InvokeOCIOpsiSummarizeExadataInsightResourceUsage : OCIOperationsIn [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is ""{tagName}.true"". All inputs are case-insensitive. Currently, only existence (""true"" at the end) is supported. Absence (""false"" at the end) is not supported. Multiple values for different tag names are interpreted as ""AND"".")] public System.Collections.Generic.List FreeformTagExists { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] + public System.Nullable CompartmentIdInSubtree { 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.")] public string OpcRequestId { get; set; } @@ -107,6 +110,7 @@ protected override void ProcessRecord() FreeformTagEquals = FreeformTagEquals, DefinedTagExists = DefinedTagExists, FreeformTagExists = FreeformTagExists, + CompartmentIdInSubtree = CompartmentIdInSubtree, OpcRequestId = OpcRequestId }; diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsageAggregated.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsageAggregated.cs index 4138feb00..1b247ba32 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsageAggregated.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUsageAggregated.cs @@ -67,6 +67,9 @@ public class InvokeOCIOpsiSummarizeExadataInsightResourceUsageAggregated : OCIOp [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is ""{tagName}.true"". All inputs are case-insensitive. Currently, only existence (""true"" at the end) is supported. Absence (""false"" at the end) is not supported. Multiple values for different tag names are interpreted as ""AND"".")] public System.Collections.Generic.List FreeformTagExists { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] + public System.Nullable CompartmentIdInSubtree { 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.")] public string OpcRequestId { get; set; } @@ -95,6 +98,7 @@ protected override void ProcessRecord() FreeformTagEquals = FreeformTagEquals, DefinedTagExists = DefinedTagExists, FreeformTagExists = FreeformTagExists, + CompartmentIdInSubtree = CompartmentIdInSubtree, OpcRequestId = OpcRequestId }; diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUtilizationInsight.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUtilizationInsight.cs index e07be65f2..98a8492c6 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUtilizationInsight.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeExadataInsightResourceUtilizationInsight.cs @@ -73,6 +73,9 @@ public class InvokeOCIOpsiSummarizeExadataInsightResourceUtilizationInsight : OC [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A list of tag existence filters to apply. Only resources for which the specified freeform tags exist the value will be returned. The key for each tag is ""{tagName}.true"". All inputs are case-insensitive. Currently, only existence (""true"" at the end) is supported. Absence (""false"" at the end) is not supported. Multiple values for different tag names are interpreted as ""AND"".")] public System.Collections.Generic.List FreeformTagExists { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] + public System.Nullable CompartmentIdInSubtree { 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.")] public string OpcRequestId { get; set; } @@ -103,6 +106,7 @@ protected override void ProcessRecord() FreeformTagEquals = FreeformTagEquals, DefinedTagExists = DefinedTagExists, FreeformTagExists = FreeformTagExists, + CompartmentIdInSubtree = CompartmentIdInSubtree, OpcRequestId = OpcRequestId }; diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs index 5ab827fb9..e2735bd15 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs @@ -73,7 +73,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceCapacityTrend : OCIOperati [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] public System.Nullable CompartmentIdInSubtree { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs index 8becc9ae5..b6c235457 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs @@ -79,7 +79,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceForecastTrend : OCIOperati [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] public System.Nullable CompartmentIdInSubtree { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs index 825bdb220..90b1a45a0 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs @@ -82,7 +82,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceStatistics : OCIOperations [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] public System.Nullable CompartmentIdInSubtree { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs index 7a0c36be5..e638c5073 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs @@ -67,7 +67,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceUsage : OCIOperationsInsig [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] public System.Nullable CompartmentIdInSubtree { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs index d65c899e8..0864b4f25 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs @@ -70,7 +70,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceUsageTrend : OCIOperations [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] public System.Nullable CompartmentIdInSubtree { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs index 0b2b2bc81..64140c4b1 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs @@ -67,7 +67,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceUtilizationInsight : OCIOp [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A flag to search all resources within a given compartment and all sub-compartments.")] public System.Nullable CompartmentIdInSubtree { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs index beccd601a..3cd05db3f 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs @@ -49,7 +49,7 @@ public class InvokeOCIOpsiSummarizeHostInsightTopProcessesUsage : OCIOperationsI [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] public string AnalysisTimeInterval { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs index 739bcfda2..8ef8317ef 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs @@ -46,7 +46,7 @@ public class InvokeOCIOpsiSummarizeHostInsightTopProcessesUsageTrend : OCIOperat [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.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by one or more host types. Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST")] public System.Collections.Generic.List HostType { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiTestMacsManagedCloudDatabaseInsightConnection.cs b/Opsi/Cmdlets/Invoke-OCIOpsiTestMacsManagedCloudDatabaseInsightConnection.cs new file mode 100644 index 000000000..6a2c6b2bc --- /dev/null +++ b/Opsi/Cmdlets/Invoke-OCIOpsiTestMacsManagedCloudDatabaseInsightConnection.cs @@ -0,0 +1,77 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200630 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.OpsiService.Requests; +using Oci.OpsiService.Responses; +using Oci.OpsiService.Models; +using Oci.Common.Model; + +namespace Oci.OpsiService.Cmdlets +{ + [Cmdlet("Invoke", "OCIOpsiTestMacsManagedCloudDatabaseInsightConnection")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpsiService.Responses.TestMacsManagedCloudDatabaseInsightConnectionResponse) })] + public class InvokeOCIOpsiTestMacsManagedCloudDatabaseInsightConnection : OCIOperationsInsightsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The database connection information for the Cloud MACS-managed database.")] + public TestMacsManagedCloudDatabaseInsightConnectionDetails TestMacsManagedCloudDatabaseInsightConnectionDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated DBaaS entity.")] + public string DatabaseId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"[OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database insight resource.")] + public string Id { 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.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. + +*Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + TestMacsManagedCloudDatabaseInsightConnectionRequest request; + + try + { + request = new TestMacsManagedCloudDatabaseInsightConnectionRequest + { + TestMacsManagedCloudDatabaseInsightConnectionDetails = TestMacsManagedCloudDatabaseInsightConnectionDetails, + DatabaseId = DatabaseId, + Id = Id, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.TestMacsManagedCloudDatabaseInsightConnection(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private TestMacsManagedCloudDatabaseInsightConnectionResponse response; + } +} diff --git a/Opsi/Cmdlets/Move-OCIOpsiMacsManagedCloudDatabaseInsightConnection.cs b/Opsi/Cmdlets/Move-OCIOpsiMacsManagedCloudDatabaseInsightConnection.cs new file mode 100644 index 000000000..23593b3b5 --- /dev/null +++ b/Opsi/Cmdlets/Move-OCIOpsiMacsManagedCloudDatabaseInsightConnection.cs @@ -0,0 +1,77 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200630 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.OpsiService.Requests; +using Oci.OpsiService.Responses; +using Oci.OpsiService.Models; +using Oci.Common.Model; + +namespace Oci.OpsiService.Cmdlets +{ + [Cmdlet("Move", "OCIOpsiMacsManagedCloudDatabaseInsightConnection")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpsiService.Responses.ChangeMacsManagedCloudDatabaseInsightConnectionResponse) })] + public class MoveOCIOpsiMacsManagedCloudDatabaseInsightConnection : OCIOperationsInsightsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique database insight identifier")] + public string DatabaseInsightId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeMacsManagedCloudDatabaseInsightConnectionDetails ChangeMacsManagedCloudDatabaseInsightConnectionDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. + +*Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting operations, such as a resource being deleted or purged from the system.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeMacsManagedCloudDatabaseInsightConnectionRequest request; + + try + { + request = new ChangeMacsManagedCloudDatabaseInsightConnectionRequest + { + DatabaseInsightId = DatabaseInsightId, + ChangeMacsManagedCloudDatabaseInsightConnectionDetails = ChangeMacsManagedCloudDatabaseInsightConnectionDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeMacsManagedCloudDatabaseInsightConnection(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeMacsManagedCloudDatabaseInsightConnectionResponse response; + } +} diff --git a/Opsi/Cmdlets/New-OCIOpsiDatabaseInsight.cs b/Opsi/Cmdlets/New-OCIOpsiDatabaseInsight.cs index 3cd755fc6..61cc8d3b2 100644 --- a/Opsi/Cmdlets/New-OCIOpsiDatabaseInsight.cs +++ b/Opsi/Cmdlets/New-OCIOpsiDatabaseInsight.cs @@ -19,7 +19,7 @@ namespace Oci.OpsiService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.OpsiService.Models.DatabaseInsight), typeof(Oci.OpsiService.Responses.CreateDatabaseInsightResponse) })] public class NewOCIOpsiDatabaseInsight : OCIOperationsInsightsCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the database for which a Database Insight resource will be created in Operations Insights. This parameter also accepts subtypes , , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the database for which a Database Insight resource will be created in Operations Insights. This parameter also accepts subtypes , , , of type .")] public CreateDatabaseInsightDetails CreateDatabaseInsightDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. diff --git a/Opsi/Cmdlets/New-OCIOpsiExadataInsight.cs b/Opsi/Cmdlets/New-OCIOpsiExadataInsight.cs index 3573f2136..3f096291f 100644 --- a/Opsi/Cmdlets/New-OCIOpsiExadataInsight.cs +++ b/Opsi/Cmdlets/New-OCIOpsiExadataInsight.cs @@ -19,7 +19,7 @@ namespace Oci.OpsiService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.OpsiService.Models.ExadataInsight), typeof(Oci.OpsiService.Responses.CreateExadataInsightResponse) })] public class NewOCIOpsiExadataInsight : OCIOperationsInsightsCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the Exadata system for which an Exadata insight resource will be created in Operations Insights. This parameter also accepts subtypes , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the Exadata system for which an Exadata insight resource will be created in Operations Insights. This parameter also accepts subtypes , , of type .")] public CreateExadataInsightDetails CreateExadataInsightDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request that can be retried in case of a timeout or server error without risk of executing the same action again. Retry tokens expire after 24 hours. diff --git a/Opsi/Cmdlets/Update-OCIOpsiDatabaseInsight.cs b/Opsi/Cmdlets/Update-OCIOpsiDatabaseInsight.cs index 1786bcb40..66dcb5ef6 100644 --- a/Opsi/Cmdlets/Update-OCIOpsiDatabaseInsight.cs +++ b/Opsi/Cmdlets/Update-OCIOpsiDatabaseInsight.cs @@ -22,7 +22,7 @@ public class UpdateOCIOpsiDatabaseInsight : OCIOperationsInsightsCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique database insight identifier")] public string DatabaseInsightId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration to be updated. This parameter also accepts subtypes , , , , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration to be updated. This parameter also accepts subtypes , , , , , of type .")] public UpdateDatabaseInsightDetails UpdateDatabaseInsightDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] diff --git a/Opsi/Cmdlets/Update-OCIOpsiExadataInsight.cs b/Opsi/Cmdlets/Update-OCIOpsiExadataInsight.cs index a5fe76733..646aa74e6 100644 --- a/Opsi/Cmdlets/Update-OCIOpsiExadataInsight.cs +++ b/Opsi/Cmdlets/Update-OCIOpsiExadataInsight.cs @@ -22,7 +22,7 @@ public class UpdateOCIOpsiExadataInsight : OCIOperationsInsightsCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Exadata insight identifier")] public string ExadataInsightId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration to be updated. This parameter also accepts subtypes , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration to be updated. This parameter also accepts subtypes , , of type .")] public UpdateExadataInsightDetails UpdateExadataInsightDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] diff --git a/Opsi/Cmdlets/Update-OCIOpsiHostInsight.cs b/Opsi/Cmdlets/Update-OCIOpsiHostInsight.cs index 10dbd0da4..19c011b02 100644 --- a/Opsi/Cmdlets/Update-OCIOpsiHostInsight.cs +++ b/Opsi/Cmdlets/Update-OCIOpsiHostInsight.cs @@ -22,7 +22,7 @@ public class UpdateOCIOpsiHostInsight : OCIOperationsInsightsCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique host insight identifier")] public string HostInsightId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration to be updated. This parameter also accepts subtypes , , , of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration to be updated. This parameter also accepts subtypes , , , , of type .")] public UpdateHostInsightDetails UpdateHostInsightDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` parameter to the value of the etag from a previous get, create, or update response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] diff --git a/Opsi/OCI.PSModules.Opsi.psd1 b/Opsi/OCI.PSModules.Opsi.psd1 index 77afe12ac..a1a84fa5e 100644 --- a/Opsi/OCI.PSModules.Opsi.psd1 +++ b/Opsi/OCI.PSModules.Opsi.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Opsi.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opsi.dll' @@ -180,6 +180,7 @@ CmdletsToExport = 'Add-OCIOpsiExadataInsightMembers', 'Invoke-OCIOpsiSummarizeSqlStatistics', 'Invoke-OCIOpsiSummarizeSqlStatisticsTimeSeries', 'Invoke-OCIOpsiSummarizeSqlStatisticsTimeSeriesByPlan', + 'Invoke-OCIOpsiTestMacsManagedCloudDatabaseInsightConnection', 'Move-OCIOpsiAutonomousDatabaseInsightAdvancedFeatures', 'Move-OCIOpsiAwrHubSourceCompartment', 'Move-OCIOpsiConfigurationCompartment', @@ -187,6 +188,7 @@ CmdletsToExport = 'Add-OCIOpsiExadataInsightMembers', 'Move-OCIOpsiEnterpriseManagerBridgeCompartment', 'Move-OCIOpsiExadataInsightCompartment', 'Move-OCIOpsiHostInsightCompartment', + 'Move-OCIOpsiMacsManagedCloudDatabaseInsightConnection', 'Move-OCIOpsiNewsReportCompartment', 'Move-OCIOpsiOperationsInsightsPrivateEndpointCompartment', 'Move-OCIOpsiOperationsInsightsWarehouseCompartment', diff --git a/Optimizer/OCI.PSModules.Optimizer.psd1 b/Optimizer/OCI.PSModules.Optimizer.psd1 index 57193a2f3..3020d214f 100644 --- a/Optimizer/OCI.PSModules.Optimizer.psd1 +++ b/Optimizer/OCI.PSModules.Optimizer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Optimizer.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 f89fb7b13..85e1c670b 100644 --- a/Osmanagement/OCI.PSModules.Osmanagement.psd1 +++ b/Osmanagement/OCI.PSModules.Osmanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osmanagement.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagement.dll' diff --git a/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 b/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 index 630825738..17ffd2d94 100644 --- a/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 +++ b/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osmanagementhub.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagementhub.dll' diff --git a/Ospgateway/OCI.PSModules.Ospgateway.psd1 b/Ospgateway/OCI.PSModules.Ospgateway.psd1 index 2a6849753..185e6fc31 100644 --- a/Ospgateway/OCI.PSModules.Ospgateway.psd1 +++ b/Ospgateway/OCI.PSModules.Ospgateway.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ospgateway.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ospgateway.dll' diff --git a/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 b/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 index 7eeba5422..70cbedacd 100644 --- a/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 +++ b/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osubbillingschedule.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osubbillingschedule.dll' diff --git a/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 b/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 index bfb8bde71..1f6764b05 100644 --- a/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 +++ b/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osuborganizationsubscription.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osuborganizationsubscription.dll' diff --git a/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 b/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 index 37d244b88..312782469 100644 --- a/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 +++ b/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osubsubscription.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osubsubscription.dll' diff --git a/Osubusage/OCI.PSModules.Osubusage.psd1 b/Osubusage/OCI.PSModules.Osubusage.psd1 index 2bf32435a..cd983763e 100644 --- a/Osubusage/OCI.PSModules.Osubusage.psd1 +++ b/Osubusage/OCI.PSModules.Osubusage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osubusage.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osubusage.dll' diff --git a/PSModules/OCI.PSModules.psd1 b/PSModules/OCI.PSModules.psd1 index 878ac230e..55d6c51de 100644 --- a/PSModules/OCI.PSModules.psd1 +++ b/PSModules/OCI.PSModules.psd1 @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -51,149 +51,153 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Accessgovernancecp'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aidocument'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Capacitymanagement'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudbridge'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudmigrations'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Clusterplacementgroups'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Computecloudatcustomer'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Containerinstances'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Delegateaccesscontrol'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Demandsignal'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Desktops'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Disasterrecovery'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Emaildataplane'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Fleetappsmanagement'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Fleetsoftwareupdate'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Fusionapps'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Generativeai'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Generativeaiinference'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Globallydistributeddatabase'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identitydomains'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Jmsjavadownloads'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Lockbox'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Marketplaceprivateoffer'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Marketplacepublisher'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Mediaservices'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ocicontrolcenter'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opa'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opensearch'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osmanagementhub'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Psql'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Queue'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Recovery'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Redis'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcescheduler'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vbsinst'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '91.0.0'; }, - @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Accessgovernancecp'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Aidocument'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Capacitymanagement'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudbridge'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudmigrations'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Clusterplacementgroups'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Computecloudatcustomer'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Containerinstances'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Delegateaccesscontrol'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Demandsignal'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Desktops'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Disasterrecovery'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Emaildataplane'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Fleetappsmanagement'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Fleetsoftwareupdate'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Fusionapps'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Generativeai'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Generativeaiagent'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Generativeaiagentruntime'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Generativeaiinference'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Globallydistributeddatabase'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Identitydomains'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Jmsjavadownloads'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Lockbox'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplaceprivateoffer'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplacepublisher'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Mediaservices'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ocicontrolcenter'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Opa'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Opensearch'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osmanagementhub'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Psql'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Queue'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Recovery'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Redis'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcescheduler'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Securityattribute'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vbsinst'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '91.1.0'; }, + @{ModuleName = 'OCI.PSModules.Zpr'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() diff --git a/Psql/OCI.PSModules.Psql.psd1 b/Psql/OCI.PSModules.Psql.psd1 index 0b24abe8f..70f367484 100644 --- a/Psql/OCI.PSModules.Psql.psd1 +++ b/Psql/OCI.PSModules.Psql.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Psql.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Psql.dll' diff --git a/Queue/OCI.PSModules.Queue.psd1 b/Queue/OCI.PSModules.Queue.psd1 index 5ad2288d5..074aa7dce 100644 --- a/Queue/OCI.PSModules.Queue.psd1 +++ b/Queue/OCI.PSModules.Queue.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Queue.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Queue.dll' diff --git a/Recovery/OCI.PSModules.Recovery.psd1 b/Recovery/OCI.PSModules.Recovery.psd1 index 6a16356b1..a720ca3fc 100644 --- a/Recovery/OCI.PSModules.Recovery.psd1 +++ b/Recovery/OCI.PSModules.Recovery.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Recovery.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Recovery.dll' diff --git a/Redis/OCI.PSModules.Redis.psd1 b/Redis/OCI.PSModules.Redis.psd1 index 6878d87cc..18c05fd5f 100644 --- a/Redis/OCI.PSModules.Redis.psd1 +++ b/Redis/OCI.PSModules.Redis.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Redis.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Redis.dll' diff --git a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 index 5a98af389..12a4b08b8 100644 --- a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 +++ b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcemanager.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcemanager.dll' diff --git a/Resourcescheduler/OCI.PSModules.Resourcescheduler.psd1 b/Resourcescheduler/OCI.PSModules.Resourcescheduler.psd1 index 7cc516110..2222b08d9 100644 --- a/Resourcescheduler/OCI.PSModules.Resourcescheduler.psd1 +++ b/Resourcescheduler/OCI.PSModules.Resourcescheduler.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcescheduler.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcescheduler.dll' diff --git a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 index 85b396414..54b94687f 100644 --- a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 +++ b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcesearch.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcesearch.dll' diff --git a/Rover/OCI.PSModules.Rover.psd1 b/Rover/OCI.PSModules.Rover.psd1 index 8cfedfc62..17ace86dc 100644 --- a/Rover/OCI.PSModules.Rover.psd1 +++ b/Rover/OCI.PSModules.Rover.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Rover.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Rover.dll' diff --git a/Sch/OCI.PSModules.Sch.psd1 b/Sch/OCI.PSModules.Sch.psd1 index 8a5ff38e4..0c7dcb3bb 100644 --- a/Sch/OCI.PSModules.Sch.psd1 +++ b/Sch/OCI.PSModules.Sch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Sch.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 3e998d8bc..dd33fd9b9 100644 --- a/Secrets/OCI.PSModules.Secrets.psd1 +++ b/Secrets/OCI.PSModules.Secrets.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Secrets.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Secrets.dll' diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattribute.cs b/Securityattribute/Cmdlets/Get-OCISecurityattribute.cs new file mode 100644 index 000000000..5390a5222 --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattribute.cs @@ -0,0 +1,105 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattribute", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttribute), typeof(Oci.SecurityattributeService.Responses.GetSecurityAttributeResponse) })] + public class GetOCISecurityattribute : OCISecurityAttributeCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.", ParameterSetName = Default)] + public string SecurityAttributeNamespaceId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the security attribute.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the security attribute.", ParameterSetName = Default)] + public string SecurityAttributeName { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.SecurityattributeService.Models.SecurityAttribute.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(); + GetSecurityAttributeRequest request; + + try + { + request = new GetSecurityAttributeRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + SecurityAttributeName = SecurityAttributeName, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetSecurityAttributeRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForSecurityAttribute(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetSecurityAttribute(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.SecurityAttribute); + } + + private GetSecurityAttributeResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattributeNamespace.cs b/Securityattribute/Cmdlets/Get-OCISecurityattributeNamespace.cs new file mode 100644 index 000000000..667ed1c1f --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattributeNamespace.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattributeNamespace", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeNamespace), typeof(Oci.SecurityattributeService.Responses.GetSecurityAttributeNamespaceResponse) })] + public class GetOCISecurityattributeNamespace : OCISecurityAttributeCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.", ParameterSetName = Default)] + public string SecurityAttributeNamespaceId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.SecurityattributeService.Models.SecurityAttributeNamespace.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(); + GetSecurityAttributeNamespaceRequest request; + + try + { + request = new GetSecurityAttributeNamespaceRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetSecurityAttributeNamespaceRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForSecurityAttributeNamespace(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetSecurityAttributeNamespace(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.SecurityAttributeNamespace); + } + + private GetSecurityAttributeNamespaceResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattributeNamespacesList.cs b/Securityattribute/Cmdlets/Get-OCISecurityattributeNamespacesList.cs new file mode 100644 index 000000000..a6f1ca091 --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattributeNamespacesList.cs @@ -0,0 +1,118 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattributeNamespacesList")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeNamespaceSummary), typeof(Oci.SecurityattributeService.Responses.ListSecurityAttributeNamespacesResponse) })] + public class GetOCISecurityattributeNamespacesList : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous ""List"" call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated ""List"" call.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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 TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive. + +**Note:** In general, some ""List"" operations (for example, `ListInstances`) let you optionally filter by Availability Domain if the scope of the resource type is within a single Availability Domain. If you call one of these ""List"" operations without specifying an Availability Domain, the resources are grouped by Availability Domain, then sorted.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string Name { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An optional boolean parameter indicating whether to retrieve all security attribute namespaces in subcompartments. If this parameter is not specified, only the namespaces defined in the specified compartment are retrieved.")] + public System.Nullable CompartmentIdInSubtree { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.")] + public System.Nullable LifecycleState { 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(); + ListSecurityAttributeNamespacesRequest request; + + try + { + request = new ListSecurityAttributeNamespacesRequest + { + CompartmentId = CompartmentId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder, + SortBy = SortBy, + Name = Name, + OpcRequestId = OpcRequestId, + CompartmentIdInSubtree = CompartmentIdInSubtree, + LifecycleState = LifecycleState + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.Items, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListSecurityAttributeNamespacesRequest request) => Enumerable.Repeat(client.ListSecurityAttributeNamespaces(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSecurityAttributeNamespacesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSecurityAttributeNamespacesResponse response; + private delegate IEnumerable RequestDelegate(ListSecurityAttributeNamespacesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequest.cs b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequest.cs new file mode 100644 index 000000000..a09da07d7 --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattributeWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeWorkRequest), typeof(Oci.SecurityattributeService.Responses.GetSecurityAttributeWorkRequestResponse) })] + public class GetOCISecurityattributeWorkRequest : OCISecurityAttributeCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the work request.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the work request.", ParameterSetName = Default)] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = StatusParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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 Oci.SecurityattributeService.Models.WorkRequestStatus[] 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(); + GetSecurityAttributeWorkRequestRequest request; + + try + { + request = new GetSecurityAttributeWorkRequestRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetSecurityAttributeWorkRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForSecurityAttributeWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.GetSecurityAttributeWorkRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.SecurityAttributeWorkRequest); + } + + private GetSecurityAttributeWorkRequestResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestErrorsList.cs b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestErrorsList.cs new file mode 100644 index 000000000..492f140c2 --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestErrorsList.cs @@ -0,0 +1,96 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattributeWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeWorkRequestErrorSummary), typeof(Oci.SecurityattributeService.Responses.ListSecurityAttributeWorkRequestErrorsResponse) })] + public class GetOCISecurityattributeWorkRequestErrorsList : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the work request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous ""List"" call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated ""List"" call.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListSecurityAttributeWorkRequestErrorsRequest request; + + try + { + request = new ListSecurityAttributeWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.Items, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListSecurityAttributeWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListSecurityAttributeWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSecurityAttributeWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSecurityAttributeWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListSecurityAttributeWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestLogsList.cs b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestLogsList.cs new file mode 100644 index 000000000..e0287af8b --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestLogsList.cs @@ -0,0 +1,96 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattributeWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeWorkRequestLogSummary), typeof(Oci.SecurityattributeService.Responses.ListSecurityAttributeWorkRequestLogsResponse) })] + public class GetOCISecurityattributeWorkRequestLogsList : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the work request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous ""List"" call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated ""List"" call.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListSecurityAttributeWorkRequestLogsRequest request; + + try + { + request = new ListSecurityAttributeWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.Items, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListSecurityAttributeWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListSecurityAttributeWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSecurityAttributeWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSecurityAttributeWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListSecurityAttributeWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestsList.cs b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestsList.cs new file mode 100644 index 000000000..5a93a957f --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattributeWorkRequestsList.cs @@ -0,0 +1,100 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattributeWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeWorkRequestSummary), typeof(Oci.SecurityattributeService.Responses.ListSecurityAttributeWorkRequestsResponse) })] + public class GetOCISecurityattributeWorkRequestsList : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous ""List"" call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated ""List"" call.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The identifier of the resource the work request affects.")] + public string ResourceIdentifier { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListSecurityAttributeWorkRequestsRequest request; + + try + { + request = new ListSecurityAttributeWorkRequestsRequest + { + CompartmentId = CompartmentId, + Page = Page, + Limit = Limit, + ResourceIdentifier = ResourceIdentifier, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.Items, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListSecurityAttributeWorkRequestsRequest request) => Enumerable.Repeat(client.ListSecurityAttributeWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSecurityAttributeWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSecurityAttributeWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListSecurityAttributeWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Securityattribute/Cmdlets/Get-OCISecurityattributesList.cs b/Securityattribute/Cmdlets/Get-OCISecurityattributesList.cs new file mode 100644 index 000000000..102fa8f9b --- /dev/null +++ b/Securityattribute/Cmdlets/Get-OCISecurityattributesList.cs @@ -0,0 +1,100 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Get", "OCISecurityattributesList")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeSummary), typeof(Oci.SecurityattributeService.Responses.ListSecurityAttributesResponse) })] + public class GetOCISecurityattributesList : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous ""List"" call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated ""List"" call.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.")] + public System.Nullable LifecycleState { 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(); + ListSecurityAttributesRequest request; + + try + { + request = new ListSecurityAttributesRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId, + LifecycleState = LifecycleState + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.Items, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListSecurityAttributesRequest request) => Enumerable.Repeat(client.ListSecurityAttributes(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSecurityAttributesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSecurityAttributesResponse response; + private delegate IEnumerable RequestDelegate(ListSecurityAttributesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Securityattribute/Cmdlets/Invoke-OCISecurityattributeBulkDeleteSecurityAttributes.cs b/Securityattribute/Cmdlets/Invoke-OCISecurityattributeBulkDeleteSecurityAttributes.cs new file mode 100644 index 000000000..dd071f723 --- /dev/null +++ b/Securityattribute/Cmdlets/Invoke-OCISecurityattributeBulkDeleteSecurityAttributes.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Invoke", "OCISecurityattributeBulkDeleteSecurityAttributes")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.SecurityattributeService.Responses.BulkDeleteSecurityAttributesResponse) })] + public class InvokeOCISecurityattributeBulkDeleteSecurityAttributes : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for deleting security attributes in bulk.")] + public BulkDeleteSecurityAttributesDetails BulkDeleteSecurityAttributesDetails { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + BulkDeleteSecurityAttributesRequest request; + + try + { + request = new BulkDeleteSecurityAttributesRequest + { + BulkDeleteSecurityAttributesDetails = BulkDeleteSecurityAttributesDetails, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.BulkDeleteSecurityAttributes(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private BulkDeleteSecurityAttributesResponse response; + } +} diff --git a/Securityattribute/Cmdlets/Invoke-OCISecurityattributeBulkEditSecurityAttributes.cs b/Securityattribute/Cmdlets/Invoke-OCISecurityattributeBulkEditSecurityAttributes.cs new file mode 100644 index 000000000..3ddfa6886 --- /dev/null +++ b/Securityattribute/Cmdlets/Invoke-OCISecurityattributeBulkEditSecurityAttributes.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Invoke", "OCISecurityattributeBulkEditSecurityAttributes")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.SecurityattributeService.Responses.BulkEditSecurityAttributesResponse) })] + public class InvokeOCISecurityattributeBulkEditSecurityAttributes : OCISecurityAttributeCmdlet + { + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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 request object for bulk editing security attributes on resources in the compartment.")] + public BulkEditSecurityAttributeDetails BulkEditSecurityAttributeDetails { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + BulkEditSecurityAttributesRequest request; + + try + { + request = new BulkEditSecurityAttributesRequest + { + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken, + BulkEditSecurityAttributeDetails = BulkEditSecurityAttributeDetails + }; + + response = client.BulkEditSecurityAttributes(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private BulkEditSecurityAttributesResponse response; + } +} diff --git a/Securityattribute/Cmdlets/Invoke-OCISecurityattributeCascadingDeleteSecurityAttributeNamespace.cs b/Securityattribute/Cmdlets/Invoke-OCISecurityattributeCascadingDeleteSecurityAttributeNamespace.cs new file mode 100644 index 000000000..b1a917ce0 --- /dev/null +++ b/Securityattribute/Cmdlets/Invoke-OCISecurityattributeCascadingDeleteSecurityAttributeNamespace.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Invoke", "OCISecurityattributeCascadingDeleteSecurityAttributeNamespace")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.SecurityattributeService.Responses.CascadingDeleteSecurityAttributeNamespaceResponse) })] + public class InvokeOCISecurityattributeCascadingDeleteSecurityAttributeNamespace : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + CascadingDeleteSecurityAttributeNamespaceRequest request; + + try + { + request = new CascadingDeleteSecurityAttributeNamespaceRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CascadingDeleteSecurityAttributeNamespace(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CascadingDeleteSecurityAttributeNamespaceResponse response; + } +} diff --git a/Securityattribute/Cmdlets/Move-OCISecurityattributeNamespaceCompartment.cs b/Securityattribute/Cmdlets/Move-OCISecurityattributeNamespaceCompartment.cs new file mode 100644 index 000000000..8edfccf7e --- /dev/null +++ b/Securityattribute/Cmdlets/Move-OCISecurityattributeNamespaceCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Move", "OCISecurityattributeNamespaceCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.SecurityattributeService.Responses.ChangeSecurityAttributeNamespaceCompartmentResponse) })] + public class MoveOCISecurityattributeNamespaceCompartment : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for changing the compartment of a security attribute namespace.")] + public ChangeSecurityAttributeNamespaceCompartmentDetails ChangeSecurityAttributeNamespaceCompartmentDetails { 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 running 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 removed 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 = @"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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeSecurityAttributeNamespaceCompartmentRequest request; + + try + { + request = new ChangeSecurityAttributeNamespaceCompartmentRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + ChangeSecurityAttributeNamespaceCompartmentDetails = ChangeSecurityAttributeNamespaceCompartmentDetails, + OpcRetryToken = OpcRetryToken, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeSecurityAttributeNamespaceCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeSecurityAttributeNamespaceCompartmentResponse response; + } +} diff --git a/Securityattribute/Cmdlets/New-OCISecurityattribute.cs b/Securityattribute/Cmdlets/New-OCISecurityattribute.cs new file mode 100644 index 000000000..d7642516b --- /dev/null +++ b/Securityattribute/Cmdlets/New-OCISecurityattribute.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("New", "OCISecurityattribute")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttribute), typeof(Oci.SecurityattributeService.Responses.CreateSecurityAttributeResponse) })] + public class NewOCISecurityattribute : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for creating a new security attribute in the specified security attribute namespace.")] + public CreateSecurityAttributeDetails CreateSecurityAttributeDetails { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + CreateSecurityAttributeRequest request; + + try + { + request = new CreateSecurityAttributeRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + CreateSecurityAttributeDetails = CreateSecurityAttributeDetails, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateSecurityAttribute(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SecurityAttribute); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateSecurityAttributeResponse response; + } +} diff --git a/Securityattribute/Cmdlets/New-OCISecurityattributeNamespace.cs b/Securityattribute/Cmdlets/New-OCISecurityattributeNamespace.cs new file mode 100644 index 000000000..4566ab93b --- /dev/null +++ b/Securityattribute/Cmdlets/New-OCISecurityattributeNamespace.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("New", "OCISecurityattributeNamespace")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeNamespace), typeof(Oci.SecurityattributeService.Responses.CreateSecurityAttributeNamespaceResponse) })] + public class NewOCISecurityattributeNamespace : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for creating a new security attribute namespace.")] + public CreateSecurityAttributeNamespaceDetails CreateSecurityAttributeNamespaceDetails { 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 running 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 removed 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateSecurityAttributeNamespaceRequest request; + + try + { + request = new CreateSecurityAttributeNamespaceRequest + { + CreateSecurityAttributeNamespaceDetails = CreateSecurityAttributeNamespaceDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateSecurityAttributeNamespace(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SecurityAttributeNamespace); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateSecurityAttributeNamespaceResponse response; + } +} diff --git a/Securityattribute/Cmdlets/OCISecurityAttributeCmdlet.cs b/Securityattribute/Cmdlets/OCISecurityAttributeCmdlet.cs new file mode 100644 index 000000000..fce3ade7a --- /dev/null +++ b/Securityattribute/Cmdlets/OCISecurityAttributeCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService; + +namespace Oci.SecurityattributeService.Cmdlets +{ + public abstract class OCISecurityAttributeCmdlet : 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 SecurityAttributeClient(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 SecurityAttributeClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Securityattribute/Cmdlets/Remove-OCISecurityattribute.cs b/Securityattribute/Cmdlets/Remove-OCISecurityattribute.cs new file mode 100644 index 000000000..f2f775e60 --- /dev/null +++ b/Securityattribute/Cmdlets/Remove-OCISecurityattribute.cs @@ -0,0 +1,84 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Remove", "OCISecurityattribute", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.SecurityattributeService.Responses.DeleteSecurityAttributeResponse) })] + public class RemoveOCISecurityattribute : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the security attribute.")] + public string SecurityAttributeName { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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 = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCISecurityattribute", "Remove")) + { + return; + } + + DeleteSecurityAttributeRequest request; + + try + { + request = new DeleteSecurityAttributeRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + SecurityAttributeName = SecurityAttributeName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteSecurityAttribute(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteSecurityAttributeResponse response; + } +} diff --git a/Securityattribute/Cmdlets/Remove-OCISecurityattributeNamespace.cs b/Securityattribute/Cmdlets/Remove-OCISecurityattributeNamespace.cs new file mode 100644 index 000000000..3690cf129 --- /dev/null +++ b/Securityattribute/Cmdlets/Remove-OCISecurityattributeNamespace.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Remove", "OCISecurityattributeNamespace", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.SecurityattributeService.Responses.DeleteSecurityAttributeNamespaceResponse) })] + public class RemoveOCISecurityattributeNamespace : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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 = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCISecurityattributeNamespace", "Remove")) + { + return; + } + + DeleteSecurityAttributeNamespaceRequest request; + + try + { + request = new DeleteSecurityAttributeNamespaceRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteSecurityAttributeNamespace(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteSecurityAttributeNamespaceResponse response; + } +} diff --git a/Securityattribute/Cmdlets/Update-OCISecurityattribute.cs b/Securityattribute/Cmdlets/Update-OCISecurityattribute.cs new file mode 100644 index 000000000..707353698 --- /dev/null +++ b/Securityattribute/Cmdlets/Update-OCISecurityattribute.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Update", "OCISecurityattribute")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttribute), typeof(Oci.SecurityattributeService.Responses.UpdateSecurityAttributeResponse) })] + public class UpdateOCISecurityattribute : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the security attribute.")] + public string SecurityAttributeName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for updating a security attribute.")] + public UpdateSecurityAttributeDetails UpdateSecurityAttributeDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + UpdateSecurityAttributeRequest request; + + try + { + request = new UpdateSecurityAttributeRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + SecurityAttributeName = SecurityAttributeName, + UpdateSecurityAttributeDetails = UpdateSecurityAttributeDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.UpdateSecurityAttribute(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SecurityAttribute); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateSecurityAttributeResponse response; + } +} diff --git a/Securityattribute/Cmdlets/Update-OCISecurityattributeNamespace.cs b/Securityattribute/Cmdlets/Update-OCISecurityattributeNamespace.cs new file mode 100644 index 000000000..bb9792843 --- /dev/null +++ b/Securityattribute/Cmdlets/Update-OCISecurityattributeNamespace.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240815 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.SecurityattributeService.Requests; +using Oci.SecurityattributeService.Responses; +using Oci.SecurityattributeService.Models; +using Oci.Common.Model; + +namespace Oci.SecurityattributeService.Cmdlets +{ + [Cmdlet("Update", "OCISecurityattributeNamespace")] + [OutputType(new System.Type[] { typeof(Oci.SecurityattributeService.Models.SecurityAttributeNamespace), typeof(Oci.SecurityattributeService.Responses.UpdateSecurityAttributeNamespaceResponse) })] + public class UpdateOCISecurityattributeNamespace : OCISecurityAttributeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the security attribute namespace.")] + public string SecurityAttributeNamespaceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for updating a namespace.")] + public UpdateSecurityAttributeNamespaceDetails UpdateSecurityAttributeNamespaceDetails { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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(); + UpdateSecurityAttributeNamespaceRequest request; + + try + { + request = new UpdateSecurityAttributeNamespaceRequest + { + SecurityAttributeNamespaceId = SecurityAttributeNamespaceId, + UpdateSecurityAttributeNamespaceDetails = UpdateSecurityAttributeNamespaceDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.UpdateSecurityAttributeNamespace(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SecurityAttributeNamespace); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateSecurityAttributeNamespaceResponse response; + } +} diff --git a/Securityattribute/OCI.PSModules.Securityattribute.csproj b/Securityattribute/OCI.PSModules.Securityattribute.csproj new file mode 100644 index 000000000..58e413be7 --- /dev/null +++ b/Securityattribute/OCI.PSModules.Securityattribute.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Securityattribute + OCI.PSModules.Securityattribute + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Securityattribute + Securityattribute Service + + + + + + + + + + + diff --git a/Securityattribute/OCI.PSModules.Securityattribute.psd1 b/Securityattribute/OCI.PSModules.Securityattribute.psd1 new file mode 100644 index 000000000..51d198485 --- /dev/null +++ b/Securityattribute/OCI.PSModules.Securityattribute.psd1 @@ -0,0 +1,146 @@ +# +# Module manifest for module 'OCI.PSModules.Securityattribute' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Securityattribute.dll' + +# Version number of this module. +ModuleVersion = '91.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '1991c828-0f7e-4e32-965b-4adc229091dc' + +# 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 Securityattribute 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 = '91.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Securityattribute.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-OCISecurityattribute', 'Get-OCISecurityattributeNamespace', + 'Get-OCISecurityattributeNamespacesList', + 'Get-OCISecurityattributesList', + 'Get-OCISecurityattributeWorkRequest', + 'Get-OCISecurityattributeWorkRequestErrorsList', + 'Get-OCISecurityattributeWorkRequestLogsList', + 'Get-OCISecurityattributeWorkRequestsList', + 'Invoke-OCISecurityattributeBulkDeleteSecurityAttributes', + 'Invoke-OCISecurityattributeBulkEditSecurityAttributes', + 'Invoke-OCISecurityattributeCascadingDeleteSecurityAttributeNamespace', + 'Move-OCISecurityattributeNamespaceCompartment', + 'New-OCISecurityattribute', 'New-OCISecurityattributeNamespace', + 'Remove-OCISecurityattribute', + 'Remove-OCISecurityattributeNamespace', + 'Update-OCISecurityattribute', + 'Update-OCISecurityattributeNamespace' + +# 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','Securityattribute' + + # 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/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 b/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 index 24c1e80f1..81c878757 100644 --- a/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 +++ b/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Servicecatalog.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Servicecatalog.dll' diff --git a/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 b/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 index d48614d44..dac87e1ac 100644 --- a/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 +++ b/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Servicemanagerproxy.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Servicemanagerproxy.dll' diff --git a/Servicemesh/OCI.PSModules.Servicemesh.psd1 b/Servicemesh/OCI.PSModules.Servicemesh.psd1 index e0ef77f7b..cfba344bd 100644 --- a/Servicemesh/OCI.PSModules.Servicemesh.psd1 +++ b/Servicemesh/OCI.PSModules.Servicemesh.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Servicemesh.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Servicemesh.dll' diff --git a/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 b/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 index be4eccb58..0a467493f 100644 --- a/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 +++ b/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Stackmonitoring.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Stackmonitoring.dll' diff --git a/Streaming/OCI.PSModules.Streaming.psd1 b/Streaming/OCI.PSModules.Streaming.psd1 index 89f8d4d06..fa5e6a0b0 100644 --- a/Streaming/OCI.PSModules.Streaming.psd1 +++ b/Streaming/OCI.PSModules.Streaming.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Streaming.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 2839177f7..fed74e6a1 100644 --- a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 +++ b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Tenantmanagercontrolplane.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Tenantmanagercontrolplane.dll' diff --git a/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 b/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 index f5bb77e53..6b8fb7e87 100644 --- a/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 +++ b/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Threatintelligence.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Threatintelligence.dll' diff --git a/Usage/OCI.PSModules.Usage.psd1 b/Usage/OCI.PSModules.Usage.psd1 index 5ac877f4e..8d799319f 100644 --- a/Usage/OCI.PSModules.Usage.psd1 +++ b/Usage/OCI.PSModules.Usage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Usage.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Usage.dll' diff --git a/Usageapi/OCI.PSModules.Usageapi.psd1 b/Usageapi/OCI.PSModules.Usageapi.psd1 index e0d1d8ede..c30d3f36f 100644 --- a/Usageapi/OCI.PSModules.Usageapi.psd1 +++ b/Usageapi/OCI.PSModules.Usageapi.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Usageapi.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.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 1bfc5c2ba..809be87e4 100644 --- a/Vault/OCI.PSModules.Vault.psd1 +++ b/Vault/OCI.PSModules.Vault.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vault.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vault.dll' diff --git a/Vbsinst/OCI.PSModules.Vbsinst.psd1 b/Vbsinst/OCI.PSModules.Vbsinst.psd1 index 83bc7f2f7..d22090041 100644 --- a/Vbsinst/OCI.PSModules.Vbsinst.psd1 +++ b/Vbsinst/OCI.PSModules.Vbsinst.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vbsinst.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vbsinst.dll' diff --git a/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 b/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 index ffcc8c5d4..b5cc33910 100644 --- a/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 +++ b/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Visualbuilder.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Visualbuilder.dll' diff --git a/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 b/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 index d7265c1e4..3e85b8039 100644 --- a/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 +++ b/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vnmonitoring.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vnmonitoring.dll' diff --git a/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 b/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 index 49d128be4..dec64a22b 100644 --- a/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 +++ b/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vulnerabilityscanning.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vulnerabilityscanning.dll' diff --git a/Waa/OCI.PSModules.Waa.psd1 b/Waa/OCI.PSModules.Waa.psd1 index eaa44aaa2..8ac15fcdc 100644 --- a/Waa/OCI.PSModules.Waa.psd1 +++ b/Waa/OCI.PSModules.Waa.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Waa.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waa.dll' diff --git a/Waas/OCI.PSModules.Waas.psd1 b/Waas/OCI.PSModules.Waas.psd1 index 607dad742..177387444 100644 --- a/Waas/OCI.PSModules.Waas.psd1 +++ b/Waas/OCI.PSModules.Waas.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Waas.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waas.dll' diff --git a/Waf/OCI.PSModules.Waf.psd1 b/Waf/OCI.PSModules.Waf.psd1 index d39237e5b..747a86ea6 100644 --- a/Waf/OCI.PSModules.Waf.psd1 +++ b/Waf/OCI.PSModules.Waf.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Waf.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waf.dll' diff --git a/Workrequests/OCI.PSModules.Workrequests.psd1 b/Workrequests/OCI.PSModules.Workrequests.psd1 index 6f2c5817e..1816231ad 100644 --- a/Workrequests/OCI.PSModules.Workrequests.psd1 +++ b/Workrequests/OCI.PSModules.Workrequests.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Workrequests.dll' # Version number of this module. -ModuleVersion = '91.0.0' +ModuleVersion = '91.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,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 = '91.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '91.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Workrequests.dll' diff --git a/Zpr/Cmdlets/Get-OCIZprConfiguration.cs b/Zpr/Cmdlets/Get-OCIZprConfiguration.cs new file mode 100644 index 000000000..f3a089b6d --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprConfiguration.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprConfiguration", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.Configuration), typeof(Oci.ZprService.Responses.GetConfigurationResponse) })] + public class GetOCIZprConfiguration : OCIZprCmdlet + { + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.", ParameterSetName = Default)] + public string CompartmentId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.ZprService.Models.Configuration.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(); + GetConfigurationRequest request; + + try + { + request = new GetConfigurationRequest + { + CompartmentId = CompartmentId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetConfigurationRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForConfiguration(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetConfiguration(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Configuration); + } + + private GetConfigurationResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequest.cs b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequest.cs new file mode 100644 index 000000000..bd8637267 --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequest.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprConfigurationWorkRequest")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequest), typeof(Oci.ZprService.Responses.GetZprConfigurationWorkRequestResponse) })] + public class GetOCIZprConfigurationWorkRequest : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetZprConfigurationWorkRequestRequest request; + + try + { + request = new GetZprConfigurationWorkRequestRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId + }; + + response = client.GetZprConfigurationWorkRequest(request).GetAwaiter().GetResult(); + WriteOutput(response, response.WorkRequest); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetZprConfigurationWorkRequestResponse response; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestErrorsList.cs b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestErrorsList.cs new file mode 100644 index 000000000..98ba5c6eb --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprConfigurationWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequestErrorCollection), typeof(Oci.ZprService.Responses.ListZprConfigurationWorkRequestErrorsResponse) })] + public class GetOCIZprConfigurationWorkRequestErrorsList : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.")] + 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListZprConfigurationWorkRequestErrorsRequest request; + + try + { + request = new ListZprConfigurationWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListZprConfigurationWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListZprConfigurationWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListZprConfigurationWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListZprConfigurationWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListZprConfigurationWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestLogsList.cs b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestLogsList.cs new file mode 100644 index 000000000..c20eb45cc --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprConfigurationWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequestLogEntryCollection), typeof(Oci.ZprService.Responses.ListZprConfigurationWorkRequestLogsResponse) })] + public class GetOCIZprConfigurationWorkRequestLogsList : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.")] + 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListZprConfigurationWorkRequestLogsRequest request; + + try + { + request = new ListZprConfigurationWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListZprConfigurationWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListZprConfigurationWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListZprConfigurationWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListZprConfigurationWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListZprConfigurationWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestsList.cs b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestsList.cs new file mode 100644 index 000000000..a5aa89e83 --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprConfigurationWorkRequestsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprConfigurationWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequestSummaryCollection), typeof(Oci.ZprService.Responses.ListZprConfigurationWorkRequestsResponse) })] + public class GetOCIZprConfigurationWorkRequestsList : OCIZprCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the given lifecycle state.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.")] + public string ResourceId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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. Only one sort order may be provided. Default order for `timeAccepted` is descending.")] + public System.Nullable SortBy { 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(); + ListZprConfigurationWorkRequestsRequest request; + + try + { + request = new ListZprConfigurationWorkRequestsRequest + { + CompartmentId = CompartmentId, + WorkRequestId = WorkRequestId, + Status = Status, + ResourceId = ResourceId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestSummaryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListZprConfigurationWorkRequestsRequest request) => Enumerable.Repeat(client.ListZprConfigurationWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListZprConfigurationWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListZprConfigurationWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListZprConfigurationWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprPoliciesList.cs b/Zpr/Cmdlets/Get-OCIZprPoliciesList.cs new file mode 100644 index 000000000..386c8b55a --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprPoliciesList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprPoliciesList")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.ZprPolicyCollection), typeof(Oci.ZprService.Responses.ListZprPoliciesResponse) })] + public class GetOCIZprPoliciesList : OCIZprCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) 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 given lifecycle state. The state value is case-insensitive.")] + 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.")] + public string Name { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprPolicy.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"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 only one sort order. Default order for `timeCreated` is descending. Default order for `name` is ascending.")] + public System.Nullable SortBy { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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(); + ListZprPoliciesRequest request; + + try + { + request = new ListZprPoliciesRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + Name = Name, + Id = Id, + 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.ZprPolicyCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListZprPoliciesRequest request) => Enumerable.Repeat(client.ListZprPolicies(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListZprPoliciesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListZprPoliciesResponse response; + private delegate IEnumerable RequestDelegate(ListZprPoliciesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprPolicy.cs b/Zpr/Cmdlets/Get-OCIZprPolicy.cs new file mode 100644 index 000000000..47219ac3c --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprPolicy.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprPolicy", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.ZprPolicy), typeof(Oci.ZprService.Responses.GetZprPolicyResponse) })] + public class GetOCIZprPolicy : OCIZprCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprPolicy.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprPolicy.", ParameterSetName = Default)] + public string ZprPolicyId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", ParameterSetName = LifecycleStateParamSet)] + [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. The only valid characters for request IDs are letters, numbers, underscore, and dash.", 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.ZprService.Models.ZprPolicy.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(); + GetZprPolicyRequest request; + + try + { + request = new GetZprPolicyRequest + { + ZprPolicyId = ZprPolicyId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetZprPolicyRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForZprPolicy(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetZprPolicy(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ZprPolicy); + } + + private GetZprPolicyResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequest.cs b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequest.cs new file mode 100644 index 000000000..06498590a --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequest.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprPolicyWorkRequest")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequest), typeof(Oci.ZprService.Responses.GetZprPolicyWorkRequestResponse) })] + public class GetOCIZprPolicyWorkRequest : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetZprPolicyWorkRequestRequest request; + + try + { + request = new GetZprPolicyWorkRequestRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId + }; + + response = client.GetZprPolicyWorkRequest(request).GetAwaiter().GetResult(); + WriteOutput(response, response.WorkRequest); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetZprPolicyWorkRequestResponse response; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestErrorsList.cs b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestErrorsList.cs new file mode 100644 index 000000000..2f0099bd3 --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprPolicyWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequestErrorCollection), typeof(Oci.ZprService.Responses.ListZprPolicyWorkRequestErrorsResponse) })] + public class GetOCIZprPolicyWorkRequestErrorsList : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.")] + 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListZprPolicyWorkRequestErrorsRequest request; + + try + { + request = new ListZprPolicyWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListZprPolicyWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListZprPolicyWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListZprPolicyWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListZprPolicyWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListZprPolicyWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestLogsList.cs b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestLogsList.cs new file mode 100644 index 000000000..f7dc73dcd --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprPolicyWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequestLogEntryCollection), typeof(Oci.ZprService.Responses.ListZprPolicyWorkRequestLogsResponse) })] + public class GetOCIZprPolicyWorkRequestLogsList : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.")] + 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListZprPolicyWorkRequestLogsRequest request; + + try + { + request = new ListZprPolicyWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListZprPolicyWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListZprPolicyWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListZprPolicyWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListZprPolicyWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListZprPolicyWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestsList.cs b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestsList.cs new file mode 100644 index 000000000..a8e9aa5fa --- /dev/null +++ b/Zpr/Cmdlets/Get-OCIZprPolicyWorkRequestsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Get", "OCIZprPolicyWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.WorkRequestSummaryCollection), typeof(Oci.ZprService.Responses.ListZprPolicyWorkRequestsResponse) })] + public class GetOCIZprPolicyWorkRequestsList : OCIZprCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the given lifecycle state.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.")] + public string ResourceId { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the opc-next-page response header from the previous ""List"" call. For important details about how pagination works, 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 = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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. Only one sort order may be provided. Default order for `timeAccepted` is descending.")] + public System.Nullable SortBy { 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(); + ListZprPolicyWorkRequestsRequest request; + + try + { + request = new ListZprPolicyWorkRequestsRequest + { + CompartmentId = CompartmentId, + WorkRequestId = WorkRequestId, + Status = Status, + ResourceId = ResourceId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestSummaryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListZprPolicyWorkRequestsRequest request) => Enumerable.Repeat(client.ListZprPolicyWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListZprPolicyWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListZprPolicyWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListZprPolicyWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Zpr/Cmdlets/New-OCIZprConfiguration.cs b/Zpr/Cmdlets/New-OCIZprConfiguration.cs new file mode 100644 index 000000000..5d7965082 --- /dev/null +++ b/Zpr/Cmdlets/New-OCIZprConfiguration.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("New", "OCIZprConfiguration")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ZprService.Responses.CreateConfigurationResponse) })] + public class NewOCIZprConfiguration : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for ZPR configuration in the tenancy.")] + public CreateConfigurationDetails CreateConfigurationDetails { 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. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + 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 running 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 removed 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 = @"Indicates that the request is a dry run, if set to ""true"". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.")] + public System.Nullable OpcDryRun { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateConfigurationRequest request; + + try + { + request = new CreateConfigurationRequest + { + CreateConfigurationDetails = CreateConfigurationDetails, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken, + OpcDryRun = OpcDryRun + }; + + response = client.CreateConfiguration(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateConfigurationResponse response; + } +} diff --git a/Zpr/Cmdlets/New-OCIZprPolicy.cs b/Zpr/Cmdlets/New-OCIZprPolicy.cs new file mode 100644 index 000000000..ab7a67521 --- /dev/null +++ b/Zpr/Cmdlets/New-OCIZprPolicy.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("New", "OCIZprPolicy")] + [OutputType(new System.Type[] { typeof(Oci.ZprService.Models.ZprPolicy), typeof(Oci.ZprService.Responses.CreateZprPolicyResponse) })] + public class NewOCIZprPolicy : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new ZprPolicy.")] + public CreateZprPolicyDetails CreateZprPolicyDetails { 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 running 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 removed 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Indicates that the request is a dry run, if set to ""true"". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.")] + public System.Nullable OpcDryRun { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateZprPolicyRequest request; + + try + { + request = new CreateZprPolicyRequest + { + CreateZprPolicyDetails = CreateZprPolicyDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + OpcDryRun = OpcDryRun + }; + + response = client.CreateZprPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ZprPolicy); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateZprPolicyResponse response; + } +} diff --git a/Zpr/Cmdlets/OCIZprCmdlet.cs b/Zpr/Cmdlets/OCIZprCmdlet.cs new file mode 100644 index 000000000..78e41712d --- /dev/null +++ b/Zpr/Cmdlets/OCIZprCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService; + +namespace Oci.ZprService.Cmdlets +{ + public abstract class OCIZprCmdlet : 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 ZprClient(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 ZprClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Zpr/Cmdlets/Remove-OCIZprPolicy.cs b/Zpr/Cmdlets/Remove-OCIZprPolicy.cs new file mode 100644 index 000000000..5df87ff3a --- /dev/null +++ b/Zpr/Cmdlets/Remove-OCIZprPolicy.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Remove", "OCIZprPolicy", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ZprService.Responses.DeleteZprPolicyResponse) })] + public class RemoveOCIZprPolicy : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprPolicy.")] + public string ZprPolicyId { 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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Indicates that the request is a dry run, if set to ""true"". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.")] + public System.Nullable OpcDryRun { 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("OCIZprPolicy", "Remove")) + { + return; + } + + DeleteZprPolicyRequest request; + + try + { + request = new DeleteZprPolicyRequest + { + ZprPolicyId = ZprPolicyId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcDryRun = OpcDryRun + }; + + response = client.DeleteZprPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteZprPolicyResponse response; + } +} diff --git a/Zpr/Cmdlets/Update-OCIZprPolicy.cs b/Zpr/Cmdlets/Update-OCIZprPolicy.cs new file mode 100644 index 000000000..7960c1521 --- /dev/null +++ b/Zpr/Cmdlets/Update-OCIZprPolicy.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20240301 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2024, 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.ZprService.Requests; +using Oci.ZprService.Responses; +using Oci.ZprService.Models; +using Oci.Common.Model; + +namespace Oci.ZprService.Cmdlets +{ + [Cmdlet("Update", "OCIZprPolicy")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ZprService.Responses.UpdateZprPolicyResponse) })] + public class UpdateOCIZprPolicy : OCIZprCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprPolicy.")] + public string ZprPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateZprPolicyDetails UpdateZprPolicyDetails { 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 running 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 removed 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 = @"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 = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Indicates that the request is a dry run, if set to ""true"". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.")] + public System.Nullable OpcDryRun { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateZprPolicyRequest request; + + try + { + request = new UpdateZprPolicyRequest + { + ZprPolicyId = ZprPolicyId, + UpdateZprPolicyDetails = UpdateZprPolicyDetails, + OpcRetryToken = OpcRetryToken, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcDryRun = OpcDryRun + }; + + response = client.UpdateZprPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateZprPolicyResponse response; + } +} diff --git a/Zpr/OCI.PSModules.Zpr.csproj b/Zpr/OCI.PSModules.Zpr.csproj new file mode 100644 index 000000000..a9085d6d6 --- /dev/null +++ b/Zpr/OCI.PSModules.Zpr.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Zpr + OCI.PSModules.Zpr + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Zpr + Zpr Service + + + + + + + + + + + diff --git a/Zpr/OCI.PSModules.Zpr.psd1 b/Zpr/OCI.PSModules.Zpr.psd1 new file mode 100644 index 000000000..2696c2af2 --- /dev/null +++ b/Zpr/OCI.PSModules.Zpr.psd1 @@ -0,0 +1,139 @@ +# +# Module manifest for module 'OCI.PSModules.Zpr' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Zpr.dll' + +# Version number of this module. +ModuleVersion = '91.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'b459ec67-aded-4553-a8d7-3cd77fa65995' + +# 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 Zpr 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 = '91.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Zpr.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-OCIZprConfiguration', 'Get-OCIZprConfigurationWorkRequest', + 'Get-OCIZprConfigurationWorkRequestErrorsList', + 'Get-OCIZprConfigurationWorkRequestLogsList', + 'Get-OCIZprConfigurationWorkRequestsList', 'Get-OCIZprPoliciesList', + 'Get-OCIZprPolicy', 'Get-OCIZprPolicyWorkRequest', + 'Get-OCIZprPolicyWorkRequestErrorsList', + 'Get-OCIZprPolicyWorkRequestLogsList', + 'Get-OCIZprPolicyWorkRequestsList', 'New-OCIZprConfiguration', + 'New-OCIZprPolicy', 'Remove-OCIZprPolicy', 'Update-OCIZprPolicy' + +# 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','Zpr' + + # 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/oci-powershell-modules.sln b/oci-powershell-modules.sln index 5f9a62dd3..6d37f3ed5 100644 --- a/oci-powershell-modules.sln +++ b/oci-powershell-modules.sln @@ -291,6 +291,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Fleetappsmana EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Delegateaccesscontrol", "Delegateaccesscontrol\OCI.PSModules.Delegateaccesscontrol.csproj", "{FCA319E3-3347-4B26-8E03-74F907536FEB}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Generativeaiagent", "Generativeaiagent\OCI.PSModules.Generativeaiagent.csproj", "{ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Generativeaiagentruntime", "Generativeaiagentruntime\OCI.PSModules.Generativeaiagentruntime.csproj", "{900800A7-73FD-4CB8-9386-B4DF132452DC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Securityattribute", "Securityattribute\OCI.PSModules.Securityattribute.csproj", "{189F2F24-B183-4867-AA35-FC7050D79B0C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Zpr", "Zpr\OCI.PSModules.Zpr.csproj", "{299606DE-F26B-40FB-9E2A-3D8E343A6A40}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -2044,5 +2052,53 @@ Global {FCA319E3-3347-4B26-8E03-74F907536FEB}.Release|x64.Build.0 = Release|Any CPU {FCA319E3-3347-4B26-8E03-74F907536FEB}.Release|x86.ActiveCfg = Release|Any CPU {FCA319E3-3347-4B26-8E03-74F907536FEB}.Release|x86.Build.0 = Release|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Debug|x64.ActiveCfg = Debug|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Debug|x64.Build.0 = Debug|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Debug|x86.ActiveCfg = Debug|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Debug|x86.Build.0 = Debug|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Release|Any CPU.Build.0 = Release|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Release|x64.ActiveCfg = Release|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Release|x64.Build.0 = Release|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Release|x86.ActiveCfg = Release|Any CPU + {ABEBB5D0-0801-4CBE-B071-4A3E8964E92E}.Release|x86.Build.0 = Release|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Debug|x64.ActiveCfg = Debug|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Debug|x64.Build.0 = Debug|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Debug|x86.ActiveCfg = Debug|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Debug|x86.Build.0 = Debug|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Release|Any CPU.Build.0 = Release|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Release|x64.ActiveCfg = Release|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Release|x64.Build.0 = Release|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Release|x86.ActiveCfg = Release|Any CPU + {900800A7-73FD-4CB8-9386-B4DF132452DC}.Release|x86.Build.0 = Release|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Debug|x64.ActiveCfg = Debug|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Debug|x64.Build.0 = Debug|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Debug|x86.ActiveCfg = Debug|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Debug|x86.Build.0 = Debug|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Release|Any CPU.Build.0 = Release|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Release|x64.ActiveCfg = Release|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Release|x64.Build.0 = Release|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Release|x86.ActiveCfg = Release|Any CPU + {189F2F24-B183-4867-AA35-FC7050D79B0C}.Release|x86.Build.0 = Release|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Debug|Any CPU.Build.0 = Debug|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Debug|x64.ActiveCfg = Debug|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Debug|x64.Build.0 = Debug|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Debug|x86.ActiveCfg = Debug|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Debug|x86.Build.0 = Debug|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Release|Any CPU.ActiveCfg = Release|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Release|Any CPU.Build.0 = Release|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Release|x64.ActiveCfg = Release|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Release|x64.Build.0 = Release|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Release|x86.ActiveCfg = Release|Any CPU + {299606DE-F26B-40FB-9E2A-3D8E343A6A40}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal