From 77fd579bc6876a9749a9293f004c558225dd67e0 Mon Sep 17 00:00:00 2001 From: arunswarnam Date: Mon, 2 Nov 2020 20:37:50 +0000 Subject: [PATCH] Releasing version 1.11.0 --- Analytics/OCI.PSModules.Analytics.psd1 | 6 +- .../OCI.PSModules.Announcementsservice.psd1 | 6 +- Apigateway/OCI.PSModules.Apigateway.psd1 | 6 +- .../OCI.PSModules.Applicationmigration.psd1 | 6 +- Audit/OCI.PSModules.Audit.psd1 | 6 +- Autoscaling/OCI.PSModules.Autoscaling.psd1 | 6 +- Bds/OCI.PSModules.Bds.psd1 | 6 +- Blockchain/OCI.PSModules.Blockchain.psd1 | 6 +- Budget/OCI.PSModules.Budget.psd1 | 6 +- CHANGELOG.md | 11 ++ Cims/OCI.PSModules.Cims.psd1 | 6 +- Cloudguard/OCI.PSModules.Cloudguard.psd1 | 6 +- Common/OCI.PSModules.Common.psd1 | 4 +- Common/Version.cs | 2 +- .../OCI.PSModules.Computeinstanceagent.psd1 | 6 +- .../OCI.PSModules.Containerengine.psd1 | 6 +- Core/OCI.PSModules.Core.psd1 | 6 +- Database/OCI.PSModules.Database.psd1 | 6 +- Datacatalog/OCI.PSModules.Datacatalog.psd1 | 6 +- Dataflow/OCI.PSModules.Dataflow.psd1 | 6 +- .../OCI.PSModules.Dataintegration.psd1 | 6 +- Datasafe/OCI.PSModules.Datasafe.psd1 | 6 +- Datascience/OCI.PSModules.Datascience.psd1 | 6 +- Directory.Build.props | 2 +- Dns/OCI.PSModules.Dns.psd1 | 6 +- Dts/OCI.PSModules.Dts.psd1 | 6 +- Email/OCI.PSModules.Email.psd1 | 6 +- Events/OCI.PSModules.Events.psd1 | 6 +- Filestorage/OCI.PSModules.Filestorage.psd1 | 6 +- .../Get-OCIFunctionsApplicationsList.cs | 2 +- Functions/OCI.PSModules.Functions.psd1 | 6 +- Healthchecks/OCI.PSModules.Healthchecks.psd1 | 6 +- Identity/OCI.PSModules.Identity.psd1 | 6 +- Integration/OCI.PSModules.Integration.psd1 | 6 +- .../OCI.PSModules.Keymanagement.psd1 | 6 +- Limits/OCI.PSModules.Limits.psd1 | 6 +- Loadbalancer/OCI.PSModules.Loadbalancer.psd1 | 6 +- Loganalytics/OCI.PSModules.Loganalytics.psd1 | 6 +- Logging/OCI.PSModules.Logging.psd1 | 6 +- .../OCI.PSModules.Loggingingestion.psd1 | 6 +- .../OCI.PSModules.Loggingsearch.psd1 | 6 +- .../OCI.PSModules.Managementagent.psd1 | 6 +- .../OCI.PSModules.Managementdashboard.psd1 | 6 +- Marketplace/OCI.PSModules.Marketplace.psd1 | 6 +- Monitoring/OCI.PSModules.Monitoring.psd1 | 6 +- Mysql/OCI.PSModules.Mysql.psd1 | 6 +- Nosql/OCI.PSModules.Nosql.psd1 | 6 +- .../OCI.PSModules.Objectstorage.psd1 | 6 +- Oce/OCI.PSModules.Oce.psd1 | 6 +- Ocvp/OCI.PSModules.Ocvp.psd1 | 6 +- Oda/OCI.PSModules.Oda.psd1 | 6 +- Ons/OCI.PSModules.Ons.psd1 | 6 +- Opsi/OCI.PSModules.Opsi.psd1 | 6 +- .../Cmdlets/Get-OCIOptimizerCategoriesList.cs | 109 +++++++++++++ Optimizer/Cmdlets/Get-OCIOptimizerCategory.cs | 94 +++++++++++ .../Get-OCIOptimizerEnrollmentStatus.cs | 94 +++++++++++ .../Get-OCIOptimizerEnrollmentStatusesList.cs | 103 ++++++++++++ .../Cmdlets/Get-OCIOptimizerHistoriesList.cs | 125 +++++++++++++++ Optimizer/Cmdlets/Get-OCIOptimizerProfile.cs | 94 +++++++++++ .../Cmdlets/Get-OCIOptimizerProfilesList.cs | 103 ++++++++++++ .../Cmdlets/Get-OCIOptimizerRecommendation.cs | 94 +++++++++++ .../Get-OCIOptimizerRecommendationsList.cs | 117 ++++++++++++++ .../Cmdlets/Get-OCIOptimizerResourceAction.cs | 94 +++++++++++ .../Get-OCIOptimizerResourceActionsList.cs | 121 ++++++++++++++ .../Cmdlets/Get-OCIOptimizerWorkRequest.cs | 94 +++++++++++ .../Get-OCIOptimizerWorkRequestErrorsList.cs | 87 ++++++++++ .../Get-OCIOptimizerWorkRequestLogsList.cs | 87 ++++++++++ .../Get-OCIOptimizerWorkRequestsList.cs | 87 ++++++++++ ...ke-OCIOptimizerBulkApplyRecommendations.cs | 66 ++++++++ Optimizer/Cmdlets/New-OCIOptimizerProfile.cs | 62 ++++++++ Optimizer/Cmdlets/OCIOptimizerCmdlet.cs | 86 ++++++++++ .../Cmdlets/Remove-OCIOptimizerProfile.cs | 71 +++++++++ .../Update-OCIOptimizerEnrollmentStatus.cs | 66 ++++++++ .../Cmdlets/Update-OCIOptimizerProfile.cs | 66 ++++++++ .../Update-OCIOptimizerRecommendation.cs | 66 ++++++++ .../Update-OCIOptimizerResourceAction.cs | 66 ++++++++ Optimizer/OCI.PSModules.Optimizer.csproj | 23 +++ Optimizer/OCI.PSModules.Optimizer.psd1 | 148 ++++++++++++++++++ Osmanagement/OCI.PSModules.Osmanagement.psd1 | 6 +- .../OCI.PSModules.Resourcemanager.psd1 | 6 +- .../OCI.PSModules.Resourcesearch.psd1 | 6 +- Sch/OCI.PSModules.Sch.psd1 | 6 +- Secrets/OCI.PSModules.Secrets.psd1 | 6 +- Streaming/OCI.PSModules.Streaming.psd1 | 6 +- .../Get-OCITenantmanagercontrolplaneLink.cs | 94 +++++++++++ ...t-OCITenantmanagercontrolplaneLinksList.cs | 99 ++++++++++++ ...tmanagercontrolplaneRecipientInvitation.cs | 94 +++++++++++ ...gercontrolplaneRecipientInvitationsList.cs | 94 +++++++++++ ...nantmanagercontrolplaneSenderInvitation.cs | 94 +++++++++++ ...anagercontrolplaneSenderInvitationsList.cs | 111 +++++++++++++ ...OCITenantmanagercontrolplaneWorkRequest.cs | 94 +++++++++++ ...anagercontrolplaneWorkRequestErrorsList.cs | 95 +++++++++++ ...tmanagercontrolplaneWorkRequestLogsList.cs | 95 +++++++++++ ...nantmanagercontrolplaneWorkRequestsList.cs | 91 +++++++++++ ...ercontrolplaneIgnoreRecipientInvitation.cs | 66 ++++++++ ...nantmanagercontrolplaneSenderInvitation.cs | 62 ++++++++ .../Cmdlets/OCILinkCmdlet.cs | 86 ++++++++++ .../Cmdlets/OCIRecipientInvitationCmdlet.cs | 86 ++++++++++ .../Cmdlets/OCISenderInvitationCmdlet.cs | 86 ++++++++++ .../Cmdlets/OCIWorkRequestCmdlet.cs | 86 ++++++++++ ...tmanagercontrolplaneRecipientInvitation.cs | 66 ++++++++ ...Remove-OCITenantmanagercontrolplaneLink.cs | 71 +++++++++ ...nantmanagercontrolplaneSenderInvitation.cs | 66 ++++++++ ...tmanagercontrolplaneRecipientInvitation.cs | 66 ++++++++ ...nantmanagercontrolplaneSenderInvitation.cs | 66 ++++++++ ...PSModules.Tenantmanagercontrolplane.csproj | 23 +++ ...I.PSModules.Tenantmanagercontrolplane.psd1 | 148 ++++++++++++++++++ ...voke-OCIUsageapiRequestSummarizedUsages.cs | 2 +- Usageapi/OCI.PSModules.Usageapi.psd1 | 6 +- Vault/OCI.PSModules.Vault.psd1 | 6 +- Waas/OCI.PSModules.Waas.psd1 | 6 +- Workrequests/OCI.PSModules.Workrequests.psd1 | 6 +- oci-powershell-modules.sln | 28 ++++ 113 files changed, 4381 insertions(+), 180 deletions(-) create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerCategoriesList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerCategory.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatus.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatusesList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerHistoriesList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerProfile.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerProfilesList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerRecommendation.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerRecommendationsList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerResourceAction.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerResourceActionsList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerWorkRequest.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestErrorsList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestLogsList.cs create mode 100644 Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestsList.cs create mode 100644 Optimizer/Cmdlets/Invoke-OCIOptimizerBulkApplyRecommendations.cs create mode 100644 Optimizer/Cmdlets/New-OCIOptimizerProfile.cs create mode 100644 Optimizer/Cmdlets/OCIOptimizerCmdlet.cs create mode 100644 Optimizer/Cmdlets/Remove-OCIOptimizerProfile.cs create mode 100644 Optimizer/Cmdlets/Update-OCIOptimizerEnrollmentStatus.cs create mode 100644 Optimizer/Cmdlets/Update-OCIOptimizerProfile.cs create mode 100644 Optimizer/Cmdlets/Update-OCIOptimizerRecommendation.cs create mode 100644 Optimizer/Cmdlets/Update-OCIOptimizerResourceAction.cs create mode 100644 Optimizer/OCI.PSModules.Optimizer.csproj create mode 100644 Optimizer/OCI.PSModules.Optimizer.psd1 create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLink.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLinksList.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitation.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitationsList.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitation.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitationsList.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequest.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestErrorsList.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestLogsList.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestsList.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Invoke-OCITenantmanagercontrolplaneIgnoreRecipientInvitation.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/New-OCITenantmanagercontrolplaneSenderInvitation.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/OCILinkCmdlet.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/OCIRecipientInvitationCmdlet.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/OCISenderInvitationCmdlet.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/OCIWorkRequestCmdlet.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Receive-OCITenantmanagercontrolplaneRecipientInvitation.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Remove-OCITenantmanagercontrolplaneLink.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Stop-OCITenantmanagercontrolplaneSenderInvitation.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneRecipientInvitation.cs create mode 100644 Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneSenderInvitation.cs create mode 100644 Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.csproj create mode 100644 Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 diff --git a/Analytics/OCI.PSModules.Analytics.psd1 b/Analytics/OCI.PSModules.Analytics.psd1 index 6a0125b7e..7cabbb695 100644 --- a/Analytics/OCI.PSModules.Analytics.psd1 +++ b/Analytics/OCI.PSModules.Analytics.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Analytics.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 fe9480acc..b1c9108fd 100644 --- a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 +++ b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Announcementsservice.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 294f15ba7..b0b7289ff 100644 --- a/Apigateway/OCI.PSModules.Apigateway.psd1 +++ b/Apigateway/OCI.PSModules.Apigateway.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Apigateway.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apigateway.dll' diff --git a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 index 316bdf082..3866e015b 100644 --- a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 +++ b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Applicationmigration.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Applicationmigration.dll' diff --git a/Audit/OCI.PSModules.Audit.psd1 b/Audit/OCI.PSModules.Audit.psd1 index 8ff1cb4c3..602e67776 100644 --- a/Audit/OCI.PSModules.Audit.psd1 +++ b/Audit/OCI.PSModules.Audit.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Audit.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 ce3717d0f..166e89846 100644 --- a/Autoscaling/OCI.PSModules.Autoscaling.psd1 +++ b/Autoscaling/OCI.PSModules.Autoscaling.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Autoscaling.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Autoscaling.dll' diff --git a/Bds/OCI.PSModules.Bds.psd1 b/Bds/OCI.PSModules.Bds.psd1 index aa133704e..f6fde1bd8 100644 --- a/Bds/OCI.PSModules.Bds.psd1 +++ b/Bds/OCI.PSModules.Bds.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Bds.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 0844da565..0281f3f94 100644 --- a/Blockchain/OCI.PSModules.Blockchain.psd1 +++ b/Blockchain/OCI.PSModules.Blockchain.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Blockchain.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 5b4f11f4c..d58260864 100644 --- a/Budget/OCI.PSModules.Budget.psd1 +++ b/Budget/OCI.PSModules.Budget.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Budget.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 c65c782d9..cb4d07f04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ 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/). +## 1.11.0 - 2020-11-03 +### Added + +- Support for calling Oracle Cloud Infrastructure services in the uk-cardiff-1 region +- Support for the Organizations service +- Support for the Optimizer service +- Support for tenancy ID and name on responses in the Usage service +- Support for object versioning in object lifecycle management in the Object Storage service +- Support for specifying a syslog URL for applications in the Functions service +- Support for creation of always-free NoSQL database tables in the NoSQL Database service + ## 1.10.0 - 2020-10-27 ### Added - Support for the Compute Instance Agent service diff --git a/Cims/OCI.PSModules.Cims.psd1 b/Cims/OCI.PSModules.Cims.psd1 index 03e0fe5ec..2702a0a3e 100644 --- a/Cims/OCI.PSModules.Cims.psd1 +++ b/Cims/OCI.PSModules.Cims.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Cims.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cims.dll' diff --git a/Cloudguard/OCI.PSModules.Cloudguard.psd1 b/Cloudguard/OCI.PSModules.Cloudguard.psd1 index dec09efcf..847c9f2df 100644 --- a/Cloudguard/OCI.PSModules.Cloudguard.psd1 +++ b/Cloudguard/OCI.PSModules.Cloudguard.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudguard.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudguard.dll' diff --git a/Common/OCI.PSModules.Common.psd1 b/Common/OCI.PSModules.Common.psd1 index 27a8a57fd..1b5cc768c 100644 --- a/Common/OCI.PSModules.Common.psd1 +++ b/Common/OCI.PSModules.Common.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Common.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' diff --git a/Common/Version.cs b/Common/Version.cs index d976cc91f..54b89bc72 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 = "1"; - public static string MINOR = "10"; + public static string MINOR = "11"; public static string PATCH = "0"; public static string GetVersion() diff --git a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 index 4b2db1632..41f1f9fef 100644 --- a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 +++ b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Computeinstanceagent.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 6c757a2b2..0763839bd 100644 --- a/Containerengine/OCI.PSModules.Containerengine.psd1 +++ b/Containerengine/OCI.PSModules.Containerengine.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Containerengine.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerengine.dll' diff --git a/Core/OCI.PSModules.Core.psd1 b/Core/OCI.PSModules.Core.psd1 index f827728f7..8f983d286 100644 --- a/Core/OCI.PSModules.Core.psd1 +++ b/Core/OCI.PSModules.Core.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Core.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Core.dll' diff --git a/Database/OCI.PSModules.Database.psd1 b/Database/OCI.PSModules.Database.psd1 index bf768071f..bc07aae27 100644 --- a/Database/OCI.PSModules.Database.psd1 +++ b/Database/OCI.PSModules.Database.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Database.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Database.dll' diff --git a/Datacatalog/OCI.PSModules.Datacatalog.psd1 b/Datacatalog/OCI.PSModules.Datacatalog.psd1 index 704699eb5..b343ae61a 100644 --- a/Datacatalog/OCI.PSModules.Datacatalog.psd1 +++ b/Datacatalog/OCI.PSModules.Datacatalog.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datacatalog.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 ae228673e..bcc7a1156 100644 --- a/Dataflow/OCI.PSModules.Dataflow.psd1 +++ b/Dataflow/OCI.PSModules.Dataflow.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataflow.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 45e5446ab..bbcc575d0 100644 --- a/Dataintegration/OCI.PSModules.Dataintegration.psd1 +++ b/Dataintegration/OCI.PSModules.Dataintegration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataintegration.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataintegration.dll' diff --git a/Datasafe/OCI.PSModules.Datasafe.psd1 b/Datasafe/OCI.PSModules.Datasafe.psd1 index d70d49601..1a644e7ad 100644 --- a/Datasafe/OCI.PSModules.Datasafe.psd1 +++ b/Datasafe/OCI.PSModules.Datasafe.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datasafe.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datasafe.dll' diff --git a/Datascience/OCI.PSModules.Datascience.psd1 b/Datascience/OCI.PSModules.Datascience.psd1 index 0395f5337..10d71a680 100644 --- a/Datascience/OCI.PSModules.Datascience.psd1 +++ b/Datascience/OCI.PSModules.Datascience.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datascience.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datascience.dll' diff --git a/Directory.Build.props b/Directory.Build.props index 2cceed097..5c18ec2e1 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 6.0.0 + 6.1.0 diff --git a/Dns/OCI.PSModules.Dns.psd1 b/Dns/OCI.PSModules.Dns.psd1 index 84c2852a1..d8d5e33de 100644 --- a/Dns/OCI.PSModules.Dns.psd1 +++ b/Dns/OCI.PSModules.Dns.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dns.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 fdd91dc79..09241869a 100644 --- a/Dts/OCI.PSModules.Dts.psd1 +++ b/Dts/OCI.PSModules.Dts.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dts.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 2a6da366c..4f9ced346 100644 --- a/Email/OCI.PSModules.Email.psd1 +++ b/Email/OCI.PSModules.Email.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Email.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Email.dll' diff --git a/Events/OCI.PSModules.Events.psd1 b/Events/OCI.PSModules.Events.psd1 index ff76c0ee7..7b047198b 100644 --- a/Events/OCI.PSModules.Events.psd1 +++ b/Events/OCI.PSModules.Events.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Events.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 23d026bf3..666b587d7 100644 --- a/Filestorage/OCI.PSModules.Filestorage.psd1 +++ b/Filestorage/OCI.PSModules.Filestorage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Filestorage.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Filestorage.dll' diff --git a/Functions/Cmdlets/Get-OCIFunctionsApplicationsList.cs b/Functions/Cmdlets/Get-OCIFunctionsApplicationsList.cs index 56efd0949..d776335d7 100644 --- a/Functions/Cmdlets/Get-OCIFunctionsApplicationsList.cs +++ b/Functions/Cmdlets/Get-OCIFunctionsApplicationsList.cs @@ -40,7 +40,7 @@ public class GetOCIFunctionsApplicationsList : OCIFunctionsManagementCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only applications with display names that match the display name string. Matching is exact.")] public string DisplayName { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only applications with the specfied OCID.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only applications with the specified OCID.")] public string Id { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order. diff --git a/Functions/OCI.PSModules.Functions.psd1 b/Functions/OCI.PSModules.Functions.psd1 index 165ab4cb4..92133fbfd 100644 --- a/Functions/OCI.PSModules.Functions.psd1 +++ b/Functions/OCI.PSModules.Functions.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Functions.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Functions.dll' diff --git a/Healthchecks/OCI.PSModules.Healthchecks.psd1 b/Healthchecks/OCI.PSModules.Healthchecks.psd1 index dd234f5f0..294fe659e 100644 --- a/Healthchecks/OCI.PSModules.Healthchecks.psd1 +++ b/Healthchecks/OCI.PSModules.Healthchecks.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Healthchecks.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 721dc8fd0..65b2c1c8d 100644 --- a/Identity/OCI.PSModules.Identity.psd1 +++ b/Identity/OCI.PSModules.Identity.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Identity.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identity.dll' diff --git a/Integration/OCI.PSModules.Integration.psd1 b/Integration/OCI.PSModules.Integration.psd1 index 4e269ea52..51c66d0a8 100644 --- a/Integration/OCI.PSModules.Integration.psd1 +++ b/Integration/OCI.PSModules.Integration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Integration.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Integration.dll' diff --git a/Keymanagement/OCI.PSModules.Keymanagement.psd1 b/Keymanagement/OCI.PSModules.Keymanagement.psd1 index cf0af8fcd..21c4ae2d5 100644 --- a/Keymanagement/OCI.PSModules.Keymanagement.psd1 +++ b/Keymanagement/OCI.PSModules.Keymanagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Keymanagement.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Keymanagement.dll' diff --git a/Limits/OCI.PSModules.Limits.psd1 b/Limits/OCI.PSModules.Limits.psd1 index 078a5e26a..86bd9536a 100644 --- a/Limits/OCI.PSModules.Limits.psd1 +++ b/Limits/OCI.PSModules.Limits.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Limits.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 17af61011..a9510c716 100644 --- a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 +++ b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loadbalancer.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loadbalancer.dll' diff --git a/Loganalytics/OCI.PSModules.Loganalytics.psd1 b/Loganalytics/OCI.PSModules.Loganalytics.psd1 index 1da98b81f..a61415a98 100644 --- a/Loganalytics/OCI.PSModules.Loganalytics.psd1 +++ b/Loganalytics/OCI.PSModules.Loganalytics.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loganalytics.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 d5595983b..96cc94021 100644 --- a/Logging/OCI.PSModules.Logging.psd1 +++ b/Logging/OCI.PSModules.Logging.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Logging.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 0229654a3..9f986c092 100644 --- a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 +++ b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingingestion.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 4ed261171..6a53210ee 100644 --- a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 +++ b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingsearch.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 c80a79304..3cd646ca3 100644 --- a/Managementagent/OCI.PSModules.Managementagent.psd1 +++ b/Managementagent/OCI.PSModules.Managementagent.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementagent.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 708c93a4c..350face4b 100644 --- a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 +++ b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementdashboard.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 0ec8849e9..6f6282dc5 100644 --- a/Marketplace/OCI.PSModules.Marketplace.psd1 +++ b/Marketplace/OCI.PSModules.Marketplace.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Marketplace.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplace.dll' diff --git a/Monitoring/OCI.PSModules.Monitoring.psd1 b/Monitoring/OCI.PSModules.Monitoring.psd1 index 2e5b10f7a..9dbc9e66c 100644 --- a/Monitoring/OCI.PSModules.Monitoring.psd1 +++ b/Monitoring/OCI.PSModules.Monitoring.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Monitoring.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 8ad8f5a09..d67370396 100644 --- a/Mysql/OCI.PSModules.Mysql.psd1 +++ b/Mysql/OCI.PSModules.Mysql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Mysql.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mysql.dll' diff --git a/Nosql/OCI.PSModules.Nosql.psd1 b/Nosql/OCI.PSModules.Nosql.psd1 index e7888a494..2f4f8d1d0 100644 --- a/Nosql/OCI.PSModules.Nosql.psd1 +++ b/Nosql/OCI.PSModules.Nosql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Nosql.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 251a2d21b..fb985db34 100644 --- a/Objectstorage/OCI.PSModules.Objectstorage.psd1 +++ b/Objectstorage/OCI.PSModules.Objectstorage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Objectstorage.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 943deff12..e67a490f9 100644 --- a/Oce/OCI.PSModules.Oce.psd1 +++ b/Oce/OCI.PSModules.Oce.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Oce.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oce.dll' diff --git a/Ocvp/OCI.PSModules.Ocvp.psd1 b/Ocvp/OCI.PSModules.Ocvp.psd1 index 6428fb4dd..f2ffd24b1 100644 --- a/Ocvp/OCI.PSModules.Ocvp.psd1 +++ b/Ocvp/OCI.PSModules.Ocvp.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Ocvp.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 0a225c619..3fd4bc383 100644 --- a/Oda/OCI.PSModules.Oda.psd1 +++ b/Oda/OCI.PSModules.Oda.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Oda.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oda.dll' diff --git a/Ons/OCI.PSModules.Ons.psd1 b/Ons/OCI.PSModules.Ons.psd1 index 20b94f863..ada0a1c10 100644 --- a/Ons/OCI.PSModules.Ons.psd1 +++ b/Ons/OCI.PSModules.Ons.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Ons.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ons.dll' diff --git a/Opsi/OCI.PSModules.Opsi.psd1 b/Opsi/OCI.PSModules.Opsi.psd1 index 624912bad..438c74ac3 100644 --- a/Opsi/OCI.PSModules.Opsi.psd1 +++ b/Opsi/OCI.PSModules.Opsi.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Opsi.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opsi.dll' diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerCategoriesList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerCategoriesList.cs new file mode 100644 index 000000000..c8a3e66c4 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerCategoriesList.cs @@ -0,0 +1,109 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerCategoriesList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.CategoryCollection), typeof(Oci.OptimizerService.Responses.ListCategoriesResponse) })] + public class GetOCIOptimizerCategoriesList : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`. + +Can only be set to true when performing ListCompartments on the tenancy (root compartment).")] + public System.Nullable CompartmentIdInSubtree { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the name specified.")] + public string Name { 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 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 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.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns results that match the lifecycle state specified.")] + public System.Nullable LifecycleState { 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListCategoriesRequest request; + + try + { + request = new ListCategoriesRequest + { + CompartmentId = CompartmentId, + CompartmentIdInSubtree = CompartmentIdInSubtree, + Name = Name, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + LifecycleState = LifecycleState, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.CategoryCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListCategoriesRequest request) => Enumerable.Repeat(client.ListCategories(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListCategoriesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListCategoriesResponse response; + private delegate IEnumerable RequestDelegate(ListCategoriesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerCategory.cs b/Optimizer/Cmdlets/Get-OCIOptimizerCategory.cs new file mode 100644 index 000000000..d2b9f14cc --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerCategory.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; +using Oci.Common.Waiters; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerCategory", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.Category), typeof(Oci.OptimizerService.Responses.GetCategoryResponse) })] + public class GetOCIOptimizerCategory : OCIOptimizerCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the category.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the category.", ParameterSetName = Default)] + public string CategoryId { 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.", 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.", 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.OptimizerService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetCategoryRequest request; + + try + { + request = new GetCategoryRequest + { + CategoryId = CategoryId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetCategoryRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForCategory(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetCategory(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Category); + } + + private GetCategoryResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatus.cs b/Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatus.cs new file mode 100644 index 000000000..a92c64ddf --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatus.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; +using Oci.Common.Waiters; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerEnrollmentStatus", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.EnrollmentStatus), typeof(Oci.OptimizerService.Responses.GetEnrollmentStatusResponse) })] + public class GetOCIOptimizerEnrollmentStatus : OCIOptimizerCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the enrollment status.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the enrollment status.", ParameterSetName = Default)] + public string EnrollmentStatusId { 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.", 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.", 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.OptimizerService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetEnrollmentStatusRequest request; + + try + { + request = new GetEnrollmentStatusRequest + { + EnrollmentStatusId = EnrollmentStatusId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetEnrollmentStatusRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForEnrollmentStatus(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetEnrollmentStatus(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.EnrollmentStatus); + } + + private GetEnrollmentStatusResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatusesList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatusesList.cs new file mode 100644 index 000000000..f5eb35410 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerEnrollmentStatusesList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerEnrollmentStatusesList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.EnrollmentStatusCollection), typeof(Oci.OptimizerService.Responses.ListEnrollmentStatusesResponse) })] + public class GetOCIOptimizerEnrollmentStatusesList : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + public string CompartmentId { 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 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 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.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns results that match the lifecycle state specified.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns results that match the Cloud Advisor enrollment status specified.")] + public System.Nullable Status { 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListEnrollmentStatusesRequest request; + + try + { + request = new ListEnrollmentStatusesRequest + { + CompartmentId = CompartmentId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + LifecycleState = LifecycleState, + Status = Status, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.EnrollmentStatusCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListEnrollmentStatusesRequest request) => Enumerable.Repeat(client.ListEnrollmentStatuses(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListEnrollmentStatusesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListEnrollmentStatusesResponse response; + private delegate IEnumerable RequestDelegate(ListEnrollmentStatusesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerHistoriesList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerHistoriesList.cs new file mode 100644 index 000000000..3bd4a30dc --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerHistoriesList.cs @@ -0,0 +1,125 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerHistoriesList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.HistoryCollection), typeof(Oci.OptimizerService.Responses.ListHistoriesResponse) })] + public class GetOCIOptimizerHistoriesList : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`. + +Can only be set to true when performing ListCompartments on the tenancy (root compartment).")] + public System.Nullable CompartmentIdInSubtree { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the name specified.")] + public string Name { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the recommendation name specified.")] + public string RecommendationName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the recommendation.")] + public string RecommendationId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the resource type specified.")] + public string ResourceType { 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 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 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.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns results that match the lifecycle state specified.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns recommendations that match the status specified.")] + public System.Nullable Status { 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListHistoriesRequest request; + + try + { + request = new ListHistoriesRequest + { + CompartmentId = CompartmentId, + CompartmentIdInSubtree = CompartmentIdInSubtree, + Name = Name, + RecommendationName = RecommendationName, + RecommendationId = RecommendationId, + ResourceType = ResourceType, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + LifecycleState = LifecycleState, + Status = Status, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.HistoryCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListHistoriesRequest request) => Enumerable.Repeat(client.ListHistories(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListHistoriesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListHistoriesResponse response; + private delegate IEnumerable RequestDelegate(ListHistoriesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerProfile.cs b/Optimizer/Cmdlets/Get-OCIOptimizerProfile.cs new file mode 100644 index 000000000..942f06173 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerProfile.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; +using Oci.Common.Waiters; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerProfile", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.Profile), typeof(Oci.OptimizerService.Responses.GetProfileResponse) })] + public class GetOCIOptimizerProfile : OCIOptimizerCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID of the profile.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID of the profile.", ParameterSetName = Default)] + public string ProfileId { 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.", 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.", 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.OptimizerService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetProfileRequest request; + + try + { + request = new GetProfileRequest + { + ProfileId = ProfileId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetProfileRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForProfile(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetProfile(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Profile); + } + + private GetProfileResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerProfilesList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerProfilesList.cs new file mode 100644 index 000000000..5ccdddc7a --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerProfilesList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerProfilesList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.ProfileCollection), typeof(Oci.OptimizerService.Responses.ListProfilesResponse) })] + public class GetOCIOptimizerProfilesList : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the name specified.")] + public string Name { 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 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 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.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns results that match the lifecycle state specified.")] + public System.Nullable LifecycleState { 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListProfilesRequest request; + + try + { + request = new ListProfilesRequest + { + CompartmentId = CompartmentId, + Name = Name, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + LifecycleState = LifecycleState, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ProfileCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListProfilesRequest request) => Enumerable.Repeat(client.ListProfiles(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListProfilesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListProfilesResponse response; + private delegate IEnumerable RequestDelegate(ListProfilesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerRecommendation.cs b/Optimizer/Cmdlets/Get-OCIOptimizerRecommendation.cs new file mode 100644 index 000000000..681908225 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerRecommendation.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; +using Oci.Common.Waiters; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerRecommendation", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.Recommendation), typeof(Oci.OptimizerService.Responses.GetRecommendationResponse) })] + public class GetOCIOptimizerRecommendation : OCIOptimizerCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the recommendation.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the recommendation.", ParameterSetName = Default)] + public string RecommendationId { 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.", 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.", 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.OptimizerService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetRecommendationRequest request; + + try + { + request = new GetRecommendationRequest + { + RecommendationId = RecommendationId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetRecommendationRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForRecommendation(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetRecommendation(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Recommendation); + } + + private GetRecommendationResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerRecommendationsList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerRecommendationsList.cs new file mode 100644 index 000000000..dc2d79b2c --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerRecommendationsList.cs @@ -0,0 +1,117 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerRecommendationsList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.RecommendationCollection), typeof(Oci.OptimizerService.Responses.ListRecommendationsResponse) })] + public class GetOCIOptimizerRecommendationsList : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`. + +Can only be set to true when performing ListCompartments on the tenancy (root compartment).")] + public System.Nullable CompartmentIdInSubtree { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the category.")] + public string CategoryId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the name specified.")] + public string Name { 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 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 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.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns results that match the lifecycle state specified.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns recommendations that match the status specified.")] + public System.Nullable Status { 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListRecommendationsRequest request; + + try + { + request = new ListRecommendationsRequest + { + CompartmentId = CompartmentId, + CompartmentIdInSubtree = CompartmentIdInSubtree, + CategoryId = CategoryId, + Name = Name, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + LifecycleState = LifecycleState, + Status = Status, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.RecommendationCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListRecommendationsRequest request) => Enumerable.Repeat(client.ListRecommendations(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRecommendationsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRecommendationsResponse response; + private delegate IEnumerable RequestDelegate(ListRecommendationsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerResourceAction.cs b/Optimizer/Cmdlets/Get-OCIOptimizerResourceAction.cs new file mode 100644 index 000000000..d0fdbd919 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerResourceAction.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; +using Oci.Common.Waiters; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerResourceAction", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.ResourceAction), typeof(Oci.OptimizerService.Responses.GetResourceActionResponse) })] + public class GetOCIOptimizerResourceAction : OCIOptimizerCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the resource action.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the resource action.", ParameterSetName = Default)] + public string ResourceActionId { 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.", 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.", 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.OptimizerService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetResourceActionRequest request; + + try + { + request = new GetResourceActionRequest + { + ResourceActionId = ResourceActionId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetResourceActionRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForResourceAction(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetResourceAction(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ResourceAction); + } + + private GetResourceActionResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerResourceActionsList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerResourceActionsList.cs new file mode 100644 index 000000000..7e9263449 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerResourceActionsList.cs @@ -0,0 +1,121 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerResourceActionsList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.ResourceActionCollection), typeof(Oci.OptimizerService.Responses.ListResourceActionsResponse) })] + public class GetOCIOptimizerResourceActionsList : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`. + +Can only be set to true when performing ListCompartments on the tenancy (root compartment).")] + public System.Nullable CompartmentIdInSubtree { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the recommendation.")] + public string RecommendationId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the name specified.")] + public string Name { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional. A filter that returns results that match the resource type specified.")] + public string ResourceType { 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 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 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.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns results that match the lifecycle state specified.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns recommendations that match the status specified.")] + public System.Nullable Status { 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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListResourceActionsRequest request; + + try + { + request = new ListResourceActionsRequest + { + CompartmentId = CompartmentId, + CompartmentIdInSubtree = CompartmentIdInSubtree, + RecommendationId = RecommendationId, + Name = Name, + ResourceType = ResourceType, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + LifecycleState = LifecycleState, + Status = Status, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ResourceActionCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListResourceActionsRequest request) => Enumerable.Repeat(client.ListResourceActions(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListResourceActionsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListResourceActionsResponse response; + private delegate IEnumerable RequestDelegate(ListResourceActionsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequest.cs b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequest.cs new file mode 100644 index 000000000..7ef74aaa5 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequest.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; +using Oci.Common.Waiters; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.WorkRequest), typeof(Oci.OptimizerService.Responses.GetWorkRequestResponse) })] + public class GetOCIOptimizerWorkRequest : OCIOptimizerCmdlet + { + + [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.", 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.", 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.OptimizerService.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 (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/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestErrorsList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestErrorsList.cs new file mode 100644 index 000000000..04133c3bc --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestErrorsList.cs @@ -0,0 +1,87 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.WorkRequestErrorCollection), typeof(Oci.OptimizerService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIOptimizerWorkRequestErrorsList : OCIOptimizerCmdlet + { + [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.")] + 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(); + ListWorkRequestErrorsRequest request; + + try + { + request = new ListWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(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/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestLogsList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestLogsList.cs new file mode 100644 index 000000000..1f74141ca --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestLogsList.cs @@ -0,0 +1,87 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.WorkRequestLogEntryCollection), typeof(Oci.OptimizerService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIOptimizerWorkRequestLogsList : OCIOptimizerCmdlet + { + [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.")] + 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(); + ListWorkRequestLogsRequest request; + + try + { + request = new ListWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(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/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestsList.cs b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestsList.cs new file mode 100644 index 000000000..b4423ed33 --- /dev/null +++ b/Optimizer/Cmdlets/Get-OCIOptimizerWorkRequestsList.cs @@ -0,0 +1,87 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Get", "OCIOptimizerWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.WorkRequestCollection), typeof(Oci.OptimizerService.Responses.ListWorkRequestsResponse) })] + public class GetOCIOptimizerWorkRequestsList : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + 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 = @"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 = 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, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(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/Optimizer/Cmdlets/Invoke-OCIOptimizerBulkApplyRecommendations.cs b/Optimizer/Cmdlets/Invoke-OCIOptimizerBulkApplyRecommendations.cs new file mode 100644 index 000000000..f41b351de --- /dev/null +++ b/Optimizer/Cmdlets/Invoke-OCIOptimizerBulkApplyRecommendations.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Invoke", "OCIOptimizerBulkApplyRecommendations")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OptimizerService.Responses.BulkApplyRecommendationsResponse) })] + public class InvokeOCIOptimizerBulkApplyRecommendations : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the recommendation.")] + public string RecommendationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details about bulk recommendation actions.")] + public BulkApplyRecommendationsDetails BulkApplyRecommendationsDetails { 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 so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + BulkApplyRecommendationsRequest request; + + try + { + request = new BulkApplyRecommendationsRequest + { + RecommendationId = RecommendationId, + BulkApplyRecommendationsDetails = BulkApplyRecommendationsDetails, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.BulkApplyRecommendations(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private BulkApplyRecommendationsResponse response; + } +} diff --git a/Optimizer/Cmdlets/New-OCIOptimizerProfile.cs b/Optimizer/Cmdlets/New-OCIOptimizerProfile.cs new file mode 100644 index 000000000..3e57e2ef6 --- /dev/null +++ b/Optimizer/Cmdlets/New-OCIOptimizerProfile.cs @@ -0,0 +1,62 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("New", "OCIOptimizerProfile")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.Profile), typeof(Oci.OptimizerService.Responses.CreateProfileResponse) })] + public class NewOCIOptimizerProfile : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for creating the profile.")] + public CreateProfileDetails CreateProfileDetails { 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 so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateProfileRequest request; + + try + { + request = new CreateProfileRequest + { + CreateProfileDetails = CreateProfileDetails, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateProfile(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Profile); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateProfileResponse response; + } +} diff --git a/Optimizer/Cmdlets/OCIOptimizerCmdlet.cs b/Optimizer/Cmdlets/OCIOptimizerCmdlet.cs new file mode 100644 index 000000000..0e64ac4ce --- /dev/null +++ b/Optimizer/Cmdlets/OCIOptimizerCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.OptimizerService; + +namespace Oci.OptimizerService.Cmdlets +{ + public abstract class OCIOptimizerCmdlet : 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 OptimizerClient(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 OptimizerClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Optimizer/Cmdlets/Remove-OCIOptimizerProfile.cs b/Optimizer/Cmdlets/Remove-OCIOptimizerProfile.cs new file mode 100644 index 000000000..2c5b66d65 --- /dev/null +++ b/Optimizer/Cmdlets/Remove-OCIOptimizerProfile.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Remove", "OCIOptimizerProfile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.OptimizerService.Responses.DeleteProfileResponse) })] + public class RemoveOCIOptimizerProfile : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID of the profile.")] + public string ProfileId { 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.")] + 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("OCIOptimizerProfile", "Remove")) + { + return; + } + + DeleteProfileRequest request; + + try + { + request = new DeleteProfileRequest + { + ProfileId = ProfileId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteProfile(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteProfileResponse response; + } +} diff --git a/Optimizer/Cmdlets/Update-OCIOptimizerEnrollmentStatus.cs b/Optimizer/Cmdlets/Update-OCIOptimizerEnrollmentStatus.cs new file mode 100644 index 000000000..3c26e70d6 --- /dev/null +++ b/Optimizer/Cmdlets/Update-OCIOptimizerEnrollmentStatus.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Update", "OCIOptimizerEnrollmentStatus")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.EnrollmentStatus), typeof(Oci.OptimizerService.Responses.UpdateEnrollmentStatusResponse) })] + public class UpdateOCIOptimizerEnrollmentStatus : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the enrollment status.")] + public string EnrollmentStatusId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The request object for updating the enrollment status.")] + public UpdateEnrollmentStatusDetails UpdateEnrollmentStatusDetails { 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 = @"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(); + UpdateEnrollmentStatusRequest request; + + try + { + request = new UpdateEnrollmentStatusRequest + { + EnrollmentStatusId = EnrollmentStatusId, + UpdateEnrollmentStatusDetails = UpdateEnrollmentStatusDetails, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.UpdateEnrollmentStatus(request).GetAwaiter().GetResult(); + WriteOutput(response, response.EnrollmentStatus); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateEnrollmentStatusResponse response; + } +} diff --git a/Optimizer/Cmdlets/Update-OCIOptimizerProfile.cs b/Optimizer/Cmdlets/Update-OCIOptimizerProfile.cs new file mode 100644 index 000000000..ed0d17099 --- /dev/null +++ b/Optimizer/Cmdlets/Update-OCIOptimizerProfile.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Update", "OCIOptimizerProfile")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.Profile), typeof(Oci.OptimizerService.Responses.UpdateProfileResponse) })] + public class UpdateOCIOptimizerProfile : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID of the profile.")] + public string ProfileId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The profile information to use for the update.")] + public UpdateProfileDetails UpdateProfileDetails { 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.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateProfileRequest request; + + try + { + request = new UpdateProfileRequest + { + ProfileId = ProfileId, + UpdateProfileDetails = UpdateProfileDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateProfile(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Profile); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateProfileResponse response; + } +} diff --git a/Optimizer/Cmdlets/Update-OCIOptimizerRecommendation.cs b/Optimizer/Cmdlets/Update-OCIOptimizerRecommendation.cs new file mode 100644 index 000000000..361127307 --- /dev/null +++ b/Optimizer/Cmdlets/Update-OCIOptimizerRecommendation.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Update", "OCIOptimizerRecommendation")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.Recommendation), typeof(Oci.OptimizerService.Responses.UpdateRecommendationResponse) })] + public class UpdateOCIOptimizerRecommendation : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the recommendation.")] + public string RecommendationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The request object for udpating the recommendation details.")] + public UpdateRecommendationDetails UpdateRecommendationDetails { 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 = @"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(); + UpdateRecommendationRequest request; + + try + { + request = new UpdateRecommendationRequest + { + RecommendationId = RecommendationId, + UpdateRecommendationDetails = UpdateRecommendationDetails, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.UpdateRecommendation(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Recommendation); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateRecommendationResponse response; + } +} diff --git a/Optimizer/Cmdlets/Update-OCIOptimizerResourceAction.cs b/Optimizer/Cmdlets/Update-OCIOptimizerResourceAction.cs new file mode 100644 index 000000000..24c3fb21e --- /dev/null +++ b/Optimizer/Cmdlets/Update-OCIOptimizerResourceAction.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200606 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.OptimizerService.Requests; +using Oci.OptimizerService.Responses; +using Oci.OptimizerService.Models; + +namespace Oci.OptimizerService.Cmdlets +{ + [Cmdlet("Update", "OCIOptimizerResourceAction")] + [OutputType(new System.Type[] { typeof(Oci.OptimizerService.Models.ResourceAction), typeof(Oci.OptimizerService.Responses.UpdateResourceActionResponse) })] + public class UpdateOCIOptimizerResourceAction : OCIOptimizerCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique OCID associated with the resource action.")] + public string ResourceActionId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The resource action information to be updated.")] + public UpdateResourceActionDetails UpdateResourceActionDetails { 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 = @"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(); + UpdateResourceActionRequest request; + + try + { + request = new UpdateResourceActionRequest + { + ResourceActionId = ResourceActionId, + UpdateResourceActionDetails = UpdateResourceActionDetails, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.UpdateResourceAction(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ResourceAction); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateResourceActionResponse response; + } +} diff --git a/Optimizer/OCI.PSModules.Optimizer.csproj b/Optimizer/OCI.PSModules.Optimizer.csproj new file mode 100644 index 000000000..752ce27f3 --- /dev/null +++ b/Optimizer/OCI.PSModules.Optimizer.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Optimizer + OCI.PSModules.Optimizer + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Optimizer + Optimizer Service + + + + + + + + + + + diff --git a/Optimizer/OCI.PSModules.Optimizer.psd1 b/Optimizer/OCI.PSModules.Optimizer.psd1 new file mode 100644 index 000000000..6086fedaf --- /dev/null +++ b/Optimizer/OCI.PSModules.Optimizer.psd1 @@ -0,0 +1,148 @@ +# +# Module manifest for module 'OCI.PSModules.Optimizer' +# +# Generated by: Oracle Cloud Infrastructure +# +# Generated on: 10/29/2020 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Optimizer.dll' + +# Version number of this module. +ModuleVersion = '1.11.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '18a4b1e7-fbad-4df9-a45b-6484df378fbb' + +# 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 Optimizer 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 = '1.11.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Optimizer.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-OCIOptimizerCategoriesList', 'Get-OCIOptimizerCategory', + 'Get-OCIOptimizerEnrollmentStatus', + 'Get-OCIOptimizerEnrollmentStatusesList', + 'Get-OCIOptimizerHistoriesList', 'Get-OCIOptimizerProfile', + 'Get-OCIOptimizerProfilesList', 'Get-OCIOptimizerRecommendation', + 'Get-OCIOptimizerRecommendationsList', + 'Get-OCIOptimizerResourceAction', + 'Get-OCIOptimizerResourceActionsList', + 'Get-OCIOptimizerWorkRequest', + 'Get-OCIOptimizerWorkRequestErrorsList', + 'Get-OCIOptimizerWorkRequestLogsList', + 'Get-OCIOptimizerWorkRequestsList', + 'Invoke-OCIOptimizerBulkApplyRecommendations', + 'New-OCIOptimizerProfile', 'Remove-OCIOptimizerProfile', + 'Update-OCIOptimizerEnrollmentStatus', 'Update-OCIOptimizerProfile', + 'Update-OCIOptimizerRecommendation', + 'Update-OCIOptimizerResourceAction' + +# 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','Optimizer' + + # 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/Osmanagement/OCI.PSModules.Osmanagement.psd1 b/Osmanagement/OCI.PSModules.Osmanagement.psd1 index f6b4a87ae..a0f3b13d0 100644 --- a/Osmanagement/OCI.PSModules.Osmanagement.psd1 +++ b/Osmanagement/OCI.PSModules.Osmanagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Osmanagement.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagement.dll' diff --git a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 index a5df439f2..9941db3b3 100644 --- a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 +++ b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcemanager.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcemanager.dll' diff --git a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 index 8f51b59a9..cee42e330 100644 --- a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 +++ b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcesearch.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcesearch.dll' diff --git a/Sch/OCI.PSModules.Sch.psd1 b/Sch/OCI.PSModules.Sch.psd1 index b45c06b00..8ab615b1d 100644 --- a/Sch/OCI.PSModules.Sch.psd1 +++ b/Sch/OCI.PSModules.Sch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Sch.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 a86e762b6..6d6b046e1 100644 --- a/Secrets/OCI.PSModules.Secrets.psd1 +++ b/Secrets/OCI.PSModules.Secrets.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Secrets.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Secrets.dll' diff --git a/Streaming/OCI.PSModules.Streaming.psd1 b/Streaming/OCI.PSModules.Streaming.psd1 index 50ea87796..37f38664c 100644 --- a/Streaming/OCI.PSModules.Streaming.psd1 +++ b/Streaming/OCI.PSModules.Streaming.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Streaming.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Streaming.dll' diff --git a/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLink.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLink.cs new file mode 100644 index 000000000..79a11028b --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLink.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; +using Oci.Common.Waiters; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneLink", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.Link), typeof(Oci.TenantmanagercontrolplaneService.Responses.GetLinkResponse) })] + public class GetOCITenantmanagercontrolplaneLink : OCILinkCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the link to retrieve.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the link to retrieve.", ParameterSetName = Default)] + public string LinkId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)] + public Oci.TenantmanagercontrolplaneService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetLinkRequest request; + + try + { + request = new GetLinkRequest + { + LinkId = LinkId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetLinkRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForLink(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetLink(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Link); + } + + private GetLinkResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLinksList.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLinksList.cs new file mode 100644 index 000000000..8eddd27ea --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneLinksList.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneLinksList")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.LinkCollection), typeof(Oci.TenantmanagercontrolplaneService.Responses.ListLinksResponse) })] + public class GetOCITenantmanagercontrolplaneLinksList : OCILinkCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the parent tenancy this link is associated with.")] + public string ParentTenancyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the child tenancy this link is associated with.")] + public string ChildTenancyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The lifecycle state of the resource.")] + public System.Nullable LifecycleState { 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 = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListLinksRequest request; + + try + { + request = new ListLinksRequest + { + ParentTenancyId = ParentTenancyId, + ChildTenancyId = ChildTenancyId, + LifecycleState = LifecycleState, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.LinkCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListLinksRequest request) => Enumerable.Repeat(client.ListLinks(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListLinksResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListLinksResponse response; + private delegate IEnumerable RequestDelegate(ListLinksRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitation.cs new file mode 100644 index 000000000..e4ee79be4 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitation.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; +using Oci.Common.Waiters; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneRecipientInvitation", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.RecipientInvitation), typeof(Oci.TenantmanagercontrolplaneService.Responses.GetRecipientInvitationResponse) })] + public class GetOCITenantmanagercontrolplaneRecipientInvitation : OCIRecipientInvitationCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the recipient invitation to retrieve.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the recipient invitation to retrieve.", ParameterSetName = Default)] + public string RecipientInvitationId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)] + public Oci.TenantmanagercontrolplaneService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetRecipientInvitationRequest request; + + try + { + request = new GetRecipientInvitationRequest + { + RecipientInvitationId = RecipientInvitationId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetRecipientInvitationRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForRecipientInvitation(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetRecipientInvitation(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.RecipientInvitation); + } + + private GetRecipientInvitationResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitationsList.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitationsList.cs new file mode 100644 index 000000000..453383089 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneRecipientInvitationsList.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneRecipientInvitationsList")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.RecipientInvitationCollection), typeof(Oci.TenantmanagercontrolplaneService.Responses.ListRecipientInvitationsResponse) })] + public class GetOCITenantmanagercontrolplaneRecipientInvitationsList : OCIRecipientInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The tenancy that sent the invitation.")] + public string SenderTenancyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The lifecycle state of the resource.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The status of the recipient invitation.")] + public System.Nullable Status { 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 = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListRecipientInvitationsRequest request; + + try + { + request = new ListRecipientInvitationsRequest + { + CompartmentId = CompartmentId, + SenderTenancyId = SenderTenancyId, + LifecycleState = LifecycleState, + Status = Status, + OpcRequestId = OpcRequestId, + Page = Page + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.RecipientInvitationCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListRecipientInvitationsRequest request) => Enumerable.Repeat(client.ListRecipientInvitations(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRecipientInvitationsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRecipientInvitationsResponse response; + private delegate IEnumerable RequestDelegate(ListRecipientInvitationsRequest request); + private const string AllPageSet = "AllPages"; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitation.cs new file mode 100644 index 000000000..00cb1be46 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitation.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; +using Oci.Common.Waiters; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneSenderInvitation", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.SenderInvitation), typeof(Oci.TenantmanagercontrolplaneService.Responses.GetSenderInvitationResponse) })] + public class GetOCITenantmanagercontrolplaneSenderInvitation : OCISenderInvitationCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the sender invitation to retrieve.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the sender invitation to retrieve.", ParameterSetName = Default)] + public string SenderInvitationId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)] + public Oci.TenantmanagercontrolplaneService.Models.LifecycleState[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [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(); + GetSenderInvitationRequest request; + + try + { + request = new GetSenderInvitationRequest + { + SenderInvitationId = SenderInvitationId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetSenderInvitationRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForSenderInvitation(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetSenderInvitation(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.SenderInvitation); + } + + private GetSenderInvitationResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitationsList.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitationsList.cs new file mode 100644 index 000000000..19e73ffc7 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneSenderInvitationsList.cs @@ -0,0 +1,111 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneSenderInvitationsList")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.SenderInvitationCollection), typeof(Oci.TenantmanagercontrolplaneService.Responses.ListSenderInvitationsResponse) })] + public class GetOCITenantmanagercontrolplaneSenderInvitationsList : OCISenderInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The tenancy that the invitation is addressed to.")] + public string RecipientTenancyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The lifecycle state of the resource.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The status of the sender invitation.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", 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 timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListSenderInvitationsRequest request; + + try + { + request = new ListSenderInvitationsRequest + { + CompartmentId = CompartmentId, + RecipientTenancyId = RecipientTenancyId, + LifecycleState = LifecycleState, + Status = Status, + DisplayName = DisplayName, + 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.SenderInvitationCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListSenderInvitationsRequest request) => Enumerable.Repeat(client.ListSenderInvitations(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSenderInvitationsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSenderInvitationsResponse response; + private delegate IEnumerable RequestDelegate(ListSenderInvitationsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequest.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequest.cs new file mode 100644 index 000000000..b883da72a --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequest.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; +using Oci.Common.Waiters; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.WorkRequest), typeof(Oci.TenantmanagercontrolplaneService.Responses.GetWorkRequestResponse) })] + public class GetOCITenantmanagercontrolplaneWorkRequest : OCIWorkRequestCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.", ParameterSetName = Default)] + public string WorkRequestId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = StatusParamSet)] + public Oci.TenantmanagercontrolplaneService.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 (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/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestErrorsList.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestErrorsList.cs new file mode 100644 index 000000000..0d4e785e6 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestErrorsList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.WorkRequestErrorCollection), typeof(Oci.TenantmanagercontrolplaneService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCITenantmanagercontrolplaneWorkRequestErrorsList : OCIWorkRequestCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { 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 = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = 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, + CompartmentId = CompartmentId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(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/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestLogsList.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestLogsList.cs new file mode 100644 index 000000000..a4400f681 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestLogsList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.WorkRequestLogEntryCollection), typeof(Oci.TenantmanagercontrolplaneService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCITenantmanagercontrolplaneWorkRequestLogsList : OCIWorkRequestCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { 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 = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = 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, + CompartmentId = CompartmentId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(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/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestsList.cs b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestsList.cs new file mode 100644 index 000000000..42bba4984 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Get-OCITenantmanagercontrolplaneWorkRequestsList.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Get", "OCITenantmanagercontrolplaneWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.WorkRequestCollection), typeof(Oci.TenantmanagercontrolplaneService.Responses.ListWorkRequestsResponse) })] + public class GetOCITenantmanagercontrolplaneWorkRequestsList : OCIWorkRequestCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { 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 = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = 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, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestCollection, true); + } + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(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/Tenantmanagercontrolplane/Cmdlets/Invoke-OCITenantmanagercontrolplaneIgnoreRecipientInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/Invoke-OCITenantmanagercontrolplaneIgnoreRecipientInvitation.cs new file mode 100644 index 000000000..a466688f2 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Invoke-OCITenantmanagercontrolplaneIgnoreRecipientInvitation.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Invoke", "OCITenantmanagercontrolplaneIgnoreRecipientInvitation")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.RecipientInvitation), typeof(Oci.TenantmanagercontrolplaneService.Responses.IgnoreRecipientInvitationResponse) })] + public class InvokeOCITenantmanagercontrolplaneIgnoreRecipientInvitation : OCIRecipientInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of recipient invitation to ignore.")] + public string RecipientInvitationId { 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; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + IgnoreRecipientInvitationRequest request; + + try + { + request = new IgnoreRecipientInvitationRequest + { + RecipientInvitationId = RecipientInvitationId, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.IgnoreRecipientInvitation(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RecipientInvitation); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private IgnoreRecipientInvitationResponse response; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/New-OCITenantmanagercontrolplaneSenderInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/New-OCITenantmanagercontrolplaneSenderInvitation.cs new file mode 100644 index 000000000..de82000bb --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/New-OCITenantmanagercontrolplaneSenderInvitation.cs @@ -0,0 +1,62 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("New", "OCITenantmanagercontrolplaneSenderInvitation")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.SenderInvitation), typeof(Oci.TenantmanagercontrolplaneService.Responses.CreateSenderInvitationResponse) })] + public class NewOCITenantmanagercontrolplaneSenderInvitation : OCISenderInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for sender invitation creation.")] + public CreateSenderInvitationDetails CreateSenderInvitationDetails { 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(); + CreateSenderInvitationRequest request; + + try + { + request = new CreateSenderInvitationRequest + { + CreateSenderInvitationDetails = CreateSenderInvitationDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateSenderInvitation(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SenderInvitation); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateSenderInvitationResponse response; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/OCILinkCmdlet.cs b/Tenantmanagercontrolplane/Cmdlets/OCILinkCmdlet.cs new file mode 100644 index 000000000..4c20a59d9 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/OCILinkCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.TenantmanagercontrolplaneService; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + public abstract class OCILinkCmdlet : 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 LinkClient(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 LinkClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Tenantmanagercontrolplane/Cmdlets/OCIRecipientInvitationCmdlet.cs b/Tenantmanagercontrolplane/Cmdlets/OCIRecipientInvitationCmdlet.cs new file mode 100644 index 000000000..553b26db5 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/OCIRecipientInvitationCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.TenantmanagercontrolplaneService; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + public abstract class OCIRecipientInvitationCmdlet : 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 RecipientInvitationClient(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 RecipientInvitationClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Tenantmanagercontrolplane/Cmdlets/OCISenderInvitationCmdlet.cs b/Tenantmanagercontrolplane/Cmdlets/OCISenderInvitationCmdlet.cs new file mode 100644 index 000000000..a8f3d7dab --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/OCISenderInvitationCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.TenantmanagercontrolplaneService; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + public abstract class OCISenderInvitationCmdlet : 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 SenderInvitationClient(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 SenderInvitationClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Tenantmanagercontrolplane/Cmdlets/OCIWorkRequestCmdlet.cs b/Tenantmanagercontrolplane/Cmdlets/OCIWorkRequestCmdlet.cs new file mode 100644 index 000000000..749872882 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/OCIWorkRequestCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.Common.Retry; +using Oci.TenantmanagercontrolplaneService; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + public abstract class OCIWorkRequestCmdlet : 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 WorkRequestClient(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 WorkRequestClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Tenantmanagercontrolplane/Cmdlets/Receive-OCITenantmanagercontrolplaneRecipientInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/Receive-OCITenantmanagercontrolplaneRecipientInvitation.cs new file mode 100644 index 000000000..91d861c26 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Receive-OCITenantmanagercontrolplaneRecipientInvitation.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Receive", "OCITenantmanagercontrolplaneRecipientInvitation")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.TenantmanagercontrolplaneService.Responses.AcceptRecipientInvitationResponse) })] + public class ReceiveOCITenantmanagercontrolplaneRecipientInvitation : OCIRecipientInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of recipient invitation to accept.")] + public string RecipientInvitationId { 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; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + AcceptRecipientInvitationRequest request; + + try + { + request = new AcceptRecipientInvitationRequest + { + RecipientInvitationId = RecipientInvitationId, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.AcceptRecipientInvitation(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private AcceptRecipientInvitationResponse response; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Remove-OCITenantmanagercontrolplaneLink.cs b/Tenantmanagercontrolplane/Cmdlets/Remove-OCITenantmanagercontrolplaneLink.cs new file mode 100644 index 000000000..a64ff11b9 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Remove-OCITenantmanagercontrolplaneLink.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Remove", "OCITenantmanagercontrolplaneLink", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.TenantmanagercontrolplaneService.Responses.DeleteLinkResponse) })] + public class RemoveOCITenantmanagercontrolplaneLink : OCILinkCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the link to terminate.")] + public string LinkId { 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("OCITenantmanagercontrolplaneLink", "Remove")) + { + return; + } + + DeleteLinkRequest request; + + try + { + request = new DeleteLinkRequest + { + LinkId = LinkId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteLink(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteLinkResponse response; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Stop-OCITenantmanagercontrolplaneSenderInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/Stop-OCITenantmanagercontrolplaneSenderInvitation.cs new file mode 100644 index 000000000..eb9a15988 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Stop-OCITenantmanagercontrolplaneSenderInvitation.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Stop", "OCITenantmanagercontrolplaneSenderInvitation")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.TenantmanagercontrolplaneService.Responses.CancelSenderInvitationResponse) })] + public class StopOCITenantmanagercontrolplaneSenderInvitation : OCISenderInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the sender invitation to cancel.")] + public string SenderInvitationId { 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; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CancelSenderInvitationRequest request; + + try + { + request = new CancelSenderInvitationRequest + { + SenderInvitationId = SenderInvitationId, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CancelSenderInvitation(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CancelSenderInvitationResponse response; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneRecipientInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneRecipientInvitation.cs new file mode 100644 index 000000000..7b44e6005 --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneRecipientInvitation.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Update", "OCITenantmanagercontrolplaneRecipientInvitation")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.RecipientInvitation), typeof(Oci.TenantmanagercontrolplaneService.Responses.UpdateRecipientInvitationResponse) })] + public class UpdateOCITenantmanagercontrolplaneRecipientInvitation : OCIRecipientInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the recipient invitation to update.")] + public string RecipientInvitationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateRecipientInvitationDetails UpdateRecipientInvitationDetails { 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(); + UpdateRecipientInvitationRequest request; + + try + { + request = new UpdateRecipientInvitationRequest + { + RecipientInvitationId = RecipientInvitationId, + UpdateRecipientInvitationDetails = UpdateRecipientInvitationDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateRecipientInvitation(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RecipientInvitation); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateRecipientInvitationResponse response; + } +} diff --git a/Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneSenderInvitation.cs b/Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneSenderInvitation.cs new file mode 100644 index 000000000..4482e3a8c --- /dev/null +++ b/Tenantmanagercontrolplane/Cmdlets/Update-OCITenantmanagercontrolplaneSenderInvitation.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200801 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +using System; +using System.Management.Automation; +using Oci.TenantmanagercontrolplaneService.Requests; +using Oci.TenantmanagercontrolplaneService.Responses; +using Oci.TenantmanagercontrolplaneService.Models; + +namespace Oci.TenantmanagercontrolplaneService.Cmdlets +{ + [Cmdlet("Update", "OCITenantmanagercontrolplaneSenderInvitation")] + [OutputType(new System.Type[] { typeof(Oci.TenantmanagercontrolplaneService.Models.SenderInvitation), typeof(Oci.TenantmanagercontrolplaneService.Responses.UpdateSenderInvitationResponse) })] + public class UpdateOCITenantmanagercontrolplaneSenderInvitation : OCISenderInvitationCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the sender invitation to update.")] + public string SenderInvitationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateSenderInvitationDetails UpdateSenderInvitationDetails { 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(); + UpdateSenderInvitationRequest request; + + try + { + request = new UpdateSenderInvitationRequest + { + SenderInvitationId = SenderInvitationId, + UpdateSenderInvitationDetails = UpdateSenderInvitationDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateSenderInvitation(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SenderInvitation); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateSenderInvitationResponse response; + } +} diff --git a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.csproj b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.csproj new file mode 100644 index 000000000..67de1dcf6 --- /dev/null +++ b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Tenantmanagercontrolplane + OCI.PSModules.Tenantmanagercontrolplane + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Tenantmanagercontrolplane + Tenantmanagercontrolplane Service + + + + + + + + + + + diff --git a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 new file mode 100644 index 000000000..87221b5ed --- /dev/null +++ b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 @@ -0,0 +1,148 @@ +# +# Module manifest for module 'OCI.PSModules.Tenantmanagercontrolplane' +# +# Generated by: Oracle Cloud Infrastructure +# +# Generated on: 10/29/2020 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Tenantmanagercontrolplane.dll' + +# Version number of this module. +ModuleVersion = '1.11.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '6b57c3ab-69f1-4092-a5c1-380523593dd4' + +# 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 Tenantmanagercontrolplane 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 = '1.11.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Tenantmanagercontrolplane.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-OCITenantmanagercontrolplaneLink', + 'Get-OCITenantmanagercontrolplaneLinksList', + 'Get-OCITenantmanagercontrolplaneRecipientInvitation', + 'Get-OCITenantmanagercontrolplaneRecipientInvitationsList', + 'Get-OCITenantmanagercontrolplaneSenderInvitation', + 'Get-OCITenantmanagercontrolplaneSenderInvitationsList', + 'Get-OCITenantmanagercontrolplaneWorkRequest', + 'Get-OCITenantmanagercontrolplaneWorkRequestErrorsList', + 'Get-OCITenantmanagercontrolplaneWorkRequestLogsList', + 'Get-OCITenantmanagercontrolplaneWorkRequestsList', + 'Invoke-OCITenantmanagercontrolplaneIgnoreRecipientInvitation', + 'New-OCITenantmanagercontrolplaneSenderInvitation', + 'Receive-OCITenantmanagercontrolplaneRecipientInvitation', + 'Remove-OCITenantmanagercontrolplaneLink', + 'Stop-OCITenantmanagercontrolplaneSenderInvitation', + 'Update-OCITenantmanagercontrolplaneRecipientInvitation', + 'Update-OCITenantmanagercontrolplaneSenderInvitation' + +# 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','Tenantmanagercontrolplane' + + # 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/Usageapi/Cmdlets/Invoke-OCIUsageapiRequestSummarizedUsages.cs b/Usageapi/Cmdlets/Invoke-OCIUsageapiRequestSummarizedUsages.cs index 1aaa31eff..f941c0b11 100644 --- a/Usageapi/Cmdlets/Invoke-OCIUsageapiRequestSummarizedUsages.cs +++ b/Usageapi/Cmdlets/Invoke-OCIUsageapiRequestSummarizedUsages.cs @@ -18,7 +18,7 @@ namespace Oci.UsageapiService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.UsageapiService.Models.UsageAggregation), typeof(Oci.UsageapiService.Responses.RequestSummarizedUsagesResponse) })] public class InvokeOCIUsageapiRequestSummarizedUsages : OCIUsageapiCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"getUsageRequest contain query inforamtion")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"getUsageRequest contains query inforamtion.")] public RequestSummarizedUsagesDetails RequestSummarizedUsagesDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] diff --git a/Usageapi/OCI.PSModules.Usageapi.psd1 b/Usageapi/OCI.PSModules.Usageapi.psd1 index 9baf63411..ff2fb7e4a 100644 --- a/Usageapi/OCI.PSModules.Usageapi.psd1 +++ b/Usageapi/OCI.PSModules.Usageapi.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Usageapi.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.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 cf155606c..ea52aae7c 100644 --- a/Vault/OCI.PSModules.Vault.psd1 +++ b/Vault/OCI.PSModules.Vault.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Vault.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vault.dll' diff --git a/Waas/OCI.PSModules.Waas.psd1 b/Waas/OCI.PSModules.Waas.psd1 index 7373657f9..239773138 100644 --- a/Waas/OCI.PSModules.Waas.psd1 +++ b/Waas/OCI.PSModules.Waas.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Waas.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waas.dll' diff --git a/Workrequests/OCI.PSModules.Workrequests.psd1 b/Workrequests/OCI.PSModules.Workrequests.psd1 index 99bdb7c72..309e4db42 100644 --- a/Workrequests/OCI.PSModules.Workrequests.psd1 +++ b/Workrequests/OCI.PSModules.Workrequests.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 10/22/2020 +# Generated on: 10/29/2020 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Workrequests.dll' # Version number of this module. -ModuleVersion = '1.10.0' +ModuleVersion = '1.11.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -51,7 +51,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.10.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.11.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Workrequests.dll' diff --git a/oci-powershell-modules.sln b/oci-powershell-modules.sln index 0479861f2..4cf05144e 100644 --- a/oci-powershell-modules.sln +++ b/oci-powershell-modules.sln @@ -121,6 +121,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Opsi", "Opsi\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Computeinstanceagent", "Computeinstanceagent\OCI.PSModules.Computeinstanceagent.csproj", "{33B53A82-64F5-4973-A4A9-05B9A772840A}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Optimizer", "Optimizer\OCI.PSModules.Optimizer.csproj", "{79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Tenantmanagercontrolplane", "Tenantmanagercontrolplane\OCI.PSModules.Tenantmanagercontrolplane.csproj", "{D36874F3-FFA9-401D-8E0C-950758A623FF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -854,5 +858,29 @@ Global {33B53A82-64F5-4973-A4A9-05B9A772840A}.Release|x64.Build.0 = Release|Any CPU {33B53A82-64F5-4973-A4A9-05B9A772840A}.Release|x86.ActiveCfg = Release|Any CPU {33B53A82-64F5-4973-A4A9-05B9A772840A}.Release|x86.Build.0 = Release|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Debug|x64.ActiveCfg = Debug|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Debug|x64.Build.0 = Debug|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Debug|x86.ActiveCfg = Debug|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Debug|x86.Build.0 = Debug|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Release|Any CPU.Build.0 = Release|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Release|x64.ActiveCfg = Release|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Release|x64.Build.0 = Release|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Release|x86.ActiveCfg = Release|Any CPU + {79CEDE8D-7DE5-4680-AB8F-4BC9163E47A1}.Release|x86.Build.0 = Release|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Debug|x64.ActiveCfg = Debug|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Debug|x64.Build.0 = Debug|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Debug|x86.ActiveCfg = Debug|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Debug|x86.Build.0 = Debug|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|Any CPU.Build.0 = Release|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|x64.ActiveCfg = Release|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|x64.Build.0 = Release|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|x86.ActiveCfg = Release|Any CPU + {D36874F3-FFA9-401D-8E0C-950758A623FF}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal