From fb9babbf897d73432468e7c378cfce6b1ff90db3 Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Mon, 16 Oct 2023 22:54:07 +0000 Subject: [PATCH] Releasing version 68.0.0 --- .../OCI.PSModules.Accessgovernancecp.psd1 | 4 +- Adm/OCI.PSModules.Adm.psd1 | 4 +- .../OCI.PSModules.Aianomalydetection.psd1 | 4 +- Aidocument/OCI.PSModules.Aidocument.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 | 31 +++ Certificates/OCI.PSModules.Certificates.psd1 | 4 +- .../OCI.PSModules.Certificatesmanagement.psd1 | 4 +- Cims/OCI.PSModules.Cims.psd1 | 4 +- Cloudbridge/OCI.PSModules.Cloudbridge.psd1 | 4 +- Cloudguard/OCI.PSModules.Cloudguard.psd1 | 4 +- .../OCI.PSModules.Cloudmigrations.psd1 | 4 +- Common/OCI.PSModules.Common.psd1 | 2 +- Common/Version.cs | 4 +- .../OCI.PSModules.Computecloudatcustomer.psd1 | 4 +- .../OCI.PSModules.Computeinstanceagent.psd1 | 4 +- .../OCI.PSModules.Containerengine.psd1 | 4 +- .../OCI.PSModules.Containerinstances.psd1 | 4 +- Core/OCI.PSModules.Core.psd1 | 4 +- .../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 +- 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 +- ...-OCIDatascienceFastLaunchJobConfigsList.cs | 4 +- .../Cmdlets/Get-OCIDatascienceJobRunsList.cs | 4 +- .../Get-OCIDatascienceJobShapesList.cs | 4 +- .../Cmdlets/Get-OCIDatascienceJobsList.cs | 4 +- ...OCIDatascienceModelDeploymentShapesList.cs | 4 +- .../Get-OCIDatascienceModelDeploymentsList.cs | 4 +- .../Get-OCIDatascienceModelVersionSetsList.cs | 4 +- .../Cmdlets/Get-OCIDatascienceModelsList.cs | 4 +- ...OCIDatascienceNotebookSessionShapesList.cs | 4 +- .../Get-OCIDatascienceNotebookSessionsList.cs | 4 +- .../Get-OCIDatasciencePipelineRunsList.cs | 4 +- .../Get-OCIDatasciencePipelinesList.cs | 4 +- .../Get-OCIDatasciencePrivateEndpointsList.cs | 4 +- .../Cmdlets/Get-OCIDatascienceProjectsList.cs | 4 +- ...Get-OCIDatascienceWorkRequestErrorsList.cs | 4 +- .../Get-OCIDatascienceWorkRequestLogsList.cs | 4 +- .../Get-OCIDatascienceWorkRequestsList.cs | 4 +- Datascience/OCI.PSModules.Datascience.psd1 | 4 +- Devops/OCI.PSModules.Devops.psd1 | 4 +- Directory.Build.props | 2 +- .../OCI.PSModules.Disasterrecovery.psd1 | 4 +- 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 +- .../OCI.PSModules.Fleetsoftwareupdate.psd1 | 4 +- Functions/OCI.PSModules.Functions.psd1 | 4 +- Fusionapps/OCI.PSModules.Fusionapps.psd1 | 4 +- ...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 +- .../OCI.PSModules.Identitydomains.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 +- .../Export-OCILockboxAccessRequests.cs | 129 +++++++++ .../Get-OCILockboxAccessRequestsList.cs | 14 +- Lockbox/Cmdlets/Get-OCILockboxesList.cs | 4 + Lockbox/OCI.PSModules.Lockbox.psd1 | 9 +- Loganalytics/OCI.PSModules.Loganalytics.psd1 | 4 +- Logging/Cmdlets/Get-OCILoggingServicesList.cs | 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 +- ...IMarketplacepublisherAndPublishArtifact.cs | 71 +++++ ...able-OCIMarketplacepublisherTermVersion.cs | 67 +++++ .../Get-OCIMarketplacepublisherArtifact.cs | 99 +++++++ ...et-OCIMarketplacepublisherArtifactsList.cs | 116 ++++++++ ...t-OCIMarketplacepublisherCategoriesList.cs | 112 ++++++++ .../Get-OCIMarketplacepublisherCategory.cs | 105 +++++++ .../Get-OCIMarketplacepublisherListing.cs | 99 +++++++ ...-OCIMarketplacepublisherListingRevision.cs | 99 +++++++ ...placepublisherListingRevisionAttachment.cs | 99 +++++++ ...publisherListingRevisionAttachmentsList.cs | 116 ++++++++ ...MarketplacepublisherListingRevisionNote.cs | 99 +++++++ ...tplacepublisherListingRevisionNotesList.cs | 108 ++++++++ ...ketplacepublisherListingRevisionPackage.cs | 99 +++++++ ...acepublisherListingRevisionPackagesList.cs | 116 ++++++++ ...arketplacepublisherListingRevisionsList.cs | 120 ++++++++ ...Get-OCIMarketplacepublisherListingsList.cs | 112 ++++++++ .../Get-OCIMarketplacepublisherMarket.cs | 99 +++++++ .../Get-OCIMarketplacepublisherMarketsList.cs | 108 ++++++++ .../Get-OCIMarketplacepublisherProduct.cs | 99 +++++++ ...Get-OCIMarketplacepublisherProductsList.cs | 108 ++++++++ .../Get-OCIMarketplacepublisherPublisher.cs | 63 +++++ ...t-OCIMarketplacepublisherPublishersList.cs | 108 ++++++++ .../Get-OCIMarketplacepublisherTerm.cs | 99 +++++++ .../Get-OCIMarketplacepublisherTermVersion.cs | 99 +++++++ ...OCIMarketplacepublisherTermVersionsList.cs | 112 ++++++++ .../Get-OCIMarketplacepublisherTermsList.cs | 108 ++++++++ .../Get-OCIMarketplacepublisherWorkRequest.cs | 99 +++++++ ...rketplacepublisherWorkRequestErrorsList.cs | 104 +++++++ ...MarketplacepublisherWorkRequestLogsList.cs | 104 +++++++ ...OCIMarketplacepublisherWorkRequestsList.cs | 116 ++++++++ ...ketplacepublisherCascadingDeleteListing.cs | 71 +++++ ...publisherCascadingDeleteListingRevision.cs | 71 +++++ ...arketplacepublisherCloneListingRevision.cs | 71 +++++ ...sherMarkListingRevisionPackageAsDefault.cs | 71 +++++ ...ketplacepublisherPublishListingRevision.cs | 71 +++++ ...ublisherPublishListingRevisionAsPrivate.cs | 75 +++++ ...epublisherPublishListingRevisionPackage.cs | 71 +++++ ...publisherSubmitListingRevisionForReview.cs | 75 +++++ ...ublisherUnPublishListingRevisionPackage.cs | 71 +++++ ...etplacepublisherWithdrawListingRevision.cs | 71 +++++ ...MarketplacepublisherArtifactCompartment.cs | 75 +++++ ...IMarketplacepublisherListingCompartment.cs | 75 +++++ ...lacepublisherListingRevisionToNewStatus.cs | 67 +++++ ...-OCIMarketplacepublisherTermCompartment.cs | 75 +++++ .../New-OCIMarketplacepublisherArtifact.cs | 67 +++++ .../New-OCIMarketplacepublisherListing.cs | 67 +++++ ...-OCIMarketplacepublisherListingRevision.cs | 67 +++++ ...placepublisherListingRevisionAttachment.cs | 67 +++++ ...MarketplacepublisherListingRevisionNote.cs | 67 +++++ ...ketplacepublisherListingRevisionPackage.cs | 67 +++++ .../New-OCIMarketplacepublisherTerm.cs | 67 +++++ .../New-OCIMarketplacepublisherTermVersion.cs | 86 ++++++ .../Cmdlets/OCIMarketplacePublisherCmdlet.cs | 86 ++++++ .../Remove-OCIMarketplacepublisherArtifact.cs | 80 ++++++ .../Remove-OCIMarketplacepublisherListing.cs | 76 +++++ ...-OCIMarketplacepublisherListingRevision.cs | 76 +++++ ...placepublisherListingRevisionAttachment.cs | 76 +++++ ...MarketplacepublisherListingRevisionNote.cs | 76 +++++ ...ketplacepublisherListingRevisionPackage.cs | 76 +++++ .../Remove-OCIMarketplacepublisherTerm.cs | 76 +++++ ...move-OCIMarketplacepublisherTermVersion.cs | 76 +++++ ...Stop-OCIMarketplacepublisherWorkRequest.cs | 76 +++++ .../Update-OCIMarketplacepublisherArtifact.cs | 71 +++++ .../Update-OCIMarketplacepublisherListing.cs | 71 +++++ ...-OCIMarketplacepublisherListingRevision.cs | 71 +++++ ...placepublisherListingRevisionAttachment.cs | 71 +++++ ...blisherListingRevisionAttachmentContent.cs | 82 ++++++ ...lacepublisherListingRevisionIconContent.cs | 82 ++++++ ...ketplacepublisherListingRevisionPackage.cs | 71 +++++ .../Update-OCIMarketplacepublisherTerm.cs | 71 +++++ ...date-OCIMarketplacepublisherTermVersion.cs | 71 +++++ ...IMarketplacepublisherTermVersionContent.cs | 86 ++++++ .../OCI.PSModules.Marketplacepublisher.csproj | 23 ++ .../OCI.PSModules.Marketplacepublisher.psd1 | 201 ++++++++++++++ .../OCI.PSModules.Mediaservices.psd1 | 4 +- Monitoring/OCI.PSModules.Monitoring.psd1 | 4 +- Mysql/OCI.PSModules.Mysql.psd1 | 4 +- .../Cmdlets/Get-OCINetworkfirewall.cs | 2 +- .../Get-OCINetworkfirewallAddressList.cs | 67 +++++ .../Get-OCINetworkfirewallAddressListsList.cs | 108 ++++++++ .../Get-OCINetworkfirewallApplication.cs | 75 +++++ .../Get-OCINetworkfirewallApplicationGroup.cs | 67 +++++ ...OCINetworkfirewallApplicationGroupsList.cs | 108 ++++++++ .../Get-OCINetworkfirewallApplicationsList.cs | 108 ++++++++ ...Get-OCINetworkfirewallDecryptionProfile.cs | 67 +++++ ...CINetworkfirewallDecryptionProfilesList.cs | 108 ++++++++ .../Get-OCINetworkfirewallDecryptionRule.cs | 75 +++++ ...t-OCINetworkfirewallDecryptionRulesList.cs | 112 ++++++++ .../Get-OCINetworkfirewallMappedSecret.cs | 75 +++++ ...Get-OCINetworkfirewallMappedSecretsList.cs | 108 ++++++++ .../Get-OCINetworkfirewallPoliciesList.cs | 2 +- .../Cmdlets/Get-OCINetworkfirewallPolicy.cs | 2 +- .../Get-OCINetworkfirewallSecurityRule.cs | 67 +++++ ...Get-OCINetworkfirewallSecurityRulesList.cs | 112 ++++++++ .../Cmdlets/Get-OCINetworkfirewallService.cs | 75 +++++ .../Get-OCINetworkfirewallServiceList.cs | 67 +++++ .../Get-OCINetworkfirewallServiceListsList.cs | 108 ++++++++ .../Get-OCINetworkfirewallServicesList.cs | 108 ++++++++ .../Cmdlets/Get-OCINetworkfirewallUrlList.cs | 67 +++++ .../Get-OCINetworkfirewallUrlListsList.cs | 108 ++++++++ .../Get-OCINetworkfirewallWorkRequest.cs | 2 +- ...OCINetworkfirewallWorkRequestErrorsList.cs | 2 +- ...t-OCINetworkfirewallWorkRequestLogsList.cs | 2 +- .../Get-OCINetworkfirewallWorkRequestsList.cs | 2 +- .../Cmdlets/Get-OCINetworkfirewallsList.cs | 2 +- ...tworkfirewallApplyNetworkFirewallPolicy.cs | 75 +++++ ...CINetworkfirewallBulkUploadAddressLists.cs | 86 ++++++ ...workfirewallBulkUploadApplicationGroups.cs | 86 ++++++ ...CINetworkfirewallBulkUploadApplications.cs | 86 ++++++ ...orkfirewallBulkUploadDecryptionProfiles.cs | 86 ++++++ ...etworkfirewallBulkUploadDecryptionRules.cs | 86 ++++++ ...INetworkfirewallBulkUploadMappedSecrets.cs | 86 ++++++ ...INetworkfirewallBulkUploadSecurityRules.cs | 86 ++++++ ...CINetworkfirewallBulkUploadServiceLists.cs | 86 ++++++ ...ke-OCINetworkfirewallBulkUploadServices.cs | 86 ++++++ ...ke-OCINetworkfirewallBulkUploadUrlLists.cs | 86 ++++++ ...tworkfirewallCloneNetworkFirewallPolicy.cs | 75 +++++ ...orkfirewallMigrateNetworkFirewallPolicy.cs | 71 +++++ .../Move-OCINetworkfirewallCompartment.cs | 8 +- ...ove-OCINetworkfirewallPolicyCompartment.cs | 2 +- .../Cmdlets/New-OCINetworkfirewall.cs | 2 +- .../New-OCINetworkfirewallAddressList.cs | 71 +++++ .../New-OCINetworkfirewallApplication.cs | 71 +++++ .../New-OCINetworkfirewallApplicationGroup.cs | 71 +++++ ...New-OCINetworkfirewallDecryptionProfile.cs | 71 +++++ .../New-OCINetworkfirewallDecryptionRule.cs | 71 +++++ .../New-OCINetworkfirewallMappedSecret.cs | 71 +++++ .../Cmdlets/New-OCINetworkfirewallPolicy.cs | 2 +- .../New-OCINetworkfirewallSecurityRule.cs | 71 +++++ .../Cmdlets/New-OCINetworkfirewallService.cs | 71 +++++ .../New-OCINetworkfirewallServiceList.cs | 71 +++++ .../Cmdlets/New-OCINetworkfirewallUrlList.cs | 71 +++++ .../Cmdlets/OCINetworkFirewallCmdlet.cs | 2 +- .../Cmdlets/Remove-OCINetworkfirewall.cs | 2 +- .../Remove-OCINetworkfirewallAddressList.cs | 80 ++++++ .../Remove-OCINetworkfirewallApplication.cs | 80 ++++++ ...move-OCINetworkfirewallApplicationGroup.cs | 80 ++++++ ...ove-OCINetworkfirewallDecryptionProfile.cs | 80 ++++++ ...Remove-OCINetworkfirewallDecryptionRule.cs | 80 ++++++ .../Remove-OCINetworkfirewallMappedSecret.cs | 80 ++++++ .../Remove-OCINetworkfirewallPolicy.cs | 2 +- .../Remove-OCINetworkfirewallSecurityRule.cs | 80 ++++++ .../Remove-OCINetworkfirewallService.cs | 80 ++++++ .../Remove-OCINetworkfirewallServiceList.cs | 80 ++++++ .../Remove-OCINetworkfirewallUrlList.cs | 80 ++++++ .../Stop-OCINetworkfirewallWorkRequest.cs | 2 +- .../Cmdlets/Update-OCINetworkfirewall.cs | 2 +- .../Update-OCINetworkfirewallAddressList.cs | 75 +++++ .../Update-OCINetworkfirewallApplication.cs | 75 +++++ ...date-OCINetworkfirewallApplicationGroup.cs | 75 +++++ ...ate-OCINetworkfirewallDecryptionProfile.cs | 75 +++++ ...Update-OCINetworkfirewallDecryptionRule.cs | 75 +++++ .../Update-OCINetworkfirewallMappedSecret.cs | 75 +++++ .../Update-OCINetworkfirewallPolicy.cs | 2 +- .../Update-OCINetworkfirewallSecurityRule.cs | 75 +++++ .../Update-OCINetworkfirewallService.cs | 75 +++++ .../Update-OCINetworkfirewallServiceList.cs | 75 +++++ .../Update-OCINetworkfirewallUrlList.cs | 75 +++++ .../OCI.PSModules.Networkfirewall.csproj | 2 +- .../OCI.PSModules.Networkfirewall.psd1 | 77 +++++- .../OCI.PSModules.Networkloadbalancer.psd1 | 4 +- Nosql/OCI.PSModules.Nosql.psd1 | 4 +- .../OCI.PSModules.Objectstorage.psd1 | 4 +- Oce/OCI.PSModules.Oce.psd1 | 4 +- .../OCI.PSModules.Ocicontrolcenter.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/OCI.PSModules.Opa.psd1 | 4 +- Opensearch/OCI.PSModules.Opensearch.psd1 | 4 +- .../OCI.PSModules.Operatoraccesscontrol.psd1 | 4 +- Opsi/OCI.PSModules.Opsi.psd1 | 4 +- Optimizer/OCI.PSModules.Optimizer.psd1 | 4 +- Osmanagement/OCI.PSModules.Osmanagement.psd1 | 4 +- .../OCI.PSModules.Osmanagementhub.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 | 260 +++++++++--------- Queue/OCI.PSModules.Queue.psd1 | 4 +- Recovery/OCI.PSModules.Recovery.psd1 | 4 +- Redis/Cmdlets/Get-OCIRedisCluster.cs | 99 +++++++ Redis/Cmdlets/Get-OCIRedisClustersList.cs | 116 ++++++++ Redis/Cmdlets/Get-OCIRedisWorkRequest.cs | 99 +++++++ .../Get-OCIRedisWorkRequestErrorsList.cs | 104 +++++++ .../Get-OCIRedisWorkRequestLogsList.cs | 104 +++++++ Redis/Cmdlets/Get-OCIRedisWorkRequestsList.cs | 116 ++++++++ .../Move-OCIRedisClusterCompartment.cs | 75 +++++ Redis/Cmdlets/New-OCIRedisCluster.cs | 67 +++++ Redis/Cmdlets/OCIRedisClusterCmdlet.cs | 86 ++++++ Redis/Cmdlets/Remove-OCIRedisCluster.cs | 76 +++++ Redis/Cmdlets/Stop-OCIRedisWorkRequest.cs | 76 +++++ Redis/Cmdlets/Update-OCIRedisCluster.cs | 71 +++++ Redis/OCI.PSModules.Redis.csproj | 23 ++ Redis/OCI.PSModules.Redis.psd1 | 136 +++++++++ .../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 +- Vbsinst/OCI.PSModules.Vbsinst.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 | 28 ++ 325 files changed, 13477 insertions(+), 455 deletions(-) create mode 100644 Lockbox/Cmdlets/Export-OCILockboxAccessRequests.cs create mode 100644 Marketplacepublisher/Cmdlets/Confirm-OCIMarketplacepublisherAndPublishArtifact.cs create mode 100644 Marketplacepublisher/Cmdlets/Enable-OCIMarketplacepublisherTermVersion.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifact.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifactsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategoriesList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategory.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListing.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachment.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachmentsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNote.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNotesList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackage.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackagesList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarket.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarketsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProduct.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProductsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublisher.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublishersList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTerm.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersion.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersionsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequest.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestErrorsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestLogsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestsList.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListing.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCloneListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherMarkListingRevisionPackageAsDefault.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionAsPrivate.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionPackage.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherSubmitListingRevisionForReview.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherUnPublishListingRevisionPackage.cs create mode 100644 Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherWithdrawListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherArtifactCompartment.cs create mode 100644 Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingCompartment.cs create mode 100644 Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingRevisionToNewStatus.cs create mode 100644 Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherTermCompartment.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherArtifact.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListing.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionAttachment.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionNote.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionPackage.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTerm.cs create mode 100644 Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTermVersion.cs create mode 100644 Marketplacepublisher/Cmdlets/OCIMarketplacePublisherCmdlet.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherArtifact.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListing.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionAttachment.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionNote.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionPackage.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTerm.cs create mode 100644 Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTermVersion.cs create mode 100644 Marketplacepublisher/Cmdlets/Stop-OCIMarketplacepublisherWorkRequest.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherArtifact.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListing.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevision.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachment.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachmentContent.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionIconContent.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionPackage.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTerm.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersion.cs create mode 100644 Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersionContent.cs create mode 100644 Marketplacepublisher/OCI.PSModules.Marketplacepublisher.csproj create mode 100644 Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressListsList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplication.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroup.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroupsList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationsList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfile.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfilesList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRule.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRulesList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecret.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecretsList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRule.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRulesList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallService.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceListsList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallServicesList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlList.cs create mode 100644 Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlListsList.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallApplyNetworkFirewallPolicy.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadAddressLists.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplicationGroups.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplications.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionProfiles.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionRules.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadMappedSecrets.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadSecurityRules.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServiceLists.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServices.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadUrlLists.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallCloneNetworkFirewallPolicy.cs create mode 100644 Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallMigrateNetworkFirewallPolicy.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallAddressList.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallApplication.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallApplicationGroup.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionProfile.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionRule.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallMappedSecret.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallSecurityRule.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallService.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallServiceList.cs create mode 100644 Networkfirewall/Cmdlets/New-OCINetworkfirewallUrlList.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallAddressList.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplication.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplicationGroup.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionProfile.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionRule.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallMappedSecret.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallSecurityRule.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallService.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallServiceList.cs create mode 100644 Networkfirewall/Cmdlets/Remove-OCINetworkfirewallUrlList.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallAddressList.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplication.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplicationGroup.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionProfile.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionRule.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallMappedSecret.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallSecurityRule.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallService.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallServiceList.cs create mode 100644 Networkfirewall/Cmdlets/Update-OCINetworkfirewallUrlList.cs create mode 100644 Redis/Cmdlets/Get-OCIRedisCluster.cs create mode 100644 Redis/Cmdlets/Get-OCIRedisClustersList.cs create mode 100644 Redis/Cmdlets/Get-OCIRedisWorkRequest.cs create mode 100644 Redis/Cmdlets/Get-OCIRedisWorkRequestErrorsList.cs create mode 100644 Redis/Cmdlets/Get-OCIRedisWorkRequestLogsList.cs create mode 100644 Redis/Cmdlets/Get-OCIRedisWorkRequestsList.cs create mode 100644 Redis/Cmdlets/Move-OCIRedisClusterCompartment.cs create mode 100644 Redis/Cmdlets/New-OCIRedisCluster.cs create mode 100644 Redis/Cmdlets/OCIRedisClusterCmdlet.cs create mode 100644 Redis/Cmdlets/Remove-OCIRedisCluster.cs create mode 100644 Redis/Cmdlets/Stop-OCIRedisWorkRequest.cs create mode 100644 Redis/Cmdlets/Update-OCIRedisCluster.cs create mode 100644 Redis/OCI.PSModules.Redis.csproj create mode 100644 Redis/OCI.PSModules.Redis.psd1 diff --git a/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 b/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 index 6e7efb479..d039c4b0b 100644 --- a/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 +++ b/Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Accessgovernancecp.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Accessgovernancecp.dll' diff --git a/Adm/OCI.PSModules.Adm.psd1 b/Adm/OCI.PSModules.Adm.psd1 index ea23d4bda..bb2689d88 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 d3f0e675c..67765b1da 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aianomalydetection.dll' diff --git a/Aidocument/OCI.PSModules.Aidocument.psd1 b/Aidocument/OCI.PSModules.Aidocument.psd1 index 111a997de..e8b903a40 100644 --- a/Aidocument/OCI.PSModules.Aidocument.psd1 +++ b/Aidocument/OCI.PSModules.Aidocument.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Aidocument.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aidocument.dll' diff --git a/Ailanguage/OCI.PSModules.Ailanguage.psd1 b/Ailanguage/OCI.PSModules.Ailanguage.psd1 index c15cc9ea4..de3f30db9 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 e010869fc..7f886d3b0 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 3cdf2c21a..d04a3f6d8 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 e121dd767..e36895d1c 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Analytics.dll' diff --git a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 index bf358894b..aa6fc35d1 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Announcementsservice.dll' diff --git a/Apigateway/OCI.PSModules.Apigateway.psd1 b/Apigateway/OCI.PSModules.Apigateway.psd1 index 6e7217b5b..a0b85ba21 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 9124265c2..e00698409 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 21930d4d9..692fee87a 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 450ffbf2e..651a18067 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 bca4649af..ba6b26594 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 e624986f3..d43fca1e7 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 50c6bae80..390960c87 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 2ae9b49bc..053b8cca1 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 3a31c0f58..25d58b103 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Audit.dll' diff --git a/Autoscaling/OCI.PSModules.Autoscaling.psd1 b/Autoscaling/OCI.PSModules.Autoscaling.psd1 index 762f2b68c..b5913c3c5 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 2dc9f5f32..a2b648d8b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 f9d315ac7..76a51c9a5 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Bds.dll' diff --git a/Blockchain/OCI.PSModules.Blockchain.psd1 b/Blockchain/OCI.PSModules.Blockchain.psd1 index 48a5ec6f4..65e14b5cc 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Blockchain.dll' diff --git a/Budget/OCI.PSModules.Budget.psd1 b/Budget/OCI.PSModules.Budget.psd1 index fafa53821..ad1ba1016 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Budget.dll' diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c96ea81f..dbb8ec07f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,37 @@ 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/). +## 68.0.0 - 2023-10-17 +### Added +- Support for the Caching Service +- Support for the Marketplace Publisher service +- Support for higher limits for network firewalls in the Network Firewall service +- Support for exporting access request reports in the Lockbox service +- Support for storage mounts for jobs and notebooks in the Data Science service +- Support for unified agent operational metrics for the service configurations in the Logging Management service + +### Breaking Changes +- The parameter `ServiceStage` was removed from the Get-OCILoggingServicesList cmdlet in the Logging service +- The properties `DisplayName` and `RqsType` were removed in the `Parameter` model in the Logging Management service in the .NET SDK +- The enum members `EnumString` and `RqsFilter` were remoeved from the enum `TypeEnum` in the `Parameter` model in the Logging Management service in the .NET SDK +- The property `ServiceStage` was removed in the `ListServicesRequest` model in the Logging Management service in the .NET SDK +- The models `TcpApplication` and `UdpApplication` were removed in the Network Firewall service in the .NET SDK +- The enum `TypeEnum` was removed in the model `DecryptionProfile` in the Network Firewall service in the .NET SDK +- The properties `MappedSecrets`, `ApplicationLists`, `UrlLists`, `IpAddressLists`, `SecurityRules`, `DecryptionRules` and `DecryptionProfiles` were removed in the model `CreateNetworkFirewallPolicyDetails` in the Network Firewall service in the .NET SDK +- The enum `ActionEnum` was removed in the model `DecryptionRule` in the Network Firewall service in the .NET SDK +- The type of property `Action` was changed to `DecryptionActionType` in the model `DecryptionRule` in the Network Firewall service in the .NET SDK +- The property `Sources` has been replaced by `SourceAddress` in the models `SecurityRuleMatchCriteria` and `DecryptionRuleMatchCriteria` in the Network Firewall service in the .NET SDK +- The property `Destinations` has been replaced by `DestinationAddress` in the models `SecurityRuleMatchCriteria` and `DecryptionRuleMatchCriteria` in the Network Firewall service in the .NET SDK +- The enum `TypeEnum` was removed in the model `MappedSecret` in the Network Firewall service in the .NET SDK +- The type of property `Type` was changed to `InspectionType` in the model `MappedSecret` in the Network Firewall service in the .NET SDK +- The properties `ApplicationLists`, `UrlLists`, `IpAddressLists`, `SecurityRules`, `DecryptionRules`, `DecryptionProfiles`, `MappedSecrets` and `IsFirewallAttached` were removed in the model `NetworkFirewallPolicy` in the Network Firewall service in the .NET SDK +- The enums `ActionEnum` and `InspectionEnum` were removed in the model `SecurityRule` in the Network Firewall service in the .NET SDK +- The type of property `Action` was changed to `TrafficActionType` in the model `SecurityRule` in the Network Firewall service in the .NET SDK +- The type of property `Inspection` was changed to `TrafficInspectionType` in the model `SecurityRule` in the Network Firewall service in the .NET SDK +- The property `Applications` has been replaced by `Application` in the model `SecurityRuleMatchCriteria` in the Network Firewall service in the .NET SDK +- The property `Urls` has been replaced by `Url` in the model `SecurityRuleMatchCriteria` in the Network Firewall service in the .NET SDK +- The properties `MappedSecrets`, `ApplicationLists`, `UrlLists`, `IpAddressLists`, `SecurityRules`, `DecryptionRules` and `DecryptionProfiles` were removed in the model `UpdateNetworkFirewallPolicyDetails` in the Network Firewall service in the .NET SDK + ## 67.4.0 - 2023-10-10 ### Added - Support for creating flow log type capture filters in the Virtual Cloud Network service diff --git a/Certificates/OCI.PSModules.Certificates.psd1 b/Certificates/OCI.PSModules.Certificates.psd1 index b988008da..7555ccafb 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 d7095000a..ac368349a 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 dd2d6c70d..657ae4aa8 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cims.dll' diff --git a/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 b/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 index c7094849b..b1ac37597 100644 --- a/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 +++ b/Cloudbridge/OCI.PSModules.Cloudbridge.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudbridge.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudbridge.dll' diff --git a/Cloudguard/OCI.PSModules.Cloudguard.psd1 b/Cloudguard/OCI.PSModules.Cloudguard.psd1 index 7b296056c..b32aa6205 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudguard.dll' diff --git a/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 b/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 index 67165dd18..6be146690 100644 --- a/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 +++ b/Cloudmigrations/OCI.PSModules.Cloudmigrations.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudmigrations.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Cloudmigrations.dll' diff --git a/Common/OCI.PSModules.Common.psd1 b/Common/OCI.PSModules.Common.psd1 index a7bd5b796..38aa12c11 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 = '67.4.0' +ModuleVersion = '68.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' diff --git a/Common/Version.cs b/Common/Version.cs index af732546c..c89b58d62 100644 --- a/Common/Version.cs +++ b/Common/Version.cs @@ -6,8 +6,8 @@ namespace Oci.PSModules.Common.Cmdlets { public class Version { - public static string MAJOR = "67"; - public static string MINOR = "4"; + public static string MAJOR = "68"; + public static string MINOR = "0"; public static string PATCH = "0"; public static string GetVersion() diff --git a/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 b/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 index 12ba472ef..63bfe169e 100644 --- a/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 +++ b/Computecloudatcustomer/OCI.PSModules.Computecloudatcustomer.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Computecloudatcustomer.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Computecloudatcustomer.dll' diff --git a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 index 3d40db7de..e1e8e83ed 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Computeinstanceagent.dll' diff --git a/Containerengine/OCI.PSModules.Containerengine.psd1 b/Containerengine/OCI.PSModules.Containerengine.psd1 index 9a47583c1..a6eda5dcc 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerengine.dll' diff --git a/Containerinstances/OCI.PSModules.Containerinstances.psd1 b/Containerinstances/OCI.PSModules.Containerinstances.psd1 index b90b2b5fb..879d89dc0 100644 --- a/Containerinstances/OCI.PSModules.Containerinstances.psd1 +++ b/Containerinstances/OCI.PSModules.Containerinstances.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Containerinstances.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerinstances.dll' diff --git a/Core/OCI.PSModules.Core.psd1 b/Core/OCI.PSModules.Core.psd1 index d576ae4f6..94b731d6d 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Core.dll' diff --git a/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 b/Dashboardservice/OCI.PSModules.Dashboardservice.psd1 index c1d04f290..d5fc8e7f7 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 2fb18c9d5..6d522ea01 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 8fde57243..ab6a09031 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 53ede9f30..225df51bd 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 284423529..e83324ae3 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 05cd63110..73c9daa41 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datacatalog.dll' diff --git a/Dataflow/OCI.PSModules.Dataflow.psd1 b/Dataflow/OCI.PSModules.Dataflow.psd1 index 8a887d66b..54a616daa 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataflow.dll' diff --git a/Dataintegration/OCI.PSModules.Dataintegration.psd1 b/Dataintegration/OCI.PSModules.Dataintegration.psd1 index 4a326819d..b705d34cb 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 b8999c600..911415157 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 3c79a4509..9c2362f5e 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 145a5c84b..5d0f68404 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datasafe.dll' diff --git a/Datascience/Cmdlets/Get-OCIDatascienceFastLaunchJobConfigsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceFastLaunchJobConfigsList.cs index 7abd62aea..f8ac1e907 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceFastLaunchJobConfigsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceFastLaunchJobConfigsList.cs @@ -27,9 +27,9 @@ public class GetOCIDatascienceFastLaunchJobConfigsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceJobRunsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceJobRunsList.cs index 1c02b8f42..b3a7ef5ca 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceJobRunsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceJobRunsList.cs @@ -39,9 +39,9 @@ public class GetOCIDatascienceJobRunsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceJobShapesList.cs b/Datascience/Cmdlets/Get-OCIDatascienceJobShapesList.cs index 91f5fdffe..6a0ad074e 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceJobShapesList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceJobShapesList.cs @@ -27,9 +27,9 @@ public class GetOCIDatascienceJobShapesList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceJobsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceJobsList.cs index fb29c5b78..d078a6f26 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceJobsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceJobsList.cs @@ -39,9 +39,9 @@ public class GetOCIDatascienceJobsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentShapesList.cs b/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentShapesList.cs index c7c9b9b67..2bac6a736 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentShapesList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentShapesList.cs @@ -27,9 +27,9 @@ public class GetOCIDatascienceModelDeploymentShapesList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentsList.cs index 76c4ada06..57c2eea03 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceModelDeploymentsList.cs @@ -39,9 +39,9 @@ public class GetOCIDatascienceModelDeploymentsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceModelVersionSetsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceModelVersionSetsList.cs index 4de5886bd..1bc83688c 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceModelVersionSetsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceModelVersionSetsList.cs @@ -39,9 +39,9 @@ public class GetOCIDatascienceModelVersionSetsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceModelsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceModelsList.cs index bb67f6e37..97c63e1a7 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceModelsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceModelsList.cs @@ -45,9 +45,9 @@ public class GetOCIDatascienceModelsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionShapesList.cs b/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionShapesList.cs index 0026de8eb..dc538b213 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionShapesList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionShapesList.cs @@ -27,9 +27,9 @@ public class GetOCIDatascienceNotebookSessionShapesList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionsList.cs index a5536d72c..8dffd8cd9 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceNotebookSessionsList.cs @@ -39,9 +39,9 @@ public class GetOCIDatascienceNotebookSessionsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatasciencePipelineRunsList.cs b/Datascience/Cmdlets/Get-OCIDatasciencePipelineRunsList.cs index 1d6696cae..a6f15d852 100644 --- a/Datascience/Cmdlets/Get-OCIDatasciencePipelineRunsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatasciencePipelineRunsList.cs @@ -39,9 +39,9 @@ public class GetOCIDatasciencePipelineRunsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatasciencePipelinesList.cs b/Datascience/Cmdlets/Get-OCIDatasciencePipelinesList.cs index fd4b7c564..a1aa58921 100644 --- a/Datascience/Cmdlets/Get-OCIDatasciencePipelinesList.cs +++ b/Datascience/Cmdlets/Get-OCIDatasciencePipelinesList.cs @@ -39,9 +39,9 @@ public class GetOCIDatasciencePipelinesList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatasciencePrivateEndpointsList.cs b/Datascience/Cmdlets/Get-OCIDatasciencePrivateEndpointsList.cs index 8014f9f7a..ef8e4b1ed 100644 --- a/Datascience/Cmdlets/Get-OCIDatasciencePrivateEndpointsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatasciencePrivateEndpointsList.cs @@ -27,9 +27,9 @@ public class GetOCIDatasciencePrivateEndpointsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceProjectsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceProjectsList.cs index 075c91d3b..45b0ab21d 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceProjectsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceProjectsList.cs @@ -36,9 +36,9 @@ public class GetOCIDatascienceProjectsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the resource.")] public string CreatedBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestErrorsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestErrorsList.cs index e9b09cfa7..e6477d4f9 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestErrorsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestErrorsList.cs @@ -27,9 +27,9 @@ public class GetOCIDatascienceWorkRequestErrorsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestLogsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestLogsList.cs index 00ddf23b7..46ceda9ad 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestLogsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestLogsList.cs @@ -27,9 +27,9 @@ public class GetOCIDatascienceWorkRequestLogsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestsList.cs b/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestsList.cs index f59ba5c3d..db48d72e4 100644 --- a/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestsList.cs +++ b/Datascience/Cmdlets/Get-OCIDatascienceWorkRequestsList.cs @@ -33,9 +33,9 @@ public class GetOCIDatascienceWorkRequestsList : OCIDataScienceCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter results by work request status.")] public System.Nullable Status { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 1000 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. 1 is the minimum, 100 is the maximum. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/usingapi.htm#nine). -Example: `500`", ParameterSetName = LimitSet)] +Example: `50`", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. diff --git a/Datascience/OCI.PSModules.Datascience.psd1 b/Datascience/OCI.PSModules.Datascience.psd1 index 160b38664..76e9431ea 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 1d0dd16f9..56d319db3 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 9efe64f8f..ba75debb1 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 71.4.0 + 72.0.0 diff --git a/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 b/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 index ac515495c..ddefcbeaf 100644 --- a/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 +++ b/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Disasterrecovery.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Disasterrecovery.dll' diff --git a/Dns/OCI.PSModules.Dns.psd1 b/Dns/OCI.PSModules.Dns.psd1 index 9e0495787..81cddc3f8 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dns.dll' diff --git a/Dts/OCI.PSModules.Dts.psd1 b/Dts/OCI.PSModules.Dts.psd1 index 8a693b4de..0c20069d4 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dts.dll' diff --git a/Email/OCI.PSModules.Email.psd1 b/Email/OCI.PSModules.Email.psd1 index bdba8747f..8994c8760 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 27a0c31cc..099064657 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 35866bcc8..53825d436 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Events.dll' diff --git a/Filestorage/OCI.PSModules.Filestorage.psd1 b/Filestorage/OCI.PSModules.Filestorage.psd1 index c8effbc56..ba3e88fad 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Filestorage.dll' diff --git a/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 b/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 index 3d17b62c9..37fe9b060 100644 --- a/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 +++ b/Fleetsoftwareupdate/OCI.PSModules.Fleetsoftwareupdate.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Fleetsoftwareupdate.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Fleetsoftwareupdate.dll' diff --git a/Functions/OCI.PSModules.Functions.psd1 b/Functions/OCI.PSModules.Functions.psd1 index 0312b26b7..793c1ed08 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Functions.dll' diff --git a/Fusionapps/OCI.PSModules.Fusionapps.psd1 b/Fusionapps/OCI.PSModules.Fusionapps.psd1 index 4d25b9a2c..3fa2a88d3 100644 --- a/Fusionapps/OCI.PSModules.Fusionapps.psd1 +++ b/Fusionapps/OCI.PSModules.Fusionapps.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Fusionapps.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Fusionapps.dll' diff --git a/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 b/Genericartifactscontent/OCI.PSModules.Genericartifactscontent.psd1 index 1dac1739b..c19f08344 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 1f4a361d3..876527029 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 c0b162474..4bbf0f5cc 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 7e78e2674..0f8f4695a 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Healthchecks.dll' diff --git a/Identity/OCI.PSModules.Identity.psd1 b/Identity/OCI.PSModules.Identity.psd1 index 6f0995aa6..d9028c8be 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 3667164d2..e99db5e3b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identitydataplane.dll' diff --git a/Identitydomains/OCI.PSModules.Identitydomains.psd1 b/Identitydomains/OCI.PSModules.Identitydomains.psd1 index ab377d3fb..71ee9e575 100644 --- a/Identitydomains/OCI.PSModules.Identitydomains.psd1 +++ b/Identitydomains/OCI.PSModules.Identitydomains.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Identitydomains.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identitydomains.dll' diff --git a/Integration/OCI.PSModules.Integration.psd1 b/Integration/OCI.PSModules.Integration.psd1 index 7e0d2214b..7b8bf047d 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 e90495d1d..0317ea073 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 3c94d7766..38a4d8c6b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 1b7d199c2..689068e59 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 c2ee2a5d4..b2030f4b8 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Limits.dll' diff --git a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 index 494409486..0fc753f75 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loadbalancer.dll' diff --git a/Lockbox/Cmdlets/Export-OCILockboxAccessRequests.cs b/Lockbox/Cmdlets/Export-OCILockboxAccessRequests.cs new file mode 100644 index 000000000..42ca53944 --- /dev/null +++ b/Lockbox/Cmdlets/Export-OCILockboxAccessRequests.cs @@ -0,0 +1,129 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220126 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 +{ + /* + * As per https://github.com/PowerShell/PowerShell/issues/11143, this cmdlet is marked with a default parameter set for proper resolution of the invoked parameter set. + * Parameter set "Default" contains all the parameters that are defined in this class(including base classes) and are not explicitly tagged with a ParameterSetName. + */ + [Cmdlet("Export", "OCILockboxAccessRequests", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(System.IO.Stream), typeof(void), typeof(Oci.LockboxService.Responses.ExportAccessRequestsResponse) })] + public class ExportOCILockboxAccessRequests : OCILockboxCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true)] + public ExportAccessRequestsDetails ExportAccessRequestsDetails { 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 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 ID of the partner.")] + public string PartnerId { 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.")] + 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 = "Path to the output file.", ParameterSetName = WriteToFileSet)] + public string OutputFile { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Output the complete response returned by the API Operation. Using this switch will make this Cmdlet output an object containing response headers in-addition to an optional response body.", ParameterSetName = FullResponseSet)] + public override SwitchParameter FullResponse { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ExportAccessRequestsRequest request; + + try + { + request = new ExportAccessRequestsRequest + { + ExportAccessRequestsDetails = ExportAccessRequestsDetails, + OpcRequestId = OpcRequestId, + Id = Id, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + LockboxPartner = LockboxPartner, + PartnerId = PartnerId, + RequestorId = RequestorId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + + response = client.ExportAccessRequests(request).GetAwaiter().GetResult(); + HandleOutput(); + + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput() + { + if (ParameterSetName.Equals(WriteToFileSet)) + { + WriteToOutputFile(OutputFile, response.InputStream); + } + else + { + WriteOutput(response, response.InputStream); + } + } + + private ExportAccessRequestsResponse response; + private const string Default = "Default"; + private const string WriteToFileSet = "WriteToFile"; + private const string FullResponseSet = "FullResponse"; + } +} diff --git a/Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs b/Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs index e492b6338..59cc3c99c 100644 --- a/Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs +++ b/Lockbox/Cmdlets/Get-OCILockboxAccessRequestsList.cs @@ -39,6 +39,9 @@ public class GetOCILockboxAccessRequestsList : OCILockboxCmdlet [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 ID of the partner.")] + public string PartnerId { 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; } @@ -54,6 +57,12 @@ public class GetOCILockboxAccessRequestsList : OCILockboxCmdlet [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 = @"Date and time on or after which Access Requests were created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339)")] + public System.Nullable TimeCreatedAfter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Date and time on or before which Access requests were created, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339)")] + public System.Nullable TimeCreatedBefore { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -72,11 +81,14 @@ protected override void ProcessRecord() DisplayName = DisplayName, LifecycleState = LifecycleState, LockboxPartner = LockboxPartner, + PartnerId = PartnerId, RequestorId = RequestorId, Limit = Limit, Page = Page, SortOrder = SortOrder, - SortBy = SortBy + SortBy = SortBy, + TimeCreatedAfter = TimeCreatedAfter, + TimeCreatedBefore = TimeCreatedBefore }; IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) diff --git a/Lockbox/Cmdlets/Get-OCILockboxesList.cs b/Lockbox/Cmdlets/Get-OCILockboxesList.cs index c553be286..80a75ff35 100644 --- a/Lockbox/Cmdlets/Get-OCILockboxesList.cs +++ b/Lockbox/Cmdlets/Get-OCILockboxesList.cs @@ -39,6 +39,9 @@ public class GetOCILockboxesList : OCILockboxCmdlet [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 ID of the partner.")] + public string PartnerId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } @@ -72,6 +75,7 @@ protected override void ProcessRecord() Id = Id, ResourceId = ResourceId, LockboxPartner = LockboxPartner, + PartnerId = PartnerId, Limit = Limit, Page = Page, SortOrder = SortOrder, diff --git a/Lockbox/OCI.PSModules.Lockbox.psd1 b/Lockbox/OCI.PSModules.Lockbox.psd1 index 39745c347..de7075176 100644 --- a/Lockbox/OCI.PSModules.Lockbox.psd1 +++ b/Lockbox/OCI.PSModules.Lockbox.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Lockbox.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Lockbox.dll' @@ -71,8 +71,9 @@ RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Lockbox.dll' FunctionsToExport = '*' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Get-OCILockbox', 'Get-OCILockboxAccessMaterials', - 'Get-OCILockboxAccessRequest', 'Get-OCILockboxAccessRequestsList', +CmdletsToExport = 'Export-OCILockboxAccessRequests', 'Get-OCILockbox', + 'Get-OCILockboxAccessMaterials', 'Get-OCILockboxAccessRequest', + 'Get-OCILockboxAccessRequestsList', 'Get-OCILockboxApprovalTemplate', 'Get-OCILockboxApprovalTemplatesList', 'Get-OCILockboxesList', 'Get-OCILockboxWorkRequest', 'Get-OCILockboxWorkRequestErrorsList', diff --git a/Loganalytics/OCI.PSModules.Loganalytics.psd1 b/Loganalytics/OCI.PSModules.Loganalytics.psd1 index 5b922db07..9dbcc881e 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loganalytics.dll' diff --git a/Logging/Cmdlets/Get-OCILoggingServicesList.cs b/Logging/Cmdlets/Get-OCILoggingServicesList.cs index fa3d15d69..52c708aa7 100644 --- a/Logging/Cmdlets/Get-OCILoggingServicesList.cs +++ b/Logging/Cmdlets/Get-OCILoggingServicesList.cs @@ -19,9 +19,6 @@ namespace Oci.LoggingService.Cmdlets [OutputType(new System.Type[] { typeof(Oci.LoggingService.Models.ServiceSummary), typeof(Oci.LoggingService.Responses.ListServicesResponse) })] public class GetOCILoggingServicesList : OCILoggingManagementCmdlet { - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Service stage of a service. The allowed values are ""ProductionStage"", ""DevStage"" and ""LAStage"".")] - public string ServiceStage { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } @@ -34,7 +31,6 @@ protected override void ProcessRecord() { request = new ListServicesRequest { - ServiceStage = ServiceStage, OpcRequestId = OpcRequestId }; diff --git a/Logging/OCI.PSModules.Logging.psd1 b/Logging/OCI.PSModules.Logging.psd1 index ad0b36e6b..315ecf8ea 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Logging.dll' diff --git a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 index e357b8b4d..367a919a7 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loggingingestion.dll' diff --git a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 index b5ca11108..bb088fc27 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loggingsearch.dll' diff --git a/Managementagent/OCI.PSModules.Managementagent.psd1 b/Managementagent/OCI.PSModules.Managementagent.psd1 index f6fd10acb..e0fec7407 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Managementagent.dll' diff --git a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 index de56b3a7d..685aa2f4f 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Managementdashboard.dll' diff --git a/Marketplace/OCI.PSModules.Marketplace.psd1 b/Marketplace/OCI.PSModules.Marketplace.psd1 index c1b1589a7..47acb223f 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplace.dll' diff --git a/Marketplacepublisher/Cmdlets/Confirm-OCIMarketplacepublisherAndPublishArtifact.cs b/Marketplacepublisher/Cmdlets/Confirm-OCIMarketplacepublisherAndPublishArtifact.cs new file mode 100644 index 000000000..bcdf580dd --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Confirm-OCIMarketplacepublisherAndPublishArtifact.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Confirm", "OCIMarketplacepublisherAndPublishArtifact")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.ValidateAndPublishArtifactResponse) })] + public class ConfirmOCIMarketplacepublisherAndPublishArtifact : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"artifact OCID")] + public string ArtifactId { 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(); + ValidateAndPublishArtifactRequest request; + + try + { + request = new ValidateAndPublishArtifactRequest + { + ArtifactId = ArtifactId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ValidateAndPublishArtifact(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 ValidateAndPublishArtifactResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Enable-OCIMarketplacepublisherTermVersion.cs b/Marketplacepublisher/Cmdlets/Enable-OCIMarketplacepublisherTermVersion.cs new file mode 100644 index 000000000..23b3598dd --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Enable-OCIMarketplacepublisherTermVersion.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Enable", "OCIMarketplacepublisherTermVersion")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.TermVersion), typeof(Oci.MarketplacepublisherService.Responses.ActivateTermVersionResponse) })] + public class EnableOCIMarketplacepublisherTermVersion : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term version OCID")] + public string TermVersionId { 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(); + ActivateTermVersionRequest request; + + try + { + request = new ActivateTermVersionRequest + { + TermVersionId = TermVersionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ActivateTermVersion(request).GetAwaiter().GetResult(); + WriteOutput(response, response.TermVersion); + 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 ActivateTermVersionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifact.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifact.cs new file mode 100644 index 000000000..b3017aba9 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifact.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherArtifact", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Artifact), typeof(Oci.MarketplacepublisherService.Responses.GetArtifactResponse) })] + public class GetOCIMarketplacepublisherArtifact : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"artifact OCID", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"artifact OCID", ParameterSetName = Default)] + public string ArtifactId { 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.MarketplacepublisherService.Models.Artifact.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(); + GetArtifactRequest request; + + try + { + request = new GetArtifactRequest + { + ArtifactId = ArtifactId, + 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(GetArtifactRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForArtifact(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetArtifact(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Artifact); + } + + private GetArtifactResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifactsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifactsList.cs new file mode 100644 index 000000000..42bf15b06 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherArtifactsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherArtifactsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ArtifactCollection), typeof(Oci.MarketplacepublisherService.Responses.ListArtifactsResponse) })] + public class GetOCIMarketplacepublisherArtifactsList : OCIMarketplacePublisherCmdlet + { + [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 artifacts with 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 = @"A filter to return only artifacts with specific status.")] + public System.Nullable Status { 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(); + ListArtifactsRequest request; + + try + { + request = new ListArtifactsRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + Status = Status, + 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.ArtifactCollection, 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(ListArtifactsRequest request) => Enumerable.Repeat(client.ListArtifacts(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListArtifactsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListArtifactsResponse response; + private delegate IEnumerable RequestDelegate(ListArtifactsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategoriesList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategoriesList.cs new file mode 100644 index 000000000..1a3228909 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategoriesList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherCategoriesList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.CategoryCollection), typeof(Oci.MarketplacepublisherService.Responses.ListCategoriesResponse) })] + public class GetOCIMarketplacepublisherCategoriesList : OCIMarketplacePublisherCmdlet + { + [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 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 = @"product code to filter")] + public string ProductCode { 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 = @"A filter to return only resources that match the entire name given.")] + public string Name { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListCategoriesRequest request; + + try + { + request = new ListCategoriesRequest + { + CompartmentId = CompartmentId, + Limit = Limit, + Page = Page, + ProductCode = ProductCode, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + Name = Name + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.CategoryCollection, 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(ListCategoriesRequest request) => Enumerable.Repeat(client.ListCategories(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListCategoriesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListCategoriesResponse response; + private delegate IEnumerable RequestDelegate(ListCategoriesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategory.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategory.cs new file mode 100644 index 000000000..45dec7f43 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherCategory.cs @@ -0,0 +1,105 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherCategory", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Category), typeof(Oci.MarketplacepublisherService.Responses.GetCategoryResponse) })] + public class GetOCIMarketplacepublisherCategory : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Category Code", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Category Code", ParameterSetName = Default)] + public string CategoryCode { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.", ParameterSetName = Default)] + public string CompartmentId { 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.MarketplacepublisherService.Models.Category.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(); + GetCategoryRequest request; + + try + { + request = new GetCategoryRequest + { + CategoryCode = CategoryCode, + CompartmentId = CompartmentId, + OpcRequestId = OpcRequestId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetCategoryRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForCategory(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetCategory(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Category); + } + + private GetCategoryResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListing.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListing.cs new file mode 100644 index 000000000..390fca2ff --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListing.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListing", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Listing), typeof(Oci.MarketplacepublisherService.Responses.GetListingResponse) })] + public class GetOCIMarketplacepublisherListing : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing OCID", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing OCID", ParameterSetName = Default)] + public string ListingId { 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.MarketplacepublisherService.Models.Listing.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(); + GetListingRequest request; + + try + { + request = new GetListingRequest + { + ListingId = ListingId, + 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(GetListingRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForListing(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetListing(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Listing); + } + + private GetListingResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevision.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevision.cs new file mode 100644 index 000000000..c5ae41a3f --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevision.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevision", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevision), typeof(Oci.MarketplacepublisherService.Responses.GetListingRevisionResponse) })] + public class GetOCIMarketplacepublisherListingRevision : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision", ParameterSetName = Default)] + public string ListingRevisionId { 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.MarketplacepublisherService.Models.ListingRevision.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(); + GetListingRevisionRequest request; + + try + { + request = new GetListingRevisionRequest + { + ListingRevisionId = ListingRevisionId, + 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(GetListingRevisionRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForListingRevision(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetListingRevision(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ListingRevision); + } + + private GetListingRevisionResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachment.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachment.cs new file mode 100644 index 000000000..fddbbd466 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachment.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevisionAttachment", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionAttachment), typeof(Oci.MarketplacepublisherService.Responses.GetListingRevisionAttachmentResponse) })] + public class GetOCIMarketplacepublisherListingRevisionAttachment : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"attachment OCID", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"attachment OCID", ParameterSetName = Default)] + public string ListingRevisionAttachmentId { 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.MarketplacepublisherService.Models.ListingRevisionAttachment.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(); + GetListingRevisionAttachmentRequest request; + + try + { + request = new GetListingRevisionAttachmentRequest + { + ListingRevisionAttachmentId = ListingRevisionAttachmentId, + 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(GetListingRevisionAttachmentRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForListingRevisionAttachment(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetListingRevisionAttachment(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ListingRevisionAttachment); + } + + private GetListingRevisionAttachmentResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachmentsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachmentsList.cs new file mode 100644 index 000000000..3d54915f1 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionAttachmentsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevisionAttachmentsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionAttachmentCollection), typeof(Oci.MarketplacepublisherService.Responses.ListListingRevisionAttachmentsResponse) })] + public class GetOCIMarketplacepublisherListingRevisionAttachmentsList : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the listing revision.")] + public string ListingRevisionId { 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 attachments their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier for the compartment.")] + public string CompartmentId { 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(); + ListListingRevisionAttachmentsRequest request; + + try + { + request = new ListListingRevisionAttachmentsRequest + { + ListingRevisionId = ListingRevisionId, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + CompartmentId = CompartmentId, + 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.ListingRevisionAttachmentCollection, 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(ListListingRevisionAttachmentsRequest request) => Enumerable.Repeat(client.ListListingRevisionAttachments(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListListingRevisionAttachmentsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListListingRevisionAttachmentsResponse response; + private delegate IEnumerable RequestDelegate(ListListingRevisionAttachmentsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNote.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNote.cs new file mode 100644 index 000000000..b7e939cda --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNote.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevisionNote", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionNote), typeof(Oci.MarketplacepublisherService.Responses.GetListingRevisionNoteResponse) })] + public class GetOCIMarketplacepublisherListingRevisionNote : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision note identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision note identifier.", ParameterSetName = Default)] + public string ListingRevisionNoteId { 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.MarketplacepublisherService.Models.ListingRevisionNote.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(); + GetListingRevisionNoteRequest request; + + try + { + request = new GetListingRevisionNoteRequest + { + ListingRevisionNoteId = ListingRevisionNoteId, + 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(GetListingRevisionNoteRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForListingRevisionNote(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetListingRevisionNote(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ListingRevisionNote); + } + + private GetListingRevisionNoteResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNotesList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNotesList.cs new file mode 100644 index 000000000..dfc66f8a9 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionNotesList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevisionNotesList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionNoteCollection), typeof(Oci.MarketplacepublisherService.Responses.ListListingRevisionNotesResponse) })] + public class GetOCIMarketplacepublisherListingRevisionNotesList : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the listing revision.")] + public string ListingRevisionId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier for the compartment.")] + public string CompartmentId { 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(); + ListListingRevisionNotesRequest request; + + try + { + request = new ListListingRevisionNotesRequest + { + ListingRevisionId = ListingRevisionId, + CompartmentId = CompartmentId, + 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.ListingRevisionNoteCollection, 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(ListListingRevisionNotesRequest request) => Enumerable.Repeat(client.ListListingRevisionNotes(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListListingRevisionNotesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListListingRevisionNotesResponse response; + private delegate IEnumerable RequestDelegate(ListListingRevisionNotesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackage.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackage.cs new file mode 100644 index 000000000..f124f5bdd --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackage.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevisionPackage", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionPackage), typeof(Oci.MarketplacepublisherService.Responses.GetListingRevisionPackageResponse) })] + public class GetOCIMarketplacepublisherListingRevisionPackage : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision package identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision package identifier.", ParameterSetName = Default)] + public string ListingRevisionPackageId { 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.MarketplacepublisherService.Models.ListingRevisionPackage.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(); + GetListingRevisionPackageRequest request; + + try + { + request = new GetListingRevisionPackageRequest + { + ListingRevisionPackageId = ListingRevisionPackageId, + 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(GetListingRevisionPackageRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForListingRevisionPackage(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetListingRevisionPackage(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.ListingRevisionPackage); + } + + private GetListingRevisionPackageResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackagesList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackagesList.cs new file mode 100644 index 000000000..0f7fa526d --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionPackagesList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevisionPackagesList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionPackageCollection), typeof(Oci.MarketplacepublisherService.Responses.ListListingRevisionPackagesResponse) })] + public class GetOCIMarketplacepublisherListingRevisionPackagesList : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the listing revision.")] + public string ListingRevisionId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier for the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only packages 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 = 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(); + ListListingRevisionPackagesRequest request; + + try + { + request = new ListListingRevisionPackagesRequest + { + ListingRevisionId = ListingRevisionId, + CompartmentId = CompartmentId, + 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.ListingRevisionPackageCollection, 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(ListListingRevisionPackagesRequest request) => Enumerable.Repeat(client.ListListingRevisionPackages(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListListingRevisionPackagesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListListingRevisionPackagesResponse response; + private delegate IEnumerable RequestDelegate(ListListingRevisionPackagesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionsList.cs new file mode 100644 index 000000000..e44074709 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingRevisionsList.cs @@ -0,0 +1,120 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingRevisionsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionCollection), typeof(Oci.MarketplacepublisherService.Responses.ListListingRevisionsResponse) })] + public class GetOCIMarketplacepublisherListingRevisionsList : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing OCID")] + public string ListingId { 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 listing revisions their lifecycleState matches the given lifecycleState.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier for the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only listing revisions their status matches the given listing revision status.")] + public System.Nullable ListingRevisionStatus { 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(); + ListListingRevisionsRequest request; + + try + { + request = new ListListingRevisionsRequest + { + ListingId = ListingId, + DisplayName = DisplayName, + LifecycleState = LifecycleState, + CompartmentId = CompartmentId, + ListingRevisionStatus = ListingRevisionStatus, + 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.ListingRevisionCollection, 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(ListListingRevisionsRequest request) => Enumerable.Repeat(client.ListListingRevisions(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListListingRevisionsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListListingRevisionsResponse response; + private delegate IEnumerable RequestDelegate(ListListingRevisionsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingsList.cs new file mode 100644 index 000000000..8cf9c860e --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherListingsList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherListingsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingCollection), typeof(Oci.MarketplacepublisherService.Responses.ListListingsResponse) })] + public class GetOCIMarketplacepublisherListingsList : OCIMarketplacePublisherCmdlet + { + [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 listings 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 name given.")] + public string Name { 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(); + ListListingsRequest request; + + try + { + request = new ListListingsRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + Name = Name, + 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.ListingCollection, 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(ListListingsRequest request) => Enumerable.Repeat(client.ListListings(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListListingsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListListingsResponse response; + private delegate IEnumerable RequestDelegate(ListListingsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarket.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarket.cs new file mode 100644 index 000000000..bb34525ce --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarket.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherMarket", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Market), typeof(Oci.MarketplacepublisherService.Responses.GetMarketResponse) })] + public class GetOCIMarketplacepublisherMarket : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Market Code", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Market Code", ParameterSetName = Default)] + public string MarketCode { 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.MarketplacepublisherService.Models.Market.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(); + GetMarketRequest request; + + try + { + request = new GetMarketRequest + { + MarketCode = MarketCode, + 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(GetMarketRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForMarket(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetMarket(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Market); + } + + private GetMarketResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarketsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarketsList.cs new file mode 100644 index 000000000..0270d2e00 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherMarketsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherMarketsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.MarketCollection), typeof(Oci.MarketplacepublisherService.Responses.ListMarketsResponse) })] + public class GetOCIMarketplacepublisherMarketsList : OCIMarketplacePublisherCmdlet + { + [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 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire name given.")] + public string Name { 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(); + ListMarketsRequest request; + + try + { + request = new ListMarketsRequest + { + CompartmentId = CompartmentId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + Name = Name + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MarketCollection, 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(ListMarketsRequest request) => Enumerable.Repeat(client.ListMarkets(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMarketsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMarketsResponse response; + private delegate IEnumerable RequestDelegate(ListMarketsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProduct.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProduct.cs new file mode 100644 index 000000000..2fdbd1d57 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProduct.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherProduct", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Product), typeof(Oci.MarketplacepublisherService.Responses.GetProductResponse) })] + public class GetOCIMarketplacepublisherProduct : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Product Code", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Product Code", ParameterSetName = Default)] + public string ProductCode { 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.MarketplacepublisherService.Models.Product.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(); + GetProductRequest request; + + try + { + request = new GetProductRequest + { + ProductCode = ProductCode, + 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(GetProductRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForProduct(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetProduct(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Product); + } + + private GetProductResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProductsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProductsList.cs new file mode 100644 index 000000000..fd773df6d --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherProductsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherProductsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ProductCollection), typeof(Oci.MarketplacepublisherService.Responses.ListProductsResponse) })] + public class GetOCIMarketplacepublisherProductsList : OCIMarketplacePublisherCmdlet + { + [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 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire name given.")] + public string Name { 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(); + ListProductsRequest request; + + try + { + request = new ListProductsRequest + { + CompartmentId = CompartmentId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + Name = Name + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ProductCollection, 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(ListProductsRequest request) => Enumerable.Repeat(client.ListProducts(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListProductsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListProductsResponse response; + private delegate IEnumerable RequestDelegate(ListProductsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublisher.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublisher.cs new file mode 100644 index 000000000..42d1c2e20 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublisher.cs @@ -0,0 +1,63 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherPublisher")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Publisher), typeof(Oci.MarketplacepublisherService.Responses.GetPublisherResponse) })] + public class GetOCIMarketplacepublisherPublisher : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Publisher OCID")] + public string PublisherId { 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(); + GetPublisherRequest request; + + try + { + request = new GetPublisherRequest + { + PublisherId = PublisherId, + OpcRequestId = OpcRequestId + }; + + response = client.GetPublisher(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Publisher); + 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 GetPublisherResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublishersList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublishersList.cs new file mode 100644 index 000000000..6eaeda2e2 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherPublishersList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherPublishersList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.PublisherCollection), typeof(Oci.MarketplacepublisherService.Responses.ListPublishersResponse) })] + public class GetOCIMarketplacepublisherPublishersList : OCIMarketplacePublisherCmdlet + { + [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 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire name given.")] + public string Name { 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(); + ListPublishersRequest request; + + try + { + request = new ListPublishersRequest + { + CompartmentId = CompartmentId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + Name = Name + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.PublisherCollection, 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(ListPublishersRequest request) => Enumerable.Repeat(client.ListPublishers(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListPublishersResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListPublishersResponse response; + private delegate IEnumerable RequestDelegate(ListPublishersRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTerm.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTerm.cs new file mode 100644 index 000000000..a23230d07 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTerm.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherTerm", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Term), typeof(Oci.MarketplacepublisherService.Responses.GetTermResponse) })] + public class GetOCIMarketplacepublisherTerm : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term OCID", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term OCID", ParameterSetName = Default)] + public string TermId { 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.MarketplacepublisherService.Models.Term.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(); + GetTermRequest request; + + try + { + request = new GetTermRequest + { + TermId = TermId, + 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(GetTermRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForTerm(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetTerm(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Term); + } + + private GetTermResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersion.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersion.cs new file mode 100644 index 000000000..47c2478b1 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersion.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherTermVersion", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.TermVersion), typeof(Oci.MarketplacepublisherService.Responses.GetTermVersionResponse) })] + public class GetOCIMarketplacepublisherTermVersion : OCIMarketplacePublisherCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term version OCID", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term version OCID", ParameterSetName = Default)] + public string TermVersionId { 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.MarketplacepublisherService.Models.TermVersion.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(); + GetTermVersionRequest request; + + try + { + request = new GetTermVersionRequest + { + TermVersionId = TermVersionId, + 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(GetTermVersionRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForTermVersion(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetTermVersion(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.TermVersion); + } + + private GetTermVersionResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersionsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersionsList.cs new file mode 100644 index 000000000..02948c301 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermVersionsList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherTermVersionsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.TermVersionCollection), typeof(Oci.MarketplacepublisherService.Responses.ListTermVersionsResponse) })] + public class GetOCIMarketplacepublisherTermVersionsList : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term OCID")] + public string TermId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique identifier for the compartment.")] + public string CompartmentId { 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListTermVersionsRequest request; + + try + { + request = new ListTermVersionsRequest + { + TermId = TermId, + CompartmentId = CompartmentId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.TermVersionCollection, 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(ListTermVersionsRequest request) => Enumerable.Repeat(client.ListTermVersions(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListTermVersionsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListTermVersionsResponse response; + private delegate IEnumerable RequestDelegate(ListTermVersionsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermsList.cs new file mode 100644 index 000000000..776eb66f0 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherTermsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherTermsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.TermCollection), typeof(Oci.MarketplacepublisherService.Responses.ListTermsResponse) })] + public class GetOCIMarketplacepublisherTermsList : OCIMarketplacePublisherCmdlet + { + [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 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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire name given.")] + public string Name { 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(); + ListTermsRequest request; + + try + { + request = new ListTermsRequest + { + CompartmentId = CompartmentId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + Name = Name + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.TermCollection, 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(ListTermsRequest request) => Enumerable.Repeat(client.ListTerms(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListTermsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListTermsResponse response; + private delegate IEnumerable RequestDelegate(ListTermsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequest.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequest.cs new file mode 100644 index 000000000..1a866d155 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.GetWorkRequestResponse) })] + public class GetOCIMarketplacepublisherWorkRequest : OCIMarketplacePublisherCmdlet + { + + [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.MarketplacepublisherService.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/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestErrorsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestErrorsList.cs new file mode 100644 index 000000000..67f7f215f --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.WorkRequestErrorCollection), typeof(Oci.MarketplacepublisherService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIMarketplacepublisherWorkRequestErrorsList : OCIMarketplacePublisherCmdlet + { + [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 timestamp 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/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestLogsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestLogsList.cs new file mode 100644 index 000000000..85f2115b7 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.WorkRequestLogEntryCollection), typeof(Oci.MarketplacepublisherService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIMarketplacepublisherWorkRequestLogsList : OCIMarketplacePublisherCmdlet + { + [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 timestamp 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/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestsList.cs b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestsList.cs new file mode 100644 index 000000000..14102a255 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Get-OCIMarketplacepublisherWorkRequestsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Get", "OCIMarketplacepublisherWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.WorkRequestSummaryCollection), typeof(Oci.MarketplacepublisherService.Responses.ListWorkRequestsResponse) })] + public class GetOCIMarketplacepublisherWorkRequestsList : OCIMarketplacePublisherCmdlet + { + [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 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/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListing.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListing.cs new file mode 100644 index 000000000..49abac020 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListing.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherCascadingDeleteListing")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.CascadingDeleteListingResponse) })] + public class InvokeOCIMarketplacepublisherCascadingDeleteListing : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing OCID")] + public string ListingId { 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(); + CascadingDeleteListingRequest request; + + try + { + request = new CascadingDeleteListingRequest + { + ListingId = ListingId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CascadingDeleteListing(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 CascadingDeleteListingResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListingRevision.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListingRevision.cs new file mode 100644 index 000000000..b218bdd1d --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCascadingDeleteListingRevision.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherCascadingDeleteListingRevision")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.CascadingDeleteListingRevisionResponse) })] + public class InvokeOCIMarketplacepublisherCascadingDeleteListingRevision : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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(); + CascadingDeleteListingRevisionRequest request; + + try + { + request = new CascadingDeleteListingRevisionRequest + { + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CascadingDeleteListingRevision(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 CascadingDeleteListingRevisionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCloneListingRevision.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCloneListingRevision.cs new file mode 100644 index 000000000..452a5d9c2 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherCloneListingRevision.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherCloneListingRevision")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.CloneListingRevisionResponse) })] + public class InvokeOCIMarketplacepublisherCloneListingRevision : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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(); + CloneListingRevisionRequest request; + + try + { + request = new CloneListingRevisionRequest + { + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CloneListingRevision(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 CloneListingRevisionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherMarkListingRevisionPackageAsDefault.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherMarkListingRevisionPackageAsDefault.cs new file mode 100644 index 000000000..a1462e4e5 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherMarkListingRevisionPackageAsDefault.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherMarkListingRevisionPackageAsDefault")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.MarkListingRevisionPackageAsDefaultResponse) })] + public class InvokeOCIMarketplacepublisherMarkListingRevisionPackageAsDefault : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision package identifier.")] + public string ListingRevisionPackageId { 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(); + MarkListingRevisionPackageAsDefaultRequest request; + + try + { + request = new MarkListingRevisionPackageAsDefaultRequest + { + ListingRevisionPackageId = ListingRevisionPackageId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.MarkListingRevisionPackageAsDefault(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 MarkListingRevisionPackageAsDefaultResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevision.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevision.cs new file mode 100644 index 000000000..a9ab96341 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevision.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherPublishListingRevision")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.PublishListingRevisionResponse) })] + public class InvokeOCIMarketplacepublisherPublishListingRevision : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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(); + PublishListingRevisionRequest request; + + try + { + request = new PublishListingRevisionRequest + { + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.PublishListingRevision(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 PublishListingRevisionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionAsPrivate.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionAsPrivate.cs new file mode 100644 index 000000000..4e6536724 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionAsPrivate.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherPublishListingRevisionAsPrivate")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.PublishListingRevisionAsPrivateResponse) })] + public class InvokeOCIMarketplacepublisherPublishListingRevisionAsPrivate : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The listing revision publish as private information to be updated.")] + public PublishListingRevisionAsPrivateDetails PublishListingRevisionAsPrivateDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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(); + PublishListingRevisionAsPrivateRequest request; + + try + { + request = new PublishListingRevisionAsPrivateRequest + { + PublishListingRevisionAsPrivateDetails = PublishListingRevisionAsPrivateDetails, + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.PublishListingRevisionAsPrivate(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 PublishListingRevisionAsPrivateResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionPackage.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionPackage.cs new file mode 100644 index 000000000..d67caed97 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherPublishListingRevisionPackage.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherPublishListingRevisionPackage")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.PublishListingRevisionPackageResponse) })] + public class InvokeOCIMarketplacepublisherPublishListingRevisionPackage : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision package identifier.")] + public string ListingRevisionPackageId { 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(); + PublishListingRevisionPackageRequest request; + + try + { + request = new PublishListingRevisionPackageRequest + { + ListingRevisionPackageId = ListingRevisionPackageId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.PublishListingRevisionPackage(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 PublishListingRevisionPackageResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherSubmitListingRevisionForReview.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherSubmitListingRevisionForReview.cs new file mode 100644 index 000000000..33546c0c8 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherSubmitListingRevisionForReview.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherSubmitListingRevisionForReview")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevision), typeof(Oci.MarketplacepublisherService.Responses.SubmitListingRevisionForReviewResponse) })] + public class InvokeOCIMarketplacepublisherSubmitListingRevisionForReview : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The listing revision review information to be updated.")] + public SubmitListingRevisionForReviewDetails SubmitListingRevisionForReviewDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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(); + SubmitListingRevisionForReviewRequest request; + + try + { + request = new SubmitListingRevisionForReviewRequest + { + SubmitListingRevisionForReviewDetails = SubmitListingRevisionForReviewDetails, + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.SubmitListingRevisionForReview(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevision); + 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 SubmitListingRevisionForReviewResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherUnPublishListingRevisionPackage.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherUnPublishListingRevisionPackage.cs new file mode 100644 index 000000000..4b2d9c2c2 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherUnPublishListingRevisionPackage.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherUnPublishListingRevisionPackage")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.UnPublishListingRevisionPackageResponse) })] + public class InvokeOCIMarketplacepublisherUnPublishListingRevisionPackage : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision package identifier.")] + public string ListingRevisionPackageId { 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(); + UnPublishListingRevisionPackageRequest request; + + try + { + request = new UnPublishListingRevisionPackageRequest + { + ListingRevisionPackageId = ListingRevisionPackageId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.UnPublishListingRevisionPackage(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 UnPublishListingRevisionPackageResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherWithdrawListingRevision.cs b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherWithdrawListingRevision.cs new file mode 100644 index 000000000..2118163e0 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Invoke-OCIMarketplacepublisherWithdrawListingRevision.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Invoke", "OCIMarketplacepublisherWithdrawListingRevision")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.WithdrawListingRevisionResponse) })] + public class InvokeOCIMarketplacepublisherWithdrawListingRevision : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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(); + WithdrawListingRevisionRequest request; + + try + { + request = new WithdrawListingRevisionRequest + { + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.WithdrawListingRevision(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 WithdrawListingRevisionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherArtifactCompartment.cs b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherArtifactCompartment.cs new file mode 100644 index 000000000..245a3c4ee --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherArtifactCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Move", "OCIMarketplacepublisherArtifactCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.ChangeArtifactCompartmentResponse) })] + public class MoveOCIMarketplacepublisherArtifactCompartment : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"artifact OCID")] + public string ArtifactId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to change the compartment of a given artifact.")] + public ChangeArtifactCompartmentDetails ChangeArtifactCompartmentDetails { 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(); + ChangeArtifactCompartmentRequest request; + + try + { + request = new ChangeArtifactCompartmentRequest + { + ArtifactId = ArtifactId, + ChangeArtifactCompartmentDetails = ChangeArtifactCompartmentDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.ChangeArtifactCompartment(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 ChangeArtifactCompartmentResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingCompartment.cs b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingCompartment.cs new file mode 100644 index 000000000..2ad1e5a4f --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Move", "OCIMarketplacepublisherListingCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.ChangeListingCompartmentResponse) })] + public class MoveOCIMarketplacepublisherListingCompartment : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing OCID")] + public string ListingId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to change the compartment of a given listing.")] + public ChangeListingCompartmentDetails ChangeListingCompartmentDetails { 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(); + ChangeListingCompartmentRequest request; + + try + { + request = new ChangeListingCompartmentRequest + { + ListingId = ListingId, + ChangeListingCompartmentDetails = ChangeListingCompartmentDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.ChangeListingCompartment(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 ChangeListingCompartmentResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingRevisionToNewStatus.cs b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingRevisionToNewStatus.cs new file mode 100644 index 000000000..491526c82 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherListingRevisionToNewStatus.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Move", "OCIMarketplacepublisherListingRevisionToNewStatus")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevision), typeof(Oci.MarketplacepublisherService.Responses.ChangeListingRevisionToNewStatusResponse) })] + public class MoveOCIMarketplacepublisherListingRevisionToNewStatus : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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(); + ChangeListingRevisionToNewStatusRequest request; + + try + { + request = new ChangeListingRevisionToNewStatusRequest + { + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeListingRevisionToNewStatus(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevision); + 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 ChangeListingRevisionToNewStatusResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherTermCompartment.cs b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherTermCompartment.cs new file mode 100644 index 000000000..0ef9905c5 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Move-OCIMarketplacepublisherTermCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Move", "OCIMarketplacepublisherTermCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.ChangeTermCompartmentResponse) })] + public class MoveOCIMarketplacepublisherTermCompartment : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term OCID")] + public string TermId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request to change the compartment of a given term.")] + public ChangeTermCompartmentDetails ChangeTermCompartmentDetails { 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(); + ChangeTermCompartmentRequest request; + + try + { + request = new ChangeTermCompartmentRequest + { + TermId = TermId, + ChangeTermCompartmentDetails = ChangeTermCompartmentDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.ChangeTermCompartment(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 ChangeTermCompartmentResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherArtifact.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherArtifact.cs new file mode 100644 index 000000000..ecfa63cc4 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherArtifact.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherArtifact")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.CreateArtifactResponse) })] + public class NewOCIMarketplacepublisherArtifact : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for creating a new artifact. This parameter also accepts subtypes , of type .")] + public CreateArtifactDetails CreateArtifactDetails { 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(); + CreateArtifactRequest request; + + try + { + request = new CreateArtifactRequest + { + CreateArtifactDetails = CreateArtifactDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateArtifact(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 CreateArtifactResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListing.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListing.cs new file mode 100644 index 000000000..4cff2a7fc --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListing.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherListing")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Listing), typeof(Oci.MarketplacepublisherService.Responses.CreateListingResponse) })] + public class NewOCIMarketplacepublisherListing : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Listing.")] + public CreateListingDetails CreateListingDetails { 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(); + CreateListingRequest request; + + try + { + request = new CreateListingRequest + { + CreateListingDetails = CreateListingDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateListing(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Listing); + 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 CreateListingResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevision.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevision.cs new file mode 100644 index 000000000..39eb1d831 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevision.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherListingRevision")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevision), typeof(Oci.MarketplacepublisherService.Responses.CreateListingRevisionResponse) })] + public class NewOCIMarketplacepublisherListingRevision : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Listing Revision.")] + public CreateListingRevisionDetails CreateListingRevisionDetails { 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(); + CreateListingRevisionRequest request; + + try + { + request = new CreateListingRevisionRequest + { + CreateListingRevisionDetails = CreateListingRevisionDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateListingRevision(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevision); + 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 CreateListingRevisionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionAttachment.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionAttachment.cs new file mode 100644 index 000000000..47d914c88 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionAttachment.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherListingRevisionAttachment")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionAttachment), typeof(Oci.MarketplacepublisherService.Responses.CreateListingRevisionAttachmentResponse) })] + public class NewOCIMarketplacepublisherListingRevisionAttachment : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Listing Revision Attachment. This parameter also accepts subtypes , , of type .")] + public CreateListingRevisionAttachmentDetails CreateListingRevisionAttachmentDetails { 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(); + CreateListingRevisionAttachmentRequest request; + + try + { + request = new CreateListingRevisionAttachmentRequest + { + CreateListingRevisionAttachmentDetails = CreateListingRevisionAttachmentDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateListingRevisionAttachment(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevisionAttachment); + 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 CreateListingRevisionAttachmentResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionNote.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionNote.cs new file mode 100644 index 000000000..6e86f23e2 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionNote.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherListingRevisionNote")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionNote), typeof(Oci.MarketplacepublisherService.Responses.CreateListingRevisionNoteResponse) })] + public class NewOCIMarketplacepublisherListingRevisionNote : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Listing Revision Note.")] + public CreateListingRevisionNoteDetails CreateListingRevisionNoteDetails { 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(); + CreateListingRevisionNoteRequest request; + + try + { + request = new CreateListingRevisionNoteRequest + { + CreateListingRevisionNoteDetails = CreateListingRevisionNoteDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateListingRevisionNote(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevisionNote); + 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 CreateListingRevisionNoteResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionPackage.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionPackage.cs new file mode 100644 index 000000000..8ba3060cc --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherListingRevisionPackage.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherListingRevisionPackage")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionPackage), typeof(Oci.MarketplacepublisherService.Responses.CreateListingRevisionPackageResponse) })] + public class NewOCIMarketplacepublisherListingRevisionPackage : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Listing Revision Package.")] + public CreateListingRevisionPackageDetails CreateListingRevisionPackageDetails { 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(); + CreateListingRevisionPackageRequest request; + + try + { + request = new CreateListingRevisionPackageRequest + { + CreateListingRevisionPackageDetails = CreateListingRevisionPackageDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateListingRevisionPackage(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevisionPackage); + 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 CreateListingRevisionPackageResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTerm.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTerm.cs new file mode 100644 index 000000000..588fe2394 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTerm.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherTerm")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Term), typeof(Oci.MarketplacepublisherService.Responses.CreateTermResponse) })] + public class NewOCIMarketplacepublisherTerm : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Term.")] + public CreateTermDetails CreateTermDetails { 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(); + CreateTermRequest request; + + try + { + request = new CreateTermRequest + { + CreateTermDetails = CreateTermDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateTerm(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Term); + 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 CreateTermResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTermVersion.cs b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTermVersion.cs new file mode 100644 index 000000000..b16c18e10 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/New-OCIMarketplacepublisherTermVersion.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("New", "OCIMarketplacepublisherTermVersion")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.TermVersion), typeof(Oci.MarketplacepublisherService.Responses.CreateTermVersionResponse) })] + public class NewOCIMarketplacepublisherTermVersion : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The term version file to upload.", ParameterSetName = FromStreamSet)] + public System.IO.Stream CreateTermVersionContent { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. The term version file to upload.", ParameterSetName = FromFileSet)] + public String CreateTermVersionContentFromFile { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique OCID identifier for the term.")] + public string TermId { 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 = @"The name of the resource.")] + public string DisplayName { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateTermVersionRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + CreateTermVersionContent = System.IO.File.OpenRead(GetAbsoluteFilePath(CreateTermVersionContentFromFile)); + } + + + try + { + request = new CreateTermVersionRequest + { + CreateTermVersionContent = CreateTermVersionContent, + TermId = TermId, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + + response = client.CreateTermVersion(request).GetAwaiter().GetResult(); + WriteOutput(response, response.TermVersion); + 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 CreateTermVersionResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Marketplacepublisher/Cmdlets/OCIMarketplacePublisherCmdlet.cs b/Marketplacepublisher/Cmdlets/OCIMarketplacePublisherCmdlet.cs new file mode 100644 index 000000000..a1ea49dcd --- /dev/null +++ b/Marketplacepublisher/Cmdlets/OCIMarketplacePublisherCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + public abstract class OCIMarketplacePublisherCmdlet : 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 MarketplacePublisherClient(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 MarketplacePublisherClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherArtifact.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherArtifact.cs new file mode 100644 index 000000000..5e726526b --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherArtifact.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherArtifact", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.DeleteArtifactResponse) })] + public class RemoveOCIMarketplacepublisherArtifact : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"artifact OCID")] + public string ArtifactId { 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("OCIMarketplacepublisherArtifact", "Remove")) + { + return; + } + + DeleteArtifactRequest request; + + try + { + request = new DeleteArtifactRequest + { + ArtifactId = ArtifactId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteArtifact(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 DeleteArtifactResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListing.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListing.cs new file mode 100644 index 000000000..b6cace5f9 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListing.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherListing", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.DeleteListingResponse) })] + public class RemoveOCIMarketplacepublisherListing : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing OCID")] + public string ListingId { 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("OCIMarketplacepublisherListing", "Remove")) + { + return; + } + + DeleteListingRequest request; + + try + { + request = new DeleteListingRequest + { + ListingId = ListingId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteListing(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 DeleteListingResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevision.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevision.cs new file mode 100644 index 000000000..62dd3da26 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevision.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherListingRevision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.DeleteListingRevisionResponse) })] + public class RemoveOCIMarketplacepublisherListingRevision : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { 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("OCIMarketplacepublisherListingRevision", "Remove")) + { + return; + } + + DeleteListingRevisionRequest request; + + try + { + request = new DeleteListingRevisionRequest + { + ListingRevisionId = ListingRevisionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteListingRevision(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 DeleteListingRevisionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionAttachment.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionAttachment.cs new file mode 100644 index 000000000..956d2e92a --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionAttachment.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherListingRevisionAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.DeleteListingRevisionAttachmentResponse) })] + public class RemoveOCIMarketplacepublisherListingRevisionAttachment : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"attachment OCID")] + public string ListingRevisionAttachmentId { 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("OCIMarketplacepublisherListingRevisionAttachment", "Remove")) + { + return; + } + + DeleteListingRevisionAttachmentRequest request; + + try + { + request = new DeleteListingRevisionAttachmentRequest + { + ListingRevisionAttachmentId = ListingRevisionAttachmentId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteListingRevisionAttachment(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 DeleteListingRevisionAttachmentResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionNote.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionNote.cs new file mode 100644 index 000000000..33a41caa2 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionNote.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherListingRevisionNote", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.DeleteListingRevisionNoteResponse) })] + public class RemoveOCIMarketplacepublisherListingRevisionNote : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision note identifier.")] + public string ListingRevisionNoteId { 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("OCIMarketplacepublisherListingRevisionNote", "Remove")) + { + return; + } + + DeleteListingRevisionNoteRequest request; + + try + { + request = new DeleteListingRevisionNoteRequest + { + ListingRevisionNoteId = ListingRevisionNoteId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteListingRevisionNote(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 DeleteListingRevisionNoteResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionPackage.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionPackage.cs new file mode 100644 index 000000000..a8f17cfcc --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherListingRevisionPackage.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherListingRevisionPackage", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.DeleteListingRevisionPackageResponse) })] + public class RemoveOCIMarketplacepublisherListingRevisionPackage : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision package identifier.")] + public string ListingRevisionPackageId { 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("OCIMarketplacepublisherListingRevisionPackage", "Remove")) + { + return; + } + + DeleteListingRevisionPackageRequest request; + + try + { + request = new DeleteListingRevisionPackageRequest + { + ListingRevisionPackageId = ListingRevisionPackageId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteListingRevisionPackage(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 DeleteListingRevisionPackageResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTerm.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTerm.cs new file mode 100644 index 000000000..b751b80d1 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTerm.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherTerm", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.DeleteTermResponse) })] + public class RemoveOCIMarketplacepublisherTerm : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term OCID")] + public string TermId { 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("OCIMarketplacepublisherTerm", "Remove")) + { + return; + } + + DeleteTermRequest request; + + try + { + request = new DeleteTermRequest + { + TermId = TermId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteTerm(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 DeleteTermResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTermVersion.cs b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTermVersion.cs new file mode 100644 index 000000000..88b506695 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Remove-OCIMarketplacepublisherTermVersion.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Remove", "OCIMarketplacepublisherTermVersion", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.DeleteTermVersionResponse) })] + public class RemoveOCIMarketplacepublisherTermVersion : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term version OCID")] + public string TermVersionId { 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("OCIMarketplacepublisherTermVersion", "Remove")) + { + return; + } + + DeleteTermVersionRequest request; + + try + { + request = new DeleteTermVersionRequest + { + TermVersionId = TermVersionId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteTermVersion(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 DeleteTermVersionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Stop-OCIMarketplacepublisherWorkRequest.cs b/Marketplacepublisher/Cmdlets/Stop-OCIMarketplacepublisherWorkRequest.cs new file mode 100644 index 000000000..c95bce9d0 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Stop-OCIMarketplacepublisherWorkRequest.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Stop", "OCIMarketplacepublisherWorkRequest", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.MarketplacepublisherService.Responses.CancelWorkRequestResponse) })] + public class StopOCIMarketplacepublisherWorkRequest : OCIMarketplacePublisherCmdlet + { + [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("OCIMarketplacepublisherWorkRequest", "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/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherArtifact.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherArtifact.cs new file mode 100644 index 000000000..2776aa564 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherArtifact.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherArtifact")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.MarketplacepublisherService.Responses.UpdateArtifactResponse) })] + public class UpdateOCIMarketplacepublisherArtifact : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"artifact OCID")] + public string ArtifactId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request object for updating an artifact. This parameter also accepts subtypes , of type .")] + public UpdateArtifactDetails UpdateArtifactDetails { 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(); + UpdateArtifactRequest request; + + try + { + request = new UpdateArtifactRequest + { + ArtifactId = ArtifactId, + UpdateArtifactDetails = UpdateArtifactDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateArtifact(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 UpdateArtifactResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListing.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListing.cs new file mode 100644 index 000000000..7a0475c87 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListing.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherListing")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Listing), typeof(Oci.MarketplacepublisherService.Responses.UpdateListingResponse) })] + public class UpdateOCIMarketplacepublisherListing : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing OCID")] + public string ListingId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateListingDetails UpdateListingDetails { 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(); + UpdateListingRequest request; + + try + { + request = new UpdateListingRequest + { + ListingId = ListingId, + UpdateListingDetails = UpdateListingDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateListing(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Listing); + 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 UpdateListingResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevision.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevision.cs new file mode 100644 index 000000000..7cef892af --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevision.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherListingRevision")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevision), typeof(Oci.MarketplacepublisherService.Responses.UpdateListingRevisionResponse) })] + public class UpdateOCIMarketplacepublisherListingRevision : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The listing revision information to be updated.")] + public UpdateListingRevisionDetails UpdateListingRevisionDetails { 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(); + UpdateListingRevisionRequest request; + + try + { + request = new UpdateListingRevisionRequest + { + ListingRevisionId = ListingRevisionId, + UpdateListingRevisionDetails = UpdateListingRevisionDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateListingRevision(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevision); + 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 UpdateListingRevisionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachment.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachment.cs new file mode 100644 index 000000000..fe8517b4e --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachment.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherListingRevisionAttachment")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionAttachment), typeof(Oci.MarketplacepublisherService.Responses.UpdateListingRevisionAttachmentResponse) })] + public class UpdateOCIMarketplacepublisherListingRevisionAttachment : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"attachment OCID")] + public string ListingRevisionAttachmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The attachment to be updated. This parameter also accepts subtypes , , of type .")] + public UpdateListingRevisionAttachmentDetails UpdateListingRevisionAttachmentDetails { 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(); + UpdateListingRevisionAttachmentRequest request; + + try + { + request = new UpdateListingRevisionAttachmentRequest + { + ListingRevisionAttachmentId = ListingRevisionAttachmentId, + UpdateListingRevisionAttachmentDetails = UpdateListingRevisionAttachmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateListingRevisionAttachment(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevisionAttachment); + 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 UpdateListingRevisionAttachmentResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachmentContent.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachmentContent.cs new file mode 100644 index 000000000..cc69ee068 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionAttachmentContent.cs @@ -0,0 +1,82 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherListingRevisionAttachmentContent")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionAttachment), typeof(Oci.MarketplacepublisherService.Responses.UpdateListingRevisionAttachmentContentResponse) })] + public class UpdateOCIMarketplacepublisherListingRevisionAttachmentContent : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"attachment OCID")] + public string ListingRevisionAttachmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The attachment to upload.", ParameterSetName = FromStreamSet)] + public System.IO.Stream UpdateListingRevisionAttachmentContent { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. The attachment to upload.", ParameterSetName = FromFileSet)] + public String UpdateListingRevisionAttachmentContentFromFile { 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(); + UpdateListingRevisionAttachmentContentRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + UpdateListingRevisionAttachmentContent = System.IO.File.OpenRead(GetAbsoluteFilePath(UpdateListingRevisionAttachmentContentFromFile)); + } + + + try + { + request = new UpdateListingRevisionAttachmentContentRequest + { + ListingRevisionAttachmentId = ListingRevisionAttachmentId, + UpdateListingRevisionAttachmentContent = UpdateListingRevisionAttachmentContent, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateListingRevisionAttachmentContent(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevisionAttachment); + 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 UpdateListingRevisionAttachmentContentResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionIconContent.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionIconContent.cs new file mode 100644 index 000000000..1892a0339 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionIconContent.cs @@ -0,0 +1,82 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherListingRevisionIconContent")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevision), typeof(Oci.MarketplacepublisherService.Responses.UpdateListingRevisionIconContentResponse) })] + public class UpdateOCIMarketplacepublisherListingRevisionIconContent : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"listing revision")] + public string ListingRevisionId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The listing revision icon to be updated.", ParameterSetName = FromStreamSet)] + public System.IO.Stream UpdateListingRevisionIconContent { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. The listing revision icon to be updated.", ParameterSetName = FromFileSet)] + public String UpdateListingRevisionIconContentFromFile { 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(); + UpdateListingRevisionIconContentRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + UpdateListingRevisionIconContent = System.IO.File.OpenRead(GetAbsoluteFilePath(UpdateListingRevisionIconContentFromFile)); + } + + + try + { + request = new UpdateListingRevisionIconContentRequest + { + ListingRevisionId = ListingRevisionId, + UpdateListingRevisionIconContent = UpdateListingRevisionIconContent, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateListingRevisionIconContent(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevision); + 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 UpdateListingRevisionIconContentResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionPackage.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionPackage.cs new file mode 100644 index 000000000..6670436e0 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherListingRevisionPackage.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherListingRevisionPackage")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.ListingRevisionPackage), typeof(Oci.MarketplacepublisherService.Responses.UpdateListingRevisionPackageResponse) })] + public class UpdateOCIMarketplacepublisherListingRevisionPackage : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique listing revision package identifier.")] + public string ListingRevisionPackageId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateListingRevisionPackageDetails UpdateListingRevisionPackageDetails { 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(); + UpdateListingRevisionPackageRequest request; + + try + { + request = new UpdateListingRevisionPackageRequest + { + ListingRevisionPackageId = ListingRevisionPackageId, + UpdateListingRevisionPackageDetails = UpdateListingRevisionPackageDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateListingRevisionPackage(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ListingRevisionPackage); + 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 UpdateListingRevisionPackageResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTerm.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTerm.cs new file mode 100644 index 000000000..4fffcf1c1 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTerm.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherTerm")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.Term), typeof(Oci.MarketplacepublisherService.Responses.UpdateTermResponse) })] + public class UpdateOCIMarketplacepublisherTerm : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term OCID")] + public string TermId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateTermDetails UpdateTermDetails { 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(); + UpdateTermRequest request; + + try + { + request = new UpdateTermRequest + { + TermId = TermId, + UpdateTermDetails = UpdateTermDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateTerm(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Term); + 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 UpdateTermResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersion.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersion.cs new file mode 100644 index 000000000..78be827bf --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersion.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherTermVersion")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.TermVersion), typeof(Oci.MarketplacepublisherService.Responses.UpdateTermVersionResponse) })] + public class UpdateOCIMarketplacepublisherTermVersion : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term version OCID")] + public string TermVersionId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Term Version details to be updated.")] + public UpdateTermVersionDetails UpdateTermVersionDetails { 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(); + UpdateTermVersionRequest request; + + try + { + request = new UpdateTermVersionRequest + { + TermVersionId = TermVersionId, + UpdateTermVersionDetails = UpdateTermVersionDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateTermVersion(request).GetAwaiter().GetResult(); + WriteOutput(response, response.TermVersion); + 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 UpdateTermVersionResponse response; + } +} diff --git a/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersionContent.cs b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersionContent.cs new file mode 100644 index 000000000..47ef53863 --- /dev/null +++ b/Marketplacepublisher/Cmdlets/Update-OCIMarketplacepublisherTermVersionContent.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220901 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.MarketplacepublisherService.Requests; +using Oci.MarketplacepublisherService.Responses; +using Oci.MarketplacepublisherService.Models; +using Oci.Common.Model; + +namespace Oci.MarketplacepublisherService.Cmdlets +{ + [Cmdlet("Update", "OCIMarketplacepublisherTermVersionContent")] + [OutputType(new System.Type[] { typeof(Oci.MarketplacepublisherService.Models.TermVersion), typeof(Oci.MarketplacepublisherService.Responses.UpdateTermVersionContentResponse) })] + public class UpdateOCIMarketplacepublisherTermVersionContent : OCIMarketplacePublisherCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"term version OCID")] + public string TermVersionId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The term attachment to upload.", ParameterSetName = FromStreamSet)] + public System.IO.Stream UpdateTermVersionContent { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. The term attachment to upload.", ParameterSetName = FromFileSet)] + public String UpdateTermVersionContentFromFile { 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 = @"The name of the resource.")] + public string DisplayName { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateTermVersionContentRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + UpdateTermVersionContent = System.IO.File.OpenRead(GetAbsoluteFilePath(UpdateTermVersionContentFromFile)); + } + + + try + { + request = new UpdateTermVersionContentRequest + { + TermVersionId = TermVersionId, + UpdateTermVersionContent = UpdateTermVersionContent, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + + response = client.UpdateTermVersionContent(request).GetAwaiter().GetResult(); + WriteOutput(response, response.TermVersion); + 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 UpdateTermVersionContentResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.csproj b/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.csproj new file mode 100644 index 000000000..d53ea6ef9 --- /dev/null +++ b/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Marketplacepublisher + OCI.PSModules.Marketplacepublisher + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Marketplacepublisher + Marketplacepublisher Service + + + + + + + + + + + diff --git a/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 b/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 new file mode 100644 index 000000000..28ffa0f59 --- /dev/null +++ b/Marketplacepublisher/OCI.PSModules.Marketplacepublisher.psd1 @@ -0,0 +1,201 @@ +# +# Module manifest for module 'OCI.PSModules.Marketplacepublisher' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Marketplacepublisher.dll' + +# Version number of this module. +ModuleVersion = '68.0.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '16f2e498-6e6b-4e22-8c36-b6c2677410c6' + +# 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 Marketplacepublisher 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 = '68.0.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplacepublisher.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 = 'Confirm-OCIMarketplacepublisherAndPublishArtifact', + 'Enable-OCIMarketplacepublisherTermVersion', + 'Get-OCIMarketplacepublisherArtifact', + 'Get-OCIMarketplacepublisherArtifactsList', + 'Get-OCIMarketplacepublisherCategoriesList', + 'Get-OCIMarketplacepublisherCategory', + 'Get-OCIMarketplacepublisherListing', + 'Get-OCIMarketplacepublisherListingRevision', + 'Get-OCIMarketplacepublisherListingRevisionAttachment', + 'Get-OCIMarketplacepublisherListingRevisionAttachmentsList', + 'Get-OCIMarketplacepublisherListingRevisionNote', + 'Get-OCIMarketplacepublisherListingRevisionNotesList', + 'Get-OCIMarketplacepublisherListingRevisionPackage', + 'Get-OCIMarketplacepublisherListingRevisionPackagesList', + 'Get-OCIMarketplacepublisherListingRevisionsList', + 'Get-OCIMarketplacepublisherListingsList', + 'Get-OCIMarketplacepublisherMarket', + 'Get-OCIMarketplacepublisherMarketsList', + 'Get-OCIMarketplacepublisherProduct', + 'Get-OCIMarketplacepublisherProductsList', + 'Get-OCIMarketplacepublisherPublisher', + 'Get-OCIMarketplacepublisherPublishersList', + 'Get-OCIMarketplacepublisherTerm', + 'Get-OCIMarketplacepublisherTermsList', + 'Get-OCIMarketplacepublisherTermVersion', + 'Get-OCIMarketplacepublisherTermVersionsList', + 'Get-OCIMarketplacepublisherWorkRequest', + 'Get-OCIMarketplacepublisherWorkRequestErrorsList', + 'Get-OCIMarketplacepublisherWorkRequestLogsList', + 'Get-OCIMarketplacepublisherWorkRequestsList', + 'Invoke-OCIMarketplacepublisherCascadingDeleteListing', + 'Invoke-OCIMarketplacepublisherCascadingDeleteListingRevision', + 'Invoke-OCIMarketplacepublisherCloneListingRevision', + 'Invoke-OCIMarketplacepublisherMarkListingRevisionPackageAsDefault', + 'Invoke-OCIMarketplacepublisherPublishListingRevision', + 'Invoke-OCIMarketplacepublisherPublishListingRevisionAsPrivate', + 'Invoke-OCIMarketplacepublisherPublishListingRevisionPackage', + 'Invoke-OCIMarketplacepublisherSubmitListingRevisionForReview', + 'Invoke-OCIMarketplacepublisherUnPublishListingRevisionPackage', + 'Invoke-OCIMarketplacepublisherWithdrawListingRevision', + 'Move-OCIMarketplacepublisherArtifactCompartment', + 'Move-OCIMarketplacepublisherListingCompartment', + 'Move-OCIMarketplacepublisherListingRevisionToNewStatus', + 'Move-OCIMarketplacepublisherTermCompartment', + 'New-OCIMarketplacepublisherArtifact', + 'New-OCIMarketplacepublisherListing', + 'New-OCIMarketplacepublisherListingRevision', + 'New-OCIMarketplacepublisherListingRevisionAttachment', + 'New-OCIMarketplacepublisherListingRevisionNote', + 'New-OCIMarketplacepublisherListingRevisionPackage', + 'New-OCIMarketplacepublisherTerm', + 'New-OCIMarketplacepublisherTermVersion', + 'Remove-OCIMarketplacepublisherArtifact', + 'Remove-OCIMarketplacepublisherListing', + 'Remove-OCIMarketplacepublisherListingRevision', + 'Remove-OCIMarketplacepublisherListingRevisionAttachment', + 'Remove-OCIMarketplacepublisherListingRevisionNote', + 'Remove-OCIMarketplacepublisherListingRevisionPackage', + 'Remove-OCIMarketplacepublisherTerm', + 'Remove-OCIMarketplacepublisherTermVersion', + 'Stop-OCIMarketplacepublisherWorkRequest', + 'Update-OCIMarketplacepublisherArtifact', + 'Update-OCIMarketplacepublisherListing', + 'Update-OCIMarketplacepublisherListingRevision', + 'Update-OCIMarketplacepublisherListingRevisionAttachment', + 'Update-OCIMarketplacepublisherListingRevisionAttachmentContent', + 'Update-OCIMarketplacepublisherListingRevisionIconContent', + 'Update-OCIMarketplacepublisherListingRevisionPackage', + 'Update-OCIMarketplacepublisherTerm', + 'Update-OCIMarketplacepublisherTermVersion', + 'Update-OCIMarketplacepublisherTermVersionContent' + +# 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','Marketplacepublisher' + + # 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/Mediaservices/OCI.PSModules.Mediaservices.psd1 b/Mediaservices/OCI.PSModules.Mediaservices.psd1 index fa31bc83b..909e09259 100644 --- a/Mediaservices/OCI.PSModules.Mediaservices.psd1 +++ b/Mediaservices/OCI.PSModules.Mediaservices.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Mediaservices.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mediaservices.dll' diff --git a/Monitoring/OCI.PSModules.Monitoring.psd1 b/Monitoring/OCI.PSModules.Monitoring.psd1 index 7974596a2..5bfc1d4fb 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Monitoring.dll' diff --git a/Mysql/OCI.PSModules.Mysql.psd1 b/Mysql/OCI.PSModules.Mysql.psd1 index 510b3445f..290e059f5 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mysql.dll' diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewall.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewall.cs index 937eebd93..acfac1df7 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewall.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewall.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressList.cs new file mode 100644 index 000000000..ec3cea4a1 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressList.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallAddressList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.AddressList), typeof(Oci.NetworkfirewallService.Responses.GetAddressListResponse) })] + public class GetOCINetworkfirewallAddressList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for address lists.")] + public string AddressListName { 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(); + GetAddressListRequest request; + + try + { + request = new GetAddressListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + AddressListName = AddressListName, + OpcRequestId = OpcRequestId + }; + + response = client.GetAddressList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AddressList); + 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 GetAddressListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressListsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressListsList.cs new file mode 100644 index 000000000..ce096b692 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallAddressListsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallAddressListsList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.AddressListSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListAddressListsResponse) })] + public class GetOCINetworkfirewallAddressListsList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListAddressListsRequest request; + + try + { + request = new ListAddressListsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.AddressListSummaryCollection, 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(ListAddressListsRequest request) => Enumerable.Repeat(client.ListAddressLists(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListAddressListsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListAddressListsResponse response; + private delegate IEnumerable RequestDelegate(ListAddressListsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplication.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplication.cs new file mode 100644 index 000000000..15fae1fcb --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplication.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallApplication")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.Application), typeof(Oci.NetworkfirewallService.Responses.GetApplicationResponse) })] + public class GetOCINetworkfirewallApplication : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Applications.")] + public string ApplicationName { 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.")] + 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` or `opc-prev-page` header field of a previous response.")] + public string Page { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetApplicationRequest request; + + try + { + request = new GetApplicationRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ApplicationName = ApplicationName, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page + }; + + response = client.GetApplication(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Application); + 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 GetApplicationResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroup.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroup.cs new file mode 100644 index 000000000..94b60b435 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroup.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallApplicationGroup")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ApplicationGroup), typeof(Oci.NetworkfirewallService.Responses.GetApplicationGroupResponse) })] + public class GetOCINetworkfirewallApplicationGroup : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for Application Lists in the scope of Network Firewall Policy.")] + public string ApplicationGroupName { 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(); + GetApplicationGroupRequest request; + + try + { + request = new GetApplicationGroupRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ApplicationGroupName = ApplicationGroupName, + OpcRequestId = OpcRequestId + }; + + response = client.GetApplicationGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApplicationGroup); + 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 GetApplicationGroupResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroupsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroupsList.cs new file mode 100644 index 000000000..ab45138f9 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationGroupsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallApplicationGroupsList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ApplicationGroupSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListApplicationGroupsResponse) })] + public class GetOCINetworkfirewallApplicationGroupsList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListApplicationGroupsRequest request; + + try + { + request = new ListApplicationGroupsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ApplicationGroupSummaryCollection, 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(ListApplicationGroupsRequest request) => Enumerable.Repeat(client.ListApplicationGroups(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListApplicationGroupsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListApplicationGroupsResponse response; + private delegate IEnumerable RequestDelegate(ListApplicationGroupsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationsList.cs new file mode 100644 index 000000000..d5041c150 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallApplicationsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallApplicationsList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ApplicationSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListApplicationsResponse) })] + public class GetOCINetworkfirewallApplicationsList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListApplicationsRequest request; + + try + { + request = new ListApplicationsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ApplicationSummaryCollection, 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(ListApplicationsRequest request) => Enumerable.Repeat(client.ListApplications(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListApplicationsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListApplicationsResponse response; + private delegate IEnumerable RequestDelegate(ListApplicationsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfile.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfile.cs new file mode 100644 index 000000000..a97537f12 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfile.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallDecryptionProfile")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionProfile), typeof(Oci.NetworkfirewallService.Responses.GetDecryptionProfileResponse) })] + public class GetOCINetworkfirewallDecryptionProfile : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Decryption Profiles.")] + public string DecryptionProfileName { 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(); + GetDecryptionProfileRequest request; + + try + { + request = new GetDecryptionProfileRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + DecryptionProfileName = DecryptionProfileName, + OpcRequestId = OpcRequestId + }; + + response = client.GetDecryptionProfile(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DecryptionProfile); + 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 GetDecryptionProfileResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfilesList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfilesList.cs new file mode 100644 index 000000000..834a8d21d --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionProfilesList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallDecryptionProfilesList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionProfileSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListDecryptionProfilesResponse) })] + public class GetOCINetworkfirewallDecryptionProfilesList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListDecryptionProfilesRequest request; + + try + { + request = new ListDecryptionProfilesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.DecryptionProfileSummaryCollection, 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(ListDecryptionProfilesRequest request) => Enumerable.Repeat(client.ListDecryptionProfiles(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDecryptionProfilesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDecryptionProfilesResponse response; + private delegate IEnumerable RequestDelegate(ListDecryptionProfilesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRule.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRule.cs new file mode 100644 index 000000000..524dd1852 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRule.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallDecryptionRule")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionRule), typeof(Oci.NetworkfirewallService.Responses.GetDecryptionRuleResponse) })] + public class GetOCINetworkfirewallDecryptionRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Decryption Rules in the network firewall policy.")] + public string DecryptionRuleName { 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.")] + 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` or `opc-prev-page` header field of a previous response.")] + public string Page { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetDecryptionRuleRequest request; + + try + { + request = new GetDecryptionRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + DecryptionRuleName = DecryptionRuleName, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page + }; + + response = client.GetDecryptionRule(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DecryptionRule); + 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 GetDecryptionRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRulesList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRulesList.cs new file mode 100644 index 000000000..fea4e1e96 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallDecryptionRulesList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallDecryptionRulesList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionRuleSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListDecryptionRulesResponse) })] + public class GetOCINetworkfirewallDecryptionRulesList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = 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 priority order for Decryption Rules in the network firewall policy.")] + public System.Nullable DecryptionRulePriorityOrder { 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(); + ListDecryptionRulesRequest request; + + try + { + request = new ListDecryptionRulesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName, + DecryptionRulePriorityOrder = DecryptionRulePriorityOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.DecryptionRuleSummaryCollection, 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(ListDecryptionRulesRequest request) => Enumerable.Repeat(client.ListDecryptionRules(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDecryptionRulesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDecryptionRulesResponse response; + private delegate IEnumerable RequestDelegate(ListDecryptionRulesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecret.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecret.cs new file mode 100644 index 000000000..fd535384a --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecret.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallMappedSecret")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.MappedSecret), typeof(Oci.NetworkfirewallService.Responses.GetMappedSecretResponse) })] + public class GetOCINetworkfirewallMappedSecret : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Mapped Secrets.")] + public string MappedSecretName { 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.")] + 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` or `opc-prev-page` header field of a previous response.")] + public string Page { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMappedSecretRequest request; + + try + { + request = new GetMappedSecretRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + MappedSecretName = MappedSecretName, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page + }; + + response = client.GetMappedSecret(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MappedSecret); + 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 GetMappedSecretResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecretsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecretsList.cs new file mode 100644 index 000000000..61e7517b2 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallMappedSecretsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallMappedSecretsList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.MappedSecretSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListMappedSecretsResponse) })] + public class GetOCINetworkfirewallMappedSecretsList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMappedSecretsRequest request; + + try + { + request = new ListMappedSecretsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MappedSecretSummaryCollection, 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(ListMappedSecretsRequest request) => Enumerable.Repeat(client.ListMappedSecrets(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMappedSecretsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMappedSecretsResponse response; + private delegate IEnumerable RequestDelegate(ListMappedSecretsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPoliciesList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPoliciesList.cs index af80df33f..526b2d2c8 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPoliciesList.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPoliciesList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPolicy.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPolicy.cs index cd50d6a84..b11bd802a 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPolicy.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallPolicy.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRule.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRule.cs new file mode 100644 index 000000000..b8ada0634 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRule.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallSecurityRule")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.SecurityRule), typeof(Oci.NetworkfirewallService.Responses.GetSecurityRuleResponse) })] + public class GetOCINetworkfirewallSecurityRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Security Rules in the network firewall policy.")] + public string SecurityRuleName { 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(); + GetSecurityRuleRequest request; + + try + { + request = new GetSecurityRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + SecurityRuleName = SecurityRuleName, + OpcRequestId = OpcRequestId + }; + + response = client.GetSecurityRule(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SecurityRule); + 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 GetSecurityRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRulesList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRulesList.cs new file mode 100644 index 000000000..660a217ce --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallSecurityRulesList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallSecurityRulesList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.SecurityRuleSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListSecurityRulesResponse) })] + public class GetOCINetworkfirewallSecurityRulesList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = 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 priority order for Security Rules in the network firewall policy.")] + public System.Nullable SecurityRulePriorityOrder { 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(); + ListSecurityRulesRequest request; + + try + { + request = new ListSecurityRulesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName, + SecurityRulePriorityOrder = SecurityRulePriorityOrder + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.SecurityRuleSummaryCollection, 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(ListSecurityRulesRequest request) => Enumerable.Repeat(client.ListSecurityRules(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListSecurityRulesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListSecurityRulesResponse response; + private delegate IEnumerable RequestDelegate(ListSecurityRulesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallService.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallService.cs new file mode 100644 index 000000000..00a191480 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallService.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallService")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.Service), typeof(Oci.NetworkfirewallService.Responses.GetServiceResponse) })] + public class GetOCINetworkfirewallService : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Services.")] + public string ServiceName { 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.")] + 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` or `opc-prev-page` header field of a previous response.")] + public string Page { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetServiceRequest request; + + try + { + request = new GetServiceRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ServiceName = ServiceName, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page + }; + + response = client.GetService(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Service); + 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 GetServiceResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceList.cs new file mode 100644 index 000000000..6dc566fa4 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceList.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallServiceList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ServiceList), typeof(Oci.NetworkfirewallService.Responses.GetServiceListResponse) })] + public class GetOCINetworkfirewallServiceList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for Service Lists in the scope of Network Firewall Policy.")] + public string ServiceListName { 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(); + GetServiceListRequest request; + + try + { + request = new GetServiceListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ServiceListName = ServiceListName, + OpcRequestId = OpcRequestId + }; + + response = client.GetServiceList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ServiceList); + 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 GetServiceListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceListsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceListsList.cs new file mode 100644 index 000000000..7c0be512b --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServiceListsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallServiceListsList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ServiceListSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListServiceListsResponse) })] + public class GetOCINetworkfirewallServiceListsList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListServiceListsRequest request; + + try + { + request = new ListServiceListsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ServiceListSummaryCollection, 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(ListServiceListsRequest request) => Enumerable.Repeat(client.ListServiceLists(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListServiceListsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListServiceListsResponse response; + private delegate IEnumerable RequestDelegate(ListServiceListsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServicesList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServicesList.cs new file mode 100644 index 000000000..719a33d85 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallServicesList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallServicesList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ServiceSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListServicesResponse) })] + public class GetOCINetworkfirewallServicesList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListServicesRequest request; + + try + { + request = new ListServicesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ServiceSummaryCollection, 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(ListServicesRequest request) => Enumerable.Repeat(client.ListServices(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListServicesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListServicesResponse response; + private delegate IEnumerable RequestDelegate(ListServicesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlList.cs new file mode 100644 index 000000000..7e89021d6 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlList.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallUrlList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.UrlList), typeof(Oci.NetworkfirewallService.Responses.GetUrlListResponse) })] + public class GetOCINetworkfirewallUrlList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for url lists in the scope of Network Firewall Policy.")] + public string UrlListName { 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(); + GetUrlListRequest request; + + try + { + request = new GetUrlListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + UrlListName = UrlListName, + OpcRequestId = OpcRequestId + }; + + response = client.GetUrlList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UrlList); + 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 GetUrlListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlListsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlListsList.cs new file mode 100644 index 000000000..f80f57209 --- /dev/null +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallUrlListsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Get", "OCINetworkfirewallUrlListsList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.UrlListSummaryCollection), typeof(Oci.NetworkfirewallService.Responses.ListUrlListsResponse) })] + public class GetOCINetworkfirewallUrlListsList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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` or `opc-prev-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 = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListUrlListsRequest request; + + try + { + request = new ListUrlListsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.UrlListSummaryCollection, 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(ListUrlListsRequest request) => Enumerable.Repeat(client.ListUrlLists(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListUrlListsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListUrlListsResponse response; + private delegate IEnumerable RequestDelegate(ListUrlListsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequest.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequest.cs index cf5f0d398..79f11b8f5 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequest.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequest.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestErrorsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestErrorsList.cs index 0ea9ed063..a56ccae68 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestErrorsList.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestErrorsList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestLogsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestLogsList.cs index c85b31c4b..2adbaf304 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestLogsList.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestLogsList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestsList.cs index ac05d2f98..6f7c51115 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestsList.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallWorkRequestsList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallsList.cs b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallsList.cs index 5185ef938..54ad70d09 100644 --- a/Networkfirewall/Cmdlets/Get-OCINetworkfirewallsList.cs +++ b/Networkfirewall/Cmdlets/Get-OCINetworkfirewallsList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallApplyNetworkFirewallPolicy.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallApplyNetworkFirewallPolicy.cs new file mode 100644 index 000000000..ba3e4a00f --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallApplyNetworkFirewallPolicy.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallApplyNetworkFirewallPolicy")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.NetworkFirewallPolicy), typeof(Oci.NetworkfirewallService.Responses.ApplyNetworkFirewallPolicyResponse) })] + public class InvokeOCINetworkfirewallApplyNetworkFirewallPolicy : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ApplyNetworkFirewallPolicyDetails ApplyNetworkFirewallPolicyDetails { 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(); + ApplyNetworkFirewallPolicyRequest request; + + try + { + request = new ApplyNetworkFirewallPolicyRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ApplyNetworkFirewallPolicyDetails = ApplyNetworkFirewallPolicyDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ApplyNetworkFirewallPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, response.NetworkFirewallPolicy); + 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 ApplyNetworkFirewallPolicyResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadAddressLists.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadAddressLists.cs new file mode 100644 index 000000000..e461d5f6c --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadAddressLists.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadAddressLists")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadAddressListsResponse) })] + public class InvokeOCINetworkfirewallBulkUploadAddressLists : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Address Lists for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadAddressListsDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Address Lists for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadAddressListsDetailsFromFile { 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(); + BulkUploadAddressListsRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadAddressListsDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadAddressListsDetailsFromFile)); + } + + + try + { + request = new BulkUploadAddressListsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadAddressListsDetails = BulkUploadAddressListsDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadAddressLists(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 BulkUploadAddressListsResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplicationGroups.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplicationGroups.cs new file mode 100644 index 000000000..32bfd79b1 --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplicationGroups.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadApplicationGroups")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadApplicationGroupsResponse) })] + public class InvokeOCINetworkfirewallBulkUploadApplicationGroups : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Application Group for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadApplicationGroupsDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Application Group for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadApplicationGroupsDetailsFromFile { 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(); + BulkUploadApplicationGroupsRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadApplicationGroupsDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadApplicationGroupsDetailsFromFile)); + } + + + try + { + request = new BulkUploadApplicationGroupsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadApplicationGroupsDetails = BulkUploadApplicationGroupsDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadApplicationGroups(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 BulkUploadApplicationGroupsResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplications.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplications.cs new file mode 100644 index 000000000..89b7f4ed4 --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadApplications.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadApplications")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadApplicationsResponse) })] + public class InvokeOCINetworkfirewallBulkUploadApplications : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Applications for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadApplicationsDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Applications for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadApplicationsDetailsFromFile { 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(); + BulkUploadApplicationsRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadApplicationsDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadApplicationsDetailsFromFile)); + } + + + try + { + request = new BulkUploadApplicationsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadApplicationsDetails = BulkUploadApplicationsDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadApplications(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 BulkUploadApplicationsResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionProfiles.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionProfiles.cs new file mode 100644 index 000000000..f9b32adfb --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionProfiles.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadDecryptionProfiles")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadDecryptionProfilesResponse) })] + public class InvokeOCINetworkfirewallBulkUploadDecryptionProfiles : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Decryption Profile for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadDecryptionProfilesDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Decryption Profile for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadDecryptionProfilesDetailsFromFile { 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(); + BulkUploadDecryptionProfilesRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadDecryptionProfilesDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadDecryptionProfilesDetailsFromFile)); + } + + + try + { + request = new BulkUploadDecryptionProfilesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadDecryptionProfilesDetails = BulkUploadDecryptionProfilesDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadDecryptionProfiles(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 BulkUploadDecryptionProfilesResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionRules.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionRules.cs new file mode 100644 index 000000000..6b61bd957 --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadDecryptionRules.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadDecryptionRules")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadDecryptionRulesResponse) })] + public class InvokeOCINetworkfirewallBulkUploadDecryptionRules : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Decryption Rule for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadDecryptionRulesDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Decryption Rule for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadDecryptionRulesDetailsFromFile { 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(); + BulkUploadDecryptionRulesRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadDecryptionRulesDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadDecryptionRulesDetailsFromFile)); + } + + + try + { + request = new BulkUploadDecryptionRulesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadDecryptionRulesDetails = BulkUploadDecryptionRulesDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadDecryptionRules(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 BulkUploadDecryptionRulesResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadMappedSecrets.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadMappedSecrets.cs new file mode 100644 index 000000000..4fc800698 --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadMappedSecrets.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadMappedSecrets")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadMappedSecretsResponse) })] + public class InvokeOCINetworkfirewallBulkUploadMappedSecrets : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Mapped Secret for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadMappedSecretsDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Mapped Secret for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadMappedSecretsDetailsFromFile { 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(); + BulkUploadMappedSecretsRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadMappedSecretsDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadMappedSecretsDetailsFromFile)); + } + + + try + { + request = new BulkUploadMappedSecretsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadMappedSecretsDetails = BulkUploadMappedSecretsDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadMappedSecrets(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 BulkUploadMappedSecretsResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadSecurityRules.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadSecurityRules.cs new file mode 100644 index 000000000..af668e67a --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadSecurityRules.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadSecurityRules")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadSecurityRulesResponse) })] + public class InvokeOCINetworkfirewallBulkUploadSecurityRules : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Security Rule for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadSecurityRulesDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Security Rule for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadSecurityRulesDetailsFromFile { 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(); + BulkUploadSecurityRulesRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadSecurityRulesDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadSecurityRulesDetailsFromFile)); + } + + + try + { + request = new BulkUploadSecurityRulesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadSecurityRulesDetails = BulkUploadSecurityRulesDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadSecurityRules(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 BulkUploadSecurityRulesResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServiceLists.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServiceLists.cs new file mode 100644 index 000000000..8d4da3ebd --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServiceLists.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadServiceLists")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadServiceListsResponse) })] + public class InvokeOCINetworkfirewallBulkUploadServiceLists : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Service List for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadServiceListsDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Service List for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadServiceListsDetailsFromFile { 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(); + BulkUploadServiceListsRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadServiceListsDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadServiceListsDetailsFromFile)); + } + + + try + { + request = new BulkUploadServiceListsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadServiceListsDetails = BulkUploadServiceListsDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadServiceLists(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 BulkUploadServiceListsResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServices.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServices.cs new file mode 100644 index 000000000..87f880152 --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadServices.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadServices")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadServicesResponse) })] + public class InvokeOCINetworkfirewallBulkUploadServices : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Services for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadServicesDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Services for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadServicesDetailsFromFile { 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(); + BulkUploadServicesRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadServicesDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadServicesDetailsFromFile)); + } + + + try + { + request = new BulkUploadServicesRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadServicesDetails = BulkUploadServicesDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadServices(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 BulkUploadServicesResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadUrlLists.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadUrlLists.cs new file mode 100644 index 000000000..6def44b60 --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallBulkUploadUrlLists.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallBulkUploadUrlLists")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.BulkUploadUrlListsResponse) })] + public class InvokeOCINetworkfirewallBulkUploadUrlLists : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Url Lists for the Network Firewall Policy Resource.", ParameterSetName = FromStreamSet)] + public System.IO.Stream BulkUploadUrlListsDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Use this parameter to provide the file location from where the input stream to be read. Request Details to create the Url Lists for the Network Firewall Policy Resource.", ParameterSetName = FromFileSet)] + public String BulkUploadUrlListsDetailsFromFile { 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(); + BulkUploadUrlListsRequest request; + + if (ParameterSetName.Equals(FromFileSet)) + { + BulkUploadUrlListsDetails = System.IO.File.OpenRead(GetAbsoluteFilePath(BulkUploadUrlListsDetailsFromFile)); + } + + + try + { + request = new BulkUploadUrlListsRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + BulkUploadUrlListsDetails = BulkUploadUrlListsDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId, + IfMatch = IfMatch + }; + + response = client.BulkUploadUrlLists(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 BulkUploadUrlListsResponse response; + private const string FromFileSet = "FromFile"; + private const string FromStreamSet = "FromStream"; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallCloneNetworkFirewallPolicy.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallCloneNetworkFirewallPolicy.cs new file mode 100644 index 000000000..016609d9c --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallCloneNetworkFirewallPolicy.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallCloneNetworkFirewallPolicy")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.NetworkFirewallPolicy), typeof(Oci.NetworkfirewallService.Responses.CloneNetworkFirewallPolicyResponse) })] + public class InvokeOCINetworkfirewallCloneNetworkFirewallPolicy : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public CloneNetworkFirewallPolicyDetails CloneNetworkFirewallPolicyDetails { 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(); + CloneNetworkFirewallPolicyRequest request; + + try + { + request = new CloneNetworkFirewallPolicyRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CloneNetworkFirewallPolicyDetails = CloneNetworkFirewallPolicyDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CloneNetworkFirewallPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, response.NetworkFirewallPolicy); + 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 CloneNetworkFirewallPolicyResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallMigrateNetworkFirewallPolicy.cs b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallMigrateNetworkFirewallPolicy.cs new file mode 100644 index 000000000..92ffb2ab1 --- /dev/null +++ b/Networkfirewall/Cmdlets/Invoke-OCINetworkfirewallMigrateNetworkFirewallPolicy.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Invoke", "OCINetworkfirewallMigrateNetworkFirewallPolicy")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.NetworkfirewallService.Responses.MigrateNetworkFirewallPolicyResponse) })] + public class InvokeOCINetworkfirewallMigrateNetworkFirewallPolicy : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { 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(); + MigrateNetworkFirewallPolicyRequest request; + + try + { + request = new MigrateNetworkFirewallPolicyRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.MigrateNetworkFirewallPolicy(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 MigrateNetworkFirewallPolicyResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Move-OCINetworkfirewallCompartment.cs b/Networkfirewall/Cmdlets/Move-OCINetworkfirewallCompartment.cs index 96381c71c..f0c355d22 100644 --- a/Networkfirewall/Cmdlets/Move-OCINetworkfirewallCompartment.cs +++ b/Networkfirewall/Cmdlets/Move-OCINetworkfirewallCompartment.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -31,6 +31,9 @@ public class MoveOCINetworkfirewallCompartment : OCINetworkFirewallCmdlet [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(); @@ -43,7 +46,8 @@ protected override void ProcessRecord() NetworkFirewallId = NetworkFirewallId, ChangeNetworkFirewallCompartmentDetails = ChangeNetworkFirewallCompartmentDetails, IfMatch = IfMatch, - OpcRequestId = OpcRequestId + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken }; response = client.ChangeNetworkFirewallCompartment(request).GetAwaiter().GetResult(); diff --git a/Networkfirewall/Cmdlets/Move-OCINetworkfirewallPolicyCompartment.cs b/Networkfirewall/Cmdlets/Move-OCINetworkfirewallPolicyCompartment.cs index 578c2f84b..48e151566 100644 --- a/Networkfirewall/Cmdlets/Move-OCINetworkfirewallPolicyCompartment.cs +++ b/Networkfirewall/Cmdlets/Move-OCINetworkfirewallPolicyCompartment.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewall.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewall.cs index f07659e0d..e78ae3714 100644 --- a/Networkfirewall/Cmdlets/New-OCINetworkfirewall.cs +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewall.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallAddressList.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallAddressList.cs new file mode 100644 index 000000000..d5a6a6132 --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallAddressList.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallAddressList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.AddressList), typeof(Oci.NetworkfirewallService.Responses.CreateAddressListResponse) })] + public class NewOCINetworkfirewallAddressList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Network Firewall Policy Resource.")] + public CreateAddressListDetails CreateAddressListDetails { 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(); + CreateAddressListRequest request; + + try + { + request = new CreateAddressListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateAddressListDetails = CreateAddressListDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateAddressList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AddressList); + 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 CreateAddressListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallApplication.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallApplication.cs new file mode 100644 index 000000000..ead713cdb --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallApplication.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallApplication")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.Application), typeof(Oci.NetworkfirewallService.Responses.CreateApplicationResponse) })] + public class NewOCINetworkfirewallApplication : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Application for the Network Firewall Policy Resource. This parameter also accepts subtypes , of type .")] + public CreateApplicationDetails CreateApplicationDetails { 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(); + CreateApplicationRequest request; + + try + { + request = new CreateApplicationRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateApplicationDetails = CreateApplicationDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateApplication(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Application); + 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 CreateApplicationResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallApplicationGroup.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallApplicationGroup.cs new file mode 100644 index 000000000..a0ebf7d56 --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallApplicationGroup.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallApplicationGroup")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ApplicationGroup), typeof(Oci.NetworkfirewallService.Responses.CreateApplicationGroupResponse) })] + public class NewOCINetworkfirewallApplicationGroup : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the ApplicationGroup for the Network Firewall Policy Resource.")] + public CreateApplicationGroupDetails CreateApplicationGroupDetails { 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(); + CreateApplicationGroupRequest request; + + try + { + request = new CreateApplicationGroupRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateApplicationGroupDetails = CreateApplicationGroupDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateApplicationGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApplicationGroup); + 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 CreateApplicationGroupResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionProfile.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionProfile.cs new file mode 100644 index 000000000..d23f05740 --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionProfile.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallDecryptionProfile")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionProfile), typeof(Oci.NetworkfirewallService.Responses.CreateDecryptionProfileResponse) })] + public class NewOCINetworkfirewallDecryptionProfile : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Network Firewall Policy Resource. This parameter also accepts subtypes , of type .")] + public CreateDecryptionProfileDetails CreateDecryptionProfileDetails { 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(); + CreateDecryptionProfileRequest request; + + try + { + request = new CreateDecryptionProfileRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateDecryptionProfileDetails = CreateDecryptionProfileDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDecryptionProfile(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DecryptionProfile); + 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 CreateDecryptionProfileResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionRule.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionRule.cs new file mode 100644 index 000000000..cbf78f5ad --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallDecryptionRule.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallDecryptionRule")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionRule), typeof(Oci.NetworkfirewallService.Responses.CreateDecryptionRuleResponse) })] + public class NewOCINetworkfirewallDecryptionRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Network Firewall Policy Resource.")] + public CreateDecryptionRuleDetails CreateDecryptionRuleDetails { 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(); + CreateDecryptionRuleRequest request; + + try + { + request = new CreateDecryptionRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateDecryptionRuleDetails = CreateDecryptionRuleDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDecryptionRule(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DecryptionRule); + 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 CreateDecryptionRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallMappedSecret.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallMappedSecret.cs new file mode 100644 index 000000000..5ac0a819b --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallMappedSecret.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallMappedSecret")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.MappedSecret), typeof(Oci.NetworkfirewallService.Responses.CreateMappedSecretResponse) })] + public class NewOCINetworkfirewallMappedSecret : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Network Firewall Policy Resource. This parameter also accepts subtype of type .")] + public CreateMappedSecretDetails CreateMappedSecretDetails { 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(); + CreateMappedSecretRequest request; + + try + { + request = new CreateMappedSecretRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateMappedSecretDetails = CreateMappedSecretDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateMappedSecret(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MappedSecret); + 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 CreateMappedSecretResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallPolicy.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallPolicy.cs index 1ea0316f2..614a0dc56 100644 --- a/Networkfirewall/Cmdlets/New-OCINetworkfirewallPolicy.cs +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallPolicy.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallSecurityRule.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallSecurityRule.cs new file mode 100644 index 000000000..e551a48bd --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallSecurityRule.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallSecurityRule")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.SecurityRule), typeof(Oci.NetworkfirewallService.Responses.CreateSecurityRuleResponse) })] + public class NewOCINetworkfirewallSecurityRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Network Firewall Policy Resource.")] + public CreateSecurityRuleDetails CreateSecurityRuleDetails { 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(); + CreateSecurityRuleRequest request; + + try + { + request = new CreateSecurityRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateSecurityRuleDetails = CreateSecurityRuleDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateSecurityRule(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SecurityRule); + 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 CreateSecurityRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallService.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallService.cs new file mode 100644 index 000000000..2b6942b0a --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallService.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallService")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.Service), typeof(Oci.NetworkfirewallService.Responses.CreateServiceResponse) })] + public class NewOCINetworkfirewallService : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Service for the Network Firewall Policy Resource. This parameter also accepts subtypes , of type .")] + public CreateServiceDetails CreateServiceDetails { 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(); + CreateServiceRequest request; + + try + { + request = new CreateServiceRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateServiceDetails = CreateServiceDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateService(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Service); + 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 CreateServiceResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallServiceList.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallServiceList.cs new file mode 100644 index 000000000..3aaef276b --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallServiceList.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallServiceList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ServiceList), typeof(Oci.NetworkfirewallService.Responses.CreateServiceListResponse) })] + public class NewOCINetworkfirewallServiceList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the ServiceList for the Network Firewall Policy Resource.")] + public CreateServiceListDetails CreateServiceListDetails { 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(); + CreateServiceListRequest request; + + try + { + request = new CreateServiceListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateServiceListDetails = CreateServiceListDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateServiceList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ServiceList); + 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 CreateServiceListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/New-OCINetworkfirewallUrlList.cs b/Networkfirewall/Cmdlets/New-OCINetworkfirewallUrlList.cs new file mode 100644 index 000000000..74c50f86f --- /dev/null +++ b/Networkfirewall/Cmdlets/New-OCINetworkfirewallUrlList.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("New", "OCINetworkfirewallUrlList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.UrlList), typeof(Oci.NetworkfirewallService.Responses.CreateUrlListResponse) })] + public class NewOCINetworkfirewallUrlList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request Details to create the Network Firewall Policy Resource.")] + public CreateUrlListDetails CreateUrlListDetails { 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(); + CreateUrlListRequest request; + + try + { + request = new CreateUrlListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + CreateUrlListDetails = CreateUrlListDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateUrlList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UrlList); + 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 CreateUrlListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/OCINetworkFirewallCmdlet.cs b/Networkfirewall/Cmdlets/OCINetworkFirewallCmdlet.cs index a14c57e6b..94aa6cc88 100644 --- a/Networkfirewall/Cmdlets/OCINetworkFirewallCmdlet.cs +++ b/Networkfirewall/Cmdlets/OCINetworkFirewallCmdlet.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewall.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewall.cs index ffeed10fc..f1305450d 100644 --- a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewall.cs +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewall.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallAddressList.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallAddressList.cs new file mode 100644 index 000000000..a12ea998a --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallAddressList.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallAddressList", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteAddressListResponse) })] + public class RemoveOCINetworkfirewallAddressList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for address lists.")] + public string AddressListName { 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("OCINetworkfirewallAddressList", "Remove")) + { + return; + } + + DeleteAddressListRequest request; + + try + { + request = new DeleteAddressListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + AddressListName = AddressListName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteAddressList(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 DeleteAddressListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplication.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplication.cs new file mode 100644 index 000000000..129711094 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplication.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallApplication", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteApplicationResponse) })] + public class RemoveOCINetworkfirewallApplication : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Applications.")] + public string ApplicationName { 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("OCINetworkfirewallApplication", "Remove")) + { + return; + } + + DeleteApplicationRequest request; + + try + { + request = new DeleteApplicationRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ApplicationName = ApplicationName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteApplication(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 DeleteApplicationResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplicationGroup.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplicationGroup.cs new file mode 100644 index 000000000..0b0e85c73 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallApplicationGroup.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallApplicationGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteApplicationGroupResponse) })] + public class RemoveOCINetworkfirewallApplicationGroup : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for Application Lists in the scope of Network Firewall Policy.")] + public string ApplicationGroupName { 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("OCINetworkfirewallApplicationGroup", "Remove")) + { + return; + } + + DeleteApplicationGroupRequest request; + + try + { + request = new DeleteApplicationGroupRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ApplicationGroupName = ApplicationGroupName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteApplicationGroup(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 DeleteApplicationGroupResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionProfile.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionProfile.cs new file mode 100644 index 000000000..1d1f42e8e --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionProfile.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallDecryptionProfile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteDecryptionProfileResponse) })] + public class RemoveOCINetworkfirewallDecryptionProfile : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Decryption Profiles.")] + public string DecryptionProfileName { 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("OCINetworkfirewallDecryptionProfile", "Remove")) + { + return; + } + + DeleteDecryptionProfileRequest request; + + try + { + request = new DeleteDecryptionProfileRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + DecryptionProfileName = DecryptionProfileName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteDecryptionProfile(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 DeleteDecryptionProfileResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionRule.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionRule.cs new file mode 100644 index 000000000..2fda10d10 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallDecryptionRule.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallDecryptionRule", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteDecryptionRuleResponse) })] + public class RemoveOCINetworkfirewallDecryptionRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Decryption Rules in the network firewall policy.")] + public string DecryptionRuleName { 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("OCINetworkfirewallDecryptionRule", "Remove")) + { + return; + } + + DeleteDecryptionRuleRequest request; + + try + { + request = new DeleteDecryptionRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + DecryptionRuleName = DecryptionRuleName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteDecryptionRule(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 DeleteDecryptionRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallMappedSecret.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallMappedSecret.cs new file mode 100644 index 000000000..b8f94aac3 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallMappedSecret.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallMappedSecret", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteMappedSecretResponse) })] + public class RemoveOCINetworkfirewallMappedSecret : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Mapped Secrets.")] + public string MappedSecretName { 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("OCINetworkfirewallMappedSecret", "Remove")) + { + return; + } + + DeleteMappedSecretRequest request; + + try + { + request = new DeleteMappedSecretRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + MappedSecretName = MappedSecretName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteMappedSecret(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 DeleteMappedSecretResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallPolicy.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallPolicy.cs index 9b832e7cc..9cfe3fbb9 100644 --- a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallPolicy.cs +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallPolicy.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallSecurityRule.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallSecurityRule.cs new file mode 100644 index 000000000..96a9f3de4 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallSecurityRule.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallSecurityRule", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteSecurityRuleResponse) })] + public class RemoveOCINetworkfirewallSecurityRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Security Rules in the network firewall policy.")] + public string SecurityRuleName { 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("OCINetworkfirewallSecurityRule", "Remove")) + { + return; + } + + DeleteSecurityRuleRequest request; + + try + { + request = new DeleteSecurityRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + SecurityRuleName = SecurityRuleName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteSecurityRule(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 DeleteSecurityRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallService.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallService.cs new file mode 100644 index 000000000..6b31020d8 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallService.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallService", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteServiceResponse) })] + public class RemoveOCINetworkfirewallService : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Services.")] + public string ServiceName { 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("OCINetworkfirewallService", "Remove")) + { + return; + } + + DeleteServiceRequest request; + + try + { + request = new DeleteServiceRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ServiceName = ServiceName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteService(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 DeleteServiceResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallServiceList.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallServiceList.cs new file mode 100644 index 000000000..eed8d5d64 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallServiceList.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallServiceList", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteServiceListResponse) })] + public class RemoveOCINetworkfirewallServiceList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for Service Lists in the scope of Network Firewall Policy.")] + public string ServiceListName { 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("OCINetworkfirewallServiceList", "Remove")) + { + return; + } + + DeleteServiceListRequest request; + + try + { + request = new DeleteServiceListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ServiceListName = ServiceListName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteServiceList(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 DeleteServiceListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallUrlList.cs b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallUrlList.cs new file mode 100644 index 000000000..22df23759 --- /dev/null +++ b/Networkfirewall/Cmdlets/Remove-OCINetworkfirewallUrlList.cs @@ -0,0 +1,80 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Remove", "OCINetworkfirewallUrlList", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.NetworkfirewallService.Responses.DeleteUrlListResponse) })] + public class RemoveOCINetworkfirewallUrlList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for url lists in the scope of Network Firewall Policy.")] + public string UrlListName { 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("OCINetworkfirewallUrlList", "Remove")) + { + return; + } + + DeleteUrlListRequest request; + + try + { + request = new DeleteUrlListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + UrlListName = UrlListName, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteUrlList(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 DeleteUrlListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Stop-OCINetworkfirewallWorkRequest.cs b/Networkfirewall/Cmdlets/Stop-OCINetworkfirewallWorkRequest.cs index bcdb154b9..a2ae9860d 100644 --- a/Networkfirewall/Cmdlets/Stop-OCINetworkfirewallWorkRequest.cs +++ b/Networkfirewall/Cmdlets/Stop-OCINetworkfirewallWorkRequest.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewall.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewall.cs index cbc326502..088a0541d 100644 --- a/Networkfirewall/Cmdlets/Update-OCINetworkfirewall.cs +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewall.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallAddressList.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallAddressList.cs new file mode 100644 index 000000000..8502bf376 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallAddressList.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallAddressList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.AddressList), typeof(Oci.NetworkfirewallService.Responses.UpdateAddressListResponse) })] + public class UpdateOCINetworkfirewallAddressList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for address lists.")] + public string AddressListName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated. This parameter also accepts subtypes , of type .")] + public UpdateAddressListDetails UpdateAddressListDetails { 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(); + UpdateAddressListRequest request; + + try + { + request = new UpdateAddressListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + AddressListName = AddressListName, + UpdateAddressListDetails = UpdateAddressListDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateAddressList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AddressList); + 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 UpdateAddressListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplication.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplication.cs new file mode 100644 index 000000000..145a20967 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplication.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallApplication")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.Application), typeof(Oci.NetworkfirewallService.Responses.UpdateApplicationResponse) })] + public class UpdateOCINetworkfirewallApplication : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Applications.")] + public string ApplicationName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated. This parameter also accepts subtypes , of type .")] + public UpdateApplicationDetails UpdateApplicationDetails { 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(); + UpdateApplicationRequest request; + + try + { + request = new UpdateApplicationRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ApplicationName = ApplicationName, + UpdateApplicationDetails = UpdateApplicationDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateApplication(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Application); + 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 UpdateApplicationResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplicationGroup.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplicationGroup.cs new file mode 100644 index 000000000..07bdf3753 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallApplicationGroup.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallApplicationGroup")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ApplicationGroup), typeof(Oci.NetworkfirewallService.Responses.UpdateApplicationGroupResponse) })] + public class UpdateOCINetworkfirewallApplicationGroup : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for Application Lists in the scope of Network Firewall Policy.")] + public string ApplicationGroupName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateApplicationGroupDetails UpdateApplicationGroupDetails { 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(); + UpdateApplicationGroupRequest request; + + try + { + request = new UpdateApplicationGroupRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ApplicationGroupName = ApplicationGroupName, + UpdateApplicationGroupDetails = UpdateApplicationGroupDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateApplicationGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApplicationGroup); + 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 UpdateApplicationGroupResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionProfile.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionProfile.cs new file mode 100644 index 000000000..8fcd718a5 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionProfile.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallDecryptionProfile")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionProfile), typeof(Oci.NetworkfirewallService.Responses.UpdateDecryptionProfileResponse) })] + public class UpdateOCINetworkfirewallDecryptionProfile : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Decryption Profiles.")] + public string DecryptionProfileName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated. This parameter also accepts subtypes , of type .")] + public UpdateDecryptionProfileDetails UpdateDecryptionProfileDetails { 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(); + UpdateDecryptionProfileRequest request; + + try + { + request = new UpdateDecryptionProfileRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + DecryptionProfileName = DecryptionProfileName, + UpdateDecryptionProfileDetails = UpdateDecryptionProfileDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateDecryptionProfile(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DecryptionProfile); + 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 UpdateDecryptionProfileResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionRule.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionRule.cs new file mode 100644 index 000000000..5fb4b5168 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallDecryptionRule.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallDecryptionRule")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.DecryptionRule), typeof(Oci.NetworkfirewallService.Responses.UpdateDecryptionRuleResponse) })] + public class UpdateOCINetworkfirewallDecryptionRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Decryption Rules in the network firewall policy.")] + public string DecryptionRuleName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateDecryptionRuleDetails UpdateDecryptionRuleDetails { 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(); + UpdateDecryptionRuleRequest request; + + try + { + request = new UpdateDecryptionRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + DecryptionRuleName = DecryptionRuleName, + UpdateDecryptionRuleDetails = UpdateDecryptionRuleDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateDecryptionRule(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DecryptionRule); + 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 UpdateDecryptionRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallMappedSecret.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallMappedSecret.cs new file mode 100644 index 000000000..62be8de51 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallMappedSecret.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallMappedSecret")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.MappedSecret), typeof(Oci.NetworkfirewallService.Responses.UpdateMappedSecretResponse) })] + public class UpdateOCINetworkfirewallMappedSecret : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Mapped Secrets.")] + public string MappedSecretName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated. This parameter also accepts subtype of type .")] + public UpdateMappedSecretDetails UpdateMappedSecretDetails { 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(); + UpdateMappedSecretRequest request; + + try + { + request = new UpdateMappedSecretRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + MappedSecretName = MappedSecretName, + UpdateMappedSecretDetails = UpdateMappedSecretDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateMappedSecret(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MappedSecret); + 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 UpdateMappedSecretResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallPolicy.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallPolicy.cs index 5d5816663..fc1a31897 100644 --- a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallPolicy.cs +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallPolicy.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20211001 + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallSecurityRule.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallSecurityRule.cs new file mode 100644 index 000000000..ba926df5b --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallSecurityRule.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallSecurityRule")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.SecurityRule), typeof(Oci.NetworkfirewallService.Responses.UpdateSecurityRuleResponse) })] + public class UpdateOCINetworkfirewallSecurityRule : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Security Rules in the network firewall policy.")] + public string SecurityRuleName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateSecurityRuleDetails UpdateSecurityRuleDetails { 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(); + UpdateSecurityRuleRequest request; + + try + { + request = new UpdateSecurityRuleRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + SecurityRuleName = SecurityRuleName, + UpdateSecurityRuleDetails = UpdateSecurityRuleDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateSecurityRule(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SecurityRule); + 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 UpdateSecurityRuleResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallService.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallService.cs new file mode 100644 index 000000000..18e354784 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallService.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallService")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.Service), typeof(Oci.NetworkfirewallService.Responses.UpdateServiceResponse) })] + public class UpdateOCINetworkfirewallService : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for Services.")] + public string ServiceName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated. This parameter also accepts subtypes , of type .")] + public UpdateServiceDetails UpdateServiceDetails { 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(); + UpdateServiceRequest request; + + try + { + request = new UpdateServiceRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ServiceName = ServiceName, + UpdateServiceDetails = UpdateServiceDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateService(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Service); + 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 UpdateServiceResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallServiceList.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallServiceList.cs new file mode 100644 index 000000000..dca6ff1d6 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallServiceList.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallServiceList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.ServiceList), typeof(Oci.NetworkfirewallService.Responses.UpdateServiceListResponse) })] + public class UpdateOCINetworkfirewallServiceList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for Service Lists in the scope of Network Firewall Policy.")] + public string ServiceListName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateServiceListDetails UpdateServiceListDetails { 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(); + UpdateServiceListRequest request; + + try + { + request = new UpdateServiceListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + ServiceListName = ServiceListName, + UpdateServiceListDetails = UpdateServiceListDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateServiceList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ServiceList); + 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 UpdateServiceListResponse response; + } +} diff --git a/Networkfirewall/Cmdlets/Update-OCINetworkfirewallUrlList.cs b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallUrlList.cs new file mode 100644 index 000000000..9c49bafb2 --- /dev/null +++ b/Networkfirewall/Cmdlets/Update-OCINetworkfirewallUrlList.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20230501 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.NetworkfirewallService.Requests; +using Oci.NetworkfirewallService.Responses; +using Oci.NetworkfirewallService.Models; +using Oci.Common.Model; + +namespace Oci.NetworkfirewallService.Cmdlets +{ + [Cmdlet("Update", "OCINetworkfirewallUrlList")] + [OutputType(new System.Type[] { typeof(Oci.NetworkfirewallService.Models.UrlList), typeof(Oci.NetworkfirewallService.Responses.UpdateUrlListResponse) })] + public class UpdateOCINetworkfirewallUrlList : OCINetworkFirewallCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Network Firewall Policy identifier")] + public string NetworkFirewallPolicyId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique name identifier for url lists in the scope of Network Firewall Policy.")] + public string UrlListName { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateUrlListDetails UpdateUrlListDetails { 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(); + UpdateUrlListRequest request; + + try + { + request = new UpdateUrlListRequest + { + NetworkFirewallPolicyId = NetworkFirewallPolicyId, + UrlListName = UrlListName, + UpdateUrlListDetails = UpdateUrlListDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateUrlList(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UrlList); + 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 UpdateUrlListResponse response; + } +} diff --git a/Networkfirewall/OCI.PSModules.Networkfirewall.csproj b/Networkfirewall/OCI.PSModules.Networkfirewall.csproj index 37cc5cd69..68378cf4c 100644 --- a/Networkfirewall/OCI.PSModules.Networkfirewall.csproj +++ b/Networkfirewall/OCI.PSModules.Networkfirewall.csproj @@ -1,4 +1,4 @@ - + diff --git a/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 b/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 index 11ad39307..2c1df082b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Networkfirewall.dll' @@ -71,18 +71,81 @@ RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Networkfirewall.dll' FunctionsToExport = '*' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Get-OCINetworkfirewall', 'Get-OCINetworkfirewallPoliciesList', - 'Get-OCINetworkfirewallPolicy', 'Get-OCINetworkfirewallsList', +CmdletsToExport = 'Get-OCINetworkfirewall', 'Get-OCINetworkfirewallAddressList', + 'Get-OCINetworkfirewallAddressListsList', + 'Get-OCINetworkfirewallApplication', + 'Get-OCINetworkfirewallApplicationGroup', + 'Get-OCINetworkfirewallApplicationGroupsList', + 'Get-OCINetworkfirewallApplicationsList', + 'Get-OCINetworkfirewallDecryptionProfile', + 'Get-OCINetworkfirewallDecryptionProfilesList', + 'Get-OCINetworkfirewallDecryptionRule', + 'Get-OCINetworkfirewallDecryptionRulesList', + 'Get-OCINetworkfirewallMappedSecret', + 'Get-OCINetworkfirewallMappedSecretsList', + 'Get-OCINetworkfirewallPoliciesList', + 'Get-OCINetworkfirewallPolicy', + 'Get-OCINetworkfirewallSecurityRule', + 'Get-OCINetworkfirewallSecurityRulesList', + 'Get-OCINetworkfirewallService', + 'Get-OCINetworkfirewallServiceList', + 'Get-OCINetworkfirewallServiceListsList', + 'Get-OCINetworkfirewallServicesList', 'Get-OCINetworkfirewallsList', + 'Get-OCINetworkfirewallUrlList', + 'Get-OCINetworkfirewallUrlListsList', 'Get-OCINetworkfirewallWorkRequest', 'Get-OCINetworkfirewallWorkRequestErrorsList', 'Get-OCINetworkfirewallWorkRequestLogsList', 'Get-OCINetworkfirewallWorkRequestsList', + 'Invoke-OCINetworkfirewallApplyNetworkFirewallPolicy', + 'Invoke-OCINetworkfirewallBulkUploadAddressLists', + 'Invoke-OCINetworkfirewallBulkUploadApplicationGroups', + 'Invoke-OCINetworkfirewallBulkUploadApplications', + 'Invoke-OCINetworkfirewallBulkUploadDecryptionProfiles', + 'Invoke-OCINetworkfirewallBulkUploadDecryptionRules', + 'Invoke-OCINetworkfirewallBulkUploadMappedSecrets', + 'Invoke-OCINetworkfirewallBulkUploadSecurityRules', + 'Invoke-OCINetworkfirewallBulkUploadServiceLists', + 'Invoke-OCINetworkfirewallBulkUploadServices', + 'Invoke-OCINetworkfirewallBulkUploadUrlLists', + 'Invoke-OCINetworkfirewallCloneNetworkFirewallPolicy', + 'Invoke-OCINetworkfirewallMigrateNetworkFirewallPolicy', 'Move-OCINetworkfirewallCompartment', 'Move-OCINetworkfirewallPolicyCompartment', - 'New-OCINetworkfirewall', 'New-OCINetworkfirewallPolicy', - 'Remove-OCINetworkfirewall', 'Remove-OCINetworkfirewallPolicy', + 'New-OCINetworkfirewall', 'New-OCINetworkfirewallAddressList', + 'New-OCINetworkfirewallApplication', + 'New-OCINetworkfirewallApplicationGroup', + 'New-OCINetworkfirewallDecryptionProfile', + 'New-OCINetworkfirewallDecryptionRule', + 'New-OCINetworkfirewallMappedSecret', + 'New-OCINetworkfirewallPolicy', + 'New-OCINetworkfirewallSecurityRule', + 'New-OCINetworkfirewallService', + 'New-OCINetworkfirewallServiceList', + 'New-OCINetworkfirewallUrlList', 'Remove-OCINetworkfirewall', + 'Remove-OCINetworkfirewallAddressList', + 'Remove-OCINetworkfirewallApplication', + 'Remove-OCINetworkfirewallApplicationGroup', + 'Remove-OCINetworkfirewallDecryptionProfile', + 'Remove-OCINetworkfirewallDecryptionRule', + 'Remove-OCINetworkfirewallMappedSecret', + 'Remove-OCINetworkfirewallPolicy', + 'Remove-OCINetworkfirewallSecurityRule', + 'Remove-OCINetworkfirewallService', + 'Remove-OCINetworkfirewallServiceList', + 'Remove-OCINetworkfirewallUrlList', 'Stop-OCINetworkfirewallWorkRequest', 'Update-OCINetworkfirewall', - 'Update-OCINetworkfirewallPolicy' + 'Update-OCINetworkfirewallAddressList', + 'Update-OCINetworkfirewallApplication', + 'Update-OCINetworkfirewallApplicationGroup', + 'Update-OCINetworkfirewallDecryptionProfile', + 'Update-OCINetworkfirewallDecryptionRule', + 'Update-OCINetworkfirewallMappedSecret', + 'Update-OCINetworkfirewallPolicy', + 'Update-OCINetworkfirewallSecurityRule', + 'Update-OCINetworkfirewallService', + 'Update-OCINetworkfirewallServiceList', + 'Update-OCINetworkfirewallUrlList' # Variables to export from this module VariablesToExport = '*' diff --git a/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 b/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 index cdc899da1..c4f35ddc6 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 246e58d5e..50479389e 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Nosql.dll' diff --git a/Objectstorage/OCI.PSModules.Objectstorage.psd1 b/Objectstorage/OCI.PSModules.Objectstorage.psd1 index 8acb11369..129caa89c 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Objectstorage.dll' diff --git a/Oce/OCI.PSModules.Oce.psd1 b/Oce/OCI.PSModules.Oce.psd1 index 39293cb9e..eb7cea1b6 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oce.dll' diff --git a/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 b/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 index cdd779a26..d8d31161a 100644 --- a/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 +++ b/Ocicontrolcenter/OCI.PSModules.Ocicontrolcenter.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Ocicontrolcenter.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ocicontrolcenter.dll' diff --git a/Ocvp/OCI.PSModules.Ocvp.psd1 b/Ocvp/OCI.PSModules.Ocvp.psd1 index d79488ae6..07f9773ef 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ocvp.dll' diff --git a/Oda/OCI.PSModules.Oda.psd1 b/Oda/OCI.PSModules.Oda.psd1 index 877886459..5a9452f5a 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 8907e36ed..4c3d1df6e 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 685ba958e..fc983e065 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ons.dll' diff --git a/Opa/OCI.PSModules.Opa.psd1 b/Opa/OCI.PSModules.Opa.psd1 index 0eb681801..163d397eb 100644 --- a/Opa/OCI.PSModules.Opa.psd1 +++ b/Opa/OCI.PSModules.Opa.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Opa.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opa.dll' diff --git a/Opensearch/OCI.PSModules.Opensearch.psd1 b/Opensearch/OCI.PSModules.Opensearch.psd1 index 4327ca39a..ec1d8841a 100644 --- a/Opensearch/OCI.PSModules.Opensearch.psd1 +++ b/Opensearch/OCI.PSModules.Opensearch.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Opensearch.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opensearch.dll' diff --git a/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 b/Operatoraccesscontrol/OCI.PSModules.Operatoraccesscontrol.psd1 index 7dba17ced..ffec7aed4 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 98c9c690d..d288a55c8 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opsi.dll' diff --git a/Optimizer/OCI.PSModules.Optimizer.psd1 b/Optimizer/OCI.PSModules.Optimizer.psd1 index de01917f9..2789c94eb 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Optimizer.dll' diff --git a/Osmanagement/OCI.PSModules.Osmanagement.psd1 b/Osmanagement/OCI.PSModules.Osmanagement.psd1 index fef7731bf..bc2dccccf 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagement.dll' diff --git a/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 b/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 index 84fc4368f..5fc6bbc97 100644 --- a/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 +++ b/Osmanagementhub/OCI.PSModules.Osmanagementhub.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Osmanagementhub.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagementhub.dll' diff --git a/Ospgateway/OCI.PSModules.Ospgateway.psd1 b/Ospgateway/OCI.PSModules.Ospgateway.psd1 index 08c6a4d76..6db0d994e 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 c4ced5e6a..95e54a615 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 ad864a8e0..832be096f 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 8b69835dc..68f4cbb5b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 61efd23e1..243c62a51 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 8902606ff..2051d7aea 100644 --- a/PSModules/OCI.PSModules.psd1 +++ b/PSModules/OCI.PSModules.psd1 @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -51,134 +51,136 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Accessgovernancecp'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Aidocument'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudbridge'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudmigrations'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Computecloudatcustomer'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Containerinstances'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Disasterrecovery'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Fleetsoftwareupdate'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Fusionapps'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Identitydomains'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Lockbox'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Mediaservices'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Ocicontrolcenter'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Opa'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Opensearch'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Osmanagementhub'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Queue'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Recovery'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Vbsinst'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '67.4.0'; }, - @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Accessgovernancecp'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aidocument'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudbridge'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudmigrations'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Computecloudatcustomer'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Containerinstances'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Disasterrecovery'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Fleetsoftwareupdate'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Fusionapps'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Identitydomains'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Lockbox'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplacepublisher'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Mediaservices'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ocicontrolcenter'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Opa'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Opensearch'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osmanagementhub'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Queue'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Recovery'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Redis'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vbsinst'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '68.0.0'; }, + @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() diff --git a/Queue/OCI.PSModules.Queue.psd1 b/Queue/OCI.PSModules.Queue.psd1 index 7443fcd2d..665f8a91f 100644 --- a/Queue/OCI.PSModules.Queue.psd1 +++ b/Queue/OCI.PSModules.Queue.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Queue.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Queue.dll' diff --git a/Recovery/OCI.PSModules.Recovery.psd1 b/Recovery/OCI.PSModules.Recovery.psd1 index 3fe8fb69f..9a3512a26 100644 --- a/Recovery/OCI.PSModules.Recovery.psd1 +++ b/Recovery/OCI.PSModules.Recovery.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Recovery.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Recovery.dll' diff --git a/Redis/Cmdlets/Get-OCIRedisCluster.cs b/Redis/Cmdlets/Get-OCIRedisCluster.cs new file mode 100644 index 000000000..9f30487d2 --- /dev/null +++ b/Redis/Cmdlets/Get-OCIRedisCluster.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Get", "OCIRedisCluster", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.RedisService.Models.RedisCluster), typeof(Oci.RedisService.Responses.GetRedisClusterResponse) })] + public class GetOCIRedisCluster : OCIRedisClusterCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster.", ParameterSetName = Default)] + public string RedisClusterId { 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.RedisService.Models.RedisCluster.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(); + GetRedisClusterRequest request; + + try + { + request = new GetRedisClusterRequest + { + RedisClusterId = RedisClusterId, + 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(GetRedisClusterRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForRedisCluster(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetRedisCluster(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.RedisCluster); + } + + private GetRedisClusterResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Redis/Cmdlets/Get-OCIRedisClustersList.cs b/Redis/Cmdlets/Get-OCIRedisClustersList.cs new file mode 100644 index 000000000..0c516bd33 --- /dev/null +++ b/Redis/Cmdlets/Get-OCIRedisClustersList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Get", "OCIRedisClustersList")] + [OutputType(new System.Type[] { typeof(Oci.RedisService.Models.RedisClusterCollection), typeof(Oci.RedisService.Responses.ListRedisClustersResponse) })] + public class GetOCIRedisClustersList : OCIRedisClusterCmdlet + { + [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 = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster.")] + 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(); + ListRedisClustersRequest request; + + try + { + request = new ListRedisClustersRequest + { + 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.RedisClusterCollection, 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(ListRedisClustersRequest request) => Enumerable.Repeat(client.ListRedisClusters(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListRedisClustersResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListRedisClustersResponse response; + private delegate IEnumerable RequestDelegate(ListRedisClustersRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Redis/Cmdlets/Get-OCIRedisWorkRequest.cs b/Redis/Cmdlets/Get-OCIRedisWorkRequest.cs new file mode 100644 index 000000000..07f4ac250 --- /dev/null +++ b/Redis/Cmdlets/Get-OCIRedisWorkRequest.cs @@ -0,0 +1,99 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Get", "OCIRedisWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.RedisService.Models.WorkRequest), typeof(Oci.RedisService.Responses.GetWorkRequestResponse) })] + public class GetOCIRedisWorkRequest : OCIRedisClusterCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The the asynchronous request ID.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The the asynchronous request ID.", 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.RedisService.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/Redis/Cmdlets/Get-OCIRedisWorkRequestErrorsList.cs b/Redis/Cmdlets/Get-OCIRedisWorkRequestErrorsList.cs new file mode 100644 index 000000000..a8921d253 --- /dev/null +++ b/Redis/Cmdlets/Get-OCIRedisWorkRequestErrorsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Get", "OCIRedisWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.RedisService.Models.WorkRequestErrorCollection), typeof(Oci.RedisService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIRedisWorkRequestErrorsList : OCIRedisClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The the asynchronous request ID.")] + 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/Redis/Cmdlets/Get-OCIRedisWorkRequestLogsList.cs b/Redis/Cmdlets/Get-OCIRedisWorkRequestLogsList.cs new file mode 100644 index 000000000..fd96a4d78 --- /dev/null +++ b/Redis/Cmdlets/Get-OCIRedisWorkRequestLogsList.cs @@ -0,0 +1,104 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Get", "OCIRedisWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.RedisService.Models.WorkRequestLogEntryCollection), typeof(Oci.RedisService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIRedisWorkRequestLogsList : OCIRedisClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The the asynchronous request ID.")] + 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/Redis/Cmdlets/Get-OCIRedisWorkRequestsList.cs b/Redis/Cmdlets/Get-OCIRedisWorkRequestsList.cs new file mode 100644 index 000000000..2b42be19d --- /dev/null +++ b/Redis/Cmdlets/Get-OCIRedisWorkRequestsList.cs @@ -0,0 +1,116 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Get", "OCIRedisWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.RedisService.Models.WorkRequestSummaryCollection), typeof(Oci.RedisService.Responses.ListWorkRequestsResponse) })] + public class GetOCIRedisWorkRequestsList : OCIRedisClusterCmdlet + { + [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 [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) 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/Redis/Cmdlets/Move-OCIRedisClusterCompartment.cs b/Redis/Cmdlets/Move-OCIRedisClusterCompartment.cs new file mode 100644 index 000000000..88dbeb5c4 --- /dev/null +++ b/Redis/Cmdlets/Move-OCIRedisClusterCompartment.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Move", "OCIRedisClusterCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.RedisService.Responses.ChangeRedisClusterCompartmentResponse) })] + public class MoveOCIRedisClusterCompartment : OCIRedisClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster.")] + public string RedisClusterId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public ChangeRedisClusterCompartmentDetails ChangeRedisClusterCompartmentDetails { 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(); + ChangeRedisClusterCompartmentRequest request; + + try + { + request = new ChangeRedisClusterCompartmentRequest + { + RedisClusterId = RedisClusterId, + ChangeRedisClusterCompartmentDetails = ChangeRedisClusterCompartmentDetails, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.ChangeRedisClusterCompartment(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 ChangeRedisClusterCompartmentResponse response; + } +} diff --git a/Redis/Cmdlets/New-OCIRedisCluster.cs b/Redis/Cmdlets/New-OCIRedisCluster.cs new file mode 100644 index 000000000..ad0bbe727 --- /dev/null +++ b/Redis/Cmdlets/New-OCIRedisCluster.cs @@ -0,0 +1,67 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("New", "OCIRedisCluster")] + [OutputType(new System.Type[] { typeof(Oci.RedisService.Models.RedisCluster), typeof(Oci.RedisService.Responses.CreateRedisClusterResponse) })] + public class NewOCIRedisCluster : OCIRedisClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new RedisCluster.")] + public CreateRedisClusterDetails CreateRedisClusterDetails { 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(); + CreateRedisClusterRequest request; + + try + { + request = new CreateRedisClusterRequest + { + CreateRedisClusterDetails = CreateRedisClusterDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateRedisCluster(request).GetAwaiter().GetResult(); + WriteOutput(response, response.RedisCluster); + 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 CreateRedisClusterResponse response; + } +} diff --git a/Redis/Cmdlets/OCIRedisClusterCmdlet.cs b/Redis/Cmdlets/OCIRedisClusterCmdlet.cs new file mode 100644 index 000000000..422291a9a --- /dev/null +++ b/Redis/Cmdlets/OCIRedisClusterCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService; + +namespace Oci.RedisService.Cmdlets +{ + public abstract class OCIRedisClusterCmdlet : 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 RedisClusterClient(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 RedisClusterClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Redis/Cmdlets/Remove-OCIRedisCluster.cs b/Redis/Cmdlets/Remove-OCIRedisCluster.cs new file mode 100644 index 000000000..dc401d60f --- /dev/null +++ b/Redis/Cmdlets/Remove-OCIRedisCluster.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Remove", "OCIRedisCluster", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.RedisService.Responses.DeleteRedisClusterResponse) })] + public class RemoveOCIRedisCluster : OCIRedisClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster.")] + public string RedisClusterId { 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("OCIRedisCluster", "Remove")) + { + return; + } + + DeleteRedisClusterRequest request; + + try + { + request = new DeleteRedisClusterRequest + { + RedisClusterId = RedisClusterId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteRedisCluster(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 DeleteRedisClusterResponse response; + } +} diff --git a/Redis/Cmdlets/Stop-OCIRedisWorkRequest.cs b/Redis/Cmdlets/Stop-OCIRedisWorkRequest.cs new file mode 100644 index 000000000..b0e466ec4 --- /dev/null +++ b/Redis/Cmdlets/Stop-OCIRedisWorkRequest.cs @@ -0,0 +1,76 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Stop", "OCIRedisWorkRequest", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.RedisService.Responses.CancelWorkRequestResponse) })] + public class StopOCIRedisWorkRequest : OCIRedisClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The the asynchronous request ID.")] + 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("OCIRedisWorkRequest", "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/Redis/Cmdlets/Update-OCIRedisCluster.cs b/Redis/Cmdlets/Update-OCIRedisCluster.cs new file mode 100644 index 000000000..189f995c0 --- /dev/null +++ b/Redis/Cmdlets/Update-OCIRedisCluster.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20220315 + * DO NOT EDIT this file manually. + * + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.RedisService.Requests; +using Oci.RedisService.Responses; +using Oci.RedisService.Models; +using Oci.Common.Model; + +namespace Oci.RedisService.Cmdlets +{ + [Cmdlet("Update", "OCIRedisCluster")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.RedisService.Responses.UpdateRedisClusterResponse) })] + public class UpdateOCIRedisCluster : OCIRedisClusterCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster.")] + public string RedisClusterId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateRedisClusterDetails UpdateRedisClusterDetails { 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(); + UpdateRedisClusterRequest request; + + try + { + request = new UpdateRedisClusterRequest + { + RedisClusterId = RedisClusterId, + UpdateRedisClusterDetails = UpdateRedisClusterDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateRedisCluster(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 UpdateRedisClusterResponse response; + } +} diff --git a/Redis/OCI.PSModules.Redis.csproj b/Redis/OCI.PSModules.Redis.csproj new file mode 100644 index 000000000..b188cde11 --- /dev/null +++ b/Redis/OCI.PSModules.Redis.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Redis + OCI.PSModules.Redis + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Redis + Redis Service + + + + + + + + + + + diff --git a/Redis/OCI.PSModules.Redis.psd1 b/Redis/OCI.PSModules.Redis.psd1 new file mode 100644 index 000000000..97fa69f57 --- /dev/null +++ b/Redis/OCI.PSModules.Redis.psd1 @@ -0,0 +1,136 @@ +# +# Module manifest for module 'OCI.PSModules.Redis' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Redis.dll' + +# Version number of this module. +ModuleVersion = '68.0.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'bd4757ae-2cb1-4507-acfd-0f3be713db44' + +# 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 Redis 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 = '68.0.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Redis.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-OCIRedisCluster', 'Get-OCIRedisClustersList', + 'Get-OCIRedisWorkRequest', 'Get-OCIRedisWorkRequestErrorsList', + 'Get-OCIRedisWorkRequestLogsList', 'Get-OCIRedisWorkRequestsList', + 'Move-OCIRedisClusterCompartment', 'New-OCIRedisCluster', + 'Remove-OCIRedisCluster', 'Stop-OCIRedisWorkRequest', + 'Update-OCIRedisCluster' + +# 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','Redis' + + # 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/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 index 14f4a27bb..520ba49d2 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Resourcemanager.dll' diff --git a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 index e68479a30..36c81d1d6 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 6e090471a..665ce948b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 6d25721ce..696fa5c6b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Sch.dll' diff --git a/Secrets/OCI.PSModules.Secrets.psd1 b/Secrets/OCI.PSModules.Secrets.psd1 index bfd41c0ff..1cb418b9b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 f5d7208b3..f2c8317c8 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 feee390ba..6a2036a06 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 a834a3476..8cc8522c1 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 1f0a5534d..7ad5f6512 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 02ef464ca..ca0a1b0c7 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Streaming.dll' diff --git a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 index 25496b9ef..8e66cb65b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 8e5ffccd9..4aa977d1b 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 c6e291557..8e2ffe4ec 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 8c5834d98..78d4da544 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Usageapi.dll' diff --git a/Vault/OCI.PSModules.Vault.psd1 b/Vault/OCI.PSModules.Vault.psd1 index 615a6b312..6232a6f61 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vault.dll' diff --git a/Vbsinst/OCI.PSModules.Vbsinst.psd1 b/Vbsinst/OCI.PSModules.Vbsinst.psd1 index 33cee3201..e0146d19a 100644 --- a/Vbsinst/OCI.PSModules.Vbsinst.psd1 +++ b/Vbsinst/OCI.PSModules.Vbsinst.psd1 @@ -11,7 +11,7 @@ RootModule = 'assemblies/OCI.PSModules.Vbsinst.dll' # Version number of this module. -ModuleVersion = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Vbsinst.dll' diff --git a/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 b/Visualbuilder/OCI.PSModules.Visualbuilder.psd1 index 5b0099a57..11c965eed 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 c5e80c54e..b1741f961 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 70f6c3bc7..ce4bc5834 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 f2119c5bd..678b5da42 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 a8d750526..0b057d5b0 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 fddde94af..e4acc9d17 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.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 51be3dd3c..9ee589b85 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 = '67.4.0' +ModuleVersion = '68.0.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 = '67.4.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '68.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Workrequests.dll' diff --git a/oci-powershell-modules.sln b/oci-powershell-modules.sln index 10213455a..ee479edd5 100644 --- a/oci-powershell-modules.sln +++ b/oci-powershell-modules.sln @@ -261,6 +261,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Fleetsoftware EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Computecloudatcustomer", "Computecloudatcustomer\OCI.PSModules.Computecloudatcustomer.csproj", "{C3547448-A2ED-4AFE-85FE-4889E8EAA6F8}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Marketplacepublisher", "Marketplacepublisher\OCI.PSModules.Marketplacepublisher.csproj", "{1040B685-E734-4C1D-84CB-2BA94EC887E4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Redis", "Redis\OCI.PSModules.Redis.csproj", "{660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -1834,5 +1838,29 @@ Global {C3547448-A2ED-4AFE-85FE-4889E8EAA6F8}.Release|x64.Build.0 = Release|Any CPU {C3547448-A2ED-4AFE-85FE-4889E8EAA6F8}.Release|x86.ActiveCfg = Release|Any CPU {C3547448-A2ED-4AFE-85FE-4889E8EAA6F8}.Release|x86.Build.0 = Release|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Debug|x64.ActiveCfg = Debug|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Debug|x64.Build.0 = Debug|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Debug|x86.ActiveCfg = Debug|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Debug|x86.Build.0 = Debug|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Release|Any CPU.Build.0 = Release|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Release|x64.ActiveCfg = Release|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Release|x64.Build.0 = Release|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Release|x86.ActiveCfg = Release|Any CPU + {1040B685-E734-4C1D-84CB-2BA94EC887E4}.Release|x86.Build.0 = Release|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Debug|x64.ActiveCfg = Debug|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Debug|x64.Build.0 = Debug|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Debug|x86.ActiveCfg = Debug|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Debug|x86.Build.0 = Debug|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Release|Any CPU.Build.0 = Release|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Release|x64.ActiveCfg = Release|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Release|x64.Build.0 = Release|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Release|x86.ActiveCfg = Release|Any CPU + {660D2D7E-51E7-4D54-9F6F-0F588BA5D0AA}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal