From 10b3da6df4d93b5db1a333a7b50939fb4c126fe4 Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Mon, 18 Jul 2022 17:00:54 +0000 Subject: [PATCH] Releasing version 36.1.0 --- Adm/OCI.PSModules.Adm.psd1 | 4 +- .../OCI.PSModules.Aianomalydetection.psd1 | 4 +- Ailanguage/OCI.PSModules.Ailanguage.psd1 | 4 +- Aispeech/OCI.PSModules.Aispeech.psd1 | 4 +- Aivision/OCI.PSModules.Aivision.psd1 | 4 +- Analytics/OCI.PSModules.Analytics.psd1 | 4 +- .../OCI.PSModules.Announcementsservice.psd1 | 4 +- Apigateway/OCI.PSModules.Apigateway.psd1 | 4 +- Apmconfig/OCI.PSModules.Apmconfig.psd1 | 4 +- .../OCI.PSModules.Apmcontrolplane.psd1 | 4 +- .../OCI.PSModules.Apmsynthetics.psd1 | 4 +- Apmtraces/OCI.PSModules.Apmtraces.psd1 | 4 +- .../OCI.PSModules.Applicationmigration.psd1 | 4 +- .../OCI.PSModules.Appmgmtcontrol.psd1 | 4 +- Artifacts/OCI.PSModules.Artifacts.psd1 | 4 +- Audit/OCI.PSModules.Audit.psd1 | 4 +- Autoscaling/OCI.PSModules.Autoscaling.psd1 | 4 +- Bastion/OCI.PSModules.Bastion.psd1 | 4 +- Bds/OCI.PSModules.Bds.psd1 | 4 +- Blockchain/OCI.PSModules.Blockchain.psd1 | 4 +- Budget/OCI.PSModules.Budget.psd1 | 4 +- CHANGELOG.md | 12 + Certificates/OCI.PSModules.Certificates.psd1 | 4 +- .../OCI.PSModules.Certificatesmanagement.psd1 | 4 +- Cims/OCI.PSModules.Cims.psd1 | 4 +- Cloudguard/OCI.PSModules.Cloudguard.psd1 | 4 +- Common/OCI.PSModules.Common.psd1 | 2 +- Common/Version.cs | 2 +- .../OCI.PSModules.Computeinstanceagent.psd1 | 4 +- .../OCI.PSModules.Containerengine.psd1 | 4 +- ...Get-OCIComputeInstanceMaintenanceReboot.cs | 63 +++++ Core/OCI.PSModules.Core.psd1 | 8 +- .../OCI.PSModules.Dashboardservice.psd1 | 4 +- Database/OCI.PSModules.Database.psd1 | 4 +- .../OCI.PSModules.Databasemanagement.psd1 | 4 +- .../OCI.PSModules.Databasemigration.psd1 | 4 +- .../OCI.PSModules.Databasetools.psd1 | 4 +- Datacatalog/OCI.PSModules.Datacatalog.psd1 | 4 +- .../OCI.PSModules.Dataconnectivity.psd1 | 4 +- Dataflow/OCI.PSModules.Dataflow.psd1 | 4 +- .../OCI.PSModules.Dataintegration.psd1 | 4 +- .../OCI.PSModules.Datalabelingservice.psd1 | 4 +- ...SModules.Datalabelingservicedataplane.psd1 | 4 +- Datasafe/OCI.PSModules.Datasafe.psd1 | 4 +- Datascience/OCI.PSModules.Datascience.psd1 | 4 +- Devops/OCI.PSModules.Devops.psd1 | 4 +- Directory.Build.props | 2 +- Dns/OCI.PSModules.Dns.psd1 | 4 +- Dts/OCI.PSModules.Dts.psd1 | 4 +- Email/OCI.PSModules.Email.psd1 | 4 +- Emwarehouse/OCI.PSModules.Emwarehouse.psd1 | 4 +- Events/OCI.PSModules.Events.psd1 | 4 +- Filestorage/OCI.PSModules.Filestorage.psd1 | 4 +- Functions/OCI.PSModules.Functions.psd1 | 4 +- .../Get-OCIFusionappsAdminUsersList.cs | 63 +++++ ...-OCIFusionappsDataMaskingActivitiesList.cs | 108 +++++++++ .../Get-OCIFusionappsDataMaskingActivity.cs | 105 ++++++++ .../Get-OCIFusionappsFusionEnvironment.cs | 99 ++++++++ ...FusionappsFusionEnvironmentFamiliesList.cs | 116 +++++++++ ...et-OCIFusionappsFusionEnvironmentFamily.cs | 99 ++++++++ ...psFusionEnvironmentFamilyLimitsAndUsage.cs | 63 +++++ ...sionEnvironmentFamilySubscriptionDetail.cs | 63 +++++ ...et-OCIFusionappsFusionEnvironmentStatus.cs | 63 +++++ ...Get-OCIFusionappsFusionEnvironmentsList.cs | 116 +++++++++ .../Get-OCIFusionappsRefreshActivitiesList.cs | 120 ++++++++++ .../Get-OCIFusionappsRefreshActivity.cs | 105 ++++++++ ...et-OCIFusionappsScheduledActivitiesList.cs | 124 ++++++++++ .../Get-OCIFusionappsScheduledActivity.cs | 105 ++++++++ .../Get-OCIFusionappsServiceAttachment.cs | 105 ++++++++ ...Get-OCIFusionappsServiceAttachmentsList.cs | 116 +++++++++ ...FusionappsTimeAvailableForRefreshesList.cs | 104 ++++++++ .../Cmdlets/Get-OCIFusionappsWorkRequest.cs | 99 ++++++++ .../Get-OCIFusionappsWorkRequestErrorsList.cs | 104 ++++++++ .../Get-OCIFusionappsWorkRequestLogsList.cs | 104 ++++++++ .../Get-OCIFusionappsWorkRequestsList.cs | 112 +++++++++ ...IFusionappsFusionEnvironmentCompartment.cs | 75 ++++++ ...nappsFusionEnvironmentFamilyCompartment.cs | 75 ++++++ .../New-OCIFusionappsDataMaskingActivity.cs | 71 ++++++ .../New-OCIFusionappsFusionEnvironment.cs | 67 ++++++ ...OCIFusionappsFusionEnvironmentAdminUser.cs | 71 ++++++ ...ew-OCIFusionappsFusionEnvironmentFamily.cs | 71 ++++++ .../New-OCIFusionappsRefreshActivity.cs | 71 ++++++ .../Cmdlets/OCIDataMaskingActivityCmdlet.cs | 86 +++++++ .../Cmdlets/OCIFusionEnvironmentCmdlet.cs | 86 +++++++ .../OCIFusionEnvironmentFamilyCmdlet.cs | 86 +++++++ .../Cmdlets/OCIRefreshActivityCmdlet.cs | 86 +++++++ .../Cmdlets/OCIScheduledActivityCmdlet.cs | 86 +++++++ .../Cmdlets/OCIServiceAttachmentCmdlet.cs | 86 +++++++ .../Remove-OCIFusionappsFusionEnvironment.cs | 76 ++++++ ...OCIFusionappsFusionEnvironmentAdminUser.cs | 80 +++++++ ...ve-OCIFusionappsFusionEnvironmentFamily.cs | 76 ++++++ ...-OCIFusionappsFusionEnvironmentPassword.cs | 79 ++++++ .../Update-OCIFusionappsFusionEnvironment.cs | 71 ++++++ ...te-OCIFusionappsFusionEnvironmentFamily.cs | 71 ++++++ Fusionapps/OCI.PSModules.Fusionapps.csproj | 23 ++ Fusionapps/OCI.PSModules.Fusionapps.psd1 | 164 +++++++++++++ ...OCI.PSModules.Genericartifactscontent.psd1 | 4 +- Goldengate/OCI.PSModules.Goldengate.psd1 | 4 +- ...PSModules.Governancerulescontrolplane.psd1 | 4 +- Healthchecks/OCI.PSModules.Healthchecks.psd1 | 4 +- Identity/OCI.PSModules.Identity.psd1 | 4 +- .../OCI.PSModules.Identitydataplane.psd1 | 4 +- Integration/OCI.PSModules.Integration.psd1 | 4 +- Jms/OCI.PSModules.Jms.psd1 | 4 +- .../OCI.PSModules.Keymanagement.psd1 | 4 +- .../OCI.PSModules.Licensemanager.psd1 | 4 +- Limits/OCI.PSModules.Limits.psd1 | 4 +- Loadbalancer/OCI.PSModules.Loadbalancer.psd1 | 4 +- Lockbox/Cmdlets/Get-OCILockbox.cs | 99 ++++++++ .../Cmdlets/Get-OCILockboxAccessMaterials.cs | 63 +++++ .../Cmdlets/Get-OCILockboxAccessRequest.cs | 99 ++++++++ .../Get-OCILockboxAccessRequestsList.cs | 124 ++++++++++ .../Cmdlets/Get-OCILockboxApprovalTemplate.cs | 99 ++++++++ .../Get-OCILockboxApprovalTemplatesList.cs | 116 +++++++++ Lockbox/Cmdlets/Get-OCILockboxWorkRequest.cs | 99 ++++++++ .../Get-OCILockboxWorkRequestErrorsList.cs | 104 ++++++++ .../Get-OCILockboxWorkRequestLogsList.cs | 104 ++++++++ .../Cmdlets/Get-OCILockboxWorkRequestsList.cs | 116 +++++++++ Lockbox/Cmdlets/Get-OCILockboxesList.cs | 124 ++++++++++ .../Invoke-OCILockboxHandleAccessRequest.cs | 75 ++++++ ...e-OCILockboxApprovalTemplateCompartment.cs | 75 ++++++ Lockbox/Cmdlets/Move-OCILockboxCompartment.cs | 75 ++++++ Lockbox/Cmdlets/New-OCILockbox.cs | 67 ++++++ .../Cmdlets/New-OCILockboxAccessRequest.cs | 67 ++++++ .../Cmdlets/New-OCILockboxApprovalTemplate.cs | 67 ++++++ Lockbox/Cmdlets/OCILockboxCmdlet.cs | 86 +++++++ Lockbox/Cmdlets/Remove-OCILockbox.cs | 80 +++++++ .../Remove-OCILockboxApprovalTemplate.cs | 76 ++++++ Lockbox/Cmdlets/Stop-OCILockboxWorkRequest.cs | 76 ++++++ Lockbox/Cmdlets/Update-OCILockbox.cs | 71 ++++++ .../Update-OCILockboxApprovalTemplate.cs | 71 ++++++ Lockbox/OCI.PSModules.Lockbox.csproj | 23 ++ Lockbox/OCI.PSModules.Lockbox.psd1 | 144 +++++++++++ Loganalytics/OCI.PSModules.Loganalytics.psd1 | 4 +- Logging/OCI.PSModules.Logging.psd1 | 4 +- .../OCI.PSModules.Loggingingestion.psd1 | 4 +- .../OCI.PSModules.Loggingsearch.psd1 | 4 +- .../OCI.PSModules.Managementagent.psd1 | 4 +- .../OCI.PSModules.Managementdashboard.psd1 | 4 +- Marketplace/OCI.PSModules.Marketplace.psd1 | 4 +- .../Cmdlets/Get-OCIMediaservicesMediaAsset.cs | 99 ++++++++ ...MediaAssetDistributionChannelAttachment.cs | 111 +++++++++ ...AssetDistributionChannelAttachmentsList.cs | 112 +++++++++ .../Get-OCIMediaservicesMediaAssetsList.cs | 148 ++++++++++++ .../Get-OCIMediaservicesMediaWorkflow.cs | 99 ++++++++ ...MediaservicesMediaWorkflowConfiguration.cs | 99 ++++++++ ...servicesMediaWorkflowConfigurationsList.cs | 116 +++++++++ .../Get-OCIMediaservicesMediaWorkflowJob.cs | 99 ++++++++ ...et-OCIMediaservicesMediaWorkflowJobFact.cs | 67 ++++++ ...IMediaservicesMediaWorkflowJobFactsList.cs | 112 +++++++++ ...t-OCIMediaservicesMediaWorkflowJobsList.cs | 120 ++++++++++ ...rvicesMediaWorkflowTaskDeclarationsList.cs | 116 +++++++++ .../Get-OCIMediaservicesMediaWorkflowsList.cs | 116 +++++++++ .../Get-OCIMediaservicesStreamCdnConfig.cs | 99 ++++++++ ...et-OCIMediaservicesStreamCdnConfigsList.cs | 116 +++++++++ ...IMediaservicesStreamDistributionChannel.cs | 99 ++++++++ ...aservicesStreamDistributionChannelsList.cs | 116 +++++++++ ...t-OCIMediaservicesStreamPackagingConfig.cs | 99 ++++++++ ...MediaservicesStreamPackagingConfigsList.cs | 116 +++++++++ ...CIMediaservicesSystemMediaWorkflowsList.cs | 104 ++++++++ ...servicesIngestStreamDistributionChannel.cs | 71 ++++++ ...e-OCIMediaservicesMediaAssetCompartment.cs | 75 ++++++ ...CIMediaservicesMediaWorkflowCompartment.cs | 75 ++++++ ...esMediaWorkflowConfigurationCompartment.cs | 75 ++++++ ...ediaservicesMediaWorkflowJobCompartment.cs | 75 ++++++ ...cesStreamDistributionChannelCompartment.cs | 75 ++++++ .../Cmdlets/New-OCIMediaservicesMediaAsset.cs | 67 ++++++ .../New-OCIMediaservicesMediaWorkflow.cs | 67 ++++++ ...MediaservicesMediaWorkflowConfiguration.cs | 67 ++++++ .../New-OCIMediaservicesMediaWorkflowJob.cs | 67 ++++++ .../New-OCIMediaservicesStreamCdnConfig.cs | 67 ++++++ ...IMediaservicesStreamDistributionChannel.cs | 67 ++++++ ...w-OCIMediaservicesStreamPackagingConfig.cs | 67 ++++++ .../Cmdlets/OCIMediaServicesCmdlet.cs | 86 +++++++ .../Remove-OCIMediaservicesMediaAsset.cs | 80 +++++++ ...MediaAssetDistributionChannelAttachment.cs | 84 +++++++ .../Remove-OCIMediaservicesMediaWorkflow.cs | 76 ++++++ ...MediaservicesMediaWorkflowConfiguration.cs | 76 ++++++ ...Remove-OCIMediaservicesMediaWorkflowJob.cs | 76 ++++++ .../Remove-OCIMediaservicesStreamCdnConfig.cs | 76 ++++++ ...IMediaservicesStreamDistributionChannel.cs | 76 ++++++ ...e-OCIMediaservicesStreamPackagingConfig.cs | 76 ++++++ .../Update-OCIMediaservicesMediaAsset.cs | 71 ++++++ .../Update-OCIMediaservicesMediaWorkflow.cs | 71 ++++++ ...MediaservicesMediaWorkflowConfiguration.cs | 71 ++++++ ...Update-OCIMediaservicesMediaWorkflowJob.cs | 71 ++++++ .../Update-OCIMediaservicesStreamCdnConfig.cs | 71 ++++++ ...IMediaservicesStreamDistributionChannel.cs | 71 ++++++ ...e-OCIMediaservicesStreamPackagingConfig.cs | 71 ++++++ .../OCI.PSModules.Mediaservices.csproj | 23 ++ .../OCI.PSModules.Mediaservices.psd1 | 178 ++++++++++++++ Monitoring/OCI.PSModules.Monitoring.psd1 | 4 +- Mysql/OCI.PSModules.Mysql.psd1 | 4 +- .../OCI.PSModules.Networkfirewall.psd1 | 4 +- .../OCI.PSModules.Networkloadbalancer.psd1 | 4 +- Nosql/OCI.PSModules.Nosql.psd1 | 4 +- .../OCI.PSModules.Objectstorage.psd1 | 4 +- Oce/OCI.PSModules.Oce.psd1 | 4 +- Ocvp/OCI.PSModules.Ocvp.psd1 | 4 +- Oda/OCI.PSModules.Oda.psd1 | 4 +- .../OCI.PSModules.Onesubscription.psd1 | 4 +- Ons/OCI.PSModules.Ons.psd1 | 4 +- Opa/Cmdlets/Get-OCIOpaInstance.cs | 99 ++++++++ Opa/Cmdlets/Get-OCIOpaInstancesList.cs | 116 +++++++++ Opa/Cmdlets/Get-OCIOpaWorkRequest.cs | 99 ++++++++ .../Get-OCIOpaWorkRequestErrorsList.cs | 104 ++++++++ Opa/Cmdlets/Get-OCIOpaWorkRequestLogsList.cs | 104 ++++++++ Opa/Cmdlets/Get-OCIOpaWorkRequestsList.cs | 116 +++++++++ Opa/Cmdlets/Move-OCIOpaInstanceCompartment.cs | 71 ++++++ Opa/Cmdlets/New-OCIOpaInstance.cs | 67 ++++++ Opa/Cmdlets/OCIOpaInstanceCmdlet.cs | 86 +++++++ Opa/Cmdlets/Remove-OCIOpaInstance.cs | 76 ++++++ Opa/Cmdlets/Stop-OCIOpaWorkRequest.cs | 76 ++++++ Opa/Cmdlets/Update-OCIOpaInstance.cs | 71 ++++++ Opa/OCI.PSModules.Opa.csproj | 23 ++ Opa/OCI.PSModules.Opa.psd1 | 136 +++++++++++ .../OCI.PSModules.Operatoraccesscontrol.psd1 | 4 +- Opsi/OCI.PSModules.Opsi.psd1 | 4 +- Optimizer/OCI.PSModules.Optimizer.psd1 | 4 +- Osmanagement/OCI.PSModules.Osmanagement.psd1 | 4 +- Ospgateway/OCI.PSModules.Ospgateway.psd1 | 4 +- .../OCI.PSModules.Osubbillingschedule.psd1 | 4 +- ...SModules.Osuborganizationsubscription.psd1 | 4 +- .../OCI.PSModules.Osubsubscription.psd1 | 4 +- Osubusage/OCI.PSModules.Osubusage.psd1 | 4 +- PSModules/OCI.PSModules.psd1 | 226 +++++++++--------- .../OCI.PSModules.Resourcemanager.psd1 | 4 +- .../OCI.PSModules.Resourcesearch.psd1 | 4 +- Rover/OCI.PSModules.Rover.psd1 | 4 +- Sch/OCI.PSModules.Sch.psd1 | 4 +- Secrets/OCI.PSModules.Secrets.psd1 | 4 +- .../OCI.PSModules.Servicecatalog.psd1 | 4 +- .../OCI.PSModules.Servicemanagerproxy.psd1 | 4 +- Servicemesh/OCI.PSModules.Servicemesh.psd1 | 4 +- .../OCI.PSModules.Stackmonitoring.psd1 | 4 +- Streaming/OCI.PSModules.Streaming.psd1 | 4 +- ...I.PSModules.Tenantmanagercontrolplane.psd1 | 4 +- .../OCI.PSModules.Threatintelligence.psd1 | 4 +- Usage/OCI.PSModules.Usage.psd1 | 4 +- Usageapi/OCI.PSModules.Usageapi.psd1 | 4 +- Vault/OCI.PSModules.Vault.psd1 | 4 +- .../OCI.PSModules.Visualbuilder.psd1 | 4 +- Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 | 4 +- .../OCI.PSModules.Vulnerabilityscanning.psd1 | 4 +- Waa/OCI.PSModules.Waa.psd1 | 4 +- Waas/OCI.PSModules.Waas.psd1 | 4 +- Waf/OCI.PSModules.Waf.psd1 | 4 +- Workrequests/OCI.PSModules.Workrequests.psd1 | 4 +- oci-powershell-modules.sln | 56 +++++ 249 files changed, 12148 insertions(+), 335 deletions(-) create mode 100644 Core/Cmdlets/Get-OCIComputeInstanceMaintenanceReboot.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsAdminUsersList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivitiesList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivity.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironment.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamiliesList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamily.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilyLimitsAndUsage.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilySubscriptionDetail.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentStatus.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentsList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivitiesList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivity.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivitiesList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivity.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachment.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachmentsList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsTimeAvailableForRefreshesList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequest.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestErrorsList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestLogsList.cs create mode 100644 Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestsList.cs create mode 100644 Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentCompartment.cs create mode 100644 Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentFamilyCompartment.cs create mode 100644 Fusionapps/Cmdlets/New-OCIFusionappsDataMaskingActivity.cs create mode 100644 Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironment.cs create mode 100644 Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentAdminUser.cs create mode 100644 Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentFamily.cs create mode 100644 Fusionapps/Cmdlets/New-OCIFusionappsRefreshActivity.cs create mode 100644 Fusionapps/Cmdlets/OCIDataMaskingActivityCmdlet.cs create mode 100644 Fusionapps/Cmdlets/OCIFusionEnvironmentCmdlet.cs create mode 100644 Fusionapps/Cmdlets/OCIFusionEnvironmentFamilyCmdlet.cs create mode 100644 Fusionapps/Cmdlets/OCIRefreshActivityCmdlet.cs create mode 100644 Fusionapps/Cmdlets/OCIScheduledActivityCmdlet.cs create mode 100644 Fusionapps/Cmdlets/OCIServiceAttachmentCmdlet.cs create mode 100644 Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironment.cs create mode 100644 Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentAdminUser.cs create mode 100644 Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentFamily.cs create mode 100644 Fusionapps/Cmdlets/Reset-OCIFusionappsFusionEnvironmentPassword.cs create mode 100644 Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironment.cs create mode 100644 Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironmentFamily.cs create mode 100644 Fusionapps/OCI.PSModules.Fusionapps.csproj create mode 100644 Fusionapps/OCI.PSModules.Fusionapps.psd1 create mode 100644 Lockbox/Cmdlets/Get-OCILockbox.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxAccessMaterials.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxAccessRequest.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxApprovalTemplate.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxApprovalTemplatesList.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxWorkRequest.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxWorkRequestErrorsList.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxWorkRequestLogsList.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxWorkRequestsList.cs create mode 100644 Lockbox/Cmdlets/Get-OCILockboxesList.cs create mode 100644 Lockbox/Cmdlets/Invoke-OCILockboxHandleAccessRequest.cs create mode 100644 Lockbox/Cmdlets/Move-OCILockboxApprovalTemplateCompartment.cs create mode 100644 Lockbox/Cmdlets/Move-OCILockboxCompartment.cs create mode 100644 Lockbox/Cmdlets/New-OCILockbox.cs create mode 100644 Lockbox/Cmdlets/New-OCILockboxAccessRequest.cs create mode 100644 Lockbox/Cmdlets/New-OCILockboxApprovalTemplate.cs create mode 100644 Lockbox/Cmdlets/OCILockboxCmdlet.cs create mode 100644 Lockbox/Cmdlets/Remove-OCILockbox.cs create mode 100644 Lockbox/Cmdlets/Remove-OCILockboxApprovalTemplate.cs create mode 100644 Lockbox/Cmdlets/Stop-OCILockboxWorkRequest.cs create mode 100644 Lockbox/Cmdlets/Update-OCILockbox.cs create mode 100644 Lockbox/Cmdlets/Update-OCILockboxApprovalTemplate.cs create mode 100644 Lockbox/OCI.PSModules.Lockbox.csproj create mode 100644 Lockbox/OCI.PSModules.Lockbox.psd1 create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAsset.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachmentsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflow.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfiguration.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfigurationsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJob.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFact.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFactsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowTaskDeclarationsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfig.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfigsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannel.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannelsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfig.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfigsList.cs create mode 100644 Mediaservices/Cmdlets/Get-OCIMediaservicesSystemMediaWorkflowsList.cs create mode 100644 Mediaservices/Cmdlets/Invoke-OCIMediaservicesIngestStreamDistributionChannel.cs create mode 100644 Mediaservices/Cmdlets/Move-OCIMediaservicesMediaAssetCompartment.cs create mode 100644 Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowCompartment.cs create mode 100644 Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowConfigurationCompartment.cs create mode 100644 Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowJobCompartment.cs create mode 100644 Mediaservices/Cmdlets/Move-OCIMediaservicesStreamDistributionChannelCompartment.cs create mode 100644 Mediaservices/Cmdlets/New-OCIMediaservicesMediaAsset.cs create mode 100644 Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflow.cs create mode 100644 Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowConfiguration.cs create mode 100644 Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowJob.cs create mode 100644 Mediaservices/Cmdlets/New-OCIMediaservicesStreamCdnConfig.cs create mode 100644 Mediaservices/Cmdlets/New-OCIMediaservicesStreamDistributionChannel.cs create mode 100644 Mediaservices/Cmdlets/New-OCIMediaservicesStreamPackagingConfig.cs create mode 100644 Mediaservices/Cmdlets/OCIMediaServicesCmdlet.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAsset.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflow.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowConfiguration.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowJob.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamCdnConfig.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamDistributionChannel.cs create mode 100644 Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamPackagingConfig.cs create mode 100644 Mediaservices/Cmdlets/Update-OCIMediaservicesMediaAsset.cs create mode 100644 Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflow.cs create mode 100644 Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowConfiguration.cs create mode 100644 Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowJob.cs create mode 100644 Mediaservices/Cmdlets/Update-OCIMediaservicesStreamCdnConfig.cs create mode 100644 Mediaservices/Cmdlets/Update-OCIMediaservicesStreamDistributionChannel.cs create mode 100644 Mediaservices/Cmdlets/Update-OCIMediaservicesStreamPackagingConfig.cs create mode 100644 Mediaservices/OCI.PSModules.Mediaservices.csproj create mode 100644 Mediaservices/OCI.PSModules.Mediaservices.psd1 create mode 100644 Opa/Cmdlets/Get-OCIOpaInstance.cs create mode 100644 Opa/Cmdlets/Get-OCIOpaInstancesList.cs create mode 100644 Opa/Cmdlets/Get-OCIOpaWorkRequest.cs create mode 100644 Opa/Cmdlets/Get-OCIOpaWorkRequestErrorsList.cs create mode 100644 Opa/Cmdlets/Get-OCIOpaWorkRequestLogsList.cs create mode 100644 Opa/Cmdlets/Get-OCIOpaWorkRequestsList.cs create mode 100644 Opa/Cmdlets/Move-OCIOpaInstanceCompartment.cs create mode 100644 Opa/Cmdlets/New-OCIOpaInstance.cs create mode 100644 Opa/Cmdlets/OCIOpaInstanceCmdlet.cs create mode 100644 Opa/Cmdlets/Remove-OCIOpaInstance.cs create mode 100644 Opa/Cmdlets/Stop-OCIOpaWorkRequest.cs create mode 100644 Opa/Cmdlets/Update-OCIOpaInstance.cs create mode 100644 Opa/OCI.PSModules.Opa.csproj create mode 100644 Opa/OCI.PSModules.Opa.psd1 diff --git a/Adm/OCI.PSModules.Adm.psd1 b/Adm/OCI.PSModules.Adm.psd1 index 579b7166f..89c01554e 100644 --- a/Adm/OCI.PSModules.Adm.psd1 +++ b/Adm/OCI.PSModules.Adm.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Adm.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Adm.dll' diff --git a/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 b/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 index c9debb913..ea9adf809 100644 --- a/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 +++ b/Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aianomalydetection.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aianomalydetection.dll' diff --git a/Ailanguage/OCI.PSModules.Ailanguage.psd1 b/Ailanguage/OCI.PSModules.Ailanguage.psd1 index d55c69d03..47987f2a8 100644 --- a/Ailanguage/OCI.PSModules.Ailanguage.psd1 +++ b/Ailanguage/OCI.PSModules.Ailanguage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ailanguage.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ailanguage.dll' diff --git a/Aispeech/OCI.PSModules.Aispeech.psd1 b/Aispeech/OCI.PSModules.Aispeech.psd1 index 32d81a447..69005c32a 100644 --- a/Aispeech/OCI.PSModules.Aispeech.psd1 +++ b/Aispeech/OCI.PSModules.Aispeech.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aispeech.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aispeech.dll' diff --git a/Aivision/OCI.PSModules.Aivision.psd1 b/Aivision/OCI.PSModules.Aivision.psd1 index e5df5aa89..9a45c921e 100644 --- a/Aivision/OCI.PSModules.Aivision.psd1 +++ b/Aivision/OCI.PSModules.Aivision.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aivision.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aivision.dll' diff --git a/Analytics/OCI.PSModules.Analytics.psd1 b/Analytics/OCI.PSModules.Analytics.psd1 index 0c77bea72..da681de80 100644 --- a/Analytics/OCI.PSModules.Analytics.psd1 +++ b/Analytics/OCI.PSModules.Analytics.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Analytics.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Analytics.dll' diff --git a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 index 34941e5a0..1b2f0a446 100644 --- a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 +++ b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Announcementsservice.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Announcementsservice.dll' diff --git a/Apigateway/OCI.PSModules.Apigateway.psd1 b/Apigateway/OCI.PSModules.Apigateway.psd1 index df9074cef..15ac21960 100644 --- a/Apigateway/OCI.PSModules.Apigateway.psd1 +++ b/Apigateway/OCI.PSModules.Apigateway.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apigateway.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apigateway.dll' diff --git a/Apmconfig/OCI.PSModules.Apmconfig.psd1 b/Apmconfig/OCI.PSModules.Apmconfig.psd1 index 90c69a730..fc583a37d 100644 --- a/Apmconfig/OCI.PSModules.Apmconfig.psd1 +++ b/Apmconfig/OCI.PSModules.Apmconfig.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmconfig.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmconfig.dll' diff --git a/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 index 642e4c0ae..b4e00a6e7 100644 --- a/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 +++ b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmcontrolplane.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmcontrolplane.dll' diff --git a/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 b/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 index 28f6d51f1..8116ce88b 100644 --- a/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 +++ b/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmsynthetics.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmsynthetics.dll' diff --git a/Apmtraces/OCI.PSModules.Apmtraces.psd1 b/Apmtraces/OCI.PSModules.Apmtraces.psd1 index b0d05d609..111fad312 100644 --- a/Apmtraces/OCI.PSModules.Apmtraces.psd1 +++ b/Apmtraces/OCI.PSModules.Apmtraces.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Apmtraces.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmtraces.dll' diff --git a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 index e5b9265de..745df6a40 100644 --- a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 +++ b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Applicationmigration.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Applicationmigration.dll' diff --git a/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 b/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 index 5e7ad8f63..b91d06181 100644 --- a/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 +++ b/Appmgmtcontrol/OCI.PSModules.Appmgmtcontrol.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Appmgmtcontrol.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Appmgmtcontrol.dll' diff --git a/Artifacts/OCI.PSModules.Artifacts.psd1 b/Artifacts/OCI.PSModules.Artifacts.psd1 index f0560048d..85c3abdc2 100644 --- a/Artifacts/OCI.PSModules.Artifacts.psd1 +++ b/Artifacts/OCI.PSModules.Artifacts.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Artifacts.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Artifacts.dll' diff --git a/Audit/OCI.PSModules.Audit.psd1 b/Audit/OCI.PSModules.Audit.psd1 index bcb49e875..7a77da51d 100644 --- a/Audit/OCI.PSModules.Audit.psd1 +++ b/Audit/OCI.PSModules.Audit.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Audit.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Audit.dll' diff --git a/Autoscaling/OCI.PSModules.Autoscaling.psd1 b/Autoscaling/OCI.PSModules.Autoscaling.psd1 index 340408e86..3fa936b89 100644 --- a/Autoscaling/OCI.PSModules.Autoscaling.psd1 +++ b/Autoscaling/OCI.PSModules.Autoscaling.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Autoscaling.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Autoscaling.dll' diff --git a/Bastion/OCI.PSModules.Bastion.psd1 b/Bastion/OCI.PSModules.Bastion.psd1 index 0a9a65cb7..374fc3caf 100644 --- a/Bastion/OCI.PSModules.Bastion.psd1 +++ b/Bastion/OCI.PSModules.Bastion.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Bastion.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Bastion.dll' diff --git a/Bds/OCI.PSModules.Bds.psd1 b/Bds/OCI.PSModules.Bds.psd1 index 37235775f..16a3eb837 100644 --- a/Bds/OCI.PSModules.Bds.psd1 +++ b/Bds/OCI.PSModules.Bds.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Bds.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Bds.dll' diff --git a/Blockchain/OCI.PSModules.Blockchain.psd1 b/Blockchain/OCI.PSModules.Blockchain.psd1 index a224ab806..faef55c81 100644 --- a/Blockchain/OCI.PSModules.Blockchain.psd1 +++ b/Blockchain/OCI.PSModules.Blockchain.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Blockchain.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Blockchain.dll' diff --git a/Budget/OCI.PSModules.Budget.psd1 b/Budget/OCI.PSModules.Budget.psd1 index 26a9d6a14..520d13928 100644 --- a/Budget/OCI.PSModules.Budget.psd1 +++ b/Budget/OCI.PSModules.Budget.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Budget.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Budget.dll' diff --git a/CHANGELOG.md b/CHANGELOG.md index da403ed8f..aa1837a91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ 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/). +## 36.1.0 - 2022-07-19 +### Added +- Support for calling Oracle Cloud Infrastructure services in the `mx-queretaro-1` region +- Support for the Process Automation service +- Support for the Managed Access service +- Support for extending maintenance reboot due dates on virtual machines in the Compute service +- Support for ingress routing tables on NAT gateways and internet gateways in the Networking service +- Support for container database and pluggable database discovery in the Stack Monitoring service +- Support for displaying rack serial numbers for Exadata infrastructure resources in the Database service +- Support for grace periods for wallet rotation on autonomous databases in the Database service +- Support for hosting models on flexible compute shapes with customizable OCPUs and memory in the Data Science service + ## 36.0.0 - 2022-07-12 ### Added - Support for DBCS databases in the Operations Insights service diff --git a/Certificates/OCI.PSModules.Certificates.psd1 b/Certificates/OCI.PSModules.Certificates.psd1 index 0b7a03c7c..a3099c86a 100644 --- a/Certificates/OCI.PSModules.Certificates.psd1 +++ b/Certificates/OCI.PSModules.Certificates.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Certificates.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Certificates.dll' diff --git a/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 b/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 index 9c049e241..24156d854 100644 --- a/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 +++ b/Certificatesmanagement/OCI.PSModules.Certificatesmanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Certificatesmanagement.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Certificatesmanagement.dll' diff --git a/Cims/OCI.PSModules.Cims.psd1 b/Cims/OCI.PSModules.Cims.psd1 index 89839cf0a..238c44f60 100644 --- a/Cims/OCI.PSModules.Cims.psd1 +++ b/Cims/OCI.PSModules.Cims.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cims.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.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 0e71ab84e..e1cd242e8 100644 --- a/Cloudguard/OCI.PSModules.Cloudguard.psd1 +++ b/Cloudguard/OCI.PSModules.Cloudguard.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudguard.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.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 20cfc70f1..171aa5564 100644 --- a/Common/OCI.PSModules.Common.psd1 +++ b/Common/OCI.PSModules.Common.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Common.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' diff --git a/Common/Version.cs b/Common/Version.cs index 6d76e0c99..195d2ddd6 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 = "36"; - public static string MINOR = "0"; + public static string MINOR = "1"; public static string PATCH = "0"; public static string GetVersion() diff --git a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 index b98a37096..855f96c89 100644 --- a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 +++ b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Computeinstanceagent.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Computeinstanceagent.dll' diff --git a/Containerengine/OCI.PSModules.Containerengine.psd1 b/Containerengine/OCI.PSModules.Containerengine.psd1 index 5fd0cbc1d..2ebfa10a9 100644 --- a/Containerengine/OCI.PSModules.Containerengine.psd1 +++ b/Containerengine/OCI.PSModules.Containerengine.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Containerengine.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerengine.dll' diff --git a/Core/Cmdlets/Get-OCIComputeInstanceMaintenanceReboot.cs b/Core/Cmdlets/Get-OCIComputeInstanceMaintenanceReboot.cs new file mode 100644 index 000000000..4a42ca081 --- /dev/null +++ b/Core/Cmdlets/Get-OCIComputeInstanceMaintenanceReboot.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.CoreService.Requests; +using Oci.CoreService.Responses; +using Oci.CoreService.Models; +using Oci.Common.Model; + +namespace Oci.CoreService.Cmdlets +{ + [Cmdlet("Get", "OCIComputeInstanceMaintenanceReboot")] + [OutputType(new System.Type[] { typeof(Oci.CoreService.Models.InstanceMaintenanceReboot), typeof(Oci.CoreService.Responses.GetInstanceMaintenanceRebootResponse) })] + public class GetOCIComputeInstanceMaintenanceReboot : OCIComputeCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance.")] + public string InstanceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique 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(); + GetInstanceMaintenanceRebootRequest request; + + try + { + request = new GetInstanceMaintenanceRebootRequest + { + InstanceId = InstanceId, + OpcRequestId = OpcRequestId + }; + + response = client.GetInstanceMaintenanceReboot(request).GetAwaiter().GetResult(); + WriteOutput(response, response.InstanceMaintenanceReboot); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetInstanceMaintenanceRebootResponse response; + } +} diff --git a/Core/OCI.PSModules.Core.psd1 b/Core/OCI.PSModules.Core.psd1 index 609c30cee..edebffc2f 100644 --- a/Core/OCI.PSModules.Core.psd1 +++ b/Core/OCI.PSModules.Core.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Core.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Core.dll' @@ -144,7 +144,9 @@ CmdletsToExport = 'Add-OCIComputeImageShapeCompatibilityEntry', 'Get-OCIComputeImagesList', 'Get-OCIComputeInstance', 'Get-OCIComputeInstanceConsoleConnection', 'Get-OCIComputeInstanceConsoleConnectionsList', - 'Get-OCIComputeInstanceDevicesList', 'Get-OCIComputeInstancesList', + 'Get-OCIComputeInstanceDevicesList', + 'Get-OCIComputeInstanceMaintenanceReboot', + 'Get-OCIComputeInstancesList', 'Get-OCIComputeManagementClusterNetwork', 'Get-OCIComputeManagementClusterNetworkInstancesList', 'Get-OCIComputeManagementClusterNetworksList', diff --git a/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 b/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 index db7b58e6b..03c4c03a2 100644 --- a/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 +++ b/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dashboardservice.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dashboardservice.dll' diff --git a/Database/OCI.PSModules.Database.psd1 b/Database/OCI.PSModules.Database.psd1 index 2e302e443..cff06e9cf 100644 --- a/Database/OCI.PSModules.Database.psd1 +++ b/Database/OCI.PSModules.Database.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Database.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Database.dll' diff --git a/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 b/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 index b391aad83..8b19b02b9 100644 --- a/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 +++ b/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Databasemanagement.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Databasemanagement.dll' diff --git a/Databasemigration/OCI.PSModules.Databasemigration.psd1 b/Databasemigration/OCI.PSModules.Databasemigration.psd1 index 28ee2874f..085dd099d 100644 --- a/Databasemigration/OCI.PSModules.Databasemigration.psd1 +++ b/Databasemigration/OCI.PSModules.Databasemigration.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Databasemigration.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Databasemigration.dll' diff --git a/Databasetools/OCI.PSModules.Databasetools.psd1 b/Databasetools/OCI.PSModules.Databasetools.psd1 index 4d7d005bf..26ff23c17 100644 --- a/Databasetools/OCI.PSModules.Databasetools.psd1 +++ b/Databasetools/OCI.PSModules.Databasetools.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Databasetools.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Databasetools.dll' diff --git a/Datacatalog/OCI.PSModules.Datacatalog.psd1 b/Datacatalog/OCI.PSModules.Datacatalog.psd1 index 8842580c8..f0eece63a 100644 --- a/Datacatalog/OCI.PSModules.Datacatalog.psd1 +++ b/Datacatalog/OCI.PSModules.Datacatalog.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datacatalog.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datacatalog.dll' diff --git a/Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 b/Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 index ecf9bb268..146af2177 100644 --- a/Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 +++ b/Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataconnectivity.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataconnectivity.dll' diff --git a/Dataflow/OCI.PSModules.Dataflow.psd1 b/Dataflow/OCI.PSModules.Dataflow.psd1 index 7517ab339..09b5630a4 100644 --- a/Dataflow/OCI.PSModules.Dataflow.psd1 +++ b/Dataflow/OCI.PSModules.Dataflow.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataflow.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataflow.dll' diff --git a/Dataintegration/OCI.PSModules.Dataintegration.psd1 b/Dataintegration/OCI.PSModules.Dataintegration.psd1 index 2113d977a..cb7a71c2b 100644 --- a/Dataintegration/OCI.PSModules.Dataintegration.psd1 +++ b/Dataintegration/OCI.PSModules.Dataintegration.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataintegration.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataintegration.dll' diff --git a/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 b/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 index 33580346c..d0f408f30 100644 --- a/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 +++ b/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datalabelingservice.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datalabelingservice.dll' diff --git a/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 b/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 index b24367dfe..079c92fdc 100644 --- a/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 +++ b/Datalabelingservicedataplane/OCI.PSModules.Datalabelingservicedataplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datalabelingservicedataplane.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datalabelingservicedataplane.dll' diff --git a/Datasafe/OCI.PSModules.Datasafe.psd1 b/Datasafe/OCI.PSModules.Datasafe.psd1 index 611395109..573081223 100644 --- a/Datasafe/OCI.PSModules.Datasafe.psd1 +++ b/Datasafe/OCI.PSModules.Datasafe.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datasafe.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.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 e8de6eefa..cbde66693 100644 --- a/Datascience/OCI.PSModules.Datascience.psd1 +++ b/Datascience/OCI.PSModules.Datascience.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Datascience.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datascience.dll' diff --git a/Devops/OCI.PSModules.Devops.psd1 b/Devops/OCI.PSModules.Devops.psd1 index 72b2c6d40..be0b68460 100644 --- a/Devops/OCI.PSModules.Devops.psd1 +++ b/Devops/OCI.PSModules.Devops.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Devops.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Devops.dll' diff --git a/Directory.Build.props b/Directory.Build.props index 3ad3db1af..be6ab34aa 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 40.0.0 + 40.1.0 diff --git a/Dns/OCI.PSModules.Dns.psd1 b/Dns/OCI.PSModules.Dns.psd1 index 7cee7e600..2470cec2d 100644 --- a/Dns/OCI.PSModules.Dns.psd1 +++ b/Dns/OCI.PSModules.Dns.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dns.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dns.dll' diff --git a/Dts/OCI.PSModules.Dts.psd1 b/Dts/OCI.PSModules.Dts.psd1 index 1ebb9018e..6aa750173 100644 --- a/Dts/OCI.PSModules.Dts.psd1 +++ b/Dts/OCI.PSModules.Dts.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Dts.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dts.dll' diff --git a/Email/OCI.PSModules.Email.psd1 b/Email/OCI.PSModules.Email.psd1 index 31d2e4ebb..d09e64358 100644 --- a/Email/OCI.PSModules.Email.psd1 +++ b/Email/OCI.PSModules.Email.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Email.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Email.dll' diff --git a/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 b/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 index 481fe0ae3..3f801b6f4 100644 --- a/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 +++ b/Emwarehouse/OCI.PSModules.Emwarehouse.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Emwarehouse.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Emwarehouse.dll' diff --git a/Events/OCI.PSModules.Events.psd1 b/Events/OCI.PSModules.Events.psd1 index c7dceee9f..9a7ac2d93 100644 --- a/Events/OCI.PSModules.Events.psd1 +++ b/Events/OCI.PSModules.Events.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Events.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Events.dll' diff --git a/Filestorage/OCI.PSModules.Filestorage.psd1 b/Filestorage/OCI.PSModules.Filestorage.psd1 index 5b26c33e3..171ef1f50 100644 --- a/Filestorage/OCI.PSModules.Filestorage.psd1 +++ b/Filestorage/OCI.PSModules.Filestorage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Filestorage.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Filestorage.dll' diff --git a/Functions/OCI.PSModules.Functions.psd1 b/Functions/OCI.PSModules.Functions.psd1 index 04e2a6271..ce36f02ec 100644 --- a/Functions/OCI.PSModules.Functions.psd1 +++ b/Functions/OCI.PSModules.Functions.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Functions.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Functions.dll' diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsAdminUsersList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsAdminUsersList.cs new file mode 100644 index 000000000..325911700 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsAdminUsersList.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsAdminUsersList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.AdminUserCollection), typeof(Oci.FusionappsService.Responses.ListAdminUsersResponse) })] + public class GetOCIFusionappsAdminUsersList : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { 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(); + ListAdminUsersRequest request; + + try + { + request = new ListAdminUsersRequest + { + FusionEnvironmentId = FusionEnvironmentId, + OpcRequestId = OpcRequestId + }; + + response = client.ListAdminUsers(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AdminUserCollection); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListAdminUsersResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivitiesList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivitiesList.cs new file mode 100644 index 000000000..19a96f706 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivitiesList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsDataMaskingActivitiesList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.DataMaskingActivityCollection), typeof(Oci.FusionappsService.Responses.ListDataMaskingActivitiesResponse) })] + public class GetOCIFusionappsDataMaskingActivitiesList : OCIDataMaskingActivityCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified status")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListDataMaskingActivitiesRequest request; + + try + { + request = new ListDataMaskingActivitiesRequest + { + FusionEnvironmentId = FusionEnvironmentId, + LifecycleState = LifecycleState, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.DataMaskingActivityCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListDataMaskingActivitiesRequest request) => Enumerable.Repeat(client.ListDataMaskingActivities(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDataMaskingActivitiesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDataMaskingActivitiesResponse response; + private delegate IEnumerable RequestDelegate(ListDataMaskingActivitiesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivity.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivity.cs new file mode 100644 index 000000000..ee554f25b --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsDataMaskingActivity.cs @@ -0,0 +1,105 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsDataMaskingActivity", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.DataMaskingActivity), typeof(Oci.FusionappsService.Responses.GetDataMaskingActivityResponse) })] + public class GetOCIFusionappsDataMaskingActivity : OCIDataMaskingActivityCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = Default)] + public string FusionEnvironmentId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique DataMasking run identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique DataMasking run identifier.", ParameterSetName = Default)] + public string DataMaskingActivityId { 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.FusionappsService.Models.DataMaskingActivity.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetDataMaskingActivityRequest request; + + try + { + request = new GetDataMaskingActivityRequest + { + FusionEnvironmentId = FusionEnvironmentId, + DataMaskingActivityId = DataMaskingActivityId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetDataMaskingActivityRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForDataMaskingActivity(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetDataMaskingActivity(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.DataMaskingActivity); + } + + private GetDataMaskingActivityResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironment.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironment.cs new file mode 100644 index 000000000..290a1634a --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironment.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsFusionEnvironment", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.FusionEnvironment), typeof(Oci.FusionappsService.Responses.GetFusionEnvironmentResponse) })] + public class GetOCIFusionappsFusionEnvironment : OCIFusionEnvironmentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = Default)] + public string FusionEnvironmentId { 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.FusionappsService.Models.FusionEnvironment.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetFusionEnvironmentRequest request; + + try + { + request = new GetFusionEnvironmentRequest + { + FusionEnvironmentId = FusionEnvironmentId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetFusionEnvironmentRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForFusionEnvironment(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetFusionEnvironment(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.FusionEnvironment); + } + + private GetFusionEnvironmentResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamiliesList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamiliesList.cs new file mode 100644 index 000000000..6333090bd --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamiliesList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsFusionEnvironmentFamiliesList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.FusionEnvironmentFamilyCollection), typeof(Oci.FusionappsService.Responses.ListFusionEnvironmentFamiliesResponse) })] + public class GetOCIFusionappsFusionEnvironmentFamiliesList : OCIFusionEnvironmentFamilyCmdlet + { + [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 ID of the fusion environment family in which to list resources.")] + public string FusionEnvironmentFamilyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified lifecycle state.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListFusionEnvironmentFamiliesRequest request; + + try + { + request = new ListFusionEnvironmentFamiliesRequest + { + CompartmentId = CompartmentId, + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.FusionEnvironmentFamilyCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListFusionEnvironmentFamiliesRequest request) => Enumerable.Repeat(client.ListFusionEnvironmentFamilies(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListFusionEnvironmentFamiliesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListFusionEnvironmentFamiliesResponse response; + private delegate IEnumerable RequestDelegate(ListFusionEnvironmentFamiliesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamily.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamily.cs new file mode 100644 index 000000000..7165c4142 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamily.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsFusionEnvironmentFamily", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.FusionEnvironmentFamily), typeof(Oci.FusionappsService.Responses.GetFusionEnvironmentFamilyResponse) })] + public class GetOCIFusionappsFusionEnvironmentFamily : OCIFusionEnvironmentFamilyCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the FusionEnvironmentFamily.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the FusionEnvironmentFamily.", ParameterSetName = Default)] + public string FusionEnvironmentFamilyId { 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.FusionappsService.Models.FusionEnvironmentFamily.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetFusionEnvironmentFamilyRequest request; + + try + { + request = new GetFusionEnvironmentFamilyRequest + { + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetFusionEnvironmentFamilyRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForFusionEnvironmentFamily(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetFusionEnvironmentFamily(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.FusionEnvironmentFamily); + } + + private GetFusionEnvironmentFamilyResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilyLimitsAndUsage.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilyLimitsAndUsage.cs new file mode 100644 index 000000000..a086f2269 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilyLimitsAndUsage.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsFusionEnvironmentFamilyLimitsAndUsage")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.FusionEnvironmentFamilyLimitsAndUsage), typeof(Oci.FusionappsService.Responses.GetFusionEnvironmentFamilyLimitsAndUsageResponse) })] + public class GetOCIFusionappsFusionEnvironmentFamilyLimitsAndUsage : OCIFusionEnvironmentFamilyCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the FusionEnvironmentFamily.")] + public string FusionEnvironmentFamilyId { 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(); + GetFusionEnvironmentFamilyLimitsAndUsageRequest request; + + try + { + request = new GetFusionEnvironmentFamilyLimitsAndUsageRequest + { + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + OpcRequestId = OpcRequestId + }; + + response = client.GetFusionEnvironmentFamilyLimitsAndUsage(request).GetAwaiter().GetResult(); + WriteOutput(response, response.FusionEnvironmentFamilyLimitsAndUsage); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetFusionEnvironmentFamilyLimitsAndUsageResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilySubscriptionDetail.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilySubscriptionDetail.cs new file mode 100644 index 000000000..28b4df1a3 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentFamilySubscriptionDetail.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsFusionEnvironmentFamilySubscriptionDetail")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.SubscriptionDetail), typeof(Oci.FusionappsService.Responses.GetFusionEnvironmentFamilySubscriptionDetailResponse) })] + public class GetOCIFusionappsFusionEnvironmentFamilySubscriptionDetail : OCIFusionEnvironmentFamilyCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the FusionEnvironmentFamily.")] + public string FusionEnvironmentFamilyId { 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(); + GetFusionEnvironmentFamilySubscriptionDetailRequest request; + + try + { + request = new GetFusionEnvironmentFamilySubscriptionDetailRequest + { + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + OpcRequestId = OpcRequestId + }; + + response = client.GetFusionEnvironmentFamilySubscriptionDetail(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SubscriptionDetail); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetFusionEnvironmentFamilySubscriptionDetailResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentStatus.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentStatus.cs new file mode 100644 index 000000000..0c308042b --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentStatus.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsFusionEnvironmentStatus")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.FusionEnvironmentStatus), typeof(Oci.FusionappsService.Responses.GetFusionEnvironmentStatusResponse) })] + public class GetOCIFusionappsFusionEnvironmentStatus : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { 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(); + GetFusionEnvironmentStatusRequest request; + + try + { + request = new GetFusionEnvironmentStatusRequest + { + FusionEnvironmentId = FusionEnvironmentId, + OpcRequestId = OpcRequestId + }; + + response = client.GetFusionEnvironmentStatus(request).GetAwaiter().GetResult(); + WriteOutput(response, response.FusionEnvironmentStatus); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetFusionEnvironmentStatusResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentsList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentsList.cs new file mode 100644 index 000000000..e7f0392d0 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsFusionEnvironmentsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsFusionEnvironmentsList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.FusionEnvironmentCollection), typeof(Oci.FusionappsService.Responses.ListFusionEnvironmentsResponse) })] + public class GetOCIFusionappsFusionEnvironmentsList : OCIFusionEnvironmentCmdlet + { + [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 ID of the fusion environment family in which to list resources.")] + public string FusionEnvironmentFamilyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified lifecycle state.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListFusionEnvironmentsRequest request; + + try + { + request = new ListFusionEnvironmentsRequest + { + CompartmentId = CompartmentId, + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.FusionEnvironmentCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListFusionEnvironmentsRequest request) => Enumerable.Repeat(client.ListFusionEnvironments(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListFusionEnvironmentsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListFusionEnvironmentsResponse response; + private delegate IEnumerable RequestDelegate(ListFusionEnvironmentsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivitiesList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivitiesList.cs new file mode 100644 index 000000000..c79ef0a45 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivitiesList.cs @@ -0,0 +1,120 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsRefreshActivitiesList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.RefreshActivityCollection), typeof(Oci.FusionappsService.Responses.ListRefreshActivitiesResponse) })] + public class GetOCIFusionappsRefreshActivitiesList : OCIRefreshActivityCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that are scheduled after this date")] + public System.Nullable TimeScheduledStartGreaterThanOrEqualTo { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that end before this date")] + public System.Nullable TimeExpectedFinishLessThanOrEqualTo { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified status")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListRefreshActivitiesRequest request; + + try + { + request = new ListRefreshActivitiesRequest + { + FusionEnvironmentId = FusionEnvironmentId, + DisplayName = DisplayName, + TimeScheduledStartGreaterThanOrEqualTo = TimeScheduledStartGreaterThanOrEqualTo, + TimeExpectedFinishLessThanOrEqualTo = TimeExpectedFinishLessThanOrEqualTo, + LifecycleState = LifecycleState, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.RefreshActivityCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListRefreshActivitiesRequest request) => Enumerable.Repeat(client.ListRefreshActivities(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRefreshActivitiesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRefreshActivitiesResponse response; + private delegate IEnumerable RequestDelegate(ListRefreshActivitiesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivity.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivity.cs new file mode 100644 index 000000000..58a87b517 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsRefreshActivity.cs @@ -0,0 +1,105 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsRefreshActivity", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.RefreshActivity), typeof(Oci.FusionappsService.Responses.GetRefreshActivityResponse) })] + public class GetOCIFusionappsRefreshActivity : OCIRefreshActivityCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = Default)] + public string FusionEnvironmentId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the Refresh activity.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the Refresh activity.", ParameterSetName = Default)] + public string RefreshActivityId { 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.FusionappsService.Models.RefreshActivity.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetRefreshActivityRequest request; + + try + { + request = new GetRefreshActivityRequest + { + FusionEnvironmentId = FusionEnvironmentId, + RefreshActivityId = RefreshActivityId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetRefreshActivityRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForRefreshActivity(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetRefreshActivity(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.RefreshActivity); + } + + private GetRefreshActivityResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivitiesList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivitiesList.cs new file mode 100644 index 000000000..cb01445b9 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivitiesList.cs @@ -0,0 +1,124 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsScheduledActivitiesList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.ScheduledActivityCollection), typeof(Oci.FusionappsService.Responses.ListScheduledActivitiesResponse) })] + public class GetOCIFusionappsScheduledActivitiesList : OCIScheduledActivityCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that are scheduled after this date")] + public System.Nullable TimeScheduledStartGreaterThanOrEqualTo { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that end before this date")] + public System.Nullable TimeExpectedFinishLessThanOrEqualTo { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified run cycle.")] + public System.Nullable RunCycle { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified status")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListScheduledActivitiesRequest request; + + try + { + request = new ListScheduledActivitiesRequest + { + FusionEnvironmentId = FusionEnvironmentId, + DisplayName = DisplayName, + TimeScheduledStartGreaterThanOrEqualTo = TimeScheduledStartGreaterThanOrEqualTo, + TimeExpectedFinishLessThanOrEqualTo = TimeExpectedFinishLessThanOrEqualTo, + RunCycle = RunCycle, + LifecycleState = LifecycleState, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ScheduledActivityCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListScheduledActivitiesRequest request) => Enumerable.Repeat(client.ListScheduledActivities(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListScheduledActivitiesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListScheduledActivitiesResponse response; + private delegate IEnumerable RequestDelegate(ListScheduledActivitiesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivity.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivity.cs new file mode 100644 index 000000000..e489de87a --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsScheduledActivity.cs @@ -0,0 +1,105 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsScheduledActivity", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.ScheduledActivity), typeof(Oci.FusionappsService.Responses.GetScheduledActivityResponse) })] + public class GetOCIFusionappsScheduledActivity : OCIScheduledActivityCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = Default)] + public string FusionEnvironmentId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique ScheduledActivity identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique ScheduledActivity identifier.", ParameterSetName = Default)] + public string ScheduledActivityId { 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.FusionappsService.Models.ScheduledActivity.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetScheduledActivityRequest request; + + try + { + request = new GetScheduledActivityRequest + { + FusionEnvironmentId = FusionEnvironmentId, + ScheduledActivityId = ScheduledActivityId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetScheduledActivityRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForScheduledActivity(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetScheduledActivity(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ScheduledActivity); + } + + private GetScheduledActivityResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachment.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachment.cs new file mode 100644 index 000000000..388ae07f1 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachment.cs @@ -0,0 +1,105 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsServiceAttachment", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.ServiceAttachment), typeof(Oci.FusionappsService.Responses.GetServiceAttachmentResponse) })] + public class GetOCIFusionappsServiceAttachment : OCIServiceAttachmentCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier", ParameterSetName = Default)] + public string FusionEnvironmentId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the Service Attachment", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the Service Attachment", ParameterSetName = Default)] + public string ServiceAttachmentId { 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.FusionappsService.Models.ServiceAttachment.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetServiceAttachmentRequest request; + + try + { + request = new GetServiceAttachmentRequest + { + FusionEnvironmentId = FusionEnvironmentId, + ServiceAttachmentId = ServiceAttachmentId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetServiceAttachmentRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForServiceAttachment(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetServiceAttachment(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ServiceAttachment); + } + + private GetServiceAttachmentResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachmentsList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachmentsList.cs new file mode 100644 index 000000000..09e991121 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsServiceAttachmentsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsServiceAttachmentsList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.ServiceAttachmentCollection), typeof(Oci.FusionappsService.Responses.ListServiceAttachmentsResponse) })] + public class GetOCIFusionappsServiceAttachmentsList : OCIServiceAttachmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified lifecycle state.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter that returns all resources that match the specified lifecycle state.")] + public System.Nullable ServiceInstanceType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListServiceAttachmentsRequest request; + + try + { + request = new ListServiceAttachmentsRequest + { + FusionEnvironmentId = FusionEnvironmentId, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + ServiceInstanceType = ServiceInstanceType, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ServiceAttachmentCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListServiceAttachmentsRequest request) => Enumerable.Repeat(client.ListServiceAttachments(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListServiceAttachmentsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListServiceAttachmentsResponse response; + private delegate IEnumerable RequestDelegate(ListServiceAttachmentsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsTimeAvailableForRefreshesList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsTimeAvailableForRefreshesList.cs new file mode 100644 index 000000000..f284e81a1 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsTimeAvailableForRefreshesList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsTimeAvailableForRefreshesList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.TimeAvailableForRefreshCollection), typeof(Oci.FusionappsService.Responses.ListTimeAvailableForRefreshesResponse) })] + public class GetOCIFusionappsTimeAvailableForRefreshesList : OCIRefreshActivityCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { 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 maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListTimeAvailableForRefreshesRequest request; + + try + { + request = new ListTimeAvailableForRefreshesRequest + { + FusionEnvironmentId = FusionEnvironmentId, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.TimeAvailableForRefreshCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListTimeAvailableForRefreshesRequest request) => Enumerable.Repeat(client.ListTimeAvailableForRefreshes(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListTimeAvailableForRefreshesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListTimeAvailableForRefreshesResponse response; + private delegate IEnumerable RequestDelegate(ListTimeAvailableForRefreshesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequest.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequest.cs new file mode 100644 index 000000000..31a575445 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.WorkRequest), typeof(Oci.FusionappsService.Responses.GetWorkRequestResponse) })] + public class GetOCIFusionappsWorkRequest : OCIFusionEnvironmentCmdlet + { + + [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.FusionappsService.Models.WorkRequest.StatusEnum[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetWorkRequestRequest request; + + try + { + request = new GetWorkRequestRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetWorkRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.GetWorkRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.WorkRequest); + } + + private GetWorkRequestResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestErrorsList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestErrorsList.cs new file mode 100644 index 000000000..7e1feb074 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.WorkRequestErrorCollection), typeof(Oci.FusionappsService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIFusionappsWorkRequestErrorsList : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The 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 = 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, + SortBy = SortBy, + SortOrder = SortOrder, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestLogsList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestLogsList.cs new file mode 100644 index 000000000..b2b697d20 --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.WorkRequestLogEntryCollection), typeof(Oci.FusionappsService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIFusionappsWorkRequestLogsList : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { 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 timeAccepted is descending.")] + 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(); + ListWorkRequestLogsRequest request; + + try + { + request = new ListWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestsList.cs b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestsList.cs new file mode 100644 index 000000000..73e02ae1a --- /dev/null +++ b/Fusionapps/Cmdlets/Get-OCIFusionappsWorkRequestsList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Get", "OCIFusionappsWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.FusionappsService.Models.WorkRequestSummaryCollection), typeof(Oci.FusionappsService.Responses.ListWorkRequestsResponse) })] + public class GetOCIFusionappsWorkRequestsList : OCIFusionEnvironmentCmdlet + { + [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 = @"A filter to return only resources their lifecycleState matches the given OperationStatus.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the a resource in which to list associated resources.")] + public string ResourceId { 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 = 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, + Status = Status, + SortBy = SortBy, + SortOrder = SortOrder, + ResourceId = ResourceId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestSummaryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestsRequest request) => Enumerable.Repeat(client.ListWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentCompartment.cs b/Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentCompartment.cs new file mode 100644 index 000000000..811bb1c98 --- /dev/null +++ b/Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Move", "OCIFusionappsFusionEnvironmentCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.ChangeFusionEnvironmentCompartmentResponse) })] + public class MoveOCIFusionappsFusionEnvironmentCompartment : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details of change compartment request.")] + public ChangeFusionEnvironmentCompartmentDetails ChangeFusionEnvironmentCompartmentDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeFusionEnvironmentCompartmentRequest request; + + try + { + request = new ChangeFusionEnvironmentCompartmentRequest + { + FusionEnvironmentId = FusionEnvironmentId, + ChangeFusionEnvironmentCompartmentDetails = ChangeFusionEnvironmentCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeFusionEnvironmentCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeFusionEnvironmentCompartmentResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentFamilyCompartment.cs b/Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentFamilyCompartment.cs new file mode 100644 index 000000000..1128c64c6 --- /dev/null +++ b/Fusionapps/Cmdlets/Move-OCIFusionappsFusionEnvironmentFamilyCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Move", "OCIFusionappsFusionEnvironmentFamilyCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.ChangeFusionEnvironmentFamilyCompartmentResponse) })] + public class MoveOCIFusionappsFusionEnvironmentFamilyCompartment : OCIFusionEnvironmentFamilyCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the FusionEnvironmentFamily.")] + public string FusionEnvironmentFamilyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the compartment move.")] + public ChangeFusionEnvironmentFamilyCompartmentDetails ChangeFusionEnvironmentFamilyCompartmentDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeFusionEnvironmentFamilyCompartmentRequest request; + + try + { + request = new ChangeFusionEnvironmentFamilyCompartmentRequest + { + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + ChangeFusionEnvironmentFamilyCompartmentDetails = ChangeFusionEnvironmentFamilyCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeFusionEnvironmentFamilyCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeFusionEnvironmentFamilyCompartmentResponse response; + } +} diff --git a/Fusionapps/Cmdlets/New-OCIFusionappsDataMaskingActivity.cs b/Fusionapps/Cmdlets/New-OCIFusionappsDataMaskingActivity.cs new file mode 100644 index 000000000..6f2a9bd7c --- /dev/null +++ b/Fusionapps/Cmdlets/New-OCIFusionappsDataMaskingActivity.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("New", "OCIFusionappsDataMaskingActivity")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.CreateDataMaskingActivityResponse) })] + public class NewOCIFusionappsDataMaskingActivity : OCIDataMaskingActivityCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new DataMaskingActivity.")] + public CreateDataMaskingActivityDetails CreateDataMaskingActivityDetails { 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(); + CreateDataMaskingActivityRequest request; + + try + { + request = new CreateDataMaskingActivityRequest + { + FusionEnvironmentId = FusionEnvironmentId, + CreateDataMaskingActivityDetails = CreateDataMaskingActivityDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDataMaskingActivity(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateDataMaskingActivityResponse response; + } +} diff --git a/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironment.cs b/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironment.cs new file mode 100644 index 000000000..e432e9de1 --- /dev/null +++ b/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironment.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("New", "OCIFusionappsFusionEnvironment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.CreateFusionEnvironmentResponse) })] + public class NewOCIFusionappsFusionEnvironment : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new FusionEnvironment.")] + public CreateFusionEnvironmentDetails CreateFusionEnvironmentDetails { 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(); + CreateFusionEnvironmentRequest request; + + try + { + request = new CreateFusionEnvironmentRequest + { + CreateFusionEnvironmentDetails = CreateFusionEnvironmentDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateFusionEnvironment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateFusionEnvironmentResponse response; + } +} diff --git a/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentAdminUser.cs b/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentAdminUser.cs new file mode 100644 index 000000000..0e3603b07 --- /dev/null +++ b/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentAdminUser.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("New", "OCIFusionappsFusionEnvironmentAdminUser")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.CreateFusionEnvironmentAdminUserResponse) })] + public class NewOCIFusionappsFusionEnvironmentAdminUser : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The admin user to be created.")] + public CreateFusionEnvironmentAdminUserDetails CreateFusionEnvironmentAdminUserDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { 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(); + CreateFusionEnvironmentAdminUserRequest request; + + try + { + request = new CreateFusionEnvironmentAdminUserRequest + { + CreateFusionEnvironmentAdminUserDetails = CreateFusionEnvironmentAdminUserDetails, + FusionEnvironmentId = FusionEnvironmentId, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateFusionEnvironmentAdminUser(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateFusionEnvironmentAdminUserResponse response; + } +} diff --git a/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentFamily.cs b/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentFamily.cs new file mode 100644 index 000000000..3cfaa1192 --- /dev/null +++ b/Fusionapps/Cmdlets/New-OCIFusionappsFusionEnvironmentFamily.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("New", "OCIFusionappsFusionEnvironmentFamily")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.CreateFusionEnvironmentFamilyResponse) })] + public class NewOCIFusionappsFusionEnvironmentFamily : OCIFusionEnvironmentFamilyCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new FusionEnvironmentFamily.")] + public CreateFusionEnvironmentFamilyDetails CreateFusionEnvironmentFamilyDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For Oracle internal use only.")] + public string OpcProvisionOption { 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(); + CreateFusionEnvironmentFamilyRequest request; + + try + { + request = new CreateFusionEnvironmentFamilyRequest + { + CreateFusionEnvironmentFamilyDetails = CreateFusionEnvironmentFamilyDetails, + OpcProvisionOption = OpcProvisionOption, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateFusionEnvironmentFamily(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateFusionEnvironmentFamilyResponse response; + } +} diff --git a/Fusionapps/Cmdlets/New-OCIFusionappsRefreshActivity.cs b/Fusionapps/Cmdlets/New-OCIFusionappsRefreshActivity.cs new file mode 100644 index 000000000..3a8ad3462 --- /dev/null +++ b/Fusionapps/Cmdlets/New-OCIFusionappsRefreshActivity.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("New", "OCIFusionappsRefreshActivity")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.CreateRefreshActivityResponse) })] + public class NewOCIFusionappsRefreshActivity : OCIRefreshActivityCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new RefreshActivity.")] + public CreateRefreshActivityDetails CreateRefreshActivityDetails { 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(); + CreateRefreshActivityRequest request; + + try + { + request = new CreateRefreshActivityRequest + { + FusionEnvironmentId = FusionEnvironmentId, + CreateRefreshActivityDetails = CreateRefreshActivityDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateRefreshActivity(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateRefreshActivityResponse response; + } +} diff --git a/Fusionapps/Cmdlets/OCIDataMaskingActivityCmdlet.cs b/Fusionapps/Cmdlets/OCIDataMaskingActivityCmdlet.cs new file mode 100644 index 000000000..9dbecf5bb --- /dev/null +++ b/Fusionapps/Cmdlets/OCIDataMaskingActivityCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService; + +namespace Oci.FusionappsService.Cmdlets +{ + public abstract class OCIDataMaskingActivityCmdlet : 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 DataMaskingActivityClient(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 DataMaskingActivityClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Fusionapps/Cmdlets/OCIFusionEnvironmentCmdlet.cs b/Fusionapps/Cmdlets/OCIFusionEnvironmentCmdlet.cs new file mode 100644 index 000000000..9fb625386 --- /dev/null +++ b/Fusionapps/Cmdlets/OCIFusionEnvironmentCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService; + +namespace Oci.FusionappsService.Cmdlets +{ + public abstract class OCIFusionEnvironmentCmdlet : 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 FusionEnvironmentClient(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 FusionEnvironmentClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Fusionapps/Cmdlets/OCIFusionEnvironmentFamilyCmdlet.cs b/Fusionapps/Cmdlets/OCIFusionEnvironmentFamilyCmdlet.cs new file mode 100644 index 000000000..628f00cab --- /dev/null +++ b/Fusionapps/Cmdlets/OCIFusionEnvironmentFamilyCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService; + +namespace Oci.FusionappsService.Cmdlets +{ + public abstract class OCIFusionEnvironmentFamilyCmdlet : 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 FusionEnvironmentFamilyClient(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 FusionEnvironmentFamilyClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Fusionapps/Cmdlets/OCIRefreshActivityCmdlet.cs b/Fusionapps/Cmdlets/OCIRefreshActivityCmdlet.cs new file mode 100644 index 000000000..e9b05bc29 --- /dev/null +++ b/Fusionapps/Cmdlets/OCIRefreshActivityCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService; + +namespace Oci.FusionappsService.Cmdlets +{ + public abstract class OCIRefreshActivityCmdlet : 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 RefreshActivityClient(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 RefreshActivityClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Fusionapps/Cmdlets/OCIScheduledActivityCmdlet.cs b/Fusionapps/Cmdlets/OCIScheduledActivityCmdlet.cs new file mode 100644 index 000000000..5a7492860 --- /dev/null +++ b/Fusionapps/Cmdlets/OCIScheduledActivityCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService; + +namespace Oci.FusionappsService.Cmdlets +{ + public abstract class OCIScheduledActivityCmdlet : 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 ScheduledActivityClient(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 ScheduledActivityClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Fusionapps/Cmdlets/OCIServiceAttachmentCmdlet.cs b/Fusionapps/Cmdlets/OCIServiceAttachmentCmdlet.cs new file mode 100644 index 000000000..7ac2d5580 --- /dev/null +++ b/Fusionapps/Cmdlets/OCIServiceAttachmentCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService; + +namespace Oci.FusionappsService.Cmdlets +{ + public abstract class OCIServiceAttachmentCmdlet : 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 ServiceAttachmentClient(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 ServiceAttachmentClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironment.cs b/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironment.cs new file mode 100644 index 000000000..ba8415ed6 --- /dev/null +++ b/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironment.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Remove", "OCIFusionappsFusionEnvironment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.DeleteFusionEnvironmentResponse) })] + public class RemoveOCIFusionappsFusionEnvironment : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { 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("OCIFusionappsFusionEnvironment", "Remove")) + { + return; + } + + DeleteFusionEnvironmentRequest request; + + try + { + request = new DeleteFusionEnvironmentRequest + { + FusionEnvironmentId = FusionEnvironmentId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteFusionEnvironment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteFusionEnvironmentResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentAdminUser.cs b/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentAdminUser.cs new file mode 100644 index 000000000..bbb4e1f16 --- /dev/null +++ b/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentAdminUser.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Remove", "OCIFusionappsFusionEnvironmentAdminUser", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.DeleteFusionEnvironmentAdminUserResponse) })] + public class RemoveOCIFusionappsFusionEnvironmentAdminUser : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The admin user name for the fusion environment.")] + public string AdminUsername { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { 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("OCIFusionappsFusionEnvironmentAdminUser", "Remove")) + { + return; + } + + DeleteFusionEnvironmentAdminUserRequest request; + + try + { + request = new DeleteFusionEnvironmentAdminUserRequest + { + AdminUsername = AdminUsername, + FusionEnvironmentId = FusionEnvironmentId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteFusionEnvironmentAdminUser(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteFusionEnvironmentAdminUserResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentFamily.cs b/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentFamily.cs new file mode 100644 index 000000000..09cad3608 --- /dev/null +++ b/Fusionapps/Cmdlets/Remove-OCIFusionappsFusionEnvironmentFamily.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Remove", "OCIFusionappsFusionEnvironmentFamily", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.DeleteFusionEnvironmentFamilyResponse) })] + public class RemoveOCIFusionappsFusionEnvironmentFamily : OCIFusionEnvironmentFamilyCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the FusionEnvironmentFamily.")] + public string FusionEnvironmentFamilyId { 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("OCIFusionappsFusionEnvironmentFamily", "Remove")) + { + return; + } + + DeleteFusionEnvironmentFamilyRequest request; + + try + { + request = new DeleteFusionEnvironmentFamilyRequest + { + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteFusionEnvironmentFamily(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteFusionEnvironmentFamilyResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Reset-OCIFusionappsFusionEnvironmentPassword.cs b/Fusionapps/Cmdlets/Reset-OCIFusionappsFusionEnvironmentPassword.cs new file mode 100644 index 000000000..86f5449fb --- /dev/null +++ b/Fusionapps/Cmdlets/Reset-OCIFusionappsFusionEnvironmentPassword.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Reset", "OCIFusionappsFusionEnvironmentPassword")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.ResetFusionEnvironmentPasswordResponse) })] + public class ResetOCIFusionappsFusionEnvironmentPassword : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ResetFusionEnvironmentPasswordDetails ResetFusionEnvironmentPasswordDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The admin user name for the fusion environment.")] + public string AdminUsername { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ResetFusionEnvironmentPasswordRequest request; + + try + { + request = new ResetFusionEnvironmentPasswordRequest + { + ResetFusionEnvironmentPasswordDetails = ResetFusionEnvironmentPasswordDetails, + FusionEnvironmentId = FusionEnvironmentId, + AdminUsername = AdminUsername, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.ResetFusionEnvironmentPassword(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ResetFusionEnvironmentPasswordResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironment.cs b/Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironment.cs new file mode 100644 index 000000000..825903132 --- /dev/null +++ b/Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironment.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Update", "OCIFusionappsFusionEnvironment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.UpdateFusionEnvironmentResponse) })] + public class UpdateOCIFusionappsFusionEnvironment : OCIFusionEnvironmentCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique FusionEnvironment identifier")] + public string FusionEnvironmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateFusionEnvironmentDetails UpdateFusionEnvironmentDetails { 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(); + UpdateFusionEnvironmentRequest request; + + try + { + request = new UpdateFusionEnvironmentRequest + { + FusionEnvironmentId = FusionEnvironmentId, + UpdateFusionEnvironmentDetails = UpdateFusionEnvironmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateFusionEnvironment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateFusionEnvironmentResponse response; + } +} diff --git a/Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironmentFamily.cs b/Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironmentFamily.cs new file mode 100644 index 000000000..31d72209d --- /dev/null +++ b/Fusionapps/Cmdlets/Update-OCIFusionappsFusionEnvironmentFamily.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211201 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.FusionappsService.Requests; +using Oci.FusionappsService.Responses; +using Oci.FusionappsService.Models; +using Oci.Common.Model; + +namespace Oci.FusionappsService.Cmdlets +{ + [Cmdlet("Update", "OCIFusionappsFusionEnvironmentFamily")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.FusionappsService.Responses.UpdateFusionEnvironmentFamilyResponse) })] + public class UpdateOCIFusionappsFusionEnvironmentFamily : OCIFusionEnvironmentFamilyCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the FusionEnvironmentFamily.")] + public string FusionEnvironmentFamilyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateFusionEnvironmentFamilyDetails UpdateFusionEnvironmentFamilyDetails { 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(); + UpdateFusionEnvironmentFamilyRequest request; + + try + { + request = new UpdateFusionEnvironmentFamilyRequest + { + FusionEnvironmentFamilyId = FusionEnvironmentFamilyId, + UpdateFusionEnvironmentFamilyDetails = UpdateFusionEnvironmentFamilyDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateFusionEnvironmentFamily(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateFusionEnvironmentFamilyResponse response; + } +} diff --git a/Fusionapps/OCI.PSModules.Fusionapps.csproj b/Fusionapps/OCI.PSModules.Fusionapps.csproj new file mode 100644 index 000000000..9b911ac46 --- /dev/null +++ b/Fusionapps/OCI.PSModules.Fusionapps.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Fusionapps + OCI.PSModules.Fusionapps + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Fusionapps + Fusionapps Service + + + + + + + + + + + diff --git a/Fusionapps/OCI.PSModules.Fusionapps.psd1 b/Fusionapps/OCI.PSModules.Fusionapps.psd1 new file mode 100644 index 000000000..ca833eb2c --- /dev/null +++ b/Fusionapps/OCI.PSModules.Fusionapps.psd1 @@ -0,0 +1,164 @@ +# +# Module manifest for module 'OCI.PSModules.Fusionapps' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Fusionapps.dll' + +# Version number of this module. +ModuleVersion = '36.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'c9914632-5a3e-4af3-a2ca-7e0a4764c70c' + +# 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 Fusionapps 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 = '36.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Fusionapps.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-OCIFusionappsAdminUsersList', + 'Get-OCIFusionappsDataMaskingActivitiesList', + 'Get-OCIFusionappsDataMaskingActivity', + 'Get-OCIFusionappsFusionEnvironment', + 'Get-OCIFusionappsFusionEnvironmentFamiliesList', + 'Get-OCIFusionappsFusionEnvironmentFamily', + 'Get-OCIFusionappsFusionEnvironmentFamilyLimitsAndUsage', + 'Get-OCIFusionappsFusionEnvironmentFamilySubscriptionDetail', + 'Get-OCIFusionappsFusionEnvironmentsList', + 'Get-OCIFusionappsFusionEnvironmentStatus', + 'Get-OCIFusionappsRefreshActivitiesList', + 'Get-OCIFusionappsRefreshActivity', + 'Get-OCIFusionappsScheduledActivitiesList', + 'Get-OCIFusionappsScheduledActivity', + 'Get-OCIFusionappsServiceAttachment', + 'Get-OCIFusionappsServiceAttachmentsList', + 'Get-OCIFusionappsTimeAvailableForRefreshesList', + 'Get-OCIFusionappsWorkRequest', + 'Get-OCIFusionappsWorkRequestErrorsList', + 'Get-OCIFusionappsWorkRequestLogsList', + 'Get-OCIFusionappsWorkRequestsList', + 'Move-OCIFusionappsFusionEnvironmentCompartment', + 'Move-OCIFusionappsFusionEnvironmentFamilyCompartment', + 'New-OCIFusionappsDataMaskingActivity', + 'New-OCIFusionappsFusionEnvironment', + 'New-OCIFusionappsFusionEnvironmentAdminUser', + 'New-OCIFusionappsFusionEnvironmentFamily', + 'New-OCIFusionappsRefreshActivity', + 'Remove-OCIFusionappsFusionEnvironment', + 'Remove-OCIFusionappsFusionEnvironmentAdminUser', + 'Remove-OCIFusionappsFusionEnvironmentFamily', + 'Reset-OCIFusionappsFusionEnvironmentPassword', + 'Update-OCIFusionappsFusionEnvironment', + 'Update-OCIFusionappsFusionEnvironmentFamily' + +# 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','Fusionapps' + + # 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/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 b/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 index 2cfecf845..76c86e6ab 100644 --- a/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 +++ b/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Genericartifactscontent.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Genericartifactscontent.dll' diff --git a/Goldengate/OCI.PSModules.Goldengate.psd1 b/Goldengate/OCI.PSModules.Goldengate.psd1 index 761a55cb5..98c352e3a 100644 --- a/Goldengate/OCI.PSModules.Goldengate.psd1 +++ b/Goldengate/OCI.PSModules.Goldengate.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Goldengate.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Goldengate.dll' diff --git a/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 b/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 index 351018825..8974a8e71 100644 --- a/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 +++ b/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Governancerulescontrolplane.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Governancerulescontrolplane.dll' diff --git a/Healthchecks/OCI.PSModules.Healthchecks.psd1 b/Healthchecks/OCI.PSModules.Healthchecks.psd1 index eae02902c..1daa18526 100644 --- a/Healthchecks/OCI.PSModules.Healthchecks.psd1 +++ b/Healthchecks/OCI.PSModules.Healthchecks.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Healthchecks.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Healthchecks.dll' diff --git a/Identity/OCI.PSModules.Identity.psd1 b/Identity/OCI.PSModules.Identity.psd1 index 16802d736..1a9829b25 100644 --- a/Identity/OCI.PSModules.Identity.psd1 +++ b/Identity/OCI.PSModules.Identity.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Identity.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identity.dll' diff --git a/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 b/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 index 62b73b1bd..4ad334557 100644 --- a/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 +++ b/Identitydataplane/OCI.PSModules.Identitydataplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Identitydataplane.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identitydataplane.dll' diff --git a/Integration/OCI.PSModules.Integration.psd1 b/Integration/OCI.PSModules.Integration.psd1 index 069a76741..1a51a6b76 100644 --- a/Integration/OCI.PSModules.Integration.psd1 +++ b/Integration/OCI.PSModules.Integration.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Integration.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Integration.dll' diff --git a/Jms/OCI.PSModules.Jms.psd1 b/Jms/OCI.PSModules.Jms.psd1 index 684c9584b..1f666fca4 100644 --- a/Jms/OCI.PSModules.Jms.psd1 +++ b/Jms/OCI.PSModules.Jms.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Jms.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Jms.dll' diff --git a/Keymanagement/OCI.PSModules.Keymanagement.psd1 b/Keymanagement/OCI.PSModules.Keymanagement.psd1 index 855f0e699..edab0f6d2 100644 --- a/Keymanagement/OCI.PSModules.Keymanagement.psd1 +++ b/Keymanagement/OCI.PSModules.Keymanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Keymanagement.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Keymanagement.dll' diff --git a/Licensemanager/OCI.PSModules.Licensemanager.psd1 b/Licensemanager/OCI.PSModules.Licensemanager.psd1 index 87578b502..a62252ef9 100644 --- a/Licensemanager/OCI.PSModules.Licensemanager.psd1 +++ b/Licensemanager/OCI.PSModules.Licensemanager.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Licensemanager.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Licensemanager.dll' diff --git a/Limits/OCI.PSModules.Limits.psd1 b/Limits/OCI.PSModules.Limits.psd1 index f09278a4b..ba02b6808 100644 --- a/Limits/OCI.PSModules.Limits.psd1 +++ b/Limits/OCI.PSModules.Limits.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Limits.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Limits.dll' diff --git a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 index f4555ba93..0c1f23a95 100644 --- a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 +++ b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loadbalancer.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loadbalancer.dll' diff --git a/Lockbox/Cmdlets/Get-OCILockbox.cs b/Lockbox/Cmdlets/Get-OCILockbox.cs new file mode 100644 index 000000000..8783e68a0 --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockbox.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockbox", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.Lockbox), typeof(Oci.LockboxService.Responses.GetLockboxResponse) })] + public class GetOCILockbox : OCILockboxCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique Lockbox identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique Lockbox identifier", ParameterSetName = Default)] + public string LockboxId { 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.LockboxService.Models.Lockbox.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetLockboxRequest request; + + try + { + request = new GetLockboxRequest + { + LockboxId = LockboxId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetLockboxRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForLockbox(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetLockbox(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Lockbox); + } + + private GetLockboxResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxAccessMaterials.cs b/Lockbox/Cmdlets/Get-OCILockboxAccessMaterials.cs new file mode 100644 index 000000000..a6071151b --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxAccessMaterials.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxAccessMaterials")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.AccessMaterials), typeof(Oci.LockboxService.Responses.GetAccessMaterialsResponse) })] + public class GetOCILockboxAccessMaterials : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the access request.")] + public string AccessRequestId { 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(); + GetAccessMaterialsRequest request; + + try + { + request = new GetAccessMaterialsRequest + { + AccessRequestId = AccessRequestId, + OpcRequestId = OpcRequestId + }; + + response = client.GetAccessMaterials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AccessMaterials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetAccessMaterialsResponse response; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxAccessRequest.cs b/Lockbox/Cmdlets/Get-OCILockboxAccessRequest.cs new file mode 100644 index 000000000..08164680b --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxAccessRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxAccessRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.AccessRequest), typeof(Oci.LockboxService.Responses.GetAccessRequestResponse) })] + public class GetOCILockboxAccessRequest : OCILockboxCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the access request.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the access request.", ParameterSetName = Default)] + public string AccessRequestId { 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.LockboxService.Models.AccessRequest.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetAccessRequestRequest request; + + try + { + request = new GetAccessRequestRequest + { + AccessRequestId = AccessRequestId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetAccessRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForAccessRequest(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetAccessRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.AccessRequest); + } + + private GetAccessRequestResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs b/Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs new file mode 100644 index 000000000..bb04afa79 --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs @@ -0,0 +1,124 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxAccessRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.AccessRequestCollection), typeof(Oci.LockboxService.Responses.ListAccessRequestsResponse) })] + public class GetOCILockboxAccessRequestsList : OCILockboxCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the associated lockbox.")] + public string LockboxId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A generic Id query param used to filter lockbox, access request and approval template by Id.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the lockbox partner.")] + public System.Nullable LockboxPartner { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the requestor in which to list resources.")] + public string RequestorId { 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 = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListAccessRequestsRequest request; + + try + { + request = new ListAccessRequestsRequest + { + OpcRequestId = OpcRequestId, + LockboxId = LockboxId, + Id = Id, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + LockboxPartner = LockboxPartner, + RequestorId = RequestorId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.AccessRequestCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListAccessRequestsRequest request) => Enumerable.Repeat(client.ListAccessRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListAccessRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListAccessRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListAccessRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxApprovalTemplate.cs b/Lockbox/Cmdlets/Get-OCILockboxApprovalTemplate.cs new file mode 100644 index 000000000..fdded1757 --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxApprovalTemplate.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxApprovalTemplate", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.ApprovalTemplate), typeof(Oci.LockboxService.Responses.GetApprovalTemplateResponse) })] + public class GetOCILockboxApprovalTemplate : OCILockboxCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the approval template.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the approval template.", ParameterSetName = Default)] + public string ApprovalTemplateId { 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.LockboxService.Models.ApprovalTemplate.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetApprovalTemplateRequest request; + + try + { + request = new GetApprovalTemplateRequest + { + ApprovalTemplateId = ApprovalTemplateId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetApprovalTemplateRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForApprovalTemplate(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetApprovalTemplate(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ApprovalTemplate); + } + + private GetApprovalTemplateResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxApprovalTemplatesList.cs b/Lockbox/Cmdlets/Get-OCILockboxApprovalTemplatesList.cs new file mode 100644 index 000000000..a5b027319 --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxApprovalTemplatesList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxApprovalTemplatesList")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.ApprovalTemplateCollection), typeof(Oci.LockboxService.Responses.ListApprovalTemplatesResponse) })] + public class GetOCILockboxApprovalTemplatesList : OCILockboxCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A generic Id query param used to filter lockbox, access request and approval template by Id.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources for which their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListApprovalTemplatesRequest request; + + try + { + request = new ListApprovalTemplatesRequest + { + OpcRequestId = OpcRequestId, + CompartmentId = CompartmentId, + Id = Id, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ApprovalTemplateCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListApprovalTemplatesRequest request) => Enumerable.Repeat(client.ListApprovalTemplates(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListApprovalTemplatesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListApprovalTemplatesResponse response; + private delegate IEnumerable RequestDelegate(ListApprovalTemplatesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxWorkRequest.cs b/Lockbox/Cmdlets/Get-OCILockboxWorkRequest.cs new file mode 100644 index 000000000..0c9f3b94e --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxWorkRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.WorkRequest), typeof(Oci.LockboxService.Responses.GetWorkRequestResponse) })] + public class GetOCILockboxWorkRequest : OCILockboxCmdlet + { + + [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.LockboxService.Models.OperationStatus[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetWorkRequestRequest request; + + try + { + request = new GetWorkRequestRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetWorkRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.GetWorkRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.WorkRequest); + } + + private GetWorkRequestResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxWorkRequestErrorsList.cs b/Lockbox/Cmdlets/Get-OCILockboxWorkRequestErrorsList.cs new file mode 100644 index 000000000..c7c6fcf91 --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.WorkRequestErrorCollection), typeof(Oci.LockboxService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCILockboxWorkRequestErrorsList : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 timeAccepted is descending.")] + 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(); + ListWorkRequestErrorsRequest request; + + try + { + request = new ListWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxWorkRequestLogsList.cs b/Lockbox/Cmdlets/Get-OCILockboxWorkRequestLogsList.cs new file mode 100644 index 000000000..987c39b81 --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.WorkRequestLogEntryCollection), typeof(Oci.LockboxService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCILockboxWorkRequestLogsList : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 timeAccepted is descending.")] + 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(); + ListWorkRequestLogsRequest request; + + try + { + request = new ListWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxWorkRequestsList.cs b/Lockbox/Cmdlets/Get-OCILockboxWorkRequestsList.cs new file mode 100644 index 000000000..3e1aa311b --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxWorkRequestsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.WorkRequestSummaryCollection), typeof(Oci.LockboxService.Responses.ListWorkRequestsResponse) })] + public class GetOCILockboxWorkRequestsList : OCILockboxCmdlet + { + [Parameter(Mandatory = false, 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 ID of the asynchronous work request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given OperationStatus.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the resource affected by the work request.")] + public string ResourceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListWorkRequestsRequest request; + + try + { + request = new ListWorkRequestsRequest + { + CompartmentId = CompartmentId, + WorkRequestId = WorkRequestId, + Status = Status, + ResourceId = ResourceId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestSummaryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestsRequest request) => Enumerable.Repeat(client.ListWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxesList.cs b/Lockbox/Cmdlets/Get-OCILockboxesList.cs new file mode 100644 index 000000000..d8575d217 --- /dev/null +++ b/Lockbox/Cmdlets/Get-OCILockboxesList.cs @@ -0,0 +1,124 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Get", "OCILockboxesList")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.LockboxCollection), typeof(Oci.LockboxService.Responses.ListLockboxesResponse) })] + public class GetOCILockboxesList : OCILockboxCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique Lockbox identifier")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the resource associated with the lockbox.")] + public string ResourceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the lockbox partner.")] + public System.Nullable LockboxPartner { 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 = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListLockboxesRequest request; + + try + { + request = new ListLockboxesRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + Id = Id, + ResourceId = ResourceId, + LockboxPartner = LockboxPartner, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.LockboxCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListLockboxesRequest request) => Enumerable.Repeat(client.ListLockboxes(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListLockboxesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListLockboxesResponse response; + private delegate IEnumerable RequestDelegate(ListLockboxesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Lockbox/Cmdlets/Invoke-OCILockboxHandleAccessRequest.cs b/Lockbox/Cmdlets/Invoke-OCILockboxHandleAccessRequest.cs new file mode 100644 index 000000000..c92b64332 --- /dev/null +++ b/Lockbox/Cmdlets/Invoke-OCILockboxHandleAccessRequest.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Invoke", "OCILockboxHandleAccessRequest")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.LockboxService.Responses.HandleAccessRequestResponse) })] + public class InvokeOCILockboxHandleAccessRequest : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the access request.")] + public string AccessRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details of handling access request")] + public HandleAccessRequestDetails HandleAccessRequestDetails { 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(); + HandleAccessRequestRequest request; + + try + { + request = new HandleAccessRequestRequest + { + AccessRequestId = AccessRequestId, + HandleAccessRequestDetails = HandleAccessRequestDetails, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.HandleAccessRequest(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private HandleAccessRequestResponse response; + } +} diff --git a/Lockbox/Cmdlets/Move-OCILockboxApprovalTemplateCompartment.cs b/Lockbox/Cmdlets/Move-OCILockboxApprovalTemplateCompartment.cs new file mode 100644 index 000000000..116b11408 --- /dev/null +++ b/Lockbox/Cmdlets/Move-OCILockboxApprovalTemplateCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Move", "OCILockboxApprovalTemplateCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.LockboxService.Responses.ChangeApprovalTemplateCompartmentResponse) })] + public class MoveOCILockboxApprovalTemplateCompartment : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the approval template.")] + public string ApprovalTemplateId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeApprovalTemplateCompartmentDetails ChangeApprovalTemplateCompartmentDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeApprovalTemplateCompartmentRequest request; + + try + { + request = new ChangeApprovalTemplateCompartmentRequest + { + ApprovalTemplateId = ApprovalTemplateId, + ChangeApprovalTemplateCompartmentDetails = ChangeApprovalTemplateCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeApprovalTemplateCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeApprovalTemplateCompartmentResponse response; + } +} diff --git a/Lockbox/Cmdlets/Move-OCILockboxCompartment.cs b/Lockbox/Cmdlets/Move-OCILockboxCompartment.cs new file mode 100644 index 000000000..dbbd10c7a --- /dev/null +++ b/Lockbox/Cmdlets/Move-OCILockboxCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Move", "OCILockboxCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.LockboxService.Responses.ChangeLockboxCompartmentResponse) })] + public class MoveOCILockboxCompartment : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique Lockbox identifier")] + public string LockboxId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeLockboxCompartmentDetails ChangeLockboxCompartmentDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeLockboxCompartmentRequest request; + + try + { + request = new ChangeLockboxCompartmentRequest + { + LockboxId = LockboxId, + ChangeLockboxCompartmentDetails = ChangeLockboxCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeLockboxCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeLockboxCompartmentResponse response; + } +} diff --git a/Lockbox/Cmdlets/New-OCILockbox.cs b/Lockbox/Cmdlets/New-OCILockbox.cs new file mode 100644 index 000000000..2e8d9f754 --- /dev/null +++ b/Lockbox/Cmdlets/New-OCILockbox.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("New", "OCILockbox")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.Lockbox), typeof(Oci.LockboxService.Responses.CreateLockboxResponse) })] + public class NewOCILockbox : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Lockbox.")] + public CreateLockboxDetails CreateLockboxDetails { 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(); + CreateLockboxRequest request; + + try + { + request = new CreateLockboxRequest + { + CreateLockboxDetails = CreateLockboxDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateLockbox(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Lockbox); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateLockboxResponse response; + } +} diff --git a/Lockbox/Cmdlets/New-OCILockboxAccessRequest.cs b/Lockbox/Cmdlets/New-OCILockboxAccessRequest.cs new file mode 100644 index 000000000..d5ff4caf0 --- /dev/null +++ b/Lockbox/Cmdlets/New-OCILockboxAccessRequest.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("New", "OCILockboxAccessRequest")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.AccessRequest), typeof(Oci.LockboxService.Responses.CreateAccessRequestResponse) })] + public class NewOCILockboxAccessRequest : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new access request.")] + public CreateAccessRequestDetails CreateAccessRequestDetails { 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(); + CreateAccessRequestRequest request; + + try + { + request = new CreateAccessRequestRequest + { + CreateAccessRequestDetails = CreateAccessRequestDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateAccessRequest(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AccessRequest); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateAccessRequestResponse response; + } +} diff --git a/Lockbox/Cmdlets/New-OCILockboxApprovalTemplate.cs b/Lockbox/Cmdlets/New-OCILockboxApprovalTemplate.cs new file mode 100644 index 000000000..a3c9747ac --- /dev/null +++ b/Lockbox/Cmdlets/New-OCILockboxApprovalTemplate.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("New", "OCILockboxApprovalTemplate")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.ApprovalTemplate), typeof(Oci.LockboxService.Responses.CreateApprovalTemplateResponse) })] + public class NewOCILockboxApprovalTemplate : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new approval template.")] + public CreateApprovalTemplateDetails CreateApprovalTemplateDetails { 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(); + CreateApprovalTemplateRequest request; + + try + { + request = new CreateApprovalTemplateRequest + { + CreateApprovalTemplateDetails = CreateApprovalTemplateDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateApprovalTemplate(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApprovalTemplate); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateApprovalTemplateResponse response; + } +} diff --git a/Lockbox/Cmdlets/OCILockboxCmdlet.cs b/Lockbox/Cmdlets/OCILockboxCmdlet.cs new file mode 100644 index 000000000..690edf76c --- /dev/null +++ b/Lockbox/Cmdlets/OCILockboxCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService; + +namespace Oci.LockboxService.Cmdlets +{ + public abstract class OCILockboxCmdlet : 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 LockboxClient(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 LockboxClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Lockbox/Cmdlets/Remove-OCILockbox.cs b/Lockbox/Cmdlets/Remove-OCILockbox.cs new file mode 100644 index 000000000..7268993c6 --- /dev/null +++ b/Lockbox/Cmdlets/Remove-OCILockbox.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Remove", "OCILockbox", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.LockboxService.Responses.DeleteLockboxResponse) })] + public class RemoveOCILockbox : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique Lockbox identifier")] + public string LockboxId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + [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("OCILockbox", "Remove")) + { + return; + } + + DeleteLockboxRequest request; + + try + { + request = new DeleteLockboxRequest + { + LockboxId = LockboxId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteLockbox(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteLockboxResponse response; + } +} diff --git a/Lockbox/Cmdlets/Remove-OCILockboxApprovalTemplate.cs b/Lockbox/Cmdlets/Remove-OCILockboxApprovalTemplate.cs new file mode 100644 index 000000000..34f66aa73 --- /dev/null +++ b/Lockbox/Cmdlets/Remove-OCILockboxApprovalTemplate.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Remove", "OCILockboxApprovalTemplate", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.LockboxService.Responses.DeleteApprovalTemplateResponse) })] + public class RemoveOCILockboxApprovalTemplate : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the approval template.")] + public string ApprovalTemplateId { 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("OCILockboxApprovalTemplate", "Remove")) + { + return; + } + + DeleteApprovalTemplateRequest request; + + try + { + request = new DeleteApprovalTemplateRequest + { + ApprovalTemplateId = ApprovalTemplateId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteApprovalTemplate(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteApprovalTemplateResponse response; + } +} diff --git a/Lockbox/Cmdlets/Stop-OCILockboxWorkRequest.cs b/Lockbox/Cmdlets/Stop-OCILockboxWorkRequest.cs new file mode 100644 index 000000000..2230b7ed7 --- /dev/null +++ b/Lockbox/Cmdlets/Stop-OCILockboxWorkRequest.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Stop", "OCILockboxWorkRequest", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.LockboxService.Responses.CancelWorkRequestResponse) })] + public class StopOCILockboxWorkRequest : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"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("OCILockboxWorkRequest", "Stop")) + { + return; + } + + CancelWorkRequestRequest request; + + try + { + request = new CancelWorkRequestRequest + { + WorkRequestId = WorkRequestId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.CancelWorkRequest(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CancelWorkRequestResponse response; + } +} diff --git a/Lockbox/Cmdlets/Update-OCILockbox.cs b/Lockbox/Cmdlets/Update-OCILockbox.cs new file mode 100644 index 000000000..a95eff7c5 --- /dev/null +++ b/Lockbox/Cmdlets/Update-OCILockbox.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Update", "OCILockbox")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.Lockbox), typeof(Oci.LockboxService.Responses.UpdateLockboxResponse) })] + public class UpdateOCILockbox : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique Lockbox identifier")] + public string LockboxId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateLockboxDetails UpdateLockboxDetails { 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(); + UpdateLockboxRequest request; + + try + { + request = new UpdateLockboxRequest + { + LockboxId = LockboxId, + UpdateLockboxDetails = UpdateLockboxDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateLockbox(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Lockbox); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateLockboxResponse response; + } +} diff --git a/Lockbox/Cmdlets/Update-OCILockboxApprovalTemplate.cs b/Lockbox/Cmdlets/Update-OCILockboxApprovalTemplate.cs new file mode 100644 index 000000000..0fd41b352 --- /dev/null +++ b/Lockbox/Cmdlets/Update-OCILockboxApprovalTemplate.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.LockboxService.Requests; +using Oci.LockboxService.Responses; +using Oci.LockboxService.Models; +using Oci.Common.Model; + +namespace Oci.LockboxService.Cmdlets +{ + [Cmdlet("Update", "OCILockboxApprovalTemplate")] + [OutputType(new System.Type[] { typeof(Oci.LockboxService.Models.ApprovalTemplate), typeof(Oci.LockboxService.Responses.UpdateApprovalTemplateResponse) })] + public class UpdateOCILockboxApprovalTemplate : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier (OCID) of the approval template.")] + public string ApprovalTemplateId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateApprovalTemplateDetails UpdateApprovalTemplateDetails { 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(); + UpdateApprovalTemplateRequest request; + + try + { + request = new UpdateApprovalTemplateRequest + { + ApprovalTemplateId = ApprovalTemplateId, + UpdateApprovalTemplateDetails = UpdateApprovalTemplateDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateApprovalTemplate(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApprovalTemplate); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateApprovalTemplateResponse response; + } +} diff --git a/Lockbox/OCI.PSModules.Lockbox.csproj b/Lockbox/OCI.PSModules.Lockbox.csproj new file mode 100644 index 000000000..c09554f78 --- /dev/null +++ b/Lockbox/OCI.PSModules.Lockbox.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Lockbox + OCI.PSModules.Lockbox + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Lockbox + Lockbox Service + + + + + + + + + + + diff --git a/Lockbox/OCI.PSModules.Lockbox.psd1 b/Lockbox/OCI.PSModules.Lockbox.psd1 new file mode 100644 index 000000000..afcbd2a25 --- /dev/null +++ b/Lockbox/OCI.PSModules.Lockbox.psd1 @@ -0,0 +1,144 @@ +# +# Module manifest for module 'OCI.PSModules.Lockbox' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Lockbox.dll' + +# Version number of this module. +ModuleVersion = '36.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '24788d7a-8305-474c-a1c0-add3a2ca16a0' + +# 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 Lockbox 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 = '36.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Lockbox.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-OCILockbox', 'Get-OCILockboxAccessMaterials', + 'Get-OCILockboxAccessRequest', 'Get-OCILockboxAccessRequestsList', + 'Get-OCILockboxApprovalTemplate', + 'Get-OCILockboxApprovalTemplatesList', 'Get-OCILockboxesList', + 'Get-OCILockboxWorkRequest', 'Get-OCILockboxWorkRequestErrorsList', + 'Get-OCILockboxWorkRequestLogsList', + 'Get-OCILockboxWorkRequestsList', + 'Invoke-OCILockboxHandleAccessRequest', + 'Move-OCILockboxApprovalTemplateCompartment', + 'Move-OCILockboxCompartment', 'New-OCILockbox', + 'New-OCILockboxAccessRequest', 'New-OCILockboxApprovalTemplate', + 'Remove-OCILockbox', 'Remove-OCILockboxApprovalTemplate', + 'Stop-OCILockboxWorkRequest', 'Update-OCILockbox', + 'Update-OCILockboxApprovalTemplate' + +# 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','Lockbox' + + # 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/Loganalytics/OCI.PSModules.Loganalytics.psd1 b/Loganalytics/OCI.PSModules.Loganalytics.psd1 index 6d8c1e159..e6897102c 100644 --- a/Loganalytics/OCI.PSModules.Loganalytics.psd1 +++ b/Loganalytics/OCI.PSModules.Loganalytics.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loganalytics.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loganalytics.dll' diff --git a/Logging/OCI.PSModules.Logging.psd1 b/Logging/OCI.PSModules.Logging.psd1 index 9103c977b..7494e716e 100644 --- a/Logging/OCI.PSModules.Logging.psd1 +++ b/Logging/OCI.PSModules.Logging.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Logging.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Logging.dll' diff --git a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 index 8039de445..eecb795a2 100644 --- a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 +++ b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingingestion.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loggingingestion.dll' diff --git a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 index 84adee376..a846d8bdf 100644 --- a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 +++ b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingsearch.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loggingsearch.dll' diff --git a/Managementagent/OCI.PSModules.Managementagent.psd1 b/Managementagent/OCI.PSModules.Managementagent.psd1 index 360efbcfe..e6ca850cc 100644 --- a/Managementagent/OCI.PSModules.Managementagent.psd1 +++ b/Managementagent/OCI.PSModules.Managementagent.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementagent.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Managementagent.dll' diff --git a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 index b8586f4e5..05686aab6 100644 --- a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 +++ b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementdashboard.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Managementdashboard.dll' diff --git a/Marketplace/OCI.PSModules.Marketplace.psd1 b/Marketplace/OCI.PSModules.Marketplace.psd1 index cb5e44868..3428b2236 100644 --- a/Marketplace/OCI.PSModules.Marketplace.psd1 +++ b/Marketplace/OCI.PSModules.Marketplace.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Marketplace.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplace.dll' diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAsset.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAsset.cs new file mode 100644 index 000000000..e114bf372 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAsset.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaAsset", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaAsset), typeof(Oci.MediaservicesService.Responses.GetMediaAssetResponse) })] + public class GetOCIMediaservicesMediaAsset : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier", ParameterSetName = Default)] + public string MediaAssetId { 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.MediaservicesService.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(); + GetMediaAssetRequest request; + + try + { + request = new GetMediaAssetRequest + { + MediaAssetId = MediaAssetId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetMediaAssetRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForMediaAsset(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetMediaAsset(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.MediaAsset); + } + + private GetMediaAssetResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs new file mode 100644 index 000000000..e05491ffc --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs @@ -0,0 +1,111 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaAssetDistributionChannelAttachment", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaAssetDistributionChannelAttachment), typeof(Oci.MediaservicesService.Responses.GetMediaAssetDistributionChannelAttachmentResponse) })] + public class GetOCIMediaservicesMediaAssetDistributionChannelAttachment : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier", ParameterSetName = Default)] + public string MediaAssetId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique DistributionChannel identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique DistributionChannel identifier.", ParameterSetName = Default)] + public string DistributionChannelId { 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Version of the attachment.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Version of the attachment.", ParameterSetName = Default)] + public System.Nullable Version { 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.MediaservicesService.Models.MediaAssetDistributionChannelAttachment.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMediaAssetDistributionChannelAttachmentRequest request; + + try + { + request = new GetMediaAssetDistributionChannelAttachmentRequest + { + MediaAssetId = MediaAssetId, + DistributionChannelId = DistributionChannelId, + OpcRequestId = OpcRequestId, + Version = Version + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetMediaAssetDistributionChannelAttachmentRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForMediaAssetDistributionChannelAttachment(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetMediaAssetDistributionChannelAttachment(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.MediaAssetDistributionChannelAttachment); + } + + private GetMediaAssetDistributionChannelAttachmentResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachmentsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachmentsList.cs new file mode 100644 index 000000000..345c41dea --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetDistributionChannelAttachmentsList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaAssetDistributionChannelAttachmentsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaAssetDistributionChannelAttachmentCollection), typeof(Oci.MediaservicesService.Responses.ListMediaAssetDistributionChannelAttachmentsResponse) })] + public class GetOCIMediaservicesMediaAssetDistributionChannelAttachmentsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier")] + public string MediaAssetId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { 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 sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique DistributionChannel identifier.")] + public string DistributionChannelId { 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(); + ListMediaAssetDistributionChannelAttachmentsRequest request; + + try + { + request = new ListMediaAssetDistributionChannelAttachmentsRequest + { + MediaAssetId = MediaAssetId, + DisplayName = DisplayName, + Limit = Limit, + Page = Page, + OpcRequestId = OpcRequestId, + SortOrder = SortOrder, + SortBy = SortBy, + DistributionChannelId = DistributionChannelId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MediaAssetDistributionChannelAttachmentCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListMediaAssetDistributionChannelAttachmentsRequest request) => Enumerable.Repeat(client.ListMediaAssetDistributionChannelAttachments(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMediaAssetDistributionChannelAttachmentsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMediaAssetDistributionChannelAttachmentsResponse response; + private delegate IEnumerable RequestDelegate(ListMediaAssetDistributionChannelAttachmentsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetsList.cs new file mode 100644 index 000000000..07faf6200 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaAssetsList.cs @@ -0,0 +1,148 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaAssetsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaAssetCollection), typeof(Oci.MediaservicesService.Responses.ListMediaAssetsResponse) })] + public class GetOCIMediaservicesMediaAssetsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with lifecycleState matching the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique DistributionChannel identifier.")] + public string DistributionChannelId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier of the asset from which this asset is derived.")] + public string ParentMediaAssetId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier of the first asset upload.")] + public string MasterMediaAssetId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter MediaAsset by the asset type.")] + public System.Nullable Type { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter MediaAsset by the bucket where the object is stored.")] + public string BucketName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter MediaAsset by the name of the object in object storage.")] + public string ObjectName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the MediaWorkflowJob used to produce this asset, if this parameter is supplied then the workflow ID must also be supplied.")] + public string MediaWorkflowJobId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the MediaWorkflow used to produce this asset.")] + public string SourceMediaWorkflowId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The version of the MediaWorkflow used to produce this asset.")] + public System.Nullable SourceMediaWorkflowVersion { 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(); + ListMediaAssetsRequest request; + + try + { + request = new ListMediaAssetsRequest + { + CompartmentId = CompartmentId, + DisplayName = DisplayName, + Limit = Limit, + Page = Page, + LifecycleState = LifecycleState, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DistributionChannelId = DistributionChannelId, + ParentMediaAssetId = ParentMediaAssetId, + MasterMediaAssetId = MasterMediaAssetId, + Type = Type, + BucketName = BucketName, + ObjectName = ObjectName, + MediaWorkflowJobId = MediaWorkflowJobId, + SourceMediaWorkflowId = SourceMediaWorkflowId, + SourceMediaWorkflowVersion = SourceMediaWorkflowVersion + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MediaAssetCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListMediaAssetsRequest request) => Enumerable.Repeat(client.ListMediaAssets(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMediaAssetsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMediaAssetsResponse response; + private delegate IEnumerable RequestDelegate(ListMediaAssetsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflow.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflow.cs new file mode 100644 index 000000000..2f5bacaa0 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflow.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflow", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflow), typeof(Oci.MediaservicesService.Responses.GetMediaWorkflowResponse) })] + public class GetOCIMediaservicesMediaWorkflow : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflow identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflow identifier.", ParameterSetName = Default)] + public string MediaWorkflowId { 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.MediaservicesService.Models.MediaWorkflow.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMediaWorkflowRequest request; + + try + { + request = new GetMediaWorkflowRequest + { + MediaWorkflowId = MediaWorkflowId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetMediaWorkflowRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForMediaWorkflow(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetMediaWorkflow(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.MediaWorkflow); + } + + private GetMediaWorkflowResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfiguration.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfiguration.cs new file mode 100644 index 000000000..64a1400e2 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfiguration.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowConfiguration", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowConfiguration), typeof(Oci.MediaservicesService.Responses.GetMediaWorkflowConfigurationResponse) })] + public class GetOCIMediaservicesMediaWorkflowConfiguration : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowConfiguration identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowConfiguration identifier.", ParameterSetName = Default)] + public string MediaWorkflowConfigurationId { 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.MediaservicesService.Models.MediaWorkflowConfiguration.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMediaWorkflowConfigurationRequest request; + + try + { + request = new GetMediaWorkflowConfigurationRequest + { + MediaWorkflowConfigurationId = MediaWorkflowConfigurationId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetMediaWorkflowConfigurationRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForMediaWorkflowConfiguration(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetMediaWorkflowConfiguration(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.MediaWorkflowConfiguration); + } + + private GetMediaWorkflowConfigurationResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfigurationsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfigurationsList.cs new file mode 100644 index 000000000..2a10805c9 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowConfigurationsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowConfigurationsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowConfigurationCollection), typeof(Oci.MediaservicesService.Responses.ListMediaWorkflowConfigurationsResponse) })] + public class GetOCIMediaservicesMediaWorkflowConfigurationsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with lifecycleState matching the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowConfiguration identifier.")] + public string Id { 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 = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMediaWorkflowConfigurationsRequest request; + + try + { + request = new ListMediaWorkflowConfigurationsRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + Id = Id, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MediaWorkflowConfigurationCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListMediaWorkflowConfigurationsRequest request) => Enumerable.Repeat(client.ListMediaWorkflowConfigurations(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMediaWorkflowConfigurationsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMediaWorkflowConfigurationsResponse response; + private delegate IEnumerable RequestDelegate(ListMediaWorkflowConfigurationsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJob.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJob.cs new file mode 100644 index 000000000..ddb27932b --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJob.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowJob", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowJob), typeof(Oci.MediaservicesService.Responses.GetMediaWorkflowJobResponse) })] + public class GetOCIMediaservicesMediaWorkflowJob : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowJob identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowJob identifier.", ParameterSetName = Default)] + public string MediaWorkflowJobId { 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.MediaservicesService.Models.MediaWorkflowJob.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMediaWorkflowJobRequest request; + + try + { + request = new GetMediaWorkflowJobRequest + { + MediaWorkflowJobId = MediaWorkflowJobId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetMediaWorkflowJobRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForMediaWorkflowJob(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetMediaWorkflowJob(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.MediaWorkflowJob); + } + + private GetMediaWorkflowJobResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFact.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFact.cs new file mode 100644 index 000000000..ac0b804b0 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFact.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowJobFact")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowJobFact), typeof(Oci.MediaservicesService.Responses.GetMediaWorkflowJobFactResponse) })] + public class GetOCIMediaservicesMediaWorkflowJobFact : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowJob identifier.")] + public string MediaWorkflowJobId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Identifier of the MediaWorkflowJobFact within a MediaWorkflowJob.")] + public System.Nullable Key { 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(); + GetMediaWorkflowJobFactRequest request; + + try + { + request = new GetMediaWorkflowJobFactRequest + { + MediaWorkflowJobId = MediaWorkflowJobId, + Key = Key, + OpcRequestId = OpcRequestId + }; + + response = client.GetMediaWorkflowJobFact(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaWorkflowJobFact); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMediaWorkflowJobFactResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFactsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFactsList.cs new file mode 100644 index 000000000..ac54d6089 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobFactsList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowJobFactsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowJobFactCollection), typeof(Oci.MediaservicesService.Responses.ListMediaWorkflowJobFactsResponse) })] + public class GetOCIMediaservicesMediaWorkflowJobFactsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowJob identifier.")] + public string MediaWorkflowJobId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by MediaWorkflowJob ID and MediaWorkflowJobFact key.")] + public System.Nullable Key { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Types of details to include.")] + public System.Nullable Type { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Types of details to include.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMediaWorkflowJobFactsRequest request; + + try + { + request = new ListMediaWorkflowJobFactsRequest + { + MediaWorkflowJobId = MediaWorkflowJobId, + Key = Key, + Type = Type, + SortBy = SortBy, + SortOrder = SortOrder, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MediaWorkflowJobFactCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListMediaWorkflowJobFactsRequest request) => Enumerable.Repeat(client.ListMediaWorkflowJobFacts(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMediaWorkflowJobFactsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMediaWorkflowJobFactsResponse response; + private delegate IEnumerable RequestDelegate(ListMediaWorkflowJobFactsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobsList.cs new file mode 100644 index 000000000..8ca287c2c --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowJobsList.cs @@ -0,0 +1,120 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowJobsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowJobCollection), typeof(Oci.MediaservicesService.Responses.ListMediaWorkflowJobsResponse) })] + public class GetOCIMediaservicesMediaWorkflowJobsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique MediaWorkflowJob identifier")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflow identifier.")] + public string MediaWorkflowId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with lifecycleState matching the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 parameter sort by.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMediaWorkflowJobsRequest request; + + try + { + request = new ListMediaWorkflowJobsRequest + { + CompartmentId = CompartmentId, + Id = Id, + MediaWorkflowId = MediaWorkflowId, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MediaWorkflowJobCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListMediaWorkflowJobsRequest request) => Enumerable.Repeat(client.ListMediaWorkflowJobs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMediaWorkflowJobsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMediaWorkflowJobsResponse response; + private delegate IEnumerable RequestDelegate(ListMediaWorkflowJobsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowTaskDeclarationsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowTaskDeclarationsList.cs new file mode 100644 index 000000000..aa397f8d9 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowTaskDeclarationsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowTaskDeclarationsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowTaskDeclarationCollection), typeof(Oci.MediaservicesService.Responses.ListMediaWorkflowTaskDeclarationsResponse) })] + public class GetOCIMediaservicesMediaWorkflowTaskDeclarationsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with their system defined, unique name matching the given name.")] + public string Name { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to select MediaWorkflowTaskDeclaration by version.")] + public System.Nullable Version { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to only select the newest version for each MediaWorkflowTaskDeclaration name.")] + public System.Nullable IsCurrent { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided.")] + public System.Nullable SortBy { 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 = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMediaWorkflowTaskDeclarationsRequest request; + + try + { + request = new ListMediaWorkflowTaskDeclarationsRequest + { + CompartmentId = CompartmentId, + Name = Name, + Version = Version, + IsCurrent = IsCurrent, + SortBy = SortBy, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MediaWorkflowTaskDeclarationCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListMediaWorkflowTaskDeclarationsRequest request) => Enumerable.Repeat(client.ListMediaWorkflowTaskDeclarations(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMediaWorkflowTaskDeclarationsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMediaWorkflowTaskDeclarationsResponse response; + private delegate IEnumerable RequestDelegate(ListMediaWorkflowTaskDeclarationsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowsList.cs new file mode 100644 index 000000000..31a62ee7c --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesMediaWorkflowsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesMediaWorkflowsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowCollection), typeof(Oci.MediaservicesService.Responses.ListMediaWorkflowsResponse) })] + public class GetOCIMediaservicesMediaWorkflowsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflow identifier.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with lifecycleState matching the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMediaWorkflowsRequest request; + + try + { + request = new ListMediaWorkflowsRequest + { + CompartmentId = CompartmentId, + Id = Id, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + SortOrder = SortOrder, + SortBy = SortBy, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MediaWorkflowCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListMediaWorkflowsRequest request) => Enumerable.Repeat(client.ListMediaWorkflows(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMediaWorkflowsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMediaWorkflowsResponse response; + private delegate IEnumerable RequestDelegate(ListMediaWorkflowsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfig.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfig.cs new file mode 100644 index 000000000..22e5a82e8 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfig.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesStreamCdnConfig", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamCdnConfig), typeof(Oci.MediaservicesService.Responses.GetStreamCdnConfigResponse) })] + public class GetOCIMediaservicesStreamCdnConfig : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique StreamCdnConfig identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique StreamCdnConfig identifier.", ParameterSetName = Default)] + public string StreamCdnConfigId { 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.MediaservicesService.Models.StreamCdnConfig.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetStreamCdnConfigRequest request; + + try + { + request = new GetStreamCdnConfigRequest + { + StreamCdnConfigId = StreamCdnConfigId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetStreamCdnConfigRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForStreamCdnConfig(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetStreamCdnConfig(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.StreamCdnConfig); + } + + private GetStreamCdnConfigResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfigsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfigsList.cs new file mode 100644 index 000000000..247d2d82e --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamCdnConfigsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesStreamCdnConfigsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamCdnConfigCollection), typeof(Oci.MediaservicesService.Responses.ListStreamCdnConfigsResponse) })] + public class GetOCIMediaservicesStreamCdnConfigsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Stream Distribution Channel identifier this CdnConfig belongs to.")] + public string DistributionChannelId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique StreamCdnConfig identifier.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with lifecycleState matching the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListStreamCdnConfigsRequest request; + + try + { + request = new ListStreamCdnConfigsRequest + { + DistributionChannelId = DistributionChannelId, + Id = Id, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + SortOrder = SortOrder, + SortBy = SortBy, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.StreamCdnConfigCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListStreamCdnConfigsRequest request) => Enumerable.Repeat(client.ListStreamCdnConfigs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListStreamCdnConfigsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListStreamCdnConfigsResponse response; + private delegate IEnumerable RequestDelegate(ListStreamCdnConfigsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannel.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannel.cs new file mode 100644 index 000000000..86a0cdb80 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannel.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesStreamDistributionChannel", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamDistributionChannel), typeof(Oci.MediaservicesService.Responses.GetStreamDistributionChannelResponse) })] + public class GetOCIMediaservicesStreamDistributionChannel : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel path identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel path identifier.", ParameterSetName = Default)] + public string StreamDistributionChannelId { 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.MediaservicesService.Models.StreamDistributionChannel.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetStreamDistributionChannelRequest request; + + try + { + request = new GetStreamDistributionChannelRequest + { + StreamDistributionChannelId = StreamDistributionChannelId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetStreamDistributionChannelRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForStreamDistributionChannel(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetStreamDistributionChannel(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.StreamDistributionChannel); + } + + private GetStreamDistributionChannelResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannelsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannelsList.cs new file mode 100644 index 000000000..71c5969f4 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamDistributionChannelsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesStreamDistributionChannelsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamDistributionChannelCollection), typeof(Oci.MediaservicesService.Responses.ListStreamDistributionChannelsResponse) })] + public class GetOCIMediaservicesStreamDistributionChannelsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel identifier.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with lifecycleState matching the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListStreamDistributionChannelsRequest request; + + try + { + request = new ListStreamDistributionChannelsRequest + { + CompartmentId = CompartmentId, + Id = Id, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + SortOrder = SortOrder, + SortBy = SortBy, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.StreamDistributionChannelCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListStreamDistributionChannelsRequest request) => Enumerable.Repeat(client.ListStreamDistributionChannels(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListStreamDistributionChannelsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListStreamDistributionChannelsResponse response; + private delegate IEnumerable RequestDelegate(ListStreamDistributionChannelsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfig.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfig.cs new file mode 100644 index 000000000..4fc47a760 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfig.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesStreamPackagingConfig", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamPackagingConfig), typeof(Oci.MediaservicesService.Responses.GetStreamPackagingConfigResponse) })] + public class GetOCIMediaservicesStreamPackagingConfig : OCIMediaServicesCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Packaging Configuration path identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Packaging Configuration path identifier.", ParameterSetName = Default)] + public string StreamPackagingConfigId { 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.MediaservicesService.Models.StreamPackagingConfig.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetStreamPackagingConfigRequest request; + + try + { + request = new GetStreamPackagingConfigRequest + { + StreamPackagingConfigId = StreamPackagingConfigId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetStreamPackagingConfigRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForStreamPackagingConfig(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetStreamPackagingConfig(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.StreamPackagingConfig); + } + + private GetStreamPackagingConfigResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfigsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfigsList.cs new file mode 100644 index 000000000..c1cca6ffd --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesStreamPackagingConfigsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesStreamPackagingConfigsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamPackagingConfigCollection), typeof(Oci.MediaservicesService.Responses.ListStreamPackagingConfigsResponse) })] + public class GetOCIMediaservicesStreamPackagingConfigsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel identifier.")] + public string DistributionChannelId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Packaging Configuration identifier.")] + public string StreamPackagingConfigId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with lifecycleState matching the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListStreamPackagingConfigsRequest request; + + try + { + request = new ListStreamPackagingConfigsRequest + { + DistributionChannelId = DistributionChannelId, + StreamPackagingConfigId = StreamPackagingConfigId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + SortOrder = SortOrder, + SortBy = SortBy, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.StreamPackagingConfigCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListStreamPackagingConfigsRequest request) => Enumerable.Repeat(client.ListStreamPackagingConfigs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListStreamPackagingConfigsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListStreamPackagingConfigsResponse response; + private delegate IEnumerable RequestDelegate(ListStreamPackagingConfigsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Get-OCIMediaservicesSystemMediaWorkflowsList.cs b/Mediaservices/Cmdlets/Get-OCIMediaservicesSystemMediaWorkflowsList.cs new file mode 100644 index 000000000..92bd61306 --- /dev/null +++ b/Mediaservices/Cmdlets/Get-OCIMediaservicesSystemMediaWorkflowsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Get", "OCIMediaservicesSystemMediaWorkflowsList")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.SystemMediaWorkflowCollection), typeof(Oci.MediaservicesService.Responses.ListSystemMediaWorkflowsResponse) })] + public class GetOCIMediaservicesSystemMediaWorkflowsList : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources with their system defined, unique name matching the given name.")] + public string Name { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListSystemMediaWorkflowsRequest request; + + try + { + request = new ListSystemMediaWorkflowsRequest + { + CompartmentId = CompartmentId, + Name = Name, + SortOrder = SortOrder, + Page = Page, + Limit = Limit, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.SystemMediaWorkflowCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListSystemMediaWorkflowsRequest request) => Enumerable.Repeat(client.ListSystemMediaWorkflows(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSystemMediaWorkflowsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSystemMediaWorkflowsResponse response; + private delegate IEnumerable RequestDelegate(ListSystemMediaWorkflowsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Mediaservices/Cmdlets/Invoke-OCIMediaservicesIngestStreamDistributionChannel.cs b/Mediaservices/Cmdlets/Invoke-OCIMediaservicesIngestStreamDistributionChannel.cs new file mode 100644 index 000000000..a81b0a5e2 --- /dev/null +++ b/Mediaservices/Cmdlets/Invoke-OCIMediaservicesIngestStreamDistributionChannel.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMediaservicesIngestStreamDistributionChannel")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.IngestStreamDistributionChannelResult), typeof(Oci.MediaservicesService.Responses.IngestStreamDistributionChannelResponse) })] + public class InvokeOCIMediaservicesIngestStreamDistributionChannel : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel path identifier.")] + public string StreamDistributionChannelId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Playlist entry information. This parameter also accepts subtype of type .")] + public IngestStreamDistributionChannelDetails IngestStreamDistributionChannelDetails { 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 the 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(); + IngestStreamDistributionChannelRequest request; + + try + { + request = new IngestStreamDistributionChannelRequest + { + StreamDistributionChannelId = StreamDistributionChannelId, + IngestStreamDistributionChannelDetails = IngestStreamDistributionChannelDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.IngestStreamDistributionChannel(request).GetAwaiter().GetResult(); + WriteOutput(response, response.IngestStreamDistributionChannelResult); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private IngestStreamDistributionChannelResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaAssetCompartment.cs b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaAssetCompartment.cs new file mode 100644 index 000000000..e222210a8 --- /dev/null +++ b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaAssetCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Move", "OCIMediaservicesMediaAssetCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MediaservicesService.Responses.ChangeMediaAssetCompartmentResponse) })] + public class MoveOCIMediaservicesMediaAssetCompartment : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier")] + public string MediaAssetId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeMediaAssetCompartmentDetails ChangeMediaAssetCompartmentDetails { 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 the 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 = @"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(); + ChangeMediaAssetCompartmentRequest request; + + try + { + request = new ChangeMediaAssetCompartmentRequest + { + MediaAssetId = MediaAssetId, + ChangeMediaAssetCompartmentDetails = ChangeMediaAssetCompartmentDetails, + OpcRetryToken = OpcRetryToken, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeMediaAssetCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeMediaAssetCompartmentResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowCompartment.cs b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowCompartment.cs new file mode 100644 index 000000000..ef75581a2 --- /dev/null +++ b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Move", "OCIMediaservicesMediaWorkflowCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MediaservicesService.Responses.ChangeMediaWorkflowCompartmentResponse) })] + public class MoveOCIMediaservicesMediaWorkflowCompartment : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflow identifier.")] + public string MediaWorkflowId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The change compartment payload.")] + public ChangeMediaWorkflowCompartmentDetails ChangeMediaWorkflowCompartmentDetails { 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 the 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 = @"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(); + ChangeMediaWorkflowCompartmentRequest request; + + try + { + request = new ChangeMediaWorkflowCompartmentRequest + { + MediaWorkflowId = MediaWorkflowId, + ChangeMediaWorkflowCompartmentDetails = ChangeMediaWorkflowCompartmentDetails, + OpcRetryToken = OpcRetryToken, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeMediaWorkflowCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeMediaWorkflowCompartmentResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowConfigurationCompartment.cs b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowConfigurationCompartment.cs new file mode 100644 index 000000000..174d90c66 --- /dev/null +++ b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowConfigurationCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Move", "OCIMediaservicesMediaWorkflowConfigurationCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MediaservicesService.Responses.ChangeMediaWorkflowConfigurationCompartmentResponse) })] + public class MoveOCIMediaservicesMediaWorkflowConfigurationCompartment : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowConfiguration identifier.")] + public string MediaWorkflowConfigurationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeMediaWorkflowConfigurationCompartmentDetails ChangeMediaWorkflowConfigurationCompartmentDetails { 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 the 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 = @"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(); + ChangeMediaWorkflowConfigurationCompartmentRequest request; + + try + { + request = new ChangeMediaWorkflowConfigurationCompartmentRequest + { + MediaWorkflowConfigurationId = MediaWorkflowConfigurationId, + ChangeMediaWorkflowConfigurationCompartmentDetails = ChangeMediaWorkflowConfigurationCompartmentDetails, + OpcRetryToken = OpcRetryToken, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeMediaWorkflowConfigurationCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeMediaWorkflowConfigurationCompartmentResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowJobCompartment.cs b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowJobCompartment.cs new file mode 100644 index 000000000..7b4caefac --- /dev/null +++ b/Mediaservices/Cmdlets/Move-OCIMediaservicesMediaWorkflowJobCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Move", "OCIMediaservicesMediaWorkflowJobCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MediaservicesService.Responses.ChangeMediaWorkflowJobCompartmentResponse) })] + public class MoveOCIMediaservicesMediaWorkflowJobCompartment : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowJob identifier.")] + public string MediaWorkflowJobId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The change compartment payload.")] + public ChangeMediaWorkflowJobCompartmentDetails ChangeMediaWorkflowJobCompartmentDetails { 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 the 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 = @"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(); + ChangeMediaWorkflowJobCompartmentRequest request; + + try + { + request = new ChangeMediaWorkflowJobCompartmentRequest + { + MediaWorkflowJobId = MediaWorkflowJobId, + ChangeMediaWorkflowJobCompartmentDetails = ChangeMediaWorkflowJobCompartmentDetails, + OpcRetryToken = OpcRetryToken, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeMediaWorkflowJobCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeMediaWorkflowJobCompartmentResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Move-OCIMediaservicesStreamDistributionChannelCompartment.cs b/Mediaservices/Cmdlets/Move-OCIMediaservicesStreamDistributionChannelCompartment.cs new file mode 100644 index 000000000..3ba2a7cde --- /dev/null +++ b/Mediaservices/Cmdlets/Move-OCIMediaservicesStreamDistributionChannelCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Move", "OCIMediaservicesStreamDistributionChannelCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MediaservicesService.Responses.ChangeStreamDistributionChannelCompartmentResponse) })] + public class MoveOCIMediaservicesStreamDistributionChannelCompartment : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel path identifier.")] + public string StreamDistributionChannelId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The change compartment payload.")] + public ChangeStreamDistributionChannelCompartmentDetails ChangeStreamDistributionChannelCompartmentDetails { 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 the 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 = @"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(); + ChangeStreamDistributionChannelCompartmentRequest request; + + try + { + request = new ChangeStreamDistributionChannelCompartmentRequest + { + StreamDistributionChannelId = StreamDistributionChannelId, + ChangeStreamDistributionChannelCompartmentDetails = ChangeStreamDistributionChannelCompartmentDetails, + OpcRetryToken = OpcRetryToken, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeStreamDistributionChannelCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeStreamDistributionChannelCompartmentResponse response; + } +} diff --git a/Mediaservices/Cmdlets/New-OCIMediaservicesMediaAsset.cs b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaAsset.cs new file mode 100644 index 000000000..e1b73d7ad --- /dev/null +++ b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaAsset.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("New", "OCIMediaservicesMediaAsset")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaAsset), typeof(Oci.MediaservicesService.Responses.CreateMediaAssetResponse) })] + public class NewOCIMediaservicesMediaAsset : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new MediaAsset.")] + public CreateMediaAssetDetails CreateMediaAssetDetails { 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 the 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(); + CreateMediaAssetRequest request; + + try + { + request = new CreateMediaAssetRequest + { + CreateMediaAssetDetails = CreateMediaAssetDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateMediaAsset(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaAsset); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMediaAssetResponse response; + } +} diff --git a/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflow.cs b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflow.cs new file mode 100644 index 000000000..60b816160 --- /dev/null +++ b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflow.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("New", "OCIMediaservicesMediaWorkflow")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflow), typeof(Oci.MediaservicesService.Responses.CreateMediaWorkflowResponse) })] + public class NewOCIMediaservicesMediaWorkflow : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new MediaWorkflow.")] + public CreateMediaWorkflowDetails CreateMediaWorkflowDetails { 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 the 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(); + CreateMediaWorkflowRequest request; + + try + { + request = new CreateMediaWorkflowRequest + { + CreateMediaWorkflowDetails = CreateMediaWorkflowDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateMediaWorkflow(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaWorkflow); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMediaWorkflowResponse response; + } +} diff --git a/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowConfiguration.cs b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowConfiguration.cs new file mode 100644 index 000000000..d50817ed6 --- /dev/null +++ b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowConfiguration.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("New", "OCIMediaservicesMediaWorkflowConfiguration")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowConfiguration), typeof(Oci.MediaservicesService.Responses.CreateMediaWorkflowConfigurationResponse) })] + public class NewOCIMediaservicesMediaWorkflowConfiguration : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new MediaWorkflowConfiguration.")] + public CreateMediaWorkflowConfigurationDetails CreateMediaWorkflowConfigurationDetails { 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 the 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(); + CreateMediaWorkflowConfigurationRequest request; + + try + { + request = new CreateMediaWorkflowConfigurationRequest + { + CreateMediaWorkflowConfigurationDetails = CreateMediaWorkflowConfigurationDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateMediaWorkflowConfiguration(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaWorkflowConfiguration); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMediaWorkflowConfigurationResponse response; + } +} diff --git a/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowJob.cs b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowJob.cs new file mode 100644 index 000000000..894cb95ab --- /dev/null +++ b/Mediaservices/Cmdlets/New-OCIMediaservicesMediaWorkflowJob.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("New", "OCIMediaservicesMediaWorkflowJob")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowJob), typeof(Oci.MediaservicesService.Responses.CreateMediaWorkflowJobResponse) })] + public class NewOCIMediaservicesMediaWorkflowJob : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to run the mediaWorkflow. This parameter also accepts subtypes , of type .")] + public CreateMediaWorkflowJobDetails CreateMediaWorkflowJobDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMediaWorkflowJobRequest request; + + try + { + request = new CreateMediaWorkflowJobRequest + { + CreateMediaWorkflowJobDetails = CreateMediaWorkflowJobDetails, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMediaWorkflowJob(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaWorkflowJob); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMediaWorkflowJobResponse response; + } +} diff --git a/Mediaservices/Cmdlets/New-OCIMediaservicesStreamCdnConfig.cs b/Mediaservices/Cmdlets/New-OCIMediaservicesStreamCdnConfig.cs new file mode 100644 index 000000000..838bfdefe --- /dev/null +++ b/Mediaservices/Cmdlets/New-OCIMediaservicesStreamCdnConfig.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("New", "OCIMediaservicesStreamCdnConfig")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamCdnConfig), typeof(Oci.MediaservicesService.Responses.CreateStreamCdnConfigResponse) })] + public class NewOCIMediaservicesStreamCdnConfig : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new StreamCdnConfig.")] + public CreateStreamCdnConfigDetails CreateStreamCdnConfigDetails { 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 the 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(); + CreateStreamCdnConfigRequest request; + + try + { + request = new CreateStreamCdnConfigRequest + { + CreateStreamCdnConfigDetails = CreateStreamCdnConfigDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateStreamCdnConfig(request).GetAwaiter().GetResult(); + WriteOutput(response, response.StreamCdnConfig); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateStreamCdnConfigResponse response; + } +} diff --git a/Mediaservices/Cmdlets/New-OCIMediaservicesStreamDistributionChannel.cs b/Mediaservices/Cmdlets/New-OCIMediaservicesStreamDistributionChannel.cs new file mode 100644 index 000000000..7e355b97f --- /dev/null +++ b/Mediaservices/Cmdlets/New-OCIMediaservicesStreamDistributionChannel.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("New", "OCIMediaservicesStreamDistributionChannel")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamDistributionChannel), typeof(Oci.MediaservicesService.Responses.CreateStreamDistributionChannelResponse) })] + public class NewOCIMediaservicesStreamDistributionChannel : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Stream Distribution Channel.")] + public CreateStreamDistributionChannelDetails CreateStreamDistributionChannelDetails { 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 the 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(); + CreateStreamDistributionChannelRequest request; + + try + { + request = new CreateStreamDistributionChannelRequest + { + CreateStreamDistributionChannelDetails = CreateStreamDistributionChannelDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateStreamDistributionChannel(request).GetAwaiter().GetResult(); + WriteOutput(response, response.StreamDistributionChannel); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateStreamDistributionChannelResponse response; + } +} diff --git a/Mediaservices/Cmdlets/New-OCIMediaservicesStreamPackagingConfig.cs b/Mediaservices/Cmdlets/New-OCIMediaservicesStreamPackagingConfig.cs new file mode 100644 index 000000000..0d1a15072 --- /dev/null +++ b/Mediaservices/Cmdlets/New-OCIMediaservicesStreamPackagingConfig.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("New", "OCIMediaservicesStreamPackagingConfig")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamPackagingConfig), typeof(Oci.MediaservicesService.Responses.CreateStreamPackagingConfigResponse) })] + public class NewOCIMediaservicesStreamPackagingConfig : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Stream Packaging Configuration.")] + public CreateStreamPackagingConfigDetails CreateStreamPackagingConfigDetails { 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 the 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(); + CreateStreamPackagingConfigRequest request; + + try + { + request = new CreateStreamPackagingConfigRequest + { + CreateStreamPackagingConfigDetails = CreateStreamPackagingConfigDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateStreamPackagingConfig(request).GetAwaiter().GetResult(); + WriteOutput(response, response.StreamPackagingConfig); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateStreamPackagingConfigResponse response; + } +} diff --git a/Mediaservices/Cmdlets/OCIMediaServicesCmdlet.cs b/Mediaservices/Cmdlets/OCIMediaServicesCmdlet.cs new file mode 100644 index 000000000..76381abbf --- /dev/null +++ b/Mediaservices/Cmdlets/OCIMediaServicesCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService; + +namespace Oci.MediaservicesService.Cmdlets +{ + public abstract class OCIMediaServicesCmdlet : 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 MediaServicesClient(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 MediaServicesClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAsset.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAsset.cs new file mode 100644 index 000000000..af79749b5 --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAsset.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesMediaAsset", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MediaservicesService.Responses.DeleteMediaAssetResponse) })] + public class RemoveOCIMediaservicesMediaAsset : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier")] + public string MediaAssetId { 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 = @"DeleteMode decides whether to delete all the immediate children or all assets with the asset's ID as their masterMediaAssetId.")] + public System.Nullable DeleteMode { 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("OCIMediaservicesMediaAsset", "Remove")) + { + return; + } + + DeleteMediaAssetRequest request; + + try + { + request = new DeleteMediaAssetRequest + { + MediaAssetId = MediaAssetId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + DeleteMode = DeleteMode + }; + + response = client.DeleteMediaAsset(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteMediaAssetResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs new file mode 100644 index 000000000..ff89ca0a4 --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaAssetDistributionChannelAttachment.cs @@ -0,0 +1,84 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesMediaAssetDistributionChannelAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MediaservicesService.Responses.DeleteMediaAssetDistributionChannelAttachmentResponse) })] + public class RemoveOCIMediaservicesMediaAssetDistributionChannelAttachment : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier")] + public string MediaAssetId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique DistributionChannel identifier.")] + public string DistributionChannelId { 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 = @"Version of the attachment.")] + public System.Nullable Version { 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("OCIMediaservicesMediaAssetDistributionChannelAttachment", "Remove")) + { + return; + } + + DeleteMediaAssetDistributionChannelAttachmentRequest request; + + try + { + request = new DeleteMediaAssetDistributionChannelAttachmentRequest + { + MediaAssetId = MediaAssetId, + DistributionChannelId = DistributionChannelId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + Version = Version + }; + + response = client.DeleteMediaAssetDistributionChannelAttachment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteMediaAssetDistributionChannelAttachmentResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflow.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflow.cs new file mode 100644 index 000000000..c2fe36045 --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflow.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesMediaWorkflow", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MediaservicesService.Responses.DeleteMediaWorkflowResponse) })] + public class RemoveOCIMediaservicesMediaWorkflow : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflow identifier.")] + public string MediaWorkflowId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIMediaservicesMediaWorkflow", "Remove")) + { + return; + } + + DeleteMediaWorkflowRequest request; + + try + { + request = new DeleteMediaWorkflowRequest + { + MediaWorkflowId = MediaWorkflowId, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.DeleteMediaWorkflow(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteMediaWorkflowResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowConfiguration.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowConfiguration.cs new file mode 100644 index 000000000..32ba1fbf6 --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowConfiguration.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesMediaWorkflowConfiguration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MediaservicesService.Responses.DeleteMediaWorkflowConfigurationResponse) })] + public class RemoveOCIMediaservicesMediaWorkflowConfiguration : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowConfiguration identifier.")] + public string MediaWorkflowConfigurationId { 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("OCIMediaservicesMediaWorkflowConfiguration", "Remove")) + { + return; + } + + DeleteMediaWorkflowConfigurationRequest request; + + try + { + request = new DeleteMediaWorkflowConfigurationRequest + { + MediaWorkflowConfigurationId = MediaWorkflowConfigurationId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteMediaWorkflowConfiguration(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteMediaWorkflowConfigurationResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowJob.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowJob.cs new file mode 100644 index 000000000..655dc50ce --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesMediaWorkflowJob.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesMediaWorkflowJob", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MediaservicesService.Responses.DeleteMediaWorkflowJobResponse) })] + public class RemoveOCIMediaservicesMediaWorkflowJob : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowJob identifier.")] + public string MediaWorkflowJobId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIMediaservicesMediaWorkflowJob", "Remove")) + { + return; + } + + DeleteMediaWorkflowJobRequest request; + + try + { + request = new DeleteMediaWorkflowJobRequest + { + MediaWorkflowJobId = MediaWorkflowJobId, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.DeleteMediaWorkflowJob(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteMediaWorkflowJobResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamCdnConfig.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamCdnConfig.cs new file mode 100644 index 000000000..7d4db37c6 --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamCdnConfig.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesStreamCdnConfig", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MediaservicesService.Responses.DeleteStreamCdnConfigResponse) })] + public class RemoveOCIMediaservicesStreamCdnConfig : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique StreamCdnConfig identifier.")] + public string StreamCdnConfigId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIMediaservicesStreamCdnConfig", "Remove")) + { + return; + } + + DeleteStreamCdnConfigRequest request; + + try + { + request = new DeleteStreamCdnConfigRequest + { + StreamCdnConfigId = StreamCdnConfigId, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.DeleteStreamCdnConfig(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteStreamCdnConfigResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamDistributionChannel.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamDistributionChannel.cs new file mode 100644 index 000000000..7819cdbea --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamDistributionChannel.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesStreamDistributionChannel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MediaservicesService.Responses.DeleteStreamDistributionChannelResponse) })] + public class RemoveOCIMediaservicesStreamDistributionChannel : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel path identifier.")] + public string StreamDistributionChannelId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIMediaservicesStreamDistributionChannel", "Remove")) + { + return; + } + + DeleteStreamDistributionChannelRequest request; + + try + { + request = new DeleteStreamDistributionChannelRequest + { + StreamDistributionChannelId = StreamDistributionChannelId, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.DeleteStreamDistributionChannel(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteStreamDistributionChannelResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamPackagingConfig.cs b/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamPackagingConfig.cs new file mode 100644 index 000000000..c76ab73ef --- /dev/null +++ b/Mediaservices/Cmdlets/Remove-OCIMediaservicesStreamPackagingConfig.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Remove", "OCIMediaservicesStreamPackagingConfig", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MediaservicesService.Responses.DeleteStreamPackagingConfigResponse) })] + public class RemoveOCIMediaservicesStreamPackagingConfig : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Packaging Configuration path identifier.")] + public string StreamPackagingConfigId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIMediaservicesStreamPackagingConfig", "Remove")) + { + return; + } + + DeleteStreamPackagingConfigRequest request; + + try + { + request = new DeleteStreamPackagingConfigRequest + { + StreamPackagingConfigId = StreamPackagingConfigId, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.DeleteStreamPackagingConfig(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteStreamPackagingConfigResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaAsset.cs b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaAsset.cs new file mode 100644 index 000000000..8aed59fc5 --- /dev/null +++ b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaAsset.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Update", "OCIMediaservicesMediaAsset")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaAsset), typeof(Oci.MediaservicesService.Responses.UpdateMediaAssetResponse) })] + public class UpdateOCIMediaservicesMediaAsset : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaAsset identifier")] + public string MediaAssetId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateMediaAssetDetails UpdateMediaAssetDetails { 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(); + UpdateMediaAssetRequest request; + + try + { + request = new UpdateMediaAssetRequest + { + MediaAssetId = MediaAssetId, + UpdateMediaAssetDetails = UpdateMediaAssetDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateMediaAsset(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaAsset); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateMediaAssetResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflow.cs b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflow.cs new file mode 100644 index 000000000..9e9967177 --- /dev/null +++ b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflow.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Update", "OCIMediaservicesMediaWorkflow")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflow), typeof(Oci.MediaservicesService.Responses.UpdateMediaWorkflowResponse) })] + public class UpdateOCIMediaservicesMediaWorkflow : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflow identifier.")] + public string MediaWorkflowId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateMediaWorkflowDetails UpdateMediaWorkflowDetails { 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(); + UpdateMediaWorkflowRequest request; + + try + { + request = new UpdateMediaWorkflowRequest + { + MediaWorkflowId = MediaWorkflowId, + UpdateMediaWorkflowDetails = UpdateMediaWorkflowDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateMediaWorkflow(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaWorkflow); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateMediaWorkflowResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowConfiguration.cs b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowConfiguration.cs new file mode 100644 index 000000000..a88134e2f --- /dev/null +++ b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowConfiguration.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Update", "OCIMediaservicesMediaWorkflowConfiguration")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowConfiguration), typeof(Oci.MediaservicesService.Responses.UpdateMediaWorkflowConfigurationResponse) })] + public class UpdateOCIMediaservicesMediaWorkflowConfiguration : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowConfiguration identifier.")] + public string MediaWorkflowConfigurationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateMediaWorkflowConfigurationDetails UpdateMediaWorkflowConfigurationDetails { 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(); + UpdateMediaWorkflowConfigurationRequest request; + + try + { + request = new UpdateMediaWorkflowConfigurationRequest + { + MediaWorkflowConfigurationId = MediaWorkflowConfigurationId, + UpdateMediaWorkflowConfigurationDetails = UpdateMediaWorkflowConfigurationDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateMediaWorkflowConfiguration(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaWorkflowConfiguration); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateMediaWorkflowConfigurationResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowJob.cs b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowJob.cs new file mode 100644 index 000000000..9e23ec568 --- /dev/null +++ b/Mediaservices/Cmdlets/Update-OCIMediaservicesMediaWorkflowJob.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Update", "OCIMediaservicesMediaWorkflowJob")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.MediaWorkflowJob), typeof(Oci.MediaservicesService.Responses.UpdateMediaWorkflowJobResponse) })] + public class UpdateOCIMediaservicesMediaWorkflowJob : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique MediaWorkflowJob identifier.")] + public string MediaWorkflowJobId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateMediaWorkflowJobDetails UpdateMediaWorkflowJobDetails { 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(); + UpdateMediaWorkflowJobRequest request; + + try + { + request = new UpdateMediaWorkflowJobRequest + { + MediaWorkflowJobId = MediaWorkflowJobId, + UpdateMediaWorkflowJobDetails = UpdateMediaWorkflowJobDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateMediaWorkflowJob(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MediaWorkflowJob); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateMediaWorkflowJobResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamCdnConfig.cs b/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamCdnConfig.cs new file mode 100644 index 000000000..3f911a16c --- /dev/null +++ b/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamCdnConfig.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Update", "OCIMediaservicesStreamCdnConfig")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamCdnConfig), typeof(Oci.MediaservicesService.Responses.UpdateStreamCdnConfigResponse) })] + public class UpdateOCIMediaservicesStreamCdnConfig : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique StreamCdnConfig identifier.")] + public string StreamCdnConfigId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateStreamCdnConfigDetails UpdateStreamCdnConfigDetails { 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(); + UpdateStreamCdnConfigRequest request; + + try + { + request = new UpdateStreamCdnConfigRequest + { + StreamCdnConfigId = StreamCdnConfigId, + UpdateStreamCdnConfigDetails = UpdateStreamCdnConfigDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateStreamCdnConfig(request).GetAwaiter().GetResult(); + WriteOutput(response, response.StreamCdnConfig); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateStreamCdnConfigResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamDistributionChannel.cs b/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamDistributionChannel.cs new file mode 100644 index 000000000..e600f0108 --- /dev/null +++ b/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamDistributionChannel.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Update", "OCIMediaservicesStreamDistributionChannel")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamDistributionChannel), typeof(Oci.MediaservicesService.Responses.UpdateStreamDistributionChannelResponse) })] + public class UpdateOCIMediaservicesStreamDistributionChannel : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Distribution Channel path identifier.")] + public string StreamDistributionChannelId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateStreamDistributionChannelDetails UpdateStreamDistributionChannelDetails { 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(); + UpdateStreamDistributionChannelRequest request; + + try + { + request = new UpdateStreamDistributionChannelRequest + { + StreamDistributionChannelId = StreamDistributionChannelId, + UpdateStreamDistributionChannelDetails = UpdateStreamDistributionChannelDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateStreamDistributionChannel(request).GetAwaiter().GetResult(); + WriteOutput(response, response.StreamDistributionChannel); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateStreamDistributionChannelResponse response; + } +} diff --git a/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamPackagingConfig.cs b/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamPackagingConfig.cs new file mode 100644 index 000000000..a6a20adf4 --- /dev/null +++ b/Mediaservices/Cmdlets/Update-OCIMediaservicesStreamPackagingConfig.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20211101 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.MediaservicesService.Requests; +using Oci.MediaservicesService.Responses; +using Oci.MediaservicesService.Models; +using Oci.Common.Model; + +namespace Oci.MediaservicesService.Cmdlets +{ + [Cmdlet("Update", "OCIMediaservicesStreamPackagingConfig")] + [OutputType(new System.Type[] { typeof(Oci.MediaservicesService.Models.StreamPackagingConfig), typeof(Oci.MediaservicesService.Responses.UpdateStreamPackagingConfigResponse) })] + public class UpdateOCIMediaservicesStreamPackagingConfig : OCIMediaServicesCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Stream Packaging Configuration path identifier.")] + public string StreamPackagingConfigId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateStreamPackagingConfigDetails UpdateStreamPackagingConfigDetails { 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(); + UpdateStreamPackagingConfigRequest request; + + try + { + request = new UpdateStreamPackagingConfigRequest + { + StreamPackagingConfigId = StreamPackagingConfigId, + UpdateStreamPackagingConfigDetails = UpdateStreamPackagingConfigDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateStreamPackagingConfig(request).GetAwaiter().GetResult(); + WriteOutput(response, response.StreamPackagingConfig); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateStreamPackagingConfigResponse response; + } +} diff --git a/Mediaservices/OCI.PSModules.Mediaservices.csproj b/Mediaservices/OCI.PSModules.Mediaservices.csproj new file mode 100644 index 000000000..0da3d73a8 --- /dev/null +++ b/Mediaservices/OCI.PSModules.Mediaservices.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Mediaservices + OCI.PSModules.Mediaservices + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Mediaservices + Mediaservices Service + + + + + + + + + + + diff --git a/Mediaservices/OCI.PSModules.Mediaservices.psd1 b/Mediaservices/OCI.PSModules.Mediaservices.psd1 new file mode 100644 index 000000000..cb29676e2 --- /dev/null +++ b/Mediaservices/OCI.PSModules.Mediaservices.psd1 @@ -0,0 +1,178 @@ +# +# Module manifest for module 'OCI.PSModules.Mediaservices' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Mediaservices.dll' + +# Version number of this module. +ModuleVersion = '36.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'c1b780bd-0bdf-4759-a6cb-6edb4ac392d6' + +# 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 Mediaservices 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 = '36.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mediaservices.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-OCIMediaservicesMediaAsset', + 'Get-OCIMediaservicesMediaAssetDistributionChannelAttachment', + 'Get-OCIMediaservicesMediaAssetDistributionChannelAttachmentsList', + 'Get-OCIMediaservicesMediaAssetsList', + 'Get-OCIMediaservicesMediaWorkflow', + 'Get-OCIMediaservicesMediaWorkflowConfiguration', + 'Get-OCIMediaservicesMediaWorkflowConfigurationsList', + 'Get-OCIMediaservicesMediaWorkflowJob', + 'Get-OCIMediaservicesMediaWorkflowJobFact', + 'Get-OCIMediaservicesMediaWorkflowJobFactsList', + 'Get-OCIMediaservicesMediaWorkflowJobsList', + 'Get-OCIMediaservicesMediaWorkflowsList', + 'Get-OCIMediaservicesMediaWorkflowTaskDeclarationsList', + 'Get-OCIMediaservicesStreamCdnConfig', + 'Get-OCIMediaservicesStreamCdnConfigsList', + 'Get-OCIMediaservicesStreamDistributionChannel', + 'Get-OCIMediaservicesStreamDistributionChannelsList', + 'Get-OCIMediaservicesStreamPackagingConfig', + 'Get-OCIMediaservicesStreamPackagingConfigsList', + 'Get-OCIMediaservicesSystemMediaWorkflowsList', + 'Invoke-OCIMediaservicesIngestStreamDistributionChannel', + 'Move-OCIMediaservicesMediaAssetCompartment', + 'Move-OCIMediaservicesMediaWorkflowCompartment', + 'Move-OCIMediaservicesMediaWorkflowConfigurationCompartment', + 'Move-OCIMediaservicesMediaWorkflowJobCompartment', + 'Move-OCIMediaservicesStreamDistributionChannelCompartment', + 'New-OCIMediaservicesMediaAsset', + 'New-OCIMediaservicesMediaWorkflow', + 'New-OCIMediaservicesMediaWorkflowConfiguration', + 'New-OCIMediaservicesMediaWorkflowJob', + 'New-OCIMediaservicesStreamCdnConfig', + 'New-OCIMediaservicesStreamDistributionChannel', + 'New-OCIMediaservicesStreamPackagingConfig', + 'Remove-OCIMediaservicesMediaAsset', + 'Remove-OCIMediaservicesMediaAssetDistributionChannelAttachment', + 'Remove-OCIMediaservicesMediaWorkflow', + 'Remove-OCIMediaservicesMediaWorkflowConfiguration', + 'Remove-OCIMediaservicesMediaWorkflowJob', + 'Remove-OCIMediaservicesStreamCdnConfig', + 'Remove-OCIMediaservicesStreamDistributionChannel', + 'Remove-OCIMediaservicesStreamPackagingConfig', + 'Update-OCIMediaservicesMediaAsset', + 'Update-OCIMediaservicesMediaWorkflow', + 'Update-OCIMediaservicesMediaWorkflowConfiguration', + 'Update-OCIMediaservicesMediaWorkflowJob', + 'Update-OCIMediaservicesStreamCdnConfig', + 'Update-OCIMediaservicesStreamDistributionChannel', + 'Update-OCIMediaservicesStreamPackagingConfig' + +# 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','Mediaservices' + + # 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/Monitoring/OCI.PSModules.Monitoring.psd1 b/Monitoring/OCI.PSModules.Monitoring.psd1 index e4737fb6c..5af3c9187 100644 --- a/Monitoring/OCI.PSModules.Monitoring.psd1 +++ b/Monitoring/OCI.PSModules.Monitoring.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Monitoring.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Monitoring.dll' diff --git a/Mysql/OCI.PSModules.Mysql.psd1 b/Mysql/OCI.PSModules.Mysql.psd1 index 127d73688..c662722ce 100644 --- a/Mysql/OCI.PSModules.Mysql.psd1 +++ b/Mysql/OCI.PSModules.Mysql.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Mysql.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mysql.dll' diff --git a/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 b/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 index 6ce6afdab..45a996cc7 100644 --- a/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 +++ b/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Networkfirewall.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Networkfirewall.dll' diff --git a/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 b/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 index 82ba811e7..7c3165bbf 100644 --- a/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 +++ b/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Networkloadbalancer.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Networkloadbalancer.dll' diff --git a/Nosql/OCI.PSModules.Nosql.psd1 b/Nosql/OCI.PSModules.Nosql.psd1 index e8fb02056..d64b09774 100644 --- a/Nosql/OCI.PSModules.Nosql.psd1 +++ b/Nosql/OCI.PSModules.Nosql.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Nosql.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Nosql.dll' diff --git a/Objectstorage/OCI.PSModules.Objectstorage.psd1 b/Objectstorage/OCI.PSModules.Objectstorage.psd1 index 6d0467519..4c8790a7f 100644 --- a/Objectstorage/OCI.PSModules.Objectstorage.psd1 +++ b/Objectstorage/OCI.PSModules.Objectstorage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Objectstorage.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Objectstorage.dll' diff --git a/Oce/OCI.PSModules.Oce.psd1 b/Oce/OCI.PSModules.Oce.psd1 index eed989f11..8fa62f590 100644 --- a/Oce/OCI.PSModules.Oce.psd1 +++ b/Oce/OCI.PSModules.Oce.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Oce.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.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 a2a17f10a..d5af65a13 100644 --- a/Ocvp/OCI.PSModules.Ocvp.psd1 +++ b/Ocvp/OCI.PSModules.Ocvp.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ocvp.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ocvp.dll' diff --git a/Oda/OCI.PSModules.Oda.psd1 b/Oda/OCI.PSModules.Oda.psd1 index dd0639833..77ab2c331 100644 --- a/Oda/OCI.PSModules.Oda.psd1 +++ b/Oda/OCI.PSModules.Oda.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Oda.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oda.dll' diff --git a/Onesubscription/OCI.PSModules.Onesubscription.psd1 b/Onesubscription/OCI.PSModules.Onesubscription.psd1 index 63658fdfd..b0bd27499 100644 --- a/Onesubscription/OCI.PSModules.Onesubscription.psd1 +++ b/Onesubscription/OCI.PSModules.Onesubscription.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Onesubscription.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Onesubscription.dll' diff --git a/Ons/OCI.PSModules.Ons.psd1 b/Ons/OCI.PSModules.Ons.psd1 index 235daf809..dccb4e581 100644 --- a/Ons/OCI.PSModules.Ons.psd1 +++ b/Ons/OCI.PSModules.Ons.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ons.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ons.dll' diff --git a/Opa/Cmdlets/Get-OCIOpaInstance.cs b/Opa/Cmdlets/Get-OCIOpaInstance.cs new file mode 100644 index 000000000..5a35f3dff --- /dev/null +++ b/Opa/Cmdlets/Get-OCIOpaInstance.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Get", "OCIOpaInstance", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OpaService.Models.OpaInstance), typeof(Oci.OpaService.Responses.GetOpaInstanceResponse) })] + public class GetOCIOpaInstance : OCIOpaInstanceCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique OpaInstance identifier", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique OpaInstance identifier", ParameterSetName = Default)] + public string OpaInstanceId { 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.OpaService.Models.OpaInstance.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetOpaInstanceRequest request; + + try + { + request = new GetOpaInstanceRequest + { + OpaInstanceId = OpaInstanceId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetOpaInstanceRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForOpaInstance(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetOpaInstance(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.OpaInstance); + } + + private GetOpaInstanceResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Opa/Cmdlets/Get-OCIOpaInstancesList.cs b/Opa/Cmdlets/Get-OCIOpaInstancesList.cs new file mode 100644 index 000000000..0efe5b0b7 --- /dev/null +++ b/Opa/Cmdlets/Get-OCIOpaInstancesList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Get", "OCIOpaInstancesList")] + [OutputType(new System.Type[] { typeof(Oci.OpaService.Models.OpaInstanceCollection), typeof(Oci.OpaService.Responses.ListOpaInstancesResponse) })] + public class GetOCIOpaInstancesList : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique OpaInstance identifier")] + public string Id { 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 = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListOpaInstancesRequest request; + + try + { + request = new ListOpaInstancesRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + Id = Id, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.OpaInstanceCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListOpaInstancesRequest request) => Enumerable.Repeat(client.ListOpaInstances(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListOpaInstancesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListOpaInstancesResponse response; + private delegate IEnumerable RequestDelegate(ListOpaInstancesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Opa/Cmdlets/Get-OCIOpaWorkRequest.cs b/Opa/Cmdlets/Get-OCIOpaWorkRequest.cs new file mode 100644 index 000000000..1db1dc111 --- /dev/null +++ b/Opa/Cmdlets/Get-OCIOpaWorkRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Get", "OCIOpaWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.OpaService.Models.WorkRequest), typeof(Oci.OpaService.Responses.GetWorkRequestResponse) })] + public class GetOCIOpaWorkRequest : OCIOpaInstanceCmdlet + { + + [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.OpaService.Models.OperationStatus[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS; + + [Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetWorkRequestRequest request; + + try + { + request = new GetWorkRequestRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetWorkRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.GetWorkRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.WorkRequest); + } + + private GetWorkRequestResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Opa/Cmdlets/Get-OCIOpaWorkRequestErrorsList.cs b/Opa/Cmdlets/Get-OCIOpaWorkRequestErrorsList.cs new file mode 100644 index 000000000..d680ab3fc --- /dev/null +++ b/Opa/Cmdlets/Get-OCIOpaWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Get", "OCIOpaWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.OpaService.Models.WorkRequestErrorCollection), typeof(Oci.OpaService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIOpaWorkRequestErrorsList : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 timeAccepted is descending.")] + 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(); + ListWorkRequestErrorsRequest request; + + try + { + request = new ListWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestErrorCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Opa/Cmdlets/Get-OCIOpaWorkRequestLogsList.cs b/Opa/Cmdlets/Get-OCIOpaWorkRequestLogsList.cs new file mode 100644 index 000000000..8d6986fa8 --- /dev/null +++ b/Opa/Cmdlets/Get-OCIOpaWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Get", "OCIOpaWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.OpaService.Models.WorkRequestLogEntryCollection), typeof(Oci.OpaService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIOpaWorkRequestLogsList : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 timeAccepted is descending.")] + 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(); + ListWorkRequestLogsRequest request; + + try + { + request = new ListWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortBy = SortBy, + SortOrder = SortOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestLogEntryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Opa/Cmdlets/Get-OCIOpaWorkRequestsList.cs b/Opa/Cmdlets/Get-OCIOpaWorkRequestsList.cs new file mode 100644 index 000000000..fd9dc44c9 --- /dev/null +++ b/Opa/Cmdlets/Get-OCIOpaWorkRequestsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Get", "OCIOpaWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.OpaService.Models.WorkRequestSummaryCollection), typeof(Oci.OpaService.Responses.ListWorkRequestsResponse) })] + public class GetOCIOpaWorkRequestsList : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = false, 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 ID of the asynchronous work request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources their lifecycleState matches the given OperationStatus.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the resource affected by the work request.")] + public string ResourceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")] + 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListWorkRequestsRequest request; + + try + { + request = new ListWorkRequestsRequest + { + CompartmentId = CompartmentId, + WorkRequestId = WorkRequestId, + Status = Status, + ResourceId = ResourceId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.WorkRequestSummaryCollection, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListWorkRequestsRequest request) => Enumerable.Repeat(client.ListWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Opa/Cmdlets/Move-OCIOpaInstanceCompartment.cs b/Opa/Cmdlets/Move-OCIOpaInstanceCompartment.cs new file mode 100644 index 000000000..b2759885a --- /dev/null +++ b/Opa/Cmdlets/Move-OCIOpaInstanceCompartment.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Move", "OCIOpaInstanceCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpaService.Responses.ChangeOpaInstanceCompartmentResponse) })] + public class MoveOCIOpaInstanceCompartment : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique OpaInstance identifier")] + public string OpaInstanceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeOpaInstanceCompartmentDetails ChangeOpaInstanceCompartmentDetails { 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(); + ChangeOpaInstanceCompartmentRequest request; + + try + { + request = new ChangeOpaInstanceCompartmentRequest + { + OpaInstanceId = OpaInstanceId, + ChangeOpaInstanceCompartmentDetails = ChangeOpaInstanceCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeOpaInstanceCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeOpaInstanceCompartmentResponse response; + } +} diff --git a/Opa/Cmdlets/New-OCIOpaInstance.cs b/Opa/Cmdlets/New-OCIOpaInstance.cs new file mode 100644 index 000000000..98362b0f4 --- /dev/null +++ b/Opa/Cmdlets/New-OCIOpaInstance.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("New", "OCIOpaInstance")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpaService.Responses.CreateOpaInstanceResponse) })] + public class NewOCIOpaInstance : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new OpaInstance.")] + public CreateOpaInstanceDetails CreateOpaInstanceDetails { 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(); + CreateOpaInstanceRequest request; + + try + { + request = new CreateOpaInstanceRequest + { + CreateOpaInstanceDetails = CreateOpaInstanceDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateOpaInstance(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateOpaInstanceResponse response; + } +} diff --git a/Opa/Cmdlets/OCIOpaInstanceCmdlet.cs b/Opa/Cmdlets/OCIOpaInstanceCmdlet.cs new file mode 100644 index 000000000..179662e40 --- /dev/null +++ b/Opa/Cmdlets/OCIOpaInstanceCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService; + +namespace Oci.OpaService.Cmdlets +{ + public abstract class OCIOpaInstanceCmdlet : 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 OpaInstanceClient(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 OpaInstanceClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Opa/Cmdlets/Remove-OCIOpaInstance.cs b/Opa/Cmdlets/Remove-OCIOpaInstance.cs new file mode 100644 index 000000000..4055df954 --- /dev/null +++ b/Opa/Cmdlets/Remove-OCIOpaInstance.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Remove", "OCIOpaInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpaService.Responses.DeleteOpaInstanceResponse) })] + public class RemoveOCIOpaInstance : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique OpaInstance identifier")] + public string OpaInstanceId { 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("OCIOpaInstance", "Remove")) + { + return; + } + + DeleteOpaInstanceRequest request; + + try + { + request = new DeleteOpaInstanceRequest + { + OpaInstanceId = OpaInstanceId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteOpaInstance(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteOpaInstanceResponse response; + } +} diff --git a/Opa/Cmdlets/Stop-OCIOpaWorkRequest.cs b/Opa/Cmdlets/Stop-OCIOpaWorkRequest.cs new file mode 100644 index 000000000..f837fffff --- /dev/null +++ b/Opa/Cmdlets/Stop-OCIOpaWorkRequest.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Stop", "OCIOpaWorkRequest", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.OpaService.Responses.CancelWorkRequestResponse) })] + public class StopOCIOpaWorkRequest : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"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("OCIOpaWorkRequest", "Stop")) + { + return; + } + + CancelWorkRequestRequest request; + + try + { + request = new CancelWorkRequestRequest + { + WorkRequestId = WorkRequestId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.CancelWorkRequest(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CancelWorkRequestResponse response; + } +} diff --git a/Opa/Cmdlets/Update-OCIOpaInstance.cs b/Opa/Cmdlets/Update-OCIOpaInstance.cs new file mode 100644 index 000000000..433d42a9a --- /dev/null +++ b/Opa/Cmdlets/Update-OCIOpaInstance.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20210621 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2022, 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.OpaService.Requests; +using Oci.OpaService.Responses; +using Oci.OpaService.Models; +using Oci.Common.Model; + +namespace Oci.OpaService.Cmdlets +{ + [Cmdlet("Update", "OCIOpaInstance")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.OpaService.Responses.UpdateOpaInstanceResponse) })] + public class UpdateOCIOpaInstance : OCIOpaInstanceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique OpaInstance identifier")] + public string OpaInstanceId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateOpaInstanceDetails UpdateOpaInstanceDetails { 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(); + UpdateOpaInstanceRequest request; + + try + { + request = new UpdateOpaInstanceRequest + { + OpaInstanceId = OpaInstanceId, + UpdateOpaInstanceDetails = UpdateOpaInstanceDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateOpaInstance(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateOpaInstanceResponse response; + } +} diff --git a/Opa/OCI.PSModules.Opa.csproj b/Opa/OCI.PSModules.Opa.csproj new file mode 100644 index 000000000..b86666abd --- /dev/null +++ b/Opa/OCI.PSModules.Opa.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Opa + OCI.PSModules.Opa + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Opa + Opa Service + + + + + + + + + + + diff --git a/Opa/OCI.PSModules.Opa.psd1 b/Opa/OCI.PSModules.Opa.psd1 new file mode 100644 index 000000000..efbf3d2fd --- /dev/null +++ b/Opa/OCI.PSModules.Opa.psd1 @@ -0,0 +1,136 @@ +# +# Module manifest for module 'OCI.PSModules.Opa' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Opa.dll' + +# Version number of this module. +ModuleVersion = '36.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'b3b17045-1e55-4c1b-8e02-641f25d4bb58' + +# 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 Opa 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 = '36.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opa.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-OCIOpaInstance', 'Get-OCIOpaInstancesList', + 'Get-OCIOpaWorkRequest', 'Get-OCIOpaWorkRequestErrorsList', + 'Get-OCIOpaWorkRequestLogsList', 'Get-OCIOpaWorkRequestsList', + 'Move-OCIOpaInstanceCompartment', 'New-OCIOpaInstance', + 'Remove-OCIOpaInstance', 'Stop-OCIOpaWorkRequest', + 'Update-OCIOpaInstance' + +# 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','Opa' + + # 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/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 b/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 index ac3c4d60f..247c1dd89 100644 --- a/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 +++ b/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Operatoraccesscontrol.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Operatoraccesscontrol.dll' diff --git a/Opsi/OCI.PSModules.Opsi.psd1 b/Opsi/OCI.PSModules.Opsi.psd1 index a47028416..939767dd8 100644 --- a/Opsi/OCI.PSModules.Opsi.psd1 +++ b/Opsi/OCI.PSModules.Opsi.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Opsi.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opsi.dll' diff --git a/Optimizer/OCI.PSModules.Optimizer.psd1 b/Optimizer/OCI.PSModules.Optimizer.psd1 index 4105f3035..99b7a73b3 100644 --- a/Optimizer/OCI.PSModules.Optimizer.psd1 +++ b/Optimizer/OCI.PSModules.Optimizer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Optimizer.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Optimizer.dll' diff --git a/Osmanagement/OCI.PSModules.Osmanagement.psd1 b/Osmanagement/OCI.PSModules.Osmanagement.psd1 index 24bb5ffb3..0b633eb0b 100644 --- a/Osmanagement/OCI.PSModules.Osmanagement.psd1 +++ b/Osmanagement/OCI.PSModules.Osmanagement.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osmanagement.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagement.dll' diff --git a/Ospgateway/OCI.PSModules.Ospgateway.psd1 b/Ospgateway/OCI.PSModules.Ospgateway.psd1 index 426fc01dd..d66e7661f 100644 --- a/Ospgateway/OCI.PSModules.Ospgateway.psd1 +++ b/Ospgateway/OCI.PSModules.Ospgateway.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ospgateway.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ospgateway.dll' diff --git a/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 b/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 index 5ba13c77f..43d30db2e 100644 --- a/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 +++ b/Osubbillingschedule/OCI.PSModules.Osubbillingschedule.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osubbillingschedule.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osubbillingschedule.dll' diff --git a/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 b/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 index 904ba5866..7b68fba2a 100644 --- a/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 +++ b/Osuborganizationsubscription/OCI.PSModules.Osuborganizationsubscription.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osuborganizationsubscription.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osuborganizationsubscription.dll' diff --git a/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 b/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 index c43385ad0..0a521e8c2 100644 --- a/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 +++ b/Osubsubscription/OCI.PSModules.Osubsubscription.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osubsubscription.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osubsubscription.dll' diff --git a/Osubusage/OCI.PSModules.Osubusage.psd1 b/Osubusage/OCI.PSModules.Osubusage.psd1 index 1ac9fe0ac..53b4d4a95 100644 --- a/Osubusage/OCI.PSModules.Osubusage.psd1 +++ b/Osubusage/OCI.PSModules.Osubusage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osubusage.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osubusage.dll' diff --git a/PSModules/OCI.PSModules.psd1 b/PSModules/OCI.PSModules.psd1 index ca8a4598f..b8e065809 100644 --- a/PSModules/OCI.PSModules.psd1 +++ b/PSModules/OCI.PSModules.psd1 @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -51,116 +51,120 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataconnectivity'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '36.0.0'; }, - @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dataconnectivity'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Fusionapps'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Lockbox'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Mediaservices'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Opa'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '36.1.0'; }, + @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() diff --git a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 index f216784f3..f0b776060 100644 --- a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 +++ b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcemanager.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.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 c531a9d87..9abd2cf48 100644 --- a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 +++ b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcesearch.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcesearch.dll' diff --git a/Rover/OCI.PSModules.Rover.psd1 b/Rover/OCI.PSModules.Rover.psd1 index a67932c94..e7e7f7054 100644 --- a/Rover/OCI.PSModules.Rover.psd1 +++ b/Rover/OCI.PSModules.Rover.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Rover.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Rover.dll' diff --git a/Sch/OCI.PSModules.Sch.psd1 b/Sch/OCI.PSModules.Sch.psd1 index f24fd69da..d998bd13d 100644 --- a/Sch/OCI.PSModules.Sch.psd1 +++ b/Sch/OCI.PSModules.Sch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Sch.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Sch.dll' diff --git a/Secrets/OCI.PSModules.Secrets.psd1 b/Secrets/OCI.PSModules.Secrets.psd1 index e82d98e7a..5bd39e7ca 100644 --- a/Secrets/OCI.PSModules.Secrets.psd1 +++ b/Secrets/OCI.PSModules.Secrets.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Secrets.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Secrets.dll' diff --git a/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 b/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 index 6324bfe5d..1161211a7 100644 --- a/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 +++ b/Servicecatalog/OCI.PSModules.Servicecatalog.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Servicecatalog.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Servicecatalog.dll' diff --git a/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 b/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 index 073707dfb..0d14c92b1 100644 --- a/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 +++ b/Servicemanagerproxy/OCI.PSModules.Servicemanagerproxy.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Servicemanagerproxy.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Servicemanagerproxy.dll' diff --git a/Servicemesh/OCI.PSModules.Servicemesh.psd1 b/Servicemesh/OCI.PSModules.Servicemesh.psd1 index 875234f1e..8d4036990 100644 --- a/Servicemesh/OCI.PSModules.Servicemesh.psd1 +++ b/Servicemesh/OCI.PSModules.Servicemesh.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Servicemesh.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Servicemesh.dll' diff --git a/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 b/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 index d08d285fb..0b9adbb62 100644 --- a/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 +++ b/Stackmonitoring/OCI.PSModules.Stackmonitoring.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Stackmonitoring.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Stackmonitoring.dll' diff --git a/Streaming/OCI.PSModules.Streaming.psd1 b/Streaming/OCI.PSModules.Streaming.psd1 index d39813fc4..6eac7ba04 100644 --- a/Streaming/OCI.PSModules.Streaming.psd1 +++ b/Streaming/OCI.PSModules.Streaming.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Streaming.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Streaming.dll' diff --git a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 index a2e0729c5..0cdb78937 100644 --- a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 +++ b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Tenantmanagercontrolplane.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Tenantmanagercontrolplane.dll' diff --git a/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 b/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 index c7e30f92b..61ee2aa34 100644 --- a/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 +++ b/Threatintelligence/OCI.PSModules.Threatintelligence.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Threatintelligence.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Threatintelligence.dll' diff --git a/Usage/OCI.PSModules.Usage.psd1 b/Usage/OCI.PSModules.Usage.psd1 index 8b946f355..e2a62bc0b 100644 --- a/Usage/OCI.PSModules.Usage.psd1 +++ b/Usage/OCI.PSModules.Usage.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Usage.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Usage.dll' diff --git a/Usageapi/OCI.PSModules.Usageapi.psd1 b/Usageapi/OCI.PSModules.Usageapi.psd1 index 8d5c23090..e23bf840a 100644 --- a/Usageapi/OCI.PSModules.Usageapi.psd1 +++ b/Usageapi/OCI.PSModules.Usageapi.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Usageapi.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Usageapi.dll' diff --git a/Vault/OCI.PSModules.Vault.psd1 b/Vault/OCI.PSModules.Vault.psd1 index 247705435..2cc5dea98 100644 --- a/Vault/OCI.PSModules.Vault.psd1 +++ b/Vault/OCI.PSModules.Vault.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vault.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vault.dll' diff --git a/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 b/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 index 694052228..ab90bdd3f 100644 --- a/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 +++ b/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Visualbuilder.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Visualbuilder.dll' diff --git a/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 b/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 index 5a8bc544a..125408194 100644 --- a/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 +++ b/Vnmonitoring/OCI.PSModules.Vnmonitoring.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vnmonitoring.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vnmonitoring.dll' diff --git a/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 b/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 index 5f91484d0..2253a9d9f 100644 --- a/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 +++ b/Vulnerabilityscanning/OCI.PSModules.Vulnerabilityscanning.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vulnerabilityscanning.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vulnerabilityscanning.dll' diff --git a/Waa/OCI.PSModules.Waa.psd1 b/Waa/OCI.PSModules.Waa.psd1 index dd3a77619..8cb24822d 100644 --- a/Waa/OCI.PSModules.Waa.psd1 +++ b/Waa/OCI.PSModules.Waa.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Waa.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waa.dll' diff --git a/Waas/OCI.PSModules.Waas.psd1 b/Waas/OCI.PSModules.Waas.psd1 index 44a25203b..8c947d233 100644 --- a/Waas/OCI.PSModules.Waas.psd1 +++ b/Waas/OCI.PSModules.Waas.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Waas.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waas.dll' diff --git a/Waf/OCI.PSModules.Waf.psd1 b/Waf/OCI.PSModules.Waf.psd1 index bf92917fd..8b634fc1f 100644 --- a/Waf/OCI.PSModules.Waf.psd1 +++ b/Waf/OCI.PSModules.Waf.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Waf.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Waf.dll' diff --git a/Workrequests/OCI.PSModules.Workrequests.psd1 b/Workrequests/OCI.PSModules.Workrequests.psd1 index 8448b94f5..faebebfd7 100644 --- a/Workrequests/OCI.PSModules.Workrequests.psd1 +++ b/Workrequests/OCI.PSModules.Workrequests.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Workrequests.dll' # Version number of this module. -ModuleVersion = '36.0.0' +ModuleVersion = '36.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -50,7 +50,7 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '36.1.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 0a6b166d9..e2f01b0fc 100644 --- a/oci-powershell-modules.sln +++ b/oci-powershell-modules.sln @@ -225,6 +225,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Vnmonitoring" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Emwarehouse", "Emwarehouse\OCI.PSModules.Emwarehouse.csproj", "{DFEB2E2F-8A39-4C3C-BB75-D6374445ECEC}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Lockbox", "Lockbox\OCI.PSModules.Lockbox.csproj", "{63FB2CC5-BA87-4643-A413-934582F69F3C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Fusionapps", "Fusionapps\OCI.PSModules.Fusionapps.csproj", "{5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Mediaservices", "Mediaservices\OCI.PSModules.Mediaservices.csproj", "{1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Opa", "Opa\OCI.PSModules.Opa.csproj", "{54D28196-04C7-4B60-91DE-19CA47C0A5F7}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -1582,5 +1590,53 @@ Global {DFEB2E2F-8A39-4C3C-BB75-D6374445ECEC}.Release|x64.Build.0 = Release|Any CPU {DFEB2E2F-8A39-4C3C-BB75-D6374445ECEC}.Release|x86.ActiveCfg = Release|Any CPU {DFEB2E2F-8A39-4C3C-BB75-D6374445ECEC}.Release|x86.Build.0 = Release|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Debug|x64.ActiveCfg = Debug|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Debug|x64.Build.0 = Debug|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Debug|x86.ActiveCfg = Debug|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Debug|x86.Build.0 = Debug|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Release|Any CPU.Build.0 = Release|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Release|x64.ActiveCfg = Release|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Release|x64.Build.0 = Release|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Release|x86.ActiveCfg = Release|Any CPU + {63FB2CC5-BA87-4643-A413-934582F69F3C}.Release|x86.Build.0 = Release|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Debug|x64.ActiveCfg = Debug|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Debug|x64.Build.0 = Debug|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Debug|x86.ActiveCfg = Debug|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Debug|x86.Build.0 = Debug|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Release|Any CPU.Build.0 = Release|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Release|x64.ActiveCfg = Release|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Release|x64.Build.0 = Release|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Release|x86.ActiveCfg = Release|Any CPU + {5D8A585B-8FAC-4E00-8626-AAC9483B5AC0}.Release|x86.Build.0 = Release|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Debug|x64.ActiveCfg = Debug|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Debug|x64.Build.0 = Debug|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Debug|x86.ActiveCfg = Debug|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Debug|x86.Build.0 = Debug|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Release|Any CPU.Build.0 = Release|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Release|x64.ActiveCfg = Release|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Release|x64.Build.0 = Release|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Release|x86.ActiveCfg = Release|Any CPU + {1BB638A7-BB76-4AD5-A4E4-1C82CDD414B3}.Release|x86.Build.0 = Release|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Debug|x64.ActiveCfg = Debug|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Debug|x64.Build.0 = Debug|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Debug|x86.ActiveCfg = Debug|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Debug|x86.Build.0 = Debug|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Release|Any CPU.Build.0 = Release|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Release|x64.ActiveCfg = Release|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Release|x64.Build.0 = Release|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Release|x86.ActiveCfg = Release|Any CPU + {54D28196-04C7-4B60-91DE-19CA47C0A5F7}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal